Chore: Migrate REST API - removeTeamMember to TS (#3799)

* Migrate REST API `teams.removeMember` to TypeScript
This commit is contained in:
Gerzon Z 2022-03-02 16:39:04 -04:00 committed by GitHub
parent 270f6e0fef
commit 718ae48e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,9 @@ export type TeamsEndpoints = {
'teams.removeRoom': { 'teams.removeRoom': {
POST: (params: { roomId: string; teamId: string }) => { room: IRoom }; POST: (params: { roomId: string; teamId: string }) => { room: IRoom };
}; };
'teams.removeMember': {
POST: (params: { teamId: string; userId: string; rooms?: string[] }) => {};
};
'teams.addRooms': { 'teams.addRooms': {
POST: (params: { teamId: string; rooms: string[] }) => { rooms: IRoom[] }; POST: (params: { teamId: string; rooms: string[] }) => { rooms: IRoom[] };
}; };

View File

@ -182,10 +182,8 @@ export const leaveTeam = ({ teamId, rooms }: { teamId: string; rooms: string[] }
...(rooms?.length && { rooms }) ...(rooms?.length && { rooms })
}); });
export const removeTeamMember = ({ teamId, userId, rooms }: { teamId: string; userId: string; rooms: string[] }): any => export const removeTeamMember = ({ teamId, userId, rooms }: { teamId: string; userId: string; rooms: string[] }) =>
// RC 3.13.0 // RC 3.13.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('teams.removeMember', { sdk.post('teams.removeMember', {
teamId, teamId,
userId, userId,