Chore: Migrate REST API - forgotPassword to Typescript (#3818)

This commit is contained in:
Gleidson Daniel Silva 2022-03-04 11:18:06 -03:00 committed by GitHub
parent 9265dc345d
commit cbb1d0f3cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,9 @@ export type UsersEndpoints = {
'users.listTeams': {
GET: (params: { userId: IUser['_id'] }) => { teams: Array<ITeam> };
};
'users.forgotPassword': {
POST: (params: { email: string }) => {};
};
'users.info': {
GET: (params: { userId: IUser['_id'] }) => {
user: IUser;

View File

@ -67,10 +67,8 @@ export const register = (credentials: { name: string; email: string; pass: strin
// RC 0.50.0
sdk.post('users.register', credentials);
export const forgotPassword = (email: string): any =>
export const forgotPassword = (email: string) =>
// RC 0.64.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('users.forgotPassword', { email });
export const sendConfirmationEmail = (email: string): Promise<{ message: string; success: boolean }> =>