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

115 lines
2.8 KiB
React
Raw Normal View History

import { gql } from '@apollo/client';
export const PRESENTATION_SET_ZOOM = gql`
mutation PresentationSetZoom($presentationId: String!, $pageId: String!, $pageNum: Int!, $xOffset: Float!, $yOffset: Float!, $widthRatio: Float!, $heightRatio: Float!) {
presentationSetZoom(
presentationId: $presentationId,
pageId: $pageId,
pageNum: $pageNum,
xOffset: $xOffset,
yOffset: $yOffset,
widthRatio: $widthRatio,
heightRatio: $heightRatio,
)
}
`;
export const PRESENTATION_SET_WRITERS = gql`
mutation PresentationSetWriters($pageId: String!, $usersIds: [String]!) {
presentationSetWriters(
pageId: $pageId,
usersIds: $usersIds,
)
}
`;
2024-01-20 22:01:20 +08:00
export const PRESENTATION_SET_PAGE = gql`
mutation PresentationSetPage($presentationId: String!, $pageId: String!) {
presentationSetPage(
presentationId: $presentationId,
pageId: $pageId,
)
}
`;
2024-01-20 22:43:34 +08:00
export const PRESENTATION_SET_DOWNLOADABLE = gql`
mutation PresentationSetDownloadable(
$presentationId: String!,
$downloadable: Boolean!,
$fileStateType: String!,) {
presentationSetDownloadable(
presentationId: $presentationId,
downloadable: $downloadable,
fileStateType: $fileStateType,
)
}
`;
export const PRESENTATION_EXPORT = gql`
mutation PresentationExport(
$presentationId: String!,
$fileStateType: String!,) {
presentationExport(
presentationId: $presentationId,
fileStateType: $fileStateType,
)
}
`;
2024-01-23 20:51:14 +08:00
export const PRESENTATION_SET_CURRENT = gql`
mutation PresentationSetCurrent($presentationId: String!) {
presentationSetCurrent(
presentationId: $presentationId,
)
}
`;
2024-01-23 21:55:40 +08:00
export const PRESENTATION_REMOVE = gql`
mutation PresentationRemove($presentationId: String!) {
presentationRemove(
presentationId: $presentationId,
)
}
`;
2024-01-23 22:31:39 +08:00
export const PRES_ANNOTATION_DELETE = gql`
mutation PresAnnotationDelete($pageId: String!, $annotationsIds: [String]!) {
presAnnotationDelete(
pageId: $pageId,
annotationsIds: $annotationsIds,
)
}
`;
2024-01-24 19:37:51 +08:00
export const PRES_ANNOTATION_SUBMIT = gql`
mutation PresAnnotationSubmit($pageId: String!, $annotations: json!) {
presAnnotationSubmit(
pageId: $pageId,
annotations: $annotations,
)
}
`;
2024-03-12 23:03:43 +08:00
export const PRESENTATION_PUBLISH_CURSOR = gql`
mutation PresentationPublishCursor($whiteboardId: String!, $xPercent: Float!, $yPercent: Float!) {
presentationPublishCursor(
whiteboardId: $whiteboardId,
xPercent: $xPercent,
yPercent: $yPercent,
)
}
`;
export default {
PRESENTATION_SET_ZOOM,
PRESENTATION_SET_WRITERS,
2024-01-20 22:01:20 +08:00
PRESENTATION_SET_PAGE,
2024-01-20 22:43:34 +08:00
PRESENTATION_SET_DOWNLOADABLE,
PRESENTATION_EXPORT,
2024-01-23 20:51:14 +08:00
PRESENTATION_SET_CURRENT,
2024-01-23 21:55:40 +08:00
PRESENTATION_REMOVE,
2024-01-23 22:31:39 +08:00
PRES_ANNOTATION_DELETE,
2024-01-24 19:37:51 +08:00
PRES_ANNOTATION_SUBMIT,
2024-03-12 23:03:43 +08:00
PRESENTATION_PUBLISH_CURSOR,
};