bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/queries.jsx

64 lines
1.3 KiB
React
Raw Normal View History

2023-09-28 04:42:47 +08:00
import { gql } from '@apollo/client';
export const CURRENT_PRESENTATION_PAGE_SUBSCRIPTION = gql`subscription CurrentPresentationPagesSubscription {
pres_page_curr {
height
heightRatio
isCurrentPage
num
pageId
scaledHeight
scaledViewBoxHeight
scaledViewBoxWidth
scaledWidth
slideRevealed
urls
viewBoxHeight
viewBoxWidth
width
widthRatio
xOffset
yOffset
presentationId
content
downloadFileUri
numPages
downloadable
2023-09-28 04:42:47 +08:00
}
}`;
2023-09-28 10:15:33 +08:00
export const CURRENT_PAGE_ANNOTATIONS_QUERY = gql`query CurrentPageAnnotationsQuery {
pres_annotation_curr(order_by: { lastUpdatedAt: desc }) {
2023-09-28 04:42:47 +08:00
annotationId
annotationInfo
lastHistorySequence
lastUpdatedAt
pageId
presentationId
userId
}
}`;
2023-09-28 10:15:33 +08:00
export const CURRENT_PAGE_ANNOTATIONS_STREAM = gql`subscription annotationsStream($lastUpdatedAt: timestamptz){
pres_annotation_curr_stream(batch_size: 10, cursor: {initial_value: {lastUpdatedAt: $lastUpdatedAt}}) {
annotationId
annotationInfo
lastUpdatedAt
pageId
presentationId
userId
}
}`;
export const CURRENT_PAGE_WRITERS_SUBSCRIPTION = gql`subscription currentPageWritersSubscription {
pres_page_writers {
changedModeOn
isCurrentPage
pageId
presentationId
userId
}
}`;
2023-09-28 04:42:47 +08:00
2023-09-28 10:15:33 +08:00
export default CURRENT_PAGE_ANNOTATIONS_QUERY;