bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/waiting-users/mutations.tsx

47 lines
937 B
TypeScript
Raw Normal View History

2024-01-10 20:07:38 +08:00
import { gql } from '@apollo/client';
2024-01-10 20:39:28 +08:00
export interface GuestUserApprovalStatus {
guest: string;
status: string;
}
2024-01-10 20:07:38 +08:00
export const SET_POLICY = gql`
mutation SetPolicy($guestPolicy: String!) {
guestUsersSetPolicy(
guestPolicy: $guestPolicy,
)
}
`;
2024-01-10 20:39:28 +08:00
export const SUBMIT_APPROVAL_STATUS = gql`
mutation SubmitApprovalStatus($guests: [GuestUserApprovalStatus]!) {
guestUsersSubmitApprovalStatus(
guests: $guests,
)
}
`;
2024-01-10 21:05:14 +08:00
export const SET_LOBBY_MESSAGE = gql`
mutation SetLobbyMessage($message: String!) {
guestUsersSetLobbyMessage(
message: $message,
)
}
`;
export const SET_LOBBY_MESSAGE_PRIVATE = gql`
mutation SetLobbyMessage($guestId: String!, $message: String!) {
guestUsersSetLobbyMessagePrivate(
guestId: $guestId,
message: $message,
)
}
`;
export default {
SET_POLICY,
SUBMIT_APPROVAL_STATUS,
SET_LOBBY_MESSAGE,
SET_LOBBY_MESSAGE_PRIVATE,
};