diff --git a/app/definitions/rest/v1/users.ts b/app/definitions/rest/v1/users.ts index 17b0e1e8e..035e62509 100644 --- a/app/definitions/rest/v1/users.ts +++ b/app/definitions/rest/v1/users.ts @@ -43,6 +43,9 @@ export type UsersEndpoints = { user: IUser; }; }; + 'users.getUsernameSuggestion': { + GET: () => { result: string }; + }; 'users.resetAvatar': { POST: (params: { userId: string }) => {}; }; diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index fe4e3a1aa..cc5f9e361 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -586,10 +586,8 @@ export const setAvatarFromService = ({ // RC 0.51.0 sdk.methodCallWrapper('setAvatarFromService', data, contentType, service); -export const getUsernameSuggestion = (): any => +export const getUsernameSuggestion = () => // RC 0.65.0 - // TODO: missing definitions from server - // @ts-ignore sdk.get('users.getUsernameSuggestion'); export const getFiles = (roomId: string, type: RoomTypes, offset: number): any =>