Chore: Migrate REST API - getUsernameSuggestion to Typescript (#3872)

This commit is contained in:
Reinaldo Neto 2022-03-10 10:44:55 -03:00 committed by GitHub
parent 61b8f3e40a
commit 4dc43313ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,9 @@ export type UsersEndpoints = {
user: IUser;
};
};
'users.getUsernameSuggestion': {
GET: () => { result: string };
};
'users.resetAvatar': {
POST: (params: { userId: string }) => {};
};

View File

@ -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 =>