bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/audio-graphql/queries.ts
2024-06-06 15:47:41 -03:00

30 lines
477 B
TypeScript

import { gql } from '@apollo/client';
interface VoiceUsers {
joined: string | null;
listenOnly: string | null;
muted: string | null;
talking: string | null;
userId: string;
}
export interface VoiceUsersResponse {
user_voice: VoiceUsers[];
}
export const VOICE_USERS_SUBSCRIPTION = gql`
subscription VoiceUsers {
user_voice {
joined
listenOnly
muted
talking
userId
}
}
`;
export default {
VOICE_USERS_SUBSCRIPTION,
};