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,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-01-10 21:21:48 +08:00
|
|
|
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,
|
|
|
|
};
|