bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/waiting-users/waiting-users-graphql/queries.ts

37 lines
695 B
TypeScript
Raw Normal View History

import { gql } from '@apollo/client';
import { User } from '/imports/ui/Types/user';
export type GuestWaitingUser = {
isAllowed: boolean
guestLobbyMessage: string | null;
isDenied: boolean;
user: Partial<User>;
};
export interface GuestWaitingUsers {
user_guest: Array<GuestWaitingUser>
}
export const GET_GUEST_WAITING_USERS_SUBSCRIPTION = gql`
subscription getGuestWaitingUsers {
user_guest(where: {isWaiting: {_eq: true}}) {
guestLobbyMessage
isAllowed
isDenied
userId
user {
authed
userId
name
color
role
avatar
}
}
}
`;
export default {
GET_GUEST_WAITING_USERS_SUBSCRIPTION,
};