bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/timer/mutations.ts

65 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-01-16 22:19:11 +08:00
import { gql } from '@apollo/client';
export const TIMER_ACTIVATE = gql`
mutation timerActivate($stopwatch: Boolean!, $running: Boolean!, $time: Int!) {
timerActivate(
stopwatch: $stopwatch,
running: $running,
time: $time
)
}
`;
2024-01-17 00:51:36 +08:00
export const TIMER_DEACTIVATE = gql`
mutation timerDeactivate {
timerDeactivate
}
`;
2024-01-17 00:55:31 +08:00
export const TIMER_RESET = gql`
mutation timerReset {
timerReset
}
`;
2024-01-17 19:29:19 +08:00
export const TIMER_START = gql`
mutation timerStart {
timerStart
}
`;
export const TIMER_STOP = gql`
mutation timerStop {
timerStop
2024-01-17 19:29:19 +08:00
}
`;
2024-01-17 20:12:27 +08:00
export const TIMER_SWITCH_MODE = gql`
mutation timerSwitchMode($stopwatch: Boolean!) {
timerSwitchMode(stopwatch: $stopwatch)
}
`;
2024-01-17 20:22:50 +08:00
export const TIMER_SET_SONG_TRACK = gql`
mutation timerSetSongTrack($track: String!) {
timerSetSongTrack(track: $track)
}
`;
2024-01-17 22:41:33 +08:00
export const TIMER_SET_TIME = gql`
mutation timerSetTime($time: Int!) {
timerSetTime(time: $time)
}
`;
2024-01-16 22:19:11 +08:00
export default {
TIMER_ACTIVATE,
2024-01-17 00:51:36 +08:00
TIMER_DEACTIVATE,
2024-01-17 00:55:31 +08:00
TIMER_RESET,
2024-01-17 19:29:19 +08:00
TIMER_START,
TIMER_STOP,
2024-01-17 20:12:27 +08:00
TIMER_SWITCH_MODE,
2024-01-17 20:22:50 +08:00
TIMER_SET_SONG_TRACK,
2024-01-17 22:41:33 +08:00
TIMER_SET_TIME,
2024-01-16 22:19:11 +08:00
};