Chore: Migrate REST API - addRoomsToTeam to TS (#3797)
* Migrate REST API `teams.addRooms` to TypeScript
This commit is contained in:
parent
1da4f01dcb
commit
270f6e0fef
|
@ -5,6 +5,9 @@ export type TeamsEndpoints = {
|
|||
'teams.removeRoom': {
|
||||
POST: (params: { roomId: string; teamId: string }) => { room: IRoom };
|
||||
};
|
||||
'teams.addRooms': {
|
||||
POST: (params: { teamId: string; rooms: string[] }) => { rooms: IRoom[] };
|
||||
};
|
||||
'teams.create': {
|
||||
POST: (params: {
|
||||
name: string;
|
||||
|
|
|
@ -164,10 +164,8 @@ export const createTeam = ({
|
|||
// RC 3.13.0
|
||||
return sdk.post('teams.create', params);
|
||||
};
|
||||
export const addRoomsToTeam = ({ teamId, rooms }: { teamId: string; rooms: string[] }): any =>
|
||||
export const addRoomsToTeam = ({ teamId, rooms }: { teamId: string; rooms: string[] }) =>
|
||||
// RC 3.13.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.post('teams.addRooms', { teamId, rooms });
|
||||
|
||||
export const removeTeamRoom = ({ roomId, teamId }: { roomId: string; teamId: string }) =>
|
||||
|
|
Loading…
Reference in New Issue