Chore: Migrate REST API - removeTeamMember to TS (#3799)
* Migrate REST API `teams.removeMember` to TypeScript
This commit is contained in:
parent
270f6e0fef
commit
718ae48e83
|
@ -5,6 +5,9 @@ export type TeamsEndpoints = {
|
|||
'teams.removeRoom': {
|
||||
POST: (params: { roomId: string; teamId: string }) => { room: IRoom };
|
||||
};
|
||||
'teams.removeMember': {
|
||||
POST: (params: { teamId: string; userId: string; rooms?: string[] }) => {};
|
||||
};
|
||||
'teams.addRooms': {
|
||||
POST: (params: { teamId: string; rooms: string[] }) => { rooms: IRoom[] };
|
||||
};
|
||||
|
|
|
@ -182,10 +182,8 @@ export const leaveTeam = ({ teamId, rooms }: { teamId: string; rooms: string[] }
|
|||
...(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
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.post('teams.removeMember', {
|
||||
teamId,
|
||||
userId,
|
||||
|
|
Loading…
Reference in New Issue