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

116 lines
2.5 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
isCurrentPage
num
pageId
scaledHeight
scaledViewBoxHeight
scaledViewBoxWidth
scaledWidth
svgUrl: urlsJson(path: "$.svg")
2023-09-28 04:42:47 +08:00
width
xOffset
yOffset
presentationId
content
downloadFileUri
2023-10-18 00:35:48 +08:00
totalPages
downloadable
2023-10-03 20:08:12 +08:00
presentationName
isDefaultPresentation
2023-09-28 04:42:47 +08:00
}
}`;
export const PRESENTATIONS_SUBSCRIPTION = gql`subscription PresentationsSubscription {
pres_presentation {
2023-10-18 00:35:48 +08:00
uploadInProgress
current
downloadFileUri
downloadable
2023-10-18 00:35:48 +08:00
uploadErrorDetailsJson
uploadErrorMsgKey
filenameConverted
isDefault
name
2023-10-18 00:35:48 +08:00
totalPages
totalPagesUploaded
presentationId
removable
uploadCompleted
}
}`;
2023-10-20 02:56:13 +08:00
export const EXPORTING_PRESENTATIONS_SUBSCRIPTION = gql`subscription PresentationsSubscription {
pres_presentation {
uploadInProgress
current
downloadFileUri
downloadable
uploadErrorDetailsJson
uploadErrorMsgKey
filenameConverted
isDefault
name
totalPages
totalPagesUploaded
presentationId
removable
uploadCompleted
exportToChatInProgress
exportToChatStatus
exportToChatCurrentPage
exportToChatHasError
}
}`;
export const PROCESSED_PRESENTATIONS_SUBSCRIPTION = gql`subscription ProcessedPresentationsSubscription {
2023-10-18 04:42:59 +08:00
pres_presentation(where: { uploadCompleted: { _eq: true } }) {
current
name
presentationId
}
}`;
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($pageId: String!) {
pres_page_writers(where: { pageId: { _eq: $pageId } }) {
userId
}
}
`;
2023-09-28 04:42:47 +08:00
export const CURRENT_PAGE_WRITERS_QUERY = gql`query currentPageWritersQuery {
pres_page_writers {
userId
pageId
}
}`;
2023-09-28 10:15:33 +08:00
export default CURRENT_PAGE_ANNOTATIONS_QUERY;