bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/breakout-room/mutations.tsx

85 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-01-13 03:53:34 +08:00
import { gql } from '@apollo/client';
export const BREAKOUT_ROOM_CREATE = gql`
mutation BreakoutRoomCreate(
$record: Boolean!,
$captureNotes: Boolean!,
$captureSlides: Boolean!,
$durationInMinutes: Int!,
$sendInviteToModerators: Boolean!,
$rooms: [BreakoutRoom]!,
) {
breakoutRoomCreate(
record: $record,
captureNotes: $captureNotes,
captureSlides: $captureSlides,
durationInMinutes: $durationInMinutes,
sendInviteToModerators: $sendInviteToModerators,
rooms: $rooms,
)
}
`;
2024-01-15 20:47:17 +08:00
export const BREAKOUT_ROOM_END_ALL = gql`
mutation {
breakoutRoomEndAll
}
`;
2024-01-15 21:48:38 +08:00
export const BREAKOUT_ROOM_MOVE_USER = gql`
mutation BreakoutRoomMoveUser(
$userId: String!,
$fromBreakoutRoomId: String!,
$toBreakoutRoomId: String!,
) {
breakoutRoomMoveUser(
userId: $userId,
fromBreakoutRoomId: $fromBreakoutRoomId,
toBreakoutRoomId: $toBreakoutRoomId,
)
}
`;
export const BREAKOUT_ROOM_SEND_MESSAGE_TO_ALL = gql`
mutation BreakoutRoomSendMessageToAll($message: String!) {
breakoutRoomSendMessageToAll(
message: $message,
)
}
`;
2024-01-16 03:50:37 +08:00
export const BREAKOUT_ROOM_SET_TIME = gql`
mutation BreakoutRoomSetTime($timeInMinutes: Int!) {
breakoutRoomSetTime(
timeInMinutes: $timeInMinutes,
)
}
`;
2024-01-16 19:28:15 +08:00
export const USER_TRANSFER_VOICE_TO_MEETING = gql`
mutation UserTransferVoiceToMeeting($fromMeetingId: String!, $toMeetingId: String!) {
userTransferVoiceToMeeting(
fromMeetingId: $fromMeetingId,
toMeetingId: $toMeetingId,
)
}
`;
2024-01-16 19:39:13 +08:00
export const BREAKOUT_ROOM_REQUEST_JOIN_URL = gql`
mutation BreakoutRoomRequestJoinUrl($breakoutRoomId: String!) {
breakoutRoomRequestJoinUrl(
breakoutRoomId: $breakoutRoomId,
)
}
`;
export default {
BREAKOUT_ROOM_CREATE,
BREAKOUT_ROOM_END_ALL,
BREAKOUT_ROOM_MOVE_USER,
BREAKOUT_ROOM_SEND_MESSAGE_TO_ALL,
2024-01-16 19:39:13 +08:00
BREAKOUT_ROOM_SET_TIME,
2024-01-16 19:28:15 +08:00
USER_TRANSFER_VOICE_TO_MEETING,
2024-01-16 19:39:13 +08:00
BREAKOUT_ROOM_REQUEST_JOIN_URL,
};