This commit is contained in:
2025-12-27 16:06:23 +01:00
parent 27887ded41
commit 0dc8f3c787
14 changed files with 230 additions and 72 deletions
+6 -4
View File
@@ -2741,6 +2741,7 @@ export const OpsActions = [
"restart-db",
"restart-all",
"clear",
"clear-container-logs",
] as const;
export type OpsObject = {
@@ -2869,9 +2870,7 @@ export type APIPathsParams<
*/
basePath?: string;
auth?: () => Promise<boolean>;
getMiddleware?: (params: {
query: APIPathsQuery<T>;
}) => Promise<APIPathsQuery<T>>;
getMiddleware?: APIPathsParamsGetMiddleware<T>;
postMiddleware?: APIPathsParamsCrudMiddleware<T>;
putMiddleware?: APIPathsParamsCrudMiddleware<T>;
deleteMiddleware?: APIPathsParamsCrudMiddleware<T>;
@@ -2912,7 +2911,10 @@ export type APIPathsQuery<
export type APIPathsParamsGetMiddleware<
T extends { [k: string]: any } = { [k: string]: any }
> = (params: { query: APIPathsQuery<T> }) => Promise<DsqlCrudQueryObject<T>>;
> = (params: {
query: APIPathsQuery<T>;
table: string;
}) => Promise<APIPathsQuery<T>>;
export type APIPathsParamsCrudMiddleware<
T extends { [k: string]: any } = { [k: string]: any },