Updates
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { GrabUserResourceParams } from "../../../../types";
|
||||
export default function (params?: GrabUserResourceParams): import("../../../../types").ServerQueryParam<{
|
||||
[k: string]: any;
|
||||
}> & {
|
||||
}, string> & {
|
||||
query?: import("../../../../types").ServerQueryQueryObject<{
|
||||
[k: string]: any;
|
||||
}> | undefined;
|
||||
} & import("../../../../types").ServerQueryParam<any> & {
|
||||
query?: import("../../../../types").ServerQueryQueryObject<any> | undefined;
|
||||
}, string> | undefined;
|
||||
} & import("../../../../types").ServerQueryParam<any, string> & {
|
||||
query?: import("../../../../types").ServerQueryQueryObject<any, string> | undefined;
|
||||
} & import("../../../../types").ServerQueryParam<{
|
||||
[k: string]: any;
|
||||
}> & {
|
||||
}, string> & {
|
||||
query?: import("../../../../types").ServerQueryQueryObject<{
|
||||
[k: string]: any;
|
||||
}> | undefined;
|
||||
}, string> | undefined;
|
||||
};
|
||||
|
||||
Vendored
+9
-9
@@ -809,7 +809,7 @@ export type ServerQueryParam<T extends {
|
||||
[k: string]: any;
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}> = {
|
||||
}, K extends string = string> = {
|
||||
selectFields?: (keyof T)[];
|
||||
omitFields?: (keyof T)[];
|
||||
query?: ServerQueryQueryObject<T>;
|
||||
@@ -825,27 +825,27 @@ export type ServerQueryParam<T extends {
|
||||
addUserId?: {
|
||||
fieldName: keyof T;
|
||||
};
|
||||
join?: ServerQueryParamsJoin[];
|
||||
join?: ServerQueryParamsJoin<K>[];
|
||||
group?: (keyof T)[];
|
||||
[key: string]: any;
|
||||
};
|
||||
export type ServerQueryObject<T extends object = {
|
||||
[key: string]: any;
|
||||
}> = {
|
||||
}, K extends string = string> = {
|
||||
value?: string | string[];
|
||||
nullValue?: boolean;
|
||||
notNullValue?: boolean;
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
equality?: (typeof ServerQueryEqualities)[number];
|
||||
tableName?: string;
|
||||
tableName?: K;
|
||||
__query?: {
|
||||
[key in keyof T]: Omit<ServerQueryObject<T>, "__query">;
|
||||
};
|
||||
};
|
||||
export type ServerQueryQueryObject<T extends object = {
|
||||
[key: string]: any;
|
||||
}> = {
|
||||
[key in keyof T]: ServerQueryObject<T>;
|
||||
}, K extends string = string> = {
|
||||
[key in keyof T]: ServerQueryObject<T, K>;
|
||||
};
|
||||
export type FetchDataParams = {
|
||||
path: string;
|
||||
@@ -1218,8 +1218,8 @@ export type DsqlCrudQueryObject<T extends {
|
||||
[key: string]: any;
|
||||
} = {
|
||||
[key: string]: any;
|
||||
}> = ServerQueryParam<T> & {
|
||||
query?: ServerQueryQueryObject<T>;
|
||||
}, K extends string = string> = ServerQueryParam<T, K> & {
|
||||
query?: ServerQueryQueryObject<T, K>;
|
||||
};
|
||||
export type SQLDeleteGeneratorParams<T extends {
|
||||
[key: string]: any;
|
||||
@@ -1256,7 +1256,7 @@ export type DsqlCrudParam<T extends {
|
||||
targetId?: string | number;
|
||||
targetValue?: string | number;
|
||||
targetField?: keyof T;
|
||||
query?: DsqlCrudQueryObject<T>;
|
||||
query?: DsqlCrudQueryObject<T, K>;
|
||||
sanitize?: ({ data, batchData }: {
|
||||
data?: T;
|
||||
batchData?: T[];
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ export default function <T extends {
|
||||
[key: string]: any;
|
||||
} = {
|
||||
[key: string]: any;
|
||||
}>({ table, query, count, countOnly, dbFullName, tableSchema, dbConfig, }: Omit<DsqlCrudParam<T>, "action" | "data" | "sanitize">): Promise<APIResponseObject>;
|
||||
}, K extends string = string>({ table, query, count, countOnly, dbFullName, tableSchema, dbConfig, }: Omit<DsqlCrudParam<T, K>, "action" | "data" | "sanitize">): Promise<APIResponseObject>;
|
||||
|
||||
Reference in New Issue
Block a user