@pitcher/js-api 1.19.0 → 1.20.0-beta.14
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/js-api.esm.d.ts +1 -0
- package/js-api.esm.js +3643 -0
- package/js-api.esm.js.map +1 -0
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/api/apps/apps.queries.d.ts +3 -0
- package/lib/api/canvases/canvases.queries.d.ts +15 -0
- package/lib/api/events/events.helpers.d.ts +29 -0
- package/lib/api/events/events.queries.d.ts +10 -0
- package/lib/api/users/users.queries.d.ts +5 -0
- package/lib/apps/browser/composables/useAppEmit.d.ts +3 -0
- package/lib/apps/browser/stores/api.d.ts +646 -0
- package/lib/apps/browser/stores/api.test.d.ts +1 -0
- package/lib/apps/browser/stores/app.d.ts +94 -0
- package/lib/apps/browser/stores/app.test.d.ts +1 -0
- package/lib/apps/browser/stores/upload.d.ts +111 -0
- package/lib/apps/browser/stores/upload.types.d.ts +18 -0
- package/lib/apps/browser/util/file.d.ts +3 -0
- package/lib/apps/canvas-builder/App.helpers.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/Link/Link.util.d.ts +13 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +12724 -0
- package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +12 -0
- package/lib/apps/canvas-builder/composables/useCanvasExit.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +1782 -0
- package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +25 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +35 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.spec.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +30 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +85 -0
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +9 -0
- package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +14 -0
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +14 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +51 -0
- package/lib/apps/canvas-builder/composables/useFetchSectionAnalytics.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +12 -0
- package/lib/apps/canvas-builder/composables/useNavigatorDrawer.d.ts +6 -0
- package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +5 -0
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +53 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +16 -0
- package/lib/apps/canvas-builder/composables/useSectionNavigation.d.ts +16 -0
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +34 -0
- package/lib/apps/canvas-builder/constants/canvas.const.d.ts +15 -0
- package/lib/apps/canvas-builder/constants/defaults.const.d.ts +1 -0
- package/lib/apps/canvas-builder/constants/index.d.ts +3 -0
- package/lib/apps/canvas-builder/constants/sizes.d.ts +2 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +467 -0
- package/lib/apps/canvas-builder/types/font-awesome.types.d.ts +2 -0
- package/lib/apps/canvas-builder/types/recommendations.types.d.ts +28 -0
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +44 -0
- package/lib/apps/canvas-builder/util/canvas.util.test.d.ts +1 -0
- package/lib/apps/canvas-builder/util/clone.d.ts +1 -0
- package/lib/apps/canvas-builder/util/file.util.d.ts +6 -0
- package/lib/apps/canvas-builder/util/tree.d.ts +25 -0
- package/lib/apps/canvas-builder/util/tree.test.d.ts +1 -0
- package/lib/apps/canvas-builder/util/url.d.ts +5 -0
- package/lib/apps/canvas-builder/util/url.test.d.ts +1 -0
- package/lib/apps/content-selector/appTypes.d.ts +44 -0
- package/lib/apps/content-selector/stores/app.d.ts +83 -0
- package/lib/apps/content-selector/util/file.d.ts +3 -0
- package/lib/apps/content-selector/util/media-type.util.d.ts +1 -0
- package/lib/apps/notes/composables/useFullscreenNotesHeartbeat.d.ts +3 -0
- package/lib/apps/notes/composables/useNotesApp.d.ts +3 -0
- package/lib/components/CCatalogIqSwitcher/CCatalogIqSwitcher.types.d.ts +7 -0
- package/lib/components/CConfigEditor/CConfigEditor.types.d.ts +7 -0
- package/lib/components/CConfigEditor/CConfigEditor.validators.d.ts +4 -0
- package/lib/components/CContactSelector/CContactSelector.types.d.ts +4 -0
- package/lib/components/CDataTable/CDataTableEdit.use.d.ts +22 -0
- package/lib/components/CFileViewer/CFileViewer.types.d.ts +7 -0
- package/lib/components/CFileViewer/CFileViewer.use.d.ts +47 -0
- package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +16 -0
- package/lib/components/CFileViewer/pageThumbnailFavorite.use.d.ts +10 -0
- package/lib/components/CFileViewer/pdfEvents.use.d.ts +4 -0
- package/lib/components/CGlobalSearch/CGlobalSearch.types.d.ts +23 -0
- package/lib/components/CGlobalSearch/GlobalSearch.use.d.ts +24 -0
- package/lib/components/CGlobalSearch/Shortcuts.use.d.ts +11 -0
- package/lib/components/CMultiSelect/CMultiSelect.test.d.ts +1 -0
- package/lib/components/CQuickFilters/CQuickFilters.types.d.ts +4 -0
- package/lib/components/CRichTextEditor/constants.d.ts +1 -0
- package/lib/components/CRichTextEditor/extensions/bulletListExtended.d.ts +16 -0
- package/lib/components/CRichTextEditor/extensions/headingExtended.d.ts +10 -0
- package/lib/components/CRichTextEditor/extensions/mentionSuggestions.d.ts +11 -0
- package/lib/components/CRichTextEditor/extensions/paragraphExtended.d.ts +26 -0
- package/lib/components/CRichTextEditor/extensions/textStyleExtended.d.ts +10 -0
- package/lib/components/CSingleSelect/CSingleSelect.test.d.ts +1 -0
- package/lib/components/CUsersGroupsAccessManage/CUsersGroupsAccessManage.types.d.ts +56 -0
- package/lib/components/CVirtualTable/CVirtualTable.test.d.ts +1 -0
- package/lib/components/CVirtualTable/CVirtualTableRow.test.d.ts +1 -0
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +40 -0
- package/lib/components/canvases/CanvasesManagementFilters.use.d.ts +7 -0
- package/lib/components/canvases/CanvasesManagementToolbarFilters.use.d.ts +20 -0
- package/lib/components/filters/CDateRangeFilter.test.d.ts +1 -0
- package/lib/components/filters/CSelectFilter.test.d.ts +1 -0
- package/lib/components/filters/filter.const.d.ts +1 -0
- package/lib/components/filters/filter.util.d.ts +2 -0
- package/lib/components/filters/filter.util.spec.d.ts +1 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.use.d.ts +11 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +9 -0
- package/lib/composables/appEmit.use.d.ts +3 -0
- package/lib/composables/bulkActions.use.d.ts +12 -0
- package/lib/composables/fileViewerSettings.use.d.ts +8 -0
- package/lib/composables/recentFiles.use.d.ts +12 -0
- package/lib/composables/useAssetUpload.d.ts +6 -0
- package/lib/composables/useBindValidation.d.ts +206 -0
- package/lib/composables/useCanvasOverlay.d.ts +20 -0
- package/lib/composables/useCanvasTablesPagination.d.ts +13 -0
- package/lib/composables/useConfirmation.d.ts +23 -0
- package/lib/composables/useConnectUpload.d.ts +5 -0
- package/lib/composables/useDetailsView.d.ts +19 -0
- package/lib/composables/useFetchUsers.d.ts +18 -0
- package/lib/composables/useInfiniteScroll.d.ts +13 -0
- package/lib/composables/useInstalledApps.d.ts +3 -0
- package/lib/composables/useLocation.d.ts +26 -0
- package/lib/composables/useLocationAPI.d.ts +39 -0
- package/lib/composables/useLocationListeners.d.ts +8 -0
- package/lib/composables/useLocationManipulation.d.ts +37 -0
- package/lib/composables/usePdfInterpolation.d.ts +9 -0
- package/lib/composables/useTheme.d.ts +9 -0
- package/lib/composables/useThemeVars.d.ts +30 -0
- package/lib/composables/useToast.d.ts +14 -0
- package/lib/composables/useWindowEvents.d.ts +20 -0
- package/lib/constants/cdp.const.d.ts +41 -0
- package/lib/constants/config.const.d.ts +1 -0
- package/lib/constants/conventions.const.d.ts +3 -0
- package/lib/constants/i18n.const.d.ts +13 -0
- package/lib/constants/modal.const.d.ts +9 -0
- package/lib/constants/more.const.d.ts +1 -0
- package/lib/constants/recentFiles.const.d.ts +4 -0
- package/lib/constants/tables.const.d.ts +4 -0
- package/lib/constants/timers.const.d.ts +1 -0
- package/lib/constants/uploads.const.d.ts +8 -0
- package/lib/constants/url.const.d.ts +2 -0
- package/lib/custom-naive-locales/el.d.ts +124 -0
- package/lib/directives/autofocus.d.ts +4 -0
- package/lib/directives/clickOutside.d.ts +8 -0
- package/lib/directives/draggable.d.ts +4 -0
- package/lib/directives/tooltip.d.ts +4 -0
- package/lib/main.lib.d.ts +182 -0
- package/lib/plugins/vueQuery.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +130 -0
- package/lib/sdk/api/HighLevelApi.spec.d.ts +1 -0
- package/lib/sdk/api/LowLevelApi.d.ts +18 -0
- package/lib/sdk/api/LowLevelApi.spec.d.ts +1 -0
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +89 -0
- package/lib/sdk/api/modules/admin/env.admin.d.ts +10 -0
- package/lib/sdk/api/modules/admin/files.admin.d.ts +49 -0
- package/lib/sdk/api/modules/admin/index.d.ts +40 -0
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +11 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +67 -0
- package/lib/sdk/api/modules/canvas.d.ts +56 -0
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +10 -0
- package/lib/sdk/api/modules/dsr/index.d.ts +9 -0
- package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +1 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +39 -0
- package/lib/sdk/api/modules/env.d.ts +7 -0
- package/lib/sdk/api/modules/events.d.ts +7 -0
- package/lib/sdk/api/modules/favorites.d.ts +8 -0
- package/lib/sdk/api/modules/feedback.d.ts +3 -0
- package/lib/sdk/api/modules/files.d.ts +35 -0
- package/lib/sdk/api/modules/folders.d.ts +21 -0
- package/lib/sdk/api/modules/index.d.ts +19 -0
- package/lib/sdk/api/modules/languages.d.ts +8 -0
- package/lib/sdk/api/modules/metadataTemplates.d.ts +4 -0
- package/lib/sdk/api/modules/notifications.d.ts +3 -0
- package/lib/sdk/api/modules/open.d.ts +4 -0
- package/lib/sdk/api/modules/pspdfkit.d.ts +23 -0
- package/lib/sdk/api/modules/query.d.ts +3 -0
- package/lib/sdk/api/modules/search.d.ts +4 -0
- package/lib/sdk/api/modules/sync.d.ts +9 -0
- package/lib/sdk/api/modules/toast.d.ts +4 -0
- package/lib/sdk/api/modules/track.d.ts +4 -0
- package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +3 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +29 -0
- package/lib/sdk/api/modules/ui/content.ui.d.ts +24 -0
- package/lib/sdk/api/modules/ui/index.d.ts +44 -0
- package/lib/sdk/api/modules/ui/loading.ui.d.ts +1 -0
- package/lib/sdk/api/modules/ui/location.ui.d.ts +3 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +6 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +115 -0
- package/lib/sdk/api/modules/users.d.ts +7 -0
- package/lib/sdk/api/modules/webView.d.ts +4 -0
- package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +232 -0
- package/lib/sdk/main.d.ts +564 -0
- package/lib/sdk/main.spec.d.ts +1 -0
- package/lib/sdk/main.umd-esm.d.ts +1 -0
- package/lib/sdk/payload.types.d.ts +56 -0
- package/lib/sdk/utils/assert.d.ts +3 -0
- package/lib/sdk/utils/assert.spec.d.ts +1 -0
- package/lib/sdk/utils/cleanUrl.d.ts +1 -0
- package/lib/sdk/utils/eventEmitter.d.ts +17 -0
- package/lib/sdk/utils/eventEmitter.spec.d.ts +1 -0
- package/lib/sdk/utils/httpFetch.d.ts +15 -0
- package/lib/sdk/utils/isodate.d.ts +1 -0
- package/lib/sdk/utils/isodate.spec.d.ts +1 -0
- package/lib/sdk/utils/object.d.ts +1 -0
- package/lib/sdk/utils/object.spec.d.ts +1 -0
- package/lib/sdk/utils/postrobot.d.ts +1 -0
- package/lib/theme/canvasUiUnoPreset.d.ts +4 -0
- package/lib/theme/daisyUi.d.ts +1 -0
- package/lib/theme/light.const.d.ts +4 -0
- package/lib/theme/light.d.ts +2185 -0
- package/lib/theme/main.d.ts +3 -0
- package/lib/theme/theme-overrides.d.ts +1 -0
- package/lib/theme/theme.types.d.ts +29 -0
- package/lib/theme/theme.utils.d.ts +3 -0
- package/lib/types/app.d.ts +59 -0
- package/lib/types/call.d.ts +43 -0
- package/lib/types/canvasActions.d.ts +12 -0
- package/lib/types/canvases.d.ts +23 -0
- package/lib/types/dataTable.d.ts +6 -0
- package/lib/types/favorites.d.ts +5 -0
- package/lib/types/fileViewerSettings.types.d.ts +3 -0
- package/lib/types/files.d.ts +38 -0
- package/lib/types/i18n.types.d.ts +1 -0
- package/lib/types/iframes.d.ts +24 -0
- package/lib/types/instance.types.d.ts +18 -0
- package/lib/types/instanceSettings.types.d.ts +23 -0
- package/lib/types/launchDarkly.types.d.ts +40 -0
- package/lib/types/organization.types.d.ts +14 -0
- package/lib/types/organizationMetadata.types.d.ts +4 -0
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/lib/types/paginatedData.d.ts +6 -0
- package/lib/types/recentFiles.types.d.ts +4 -0
- package/lib/types/sectionPopularity.d.ts +30 -0
- package/lib/types/sfdc.d.ts +125 -0
- package/lib/types/toast.d.ts +4 -0
- package/lib/types/translations.d.ts +5 -0
- package/lib/types/ts.d.ts +10 -0
- package/lib/types/users.d.ts +12 -0
- package/lib/types/vueVirtualScroller.d.ts +4 -0
- package/lib/util/anchor.d.ts +2 -0
- package/lib/util/array.d.ts +5 -0
- package/lib/util/array.spec.d.ts +1 -0
- package/lib/util/canvas-manager.util.d.ts +4 -0
- package/lib/util/casing.d.ts +4 -0
- package/lib/util/casing.spec.d.ts +1 -0
- package/lib/util/color.d.ts +4 -0
- package/lib/util/date.d.ts +12 -0
- package/lib/util/date.spec.d.ts +1 -0
- package/lib/util/dev.util.d.ts +2 -0
- package/lib/util/dom.d.ts +15 -0
- package/lib/util/font.spec.d.ts +1 -0
- package/lib/util/font.util.d.ts +7 -0
- package/lib/util/fullscreen.util.d.ts +16 -0
- package/lib/util/handlebars.d.ts +1 -0
- package/lib/util/image.d.ts +1 -0
- package/lib/util/location.spec.d.ts +1 -0
- package/lib/util/location.util.d.ts +1 -0
- package/lib/util/message-event.d.ts +1 -0
- package/lib/util/message-event.spec.d.ts +1 -0
- package/lib/util/navigation.util.d.ts +7 -0
- package/lib/util/network.d.ts +16 -0
- package/lib/util/network.spec.d.ts +1 -0
- package/lib/util/number.d.ts +4 -0
- package/lib/util/number.spec.d.ts +1 -0
- package/lib/util/object.d.ts +1 -0
- package/lib/util/object.spec.d.ts +1 -0
- package/lib/util/query.d.ts +6 -0
- package/lib/util/reactive.d.ts +4 -0
- package/lib/util/reactive.spec.d.ts +1 -0
- package/lib/util/string.d.ts +4 -0
- package/lib/util/timer.d.ts +2 -0
- package/lib/util/timer.spec.d.ts +1 -0
- package/lib/util/translations.d.ts +8 -0
- package/lib/util/translations.spec.d.ts +1 -0
- package/lib/util/tsHelpers.d.ts +14 -0
- package/lib/util/user.d.ts +4 -0
- package/lib/util/userAgents.d.ts +8 -0
- package/package.json +7 -2
- package/types/openapi/index.d.ts +255 -0
- package/types/openapi/models/AccessTypeEnum.d.ts +8 -0
- package/types/openapi/models/Account.d.ts +4 -0
- package/types/openapi/models/AccountRequest.d.ts +4 -0
- package/types/openapi/models/App.d.ts +21 -0
- package/types/openapi/models/AppInstallationRequest.d.ts +4 -0
- package/types/openapi/models/AppOrganization.d.ts +4 -0
- package/types/openapi/models/AppOrganizationRequest.d.ts +4 -0
- package/types/openapi/models/AppPublish.d.ts +8 -0
- package/types/openapi/models/AppRelease.d.ts +10 -0
- package/types/openapi/models/AppRequest.d.ts +9 -0
- package/types/openapi/models/AppTypeEnum.d.ts +8 -0
- package/types/openapi/models/AppsDBEntry.d.ts +4 -0
- package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
- package/types/openapi/models/AuthToken.d.ts +7 -0
- package/types/openapi/models/AuthTokenRequest.d.ts +7 -0
- package/types/openapi/models/BulkDeleteErrorDetail.d.ts +5 -0
- package/types/openapi/models/BulkDeleteRequest.d.ts +6 -0
- package/types/openapi/models/BulkDeleteResponse.d.ts +6 -0
- package/types/openapi/models/BulkUpdateMetadata.d.ts +6 -0
- package/types/openapi/models/BulkUpdateMetadataOperationEnum.d.ts +8 -0
- package/types/openapi/models/BulkUpdateMetadataRequest.d.ts +9 -0
- package/types/openapi/models/BulkUpdateMetadataResult.d.ts +4 -0
- package/types/openapi/models/BulkUpdateTags.d.ts +6 -0
- package/types/openapi/models/BulkUpdateTagsOperationEnum.d.ts +8 -0
- package/types/openapi/models/BulkUpdateTagsRequest.d.ts +9 -0
- package/types/openapi/models/BulkUpdateTagsResult.d.ts +4 -0
- package/types/openapi/models/Canvas.d.ts +29 -0
- package/types/openapi/models/CanvasCreate.d.ts +36 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +25 -0
- package/types/openapi/models/CanvasRecommendedFile.d.ts +46 -0
- package/types/openapi/models/CanvasRecommendedFiles.d.ts +5 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +36 -0
- package/types/openapi/models/CanvasSection.d.ts +10 -0
- package/types/openapi/models/CanvasUpdate.d.ts +36 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +22 -0
- package/types/openapi/models/Collaboration.d.ts +16 -0
- package/types/openapi/models/CollaborationCreate.d.ts +16 -0
- package/types/openapi/models/CollaborationCreateRequest.d.ts +10 -0
- package/types/openapi/models/CollaborationRequest.d.ts +5 -0
- package/types/openapi/models/CollaborationRoleEnum.d.ts +4 -0
- package/types/openapi/models/ConnectedService.d.ts +9 -0
- package/types/openapi/models/ContentDistributionGroup.d.ts +12 -0
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +13 -0
- package/types/openapi/models/ContentDistributionGroupCreateRequest.d.ts +5 -0
- package/types/openapi/models/ContentDistributionGroupMembership.d.ts +8 -0
- package/types/openapi/models/ContentDistributionGroupMembershipCreate.d.ts +8 -0
- package/types/openapi/models/ContentDistributionGroupMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/ContentDistributionGroupRequest.d.ts +4 -0
- package/types/openapi/models/DefaultExpiresAtEnum.d.ts +16 -0
- package/types/openapi/models/DeletedApp.d.ts +23 -0
- package/types/openapi/models/DeletedCanvas.d.ts +31 -0
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +15 -0
- package/types/openapi/models/DeletedEnvironment.d.ts +15 -0
- package/types/openapi/models/DeletedFavorite.d.ts +20 -0
- package/types/openapi/models/DeletedFile.d.ts +48 -0
- package/types/openapi/models/DeletedFolder.d.ts +18 -0
- package/types/openapi/models/DeletedInstance.d.ts +25 -0
- package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +15 -0
- package/types/openapi/models/DeletedMetadataTemplate.d.ts +18 -0
- package/types/openapi/models/DeletedRegion.d.ts +13 -0
- package/types/openapi/models/DownloadTypeEnum.d.ts +10 -0
- package/types/openapi/models/Environment.d.ts +13 -0
- package/types/openapi/models/EnvironmentRequest.d.ts +5 -0
- package/types/openapi/models/Event.d.ts +18 -0
- package/types/openapi/models/EventAttendee.d.ts +5 -0
- package/types/openapi/models/EventAttendeeRequest.d.ts +5 -0
- package/types/openapi/models/EventExternalObject.d.ts +10 -0
- package/types/openapi/models/EventExternalObjectContentTypeEnum.d.ts +12 -0
- package/types/openapi/models/EventExternalObjectRequest.d.ts +10 -0
- package/types/openapi/models/EventRequest.d.ts +17 -0
- package/types/openapi/models/EventStatusEnum.d.ts +10 -0
- package/types/openapi/models/Favorite.d.ts +18 -0
- package/types/openapi/models/FavoriteCreate.d.ts +12 -0
- package/types/openapi/models/FavoriteCreateRequest.d.ts +7 -0
- package/types/openapi/models/FavoriteFile.d.ts +6 -0
- package/types/openapi/models/FavoriteFileRequest.d.ts +3 -0
- package/types/openapi/models/FavoriteUpdate.d.ts +12 -0
- package/types/openapi/models/FavoriteUpdateRequest.d.ts +6 -0
- package/types/openapi/models/File.d.ts +46 -0
- package/types/openapi/models/FileAnalytics.d.ts +16 -0
- package/types/openapi/models/FileAnalyticsResult.d.ts +9 -0
- package/types/openapi/models/FileContentTypeEnum.d.ts +16 -0
- package/types/openapi/models/FileCreate.d.ts +51 -0
- package/types/openapi/models/FileCreateRequest.d.ts +27 -0
- package/types/openapi/models/FilePermission.d.ts +4 -0
- package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
- package/types/openapi/models/FileRequest.d.ts +16 -0
- package/types/openapi/models/FileRetrieve.d.ts +51 -0
- package/types/openapi/models/FileRevision.d.ts +8 -0
- package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/FileStatusEnum.d.ts +8 -0
- package/types/openapi/models/FileTypeEnum.d.ts +10 -0
- package/types/openapi/models/FileUpdate.d.ts +51 -0
- package/types/openapi/models/FileUpdateRequest.d.ts +20 -0
- package/types/openapi/models/FileVersion.d.ts +5 -0
- package/types/openapi/models/Folder.d.ts +16 -0
- package/types/openapi/models/FolderCreate.d.ts +32 -0
- package/types/openapi/models/FolderCreateRequest.d.ts +19 -0
- package/types/openapi/models/FolderFile.d.ts +15 -0
- package/types/openapi/models/FolderFolder.d.ts +8 -0
- package/types/openapi/models/FolderRetrieve.d.ts +25 -0
- package/types/openapi/models/FolderUpdate.d.ts +32 -0
- package/types/openapi/models/FolderUpdateRequest.d.ts +16 -0
- package/types/openapi/models/Instance.d.ts +23 -0
- package/types/openapi/models/InstanceAnalytics.d.ts +18 -0
- package/types/openapi/models/InstanceAnalyticsChangePercentages.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsCurrentPeriod.d.ts +13 -0
- package/types/openapi/models/InstanceAnalyticsFile.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsFileActivity.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsFileRequest.d.ts +3 -0
- package/types/openapi/models/InstanceAnalyticsInactiveUsers.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsInactiveUsersRequest.d.ts +4 -0
- package/types/openapi/models/InstanceAnalyticsLoginResult.d.ts +5 -0
- package/types/openapi/models/InstanceAssignmentGroup.d.ts +12 -0
- package/types/openapi/models/InstanceAssignmentGroupMembership.d.ts +8 -0
- package/types/openapi/models/InstanceAssignmentGroupMembershipCreate.d.ts +8 -0
- package/types/openapi/models/InstanceAssignmentGroupMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/InstanceAssignmentGroupRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembership.d.ts +12 -0
- package/types/openapi/models/InstanceMembershipCreate.d.ts +12 -0
- package/types/openapi/models/InstanceMembershipCreateRequest.d.ts +8 -0
- package/types/openapi/models/InstanceMembershipGroup.d.ts +11 -0
- package/types/openapi/models/InstanceMembershipGroupRequest.d.ts +3 -0
- package/types/openapi/models/InstanceMembershipRequest.d.ts +5 -0
- package/types/openapi/models/InstanceMembershipRoleEnum.d.ts +8 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +10 -0
- package/types/openapi/models/InstanceMembershipUserRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipUserStatusEnum.d.ts +6 -0
- package/types/openapi/models/InstanceRequest.d.ts +11 -0
- package/types/openapi/models/InstanceUpdate.d.ts +19 -0
- package/types/openapi/models/InstanceUpdateRequest.d.ts +8 -0
- package/types/openapi/models/Invitation.d.ts +11 -0
- package/types/openapi/models/InvitationRequest.d.ts +3 -0
- package/types/openapi/models/InvitationStatusEnum.d.ts +4 -0
- package/types/openapi/models/LanguageEnum.d.ts +12 -0
- package/types/openapi/models/MetadataTemplate.d.ts +16 -0
- package/types/openapi/models/MetadataTemplateField.d.ts +14 -0
- package/types/openapi/models/MetadataTemplateFieldRequest.d.ts +14 -0
- package/types/openapi/models/MetadataTemplateFieldTypeEnum.d.ts +16 -0
- package/types/openapi/models/MetadataTemplateOption.d.ts +4 -0
- package/types/openapi/models/MetadataTemplateOptionRequest.d.ts +4 -0
- package/types/openapi/models/MetadataTemplateRequest.d.ts +7 -0
- package/types/openapi/models/MetadataTemplateSection.d.ts +6 -0
- package/types/openapi/models/MetadataTemplateSectionRequest.d.ts +6 -0
- package/types/openapi/models/MiniCanvas.d.ts +4 -0
- package/types/openapi/models/MiniCanvasRequest.d.ts +3 -0
- package/types/openapi/models/MiniContentDistributionGroup.d.ts +5 -0
- package/types/openapi/models/MiniContentDistributionGroupRequest.d.ts +3 -0
- package/types/openapi/models/MiniEnvironment.d.ts +5 -0
- package/types/openapi/models/MiniEnvironmentRequest.d.ts +4 -0
- package/types/openapi/models/MiniEvent.d.ts +5 -0
- package/types/openapi/models/MiniEventRequest.d.ts +4 -0
- package/types/openapi/models/MiniFile.d.ts +4 -0
- package/types/openapi/models/MiniFileRequest.d.ts +3 -0
- package/types/openapi/models/MiniFolder.d.ts +4 -0
- package/types/openapi/models/MiniFolderRequest.d.ts +3 -0
- package/types/openapi/models/MiniInstance.d.ts +4 -0
- package/types/openapi/models/MiniInstanceRequest.d.ts +3 -0
- package/types/openapi/models/MiniPage.d.ts +4 -0
- package/types/openapi/models/MiniPageRequest.d.ts +3 -0
- package/types/openapi/models/MiniRegion.d.ts +4 -0
- package/types/openapi/models/MiniRegionRequest.d.ts +3 -0
- package/types/openapi/models/MiniSharedLink.d.ts +4 -0
- package/types/openapi/models/MiniSharedLinkRequest.d.ts +3 -0
- package/types/openapi/models/MiniUser.d.ts +5 -0
- package/types/openapi/models/MiniUserRequest.d.ts +3 -0
- package/types/openapi/models/MostActiveUser.d.ts +7 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
- package/types/openapi/models/Organization.d.ts +10 -0
- package/types/openapi/models/OrganizationAnalytics.d.ts +16 -0
- package/types/openapi/models/OrganizationAnalyticsCurrentPeriod.d.ts +13 -0
- package/types/openapi/models/OrganizationAnalyticsInactiveUsers.d.ts +5 -0
- package/types/openapi/models/OrganizationAnalyticsInactiveUsersRequest.d.ts +4 -0
- package/types/openapi/models/OrganizationAnalyticsInstance.d.ts +10 -0
- package/types/openapi/models/OrganizationAnalyticsLoginResult.d.ts +5 -0
- package/types/openapi/models/OrganizationAnalyticsTop3Instances.d.ts +13 -0
- package/types/openapi/models/OrganizationBranding.d.ts +6 -0
- package/types/openapi/models/OrganizationBrandingColors.d.ts +4 -0
- package/types/openapi/models/OrganizationChangePercentages.d.ts +6 -0
- package/types/openapi/models/OrganizationUpdate.d.ts +8 -0
- package/types/openapi/models/OrganizationUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PSPDFKitAuthPayload.d.ts +3 -0
- package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +3 -0
- package/types/openapi/models/PSPDFKitToken.d.ts +7 -0
- package/types/openapi/models/PSPDFKitTokenRequest.d.ts +3 -0
- package/types/openapi/models/PaginatedAppList.d.ts +8 -0
- package/types/openapi/models/PaginatedAppReleaseList.d.ts +8 -0
- package/types/openapi/models/PaginatedAuthTokenList.d.ts +8 -0
- package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
- package/types/openapi/models/PaginatedCollaborationList.d.ts +8 -0
- package/types/openapi/models/PaginatedContentDistributionGroupList.d.ts +8 -0
- package/types/openapi/models/PaginatedContentDistributionGroupMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedEnvironmentList.d.ts +8 -0
- package/types/openapi/models/PaginatedEventList.d.ts +8 -0
- package/types/openapi/models/PaginatedFavoriteList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedFolderList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceAssignmentGroupList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceAssignmentGroupMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedInvitationList.d.ts +8 -0
- package/types/openapi/models/PaginatedMetadataTemplateList.d.ts +8 -0
- package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
- package/types/openapi/models/PaginatedRegionList.d.ts +8 -0
- package/types/openapi/models/PaginatedRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedSearchResultList.d.ts +9 -0
- package/types/openapi/models/PaginatedStorageRegionList.d.ts +8 -0
- package/types/openapi/models/PaginatedUserList.d.ts +8 -0
- package/types/openapi/models/PatchedAppRequest.d.ts +9 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +22 -0
- package/types/openapi/models/PatchedCollaborationRequest.d.ts +5 -0
- package/types/openapi/models/PatchedContentDistributionGroupRequest.d.ts +4 -0
- package/types/openapi/models/PatchedEnvironmentRequest.d.ts +5 -0
- package/types/openapi/models/PatchedEventRequest.d.ts +17 -0
- package/types/openapi/models/PatchedFavoriteUpdateRequest.d.ts +6 -0
- package/types/openapi/models/PatchedFileRequest.d.ts +16 -0
- package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +20 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +16 -0
- package/types/openapi/models/PatchedInstanceAssignmentGroupRequest.d.ts +4 -0
- package/types/openapi/models/PatchedInstanceMembershipRequest.d.ts +5 -0
- package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PatchedMetadataTemplateRequest.d.ts +7 -0
- package/types/openapi/models/PatchedOrganizationUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PatchedRegionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedUserRequest.d.ts +12 -0
- package/types/openapi/models/Region.d.ts +11 -0
- package/types/openapi/models/RegionRequest.d.ts +3 -0
- package/types/openapi/models/Revision.d.ts +8 -0
- package/types/openapi/models/RevisionRequest.d.ts +3 -0
- package/types/openapi/models/SearchApp.d.ts +6 -0
- package/types/openapi/models/SearchCanvas.d.ts +5 -0
- package/types/openapi/models/SearchContentDistributionGroup.d.ts +11 -0
- package/types/openapi/models/SearchFile.d.ts +9 -0
- package/types/openapi/models/SearchInstanceAssignmentGroup.d.ts +11 -0
- package/types/openapi/models/SearchResult.d.ts +8 -0
- package/types/openapi/models/SearchUser.d.ts +5 -0
- package/types/openapi/models/SharedLink.d.ts +16 -0
- package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
- package/types/openapi/models/SharedLinkCreate.d.ts +16 -0
- package/types/openapi/models/SharedLinkCreateRequest.d.ts +6 -0
- package/types/openapi/models/SharedLinkInstance.d.ts +6 -0
- package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
- package/types/openapi/models/SharedLinkOrganization.d.ts +6 -0
- package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
- package/types/openapi/models/StorageRegion.d.ts +5 -0
- package/types/openapi/models/StorageRegionEnum.d.ts +10 -0
- package/types/openapi/models/Tag.d.ts +3 -0
- package/types/openapi/models/UploadCreate.d.ts +8 -0
- package/types/openapi/models/UploadCreateRequest.d.ts +5 -0
- package/types/openapi/models/User.d.ts +23 -0
- package/types/openapi/models/UserRequest.d.ts +12 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSelectorSelectedFile } from '@content-selector/stores/app';
|
|
2
|
+
import { Selection } from '@content-selector/appTypes';
|
|
3
|
+
import { CanvasSection, ComponentNode, EmbeddableProps, SfEvent } from '../../../../main.lib';
|
|
4
|
+
import { Mutable } from '../../../../types/ts';
|
|
5
|
+
import { CanvasRetrieve, User } from '../../../../../types/openapi';
|
|
6
|
+
import { OpenRequestPayload } from '../../../payload.types';
|
|
7
|
+
|
|
8
|
+
export declare const UI_MESSAGE: "UI_MESSAGE";
|
|
9
|
+
export declare const UI_API_METHOD_TYPES: {
|
|
10
|
+
readonly UI_BROADCAST: "ui_broadcast";
|
|
11
|
+
readonly UI_SELECT_CONTENT: "ui_select_content";
|
|
12
|
+
readonly UI_OPEN: "ui_open";
|
|
13
|
+
readonly UI_EMBEDDABLE_READY: "ui_embeddable_ready";
|
|
14
|
+
readonly UI_TOAST: "ui_toast";
|
|
15
|
+
readonly UI_CAPTURE_APP_ERROR: "ui_capture_app_error";
|
|
16
|
+
readonly UI_UPDATE_CANVAS: "ui_update_canvas";
|
|
17
|
+
readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
|
|
18
|
+
readonly UI_UPDATE_LOCATION: "ui_update_location";
|
|
19
|
+
readonly UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id";
|
|
20
|
+
readonly UI_SET_POSTCALL_STYLE: "ui_set_postcall_style";
|
|
21
|
+
readonly UI_ENABLE_POSTCALL_SUBMIT: "ui_enable_postcall_submit";
|
|
22
|
+
readonly UI_DISABLE_POSTCALL_SUBMIT: "ui_disable_postcall_submit";
|
|
23
|
+
readonly UI_COMPLETE_POSTCALL: "ui_complete_postcall";
|
|
24
|
+
readonly UI_CANVAS_NAVIGATE_NEXT_PAGE: "ui_canvas_navigate_next_page";
|
|
25
|
+
readonly UI_CANVAS_NAVIGATE_PREVIOUS_PAGE: "ui_canvas_navigate_previous_page";
|
|
26
|
+
readonly UI_CANVAS_NAVIGATE_PAGE: "ui_canvas_navigate_page";
|
|
27
|
+
readonly UI_APP_LOADED: "ui_app_loaded";
|
|
28
|
+
readonly UI_APP_RESIZE: "ui_app_resize";
|
|
29
|
+
};
|
|
30
|
+
export declare const UI_MESSAGE_TYPES: {
|
|
31
|
+
readonly UI_MEETING_CANCELED: "ui_meeting_canceled";
|
|
32
|
+
readonly UI_CANVAS_UPDATED: "ui_canvas_updated";
|
|
33
|
+
readonly UI_SECTION_LIST_UPDATED: "ui_section_list_updated";
|
|
34
|
+
readonly UI_APP_SET_DATA: "ui_app_set_data";
|
|
35
|
+
readonly UI_APP_UPDATE_DATA: "ui_app_update_data";
|
|
36
|
+
};
|
|
37
|
+
export declare const UI_NATIVE_MESSAGE_TYPES: readonly ["ui_app_set_data", "ui_app_update_data", "ui_canvas_updated"];
|
|
38
|
+
export type UiBroadcastRequest = Record<string, any>;
|
|
39
|
+
export type UiSelectContentRequest = {
|
|
40
|
+
selections?: Selection[];
|
|
41
|
+
};
|
|
42
|
+
export type UiSelectContentResponse = {
|
|
43
|
+
user_action: 'cancelled' | 'selected';
|
|
44
|
+
content?: (ContentSelectorSelectedFile | ContentSelectorSelectedPage)[];
|
|
45
|
+
};
|
|
46
|
+
export type UiCaptureAppErrorRequest = Record<string, any>;
|
|
47
|
+
export type UiUpdateCanvasRequest = Mutable<CanvasRetrieve> & {
|
|
48
|
+
fields?: string;
|
|
49
|
+
};
|
|
50
|
+
export type UiOpenRequest = OpenRequestPayload;
|
|
51
|
+
export type UiCompletePostcallRequest = {
|
|
52
|
+
was_successfully_submitted?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type UiSetPostcallStyleRequest = Record<string, any>;
|
|
55
|
+
export type UiAppResizeRequest = {
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
export type UiCanvasNavigatePageReuqest = {
|
|
59
|
+
page: ComponentNode['id'];
|
|
60
|
+
};
|
|
61
|
+
export interface UiToastRequest {
|
|
62
|
+
type: 'info' | 'error' | 'warning' | 'success' | 'loading';
|
|
63
|
+
message: string;
|
|
64
|
+
duration?: number;
|
|
65
|
+
closable?: boolean;
|
|
66
|
+
keepAliveOnHover?: boolean;
|
|
67
|
+
showIcon?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface UiPreselectSfdcMeetingIdRequest {
|
|
70
|
+
eventId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface UiPreselectSfdcMeetingIdResponse {
|
|
73
|
+
event: SfEvent | null;
|
|
74
|
+
}
|
|
75
|
+
export type UiMessagePayloads = {
|
|
76
|
+
[UI_MESSAGE_TYPES.UI_MEETING_CANCELED]: UiMeetingCanceledPayload;
|
|
77
|
+
[UI_MESSAGE_TYPES.UI_APP_SET_DATA]: UiAppSetDataPayload;
|
|
78
|
+
[UI_MESSAGE_TYPES.UI_APP_UPDATE_DATA]: UiAppUpdateDataPayload;
|
|
79
|
+
[UI_MESSAGE_TYPES.UI_CANVAS_UPDATED]: UiCanvasUpdatedPayload;
|
|
80
|
+
[UI_MESSAGE_TYPES.UI_SECTION_LIST_UPDATED]: UiSectionListUpdatedPayload;
|
|
81
|
+
};
|
|
82
|
+
export type UiMessageEnvelope<T extends (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES] = (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES]> = {
|
|
83
|
+
type: T;
|
|
84
|
+
body: UiMessagePayloads[T];
|
|
85
|
+
};
|
|
86
|
+
export type UiMeetingCanceledPayload = {
|
|
87
|
+
accountId?: string;
|
|
88
|
+
eventId?: string;
|
|
89
|
+
};
|
|
90
|
+
export type UiAppSetDataPayload = {
|
|
91
|
+
client: string | null;
|
|
92
|
+
platform: string | undefined;
|
|
93
|
+
user: User | null;
|
|
94
|
+
is_edit_mode: boolean;
|
|
95
|
+
in_call: boolean;
|
|
96
|
+
canvas: CanvasRetrieve;
|
|
97
|
+
used_in_section: CanvasSection | null;
|
|
98
|
+
component_id: string;
|
|
99
|
+
settings: EmbeddableProps['settings'] | null;
|
|
100
|
+
width: string | undefined;
|
|
101
|
+
height: string | undefined;
|
|
102
|
+
display_mode: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
export type UiAppUpdateDataPayload = {
|
|
105
|
+
in_call: boolean;
|
|
106
|
+
is_edit_mode: boolean;
|
|
107
|
+
};
|
|
108
|
+
export type UiCanvasUpdatedPayload = {
|
|
109
|
+
canvas: CanvasRetrieve;
|
|
110
|
+
};
|
|
111
|
+
export type UiSectionListUpdatedPayload = {
|
|
112
|
+
section_list_ids: string[];
|
|
113
|
+
section_list_component_id: string;
|
|
114
|
+
canvas: CanvasRetrieve | null;
|
|
115
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetUsersParams, RefreshServiceTokenResponse, RefreshServiceTokenRequest } from '../../../types/users';
|
|
2
|
+
import { PaginatedData } from '../../../types/paginatedData';
|
|
3
|
+
import { User } from '../../../../types/openapi';
|
|
4
|
+
|
|
5
|
+
export declare function getUsers(payload?: GetUsersParams): Promise<PaginatedData<User>>;
|
|
6
|
+
export declare function refreshServiceToken(payload?: RefreshServiceTokenRequest): Promise<RefreshServiceTokenResponse>;
|
|
7
|
+
export declare function refreshAccessToken(): any;
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { Emitter } from './utils/eventEmitter';
|
|
2
|
+
import { Favorite, File, User, CanvasRetrieve } from '../../types/openapi';
|
|
3
|
+
import { PitcherOrg } from '../types/organization.types';
|
|
4
|
+
import { PitcherInstance } from '../types/instance.types';
|
|
5
|
+
import { PaginatedData } from '../types/paginatedData';
|
|
6
|
+
import { LaunchDarklyEnv } from '../types/launchDarkly.types';
|
|
7
|
+
import { CLIENT_TYPE } from '../constants/cdp.const';
|
|
8
|
+
|
|
9
|
+
export declare const PITCHER_EVENT: "PITCHER_EVENT";
|
|
10
|
+
export declare enum PitcherMessageType {
|
|
11
|
+
REQUEST = "PITCHER_REQUEST",
|
|
12
|
+
RESPONSE = "PITCHER_RESPONSE"
|
|
13
|
+
}
|
|
14
|
+
export declare enum PitcherResponseStatus {
|
|
15
|
+
OK = "ok",
|
|
16
|
+
ERROR = "error"
|
|
17
|
+
}
|
|
18
|
+
export interface PitcherMessage {
|
|
19
|
+
type: typeof PITCHER_EVENT;
|
|
20
|
+
request: {
|
|
21
|
+
id: string;
|
|
22
|
+
type: string;
|
|
23
|
+
body?: Record<string, any>;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
type FetchMode = 'postmessage' | 'prefer-online';
|
|
27
|
+
export interface ApiOptions {
|
|
28
|
+
errorLogger?: (p: any) => string | void;
|
|
29
|
+
logLevel?: 'off' | 'info' | 'debug';
|
|
30
|
+
casing?: 'camel' | 'snake';
|
|
31
|
+
fetchMode?: FetchMode;
|
|
32
|
+
}
|
|
33
|
+
export interface PitcherEnv {
|
|
34
|
+
mode: 'WEB' | 'IOS' | 'WINDOWS' | 'ANDROID';
|
|
35
|
+
pitcher: {
|
|
36
|
+
token_claims: Record<string, any>;
|
|
37
|
+
organization: PitcherOrg;
|
|
38
|
+
instance: PitcherInstance;
|
|
39
|
+
user: User;
|
|
40
|
+
access_token: string;
|
|
41
|
+
id_token: string;
|
|
42
|
+
};
|
|
43
|
+
launch_darkly?: LaunchDarklyEnv;
|
|
44
|
+
client_type?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
45
|
+
}
|
|
46
|
+
export interface PitcherAPI extends Emitter<ApiEventMap> {
|
|
47
|
+
request(type: string, body: any, callback: () => any): Promise<PitcherResponse>;
|
|
48
|
+
}
|
|
49
|
+
export interface PitcherInterface extends Emitter<PitcherEventMap> {
|
|
50
|
+
API: PitcherAPI;
|
|
51
|
+
}
|
|
52
|
+
export interface PitcherResponse {
|
|
53
|
+
type: PitcherMessageType.RESPONSE;
|
|
54
|
+
request: {
|
|
55
|
+
id: string;
|
|
56
|
+
type: string;
|
|
57
|
+
body?: Record<string, any>;
|
|
58
|
+
};
|
|
59
|
+
response: {
|
|
60
|
+
status: PitcherResponseStatus;
|
|
61
|
+
body?: Record<string, any>;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface OpenCanvasPitcherEvent {
|
|
65
|
+
account_id?: string;
|
|
66
|
+
account_name?: string;
|
|
67
|
+
canvas_id?: string;
|
|
68
|
+
edit_mode?: 'true' | 'false';
|
|
69
|
+
}
|
|
70
|
+
export interface CreateAndOpenCanvasEvent {
|
|
71
|
+
account_id?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface StartCallPitcherEvent {
|
|
74
|
+
account?: {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
contact_ids?: string[];
|
|
79
|
+
canvas_id?: string;
|
|
80
|
+
edit_mode?: 'true' | 'false';
|
|
81
|
+
post_action?: string;
|
|
82
|
+
post_action_path?: string;
|
|
83
|
+
}
|
|
84
|
+
export declare enum PitcherEventName {
|
|
85
|
+
ENV_CHANGED = "env_changed",
|
|
86
|
+
PHOTOS_CAPTURED = "photos_captured",
|
|
87
|
+
FILE_DOWNLOADED = "file_downloaded",
|
|
88
|
+
FILE_UPLOAD_PROGRESS = "file_upload_progress",
|
|
89
|
+
UPDATE_LOCATION = "update_location",
|
|
90
|
+
CANVAS_UPDATED = "canvas_updated",
|
|
91
|
+
CANVAS_UPDATED_SUCCESS = "canvas_updated_success",
|
|
92
|
+
FILE_CLOSED = "file_closed",
|
|
93
|
+
APP_BACKGROUNDED = "app_backgrounded",
|
|
94
|
+
APP_FOREGROUNDED = "app_foregrounded",
|
|
95
|
+
NON_FILES_SYNC_FINISHED = "non_files_sync_finished",
|
|
96
|
+
CONTENT_LIST_REFRESH_REQUESTED = "content_list_refresh_requested",
|
|
97
|
+
NETWORK_CONNECTION_ESTABLISHED = "network_connection_established",
|
|
98
|
+
NETWORK_CONNECTION_LOST = "network_connection_lost",
|
|
99
|
+
ENTERED_FULLSCREEN = "entered_fullscreen",
|
|
100
|
+
EXITED_FULLSCREEN = "exited_fullscreen",
|
|
101
|
+
SUBMIT_POSTCALL_CLICKED = "submit_postcall_clicked"
|
|
102
|
+
}
|
|
103
|
+
export declare enum PitcherBroadcastedEventName {
|
|
104
|
+
UI_SHOW_MODAL = "ui:show-modal",
|
|
105
|
+
UI_HIDE_MODAL = "ui:hide-modal",
|
|
106
|
+
FAVORITES_CHANGED = "favorites:changed",
|
|
107
|
+
FILE_DOWNLOAD = "file:download"
|
|
108
|
+
}
|
|
109
|
+
export declare enum PitcherExternalEventName {
|
|
110
|
+
CREATE_AND_OPEN_CANVAS = "create_and_open_canvas",
|
|
111
|
+
OPEN_CANVAS = "open_canvas",
|
|
112
|
+
START_CALL = "start_call"
|
|
113
|
+
}
|
|
114
|
+
interface UpdateLocation {
|
|
115
|
+
action: string;
|
|
116
|
+
}
|
|
117
|
+
export interface LocationRoute {
|
|
118
|
+
path: string;
|
|
119
|
+
query: Record<string, any>;
|
|
120
|
+
is_restoring: boolean;
|
|
121
|
+
is_mounted: boolean;
|
|
122
|
+
}
|
|
123
|
+
export type LocationRoutes = Record<string, LocationRoute>;
|
|
124
|
+
export interface UpdateLocationOnRegister extends UpdateLocation {
|
|
125
|
+
action: 'register';
|
|
126
|
+
child_app: string;
|
|
127
|
+
parent_app?: string;
|
|
128
|
+
path?: string;
|
|
129
|
+
query?: Record<string, any>;
|
|
130
|
+
}
|
|
131
|
+
export interface UpdateLocationOnUnregister extends UpdateLocation {
|
|
132
|
+
action: 'unregister';
|
|
133
|
+
app: string;
|
|
134
|
+
}
|
|
135
|
+
export interface UpdateLocationOnUpdate extends UpdateLocation {
|
|
136
|
+
action: 'update';
|
|
137
|
+
routes: Record<string, Omit<LocationRoute, 'is_restoring' | 'is_mounted'>>;
|
|
138
|
+
}
|
|
139
|
+
export interface UpdateLocationOnMounted extends UpdateLocation {
|
|
140
|
+
action: 'mounted';
|
|
141
|
+
app: string;
|
|
142
|
+
}
|
|
143
|
+
export interface UpdateLocationOnRestore extends UpdateLocation {
|
|
144
|
+
action: 'restore';
|
|
145
|
+
routes: Record<string, Omit<LocationRoute, 'is_mounted'>>;
|
|
146
|
+
}
|
|
147
|
+
export interface UpdateLocationOnRestoreCompleted extends UpdateLocation {
|
|
148
|
+
action: 'restore_completed';
|
|
149
|
+
app: string;
|
|
150
|
+
path: string;
|
|
151
|
+
query: Record<string, any>;
|
|
152
|
+
}
|
|
153
|
+
export interface UpdateLocationOnGetRoutesRequest extends UpdateLocation {
|
|
154
|
+
action: 'get_routes_request';
|
|
155
|
+
app: string;
|
|
156
|
+
}
|
|
157
|
+
export interface UpdateLocationOnGetRoutesResponse extends UpdateLocation {
|
|
158
|
+
action: 'get_routes_response';
|
|
159
|
+
app: string;
|
|
160
|
+
routes: LocationRoutes;
|
|
161
|
+
}
|
|
162
|
+
export type UpdateLocationPitcherEvent = UpdateLocationOnUnregister | UpdateLocationOnRestore | UpdateLocationOnUpdate | UpdateLocationOnRegister | UpdateLocationOnRestoreCompleted | UpdateLocationOnMounted | UpdateLocationOnGetRoutesRequest | UpdateLocationOnGetRoutesResponse;
|
|
163
|
+
export interface PitcherEventMap {
|
|
164
|
+
[PitcherEventName.ENV_CHANGED]: PitcherEnv;
|
|
165
|
+
/**
|
|
166
|
+
* @see iOS-only
|
|
167
|
+
*/
|
|
168
|
+
[PitcherEventName.PHOTOS_CAPTURED]: void;
|
|
169
|
+
/**
|
|
170
|
+
* @see iOS-only
|
|
171
|
+
*/
|
|
172
|
+
[PitcherEventName.NON_FILES_SYNC_FINISHED]: {
|
|
173
|
+
user_triggered: boolean;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* @see iOS-only
|
|
177
|
+
*/
|
|
178
|
+
[PitcherEventName.CONTENT_LIST_REFRESH_REQUESTED]: void;
|
|
179
|
+
/**
|
|
180
|
+
* @see iOS-only
|
|
181
|
+
*/
|
|
182
|
+
[PitcherEventName.FILE_DOWNLOADED]: File;
|
|
183
|
+
/**
|
|
184
|
+
* @see iOS-only
|
|
185
|
+
*/
|
|
186
|
+
[PitcherEventName.NETWORK_CONNECTION_ESTABLISHED]: void;
|
|
187
|
+
/**
|
|
188
|
+
* @see iOS-only
|
|
189
|
+
*/
|
|
190
|
+
[PitcherEventName.NETWORK_CONNECTION_LOST]: void;
|
|
191
|
+
/**
|
|
192
|
+
* @see iOS-only
|
|
193
|
+
*/
|
|
194
|
+
[PitcherEventName.FILE_UPLOAD_PROGRESS]: {
|
|
195
|
+
upload_uid: string;
|
|
196
|
+
progress: number;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* @see WEB-only
|
|
200
|
+
*/
|
|
201
|
+
[PitcherEventName.ENTERED_FULLSCREEN]: void;
|
|
202
|
+
/**
|
|
203
|
+
* @see WEB-only
|
|
204
|
+
*/
|
|
205
|
+
[PitcherEventName.EXITED_FULLSCREEN]: void;
|
|
206
|
+
[PitcherEventName.CANVAS_UPDATED]: Record<string, any>;
|
|
207
|
+
[PitcherEventName.CANVAS_UPDATED_SUCCESS]: Partial<CanvasRetrieve>;
|
|
208
|
+
[PitcherEventName.UPDATE_LOCATION]: UpdateLocationPitcherEvent;
|
|
209
|
+
[PitcherEventName.FILE_CLOSED]: {
|
|
210
|
+
file_id?: string;
|
|
211
|
+
};
|
|
212
|
+
[PitcherEventName.SUBMIT_POSTCALL_CLICKED]: void;
|
|
213
|
+
[PitcherBroadcastedEventName.UI_SHOW_MODAL]: void;
|
|
214
|
+
[PitcherBroadcastedEventName.UI_HIDE_MODAL]: void;
|
|
215
|
+
[PitcherBroadcastedEventName.FAVORITES_CHANGED]: {
|
|
216
|
+
body: PaginatedData<Favorite>;
|
|
217
|
+
};
|
|
218
|
+
[PitcherBroadcastedEventName.FILE_DOWNLOAD]: {
|
|
219
|
+
body: File['id'];
|
|
220
|
+
};
|
|
221
|
+
[PitcherExternalEventName.OPEN_CANVAS]: OpenCanvasPitcherEvent;
|
|
222
|
+
[PitcherExternalEventName.START_CALL]: StartCallPitcherEvent;
|
|
223
|
+
[PitcherExternalEventName.CREATE_AND_OPEN_CANVAS]: CreateAndOpenCanvasEvent;
|
|
224
|
+
}
|
|
225
|
+
export interface PitcherEvent {
|
|
226
|
+
type: keyof PitcherEventMap;
|
|
227
|
+
body: PitcherEventMap[keyof PitcherEventMap];
|
|
228
|
+
}
|
|
229
|
+
export interface ApiEventMap {
|
|
230
|
+
event: PitcherEvent;
|
|
231
|
+
}
|
|
232
|
+
export {};
|