Chore: Migrate REST API - forgotPassword to Typescript (#3818)
This commit is contained in:
parent
9265dc345d
commit
cbb1d0f3cf
|
@ -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;
|
||||
|
|
|
@ -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 }> =>
|
||||
|
|
Loading…
Reference in New Issue