Skip to content

Instantly share code, notes, and snippets.

@viniazvd
Last active July 15, 2022 17:09
Show Gist options
  • Save viniazvd/5231f617c371a5248e3f3f2a7b13afdc to your computer and use it in GitHub Desktop.
Save viniazvd/5231f617c371a5248e3f3f2a7b13afdc to your computer and use it in GitHub Desktop.
USERS/
(checkDocument)
document:string | Promise<void>
- get(`users/document/${document}`)
------------------------------------------------
(getChannels)
document:string | Promise<ChannelData>
interface ChannelData {
id: string;
channels: ChannelListData[]
}
- post('/users/verify', { document })
------------------------------------------------
(checkCodeIndication)
payload: string | Promise<void>
- get(`users/invitation/${payload}`)
------------------------------------------------
(checkEmail)
email: string) | Promise<void>
- get(`users/email/${email}`)
------------------------------------------------
(checkCellPhone)
phone: string) | Promise<void>
- get(`users/phone/${phone}`)
------------------------------------------------
(createPassword)
validationKey: string | Promise<void>
payload: { password: string, rePassword: string }
- patch(`/users/${validationKey}/password`, { password, rePassword })
------------------------------------------------
(getTerms)
Promise<UserTerm[]>
interface UserTerm {
_id: string,
text: string,
description: string,
version: number,
docType: 'TERMS_OF_USE' | 'PRIVACY_POLICY'
}
- get('/user-terms/published')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment