This commit is contained in:
Benjamin Toby
2025-01-25 14:45:22 +01:00
parent 483ea16d4d
commit 4fe8921bc6
8 changed files with 104 additions and 77 deletions
+8 -3
View File
@@ -1293,7 +1293,7 @@ export type DsqlMethodCrudParam<T extends {
}> = {
method: (typeof DataCrudRequestMethods)[number];
body?: T;
query?: string | T;
query?: DsqlCrudQueryObject<T>;
tableName: string;
addUser?: {
field: string;
@@ -1307,14 +1307,19 @@ export type DsqlMethodCrudParam<T extends {
reqMethod: (typeof DataCrudRequestMethods)[number];
}) => Promise<T>;
existingData?: T;
targetId?: string | number;
};
export declare const DsqlCrudActions: readonly ["insert", "update", "delete", "get"];
export type DsqlCrudQueryObject<T extends object = {
export type DsqlCrudQueryObject<T extends {
[key: string]: any;
} = {
[key: string]: any;
}> = ServerQueryParam & {
query: ServerQueryQueryObject<T>;
};
export type DsqlCrudParam<T extends object = {
export type DsqlCrudParam<T extends {
[key: string]: any;
} = {
[key: string]: any;
}> = {
action: (typeof DsqlCrudActions)[number];