bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/captions/queries.ts

30 lines
498 B
TypeScript
Raw Normal View History

2024-04-17 06:39:29 +08:00
import { gql } from '@apollo/client';
export interface CaptionTypedActiveLocale {
lang: string;
userOwner: {
userId: string;
name: string;
};
}
export interface GetActiveCaptionsResponse {
caption_typed_activeLocales: CaptionTypedActiveLocale[];
}
export const getActiveCaptions = gql`
subscription getActiveCaptions {
caption_typed_activeLocales {
lang
userOwner {
userId
name
}
}
}
`;
export default {
getActiveCaptions,
};