Updates
This commit is contained in:
Vendored
+12
@@ -2216,6 +2216,7 @@ export type APIPathsParams<T extends {
|
||||
postMiddleware?: APIPathsParamsCrudMiddleware<T>;
|
||||
putMiddleware?: APIPathsParamsCrudMiddleware<T>;
|
||||
deleteMiddleware?: APIPathsParamsCrudMiddleware<T>;
|
||||
postResultsFn?: APIPathsPostResulstsFn<T>;
|
||||
/** Runs For `POST`, `PUT`, and `DELETE` */
|
||||
crudMiddleware?: APIPathsParamsCrudMiddleware<T>;
|
||||
method: "GET" | "POST" | "PUT" | "DELETE";
|
||||
@@ -2264,6 +2265,17 @@ export type APIPathsParamsCrudMiddleware<T extends {
|
||||
table: K;
|
||||
targetId?: number | string;
|
||||
}) => Promise<APIPathsBody<T> | undefined>;
|
||||
export type APIPathsPostResulstsFn<T extends {
|
||||
[k: string]: any;
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}, K extends string = string> = (params: {
|
||||
body?: APIPathsBody<T>;
|
||||
query?: DsqlCrudQueryObject<T>;
|
||||
table: K;
|
||||
targetId?: number | string;
|
||||
res?: APIResponseObject;
|
||||
}) => Promise<APIPathsBody<T> | undefined>;
|
||||
export type APIPathsParamsAllowedTable = {
|
||||
table: string;
|
||||
allowedFields?: (string | RegExp)[];
|
||||
|
||||
Reference in New Issue
Block a user