@riverbankcms/sdk 0.68.0 → 0.70.2
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/dist/_dts/ai/src/contracts/commandExposure.d.ts +8 -0
- package/dist/_dts/ai/src/contracts/feedback.d.ts +55 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +34764 -0
- package/dist/_dts/ai/src/contracts.d.ts +5 -0
- package/dist/_dts/ai/src/designer/rfc6902.d.ts +16 -0
- package/dist/_dts/ai/src/designer/themePatch.d.ts +50 -0
- package/dist/_dts/api/src/accessAdmin.d.ts +3 -3
- package/dist/_dts/api/src/admin/types.d.ts +1 -1
- package/dist/_dts/api/src/aiPlayground.d.ts +13 -87
- package/dist/_dts/api/src/appointmentSetup.d.ts +23 -0
- package/dist/_dts/api/src/availability.d.ts +84 -2
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +10 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +1 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -2
- package/dist/_dts/api/src/contentTypes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +29 -0
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +2 -2
- package/dist/_dts/api/src/public/types.d.ts +2 -2
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/siteBanner.d.ts +9 -9
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -5
- package/dist/_dts/api/src/siteSettings.d.ts +3 -3
- package/dist/_dts/api/src/teamMembers.d.ts +1 -1
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/url.d.ts +1 -1
- package/dist/_dts/billing/src/components/index.d.ts +102 -3
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +1 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -2
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -2
- package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +1 -1
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
- package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +4 -4
- package/dist/_dts/block-form/src/widgets/constants.d.ts +1 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/client.d.ts +6 -4
- package/dist/_dts/blocks/src/index.d.ts +28 -27
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +1 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/structure/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +42 -42
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +1764 -1764
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +44 -44
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +139 -139
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +19 -19
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +1 -1
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +5 -5
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/frame/frameStyles.d.ts +3 -3
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/augmentManifest.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +1 -1
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/typography.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +45 -29
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +11 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/LeafletStaticMap.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +1 -1
- package/dist/_dts/blocks/src/system/theme/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/deriveRecoveryConflict.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/invalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useInvalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +2 -2
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/registry.d.ts +1 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +2 -2
- package/dist/_dts/content-editor/src/types.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +3 -3
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/utils.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/core/src/branded.d.ts +2 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/planner.d.ts +64 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +236 -18
- package/dist/_dts/db/src/schemas/forms.d.ts +62 -62
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/FormProvider.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +6 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockDiscovery.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useDraftContent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/sdkBlockMerger.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/settingsIntent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-form/debug.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +6 -6
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/reference/types.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/richTextImageHydration.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/shared/Combobox.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetDeletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDomain.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDownloadResolution.d.ts +1 -1
- package/dist/_dts/media-core/src/filePersistence.d.ts +1 -1
- package/dist/_dts/media-core/src/fileStorage.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadAssetBuilder.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCleanup.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadSessionCreation.d.ts +1 -1
- package/dist/_dts/media-core/src/types.d.ts +2 -2
- package/dist/_dts/media-core/src/url.d.ts +1 -1
- package/dist/_dts/media-core/src/videoPrep.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/context.d.ts +3 -3
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/cropEditorSource.d.ts +1 -1
- package/dist/_dts/media-editor/src/debug.d.ts +1 -1
- package/dist/_dts/media-editor/src/provider.d.ts +3 -3
- package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +1 -1
- package/dist/_dts/media-editor/src/transformModel.d.ts +1 -1
- package/dist/_dts/media-editor/src/types.d.ts +2 -2
- package/dist/_dts/media-editor/src/utils.d.ts +1 -1
- package/dist/_dts/media-react/src/components/ImageCropper.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropDraftModel.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropSessionState.d.ts +1 -1
- package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -1
- package/dist/_dts/media-react/src/ffmpegLoader.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/mediaAssetResponseMapper.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +4 -4
- package/dist/_dts/media-react/src/utils/rotation.d.ts +1 -1
- package/dist/_dts/media-react/src/videoFrameExtraction.d.ts +1 -1
- package/dist/_dts/media-react/src/videoPrepBrowser.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/editorRegistry.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -10
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +10 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +10 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +8 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +8 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/pageSchema.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurfacePolicy.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/subrouteNotice.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -3
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -2
- package/dist/_dts/sdk/src/bookings/types.d.ts +16 -10
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +19 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/env.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/theme.d.ts +3 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +23 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +37 -43
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
- package/dist/_dts/sdk/src/portal/config.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/constants.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/cookies.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/middleware.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +19 -4
- package/dist/_dts/sdk/src/rendering/islands/blocksContracts.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +3 -3
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +3 -3
- package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +95 -46
- package/dist/_dts/site-commands/src/domain.d.ts +2 -2
- package/dist/_dts/site-commands/src/exposure.d.ts +3 -3
- package/dist/_dts/site-commands/src/metadata.d.ts +15 -2
- package/dist/_dts/site-commands/src/planner.d.ts +1 -1
- package/dist/_dts/site-commands/src/refs.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +9 -9
- package/dist/_dts/theme-core/src/blocks/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/blocks/types.d.ts +3 -2
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +35 -35
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +18 -18
- package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/inputs/types.d.ts +13 -13
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +351 -351
- package/dist/_dts/theme-core/src/navigation/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/palette/recipes/allRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +24 -24
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +65 -65
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +18 -18
- package/dist/_dts/theme-core/src/progress/generateProgressCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +1 -1
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +4 -0
- package/dist/_dts/theme-core/src/schema.d.ts +568 -568
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +34 -34
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +4 -4
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +5 -5
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +4 -4
- package/dist/cli/index.mjs +5989 -5678
- package/dist/client/bookings.mjs +104 -34
- package/dist/client/client.mjs +4482 -4298
- package/dist/client/hooks.mjs +5783 -3847
- package/dist/client/rendering/client.mjs +164 -35
- package/dist/client/rendering/islands.mjs +164 -35
- package/dist/client/rendering.mjs +530 -346
- package/dist/preview-next/before-render.mjs +39 -0
- package/dist/preview-next/client/runtime.mjs +339 -92
- package/dist/preview-next/middleware.mjs +39 -0
- package/dist/server/components.mjs +418 -310
- package/dist/server/config-validation.mjs +6899 -4883
- package/dist/server/config.mjs +6890 -4883
- package/dist/server/data.mjs +5783 -3847
- package/dist/server/index.mjs +199 -1762
- package/dist/server/next.mjs +6577 -5268
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +420 -312
- package/dist/server/rendering.mjs +420 -312
- package/dist/server/routing.mjs +11475 -7881
- package/dist/server/server.mjs +5770 -3834
- package/dist/server/theme-bridge.mjs +249 -15
- package/package.json +1 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './contracts/proposals';
|
|
2
|
+
export * from './contracts/feedback';
|
|
3
|
+
export * from './contracts/commandExposure';
|
|
4
|
+
export { ThemePatchOpSchema, ThemePatchOpsSchema, type ThemePatchOp, DEFAULT_THEME_PATCH_FORBIDDEN_PATH_PREFIXES, DEFAULT_THEME_PATCH_MAX_OPS, DEFAULT_THEME_PATCH_MAX_SERIALIZED_BYTES, } from './designer/themePatch';
|
|
5
|
+
export { applyRfc6902Patch, type Rfc6902Op } from './designer/rfc6902';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Rfc6902AddOp = {
|
|
2
|
+
op: 'add';
|
|
3
|
+
path: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
};
|
|
6
|
+
export type Rfc6902RemoveOp = {
|
|
7
|
+
op: 'remove';
|
|
8
|
+
path: string;
|
|
9
|
+
};
|
|
10
|
+
export type Rfc6902ReplaceOp = {
|
|
11
|
+
op: 'replace';
|
|
12
|
+
path: string;
|
|
13
|
+
value: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type Rfc6902Op = Rfc6902AddOp | Rfc6902RemoveOp | Rfc6902ReplaceOp;
|
|
16
|
+
export declare function applyRfc6902Patch<T>(base: T, ops: Rfc6902Op[]): T;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Theme } from '../../../theme-core/src/index';
|
|
3
|
+
export declare const DEFAULT_THEME_PATCH_MAX_OPS = 25;
|
|
4
|
+
export declare const DEFAULT_THEME_PATCH_MAX_SERIALIZED_BYTES = 20000;
|
|
5
|
+
export declare const DEFAULT_THEME_PATCH_FORBIDDEN_PATH_PREFIXES: readonly ["/axes"];
|
|
6
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
7
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
export declare const ThemePatchOpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
op: z.ZodLiteral<"add">;
|
|
12
|
+
path: z.ZodString;
|
|
13
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
op: z.ZodLiteral<"replace">;
|
|
16
|
+
path: z.ZodString;
|
|
17
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
op: z.ZodLiteral<"remove">;
|
|
20
|
+
path: z.ZodString;
|
|
21
|
+
}, z.core.$strip>], "op">;
|
|
22
|
+
export type ThemePatchOp = z.infer<typeof ThemePatchOpSchema>;
|
|
23
|
+
export declare const ThemePatchOpsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
op: z.ZodLiteral<"add">;
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
op: z.ZodLiteral<"replace">;
|
|
29
|
+
path: z.ZodString;
|
|
30
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
op: z.ZodLiteral<"remove">;
|
|
33
|
+
path: z.ZodString;
|
|
34
|
+
}, z.core.$strip>], "op">>;
|
|
35
|
+
export type ThemePatchValidationResult = {
|
|
36
|
+
valid: true;
|
|
37
|
+
theme: Theme;
|
|
38
|
+
} | {
|
|
39
|
+
valid: false;
|
|
40
|
+
error: string;
|
|
41
|
+
};
|
|
42
|
+
export declare function validateThemePatch(args: {
|
|
43
|
+
baseTheme: Theme;
|
|
44
|
+
ops: ThemePatchOp[];
|
|
45
|
+
forbiddenPathPrefixes?: string[];
|
|
46
|
+
maxOps?: number;
|
|
47
|
+
maxSerializedBytes?: number;
|
|
48
|
+
validateRuntime?: boolean;
|
|
49
|
+
}): ThemePatchValidationResult;
|
|
50
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { MembershipSummary } from "
|
|
2
|
-
import type { BillingInterval } from "
|
|
3
|
-
import type { CamelizeKeys, DbRow, SupportedAdminRole } from "
|
|
1
|
+
import type { MembershipSummary } from "../../billing/src/membership/index";
|
|
2
|
+
import type { BillingInterval } from "../../billing/src/plans/types";
|
|
3
|
+
import type { CamelizeKeys, DbRow, SupportedAdminRole } from "../../db/src/index";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import type { PageRecord } from "./contentRuntime";
|
|
6
6
|
import type { SiteDeploymentMode } from "./siteSettings";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImpersonationScope, CamelizeKeys, DbRow, SupportedAdminRole } from '
|
|
1
|
+
import type { ImpersonationScope, CamelizeKeys, DbRow, SupportedAdminRole } from '../../../db/src/index';
|
|
2
2
|
export type AdminProfileRole = CamelizeKeys<DbRow<'profile_roles'>>;
|
|
3
3
|
export type StartImpersonationRequest = {
|
|
4
4
|
targetUserId: string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { AddBlockPageCommandBackedSchema, DuplicateBlockPageCommandBackedSchema, MoveBlockPageCommandBackedSchema, ReorderBlocksPageCommandBackedSchema, SwapBlocksPageCommandBackedSchema } from '../../ai/src/contracts';
|
|
3
|
+
import type { SdkCustomBlock } from '../../blocks/src/index';
|
|
4
|
+
import type { CustomCssAtRuleInput, CustomCssRuleInput } from '../../theme-core/src/index';
|
|
4
5
|
import type { JsonValue } from './shared-contracts';
|
|
6
|
+
type ReorderBlocksPageCommandBacked = z.infer<typeof ReorderBlocksPageCommandBackedSchema>;
|
|
7
|
+
type MoveBlockPageCommandBacked = z.infer<typeof MoveBlockPageCommandBackedSchema>;
|
|
8
|
+
type SwapBlocksPageCommandBacked = z.infer<typeof SwapBlocksPageCommandBackedSchema>;
|
|
9
|
+
type AddBlockPageCommandBacked = z.infer<typeof AddBlockPageCommandBackedSchema>;
|
|
10
|
+
type DuplicateBlockPageCommandBacked = z.infer<typeof DuplicateBlockPageCommandBackedSchema>;
|
|
5
11
|
/** Request body for previewing schedule changes */
|
|
6
12
|
export type SchedulePreviewRequest = {
|
|
7
13
|
/** New recurrence rule (null for single event) */
|
|
@@ -229,101 +235,21 @@ export type ApplyAiDesignerThemePatchResponse = {
|
|
|
229
235
|
themeId: string;
|
|
230
236
|
themeUpdatedAt: string;
|
|
231
237
|
};
|
|
232
|
-
type AiDesignerPageBlocksEnvelope = {
|
|
233
|
-
blockIds: string[];
|
|
234
|
-
};
|
|
235
|
-
type AiDesignerAddedPageBlock = {
|
|
236
|
-
id: string;
|
|
237
|
-
kind: string;
|
|
238
|
-
content?: Record<string, unknown> | null;
|
|
239
|
-
};
|
|
240
|
-
type AiDesignerBasePageOpPreview = {
|
|
241
|
-
id: string;
|
|
242
|
-
summary: string;
|
|
243
|
-
scope: "page";
|
|
244
|
-
pageId: string;
|
|
245
|
-
base: AiDesignerPageBlocksEnvelope;
|
|
246
|
-
before: AiDesignerPageBlocksEnvelope;
|
|
247
|
-
after: AiDesignerPageBlocksEnvelope & {
|
|
248
|
-
addedBlocks?: AiDesignerAddedPageBlock[];
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
type AiDesignerReorderBlocksPreview = AiDesignerBasePageOpPreview & {
|
|
252
|
-
kind: "reorder_blocks";
|
|
253
|
-
};
|
|
254
|
-
type AiDesignerMoveBlockPreview = AiDesignerBasePageOpPreview & {
|
|
255
|
-
kind: "move_block";
|
|
256
|
-
blockId: string;
|
|
257
|
-
anchor: {
|
|
258
|
-
kind: "after";
|
|
259
|
-
blockId: string | null;
|
|
260
|
-
} | {
|
|
261
|
-
kind: "before";
|
|
262
|
-
blockId: string | null;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
type AiDesignerSwapBlocksPreview = AiDesignerBasePageOpPreview & {
|
|
266
|
-
kind: "swap_blocks";
|
|
267
|
-
blockIdA: string;
|
|
268
|
-
blockIdB: string;
|
|
269
|
-
};
|
|
270
|
-
type AiDesignerAddBlockPreview = AiDesignerBasePageOpPreview & {
|
|
271
|
-
kind: "add_block";
|
|
272
|
-
blockKind: string;
|
|
273
|
-
afterBlockId: string | null;
|
|
274
|
-
after: AiDesignerPageBlocksEnvelope & {
|
|
275
|
-
addedBlocks: AiDesignerAddedPageBlock[];
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
type AiDesignerDuplicateBlockPreview = AiDesignerBasePageOpPreview & {
|
|
279
|
-
kind: "duplicate_block";
|
|
280
|
-
blockId: string;
|
|
281
|
-
afterBlockId: string | null;
|
|
282
|
-
after: AiDesignerPageBlocksEnvelope & {
|
|
283
|
-
addedBlocks: AiDesignerAddedPageBlock[];
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
type AiDesignerPageOpPreview = AiDesignerReorderBlocksPreview | AiDesignerMoveBlockPreview | AiDesignerSwapBlocksPreview | AiDesignerAddBlockPreview | AiDesignerDuplicateBlockPreview;
|
|
287
|
-
export type AiDesignerCommandBackedPageProposal<TPreview extends AiDesignerPageOpPreview = AiDesignerPageOpPreview> = {
|
|
288
|
-
proposalId: string;
|
|
289
|
-
surface: "page";
|
|
290
|
-
baseFingerprint: string;
|
|
291
|
-
commandBatch: {
|
|
292
|
-
recipeVersion: string;
|
|
293
|
-
batchRef: string;
|
|
294
|
-
target: {
|
|
295
|
-
siteRef: string;
|
|
296
|
-
};
|
|
297
|
-
commands: readonly unknown[];
|
|
298
|
-
};
|
|
299
|
-
preview: TPreview;
|
|
300
|
-
dryRunSummary?: string;
|
|
301
|
-
};
|
|
302
238
|
export type ApplyAiDesignerPageOpsRequest = {
|
|
303
239
|
kind: "reorder_blocks";
|
|
304
|
-
|
|
305
|
-
baseBlockIds: string[];
|
|
306
|
-
commandBacked: AiDesignerCommandBackedPageProposal<AiDesignerReorderBlocksPreview>;
|
|
240
|
+
commandBacked: ReorderBlocksPageCommandBacked;
|
|
307
241
|
} | {
|
|
308
242
|
kind: "move_block";
|
|
309
|
-
|
|
310
|
-
baseBlockIds: string[];
|
|
311
|
-
commandBacked: AiDesignerCommandBackedPageProposal<AiDesignerMoveBlockPreview>;
|
|
243
|
+
commandBacked: MoveBlockPageCommandBacked;
|
|
312
244
|
} | {
|
|
313
245
|
kind: "swap_blocks";
|
|
314
|
-
|
|
315
|
-
baseBlockIds: string[];
|
|
316
|
-
commandBacked: AiDesignerCommandBackedPageProposal<AiDesignerSwapBlocksPreview>;
|
|
246
|
+
commandBacked: SwapBlocksPageCommandBacked;
|
|
317
247
|
} | {
|
|
318
248
|
kind: "add_block";
|
|
319
|
-
|
|
320
|
-
baseBlockIds: string[];
|
|
321
|
-
commandBacked: AiDesignerCommandBackedPageProposal<AiDesignerAddBlockPreview>;
|
|
249
|
+
commandBacked: AddBlockPageCommandBacked;
|
|
322
250
|
} | {
|
|
323
251
|
kind: "duplicate_block";
|
|
324
|
-
|
|
325
|
-
baseBlockIds: string[];
|
|
326
|
-
commandBacked: AiDesignerCommandBackedPageProposal<AiDesignerDuplicateBlockPreview>;
|
|
252
|
+
commandBacked: DuplicateBlockPageCommandBacked;
|
|
327
253
|
};
|
|
328
254
|
export type ApplyAiDesignerPageOpsResponse = {
|
|
329
255
|
ok: true;
|
|
@@ -133,6 +133,8 @@ export declare const appointmentSetupServiceDraftSchema: z.ZodObject<{
|
|
|
133
133
|
title: z.ZodString;
|
|
134
134
|
description: z.ZodNullable<z.ZodString>;
|
|
135
135
|
durationMinutes: z.ZodNumber;
|
|
136
|
+
prepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
137
|
+
cleanupMinutes: z.ZodDefault<z.ZodNumber>;
|
|
136
138
|
priceAmount: z.ZodNullable<z.ZodNumber>;
|
|
137
139
|
isActive: z.ZodBoolean;
|
|
138
140
|
locationType: z.ZodUnion<readonly [z.ZodLiteral<"virtual">, z.ZodLiteral<"in_person">, z.ZodLiteral<"hybrid">]>;
|
|
@@ -191,6 +193,13 @@ export declare const appointmentSetupWeeklyWindowDraftSchema: z.ZodObject<{
|
|
|
191
193
|
endTime: z.ZodString;
|
|
192
194
|
}, z.core.$strip>;
|
|
193
195
|
export type AppointmentSetupWeeklyWindowDraft = z.infer<typeof appointmentSetupWeeklyWindowDraftSchema>;
|
|
196
|
+
export declare const appointmentSetupStartTimePolicyDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
+
kind: z.ZodLiteral<"automatic_spacing">;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"regular_interval">;
|
|
200
|
+
intervalMinutes: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<20>, z.ZodLiteral<30>, z.ZodLiteral<45>, z.ZodLiteral<60>]>;
|
|
201
|
+
}, z.core.$strip>], "kind">;
|
|
202
|
+
export type AppointmentSetupStartTimePolicyDraft = z.infer<typeof appointmentSetupStartTimePolicyDraftSchema>;
|
|
194
203
|
export declare const appointmentSetupAvailabilityDraftSchema: z.ZodObject<{
|
|
195
204
|
kind: z.ZodLiteral<"weekly_windows">;
|
|
196
205
|
resourceRef: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -212,6 +221,12 @@ export declare const appointmentSetupAvailabilityDraftSchema: z.ZodObject<{
|
|
|
212
221
|
startTime: z.ZodString;
|
|
213
222
|
endTime: z.ZodString;
|
|
214
223
|
}, z.core.$strip>>;
|
|
224
|
+
startTimePolicy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
225
|
+
kind: z.ZodLiteral<"automatic_spacing">;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
kind: z.ZodLiteral<"regular_interval">;
|
|
228
|
+
intervalMinutes: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<20>, z.ZodLiteral<30>, z.ZodLiteral<45>, z.ZodLiteral<60>]>;
|
|
229
|
+
}, z.core.$strip>], "kind">>;
|
|
215
230
|
}, z.core.$strip>;
|
|
216
231
|
export type AppointmentSetupAvailabilityDraft = z.infer<typeof appointmentSetupAvailabilityDraftSchema>;
|
|
217
232
|
/**
|
|
@@ -245,6 +260,8 @@ export declare const applyAppointmentSetupRequestSchema: z.ZodObject<{
|
|
|
245
260
|
title: z.ZodString;
|
|
246
261
|
description: z.ZodNullable<z.ZodString>;
|
|
247
262
|
durationMinutes: z.ZodNumber;
|
|
263
|
+
prepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
264
|
+
cleanupMinutes: z.ZodDefault<z.ZodNumber>;
|
|
248
265
|
priceAmount: z.ZodNullable<z.ZodNumber>;
|
|
249
266
|
isActive: z.ZodBoolean;
|
|
250
267
|
locationType: z.ZodUnion<readonly [z.ZodLiteral<"virtual">, z.ZodLiteral<"in_person">, z.ZodLiteral<"hybrid">]>;
|
|
@@ -316,6 +333,12 @@ export declare const applyAppointmentSetupRequestSchema: z.ZodObject<{
|
|
|
316
333
|
startTime: z.ZodString;
|
|
317
334
|
endTime: z.ZodString;
|
|
318
335
|
}, z.core.$strip>>;
|
|
336
|
+
startTimePolicy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
337
|
+
kind: z.ZodLiteral<"automatic_spacing">;
|
|
338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"regular_interval">;
|
|
340
|
+
intervalMinutes: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<20>, z.ZodLiteral<30>, z.ZodLiteral<45>, z.ZodLiteral<60>]>;
|
|
341
|
+
}, z.core.$strip>], "kind">>;
|
|
319
342
|
}, z.core.$strip>>;
|
|
320
343
|
bookingNotice: z.ZodObject<{
|
|
321
344
|
minLeadMinutes: z.ZodNumber;
|
|
@@ -17,6 +17,8 @@ export type AvailabilityRule = {
|
|
|
17
17
|
};
|
|
18
18
|
export type ListAvailabilityRulesResponse = {
|
|
19
19
|
rules: AvailabilityRule[];
|
|
20
|
+
schedule?: AvailabilityScheduleSettings;
|
|
21
|
+
serviceSchedules?: ServiceSpecificAvailabilityScheduleSettings[];
|
|
20
22
|
};
|
|
21
23
|
export type WeeklyAvailabilityWindowInput = {
|
|
22
24
|
/** 0-6 (Sunday-Saturday). */
|
|
@@ -28,12 +30,46 @@ export type WeeklyAvailabilityWindowInput = {
|
|
|
28
30
|
};
|
|
29
31
|
export type SetWeeklyAvailabilityRequest = {
|
|
30
32
|
windows: WeeklyAvailabilityWindowInput[];
|
|
33
|
+
startTimePolicy?: AvailabilityStartTimePolicyInput;
|
|
34
|
+
};
|
|
35
|
+
export type AvailabilityStartIntervalMinutes = 10 | 15 | 20 | 30 | 45 | 60;
|
|
36
|
+
export type SpecificAvailabilityStartInput = {
|
|
37
|
+
/** 0-6 (Sunday-Saturday). */
|
|
38
|
+
weekday: number;
|
|
39
|
+
/** HH:MM. */
|
|
40
|
+
startTime: string;
|
|
41
|
+
};
|
|
42
|
+
export type AvailabilityStartTimePolicyInput = {
|
|
43
|
+
kind: 'automatic_spacing';
|
|
44
|
+
} | {
|
|
45
|
+
kind: 'regular_interval';
|
|
46
|
+
intervalMinutes: AvailabilityStartIntervalMinutes;
|
|
47
|
+
} | {
|
|
48
|
+
kind: 'specific_start_times';
|
|
49
|
+
starts: SpecificAvailabilityStartInput[];
|
|
50
|
+
};
|
|
51
|
+
export type AvailabilityScheduleSettings = {
|
|
52
|
+
id: string;
|
|
53
|
+
role: {
|
|
54
|
+
kind: 'default';
|
|
55
|
+
} | {
|
|
56
|
+
kind: 'service_specific';
|
|
57
|
+
serviceIds: string[];
|
|
58
|
+
};
|
|
59
|
+
startTimePolicy: AvailabilityStartTimePolicyInput;
|
|
60
|
+
windows: WeeklyAvailabilityWindowInput[];
|
|
61
|
+
};
|
|
62
|
+
export type ServiceSpecificAvailabilityScheduleSettings = AvailabilityScheduleSettings & {
|
|
63
|
+
role: {
|
|
64
|
+
kind: 'service_specific';
|
|
65
|
+
serviceIds: string[];
|
|
66
|
+
};
|
|
31
67
|
};
|
|
32
68
|
/**
|
|
33
69
|
* Canonical code-set for the `fieldErrors[]` surfaced through a 400 from
|
|
34
70
|
* `PUT setWeeklyAvailability` when the supplied schedule fails validation.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
71
|
+
* Window issues map to `windows[]` paths, and start-policy issues map to
|
|
72
|
+
* `startTimePolicy.*` paths so the editor can render inline messages.
|
|
37
73
|
*
|
|
38
74
|
* NOT a response variant: success returns `SetWeeklyAvailabilityResponse`
|
|
39
75
|
* directly; failure rides on the dashboard error envelope's `fieldErrors`
|
|
@@ -53,6 +89,39 @@ export type SetWeeklyAvailabilityIssue = {
|
|
|
53
89
|
weekday: number;
|
|
54
90
|
firstIndex: number;
|
|
55
91
|
secondIndex: number;
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'invalid_regular_interval';
|
|
94
|
+
intervalMinutes: number;
|
|
95
|
+
allowedIntervals: AvailabilityStartIntervalMinutes[];
|
|
96
|
+
} | {
|
|
97
|
+
kind: 'invalid_specific_start_time';
|
|
98
|
+
weekday: number;
|
|
99
|
+
index: number;
|
|
100
|
+
value: string;
|
|
101
|
+
} | {
|
|
102
|
+
kind: 'invalid_specific_start_weekday';
|
|
103
|
+
weekday: number;
|
|
104
|
+
index: number;
|
|
105
|
+
} | {
|
|
106
|
+
kind: 'duplicate_specific_start_time';
|
|
107
|
+
weekday: number;
|
|
108
|
+
firstIndex: number;
|
|
109
|
+
secondIndex: number;
|
|
110
|
+
startTime: string;
|
|
111
|
+
} | {
|
|
112
|
+
kind: 'fixed_start_gap_too_short';
|
|
113
|
+
serviceName: string;
|
|
114
|
+
weekday: number;
|
|
115
|
+
firstStart: string;
|
|
116
|
+
secondStart: string;
|
|
117
|
+
requiredGapMinutes: number;
|
|
118
|
+
actualGapMinutes: number;
|
|
119
|
+
} | {
|
|
120
|
+
kind: 'invalid_service_assignment';
|
|
121
|
+
serviceId: string;
|
|
122
|
+
} | {
|
|
123
|
+
kind: 'duplicate_service_assignment';
|
|
124
|
+
serviceId: string;
|
|
56
125
|
};
|
|
57
126
|
/**
|
|
58
127
|
* Success response from `PUT setWeeklyAvailability`. Returns the
|
|
@@ -63,6 +132,19 @@ export type SetWeeklyAvailabilityIssue = {
|
|
|
63
132
|
*/
|
|
64
133
|
export type SetWeeklyAvailabilityResponse = {
|
|
65
134
|
rules: AvailabilityRule[];
|
|
135
|
+
schedule?: AvailabilityScheduleSettings;
|
|
136
|
+
};
|
|
137
|
+
export type SetServiceSpecificAvailabilityRequest = {
|
|
138
|
+
scheduleId?: string;
|
|
139
|
+
serviceIds: string[];
|
|
140
|
+
windows: WeeklyAvailabilityWindowInput[];
|
|
141
|
+
startTimePolicy?: AvailabilityStartTimePolicyInput;
|
|
142
|
+
};
|
|
143
|
+
export type SetServiceSpecificAvailabilityResponse = {
|
|
144
|
+
schedule: ServiceSpecificAvailabilityScheduleSettings;
|
|
145
|
+
};
|
|
146
|
+
export type DeleteServiceSpecificAvailabilityResponse = {
|
|
147
|
+
success: boolean;
|
|
66
148
|
};
|
|
67
149
|
export type AppointmentBlackout = {
|
|
68
150
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChangePlanRequest, ChangePlanResponse } from './types';
|
|
2
2
|
import type { ApiClient } from './request';
|
|
3
|
-
import type { BillingComponentSummaryAddOnComponent, BillingComponentSummaryBasePlanComponent, BillingComponentSummaryComponent, BillingComponentSummarySiteComponent } from '
|
|
3
|
+
import type { BillingComponentSummaryAddOnComponent, BillingComponentSummaryBasePlanComponent, BillingComponentSummaryComponent, BillingComponentSummarySiteComponent } from '../../billing/src/components/index';
|
|
4
4
|
export type BillingStatusResponse = {
|
|
5
5
|
hasActiveSubscription: boolean;
|
|
6
6
|
subscriptionStatus: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventOnlineDetails, EventOnlineDetailsInput } from "./bookingRecords";
|
|
2
2
|
import type { SiteVerticalBookingConfig } from "./bookingVerticals";
|
|
3
|
-
import type { EventPricingMode, StaffMemberId, UserId } from "
|
|
4
|
-
export type { EventPricingMode } from "
|
|
3
|
+
import type { EventPricingMode, StaffMemberId, UserId } from "../../core/src/index";
|
|
4
|
+
export type { EventPricingMode } from "../../core/src/index";
|
|
5
5
|
/**
|
|
6
6
|
* Booking Configuration Contracts
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { APIEndpoint } from "./apiEndpointTypes";
|
|
2
|
-
import type { CreateBlackoutRequest, CreateBlackoutResponse, DeleteBlackoutResponse, GetAvailableSlotsQuery, GetAvailableSlotsResponse, ListAvailabilityRulesResponse, ListBlackoutsResponse, SetWeeklyAvailabilityRequest, SetWeeklyAvailabilityResponse } from "./availability";
|
|
2
|
+
import type { CreateBlackoutRequest, CreateBlackoutResponse, DeleteBlackoutResponse, DeleteServiceSpecificAvailabilityResponse, GetAvailableSlotsQuery, GetAvailableSlotsResponse, ListAvailabilityRulesResponse, ListBlackoutsResponse, SetServiceSpecificAvailabilityRequest, SetServiceSpecificAvailabilityResponse, SetWeeklyAvailabilityRequest, SetWeeklyAvailabilityResponse } from "./availability";
|
|
3
3
|
import type { CalendarStatusResponse, BookingCalendarFeedMutationResponse, BookingCalendarFeedStatusResponse, DisconnectCalendarResponse, UpdateCalendarPreferencesRequest, UpdateCalendarPreferencesResponse } from "./calendar";
|
|
4
4
|
import type { BookingRequirementConfigRequest, BookingRequirementConfigResponse, CreateAppointmentRequest, CreateAppointmentResponse } from "./bookings";
|
|
5
5
|
import type { BookingClosureConflictResponse, CreateBookingClosureRequest, CreateBookingClosureResponse, DeleteBookingClosureResponse, GetBookingClosureResponse, ListBookingClosuresResponse, PreviewBookingClosureResponse, BookingClosureRequest } from "./bookingClosures";
|
|
@@ -353,6 +353,15 @@ export type BookingManagementAPIEndpoints = {
|
|
|
353
353
|
siteId: string;
|
|
354
354
|
resourceId: string;
|
|
355
355
|
}, SetWeeklyAvailabilityResponse>;
|
|
356
|
+
setServiceSpecificAvailability: APIEndpoint<SetServiceSpecificAvailabilityRequest, {
|
|
357
|
+
siteId: string;
|
|
358
|
+
resourceId: string;
|
|
359
|
+
}, SetServiceSpecificAvailabilityResponse>;
|
|
360
|
+
deleteServiceSpecificAvailability: APIEndpoint<never, {
|
|
361
|
+
siteId: string;
|
|
362
|
+
resourceId: string;
|
|
363
|
+
scheduleId: string;
|
|
364
|
+
}, DeleteServiceSpecificAvailabilityResponse>;
|
|
356
365
|
listBlackouts: APIEndpoint<never, {
|
|
357
366
|
siteId: string;
|
|
358
367
|
resourceId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiClient } from './request';
|
|
2
|
-
import type { SensitiveCollectionConfirmationVersion, SensitiveCollectionMode } from '
|
|
2
|
+
import type { SensitiveCollectionConfirmationVersion, SensitiveCollectionMode } from '../../core/src/index';
|
|
3
3
|
import type { BookingSettingsResponse, UpdateBookingSettingsRequest, CreateCourseRequest, CreateCourseResponse, UpdateCourseRequest, UpdateCourseResponse, DeleteCourseResponse, DeleteCourseProgramResponse, DuplicateCourseRequest, DuplicateCourseResponse, AddCourseEnrollmentRequest, AddCourseEnrollmentResponse, AddEventOccurrenceAttendeeRequest, AddEventOccurrenceAttendeeResponse, UpdateCourseEnrollmentRequest, UpdateCourseEnrollmentResponse } from './types';
|
|
4
4
|
export { CUSTOMER_MEMBERSHIP_STATUS_VALUES, CUSTOMER_PASS_STATUS_VALUES, } from './bookingRecords';
|
|
5
5
|
export type { CustomerMembershipStatus, CustomerPassStatus, } from './bookingRecords';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppointmentBookingQuestionsTaskDetail, CustomerCourseEnrollment, CustomerEventRegistration, CustomerMembership, CustomerOrder, CustomerPass, EventGuest, MagicLinkRequest, PortalCancelCourseEnrollmentRequest, PortalCancelCourseEnrollmentResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalCancelMembershipAtPeriodEndResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCreditResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalEventTicket, PortalCourseBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalMeResponse, PortalMeUpdateRequest, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalUpdateCourseBookingQuestionsRequest, PortalUpdateCourseBookingQuestionsResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, UpdateEventGuestsRequest } from "
|
|
1
|
+
import type { AppointmentBookingQuestionsTaskDetail, CustomerCourseEnrollment, CustomerEventRegistration, CustomerMembership, CustomerOrder, CustomerPass, EventGuest, MagicLinkRequest, PortalCancelCourseEnrollmentRequest, PortalCancelCourseEnrollmentResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalCancelMembershipAtPeriodEndResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCreditResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalEventTicket, PortalCourseBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalMeResponse, PortalMeUpdateRequest, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalUpdateCourseBookingQuestionsRequest, PortalUpdateCourseBookingQuestionsResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, UpdateEventGuestsRequest } from "../../blocks/src/api";
|
|
2
2
|
import type { APIEndpoint } from "./apiEndpointTypes";
|
|
3
3
|
import type { DeleteAccountRequest, DeleteAccountResponse } from "./accessAdmin";
|
|
4
4
|
import type { AiPlaygroundApplyRequest, AiPlaygroundApplyResponse } from "./aiPlayground";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Block, SdkCustomBlock, SdkCustomBlockInput, SiteFont, Theme } from "
|
|
2
|
-
import type { CamelizeKeys, DbRow } from "
|
|
1
|
+
import type { Block, SdkCustomBlock, SdkCustomBlockInput, SiteFont, Theme } from "../../blocks/src/index";
|
|
2
|
+
import type { CamelizeKeys, DbRow } from "../../db/src/index";
|
|
3
3
|
import type { ContentTypeRoutingInfo, PublicContentTypeMeta } from "./contentTypes";
|
|
4
4
|
import type { SiteRuntimePrivacyPolicy } from "./privacyPolicy";
|
|
5
5
|
import type { SitePagePayload } from "./sitePages";
|
|
@@ -341,6 +341,7 @@ export type SiteBySlugResponse = {
|
|
|
341
341
|
theme: Theme;
|
|
342
342
|
themeId?: string | null;
|
|
343
343
|
selectionId?: string | null;
|
|
344
|
+
selectionVersion?: number | null;
|
|
344
345
|
selectionUpdatedAt?: string | null;
|
|
345
346
|
/**
|
|
346
347
|
* Persisted Style configurator selections (Phase C). Optional so legacy
|
|
@@ -1002,6 +1002,20 @@ export declare const API_ENDPOINTS: {
|
|
|
1002
1002
|
readonly responseKind: "json";
|
|
1003
1003
|
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "server:internal_error"];
|
|
1004
1004
|
};
|
|
1005
|
+
readonly setServiceSpecificAvailability: {
|
|
1006
|
+
readonly path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability";
|
|
1007
|
+
readonly method: "PUT";
|
|
1008
|
+
readonly auth: "user";
|
|
1009
|
+
readonly responseKind: "json";
|
|
1010
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "server:internal_error"];
|
|
1011
|
+
};
|
|
1012
|
+
readonly deleteServiceSpecificAvailability: {
|
|
1013
|
+
readonly path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}";
|
|
1014
|
+
readonly method: "DELETE";
|
|
1015
|
+
readonly auth: "user";
|
|
1016
|
+
readonly responseKind: "json";
|
|
1017
|
+
readonly errors: readonly ["resource:not_found", "server:internal_error"];
|
|
1018
|
+
};
|
|
1005
1019
|
readonly listBlackouts: {
|
|
1006
1020
|
readonly path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts";
|
|
1007
1021
|
readonly method: "GET";
|
|
@@ -2365,6 +2379,14 @@ export declare const API_ENDPOINTS: {
|
|
|
2365
2379
|
readonly auth: "user";
|
|
2366
2380
|
readonly responseKind: "json";
|
|
2367
2381
|
};
|
|
2382
|
+
readonly applySiteStyleSelection: {
|
|
2383
|
+
readonly path: "/sites/{siteId}/theme/style-selection/apply";
|
|
2384
|
+
readonly method: "POST";
|
|
2385
|
+
readonly tags: ["riverbank:site", "riverbank:site:{siteId}:theme"];
|
|
2386
|
+
readonly auth: "user";
|
|
2387
|
+
readonly errors: readonly ["validation:invalid_input", "auth:forbidden", "resource:not_found", "resource:conflict", "server:internal_error"];
|
|
2388
|
+
readonly responseKind: "json";
|
|
2389
|
+
};
|
|
2368
2390
|
readonly saveSiteChromeLookSelection: {
|
|
2369
2391
|
readonly path: "/sites/{siteId}/theme/site-chrome-look";
|
|
2370
2392
|
readonly method: "POST";
|
|
@@ -4734,6 +4756,13 @@ export declare const API_ENDPOINTS: {
|
|
|
4734
4756
|
readonly auth: "service";
|
|
4735
4757
|
readonly responseKind: "json";
|
|
4736
4758
|
};
|
|
4759
|
+
readonly sdkApplySiteStyleSelection: {
|
|
4760
|
+
readonly path: "/sdk/{siteId}/theme/style-selection/apply";
|
|
4761
|
+
readonly method: "POST";
|
|
4762
|
+
readonly auth: "service";
|
|
4763
|
+
readonly responseKind: "json";
|
|
4764
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"];
|
|
4765
|
+
};
|
|
4737
4766
|
readonly sdkUpsertFooter: {
|
|
4738
4767
|
readonly path: "/sdk/{siteId}/footer";
|
|
4739
4768
|
readonly method: "POST";
|
|
@@ -24,8 +24,8 @@ export declare const cartLinkLabelConfigSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
24
24
|
export declare const cartLinkPayloadSchema: z.ZodObject<{
|
|
25
25
|
kind: z.ZodLiteral<"cart">;
|
|
26
26
|
badge: z.ZodEnum<{
|
|
27
|
-
"show-count": "show-count";
|
|
28
27
|
hidden: "hidden";
|
|
28
|
+
"show-count": "show-count";
|
|
29
29
|
}>;
|
|
30
30
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
31
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -39,8 +39,8 @@ export declare const internalLinkPayloadSchema: z.ZodObject<{
|
|
|
39
39
|
routeId: z.ZodString;
|
|
40
40
|
entityId: z.ZodString;
|
|
41
41
|
entityType: z.ZodEnum<{
|
|
42
|
-
content: "content";
|
|
43
42
|
page: "page";
|
|
43
|
+
content: "content";
|
|
44
44
|
}>;
|
|
45
45
|
href: z.ZodString;
|
|
46
46
|
title: z.ZodString;
|
|
@@ -71,8 +71,8 @@ export declare const linkPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
71
|
routeId: z.ZodString;
|
|
72
72
|
entityId: z.ZodString;
|
|
73
73
|
entityType: z.ZodEnum<{
|
|
74
|
-
content: "content";
|
|
75
74
|
page: "page";
|
|
75
|
+
content: "content";
|
|
76
76
|
}>;
|
|
77
77
|
href: z.ZodString;
|
|
78
78
|
title: z.ZodString;
|
|
@@ -103,8 +103,8 @@ export declare const linkPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
103
103
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
104
|
kind: z.ZodLiteral<"cart">;
|
|
105
105
|
badge: z.ZodEnum<{
|
|
106
|
-
"show-count": "show-count";
|
|
107
106
|
hidden: "hidden";
|
|
107
|
+
"show-count": "show-count";
|
|
108
108
|
}>;
|
|
109
109
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
110
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -136,8 +136,8 @@ export declare const navigationLinkInputSchemaOptions: readonly [z.ZodObject<{
|
|
|
136
136
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
137
|
kind: z.ZodLiteral<"cart">;
|
|
138
138
|
badge: z.ZodEnum<{
|
|
139
|
-
"show-count": "show-count";
|
|
140
139
|
hidden: "hidden";
|
|
140
|
+
"show-count": "show-count";
|
|
141
141
|
}>;
|
|
142
142
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
143
143
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -169,8 +169,8 @@ export declare const navigationLinkInputSchema: z.ZodDiscriminatedUnion<readonly
|
|
|
169
169
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
170
|
kind: z.ZodLiteral<"cart">;
|
|
171
171
|
badge: z.ZodEnum<{
|
|
172
|
-
"show-count": "show-count";
|
|
173
172
|
hidden: "hidden";
|
|
173
|
+
"show-count": "show-count";
|
|
174
174
|
}>;
|
|
175
175
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
176
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -184,8 +184,8 @@ export declare const dashboardNavigationLinkSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
184
184
|
routeId: z.ZodString;
|
|
185
185
|
entityId: z.ZodString;
|
|
186
186
|
entityType: z.ZodEnum<{
|
|
187
|
-
content: "content";
|
|
188
187
|
page: "page";
|
|
188
|
+
content: "content";
|
|
189
189
|
}>;
|
|
190
190
|
href: z.ZodString;
|
|
191
191
|
title: z.ZodString;
|
|
@@ -216,8 +216,8 @@ export declare const dashboardNavigationLinkSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
216
216
|
}, z.core.$strip>, z.ZodObject<{
|
|
217
217
|
kind: z.ZodLiteral<"cart">;
|
|
218
218
|
badge: z.ZodEnum<{
|
|
219
|
-
"show-count": "show-count";
|
|
220
219
|
hidden: "hidden";
|
|
220
|
+
"show-count": "show-count";
|
|
221
221
|
}>;
|
|
222
222
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
223
223
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -249,8 +249,8 @@ export declare const sdkNavigationLinkInputSchema: z.ZodDiscriminatedUnion<reado
|
|
|
249
249
|
}, z.core.$strip>, z.ZodObject<{
|
|
250
250
|
kind: z.ZodLiteral<"cart">;
|
|
251
251
|
badge: z.ZodEnum<{
|
|
252
|
-
"show-count": "show-count";
|
|
253
252
|
hidden: "hidden";
|
|
253
|
+
"show-count": "show-count";
|
|
254
254
|
}>;
|
|
255
255
|
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
256
|
kind: z.ZodLiteral<"icon-only">;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Bidirectional conversion between block-level LinkValue (used in the editor)
|
|
5
5
|
* and LinkPayload (used in the database and API layer).
|
|
6
6
|
*/
|
|
7
|
-
import { type CustomLinkValue, type EntryLinkValue, type ExternalLinkValue, type InternalResolvedLinkValue, type LinkValue, type PageLinkValue } from '
|
|
7
|
+
import { type CustomLinkValue, type EntryLinkValue, type ExternalLinkValue, type InternalResolvedLinkValue, type LinkValue, type PageLinkValue } from '../../../blocks/src/index';
|
|
8
8
|
import type { LinkPayload, RoutableContentItem } from './types';
|
|
9
9
|
export type PersistableNavigationLinkValue = InternalResolvedLinkValue | ExternalLinkValue | CustomLinkValue | PageLinkValue | EntryLinkValue;
|
|
10
10
|
export type PersistableNavigationLinkError = {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* resolution results. They are consumed by the link resolver, navigation
|
|
6
6
|
* matcher, and dashboard management layers.
|
|
7
7
|
*/
|
|
8
|
-
import type { DbRow } from '
|
|
8
|
+
import type { DbRow } from '../../../db/src/index';
|
|
9
9
|
export type InternalLinkRoutablePayload = {
|
|
10
10
|
kind: 'internal';
|
|
11
11
|
routeId: string;
|