Class: Users

Users()

Class to get list users Check user availability in the account Get, update, create, delete a user

Constructor

new Users()

Source:

Methods

(async) checkUserEmail(email) → {Promise.<CheckEmail>}

Parameters:
Name Type Description
email string
Source:
Returns:
- returns an object with boolean or throws an error
Type
Promise.<CheckEmail>

(async) createUser(params) → {Promise.<User>}

Parameters:
Name Type Description
params CreateUserParams
Source:
Returns:
- returns a user or throws an error
Type
Promise.<User>

(async) deleteUser(params) → {Promise.<string>}

Parameters:
Name Type Description
params DeleteUserParams
Source:
Returns:
- returns an success message or throws an error
Type
Promise.<string>

(async) getListUsers(params) → {Promise.<GetUsersListResponse>}

Parameters:
Name Type Description
params GetUsersListParams
Source:
Returns:
- returns a list of users or throws an error
Type
Promise.<GetUsersListResponse>

(async) getUser(userId, loginType) → {Promise.<User>}

Parameters:
Name Type Description
userId string
loginType LoginTypes
Source:
Returns:
- returs a user object or throws an error
Type
Promise.<User>