Updates
This commit is contained in:
+1
-1
@@ -2,4 +2,4 @@ import { APIResponseObject, DATASQUIREL_LoggedInUser, LoginUserParam } from "../
|
||||
/**
|
||||
* # Login A user
|
||||
*/
|
||||
export default function loginUser<T extends DATASQUIREL_LoggedInUser = DATASQUIREL_LoggedInUser>({ apiKey, payload, database, additionalFields, response, encryptionKey, encryptionSalt, email_login, email_login_code, temp_code_field, token, skipPassword, apiUserID, skipWriteAuthFile, dbUserId, debug, cleanupTokens, secureCookie, useLocal, apiVersion, }: LoginUserParam): Promise<APIResponseObject<T | null>>;
|
||||
export default function loginUser<T extends DATASQUIREL_LoggedInUser = DATASQUIREL_LoggedInUser>({ apiKey, payload, database, additionalFields, response, encryptionKey, encryptionSalt, email_login, email_login_code, temp_code_field, token, skipPassword, apiUserID, skipWriteAuthFile, dbUserId, debug, cleanupTokens, secureCookie, useLocal, apiVersion, }: LoginUserParam): Promise<APIResponseObject>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { ResetPasswordParams, UpdateUserFunctionReturn } from "../../types";
|
||||
import { APIResponseObject, ResetPasswordParams } from "../../types";
|
||||
/**
|
||||
* # Reset User Password
|
||||
*/
|
||||
export default function resetPassword(params: ResetPasswordParams): Promise<UpdateUserFunctionReturn>;
|
||||
export default function resetPassword(params: ResetPasswordParams): Promise<APIResponseObject>;
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { UpdateUserFunctionReturn, UpdateUserParams } from "../../types";
|
||||
import { APIResponseObject, UpdateUserParams } from "../../types";
|
||||
import { DSQL_DATASQUIREL_USERS } from "../../types/dsql";
|
||||
/**
|
||||
* # Update User
|
||||
*/
|
||||
export default function updateUser<T extends DSQL_DATASQUIREL_USERS = DSQL_DATASQUIREL_USERS & {
|
||||
[k: string]: any;
|
||||
}>({ payload, database, updatedUserId, useLocal, apiKey, apiVersion, dbUserId, }: UpdateUserParams<T>): Promise<UpdateUserFunctionReturn>;
|
||||
}>({ payload, database, updatedUserId, useLocal, apiKey, apiVersion, dbUserId, }: UpdateUserParams<T>): Promise<APIResponseObject>;
|
||||
|
||||
Reference in New Issue
Block a user