interface UsersService { acceptMobileAppTerms(): Promise<void>; acceptMobileAppTermsForUser(email: string): Promise<void>; activateUserWithToken( token: string, user: ActivateUserDTO, ): Promise<SavedUser>; changePassword(id: string, password: string): Promise<SavedUser>; changePasswordFromToken( token: string, email: string, password: string, confirmPassword: string, acceptedTerms: string, ): Promise<SavedUser>; checkForInactiveUserByToken(token: string): Promise<null | BaseUser>; create(entity: CreateUserDTO): Promise<SavedUser>; createHostFromSignup(entity: CreateHostFromSignupDTO): Promise<SavedUser>; delete(id: string): Promise<SavedUser>; findById( id: string, fields?: SelectQuery<BaseUser>[], listQueryOptions?: ListQueryOptions<BaseUser>, ): Promise<SavedUser>; findOne( query: Query<BaseUser>, fields?: SelectQuery<BaseUser>[], ): Promise<null | BaseUser>; findUserByToken( token: string, fields?: SelectQuery<BaseUser>[], ): Promise<SavedUser>; getHostMarketingEmailList(hostId: string): Promise<BaseListUser[]>; getTargetUserForImpersonation(targetUserId: string): Promise<SavedUser>; getUserByEmail(email: string): Promise<SavedUser>; list( query?: Query<BaseUser>, fields?: SelectQuery<BaseUser>[], ): Promise<BaseUser[]>; resetPassword(email: string): Promise<boolean>; resetPasswordAttempts(id: string): Promise<boolean>; undeleteUserById(id: string): Promise<SavedUser>; update(id: string, entity: PartialQuery<BaseUser>): Promise<SavedUser>;} Methods
acceptMobileAppTerms
- acceptMobileAppTerms(): Promise<void>
Returns Promise<void>
acceptMobileAppTermsForUser
- acceptMobileAppTermsForUser(email: string): Promise<void>
Returns Promise<void>
changePassword
- changePassword(id: string, password: string): Promise<SavedUser>
Parameters
- id: string
- password: string
changePasswordFromToken
- changePasswordFromToken(
token: string,
email: string,
password: string,
confirmPassword: string,
acceptedTerms: string,
): Promise<SavedUser> Parameters
- token: string
- email: string
- password: string
- confirmPassword: string
- acceptedTerms: string
checkForInactiveUserByToken
- checkForInactiveUserByToken(token: string): Promise<null | BaseUser>
Returns Promise<null | BaseUser>
getHostMarketingEmailList
- getHostMarketingEmailList(hostId: string): Promise<BaseListUser[]>
getTargetUserForImpersonation
- getTargetUserForImpersonation(targetUserId: string): Promise<SavedUser>
getUserByEmail
- getUserByEmail(email: string): Promise<SavedUser>
resetPassword
- resetPassword(email: string): Promise<boolean>
Returns Promise<boolean>
resetPasswordAttempts
- resetPasswordAttempts(id: string): Promise<boolean>
Returns Promise<boolean>
undeleteUserById
- undeleteUserById(id: string): Promise<SavedUser>
Records the acceptance of the mobile application's terms by the logged-in user.