@riverbankcms/sdk 0.147.0 → 0.149.0
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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DBKln68M.mjs} +301 -205
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-DpRX4Mum.mjs} +68 -63
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +1247 -541
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +209720 -204978
- package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +1 -1
- package/dist/_dts/api/src/admin.d.ts +22 -22
- package/dist/_dts/api/src/aiPatch.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
- package/dist/_dts/api/src/analytics.d.ts +2 -2
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/auth.d.ts +10 -10
- package/dist/_dts/api/src/availability.d.ts +6 -6
- package/dist/_dts/api/src/billing.d.ts +42 -15
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
- package/dist/_dts/api/src/blocks.d.ts +15 -14
- package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -50
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +9 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +16 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/bookings.d.ts +7 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -8
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +135 -51
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +29 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +8 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
- package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
- package/dist/_dts/api/src/pages.d.ts +7 -7
- package/dist/_dts/api/src/performance.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +4 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +6 -29
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +11 -2
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -2
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +9 -2
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +15 -8
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
- package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
- package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
- package/dist/_dts/billing/src/components/index.d.ts +25 -40
- package/dist/_dts/billing/src/membership/index.d.ts +1 -3
- package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
- package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
- package/dist/_dts/billing/src/plans/types.d.ts +5 -15
- package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
- package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
- package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +54 -14
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -8
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +28 -28
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +72 -12
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +36 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +29 -29
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +54 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +3 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +15 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +60 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +7 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +456 -189
- package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardFrame.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
- package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +23 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +504 -163
- package/dist/client/DemoBookingPortalAccess-BFGB1Fay.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-CjZgHNvv.mjs} +216 -63
- package/dist/client/bookings.mjs +1187 -692
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +2711 -1684
- package/dist/client/{context-C8TinPJc.mjs → context-DFmaZa-Q.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-BBep1JnF.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-O6ZxHfOb.mjs} +422 -570
- package/dist/client/{form-Qf6qTbos.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +414 -182
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-DZd6RJeA.mjs} +244 -94
- package/dist/client/rendering/client.mjs +2656 -1705
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +3430 -2352
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-4F2jLQPI.mjs} +131 -85
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-BbfCJjB3.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-COYyL3m7.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +207 -105
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +341 -165
- package/dist/preview-next/middleware.mjs +207 -105
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BBmV7UsW.mjs} +243 -112
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +1839 -1475
- package/dist/server/config-validation.mjs +381 -166
- package/dist/server/config.mjs +381 -166
- package/dist/server/data.mjs +381 -166
- package/dist/server/index.mjs +214 -110
- package/dist/server/next.mjs +663 -351
- package/dist/server/page-converter.mjs +198 -79
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1536 -1169
- package/dist/server/rendering.mjs +2432 -2068
- package/dist/server/routing.mjs +456 -173
- package/dist/server/server.mjs +447 -267
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
- package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
- package/dist/_dts/content-editor/src/types.d.ts +0 -44
- package/dist/client/DiscountCodeDisclosure-CKJtz0mY.mjs +0 -137
package/dist/server/server.mjs
CHANGED
|
@@ -1625,6 +1625,7 @@ const SDK_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1625
1625
|
responseKind: "json",
|
|
1626
1626
|
errors: [
|
|
1627
1627
|
"resource:not_found",
|
|
1628
|
+
"validation:invalid_input",
|
|
1628
1629
|
"resource:conflict",
|
|
1629
1630
|
"server:internal_error"
|
|
1630
1631
|
]
|
|
@@ -1731,6 +1732,19 @@ const CURRENCY_LOCALE_BY_CODE = {
|
|
|
1731
1732
|
function resolveCurrencyLocale(currencyCode, override) {
|
|
1732
1733
|
return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
|
|
1733
1734
|
}
|
|
1735
|
+
function fractionDigitsFor(decimals, exactFormatter) {
|
|
1736
|
+
switch (decimals) {
|
|
1737
|
+
case "exact": return {};
|
|
1738
|
+
case "auto": return {
|
|
1739
|
+
minimumFractionDigits: 0,
|
|
1740
|
+
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
1741
|
+
};
|
|
1742
|
+
case "whole": return {
|
|
1743
|
+
minimumFractionDigits: 0,
|
|
1744
|
+
maximumFractionDigits: 0
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1734
1748
|
/**
|
|
1735
1749
|
* The single currency-amount formatter for the product: minor units in,
|
|
1736
1750
|
* localized string out.
|
|
@@ -1741,6 +1755,13 @@ function resolveCurrencyLocale(currencyCode, override) {
|
|
|
1741
1755
|
* own `Intl.NumberFormat`.
|
|
1742
1756
|
*/
|
|
1743
1757
|
function formatCurrencyAmount(amountCents, currency, options) {
|
|
1758
|
+
return formatCurrencyMajorUnits(amountCents / 100, currency, options);
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
|
|
1762
|
+
* such as a registrar price. Prefer minor units everywhere else.
|
|
1763
|
+
*/
|
|
1764
|
+
function formatCurrencyMajorUnits(amount, currency, options) {
|
|
1744
1765
|
const currencyCode = currency.toUpperCase();
|
|
1745
1766
|
const locale = resolveCurrencyLocale(currencyCode, options?.locale);
|
|
1746
1767
|
try {
|
|
@@ -1748,17 +1769,13 @@ function formatCurrencyAmount(amountCents, currency, options) {
|
|
|
1748
1769
|
style: "currency",
|
|
1749
1770
|
currency: currencyCode
|
|
1750
1771
|
});
|
|
1751
|
-
const fractionDigits = options?.decimals === "auto" ? {
|
|
1752
|
-
minimumFractionDigits: 0,
|
|
1753
|
-
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
1754
|
-
} : {};
|
|
1755
1772
|
return new Intl.NumberFormat(locale, {
|
|
1756
1773
|
style: "currency",
|
|
1757
1774
|
currency: currencyCode,
|
|
1758
|
-
...
|
|
1759
|
-
}).format(
|
|
1775
|
+
...fractionDigitsFor(options?.decimals ?? "exact", exactFormatter)
|
|
1776
|
+
}).format(amount);
|
|
1760
1777
|
} catch {
|
|
1761
|
-
return `${
|
|
1778
|
+
return `${amount.toFixed(2)} ${currencyCode}`;
|
|
1762
1779
|
}
|
|
1763
1780
|
}
|
|
1764
1781
|
//#endregion
|
|
@@ -2001,6 +2018,16 @@ function isRecord$18(value) {
|
|
|
2001
2018
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2002
2019
|
}
|
|
2003
2020
|
//#endregion
|
|
2021
|
+
//#region ../core/src/booking-payment-options.ts
|
|
2022
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
2023
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
2024
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
2025
|
+
const uniqueKinds = new Set(kinds);
|
|
2026
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
2027
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
2028
|
+
return ok$1(void 0);
|
|
2029
|
+
}
|
|
2030
|
+
//#endregion
|
|
2004
2031
|
//#region ../core/src/booking-time-zone.ts
|
|
2005
2032
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
2006
2033
|
const timeZoneValidityCache = /* @__PURE__ */ new Map();
|
|
@@ -2167,6 +2194,26 @@ function toLocationCoordinates(value) {
|
|
|
2167
2194
|
};
|
|
2168
2195
|
}
|
|
2169
2196
|
//#endregion
|
|
2197
|
+
//#region ../core/src/block-content-identity.ts
|
|
2198
|
+
function readContentVersionId(value) {
|
|
2199
|
+
const parsed = parseContentVersionId(value);
|
|
2200
|
+
return parsed.ok ? parsed.value : null;
|
|
2201
|
+
}
|
|
2202
|
+
/** The one pairing of a published id with its content. */
|
|
2203
|
+
function readPublishedBlockPlacement(id, content) {
|
|
2204
|
+
if (id == null && content == null) return null;
|
|
2205
|
+
const versionId = readContentVersionId(id);
|
|
2206
|
+
return versionId !== null && content != null ? {
|
|
2207
|
+
kind: "published",
|
|
2208
|
+
id: versionId,
|
|
2209
|
+
content
|
|
2210
|
+
} : {
|
|
2211
|
+
kind: "incomplete",
|
|
2212
|
+
id: id ?? null,
|
|
2213
|
+
content: content ?? null
|
|
2214
|
+
};
|
|
2215
|
+
}
|
|
2216
|
+
//#endregion
|
|
2170
2217
|
//#region ../core/src/mailing-list-identifiers.ts
|
|
2171
2218
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
2172
2219
|
const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
|
|
@@ -3401,28 +3448,6 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3401
3448
|
"resource:conflict",
|
|
3402
3449
|
"server:internal_error"
|
|
3403
3450
|
]
|
|
3404
|
-
},
|
|
3405
|
-
/**
|
|
3406
|
-
* The Content tab's one write: the short introduction, image and
|
|
3407
|
-
* description of an event's page, published without its layout.
|
|
3408
|
-
*/
|
|
3409
|
-
saveEventPageWords: {
|
|
3410
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/words",
|
|
3411
|
-
method: "PUT",
|
|
3412
|
-
tags: [
|
|
3413
|
-
TAG_TEMPLATES.siteCollection,
|
|
3414
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
3415
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
3416
|
-
],
|
|
3417
|
-
auth: "user",
|
|
3418
|
-
responseKind: "json",
|
|
3419
|
-
errors: [
|
|
3420
|
-
"auth:forbidden",
|
|
3421
|
-
"validation:invalid_input",
|
|
3422
|
-
"resource:not_found",
|
|
3423
|
-
"resource:conflict",
|
|
3424
|
-
"server:internal_error"
|
|
3425
|
-
]
|
|
3426
3451
|
}
|
|
3427
3452
|
});
|
|
3428
3453
|
//#endregion
|
|
@@ -3847,6 +3872,15 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3847
3872
|
auth: "user",
|
|
3848
3873
|
responseKind: "json"
|
|
3849
3874
|
},
|
|
3875
|
+
/** Continue on Free from the onboarding card page; only the attempt's owner. */
|
|
3876
|
+
continueOnboardingOnFree: {
|
|
3877
|
+
path: "/onboarding/attempts/{attemptToken}/plan/free",
|
|
3878
|
+
method: "POST",
|
|
3879
|
+
tags: ["billing"],
|
|
3880
|
+
auth: "user",
|
|
3881
|
+
errors: [],
|
|
3882
|
+
responseKind: "json"
|
|
3883
|
+
},
|
|
3850
3884
|
createBillingPortalSession: {
|
|
3851
3885
|
path: "/billing/portal/session",
|
|
3852
3886
|
method: "POST",
|
|
@@ -3856,6 +3890,161 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3856
3890
|
}
|
|
3857
3891
|
});
|
|
3858
3892
|
//#endregion
|
|
3893
|
+
//#region ../api/src/editLeaseEndpoints.ts
|
|
3894
|
+
const path = "/sites/{siteId}/edit-leases/{nodeType}/{nodeId}";
|
|
3895
|
+
const lifecycleErrors = [
|
|
3896
|
+
"auth:lease_required",
|
|
3897
|
+
"auth:forbidden",
|
|
3898
|
+
"resource:not_found",
|
|
3899
|
+
"validation:invalid_input",
|
|
3900
|
+
"server:internal_error"
|
|
3901
|
+
];
|
|
3902
|
+
const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
|
|
3903
|
+
readEditLease: {
|
|
3904
|
+
path,
|
|
3905
|
+
method: "GET",
|
|
3906
|
+
editLease: "lifecycle",
|
|
3907
|
+
errors: lifecycleErrors,
|
|
3908
|
+
auth: "user",
|
|
3909
|
+
responseKind: "json"
|
|
3910
|
+
},
|
|
3911
|
+
acquireEditLease: {
|
|
3912
|
+
path,
|
|
3913
|
+
method: "POST",
|
|
3914
|
+
editLease: "lifecycle",
|
|
3915
|
+
errors: lifecycleErrors,
|
|
3916
|
+
auth: "user",
|
|
3917
|
+
responseKind: "json"
|
|
3918
|
+
},
|
|
3919
|
+
takeOverEditLease: {
|
|
3920
|
+
path,
|
|
3921
|
+
method: "PUT",
|
|
3922
|
+
editLease: "lifecycle",
|
|
3923
|
+
errors: lifecycleErrors,
|
|
3924
|
+
auth: "user",
|
|
3925
|
+
responseKind: "json"
|
|
3926
|
+
},
|
|
3927
|
+
heartbeatEditLease: {
|
|
3928
|
+
path,
|
|
3929
|
+
method: "PATCH",
|
|
3930
|
+
editLease: "lifecycle",
|
|
3931
|
+
errors: [...lifecycleErrors, "auth:lease_lost"],
|
|
3932
|
+
auth: "user",
|
|
3933
|
+
responseKind: "json"
|
|
3934
|
+
},
|
|
3935
|
+
releaseEditLease: {
|
|
3936
|
+
path,
|
|
3937
|
+
method: "DELETE",
|
|
3938
|
+
editLease: "lifecycle",
|
|
3939
|
+
errors: lifecycleErrors,
|
|
3940
|
+
auth: "user",
|
|
3941
|
+
responseKind: "json"
|
|
3942
|
+
}
|
|
3943
|
+
};
|
|
3944
|
+
//#endregion
|
|
3945
|
+
//#region ../api/src/pageSurfaceEditorEndpoints.ts
|
|
3946
|
+
const surfaceTags = [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById];
|
|
3947
|
+
const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
|
|
3948
|
+
getPageSurfaceEditorDocument: {
|
|
3949
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
3950
|
+
method: "GET",
|
|
3951
|
+
errors: [
|
|
3952
|
+
"auth:forbidden",
|
|
3953
|
+
"validation:invalid_input",
|
|
3954
|
+
"resource:not_found",
|
|
3955
|
+
"resource:conflict",
|
|
3956
|
+
"server:internal_error"
|
|
3957
|
+
],
|
|
3958
|
+
tags: surfaceTags,
|
|
3959
|
+
auth: "user",
|
|
3960
|
+
responseKind: "json"
|
|
3961
|
+
},
|
|
3962
|
+
updatePageSurfaceDraftContent: {
|
|
3963
|
+
editLease: "managed",
|
|
3964
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
3965
|
+
method: "PUT",
|
|
3966
|
+
errors: [
|
|
3967
|
+
"validation:invalid_input",
|
|
3968
|
+
"resource:not_found",
|
|
3969
|
+
"resource:conflict",
|
|
3970
|
+
"server:internal_error"
|
|
3971
|
+
],
|
|
3972
|
+
tags: surfaceTags,
|
|
3973
|
+
auth: "user",
|
|
3974
|
+
responseKind: "json"
|
|
3975
|
+
},
|
|
3976
|
+
discardPageSurfaceDraftContent: {
|
|
3977
|
+
editLease: "managed",
|
|
3978
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
3979
|
+
method: "DELETE",
|
|
3980
|
+
errors: [
|
|
3981
|
+
"validation:invalid_input",
|
|
3982
|
+
"resource:not_found",
|
|
3983
|
+
"resource:conflict",
|
|
3984
|
+
"server:internal_error"
|
|
3985
|
+
],
|
|
3986
|
+
tags: surfaceTags,
|
|
3987
|
+
auth: "user",
|
|
3988
|
+
responseKind: "json"
|
|
3989
|
+
},
|
|
3990
|
+
updatePageSurfaceRouteMetadata: {
|
|
3991
|
+
editLease: "managed",
|
|
3992
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
3993
|
+
method: "PATCH",
|
|
3994
|
+
errors: [
|
|
3995
|
+
"validation:invalid_input",
|
|
3996
|
+
"resource:not_found",
|
|
3997
|
+
"resource:conflict",
|
|
3998
|
+
"server:internal_error"
|
|
3999
|
+
],
|
|
4000
|
+
tags: [
|
|
4001
|
+
TAG_TEMPLATES.siteCollection,
|
|
4002
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4003
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
4004
|
+
],
|
|
4005
|
+
auth: "user",
|
|
4006
|
+
responseKind: "json"
|
|
4007
|
+
},
|
|
4008
|
+
publishPageSurface: {
|
|
4009
|
+
editLease: "managed",
|
|
4010
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
|
|
4011
|
+
method: "POST",
|
|
4012
|
+
errors: [
|
|
4013
|
+
"auth:forbidden",
|
|
4014
|
+
"validation:invalid_input",
|
|
4015
|
+
"resource:not_found",
|
|
4016
|
+
"resource:conflict",
|
|
4017
|
+
"server:internal_error"
|
|
4018
|
+
],
|
|
4019
|
+
tags: [
|
|
4020
|
+
TAG_TEMPLATES.siteCollection,
|
|
4021
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4022
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
4023
|
+
],
|
|
4024
|
+
auth: "user",
|
|
4025
|
+
responseKind: "json"
|
|
4026
|
+
},
|
|
4027
|
+
saveEventContentTab: {
|
|
4028
|
+
editLease: "managed",
|
|
4029
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/event-content",
|
|
4030
|
+
method: "PUT",
|
|
4031
|
+
errors: [
|
|
4032
|
+
"auth:forbidden",
|
|
4033
|
+
"validation:invalid_input",
|
|
4034
|
+
"resource:not_found",
|
|
4035
|
+
"resource:conflict",
|
|
4036
|
+
"server:internal_error"
|
|
4037
|
+
],
|
|
4038
|
+
tags: [
|
|
4039
|
+
TAG_TEMPLATES.siteCollection,
|
|
4040
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4041
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
4042
|
+
],
|
|
4043
|
+
auth: "user",
|
|
4044
|
+
responseKind: "json"
|
|
4045
|
+
}
|
|
4046
|
+
};
|
|
4047
|
+
//#endregion
|
|
3859
4048
|
//#region ../api/src/bookingPeopleEndpointDefinitions.ts
|
|
3860
4049
|
/**
|
|
3861
4050
|
* People endpoints (#1356): the People list, its CSV export, and deleting a
|
|
@@ -3919,7 +4108,8 @@ const CLIENT_ERROR_REPORT_LIMITS = {
|
|
|
3919
4108
|
stack: 8e3,
|
|
3920
4109
|
digest: 128,
|
|
3921
4110
|
componentStack: 8e3,
|
|
3922
|
-
sourceLocation: 1024
|
|
4111
|
+
sourceLocation: 1024,
|
|
4112
|
+
navigationAgeMs: 6e4
|
|
3923
4113
|
};
|
|
3924
4114
|
const clientErrorEventSchema = z.enum([
|
|
3925
4115
|
"dashboard:route-error",
|
|
@@ -3936,7 +4126,17 @@ z.object({
|
|
|
3936
4126
|
stack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.stack).nullable(),
|
|
3937
4127
|
digest: z.string().max(CLIENT_ERROR_REPORT_LIMITS.digest).nullable(),
|
|
3938
4128
|
componentStack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.componentStack).nullable(),
|
|
3939
|
-
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable()
|
|
4129
|
+
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable(),
|
|
4130
|
+
navigation: z.object({
|
|
4131
|
+
fromPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
4132
|
+
toPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
4133
|
+
type: z.enum([
|
|
4134
|
+
"push",
|
|
4135
|
+
"replace",
|
|
4136
|
+
"traverse"
|
|
4137
|
+
]),
|
|
4138
|
+
ageMs: z.number().int().min(0).max(CLIENT_ERROR_REPORT_LIMITS.navigationAgeMs)
|
|
4139
|
+
}).strict().nullable().optional()
|
|
3940
4140
|
}).strict();
|
|
3941
4141
|
const API_ENDPOINTS$1 = {
|
|
3942
4142
|
...SITE_LIFECYCLE_ENDPOINT_DEFINITIONS,
|
|
@@ -3948,6 +4148,8 @@ const API_ENDPOINTS$1 = {
|
|
|
3948
4148
|
...GIFTING_ENDPOINT_DEFINITIONS,
|
|
3949
4149
|
...PUBLIC_READ_ENDPOINT_DEFINITIONS,
|
|
3950
4150
|
...BILLING_ENDPOINT_DEFINITIONS,
|
|
4151
|
+
...EDIT_LEASE_ENDPOINT_DEFINITIONS,
|
|
4152
|
+
...PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS,
|
|
3951
4153
|
...SITE_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
3952
4154
|
aiContentUpdateChat: {
|
|
3953
4155
|
path: "/ai/content-update-chat",
|
|
@@ -3969,6 +4171,7 @@ const API_ENDPOINTS$1 = {
|
|
|
3969
4171
|
responseKind: "json"
|
|
3970
4172
|
},
|
|
3971
4173
|
aiDesignerPageOpsApply: {
|
|
4174
|
+
editLease: "managed",
|
|
3972
4175
|
path: "/sites/{siteId}/ai/designer/page/apply",
|
|
3973
4176
|
method: "POST",
|
|
3974
4177
|
tags: [TAG_TEMPLATES.siteCollection],
|
|
@@ -4803,6 +5006,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4803
5006
|
responseKind: "json"
|
|
4804
5007
|
},
|
|
4805
5008
|
restoreContentEntryVersion: {
|
|
5009
|
+
editLease: "managed",
|
|
4806
5010
|
path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}/restore",
|
|
4807
5011
|
method: "POST",
|
|
4808
5012
|
errors: [
|
|
@@ -4820,6 +5024,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4820
5024
|
responseKind: "json"
|
|
4821
5025
|
},
|
|
4822
5026
|
updateContentEntryContent: {
|
|
5027
|
+
editLease: "managed",
|
|
4823
5028
|
path: "/sites/{siteId}/content/{type}/{entryId}/content",
|
|
4824
5029
|
method: "PUT",
|
|
4825
5030
|
tags: [
|
|
@@ -4836,67 +5041,6 @@ const API_ENDPOINTS$1 = {
|
|
|
4836
5041
|
],
|
|
4837
5042
|
responseKind: "json"
|
|
4838
5043
|
},
|
|
4839
|
-
updatePageSurfaceDraftContent: {
|
|
4840
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
4841
|
-
method: "PUT",
|
|
4842
|
-
errors: [
|
|
4843
|
-
"validation:invalid_input",
|
|
4844
|
-
"resource:not_found",
|
|
4845
|
-
"resource:conflict",
|
|
4846
|
-
"server:internal_error"
|
|
4847
|
-
],
|
|
4848
|
-
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
4849
|
-
auth: "user",
|
|
4850
|
-
responseKind: "json"
|
|
4851
|
-
},
|
|
4852
|
-
discardPageSurfaceDraftContent: {
|
|
4853
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
4854
|
-
method: "DELETE",
|
|
4855
|
-
errors: [
|
|
4856
|
-
"validation:invalid_input",
|
|
4857
|
-
"resource:not_found",
|
|
4858
|
-
"resource:conflict",
|
|
4859
|
-
"server:internal_error"
|
|
4860
|
-
],
|
|
4861
|
-
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
4862
|
-
auth: "user",
|
|
4863
|
-
responseKind: "json"
|
|
4864
|
-
},
|
|
4865
|
-
updatePageSurfaceRouteMetadata: {
|
|
4866
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
4867
|
-
method: "PATCH",
|
|
4868
|
-
errors: [
|
|
4869
|
-
"validation:invalid_input",
|
|
4870
|
-
"resource:not_found",
|
|
4871
|
-
"resource:conflict",
|
|
4872
|
-
"server:internal_error"
|
|
4873
|
-
],
|
|
4874
|
-
tags: [
|
|
4875
|
-
TAG_TEMPLATES.siteCollection,
|
|
4876
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
4877
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
4878
|
-
],
|
|
4879
|
-
auth: "user",
|
|
4880
|
-
responseKind: "json"
|
|
4881
|
-
},
|
|
4882
|
-
publishPageSurface: {
|
|
4883
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
|
|
4884
|
-
method: "POST",
|
|
4885
|
-
errors: [
|
|
4886
|
-
"auth:forbidden",
|
|
4887
|
-
"validation:invalid_input",
|
|
4888
|
-
"resource:not_found",
|
|
4889
|
-
"resource:conflict",
|
|
4890
|
-
"server:internal_error"
|
|
4891
|
-
],
|
|
4892
|
-
tags: [
|
|
4893
|
-
TAG_TEMPLATES.siteCollection,
|
|
4894
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
4895
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
4896
|
-
],
|
|
4897
|
-
auth: "user",
|
|
4898
|
-
responseKind: "json"
|
|
4899
|
-
},
|
|
4900
5044
|
runSdkWorkflow: {
|
|
4901
5045
|
path: "/sites/{siteId}/content/{type}/{entryId}/workflows/{workflowId}/run",
|
|
4902
5046
|
method: "POST",
|
|
@@ -4933,6 +5077,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4933
5077
|
responseKind: "json"
|
|
4934
5078
|
},
|
|
4935
5079
|
updateRouteMetadata: {
|
|
5080
|
+
editLease: "managed",
|
|
4936
5081
|
path: "/sites/{siteId}/routes/{routeId}/metadata",
|
|
4937
5082
|
method: "PATCH",
|
|
4938
5083
|
tags: [
|
|
@@ -4950,6 +5095,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4950
5095
|
responseKind: "json"
|
|
4951
5096
|
},
|
|
4952
5097
|
publishContentEntry: {
|
|
5098
|
+
editLease: "managed",
|
|
4953
5099
|
path: "/sites/{siteId}/content/{type}/{entryId}/publish",
|
|
4954
5100
|
method: "POST",
|
|
4955
5101
|
tags: [
|
|
@@ -4961,6 +5107,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4961
5107
|
responseKind: "json"
|
|
4962
5108
|
},
|
|
4963
5109
|
scheduleContentEntry: {
|
|
5110
|
+
editLease: "managed",
|
|
4964
5111
|
path: "/sites/{siteId}/content/{type}/{entryId}/schedule",
|
|
4965
5112
|
method: "POST",
|
|
4966
5113
|
tags: [
|
|
@@ -4978,6 +5125,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4978
5125
|
responseKind: "json"
|
|
4979
5126
|
},
|
|
4980
5127
|
cancelScheduledContentEntry: {
|
|
5128
|
+
editLease: "managed",
|
|
4981
5129
|
path: "/sites/{siteId}/content/{type}/{entryId}/schedule",
|
|
4982
5130
|
method: "DELETE",
|
|
4983
5131
|
tags: [
|
|
@@ -4995,6 +5143,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4995
5143
|
responseKind: "json"
|
|
4996
5144
|
},
|
|
4997
5145
|
discardContentEntry: {
|
|
5146
|
+
editLease: "managed",
|
|
4998
5147
|
path: "/sites/{siteId}/content/{type}/{entryId}/discard",
|
|
4999
5148
|
method: "POST",
|
|
5000
5149
|
tags: [
|
|
@@ -5013,6 +5162,7 @@ const API_ENDPOINTS$1 = {
|
|
|
5013
5162
|
responseKind: "json"
|
|
5014
5163
|
},
|
|
5015
5164
|
unpublishContentEntry: {
|
|
5165
|
+
editLease: "managed",
|
|
5016
5166
|
path: "/sites/{siteId}/content/{type}/{entryId}/unpublish",
|
|
5017
5167
|
method: "POST",
|
|
5018
5168
|
tags: [
|
|
@@ -5054,6 +5204,7 @@ const API_ENDPOINTS$1 = {
|
|
|
5054
5204
|
responseKind: "json"
|
|
5055
5205
|
},
|
|
5056
5206
|
deleteContentEntry: {
|
|
5207
|
+
editLease: "managed",
|
|
5057
5208
|
path: "/sites/{siteId}/content/{type}/{entryId}",
|
|
5058
5209
|
method: "DELETE",
|
|
5059
5210
|
tags: [
|
|
@@ -6263,6 +6414,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6263
6414
|
responseKind: "json"
|
|
6264
6415
|
},
|
|
6265
6416
|
saveBlockContent: {
|
|
6417
|
+
editLease: "owner-derived",
|
|
6266
6418
|
path: "/blocks/{blockId}/content",
|
|
6267
6419
|
method: "POST",
|
|
6268
6420
|
tags: [
|
|
@@ -6300,6 +6452,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6300
6452
|
errors: ["resource:not_found", "resource:conflict"]
|
|
6301
6453
|
},
|
|
6302
6454
|
createEntrySlotBlock: {
|
|
6455
|
+
editLease: "managed",
|
|
6303
6456
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks",
|
|
6304
6457
|
method: "POST",
|
|
6305
6458
|
tags: [
|
|
@@ -6317,6 +6470,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6317
6470
|
]
|
|
6318
6471
|
},
|
|
6319
6472
|
reorderEntrySlotBlocks: {
|
|
6473
|
+
editLease: "managed",
|
|
6320
6474
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/reorder",
|
|
6321
6475
|
method: "POST",
|
|
6322
6476
|
tags: [
|
|
@@ -6334,6 +6488,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6334
6488
|
]
|
|
6335
6489
|
},
|
|
6336
6490
|
deleteEntrySlotBlock: {
|
|
6491
|
+
editLease: "managed",
|
|
6337
6492
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/{blockId}",
|
|
6338
6493
|
method: "DELETE",
|
|
6339
6494
|
tags: [
|
|
@@ -6364,6 +6519,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6364
6519
|
]
|
|
6365
6520
|
},
|
|
6366
6521
|
createPageSurfaceSlotBlock: {
|
|
6522
|
+
editLease: "managed",
|
|
6367
6523
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
|
|
6368
6524
|
method: "POST",
|
|
6369
6525
|
tags: [
|
|
@@ -6382,6 +6538,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6382
6538
|
]
|
|
6383
6539
|
},
|
|
6384
6540
|
reorderPageSurfaceSlotBlocks: {
|
|
6541
|
+
editLease: "managed",
|
|
6385
6542
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
|
|
6386
6543
|
method: "POST",
|
|
6387
6544
|
tags: [
|
|
@@ -6400,6 +6557,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6400
6557
|
]
|
|
6401
6558
|
},
|
|
6402
6559
|
deletePageSurfaceSlotBlock: {
|
|
6560
|
+
editLease: "managed",
|
|
6403
6561
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
|
|
6404
6562
|
method: "DELETE",
|
|
6405
6563
|
tags: [
|
|
@@ -6417,6 +6575,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6417
6575
|
]
|
|
6418
6576
|
},
|
|
6419
6577
|
createBlock: {
|
|
6578
|
+
editLease: "managed",
|
|
6420
6579
|
path: "/sites/{siteId}/pages/{pageId}/blocks",
|
|
6421
6580
|
method: "POST",
|
|
6422
6581
|
tags: [
|
|
@@ -6428,6 +6587,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6428
6587
|
responseKind: "json"
|
|
6429
6588
|
},
|
|
6430
6589
|
reorderBlocks: {
|
|
6590
|
+
editLease: "managed",
|
|
6431
6591
|
path: "/sites/{siteId}/pages/{pageId}/blocks/reorder",
|
|
6432
6592
|
method: "POST",
|
|
6433
6593
|
tags: [
|
|
@@ -6439,6 +6599,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6439
6599
|
responseKind: "json"
|
|
6440
6600
|
},
|
|
6441
6601
|
deleteBlock: {
|
|
6602
|
+
editLease: "managed",
|
|
6442
6603
|
path: "/sites/{siteId}/pages/{pageId}/blocks/{blockId}",
|
|
6443
6604
|
method: "DELETE",
|
|
6444
6605
|
tags: [
|
|
@@ -6484,6 +6645,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6484
6645
|
responseKind: "json"
|
|
6485
6646
|
},
|
|
6486
6647
|
publishPageDraft: {
|
|
6648
|
+
editLease: "managed",
|
|
6487
6649
|
path: "/sites/{siteId}/pages/{pageId}/publish",
|
|
6488
6650
|
method: "POST",
|
|
6489
6651
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6491,6 +6653,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6491
6653
|
responseKind: "json"
|
|
6492
6654
|
},
|
|
6493
6655
|
discardPageDraft: {
|
|
6656
|
+
editLease: "managed",
|
|
6494
6657
|
path: "/sites/{siteId}/pages/{pageId}/discard",
|
|
6495
6658
|
method: "POST",
|
|
6496
6659
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6506,6 +6669,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6506
6669
|
errors: ["resource:not_found", "server:internal_error"]
|
|
6507
6670
|
},
|
|
6508
6671
|
savePageDesignState: {
|
|
6672
|
+
editLease: "managed",
|
|
6509
6673
|
path: "/sites/{siteId}/pages/{pageId}/design-state",
|
|
6510
6674
|
method: "POST",
|
|
6511
6675
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6535,6 +6699,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6535
6699
|
responseKind: "json"
|
|
6536
6700
|
},
|
|
6537
6701
|
restorePageVersion: {
|
|
6702
|
+
editLease: "managed",
|
|
6538
6703
|
path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}/restore",
|
|
6539
6704
|
method: "POST",
|
|
6540
6705
|
errors: [
|
|
@@ -6548,6 +6713,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6548
6713
|
responseKind: "json"
|
|
6549
6714
|
},
|
|
6550
6715
|
applyPageDesignEditorAction: {
|
|
6716
|
+
editLease: "managed",
|
|
6551
6717
|
path: "/sites/{siteId}/pages/{pageId}/design/actions",
|
|
6552
6718
|
method: "POST",
|
|
6553
6719
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -7727,24 +7893,6 @@ const API_ENDPOINTS$1 = {
|
|
|
7727
7893
|
"server:internal_error"
|
|
7728
7894
|
]
|
|
7729
7895
|
},
|
|
7730
|
-
syncBookingPassWithStripe: {
|
|
7731
|
-
path: "/sites/{siteId}/bookings/passes/{passId}/sync-stripe",
|
|
7732
|
-
method: "POST",
|
|
7733
|
-
tags: [
|
|
7734
|
-
"site-{siteId}",
|
|
7735
|
-
"passes-{siteId}",
|
|
7736
|
-
"pass-{passId}"
|
|
7737
|
-
],
|
|
7738
|
-
auth: "user",
|
|
7739
|
-
responseKind: "json",
|
|
7740
|
-
errors: [
|
|
7741
|
-
"validation:invalid_input",
|
|
7742
|
-
"auth:forbidden",
|
|
7743
|
-
"resource:not_found",
|
|
7744
|
-
"resource:conflict",
|
|
7745
|
-
"server:internal_error"
|
|
7746
|
-
]
|
|
7747
|
-
},
|
|
7748
7896
|
refundCustomerPass: {
|
|
7749
7897
|
path: "/sites/{siteId}/bookings/customer-passes/{customerPassId}/refund",
|
|
7750
7898
|
method: "POST",
|
|
@@ -9208,7 +9356,7 @@ const API_ENDPOINTS$1 = {
|
|
|
9208
9356
|
]
|
|
9209
9357
|
},
|
|
9210
9358
|
cancelFlexibleBalanceBookingDueToNonPayment: {
|
|
9211
|
-
path: "/sites/{siteId}/shop/orders/{orderId}/
|
|
9359
|
+
path: "/sites/{siteId}/shop/orders/{orderId}/flexible-balance/cancel-due-to-non-payment",
|
|
9212
9360
|
method: "POST",
|
|
9213
9361
|
auth: "user",
|
|
9214
9362
|
responseKind: "json",
|
|
@@ -9219,7 +9367,7 @@ const API_ENDPOINTS$1 = {
|
|
|
9219
9367
|
]
|
|
9220
9368
|
},
|
|
9221
9369
|
reopenFlexibleBalanceBookingAfterNonPaymentCancellation: {
|
|
9222
|
-
path: "/sites/{siteId}/shop/orders/{orderId}/
|
|
9370
|
+
path: "/sites/{siteId}/shop/orders/{orderId}/flexible-balance/reopen",
|
|
9223
9371
|
method: "POST",
|
|
9224
9372
|
auth: "user",
|
|
9225
9373
|
responseKind: "json",
|
|
@@ -9404,6 +9552,8 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
9404
9552
|
"auth:sudo_required",
|
|
9405
9553
|
"auth:insufficient_permissions",
|
|
9406
9554
|
"auth:impersonation_restricted",
|
|
9555
|
+
"auth:lease_required",
|
|
9556
|
+
"auth:lease_lost",
|
|
9407
9557
|
"validation:invalid_input",
|
|
9408
9558
|
"validation:missing_field",
|
|
9409
9559
|
"validation:invalid_format",
|
|
@@ -9722,14 +9872,14 @@ async function parseSuccessResponse(endpoint, response, config) {
|
|
|
9722
9872
|
default: return buildSuccessEnvelope(void 0, requestId);
|
|
9723
9873
|
}
|
|
9724
9874
|
}
|
|
9725
|
-
function createRawCMSClient(
|
|
9875
|
+
function createRawCMSClient(getHeaders = () => ({}), baseUrl) {
|
|
9726
9876
|
return ({ endpoint, body, params, options = {} }) => {
|
|
9727
9877
|
const plan = buildApiRequestPlan({
|
|
9728
9878
|
endpoint,
|
|
9729
9879
|
body,
|
|
9730
9880
|
params,
|
|
9731
9881
|
options,
|
|
9732
|
-
headers,
|
|
9882
|
+
headers: getHeaders(),
|
|
9733
9883
|
baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl()),
|
|
9734
9884
|
sdkVersion
|
|
9735
9885
|
});
|
|
@@ -9835,13 +9985,13 @@ function createParsedClient(rawClient) {
|
|
|
9835
9985
|
};
|
|
9836
9986
|
}
|
|
9837
9987
|
function createCMSClient(headers = {}, baseUrl) {
|
|
9838
|
-
return createParsedClient(createRawCMSClient(headers, baseUrl));
|
|
9988
|
+
return createParsedClient(createRawCMSClient(() => headers, baseUrl));
|
|
9839
9989
|
}
|
|
9840
9990
|
function createInternalAPIClient(baseUrl) {
|
|
9841
9991
|
return createCMSClient({}, baseUrl);
|
|
9842
9992
|
}
|
|
9843
9993
|
function createBearerAPIClient(token, baseUrl) {
|
|
9844
|
-
return
|
|
9994
|
+
return createParsedClient(createRawCMSClient(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl));
|
|
9845
9995
|
}
|
|
9846
9996
|
//#endregion
|
|
9847
9997
|
//#region src/client/cache.ts
|
|
@@ -9955,7 +10105,7 @@ var SimpleCache = class {
|
|
|
9955
10105
|
* 1. This constant
|
|
9956
10106
|
* 2. The "version" field in package.json
|
|
9957
10107
|
*/
|
|
9958
|
-
const SDK_VERSION = "0.
|
|
10108
|
+
const SDK_VERSION = "0.149.0";
|
|
9959
10109
|
//#endregion
|
|
9960
10110
|
//#region src/client/error.ts
|
|
9961
10111
|
let _Symbol$for;
|
|
@@ -36472,6 +36622,10 @@ const bookingDescription = richText({}, bind("content.description"), when("conte
|
|
|
36472
36622
|
* that hydration never rewrites.
|
|
36473
36623
|
*/
|
|
36474
36624
|
const bookingWizard = bookingForm(withApiBindings({
|
|
36625
|
+
demoEmailSuppressed: { $bind: {
|
|
36626
|
+
from: "$root.demoEmailSuppressed",
|
|
36627
|
+
fallback: false
|
|
36628
|
+
} },
|
|
36475
36629
|
portalToken: { $bind: {
|
|
36476
36630
|
from: "$root.portalToken",
|
|
36477
36631
|
fallback: null
|
|
@@ -36892,68 +37046,115 @@ const weeklySlotAvailabilityBlockDefinition = {
|
|
|
36892
37046
|
} }
|
|
36893
37047
|
};
|
|
36894
37048
|
//#endregion
|
|
36895
|
-
//#region ../
|
|
36896
|
-
const
|
|
36897
|
-
const
|
|
36898
|
-
|
|
36899
|
-
|
|
36900
|
-
|
|
36901
|
-
|
|
36902
|
-
|
|
36903
|
-
intervalUnit: z.enum([
|
|
36904
|
-
"day",
|
|
36905
|
-
"week",
|
|
36906
|
-
"month"
|
|
36907
|
-
])
|
|
36908
|
-
}),
|
|
36909
|
-
z.object({
|
|
36910
|
-
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
36911
|
-
depositAmountCents: z.number().int().min(0),
|
|
36912
|
-
depositRefundability: bookingDepositRefundPolicySchema$1,
|
|
36913
|
-
instalmentCount: z.number().int().positive(),
|
|
36914
|
-
intervalCount: z.number().int().positive(),
|
|
36915
|
-
intervalUnit: z.enum([
|
|
36916
|
-
"day",
|
|
36917
|
-
"week",
|
|
36918
|
-
"month"
|
|
36919
|
-
])
|
|
36920
|
-
}),
|
|
36921
|
-
z.object({
|
|
36922
|
-
kind: z.literal("equal_scheduled_instalments"),
|
|
36923
|
-
instalmentCount: z.number().int().positive(),
|
|
36924
|
-
intervalCount: z.number().int().positive(),
|
|
36925
|
-
intervalUnit: z.enum([
|
|
36926
|
-
"day",
|
|
36927
|
-
"week",
|
|
36928
|
-
"month"
|
|
36929
|
-
])
|
|
36930
|
-
})
|
|
36931
|
-
]);
|
|
36932
|
-
const bookingFlexibleBalanceDueDateRuleSchema$1 = z.union([z.object({
|
|
36933
|
-
kind: z.literal("relative_to_start_date"),
|
|
36934
|
-
daysBeforeStart: z.number().int().positive()
|
|
36935
|
-
}), z.object({
|
|
36936
|
-
kind: z.literal("fixed_calendar_date"),
|
|
36937
|
-
dueAt: z.string().datetime()
|
|
36938
|
-
})]);
|
|
36939
|
-
const bookingFlexibleBalanceConfigSchema$1 = z.object({
|
|
36940
|
-
upfrontAmountCents: z.number().int().min(0),
|
|
36941
|
-
dueDateRule: bookingFlexibleBalanceDueDateRuleSchema$1,
|
|
36942
|
-
depositRefundability: bookingDepositRefundPolicySchema$1
|
|
36943
|
-
});
|
|
36944
|
-
const blockBookingPaymentCollectionOptionSchema = z.union([
|
|
36945
|
-
z.object({ kind: z.literal("upfront") }),
|
|
36946
|
-
z.object({ kind: z.literal("deferred_manual") }),
|
|
36947
|
-
z.object({
|
|
36948
|
-
kind: z.literal("instalment_plan"),
|
|
36949
|
-
plan: bookingInstalmentPlanSchema$1
|
|
36950
|
-
}),
|
|
36951
|
-
z.object({
|
|
36952
|
-
kind: z.literal("flexible_balance"),
|
|
36953
|
-
config: bookingFlexibleBalanceConfigSchema$1
|
|
36954
|
-
})
|
|
37049
|
+
//#region ../core/src/booking-payment-schemas.ts
|
|
37050
|
+
const stripObject = (shape) => z.object(shape);
|
|
37051
|
+
const strictObject = (shape) => z.strictObject(shape);
|
|
37052
|
+
const depositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
37053
|
+
const intervalUnitSchema = z.enum([
|
|
37054
|
+
"day",
|
|
37055
|
+
"week",
|
|
37056
|
+
"month"
|
|
36955
37057
|
]);
|
|
36956
|
-
const
|
|
37058
|
+
const nonNegativeIntegerSchema = z.number().int().nonnegative();
|
|
37059
|
+
const positiveIntegerSchema = z.number().int().positive();
|
|
37060
|
+
function createInstalmentPlanSchema(object) {
|
|
37061
|
+
return z.discriminatedUnion("kind", [
|
|
37062
|
+
object({
|
|
37063
|
+
kind: z.literal("deposit_plus_one_remainder"),
|
|
37064
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
37065
|
+
depositRefundability: depositRefundPolicySchema,
|
|
37066
|
+
remainderDueCount: positiveIntegerSchema,
|
|
37067
|
+
intervalUnit: intervalUnitSchema
|
|
37068
|
+
}),
|
|
37069
|
+
object({
|
|
37070
|
+
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
37071
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
37072
|
+
depositRefundability: depositRefundPolicySchema,
|
|
37073
|
+
instalmentCount: positiveIntegerSchema,
|
|
37074
|
+
intervalCount: positiveIntegerSchema,
|
|
37075
|
+
intervalUnit: intervalUnitSchema
|
|
37076
|
+
}),
|
|
37077
|
+
object({
|
|
37078
|
+
kind: z.literal("equal_scheduled_instalments"),
|
|
37079
|
+
instalmentCount: positiveIntegerSchema,
|
|
37080
|
+
intervalCount: positiveIntegerSchema,
|
|
37081
|
+
intervalUnit: intervalUnitSchema
|
|
37082
|
+
})
|
|
37083
|
+
]);
|
|
37084
|
+
}
|
|
37085
|
+
function createFlexibleBalanceSchemas(object) {
|
|
37086
|
+
const dueDateRule = z.discriminatedUnion("kind", [object({
|
|
37087
|
+
kind: z.literal("relative_to_start_date"),
|
|
37088
|
+
daysBeforeStart: positiveIntegerSchema
|
|
37089
|
+
}), object({
|
|
37090
|
+
kind: z.literal("fixed_calendar_date"),
|
|
37091
|
+
dueAt: z.string().datetime()
|
|
37092
|
+
})]);
|
|
37093
|
+
return {
|
|
37094
|
+
dueDateRule,
|
|
37095
|
+
config: object({
|
|
37096
|
+
upfrontAmountCents: nonNegativeIntegerSchema,
|
|
37097
|
+
dueDateRule,
|
|
37098
|
+
depositRefundability: depositRefundPolicySchema
|
|
37099
|
+
})
|
|
37100
|
+
};
|
|
37101
|
+
}
|
|
37102
|
+
const paymentOptionKindsMessages = {
|
|
37103
|
+
no_options: "Choose at least one way for customers to pay.",
|
|
37104
|
+
duplicate_kind: "Choose each payment option only once.",
|
|
37105
|
+
incompatible_collection_options: "Offer instalments or a deposit with the rest paid later, but not both."
|
|
37106
|
+
};
|
|
37107
|
+
function buildBookingPaymentOptionSchemas(object) {
|
|
37108
|
+
const instalmentPlan = createInstalmentPlanSchema(object);
|
|
37109
|
+
const flexibleBalance = createFlexibleBalanceSchemas(object);
|
|
37110
|
+
const paymentCollectionOption = z.discriminatedUnion("kind", [
|
|
37111
|
+
object({ kind: z.literal("upfront") }),
|
|
37112
|
+
object({ kind: z.literal("deferred_manual") }),
|
|
37113
|
+
object({
|
|
37114
|
+
kind: z.literal("instalment_plan"),
|
|
37115
|
+
plan: instalmentPlan
|
|
37116
|
+
}),
|
|
37117
|
+
object({
|
|
37118
|
+
kind: z.literal("flexible_balance"),
|
|
37119
|
+
config: flexibleBalance.config
|
|
37120
|
+
})
|
|
37121
|
+
]);
|
|
37122
|
+
const paymentTerms = object({ allowedOptions: z.array(paymentCollectionOption) }).superRefine(({ allowedOptions }, ctx) => {
|
|
37123
|
+
const result = validateBookingPaymentOptionKinds(allowedOptions.map(({ kind }) => kind));
|
|
37124
|
+
if (!result.ok) ctx.addIssue({
|
|
37125
|
+
code: "custom",
|
|
37126
|
+
path: ["allowedOptions"],
|
|
37127
|
+
message: paymentOptionKindsMessages[result.error]
|
|
37128
|
+
});
|
|
37129
|
+
});
|
|
37130
|
+
const paymentOptionsChoice = z.discriminatedUnion("source", [z.strictObject({ source: z.literal("default") }), z.strictObject({
|
|
37131
|
+
source: z.literal("custom"),
|
|
37132
|
+
paymentTerms
|
|
37133
|
+
})]);
|
|
37134
|
+
return {
|
|
37135
|
+
depositRefundPolicy: depositRefundPolicySchema,
|
|
37136
|
+
instalmentPlan,
|
|
37137
|
+
flexibleBalanceDueDateRule: flexibleBalance.dueDateRule,
|
|
37138
|
+
flexibleBalanceConfig: flexibleBalance.config,
|
|
37139
|
+
paymentCollectionOption,
|
|
37140
|
+
paymentTerms,
|
|
37141
|
+
paymentOptionsChoice
|
|
37142
|
+
};
|
|
37143
|
+
}
|
|
37144
|
+
function createBookingPaymentOptionSchemas(mode) {
|
|
37145
|
+
return mode === "strict" ? buildBookingPaymentOptionSchemas(strictObject) : buildBookingPaymentOptionSchemas(stripObject);
|
|
37146
|
+
}
|
|
37147
|
+
const bookingPaymentOptionSchemas = createBookingPaymentOptionSchemas("strip");
|
|
37148
|
+
bookingPaymentOptionSchemas.depositRefundPolicy;
|
|
37149
|
+
bookingPaymentOptionSchemas.instalmentPlan;
|
|
37150
|
+
bookingPaymentOptionSchemas.flexibleBalanceDueDateRule;
|
|
37151
|
+
bookingPaymentOptionSchemas.flexibleBalanceConfig;
|
|
37152
|
+
bookingPaymentOptionSchemas.paymentCollectionOption;
|
|
37153
|
+
const bookingPaymentTermsSchema = bookingPaymentOptionSchemas.paymentTerms;
|
|
37154
|
+
bookingPaymentOptionSchemas.paymentOptionsChoice;
|
|
37155
|
+
//#endregion
|
|
37156
|
+
//#region ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
|
|
37157
|
+
const blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
|
|
36957
37158
|
//#endregion
|
|
36958
37159
|
//#region ../blocks/src/system/blocks/shared/bookingConsent.ts
|
|
36959
37160
|
const blockBookingConsentSchema = z.object({
|
|
@@ -37198,7 +37399,6 @@ const publicEventBaseSchema = z.object({
|
|
|
37198
37399
|
description: z.string().nullable(),
|
|
37199
37400
|
content: z.object({ body: RichTextDocSchema.nullable().optional() }).optional(),
|
|
37200
37401
|
presentation: z.object({
|
|
37201
|
-
cardTitleOverride: z.string().nullable().optional(),
|
|
37202
37402
|
summary: z.string().nullable().optional(),
|
|
37203
37403
|
image: mediaSchema.nullable().optional()
|
|
37204
37404
|
}).optional(),
|
|
@@ -37231,6 +37431,7 @@ const publicEventBaseSchema = z.object({
|
|
|
37231
37431
|
"archived"
|
|
37232
37432
|
]).optional(),
|
|
37233
37433
|
timeZone: z.string(),
|
|
37434
|
+
siteTimeZone: z.string().optional(),
|
|
37234
37435
|
pricing: publicEventPricingSchema,
|
|
37235
37436
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
37236
37437
|
cancellationPolicy: z.object({ refunds: z.object({
|
|
@@ -37555,7 +37756,7 @@ const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassP
|
|
|
37555
37756
|
/**
|
|
37556
37757
|
* Public membership product for shop display
|
|
37557
37758
|
*/
|
|
37558
|
-
const
|
|
37759
|
+
const publicMembershipProductFields = {
|
|
37559
37760
|
id: z.string(),
|
|
37560
37761
|
name: z.string(),
|
|
37561
37762
|
description: z.string().nullable(),
|
|
@@ -37564,7 +37765,16 @@ const publicMembershipProductSchema = z.object({
|
|
|
37564
37765
|
billingInterval: z.enum(["month", "year"]),
|
|
37565
37766
|
eligibleCategoryIds: z.array(z.string()),
|
|
37566
37767
|
eligibleCategoryNames: z.array(z.string())
|
|
37768
|
+
};
|
|
37769
|
+
const purchasablePublicMembershipProductSchema = z.object({
|
|
37770
|
+
...publicMembershipProductFields,
|
|
37771
|
+
purchaseAvailability: z.literal("purchasable")
|
|
37567
37772
|
});
|
|
37773
|
+
const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
37774
|
+
...publicMembershipProductFields,
|
|
37775
|
+
purchaseAvailability: z.literal("display_only"),
|
|
37776
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
37777
|
+
})]);
|
|
37568
37778
|
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
37569
37779
|
//#endregion
|
|
37570
37780
|
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
@@ -37894,6 +38104,7 @@ const EVENT_REGISTRATION_SHELL_STEP_LABELS = [
|
|
|
37894
38104
|
];
|
|
37895
38105
|
const eventRegistrationPublicEventSchema = z.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
37896
38106
|
const eventRegistrationHydrationSchemaShape = {
|
|
38107
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
37897
38108
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
37898
38109
|
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
37899
38110
|
maxTickets: z.string().optional(),
|
|
@@ -38074,6 +38285,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
38074
38285
|
...eventSource,
|
|
38075
38286
|
events: [...scopedSourceEvents]
|
|
38076
38287
|
} : eventSource,
|
|
38288
|
+
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
38077
38289
|
maxTickets: source.maxTickets ?? void 0,
|
|
38078
38290
|
showVenue: source.showVenue,
|
|
38079
38291
|
showCapacity: source.showCapacity,
|
|
@@ -38202,8 +38414,8 @@ const eventRegistrationBlockDefinition = {
|
|
|
38202
38414
|
description: "Message shown after successful registration",
|
|
38203
38415
|
required: false,
|
|
38204
38416
|
multiline: true,
|
|
38205
|
-
|
|
38206
|
-
|
|
38417
|
+
maxLength: 500,
|
|
38418
|
+
ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
|
|
38207
38419
|
},
|
|
38208
38420
|
{
|
|
38209
38421
|
id: "buttonText",
|
|
@@ -38224,6 +38436,10 @@ const eventRegistrationBlockDefinition = {
|
|
|
38224
38436
|
text({ as: "h2" }, bind("content.heading"), when("content.heading")),
|
|
38225
38437
|
richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
|
|
38226
38438
|
eventRegistration(withApiBindings({
|
|
38439
|
+
demoEmailSuppressed: { $bind: {
|
|
38440
|
+
from: "$root.demoEmailSuppressed",
|
|
38441
|
+
fallback: false
|
|
38442
|
+
} },
|
|
38227
38443
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
38228
38444
|
occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
|
|
38229
38445
|
subject: { $bind: { from: "$root.subject" } },
|
|
@@ -43515,7 +43731,7 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
43515
43731
|
product: pass
|
|
43516
43732
|
} : {
|
|
43517
43733
|
kind: "unavailable",
|
|
43518
|
-
label: "Online purchasing
|
|
43734
|
+
label: "Online purchasing is unavailable."
|
|
43519
43735
|
}
|
|
43520
43736
|
};
|
|
43521
43737
|
});
|
|
@@ -43525,7 +43741,14 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
43525
43741
|
description: options.showDescriptions ? membership.description : null,
|
|
43526
43742
|
priceLabel: formatCommercePrice(membership.price, membership.currency),
|
|
43527
43743
|
intervalLabel: formatInterval(membership.billingInterval),
|
|
43528
|
-
|
|
43744
|
+
action: membership.purchaseAvailability === "purchasable" ? {
|
|
43745
|
+
kind: "purchase",
|
|
43746
|
+
label: options.membershipActionLabel,
|
|
43747
|
+
product: membership
|
|
43748
|
+
} : {
|
|
43749
|
+
kind: "unavailable",
|
|
43750
|
+
label: "Online purchasing is unavailable."
|
|
43751
|
+
}
|
|
43529
43752
|
}));
|
|
43530
43753
|
return {
|
|
43531
43754
|
kind: "passes-memberships",
|
|
@@ -43677,6 +43900,7 @@ const shopSourceSchema = z.object({
|
|
|
43677
43900
|
memberships: z.array(publicMembershipProductSchema).nullable().optional(),
|
|
43678
43901
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
43679
43902
|
siteId: z.string().optional(),
|
|
43903
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
43680
43904
|
apiBaseUrl: z.string().optional(),
|
|
43681
43905
|
readAuthority: browserReadAuthoritySchema.optional(),
|
|
43682
43906
|
stage: previewStageSchema.optional()
|
|
@@ -43744,7 +43968,14 @@ const membershipCardDisplaySchema = z.object({
|
|
|
43744
43968
|
description: z.string().nullable(),
|
|
43745
43969
|
priceLabel: z.string(),
|
|
43746
43970
|
intervalLabel: z.string(),
|
|
43747
|
-
|
|
43971
|
+
action: z.discriminatedUnion("kind", [z.object({
|
|
43972
|
+
kind: z.literal("purchase"),
|
|
43973
|
+
label: z.string(),
|
|
43974
|
+
product: purchasablePublicMembershipProductSchema
|
|
43975
|
+
}), z.object({
|
|
43976
|
+
kind: z.literal("unavailable"),
|
|
43977
|
+
label: z.string()
|
|
43978
|
+
})])
|
|
43748
43979
|
});
|
|
43749
43980
|
const passesMembershipsDisplaySchema = z.object({
|
|
43750
43981
|
kind: z.literal("passes-memberships"),
|
|
@@ -43796,7 +44027,8 @@ const checkoutDisplaySchema = z.object({
|
|
|
43796
44027
|
const passesMembershipsHydrationSchema = z.object({
|
|
43797
44028
|
memberships: z.array(publicMembershipProductSchema),
|
|
43798
44029
|
passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
|
|
43799
|
-
buttonVariant: blockButtonRoleSchema
|
|
44030
|
+
buttonVariant: blockButtonRoleSchema,
|
|
44031
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
43800
44032
|
});
|
|
43801
44033
|
const productListHydrationSchema = z.object({
|
|
43802
44034
|
products: z.array(publicProductSchema),
|
|
@@ -43818,7 +44050,8 @@ const cartHydrationSchema = z.object({
|
|
|
43818
44050
|
});
|
|
43819
44051
|
const checkoutHydrationSchema = z.object({
|
|
43820
44052
|
emptyStateText: z.string(),
|
|
43821
|
-
submitButtonText: z.string()
|
|
44053
|
+
submitButtonText: z.string(),
|
|
44054
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
43822
44055
|
});
|
|
43823
44056
|
const passesMembershipsRenderSchema = z.object({
|
|
43824
44057
|
display: passesMembershipsDisplaySchema,
|
|
@@ -43877,7 +44110,8 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
43877
44110
|
hydration: {
|
|
43878
44111
|
memberships: source.showMemberships === false ? [] : source.memberships ?? [],
|
|
43879
44112
|
passPurchaseMode,
|
|
43880
|
-
buttonVariant: source.buttonVariant ?? "primary"
|
|
44113
|
+
buttonVariant: source.buttonVariant ?? "primary",
|
|
44114
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
43881
44115
|
}
|
|
43882
44116
|
};
|
|
43883
44117
|
}
|
|
@@ -43970,7 +44204,8 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
43970
44204
|
}),
|
|
43971
44205
|
hydration: {
|
|
43972
44206
|
emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
|
|
43973
|
-
submitButtonText: source.submitButtonText ?? "Checkout"
|
|
44207
|
+
submitButtonText: source.submitButtonText ?? "Checkout",
|
|
44208
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
43974
44209
|
}
|
|
43975
44210
|
})
|
|
43976
44211
|
});
|
|
@@ -44188,6 +44423,10 @@ const shopBlockDefinition = {
|
|
|
44188
44423
|
spacing: "spacious",
|
|
44189
44424
|
children: sectionContainer([shop(withApiBindings({
|
|
44190
44425
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
44426
|
+
demoEmailSuppressed: { $bind: {
|
|
44427
|
+
from: "$root.demoEmailSuppressed",
|
|
44428
|
+
fallback: false
|
|
44429
|
+
} },
|
|
44191
44430
|
mode: "passes-memberships",
|
|
44192
44431
|
showPasses: { $bind: {
|
|
44193
44432
|
from: "content.showPasses",
|
|
@@ -44730,6 +44969,10 @@ const checkoutBlockDefinition = {
|
|
|
44730
44969
|
baseClass: "",
|
|
44731
44970
|
spacing: "spacious",
|
|
44732
44971
|
children: sectionContainer([checkout(withApiBindings({
|
|
44972
|
+
demoEmailSuppressed: { $bind: {
|
|
44973
|
+
from: "$root.demoEmailSuppressed",
|
|
44974
|
+
fallback: false
|
|
44975
|
+
} },
|
|
44733
44976
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
44734
44977
|
mode: "checkout",
|
|
44735
44978
|
heading: { $bind: {
|
|
@@ -50435,21 +50678,6 @@ const navigationLinkInputSchemaOptions = [
|
|
|
50435
50678
|
];
|
|
50436
50679
|
z.discriminatedUnion("kind", navigationLinkInputSchemaOptions);
|
|
50437
50680
|
//#endregion
|
|
50438
|
-
//#region ../blocks/src/pageRenderAdmission.ts
|
|
50439
|
-
/** Pair a published version with the content it authorises at the render boundary. */
|
|
50440
|
-
function readPublishedBlockPlacement(id, content) {
|
|
50441
|
-
if (id == null && content == null) return null;
|
|
50442
|
-
if (id == null || content == null) return {
|
|
50443
|
-
kind: "incomplete",
|
|
50444
|
-
id: id ?? null,
|
|
50445
|
-
content: content ?? null
|
|
50446
|
-
};
|
|
50447
|
-
return {
|
|
50448
|
-
id,
|
|
50449
|
-
content
|
|
50450
|
-
};
|
|
50451
|
-
}
|
|
50452
|
-
//#endregion
|
|
50453
50681
|
//#region ../api/src/sdkConfig/contracts.ts
|
|
50454
50682
|
/**
|
|
50455
50683
|
* Canonical SDK config Zod contracts.
|
|
@@ -50983,6 +51211,7 @@ const CANONICAL_REFUND_PLANNER_ERROR_CODES = [
|
|
|
50983
51211
|
"refund_failed"
|
|
50984
51212
|
];
|
|
50985
51213
|
const CANONICAL_ADMIN_REFUND_FAILURE_CODES = [
|
|
51214
|
+
"refund_blocked_by_live_payment_terms",
|
|
50986
51215
|
...CANONICAL_REFUND_PLANNER_ERROR_CODES,
|
|
50987
51216
|
"payment_intent_not_found",
|
|
50988
51217
|
"stripe_error",
|
|
@@ -50998,6 +51227,7 @@ const CANONICAL_ADMIN_REFUND_FAILURE_CODES = [
|
|
|
50998
51227
|
//#endregion
|
|
50999
51228
|
//#region ../api/src/bookingRefundOutcomes.ts
|
|
51000
51229
|
const STANDARD_LINE_ITEM_REFUND_INVALID_CODES = [
|
|
51230
|
+
"refund_blocked_by_live_payment_terms",
|
|
51001
51231
|
"missing_amount",
|
|
51002
51232
|
"invalid_amount",
|
|
51003
51233
|
"amount_exceeds_remaining",
|
|
@@ -51360,68 +51590,6 @@ function collectText(node) {
|
|
|
51360
51590
|
}
|
|
51361
51591
|
z.enum(["public", "unlisted"], { error: "visibility must be 'public' or 'unlisted'" });
|
|
51362
51592
|
//#endregion
|
|
51363
|
-
//#region ../api/src/bookingPaymentTermSchemas.ts
|
|
51364
|
-
const bookingDepositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
51365
|
-
const bookingInstalmentPlanSchema = z.discriminatedUnion("kind", [
|
|
51366
|
-
z.object({
|
|
51367
|
-
kind: z.literal("deposit_plus_one_remainder"),
|
|
51368
|
-
depositAmountCents: z.number().int().nonnegative(),
|
|
51369
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
51370
|
-
remainderDueCount: z.number().int().positive(),
|
|
51371
|
-
intervalUnit: z.enum([
|
|
51372
|
-
"day",
|
|
51373
|
-
"week",
|
|
51374
|
-
"month"
|
|
51375
|
-
])
|
|
51376
|
-
}),
|
|
51377
|
-
z.object({
|
|
51378
|
-
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
51379
|
-
depositAmountCents: z.number().int().nonnegative(),
|
|
51380
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
51381
|
-
instalmentCount: z.number().int().positive(),
|
|
51382
|
-
intervalCount: z.number().int().positive(),
|
|
51383
|
-
intervalUnit: z.enum([
|
|
51384
|
-
"day",
|
|
51385
|
-
"week",
|
|
51386
|
-
"month"
|
|
51387
|
-
])
|
|
51388
|
-
}),
|
|
51389
|
-
z.object({
|
|
51390
|
-
kind: z.literal("equal_scheduled_instalments"),
|
|
51391
|
-
instalmentCount: z.number().int().positive(),
|
|
51392
|
-
intervalCount: z.number().int().positive(),
|
|
51393
|
-
intervalUnit: z.enum([
|
|
51394
|
-
"day",
|
|
51395
|
-
"week",
|
|
51396
|
-
"month"
|
|
51397
|
-
])
|
|
51398
|
-
})
|
|
51399
|
-
]);
|
|
51400
|
-
const bookingFlexibleBalanceDueDateRuleSchema = z.discriminatedUnion("kind", [z.object({
|
|
51401
|
-
kind: z.literal("relative_to_start_date"),
|
|
51402
|
-
daysBeforeStart: z.number().int().positive()
|
|
51403
|
-
}), z.object({
|
|
51404
|
-
kind: z.literal("fixed_calendar_date"),
|
|
51405
|
-
dueAt: z.string().datetime()
|
|
51406
|
-
})]);
|
|
51407
|
-
const bookingFlexibleBalanceConfigSchema = z.object({
|
|
51408
|
-
upfrontAmountCents: z.number().int().nonnegative(),
|
|
51409
|
-
dueDateRule: bookingFlexibleBalanceDueDateRuleSchema,
|
|
51410
|
-
depositRefundability: bookingDepositRefundPolicySchema
|
|
51411
|
-
});
|
|
51412
|
-
z.discriminatedUnion("kind", [
|
|
51413
|
-
z.object({ kind: z.literal("upfront") }),
|
|
51414
|
-
z.object({ kind: z.literal("deferred_manual") }),
|
|
51415
|
-
z.object({
|
|
51416
|
-
kind: z.literal("instalment_plan"),
|
|
51417
|
-
plan: bookingInstalmentPlanSchema
|
|
51418
|
-
}),
|
|
51419
|
-
z.object({
|
|
51420
|
-
kind: z.literal("flexible_balance"),
|
|
51421
|
-
config: bookingFlexibleBalanceConfigSchema
|
|
51422
|
-
})
|
|
51423
|
-
]);
|
|
51424
|
-
//#endregion
|
|
51425
51593
|
//#region ../api/src/aiPlayground.ts
|
|
51426
51594
|
/**
|
|
51427
51595
|
* RFC-6902 JSON Patch Operations
|
|
@@ -51915,9 +52083,17 @@ function readBlockContentId(value, name) {
|
|
|
51915
52083
|
function readTransportedBlockIdentity(block, kind, stage) {
|
|
51916
52084
|
return {
|
|
51917
52085
|
draftContentId: readBlockContentId(block.draftContentId, "draft content id"),
|
|
51918
|
-
publishedPlacement: stage === "preview" ?
|
|
52086
|
+
publishedPlacement: stage === "preview" ? readSdkPreviewPublishedPlacement(block, kind) : null
|
|
51919
52087
|
};
|
|
51920
52088
|
}
|
|
52089
|
+
/** Pair SDK preview publication data whether it is transported or already admitted. */
|
|
52090
|
+
function readSdkPreviewPublishedPlacement(block, kind) {
|
|
52091
|
+
if (block.publishedPlacement !== void 0 && block.publishedPlacement !== null) {
|
|
52092
|
+
if (!isRecord$1(block.publishedPlacement)) throw new Error("Invalid published placement in page");
|
|
52093
|
+
return readPublishedBlockPlacement(readBlockContentId(block.publishedPlacement.id, "published content id"), sanitizeNullableSdkRuntimeBlockContent(kind, readContentRecord(block.publishedPlacement.content) ?? null));
|
|
52094
|
+
}
|
|
52095
|
+
return readPublishedBlockPlacement(readBlockContentId(block.publishedContentId, "published content id"), sanitizeNullableSdkRuntimeBlockContent(kind, readSdkPublishedContentRecord(block.publishedContent)));
|
|
52096
|
+
}
|
|
51921
52097
|
function convertPageResponseBlock(block, stage) {
|
|
51922
52098
|
if (!isRecord$1(block)) throw new Error("Invalid block format in page API response");
|
|
51923
52099
|
const header = readTransportedBlockHeader(block);
|
|
@@ -52026,6 +52202,10 @@ function readNestedContentRecord(value) {
|
|
|
52026
52202
|
if (!isRecord$1(value)) return null;
|
|
52027
52203
|
return readContentRecord(value.data) ?? null;
|
|
52028
52204
|
}
|
|
52205
|
+
function readSdkPublishedContentRecord(value) {
|
|
52206
|
+
if (!isRecord$1(value)) return null;
|
|
52207
|
+
return "data" in value ? readContentRecord(value.data) ?? null : value;
|
|
52208
|
+
}
|
|
52029
52209
|
function sanitizeSdkRuntimeBlockContent(blockKind, content) {
|
|
52030
52210
|
if (blockKind !== "block.newsletter-signup") return content;
|
|
52031
52211
|
const sanitized = sanitizeNewsletterSignupPublicContent(content);
|