This commit is contained in:
Benjamin Toby
2024-12-06 12:55:03 +01:00
parent 34868ee0cf
commit 8a8257d17e
48 changed files with 360 additions and 221 deletions
+5 -1
View File
@@ -1054,6 +1054,7 @@ export type APILoginFunctionParams = {
token?: boolean;
skipPassword?: boolean;
social?: boolean;
useLocal?: boolean;
};
export type APILoginFunctionReturn = {
success: boolean;
@@ -1063,10 +1064,11 @@ export type APILoginFunctionReturn = {
};
export type APILoginFunction = (params: APILoginFunctionParams) => Promise<APILoginFunctionReturn>;
export type APICreateUserFunctionParams = {
encryptionKey: string;
encryptionKey?: string;
payload: any;
database: string;
userId?: string | number;
useLocal?: boolean;
};
export type APICreateUserFunction = (params: APICreateUserFunctionParams) => Promise<AddUserFunctionReturn>;
/**
@@ -1076,6 +1078,7 @@ export type APIGetUserFunctionParams = {
fields: string[];
dbFullName: string;
userId: string | number;
useLocal?: boolean;
};
export type APIGetUserFunction = (params: APIGetUserFunctionParams) => Promise<GetUserFunctionReturn>;
/**
@@ -1108,6 +1111,7 @@ export type HandleSocialDbFunctionParams = {
invitation?: any;
supEmail?: string;
additionalFields?: object;
useLocal?: boolean;
};
export type HandleSocialDbFunctionReturn = {
success: boolean;
+5 -1
View File
@@ -1271,6 +1271,7 @@ export type APILoginFunctionParams = {
token?: boolean;
skipPassword?: boolean;
social?: boolean;
useLocal?: boolean;
};
export type APILoginFunctionReturn = {
success: boolean;
@@ -1283,10 +1284,11 @@ export type APILoginFunction = (
) => Promise<APILoginFunctionReturn>;
export type APICreateUserFunctionParams = {
encryptionKey: string;
encryptionKey?: string;
payload: any;
database: string;
userId?: string | number;
useLocal?: boolean;
};
export type APICreateUserFunction = (
@@ -1300,6 +1302,7 @@ export type APIGetUserFunctionParams = {
fields: string[];
dbFullName: string;
userId: string | number;
useLocal?: boolean;
};
export type APIGetUserFunction = (
@@ -1339,6 +1342,7 @@ export type HandleSocialDbFunctionParams = {
invitation?: any;
supEmail?: string;
additionalFields?: object;
useLocal?: boolean;
};
export type HandleSocialDbFunctionReturn = {