bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/captions/queries.ts
2024-04-16 19:39:29 -03:00

30 lines
498 B
TypeScript

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,
};