Updates
This commit is contained in:
Vendored
+8
-3
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user