bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/timer/timer-graphql/queries.tsx

36 lines
558 B
TypeScript
Raw Normal View History

2023-09-25 21:04:28 +08:00
import { gql } from '@apollo/client';
export interface TimerData {
accumulated: number;
active: boolean;
songTrack: string;
time: number;
stopwatch: boolean;
running: boolean;
startedOn: number;
endedOn: number;
2024-04-23 12:00:54 +08:00
startedAt: string;
}
2023-09-25 21:04:28 +08:00
export interface GetTimerResponse {
timer: Array<TimerData>;
2023-09-25 21:04:28 +08:00
}
export const GET_TIMER = gql`
subscription Timer {
2023-09-25 21:04:28 +08:00
timer {
accumulated
active
songTrack
time
stopwatch
running
startedOn
2024-04-23 12:00:54 +08:00
startedAt
endedOn
2023-09-25 21:04:28 +08:00
}
}
`;
export default GET_TIMER;