This commit is contained in:
Benjamin Toby
2025-05-21 09:34:49 +01:00
parent 4adb5af430
commit 0fc2c7fb3e
8 changed files with 36 additions and 11 deletions
+10 -3
View File
@@ -291,9 +291,9 @@ export interface UpdateUserFunctionReturn {
payload?: Object[] | string;
}
export interface GetReturn {
export interface GetReturn<R extends any = any> {
success: boolean;
payload?: any;
payload?: R;
msg?: string;
error?: string;
schema?: DSQL_TableSchemaType;
@@ -1092,7 +1092,13 @@ export type FetchApiReturn = {
};
export const ServerQueryOperators = ["AND", "OR"] as const;
export const ServerQueryEqualities = ["EQUAL", "LIKE", "NOT EQUAL"] as const;
export const ServerQueryEqualities = [
"EQUAL",
"LIKE",
"NOT EQUAL",
"REGEXP",
"FULLTEXT",
] as const;
export type ServerQueryParam<
T extends { [k: string]: any } = { [k: string]: any }
@@ -1295,6 +1301,7 @@ export type HandleSocialDbFunctionParams = {
additionalFields?: string[];
debug?: boolean;
loginOnly?: boolean;
social_id?: string | number;
};
export type HandleSocialDbFunctionReturn = {