Updates
This commit is contained in:
parent
e82bcd0824
commit
ebf3618667
@ -9,7 +9,7 @@ export type CRUDResponseObject<P extends any = any> = {
|
|||||||
msg?: string;
|
msg?: string;
|
||||||
error?: string;
|
error?: string;
|
||||||
};
|
};
|
||||||
export type ApiDataCrudParam<T extends {
|
export type DsqlMethodCrudParam<T extends {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
} = {
|
} = {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
@ -39,4 +39,4 @@ export default function dsqlMethodCrud<T extends {
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
} = {
|
} = {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>({ method, tableName, addUser, user, extraData, transform, existingData, body, query, }: ApiDataCrudParam<T>): Promise<CRUDResponseObject<P>>;
|
}>({ method, tableName, addUser, user, extraData, transform, existingData, body, query, }: DsqlMethodCrudParam<T>): Promise<CRUDResponseObject<P>>;
|
||||||
|
@ -15,7 +15,7 @@ export type CRUDResponseObject<P extends any = any> = {
|
|||||||
error?: string;
|
error?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ApiDataCrudParam<
|
export type DsqlMethodCrudParam<
|
||||||
T extends { [key: string]: any } = { [key: string]: any }
|
T extends { [key: string]: any } = { [key: string]: any }
|
||||||
> = {
|
> = {
|
||||||
method: (typeof DataCrudRequestMethods)[number];
|
method: (typeof DataCrudRequestMethods)[number];
|
||||||
@ -53,7 +53,7 @@ export default async function dsqlMethodCrud<
|
|||||||
existingData,
|
existingData,
|
||||||
body,
|
body,
|
||||||
query,
|
query,
|
||||||
}: ApiDataCrudParam<T>): Promise<CRUDResponseObject<P>> {
|
}: DsqlMethodCrudParam<T>): Promise<CRUDResponseObject<P>> {
|
||||||
let result: CRUDResponseObject = {
|
let result: CRUDResponseObject = {
|
||||||
success: false,
|
success: false,
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "3.8.5",
|
"version": "3.8.6",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user