2022-02-14 16:20:29 +00:00
|
|
|
import { IRoom } from '../../IRoom';
|
2022-03-03 02:22:59 +00:00
|
|
|
import { IServerTeamUpdateRoom, ITeam, TEAM_TYPE } from '../../ITeam';
|
2022-02-14 16:20:29 +00:00
|
|
|
|
|
|
|
export type TeamsEndpoints = {
|
|
|
|
'teams.removeRoom': {
|
|
|
|
POST: (params: { roomId: string; teamId: string }) => { room: IRoom };
|
|
|
|
};
|
2022-03-03 02:22:59 +00:00
|
|
|
'teams.updateRoom': {
|
|
|
|
POST: (params: { roomId: string; isDefault: boolean }) => { room: IServerTeamUpdateRoom };
|
|
|
|
};
|
2022-03-02 21:29:30 +00:00
|
|
|
'teams.convertToChannel': {
|
|
|
|
POST: (params: { teamId: string; roomsToRemove?: string[] }) => {};
|
|
|
|
};
|
2022-03-02 20:39:04 +00:00
|
|
|
'teams.removeMember': {
|
|
|
|
POST: (params: { teamId: string; userId: string; rooms?: string[] }) => {};
|
|
|
|
};
|
2022-03-02 20:28:58 +00:00
|
|
|
'teams.addRooms': {
|
|
|
|
POST: (params: { teamId: string; rooms: string[] }) => { rooms: IRoom[] };
|
|
|
|
};
|
2022-03-02 20:17:42 +00:00
|
|
|
'teams.create': {
|
|
|
|
POST: (params: {
|
|
|
|
name: string;
|
|
|
|
users: string[];
|
|
|
|
type: TEAM_TYPE;
|
|
|
|
room: { readOnly: boolean; extraData: { broadcast: boolean; encrypted: boolean } };
|
|
|
|
}) => { team: ITeam };
|
|
|
|
};
|
2022-02-14 16:20:29 +00:00
|
|
|
};
|