bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/timer/timer-graphql/queries.tsx
2024-04-23 01:00:54 -03:00

36 lines
558 B
TypeScript

import { gql } from '@apollo/client';
export interface TimerData {
accumulated: number;
active: boolean;
songTrack: string;
time: number;
stopwatch: boolean;
running: boolean;
startedOn: number;
endedOn: number;
startedAt: string;
}
export interface GetTimerResponse {
timer: Array<TimerData>;
}
export const GET_TIMER = gql`
subscription Timer {
timer {
accumulated
active
songTrack
time
stopwatch
running
startedOn
startedAt
endedOn
}
}
`;
export default GET_TIMER;