@pitcher/js-api 1.26.0-beta.1 → 1.26.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/impact-js-api.spec.json +15 -0
- package/js-api.esm.js +440 -12
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +148 -36
- package/lib/apps/assets-manager/App.vue.d.ts +75 -0
- package/lib/apps/assets-manager/AssetsTab.vue.d.ts +22 -0
- package/lib/apps/assets-manager/components/AssetGridItem.vue.d.ts +16 -0
- package/lib/apps/browser/App.vue.d.ts +3 -1
- package/lib/apps/browser/appTypes.d.ts +4 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/BulkShareboxWarningModal.vue.d.ts +15 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/SelectionActions.vue.d.ts +1 -1
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModal.vue.d.ts +11 -7
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModalProperties.vue.d.ts +5 -1
- package/lib/apps/browser/stores/api.d.ts +51 -12
- package/lib/apps/browser/stores/app.d.ts +3 -0
- package/lib/apps/browser/stores/upload.d.ts +16 -20
- package/lib/apps/browser/types/actionKeys.d.ts +22 -0
- package/lib/apps/canvas-builder/App.vue.d.ts +317 -261
- package/lib/apps/canvas-builder/components/container/AddComponentModal/AddComponentModal.vue.d.ts +148 -36
- package/lib/apps/canvas-builder/components/container/AnnotationMenu/AnnotationMenu.vue.d.ts +60 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/AnnotationContent.vue.d.ts +8 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/CanvasContent/pageWrapper.paginated.vue.d.ts +21 -9
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +7 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/{EditableComponentRevamp.vue.d.ts → EditableComponentContent.vue.d.ts} +15 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/container/NavigationWrapper/NavigationWrapper.vue.d.ts +5 -1
- package/lib/apps/canvas-builder/components/container/Navigator/Navigator.vue.d.ts +162 -37
- package/lib/apps/canvas-builder/components/container/PopupApps/AdaptivePopupAppsButtons.vue.d.ts +17 -0
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridCarousel.vue.d.ts +20 -20
- package/lib/apps/canvas-builder/components/ui/ContentList/ContentList.raw.vue.d.ts +30 -0
- package/lib/apps/canvas-builder/components/ui/ContentList/ContentList.vue.d.ts +76 -0
- package/lib/apps/canvas-builder/components/ui/ContentList/ContentListItems.vue.d.ts +21 -0
- package/lib/apps/canvas-builder/components/ui/ContentList/content.store.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.edit.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.header.vue.d.ts +19 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.settings.vue.d.ts +10 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.utils.d.ts +32 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.vue.d.ts +27 -0
- package/lib/apps/canvas-builder/components/ui/DataCharts/DataCharts.raw.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/DataCharts/types.d.ts +87 -8
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.utils.d.ts +16 -0
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.raw.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.settings.vue.d.ts +13 -9
- package/lib/apps/canvas-builder/components/ui/Html/CAiHtmlActions.vue.d.ts +23 -0
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.raw.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Link/Link.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Page/Page.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Root/Root.settings.vue.d.ts +11 -7
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionItemModal.vue.d.ts +6 -2
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +7 -7
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +154 -0
- package/lib/apps/canvas-builder/composables/useAnnotation.d.ts +29 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +1815 -286
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +192 -18
- package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +4 -2
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +184 -4
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +9 -9
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +21 -4
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -1
- package/lib/apps/canvas-builder/composables/useControlBarCollapse.d.ts +8 -0
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +1 -2
- package/lib/apps/canvas-builder/composables/useCrmShapeWithSectionContext.d.ts +5 -0
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +0 -6
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +2 -4
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -4
- package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +98 -0
- package/lib/apps/canvas-builder/composables/useScribbleToolbar.d.ts +11 -0
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/useTemporaryContext.d.ts +14 -0
- package/lib/apps/canvas-builder/constants/theme.const.d.ts +34 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +71 -2
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
- package/lib/apps/canvas-builder/util/iframe.util.d.ts +16 -0
- package/lib/apps/canvas-builder/util/print.util.d.ts +22 -0
- package/lib/apps/canvas-selector/components/CanvasSelectionArea.vue.d.ts +171 -1
- package/lib/apps/canvas-selector/components/Sections.vue.d.ts +160 -1
- package/lib/apps/canvas-selector/stores/app.d.ts +28 -28
- package/lib/apps/collection-player/App.vue.d.ts +1 -0
- package/lib/apps/collection-player/components/ImageWithAnnotations.vue.d.ts +5 -1
- package/lib/apps/collection-player/stores/app.store.d.ts +3 -0
- package/lib/apps/collection-player/types/collection-player.type.d.ts +17 -0
- package/lib/apps/collection-selector/App.vue.d.ts +7 -7
- package/lib/apps/collection-selector/stores/app.store.d.ts +4 -2
- package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +16 -7
- package/lib/apps/collection-selector/utils/data.util.d.ts +4 -4
- package/lib/apps/content-selector/App.vue.d.ts +2 -0
- package/lib/apps/content-selector/components/Assets.vue.d.ts +2 -2
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +1 -0
- package/lib/apps/content-selector/components/Content.vue.d.ts +74 -1
- package/lib/apps/content-selector/components/ui/GridItem.vue.d.ts +12 -2
- package/lib/apps/content-selector/stores/app.d.ts +16 -1
- package/lib/apps/ppt-conversion-selector/stores/app.store.d.ts +4 -1
- package/lib/apps/ppt-conversion-selector/utils/thumbnail.util.d.ts +1 -0
- package/lib/components/CAlgoliaSearch/CAlgoliaSearch.vue.d.ts +18 -0
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +2 -0
- package/lib/components/CCarousel/CCarousel.vue.d.ts +118 -20
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -6
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +7 -5
- package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +4 -0
- package/lib/components/CContactSelector/CContactSelector.vue.d.ts +7 -0
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +56 -3
- package/lib/components/CContentError/CContentError.vue.d.ts +9 -0
- package/lib/components/CCreateCanvasModal/CCreateCanvasModalTemplatesSelectOption.vue.d.ts +3 -0
- package/lib/components/CCreateTemplateSectionBlockModal/CCreateTemplateSectionBlockModal.vue.d.ts +2 -2
- package/lib/components/CCreateThemeModal/steps/CThemeSettingsStep.vue.d.ts +10 -8
- package/lib/components/CDataTable/CDataTable.vue.d.ts +876 -100
- package/lib/components/CFileAccessManagement/CFileAccessManagement.vue.d.ts +6 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +5 -9
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +0 -5
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.link.types.d.ts +3 -2
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +2 -6
- package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +1 -0
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +11 -7
- package/lib/components/CImage/CImage.vue.d.ts +110 -20
- package/lib/components/CInput/CInput.vue.d.ts +148 -36
- package/lib/components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue.d.ts +1 -1
- package/lib/components/CMonacoEditor/CMonacoEditor.vue.d.ts +2 -0
- package/lib/components/CPdfDimensionsSelector/CPdfDimensionsSelector.vue.d.ts +27 -0
- package/lib/components/CPillSelect/CPillSelect.vue.d.ts +14 -0
- package/lib/components/CPopularityAndEngagementIcons/CPopularityAndEngagementExtended.vue.d.ts +1 -1
- package/lib/components/CProcessingOverlay/CProcessingOverlay.vue.d.ts +19 -0
- package/lib/components/CRenameModal/CRenameModal.vue.d.ts +28 -0
- package/lib/components/CRichTextEditor/components/CDynamicValueTreeSelect.vue.d.ts +290 -80
- package/lib/components/CRichTextEditor/components/CFormatterWithFieldSelect.vue.d.ts +468 -130
- package/lib/components/CRichTextEditor/components/CHandlebarsHelperTreeSelect.vue.d.ts +288 -80
- package/lib/components/CRichTextEditor/components/CHyperLinkToolbar.vue.d.ts +148 -36
- package/lib/components/CSectionSelectionActions/CSectionSelectionActions.vue.d.ts +19 -0
- package/lib/components/CSectionSmartFolders/CSectionSmartFolders.vue.d.ts +27 -1
- package/lib/components/CSectionSmartFolders/CSectionSmartFoldersToolbar.vue.d.ts +11 -0
- package/lib/components/CSlideViewer/CSlideViewer.pdfjs.vue.d.ts +18 -0
- package/lib/components/CSlideViewer/CSlideViewer.pspdfkit.vue.d.ts +14 -0
- package/lib/components/CSlideViewer/CSlideViewer.vue.d.ts +2 -7
- package/lib/components/CTable/CTable.vue.d.ts +6 -5
- package/lib/components/CTableInput/CTableInput.vue.d.ts +296 -72
- package/lib/components/CTableTag/CTableTag.vue.d.ts +290 -38
- package/lib/components/CTags/CTags.vue.d.ts +290 -38
- package/lib/components/CTemplateAccessInfo/CTemplateAccessInfo.vue.d.ts +25 -0
- package/lib/components/CTemplateAccessManage/CTemplateAccessManage.vue.d.ts +26 -0
- package/lib/components/CUpsertFolderModal/CUpsertFolderModal.vue.d.ts +2 -2
- package/lib/components/CUserMenu/CUserMenu.vue.d.ts +109 -30
- package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +440 -0
- package/lib/components/assignedCanvases/CAssignedCanvasesManagementToolbar.vue.d.ts +41 -0
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +46 -60
- package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +13 -19
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +21 -17
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +2 -2
- package/lib/components/filters/CSearchFilter.vue.d.ts +3 -1
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +11 -7
- package/lib/components/savedCanvases/CSavedCanvasesManagementActionsCell.vue.d.ts +2 -2
- package/lib/components/savedCanvases/CSavedCanvasesManagementOwnerCell.vue.d.ts +176 -46
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +16 -12
- package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +1 -0
- package/lib/components/sections/CSectionManagement.vue.d.ts +26 -0
- package/lib/components/sections/CSectionManagementToolbar.vue.d.ts +7 -0
- package/lib/components/themes/CThemeManagement.vue.d.ts +98 -10
- package/lib/components/themes/CThemeManagementToolbar.vue.d.ts +31 -3
- package/lib/composables/appsDb.use.d.ts +2 -2
- package/lib/composables/bulkActions.use.d.ts +2 -2
- package/lib/composables/useBroadcastRouteChange.d.ts +4 -0
- package/lib/composables/useCanvasStandardFilters.d.ts +35 -0
- package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
- package/lib/composables/useDeleteUsedCanvasesConfirmation.d.ts +23 -0
- package/lib/composables/useFileDisplayHelpers.d.ts +6 -2
- package/lib/composables/useFileInfo.d.ts +30 -0
- package/lib/composables/useFilterSuggestions.d.ts +8 -16
- package/lib/composables/useFolderNameDescription.d.ts +25 -0
- package/lib/composables/useLegacyCollectionFileLoader.d.ts +31 -0
- package/lib/composables/useMetadataSearch.d.ts +1 -0
- package/lib/composables/usePolling.d.ts +23 -0
- package/lib/composables/useWindowEvents.d.ts +1 -0
- package/lib/constants/cdp.const.d.ts +5 -0
- package/lib/constants/dimensions.const.d.ts +23 -0
- package/lib/constants/tables.const.d.ts +1 -1
- package/lib/custom-naive-locales/it.d.ts +124 -0
- package/lib/custom-naive-locales/ja.d.ts +124 -0
- package/lib/custom-naive-locales/nl.d.ts +124 -0
- package/lib/custom-naive-locales/pt-br.d.ts +124 -0
- package/lib/custom-naive-locales/pt.d.ts +124 -0
- package/lib/custom-naive-locales/th.d.ts +124 -0
- package/lib/custom-naive-locales/zh.d.ts +124 -0
- package/lib/directives/vTrustedHtml.d.ts +6 -0
- package/lib/main.lib.d.ts +26 -3
- package/lib/sdk/api/HighLevelApi.d.ts +31 -2
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
- package/lib/sdk/api/modules/admin/index.d.ts +1 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +13 -0
- package/lib/sdk/api/modules/dsr/files.dsr.d.ts +12 -0
- package/lib/sdk/api/modules/dsr/index.d.ts +3 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +6 -1
- package/lib/sdk/api/modules/files.d.ts +12 -2
- package/lib/sdk/api/modules/query.d.ts +153 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +35 -1
- package/lib/sdk/api/modules/ui/index.d.ts +1 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +24 -0
- package/lib/sdk/api/modules/webView.d.ts +2 -1
- package/lib/sdk/interfaces.d.ts +61 -3
- package/lib/sdk/main.d.ts +63 -14
- package/lib/sdk/payload.types.d.ts +133 -0
- package/lib/sdk/peer-connectivity/index.d.ts +3 -0
- package/lib/sdk/peer-connectivity/peerConnectivity.constants.d.ts +13 -0
- package/lib/sdk/peer-connectivity/peerConnectivity.d.ts +3 -0
- package/lib/sdk/peer-connectivity/peerConnectivity.types.d.ts +35 -0
- package/lib/stores/sectionSmartFolderStore.d.ts +2 -0
- package/lib/theme/light.d.ts +113 -8
- package/lib/types/app.d.ts +7 -0
- package/lib/types/canvases.d.ts +3 -0
- package/lib/types/files.d.ts +2 -0
- package/lib/types/i18n.types.d.ts +1 -1
- package/lib/types/instanceSettings.types.d.ts +11 -1
- package/lib/types/launchDarkly.types.d.ts +2 -4
- package/lib/types/organizationMetadata.types.d.ts +3 -2
- package/lib/types/organizationSettings.types.d.ts +38 -3
- package/lib/types/sfdc.d.ts +1 -0
- package/lib/util/app.util.d.ts +46 -0
- package/lib/util/handlebars.d.ts +35 -0
- package/lib/util/soql.util.d.ts +2 -0
- package/lib/util/storage.util.d.ts +2 -0
- package/lib/util/string.d.ts +1 -1
- package/lib/util/toCssClassKey.d.ts +1 -0
- package/lib/utils/defaultThumbnail.util.d.ts +3 -0
- package/lib/utils/iframeInitialize.d.ts +12 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +7 -0
- package/types/openapi/models/Account.d.ts +1 -1
- package/types/openapi/models/AccountRequest.d.ts +1 -1
- package/types/openapi/models/Canvas.d.ts +1 -1
- package/types/openapi/models/CanvasCreate.d.ts +2 -2
- package/types/openapi/models/CanvasCreateRequest.d.ts +2 -2
- package/types/openapi/models/CanvasRecommendedFile.d.ts +0 -2
- package/types/openapi/models/CanvasRetrieve.d.ts +2 -2
- package/types/openapi/models/CanvasSection.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +2 -2
- package/types/openapi/models/CanvasUpdateRequest.d.ts +2 -2
- package/types/openapi/models/ContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -1
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/DeletedFile.d.ts +0 -2
- package/types/openapi/models/DeletedFolder.d.ts +4 -0
- package/types/openapi/models/DeletedInstance.d.ts +2 -0
- package/types/openapi/models/DeletedRegion.d.ts +12 -0
- package/types/openapi/models/FavoriteFolder.d.ts +3 -0
- package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
- package/types/openapi/models/File.d.ts +0 -2
- package/types/openapi/models/FileCreate.d.ts +0 -2
- package/types/openapi/models/FileCreateRequest.d.ts +0 -1
- package/types/openapi/models/FileRetrieve.d.ts +0 -2
- package/types/openapi/models/FileUpdate.d.ts +0 -2
- package/types/openapi/models/FileUpdateRequest.d.ts +0 -1
- package/types/openapi/models/Folder.d.ts +4 -0
- package/types/openapi/models/FolderCreate.d.ts +5 -1
- package/types/openapi/models/FolderFile.d.ts +2 -0
- package/types/openapi/models/FolderFolder.d.ts +5 -0
- package/types/openapi/models/FolderRetrieve.d.ts +9 -1
- package/types/openapi/models/FolderUpdate.d.ts +5 -1
- package/types/openapi/models/Instance.d.ts +2 -0
- package/types/openapi/models/InstanceMembership.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipCreate.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -2
- package/types/openapi/models/InstanceRequest.d.ts +1 -0
- package/types/openapi/models/InstanceUpdate.d.ts +2 -0
- package/types/openapi/models/InstanceUpdateRequest.d.ts +1 -0
- package/types/openapi/models/MiniRegion.d.ts +4 -0
- package/types/openapi/models/MiniRegionRequest.d.ts +3 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +1 -0
- package/types/openapi/models/OrganizationAnalyticsInstance.d.ts +2 -0
- package/types/openapi/models/OrganizationAnalyticsTop3Instances.d.ts +2 -0
- package/types/openapi/models/PaginatedRegionList.d.ts +7 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +2 -2
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +0 -1
- package/types/openapi/models/PatchedInstanceMembershipRequest.d.ts +4 -0
- package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedRegionRequest.d.ts +3 -0
- package/types/openapi/models/Region.d.ts +10 -0
- package/types/openapi/models/RegionRequest.d.ts +3 -0
- package/types/openapi/models/SharedLinkCanvas.d.ts +1 -1
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +1 -1
- package/types/openapi/models/User.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/Text/Text.vue.d.ts +0 -111
- package/lib/components/CFileViewer/pdf/CFileViewer.pageThumbFavorite.pdf.use.d.ts +0 -10
- package/lib/components/CImage/CBrokenImage.vue.d.ts +0 -10
- package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +0 -59
- package/lib/directives/usage-track.directive.d.ts +0 -10
- package/lib/util/usage-tracking.util.d.ts +0 -5
- /package/lib/apps/canvas-builder/components/{ui/SectionList/SectionSearch.vue.d.ts → container/Search/Search.vue.d.ts} +0 -0
|
@@ -1,3 +1,155 @@
|
|
|
1
|
-
import { QueryPayload, CRMQueryPayload } from '../../payload.types';
|
|
1
|
+
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload } from '../../payload.types';
|
|
2
2
|
export declare function query(payload: QueryPayload): Promise<any>;
|
|
3
3
|
export declare function crmQuery(payload: CRMQueryPayload): Promise<any>;
|
|
4
|
+
/**
|
|
5
|
+
* Executes a SmartStore query against local CRM data (iOS only).
|
|
6
|
+
* Uses Salesforce Mobile SDK SmartStore query syntax.
|
|
7
|
+
* Validates that the query uses SmartStore syntax before execution.
|
|
8
|
+
*
|
|
9
|
+
* @param {CRMQueryPayload} payload - The query payload containing the SmartStore query string.
|
|
10
|
+
* @returns {Promise<Array<any>>} - Promise resolving with an array of query results from SmartStore.
|
|
11
|
+
* @throws {Error} - Throws an error if the query is not a valid SmartStore query.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // iOS only method to execute a SmartStore query.
|
|
15
|
+
* api.crmSmartQuery({ query: 'SELECT {Account:Id}, {Account:Name} FROM {Account} ORDER BY {Account:Name} LIMIT 10' })
|
|
16
|
+
*/
|
|
17
|
+
export declare function crmSmartQuery(payload: CRMQueryPayload): Promise<Array<any>>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves metadata for a CRM smart object (iOS only).
|
|
20
|
+
* Fetches object metadata from the Salesforce Mobile SDK cache.
|
|
21
|
+
*
|
|
22
|
+
* @param {CRMSmartObjectMetadataPayload} payload - The payload containing the object name.
|
|
23
|
+
* @returns {Promise<any>} - Promise resolving with the object metadata.
|
|
24
|
+
* @throws {Error} - Throws an error if the object name is not provided.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // iOS only method to retrieve CRM object metadata.
|
|
28
|
+
* api.crmSmartObjectMetadata({ object: 'Account' })
|
|
29
|
+
*/
|
|
30
|
+
export declare function crmSmartObjectMetadata(payload: CRMSmartObjectMetadataPayload): Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Upserts CRM objects into local CRM data (iOS only).
|
|
33
|
+
* Uses Salesforce Mobile SDK SmartStore to insert or update records.
|
|
34
|
+
* Each object in the payload specifies a table name, the objects to upsert, and an optional external ID path.
|
|
35
|
+
*
|
|
36
|
+
* **Important**: Always provide `external_id_path` when performing updates to ensure records are
|
|
37
|
+
* matched correctly. Without it, the operation may create duplicate records instead of updating existing ones.
|
|
38
|
+
*
|
|
39
|
+
* **Note**: When creating new records, you must provide an explicit identifier field (e.g., `Id`)
|
|
40
|
+
* in each record object passed from the frontend. The backend does not auto-generate IDs.
|
|
41
|
+
*
|
|
42
|
+
* @param {UpsertCRMObjectsPayload} payload - The upsert payload containing an array of UpsertCRMObject items.
|
|
43
|
+
* @returns {Promise<any>} - Promise resolving with the result of the upsert operation.
|
|
44
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // iOS only method to upsert CRM objects.
|
|
48
|
+
*
|
|
49
|
+
* // Updating existing records - always include external_id_path
|
|
50
|
+
* api.crmSmartUpsertObjects({
|
|
51
|
+
* objects: [
|
|
52
|
+
* {
|
|
53
|
+
* table_name: 'Account',
|
|
54
|
+
* objects: [{ Id: '001xx000003DGbQAAW', Name: 'Acme Corp Updated' }],
|
|
55
|
+
* external_id_path: 'Id' // Required for updates to match existing records
|
|
56
|
+
* }
|
|
57
|
+
* ]
|
|
58
|
+
* })
|
|
59
|
+
*
|
|
60
|
+
* // Creating new records - explicit ID required in each record
|
|
61
|
+
* api.crmSmartUpsertObjects({
|
|
62
|
+
* objects: [
|
|
63
|
+
* {
|
|
64
|
+
* table_name: 'Account',
|
|
65
|
+
* objects: [
|
|
66
|
+
* { Id: '001xx000003NEW001', Name: 'New Company' }, // Explicit ID required
|
|
67
|
+
* { Id: '001xx000003NEW002', Name: 'Another Company' }
|
|
68
|
+
* ]
|
|
69
|
+
* }
|
|
70
|
+
* ]
|
|
71
|
+
* })
|
|
72
|
+
*/
|
|
73
|
+
export declare function crmSmartUpsertObjects(payload: UpsertCRMObjectsPayload): Promise<any>;
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves validation rules for a CRM smart object (iOS only).
|
|
76
|
+
* This method fetches the validation rules configured for a specific CRM object type
|
|
77
|
+
* from the local SmartStore cache.
|
|
78
|
+
*
|
|
79
|
+
* @param {CRMSmartObjectValidationRulesPayload} payload - The payload containing the object name.
|
|
80
|
+
* @returns {Promise<any>} - Promise resolving with the validation rules for the specified object.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // iOS only method to get validation rules for an Account object.
|
|
84
|
+
* api.crmSmartObjectValidationRules({ object: 'Account' })
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* // Get validation rules for a Contact object.
|
|
88
|
+
* api.crmSmartObjectValidationRules({ object: 'Contact' })
|
|
89
|
+
*/
|
|
90
|
+
export declare function crmSmartObjectValidationRules(payload: CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* Deletes CRM objects from local CRM data (iOS only).
|
|
93
|
+
* Uses Salesforce Mobile SDK SmartStore to delete records.
|
|
94
|
+
* Each object in the payload specifies a table name and an array of IDs to delete.
|
|
95
|
+
*
|
|
96
|
+
* @param {CRMSmartDeleteObjectsPayload} payload - The delete payload containing an array of CRMDeleteObject items.
|
|
97
|
+
* @returns {Promise<any>} - Promise resolving with the result of the delete operation.
|
|
98
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* // iOS only method to delete CRM objects.
|
|
102
|
+
* api.crmSmartDeleteObjects({
|
|
103
|
+
* objects: [
|
|
104
|
+
* {
|
|
105
|
+
* table_name: 'Account',
|
|
106
|
+
* ids: ['001xx000003DGbQAAW', '001xx000003DGbRABW']
|
|
107
|
+
* },
|
|
108
|
+
* {
|
|
109
|
+
* table_name: 'Contact',
|
|
110
|
+
* ids: ['003xx000004TmiQAAS']
|
|
111
|
+
* }
|
|
112
|
+
* ]
|
|
113
|
+
* })
|
|
114
|
+
*/
|
|
115
|
+
export declare function crmSmartDeleteObjects(payload: CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
116
|
+
/**
|
|
117
|
+
* Creates new records in CRM (Web only).
|
|
118
|
+
* Uses Salesforce REST API to create records.
|
|
119
|
+
*
|
|
120
|
+
* @param {CRMCreatePayload} payload - The create payload containing sobject type and records.
|
|
121
|
+
* @returns {Promise<any>} - Promise resolving with the result of the create operation.
|
|
122
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* // Web only method to create CRM records.
|
|
126
|
+
* api.crmCreate({
|
|
127
|
+
* sobject: 'Order__c',
|
|
128
|
+
* records: [
|
|
129
|
+
* { Account__c: '001xx000003DGbQAAW', Order_Date__c: '2024-01-15' },
|
|
130
|
+
* { Account__c: '001xx000003DGbRABW', Order_Date__c: '2024-01-16' }
|
|
131
|
+
* ]
|
|
132
|
+
* })
|
|
133
|
+
*/
|
|
134
|
+
export declare function crmCreate(payload: CRMCreatePayload): Promise<any>;
|
|
135
|
+
/**
|
|
136
|
+
* Upserts records in CRM (Web only).
|
|
137
|
+
* Uses Salesforce REST API to insert or update records based on external ID.
|
|
138
|
+
* If a record with matching external ID exists, it will be updated; otherwise, a new record is created.
|
|
139
|
+
*
|
|
140
|
+
* @param {CRMUpsertPayload} payload - The upsert payload containing sobject type, records, and external ID field.
|
|
141
|
+
* @returns {Promise<any>} - Promise resolving with the result of the upsert operation.
|
|
142
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* // Web only method to upsert CRM records.
|
|
146
|
+
* api.crmUpsert({
|
|
147
|
+
* sobject: 'Order__c',
|
|
148
|
+
* records: [
|
|
149
|
+
* { External_Id__c: 'ORD-001', Account__c: '001xx000003DGbQAAW', Status__c: 'Submitted' },
|
|
150
|
+
* { External_Id__c: 'ORD-002', Account__c: '001xx000003DGbRABW', Status__c: 'Draft' }
|
|
151
|
+
* ],
|
|
152
|
+
* external_id_field: 'External_Id__c'
|
|
153
|
+
* })
|
|
154
|
+
*/
|
|
155
|
+
export declare function crmUpsert(payload: CRMUpsertPayload): Promise<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanvasRetrieve } from '../../../../../types/openapi';
|
|
2
|
-
import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse } from './types.ui';
|
|
2
|
+
import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse, UiOpenCollectionPlayerOverlayRequest } from './types.ui';
|
|
3
3
|
/**
|
|
4
4
|
* Modify the currently loaded canvas. On the web it sends
|
|
5
5
|
* an [update_canvas](https://pitcher.readme.io/reference/update_canvas) request to the server.
|
|
@@ -133,6 +133,40 @@ export declare function openCanvasOverlay(payload: {
|
|
|
133
133
|
bottom?: number | string;
|
|
134
134
|
};
|
|
135
135
|
}): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Opens the collection player overlay to view a collection of files/slides.
|
|
138
|
+
*
|
|
139
|
+
* This method opens the native Pitcher collection player interface with the specified
|
|
140
|
+
* files and slides. You can show entire files or specific pages from files.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* // Open collection with full files
|
|
144
|
+
* useUi().openCollectionPlayerOverlay({
|
|
145
|
+
* groups: [
|
|
146
|
+
* { id: 'file-123-abc', name: 'Product Overview' },
|
|
147
|
+
* { id: 'file-456-def', name: 'Pricing Slides' }
|
|
148
|
+
* ],
|
|
149
|
+
* name: 'Sales Deck'
|
|
150
|
+
* })
|
|
151
|
+
*
|
|
152
|
+
* // Open collection with specific slides/pages
|
|
153
|
+
* useUi().openCollectionPlayerOverlay({
|
|
154
|
+
* groups: [
|
|
155
|
+
* {
|
|
156
|
+
* id: 'file-123-abc',
|
|
157
|
+
* name: 'Product Overview',
|
|
158
|
+
* slides: [
|
|
159
|
+
* { file_id: 'file-123-abc', slide_index: 0 },
|
|
160
|
+
* { file_id: 'file-123-abc', slide_index: 2 }
|
|
161
|
+
* ]
|
|
162
|
+
* }
|
|
163
|
+
* ],
|
|
164
|
+
* name: 'Custom Sales Presentation'
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* @param payload Object containing groups array and collection name
|
|
168
|
+
*/
|
|
169
|
+
export declare function openCollectionPlayerOverlay(payload: UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
136
170
|
/**
|
|
137
171
|
* Allows the user to select (and preselect) canvases from the instance.
|
|
138
172
|
*
|
|
@@ -143,6 +143,7 @@ declare const _default: {
|
|
|
143
143
|
bottom?: number | string;
|
|
144
144
|
};
|
|
145
145
|
}): Promise<void>;
|
|
146
|
+
openCollectionPlayerOverlay(payload: import('./types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
146
147
|
selectCanvases(payload?: import('./types.ui').UiSelectCanvasesRequest): Promise<import('./types.ui').UiSelectCanvasesResponse>;
|
|
147
148
|
captureAppError(payload: import('./types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
148
149
|
updateLocation(payload: import('../../../interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -23,6 +23,7 @@ export declare const UI_API_METHOD_TYPES: {
|
|
|
23
23
|
readonly UI_UPDATE_CANVAS: "ui_update_canvas";
|
|
24
24
|
readonly UI_PRINT_CANVAS: "ui_print_canvas";
|
|
25
25
|
readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
|
|
26
|
+
readonly UI_OPEN_COLLECTION_PLAYER_OVERLAY: "ui_open_collection_player_overlay";
|
|
26
27
|
readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
|
|
27
28
|
readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
|
|
28
29
|
readonly UI_UPDATE_LOCATION: "ui_update_location";
|
|
@@ -219,6 +220,25 @@ export interface UiPreselectSfdcMeetingIdResponse {
|
|
|
219
220
|
/** Salesforce Event */
|
|
220
221
|
event: SfEvent | null;
|
|
221
222
|
}
|
|
223
|
+
export interface UiOpenCollectionPlayerOverlayGroup {
|
|
224
|
+
/** File ID */
|
|
225
|
+
id: string;
|
|
226
|
+
/** File name */
|
|
227
|
+
name: string;
|
|
228
|
+
/** Optional: specific slides/pages to show from the file */
|
|
229
|
+
slides?: Array<{
|
|
230
|
+
/** The file ID (same as parent group.id) */
|
|
231
|
+
file_id: string;
|
|
232
|
+
/** Zero-based page/slide index to show */
|
|
233
|
+
slide_index: number;
|
|
234
|
+
}>;
|
|
235
|
+
}
|
|
236
|
+
export interface UiOpenCollectionPlayerOverlayRequest {
|
|
237
|
+
/** Array of files/slides to be played in the collection */
|
|
238
|
+
groups: UiOpenCollectionPlayerOverlayGroup[];
|
|
239
|
+
/** The display name for the collection */
|
|
240
|
+
name: string;
|
|
241
|
+
}
|
|
222
242
|
export type UiMessagePayloads = {
|
|
223
243
|
[UI_MESSAGE_TYPES.UI_MEETING_CANCELED]: UiMeetingCanceledPayload;
|
|
224
244
|
[UI_MESSAGE_TYPES.UI_APP_SET_DATA]: UiAppSetDataPayload;
|
|
@@ -262,12 +282,16 @@ export type UiAppSetDataPayload = {
|
|
|
262
282
|
width: string | undefined;
|
|
263
283
|
/** Height of the canvas */
|
|
264
284
|
height: string | undefined;
|
|
285
|
+
/** Full screen mode status */
|
|
286
|
+
full_screen_mode: boolean | undefined;
|
|
265
287
|
/** Display mode */
|
|
266
288
|
display_mode: string | undefined;
|
|
267
289
|
/** Section index in section list */
|
|
268
290
|
section_index: number | null;
|
|
269
291
|
/** Section list ID */
|
|
270
292
|
section_list_id: string | null;
|
|
293
|
+
/** Canvas correlation ID for tracking */
|
|
294
|
+
canvas_correlation_id: string | undefined;
|
|
271
295
|
};
|
|
272
296
|
export type UiAppUpdateDataPayload = {
|
|
273
297
|
/** Call status */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { OpenWebViewAlwaysOnTop } from '../../payload.types';
|
|
1
|
+
import { OpenWebViewAlwaysOnTop, ShowSyncboxRequestPayload } from '../../payload.types';
|
|
2
2
|
export declare function close(): Promise<any>;
|
|
3
3
|
export declare function openWebViewAlwaysOnTop(payload: OpenWebViewAlwaysOnTop): Promise<void>;
|
|
4
|
+
export declare function showSyncbox(payload: ShowSyncboxRequestPayload): Promise<void>;
|
package/lib/sdk/interfaces.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Emitter } from './utils/eventEmitter';
|
|
2
|
-
import { Favorite, File, User, CanvasRetrieve } from '../../types/openapi';
|
|
2
|
+
import { Favorite, File, User, CanvasRetrieve, CanvasSection } from '../../types/openapi';
|
|
3
3
|
import { PitcherOrg } from '../types/organization.types';
|
|
4
4
|
import { PitcherInstance } from '../types/instance.types';
|
|
5
5
|
import { PaginatedData } from '../types/paginatedData';
|
|
6
6
|
import { LaunchDarklyEnv } from '../types/launchDarkly.types';
|
|
7
7
|
import { CDP_EVENT_TYPE, CLIENT_TYPE } from '../constants/cdp.const';
|
|
8
|
+
import { PeerConnectivityEvent } from './peer-connectivity';
|
|
8
9
|
export declare const PITCHER_EVENT: "PITCHER_EVENT";
|
|
9
10
|
export declare enum PitcherMessageType {
|
|
10
11
|
REQUEST = "PITCHER_REQUEST",
|
|
@@ -65,8 +66,12 @@ export interface PitcherEnv {
|
|
|
65
66
|
active_file?: {
|
|
66
67
|
id: File['id'];
|
|
67
68
|
};
|
|
69
|
+
active_section_id?: CanvasSection['id'];
|
|
70
|
+
active_canvas_id?: CanvasRetrieve['id'];
|
|
71
|
+
canvas_correlation_id?: string;
|
|
68
72
|
};
|
|
69
73
|
device_locale?: string;
|
|
74
|
+
sync_badge_value?: number;
|
|
70
75
|
}
|
|
71
76
|
export interface PitcherAPI extends Emitter<ApiEventMap> {
|
|
72
77
|
request(type: string, body: any, callback: () => any): Promise<PitcherResponse>;
|
|
@@ -106,9 +111,14 @@ export interface StartCallPitcherEvent {
|
|
|
106
111
|
post_action?: string;
|
|
107
112
|
post_action_path?: string;
|
|
108
113
|
}
|
|
114
|
+
export interface RouteChangedPitcherEvent {
|
|
115
|
+
route_name: string;
|
|
116
|
+
route_path: string;
|
|
117
|
+
}
|
|
109
118
|
export declare enum PitcherEventName {
|
|
110
119
|
ENV_CHANGED = "env_changed",
|
|
111
120
|
PHOTOS_CAPTURED = "photos_captured",
|
|
121
|
+
GLOBAL_PHOTO_CAPTURED = "global_photo_captured",
|
|
112
122
|
FILE_DOWNLOADED = "file_downloaded",
|
|
113
123
|
FILE_UPLOAD_PROGRESS = "file_upload_progress",
|
|
114
124
|
UPDATE_LOCATION = "update_location",
|
|
@@ -130,7 +140,14 @@ export declare enum PitcherEventName {
|
|
|
130
140
|
CANVAS_PAGE_NEXT_REQUESTED = "canvas_page_next_requested",
|
|
131
141
|
CANVAS_PAGE_PREVIOUS_REQUESTED = "canvas_page_previous_requested",
|
|
132
142
|
CANVAS_OPEN_REQUESTED = "canvas_open_requested",
|
|
133
|
-
CANVAS_CLOSE_REQUESTED = "canvas_close_requested"
|
|
143
|
+
CANVAS_CLOSE_REQUESTED = "canvas_close_requested",
|
|
144
|
+
ROUTE_CHANGE_REQUESTED = "route_change_requested",
|
|
145
|
+
ITEM_SHAREBOX_STATUS_REQUESTED = "item_sharebox_status_requested",
|
|
146
|
+
ITEM_SHAREBOX_STATUS_UPDATED = "item_sharebox_status_updated",
|
|
147
|
+
ITEM_SHAREBOX_ADD_REQUESTED = "item_sharebox_add_requested",
|
|
148
|
+
ITEM_SHAREBOX_ADD_COMPLETED = "item_sharebox_add_completed",
|
|
149
|
+
SYNC_BADGE_VALUE_REPORTED = "sync_badge_value_reported",
|
|
150
|
+
PEER_CONNECTIVITY_EVENT = "peer_connectivity_event"
|
|
134
151
|
}
|
|
135
152
|
export declare enum PitcherBroadcastedEventName {
|
|
136
153
|
UI_SHOW_MODAL = "ui:show-modal",
|
|
@@ -140,7 +157,8 @@ export declare enum PitcherBroadcastedEventName {
|
|
|
140
157
|
CANVAS_NEXT_BUTTON_CLICKED = "canvas_next_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_NEXT_REQUESTED`
|
|
141
158
|
CANVAS_PREVIOUS_BUTTON_CLICKED = "canvas_previous_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_PREVIOUS_REQUESTED`
|
|
142
159
|
CANVAS_OPENED = "canvas_opened",
|
|
143
|
-
CANVAS_CLOSED = "canvas_closed"
|
|
160
|
+
CANVAS_CLOSED = "canvas_closed",
|
|
161
|
+
ROUTE_CHANGED = "route_changed"
|
|
144
162
|
}
|
|
145
163
|
export declare enum PitcherExternalEventName {
|
|
146
164
|
CREATE_AND_OPEN_CANVAS = "create_and_open_canvas",
|
|
@@ -323,6 +341,13 @@ export interface PitcherEventMap {
|
|
|
323
341
|
* @see iOS-only
|
|
324
342
|
*/
|
|
325
343
|
[PitcherEventName.PHOTOS_CAPTURED]: void;
|
|
344
|
+
/**
|
|
345
|
+
* @see iOS-only
|
|
346
|
+
*/
|
|
347
|
+
[PitcherEventName.GLOBAL_PHOTO_CAPTURED]: {
|
|
348
|
+
url: string;
|
|
349
|
+
section_id?: string;
|
|
350
|
+
};
|
|
326
351
|
/**
|
|
327
352
|
* @see iOS-only
|
|
328
353
|
*/
|
|
@@ -393,6 +418,33 @@ export interface PitcherEventMap {
|
|
|
393
418
|
[PitcherEventName.CANVAS_CLOSE_REQUESTED]: {
|
|
394
419
|
canvas_id?: string;
|
|
395
420
|
};
|
|
421
|
+
/**
|
|
422
|
+
* @see iOS-only
|
|
423
|
+
*/
|
|
424
|
+
[PitcherEventName.ROUTE_CHANGE_REQUESTED]: RouteChangedPitcherEvent;
|
|
425
|
+
[PitcherEventName.ITEM_SHAREBOX_STATUS_REQUESTED]: {
|
|
426
|
+
item_id: string;
|
|
427
|
+
};
|
|
428
|
+
[PitcherEventName.ITEM_SHAREBOX_STATUS_UPDATED]: {
|
|
429
|
+
item_id: string;
|
|
430
|
+
is_in_sharebox: boolean;
|
|
431
|
+
};
|
|
432
|
+
[PitcherEventName.ITEM_SHAREBOX_ADD_REQUESTED]: {
|
|
433
|
+
item_id: string;
|
|
434
|
+
};
|
|
435
|
+
[PitcherEventName.ITEM_SHAREBOX_ADD_COMPLETED]: {
|
|
436
|
+
item_id: string;
|
|
437
|
+
success: boolean;
|
|
438
|
+
is_in_sharebox: boolean;
|
|
439
|
+
error?: string;
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* @see iOS-only
|
|
443
|
+
*/
|
|
444
|
+
[PitcherEventName.SYNC_BADGE_VALUE_REPORTED]: {
|
|
445
|
+
count: number;
|
|
446
|
+
};
|
|
447
|
+
[PitcherEventName.PEER_CONNECTIVITY_EVENT]: PeerConnectivityEvent;
|
|
396
448
|
[PitcherBroadcastedEventName.UI_SHOW_MODAL]: void;
|
|
397
449
|
[PitcherBroadcastedEventName.UI_HIDE_MODAL]: void;
|
|
398
450
|
[PitcherBroadcastedEventName.FAVORITES_CHANGED]: {
|
|
@@ -423,6 +475,12 @@ export interface PitcherEventMap {
|
|
|
423
475
|
canvas_id: string;
|
|
424
476
|
};
|
|
425
477
|
};
|
|
478
|
+
[PitcherBroadcastedEventName.ROUTE_CHANGED]: {
|
|
479
|
+
body: {
|
|
480
|
+
route_name: string;
|
|
481
|
+
route_path: string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
426
484
|
[PitcherExternalEventName.OPEN_CANVAS]: OpenCanvasPitcherEvent;
|
|
427
485
|
[PitcherExternalEventName.START_CALL]: StartCallPitcherEvent;
|
|
428
486
|
[PitcherExternalEventName.CREATE_AND_OPEN_CANVAS]: CreateAndOpenCanvasEvent;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './payload.types';
|
|
|
5
5
|
export * from './api/modules/ui/types.ui';
|
|
6
6
|
export * from './api/modules/admin/types.admin';
|
|
7
7
|
export * from './api/modules/dsr/types.dsr';
|
|
8
|
+
export * from './peer-connectivity';
|
|
8
9
|
export declare let highLevelApi: ReturnType<typeof createHighLevelApi>;
|
|
9
10
|
/**
|
|
10
11
|
* Check out the returned object documentation for the list of available methods.
|
|
@@ -54,6 +55,7 @@ export declare function useUi(): {
|
|
|
54
55
|
bottom?: number | string;
|
|
55
56
|
};
|
|
56
57
|
}): Promise<void>;
|
|
58
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
57
59
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
58
60
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
59
61
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -127,6 +129,7 @@ export declare function useAdmin(): {
|
|
|
127
129
|
bottom?: number | string;
|
|
128
130
|
};
|
|
129
131
|
}): Promise<void>;
|
|
132
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
130
133
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
131
134
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
132
135
|
selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
|
|
@@ -154,6 +157,9 @@ export declare function useDsr(): {
|
|
|
154
157
|
getFile(payload: {
|
|
155
158
|
id: import('../main.lib').File["id"];
|
|
156
159
|
}): Promise<import('../main.lib').File>;
|
|
160
|
+
getAppConfig(payload?: {
|
|
161
|
+
app_name?: string;
|
|
162
|
+
}): Promise<Record<string, any>>;
|
|
157
163
|
embeddableReady(): Promise<void>;
|
|
158
164
|
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
159
165
|
on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
@@ -183,6 +189,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
183
189
|
quitInstance: () => Promise<any>;
|
|
184
190
|
getRequestTypes: () => Promise<any>;
|
|
185
191
|
broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
192
|
+
broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
186
193
|
subscribe: () => Promise<any>;
|
|
187
194
|
unsubscribe: () => Promise<any>;
|
|
188
195
|
open(payload?: import('./payload.types').OpenRequestPayload): Promise<string>;
|
|
@@ -240,8 +247,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
240
247
|
downloadFile(payload: {
|
|
241
248
|
file_id: import('../main.lib').File["id"];
|
|
242
249
|
}): Promise<null>;
|
|
243
|
-
getAppConfig(payload
|
|
244
|
-
app_name
|
|
250
|
+
getAppConfig(payload?: {
|
|
251
|
+
app_name?: string;
|
|
245
252
|
}): Promise<Record<string, any>>;
|
|
246
253
|
getFile(payload: {
|
|
247
254
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -259,6 +266,9 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
259
266
|
}): Promise<import('../main.lib').File["id"]>;
|
|
260
267
|
createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
|
|
261
268
|
selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
|
|
269
|
+
deleteLocalFile(payload: {
|
|
270
|
+
url: string;
|
|
271
|
+
}): Promise<void>;
|
|
262
272
|
getFileRevisions(payload: {
|
|
263
273
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
264
274
|
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -292,6 +302,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
292
302
|
}): Promise<void>;
|
|
293
303
|
query(payload: import('./payload.types').QueryPayload): Promise<any>;
|
|
294
304
|
crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
|
|
305
|
+
crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
|
|
306
|
+
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
307
|
+
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
308
|
+
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
309
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
310
|
+
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
311
|
+
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
295
312
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
296
313
|
getFolder(payload?: {
|
|
297
314
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -331,6 +348,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
331
348
|
submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
|
|
332
349
|
close(): Promise<any>;
|
|
333
350
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
351
|
+
showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
|
|
334
352
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
335
353
|
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
336
354
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
@@ -383,6 +401,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
383
401
|
bottom?: number | string;
|
|
384
402
|
};
|
|
385
403
|
}): Promise<void>;
|
|
404
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
386
405
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
387
406
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
388
407
|
selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
|
|
@@ -391,14 +410,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
391
410
|
captureAppError(payload: import('./api/modules/admin/types.admin').AdminCaptureAppErrorRequest): Promise<void>;
|
|
392
411
|
on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
393
412
|
toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
|
|
394
|
-
} | {
|
|
395
|
-
close(): Promise<void>;
|
|
396
|
-
getFile(payload: {
|
|
397
|
-
id: import('../main.lib').File["id"];
|
|
398
|
-
}): Promise<import('../main.lib').File>;
|
|
399
|
-
embeddableReady(): Promise<void>;
|
|
400
|
-
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
401
|
-
on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
402
413
|
} | {
|
|
403
414
|
ui: {
|
|
404
415
|
promptPia(payload: import('./api/modules/ui/types.ui').UiPromptPiaRequest): Promise<import('./api/modules/ui/types.ui').UiPromptPiaResponse>;
|
|
@@ -431,6 +442,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
431
442
|
bottom?: number | string;
|
|
432
443
|
};
|
|
433
444
|
}): Promise<void>;
|
|
445
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
434
446
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
435
447
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
436
448
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -460,6 +472,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
460
472
|
quitInstance: () => Promise<any>;
|
|
461
473
|
getRequestTypes: () => Promise<any>;
|
|
462
474
|
broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
475
|
+
broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
463
476
|
subscribe: () => Promise<any>;
|
|
464
477
|
unsubscribe: () => Promise<any>;
|
|
465
478
|
open(payload?: import('./payload.types').OpenRequestPayload): Promise<string>;
|
|
@@ -517,8 +530,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
517
530
|
downloadFile(payload: {
|
|
518
531
|
file_id: import('../main.lib').File["id"];
|
|
519
532
|
}): Promise<null>;
|
|
520
|
-
getAppConfig(payload
|
|
521
|
-
app_name
|
|
533
|
+
getAppConfig(payload?: {
|
|
534
|
+
app_name?: string;
|
|
522
535
|
}): Promise<Record<string, any>>;
|
|
523
536
|
getFile(payload: {
|
|
524
537
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -536,6 +549,9 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
536
549
|
}): Promise<import('../main.lib').File["id"]>;
|
|
537
550
|
createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
|
|
538
551
|
selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
|
|
552
|
+
deleteLocalFile(payload: {
|
|
553
|
+
url: string;
|
|
554
|
+
}): Promise<void>;
|
|
539
555
|
getFileRevisions(payload: {
|
|
540
556
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
541
557
|
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -569,6 +585,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
569
585
|
}): Promise<void>;
|
|
570
586
|
query(payload: import('./payload.types').QueryPayload): Promise<any>;
|
|
571
587
|
crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
|
|
588
|
+
crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
|
|
589
|
+
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
590
|
+
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
591
|
+
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
592
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
593
|
+
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
594
|
+
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
572
595
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
573
596
|
getFolder(payload?: {
|
|
574
597
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -608,6 +631,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
608
631
|
submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
|
|
609
632
|
close(): Promise<any>;
|
|
610
633
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
634
|
+
showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
|
|
611
635
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
612
636
|
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
613
637
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
@@ -650,6 +674,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
650
674
|
bottom?: number | string;
|
|
651
675
|
};
|
|
652
676
|
}): Promise<void>;
|
|
677
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
653
678
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
654
679
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
655
680
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -676,6 +701,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
676
701
|
quitInstance: () => Promise<any>;
|
|
677
702
|
getRequestTypes: () => Promise<any>;
|
|
678
703
|
broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
704
|
+
broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
679
705
|
subscribe: () => Promise<any>;
|
|
680
706
|
unsubscribe: () => Promise<any>;
|
|
681
707
|
openExternalUrl(payload: import('./payload.types').OpenExternalUrlRequestPayload): Promise<void>;
|
|
@@ -727,8 +753,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
727
753
|
downloadFile(payload: {
|
|
728
754
|
file_id: import('../main.lib').File["id"];
|
|
729
755
|
}): Promise<null>;
|
|
730
|
-
getAppConfig(payload
|
|
731
|
-
app_name
|
|
756
|
+
getAppConfig(payload?: {
|
|
757
|
+
app_name?: string;
|
|
732
758
|
}): Promise<Record<string, any>>;
|
|
733
759
|
getFile(payload: {
|
|
734
760
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -746,6 +772,9 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
746
772
|
}): Promise<import('../main.lib').File["id"]>;
|
|
747
773
|
createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
|
|
748
774
|
selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
|
|
775
|
+
deleteLocalFile(payload: {
|
|
776
|
+
url: string;
|
|
777
|
+
}): Promise<void>;
|
|
749
778
|
getFileRevisions(payload: {
|
|
750
779
|
id?: import('../main.lib').FileRetrieve["id"];
|
|
751
780
|
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
@@ -775,6 +804,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
775
804
|
}): Promise<ArrayBuffer>;
|
|
776
805
|
query(payload: import('./payload.types').QueryPayload): Promise<any>;
|
|
777
806
|
crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
|
|
807
|
+
crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
|
|
808
|
+
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
809
|
+
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
810
|
+
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
811
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
812
|
+
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
813
|
+
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
778
814
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
779
815
|
getFolder(payload?: {
|
|
780
816
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -814,6 +850,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
814
850
|
submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
|
|
815
851
|
close(): Promise<any>;
|
|
816
852
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
853
|
+
showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
|
|
817
854
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
818
855
|
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
819
856
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
@@ -825,4 +862,16 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
825
862
|
theme_id: import('../main.lib').CanvasThemeRetrieve["id"];
|
|
826
863
|
}>;
|
|
827
864
|
API: import('./api/LowLevelApi').LowLevelApi;
|
|
865
|
+
} | {
|
|
866
|
+
broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
|
|
867
|
+
close(): Promise<void>;
|
|
868
|
+
getFile(payload: {
|
|
869
|
+
id: import('../main.lib').File["id"];
|
|
870
|
+
}): Promise<import('../main.lib').File>;
|
|
871
|
+
getAppConfig(payload?: {
|
|
872
|
+
app_name?: string;
|
|
873
|
+
}): Promise<Record<string, any>>;
|
|
874
|
+
embeddableReady(): Promise<void>;
|
|
875
|
+
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
876
|
+
on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
828
877
|
};
|