diff --git a/app/definitions/rest/v1/users.ts b/app/definitions/rest/v1/users.ts index 7bed1d14..251ff3de 100644 --- a/app/definitions/rest/v1/users.ts +++ b/app/definitions/rest/v1/users.ts @@ -12,6 +12,9 @@ export type UsersEndpoints = { 'users.listTeams': { GET: (params: { userId: IUser['_id'] }) => { teams: Array }; }; + 'users.forgotPassword': { + POST: (params: { email: string }) => {}; + }; 'users.info': { GET: (params: { userId: IUser['_id'] }) => { user: IUser; diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index 560da66d..40db3b02 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -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 }> =>