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

51 lines
901 B
React
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($accumulated: Float!) {
timerStop(accumulated: $accumulated)
}
`;
2024-01-17 20:12:27 +08:00
export const TIMER_SWITCH_MODE = gql`
mutation timerSwitchMode($stopwatch: Boolean!) {
timerSwitchMode(stopwatch: $stopwatch)
}
`;
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-16 22:19:11 +08:00
};