datasquirel/users/add-user.d.ts

29 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-11-08 15:44:31 +00:00
export = addUser;
/**
* Add User to Database
2024-12-06 10:44:26 +00:00
* ============================================
2024-11-08 15:44:31 +00:00
* @async
*
2024-12-06 10:44:26 +00:00
* @param {object} param - Single object passed
2024-12-08 08:58:57 +00:00
* @param {string} [param.key] - FULL ACCESS API Key
2024-12-10 12:45:30 +00:00
* @param {string} [param.database] - Database Name
2024-12-06 10:44:26 +00:00
* @param {import("../package-shared/types").UserDataPayload} param.payload - User Data Payload
2024-12-06 11:55:03 +00:00
* @param {string} [param.encryptionKey]
2024-12-06 10:44:26 +00:00
* @param {string} [param.encryptionSalt]
* @param {string | number} [param.user_id]
2024-12-06 10:53:26 +00:00
* @param {string | number} [param.apiUserId]
2024-12-06 10:44:26 +00:00
* @param {boolean} [param.useLocal]
2024-11-08 15:44:31 +00:00
*
* @returns { Promise<import("../package-shared/types").AddUserFunctionReturn> }
*/
2024-12-06 10:44:26 +00:00
declare function addUser({ key, payload, database, encryptionKey, user_id, useLocal, apiUserId, }: {
2024-12-08 08:58:57 +00:00
key?: string;
2024-12-10 12:45:30 +00:00
database?: string;
2024-11-08 15:44:31 +00:00
payload: import("../package-shared/types").UserDataPayload;
2024-12-06 11:55:03 +00:00
encryptionKey?: string;
2024-11-08 15:44:31 +00:00
encryptionSalt?: string;
2024-12-06 10:44:26 +00:00
user_id?: string | number;
2024-12-06 10:53:26 +00:00
apiUserId?: string | number;
2024-12-06 10:44:26 +00:00
useLocal?: boolean;
2024-11-08 15:44:31 +00:00
}): Promise<import("../package-shared/types").AddUserFunctionReturn>;