@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
|
@@ -6,3 +6,26 @@ export type StaffCancellationContextInput = Readonly<{
|
|
|
6
6
|
category: StaffCancellationContextUiCategory;
|
|
7
7
|
internalNote?: string | null;
|
|
8
8
|
}>;
|
|
9
|
+
export type AdminBookingReturnableValue = {
|
|
10
|
+
kind: 'money';
|
|
11
|
+
remainingRefundableCents: number;
|
|
12
|
+
currency: string | null;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'credit';
|
|
15
|
+
creditsToRestore: number;
|
|
16
|
+
};
|
|
17
|
+
export type AdminBookingCancellationPreview = {
|
|
18
|
+
canCancel: boolean;
|
|
19
|
+
defaultRefund: 'no_refund';
|
|
20
|
+
canOverrideRefund: boolean;
|
|
21
|
+
refundCutoffAt: string | null;
|
|
22
|
+
returnable: {
|
|
23
|
+
kind: 'none';
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
canCancel: true;
|
|
27
|
+
defaultRefund: 'refund' | 'no_refund';
|
|
28
|
+
canOverrideRefund: boolean;
|
|
29
|
+
refundCutoffAt: string | null;
|
|
30
|
+
returnable: AdminBookingReturnableValue;
|
|
31
|
+
};
|
|
@@ -24,8 +24,8 @@ export interface ApiResponse<TData> {
|
|
|
24
24
|
data: TData;
|
|
25
25
|
meta: ResponseMeta;
|
|
26
26
|
}
|
|
27
|
-
export type ApiErrorCode = 'auth:unauthenticated' | 'auth:token_expired' | 'auth:token_invalid' | 'auth:forbidden' | 'auth:mfa_required' | 'auth:sudo_required' | 'auth:insufficient_permissions' | 'auth:impersonation_restricted' | 'validation:invalid_input' | 'validation:missing_field' | 'validation:invalid_format' | 'validation:payload_too_large' | 'resource:not_found' | 'resource:already_exists' | 'resource:conflict' | 'resource:gone' | 'rate_limit:exceeded' | 'billing:payment_required' | 'billing:plan_limit_exceeded' | 'billing:pass_redemption_failed' | 'server:internal_error' | 'server:unavailable' | 'external:service_error' | 'external:registrar_orphaned_contact_profile' | 'network:connection_error' | 'network:timeout' | 'network:dns_error';
|
|
28
|
-
export declare const API_ERROR_CODES: readonly ["auth:unauthenticated", "auth:token_expired", "auth:token_invalid", "auth:forbidden", "auth:mfa_required", "auth:sudo_required", "auth:insufficient_permissions", "auth:impersonation_restricted", "validation:invalid_input", "validation:missing_field", "validation:invalid_format", "validation:payload_too_large", "resource:not_found", "resource:already_exists", "resource:conflict", "resource:gone", "rate_limit:exceeded", "billing:payment_required", "billing:plan_limit_exceeded", "billing:pass_redemption_failed", "server:internal_error", "server:unavailable", "external:service_error", "external:registrar_orphaned_contact_profile", "network:connection_error", "network:timeout", "network:dns_error"];
|
|
27
|
+
export type ApiErrorCode = 'auth:unauthenticated' | 'auth:token_expired' | 'auth:token_invalid' | 'auth:forbidden' | 'auth:mfa_required' | 'auth:sudo_required' | 'auth:insufficient_permissions' | 'auth:impersonation_restricted' | 'auth:lease_required' | 'auth:lease_lost' | 'validation:invalid_input' | 'validation:missing_field' | 'validation:invalid_format' | 'validation:payload_too_large' | 'resource:not_found' | 'resource:already_exists' | 'resource:conflict' | 'resource:gone' | 'rate_limit:exceeded' | 'billing:payment_required' | 'billing:plan_limit_exceeded' | 'billing:pass_redemption_failed' | 'server:internal_error' | 'server:unavailable' | 'external:service_error' | 'external:registrar_orphaned_contact_profile' | 'network:connection_error' | 'network:timeout' | 'network:dns_error';
|
|
28
|
+
export declare const API_ERROR_CODES: readonly ["auth:unauthenticated", "auth:token_expired", "auth:token_invalid", "auth:forbidden", "auth:mfa_required", "auth:sudo_required", "auth:insufficient_permissions", "auth:impersonation_restricted", "auth:lease_required", "auth:lease_lost", "validation:invalid_input", "validation:missing_field", "validation:invalid_format", "validation:payload_too_large", "resource:not_found", "resource:already_exists", "resource:conflict", "resource:gone", "rate_limit:exceeded", "billing:payment_required", "billing:plan_limit_exceeded", "billing:pass_redemption_failed", "server:internal_error", "server:unavailable", "external:service_error", "external:registrar_orphaned_contact_profile", "network:connection_error", "network:timeout", "network:dns_error"];
|
|
29
29
|
export declare function isApiErrorCode(value: unknown): value is ApiErrorCode;
|
|
30
30
|
export interface FieldError {
|
|
31
31
|
field: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createContentEntry, discardContentDraft, deleteContentEntry, publishContentEntry, scheduleContentEntry, cancelScheduledContentEntry, updateContentEntryContent, type ContentTypeKey, } from "./contentEntries";
|
|
2
2
|
export { updateRouteMetadata, type RouteMetadataPayload } from "./routes";
|
|
3
3
|
export type { ApiClient } from "./request";
|
|
4
|
-
export type { ContentEntryDetail, PageRecord, WorkflowPageDraftContent, WorkflowPagePublishedContent, WorkflowPageStatus, } from "./contentRuntime";
|
|
5
|
-
export type { JsonValue
|
|
4
|
+
export type { ContentEntryDetail, DocumentBlockState, DocumentBlockBaseline, ContentRouteRecord, EntryContentWriteResult, PageSurfaceEditorDocument, PageSurfaceContentSlotsResponse, PublishPageSurfaceResponse, PageRecord, WorkflowPageDraftContent, WorkflowPagePublishedContent, WorkflowPageStatus, } from "./contentRuntime";
|
|
5
|
+
export type { JsonValue } from "./types";
|
|
@@ -1,49 +1,45 @@
|
|
|
1
|
-
import type { ContentEntryListStage, ListPublishedEntriesResponse,
|
|
1
|
+
import type { ContentEntryListStage, ListPublishedEntriesResponse, APIEndpoints } from "./types";
|
|
2
2
|
import type { ApiClient } from "./request";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PublishContentEntryBody, PublishedContentEntryOrPageResponse, DiscardedContentEntryOrPageResponse, ScheduledPublishingRouteResponse } from "./contentRuntime";
|
|
4
4
|
export { contentKeys } from "./contentKeys";
|
|
5
|
-
export type { ContentEntryDetail, ContentEntryListItem, ContentEntrySummary, JsonValue,
|
|
5
|
+
export type { ContentEntryDetail, ContentEntryListItem, ContentEntrySummary, JsonValue, DocumentBlockState, DocumentBlockBaseline, EntryPageContentSlotsResponse, } from "./types";
|
|
6
6
|
type JsonValue = import("./types").JsonValue;
|
|
7
7
|
export type ContentTypeKey = string;
|
|
8
8
|
export declare function createContentEntry<TResponse extends {
|
|
9
9
|
entry: unknown;
|
|
10
|
-
}>(apiClient: ApiClient
|
|
10
|
+
}>(apiClient: ApiClient<"createContentEntry">, { type, siteId, body, options, }: {
|
|
11
11
|
type: ContentTypeKey;
|
|
12
12
|
siteId: string;
|
|
13
13
|
body?: Record<string, JsonValue>;
|
|
14
14
|
options?: RequestInit;
|
|
15
15
|
}): Promise<TResponse>;
|
|
16
|
-
export declare function publishContentEntry<
|
|
17
|
-
entry: unknown;
|
|
18
|
-
}>(apiClient: ApiClient, { type, siteId, entryId, body, options, }: {
|
|
16
|
+
export declare function publishContentEntry(apiClient: ApiClient<"publishContentEntry">, { type, siteId, entryId, body, options, }: {
|
|
19
17
|
type: ContentTypeKey;
|
|
20
18
|
siteId: string;
|
|
21
19
|
entryId: string;
|
|
22
|
-
body?:
|
|
20
|
+
body?: PublishContentEntryBody;
|
|
23
21
|
options?: RequestInit;
|
|
24
|
-
}): Promise<
|
|
25
|
-
export declare function scheduleContentEntry(apiClient: ApiClient
|
|
22
|
+
}): Promise<PublishedContentEntryOrPageResponse>;
|
|
23
|
+
export declare function scheduleContentEntry(apiClient: ApiClient<"scheduleContentEntry">, { type, siteId, entryId, publishAt, options, }: {
|
|
26
24
|
type: ContentTypeKey;
|
|
27
25
|
siteId: string;
|
|
28
26
|
entryId: string;
|
|
29
27
|
publishAt: string;
|
|
30
28
|
options?: RequestInit;
|
|
31
|
-
}): Promise<
|
|
32
|
-
export declare function cancelScheduledContentEntry(apiClient: ApiClient
|
|
29
|
+
}): Promise<ScheduledPublishingRouteResponse>;
|
|
30
|
+
export declare function cancelScheduledContentEntry(apiClient: ApiClient<"cancelScheduledContentEntry">, { type, siteId, entryId, options, }: {
|
|
33
31
|
type: ContentTypeKey;
|
|
34
32
|
siteId: string;
|
|
35
33
|
entryId: string;
|
|
36
34
|
options?: RequestInit;
|
|
37
|
-
}): Promise<
|
|
38
|
-
export declare function discardContentDraft<
|
|
39
|
-
entry: unknown;
|
|
40
|
-
}>(apiClient: ApiClient, { type, siteId, entryId, options, }: {
|
|
35
|
+
}): Promise<ScheduledPublishingRouteResponse>;
|
|
36
|
+
export declare function discardContentDraft(apiClient: ApiClient<"discardContentEntry">, { type, siteId, entryId, options, }: {
|
|
41
37
|
type: ContentTypeKey;
|
|
42
38
|
siteId: string;
|
|
43
39
|
entryId: string;
|
|
44
40
|
options?: RequestInit;
|
|
45
|
-
}): Promise<
|
|
46
|
-
export declare function deleteContentEntry(apiClient: ApiClient
|
|
41
|
+
}): Promise<DiscardedContentEntryOrPageResponse>;
|
|
42
|
+
export declare function deleteContentEntry(apiClient: ApiClient<"deleteContentEntry">, { type, siteId, entryId, options, }: {
|
|
47
43
|
type: ContentTypeKey;
|
|
48
44
|
siteId: string;
|
|
49
45
|
entryId: string;
|
|
@@ -51,9 +47,7 @@ export declare function deleteContentEntry(apiClient: ApiClient, { type, siteId,
|
|
|
51
47
|
}): Promise<{
|
|
52
48
|
ok: boolean;
|
|
53
49
|
}>;
|
|
54
|
-
export declare function updateContentEntryContent<
|
|
55
|
-
entry: unknown;
|
|
56
|
-
}>(apiClient: ApiClient, { siteId, type, entryId, body, options, }: {
|
|
50
|
+
export declare function updateContentEntryContent(apiClient: ApiClient<"updateContentEntryContent">, { siteId, type, entryId, body, options, }: {
|
|
57
51
|
siteId: string;
|
|
58
52
|
type: ContentTypeKey;
|
|
59
53
|
entryId: string;
|
|
@@ -66,33 +60,8 @@ export declare function updateContentEntryContent<TResponse extends {
|
|
|
66
60
|
optimistic_hash?: string | null;
|
|
67
61
|
};
|
|
68
62
|
options?: RequestInit;
|
|
69
|
-
}): Promise<
|
|
70
|
-
|
|
71
|
-
title?: string | null;
|
|
72
|
-
slug?: string | null;
|
|
73
|
-
status?: "draft" | "scheduled" | "published";
|
|
74
|
-
publishAt?: string | null;
|
|
75
|
-
metaTitle?: string | null;
|
|
76
|
-
metaDescription?: string | null;
|
|
77
|
-
ogImageId?: string | null;
|
|
78
|
-
};
|
|
79
|
-
type ContentEntryContentInput = {
|
|
80
|
-
data: Record<string, JsonValue>;
|
|
81
|
-
optimistic_hash?: string | null;
|
|
82
|
-
} | {
|
|
83
|
-
path: string;
|
|
84
|
-
value: JsonValue;
|
|
85
|
-
optimistic_hash?: string | null;
|
|
86
|
-
};
|
|
87
|
-
export declare function mutateContentEntryUnified<TContent = Record<string, unknown>>(apiClient: ApiClient, { siteId, type, entryId, metadata, content, options, }: {
|
|
88
|
-
siteId: string;
|
|
89
|
-
type: ContentTypeKey;
|
|
90
|
-
entryId: string;
|
|
91
|
-
metadata?: ContentEntryMetadataInput;
|
|
92
|
-
content?: ContentEntryContentInput;
|
|
93
|
-
options?: RequestInit;
|
|
94
|
-
}): Promise<ContentEntryDetailResponse<TContent>>;
|
|
95
|
-
export declare function listPublishedEntries<TContent = Record<string, unknown>>(apiClient: ApiClient, { siteId, type, limit, offset, order, stage, meta, mode, entryIds, options, }: {
|
|
63
|
+
}): Promise<NonNullable<APIEndpoints["updateContentEntryContent"]["response"]>>;
|
|
64
|
+
export declare function listPublishedEntries<TContent = Record<string, unknown>>(apiClient: ApiClient<"listPublishedEntries">, { siteId, type, limit, offset, order, stage, meta, mode, entryIds, options, }: {
|
|
96
65
|
siteId: string;
|
|
97
66
|
type: string;
|
|
98
67
|
limit?: number;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { DocumentBlockState } from './documentLifecycle';
|
|
2
|
+
export type { DocumentBlockState, DocumentBlockBaseline, DiscardPageSurfaceResponse, PublishPageSurfaceResponse } from './documentLifecycle';
|
|
1
3
|
import type { Block, SdkCustomBlock, SdkCustomBlockInput, SiteFont, Theme } from '../../blocks/src/index';
|
|
2
4
|
import type { CamelizeKeys, DbRow } from '../../db/src/index';
|
|
3
5
|
import type { ContentTypeRoutingInfo, PublicContentTypeMeta } from './contentTypes';
|
|
4
6
|
import type { SiteRuntimePrivacyPolicy } from './privacyPolicy';
|
|
7
|
+
import type { SdkRuntimeEntry, SdkEditorRevision } from './siteRuntimeEntry';
|
|
5
8
|
import type { SitePagePayload } from './sitePages';
|
|
6
9
|
import type { RiverbankSiteConfig } from './sdkContracts';
|
|
7
10
|
import type { SdkBlockContentAdmission } from './sdkBlockContentAdmission';
|
|
@@ -105,6 +108,8 @@ export type ContentEntryDetail<TContent> = {
|
|
|
105
108
|
route: ContentRouteRecord | null;
|
|
106
109
|
draftContent: TContent;
|
|
107
110
|
publishedContent: TContent | null;
|
|
111
|
+
/** Baseline hash when this detail is projected for an interactive editor. */
|
|
112
|
+
optimisticHash?: string;
|
|
108
113
|
};
|
|
109
114
|
export type PageSurfaceEditorDocument<TContent = Record<string, unknown>> = {
|
|
110
115
|
owner: {
|
|
@@ -116,8 +121,24 @@ export type PageSurfaceEditorDocument<TContent = Record<string, unknown>> = {
|
|
|
116
121
|
publishedContent: TContent | null;
|
|
117
122
|
optimisticHash: string;
|
|
118
123
|
};
|
|
119
|
-
export type
|
|
120
|
-
|
|
124
|
+
export type ContentEntryEditorDetail<TContent = Record<string, unknown>> = ContentEntryDetail<TContent> & Readonly<{
|
|
125
|
+
optimisticHash: string;
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* What an entry lifecycle write did to the entry's draft content. `written` carries
|
|
129
|
+
* the content now effective and `hash`, the token the next content save
|
|
130
|
+
* compare-and-sets against. `unchanged` wrote no content: the editor keeps its own.
|
|
131
|
+
*/
|
|
132
|
+
export type EntryContentWriteResult = {
|
|
133
|
+
kind: 'written';
|
|
134
|
+
values: Record<string, unknown>;
|
|
135
|
+
hash: string;
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'unchanged';
|
|
138
|
+
};
|
|
139
|
+
/** Schedule and cancel return the route row their own UPDATE wrote. */
|
|
140
|
+
export type ScheduledPublishingRouteResponse = {
|
|
141
|
+
route: ContentRouteRecord;
|
|
121
142
|
};
|
|
122
143
|
export type ContentEntryDetailResponse<TContent = Record<string, unknown>> = {
|
|
123
144
|
entry: ContentEntryDetail<TContent>;
|
|
@@ -319,6 +340,8 @@ export type NavigationMenuWithItems = NavigationMenuRecord & {
|
|
|
319
340
|
items: NavigationItemRecord[];
|
|
320
341
|
};
|
|
321
342
|
export type SiteBySlugResponse = {
|
|
343
|
+
/** True when demo booking confirmations are suppressed because no claim is active. */
|
|
344
|
+
demoEmailSuppressed?: boolean;
|
|
322
345
|
site: {
|
|
323
346
|
id: string;
|
|
324
347
|
title: string;
|
|
@@ -437,6 +460,7 @@ export type EntryPageContentSlot = Readonly<{
|
|
|
437
460
|
label: string;
|
|
438
461
|
allowedBlocks: EntryPageContentSlotAllowedBlocks;
|
|
439
462
|
blocks: readonly BlockListItem[];
|
|
463
|
+
publishedBlockIds: readonly string[];
|
|
440
464
|
}>;
|
|
441
465
|
export type PageSurfaceContentSlot = Omit<EntryPageContentSlot, 'blocks'> & Readonly<{
|
|
442
466
|
compositionHash: string;
|
|
@@ -455,23 +479,34 @@ export type PageSurfaceContentSlotsResponse = Readonly<{
|
|
|
455
479
|
slots: readonly PageSurfaceContentSlot[];
|
|
456
480
|
warnings: readonly EntryPageContentSlotWarning[];
|
|
457
481
|
}>;
|
|
458
|
-
export type PublishedBlockBaseline = {
|
|
459
|
-
id: string;
|
|
460
|
-
kind: string;
|
|
461
|
-
publishedContent: Record<string, unknown> | null;
|
|
462
|
-
};
|
|
463
482
|
export type ContentEntryOrPageResponse<TContent = Record<string, unknown>> = ContentEntryDetailResponse<TContent> | {
|
|
464
483
|
entry: PageRecord;
|
|
465
484
|
};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
485
|
+
/** Publish request body. Publishing is immediate; scheduling is the schedule endpoint's (issue 1553). */
|
|
486
|
+
export type PublishContentEntryBody = Readonly<{
|
|
487
|
+
content?: Record<string, import('./shared-contracts').JsonValue>;
|
|
488
|
+
}>;
|
|
489
|
+
export type PublishedContentEntryOrPageResponse<TContent = Record<string, unknown>> = (ContentEntryDetailResponse<TContent> & {
|
|
490
|
+
content: EntryContentWriteResult;
|
|
491
|
+
blockState: Extract<DocumentBlockState, {
|
|
492
|
+
kind: 'entry-slots';
|
|
493
|
+
}>;
|
|
494
|
+
}) | {
|
|
470
495
|
entry: PageRecord;
|
|
496
|
+
blockState: Extract<DocumentBlockState, {
|
|
497
|
+
kind: 'page';
|
|
498
|
+
}>;
|
|
471
499
|
};
|
|
472
|
-
export type
|
|
500
|
+
export type DiscardedContentEntryOrPageResponse<TContent = Record<string, unknown>> = (ContentEntryDetailResponse<TContent> & {
|
|
501
|
+
content: EntryContentWriteResult;
|
|
502
|
+
blockState: Extract<DocumentBlockState, {
|
|
503
|
+
kind: 'entry-slots';
|
|
504
|
+
}>;
|
|
505
|
+
}) | {
|
|
473
506
|
entry: PageRecord;
|
|
474
|
-
|
|
507
|
+
blockState: Extract<DocumentBlockState, {
|
|
508
|
+
kind: 'page';
|
|
509
|
+
}>;
|
|
475
510
|
};
|
|
476
511
|
export type PublishedContentEntryPreview = {
|
|
477
512
|
id: string;
|
|
@@ -532,6 +567,7 @@ export type ListPublishedEntriesResponse<TContent = Record<string, unknown>> = {
|
|
|
532
567
|
*/
|
|
533
568
|
type SdkRuntimeBlockContent<TScope, TContentVersionId extends string | null> = TScope & BlockContentIdentity & {
|
|
534
569
|
id: string;
|
|
570
|
+
optimisticHash?: string;
|
|
535
571
|
blockId: string;
|
|
536
572
|
contentVersionId: TContentVersionId;
|
|
537
573
|
kind: string;
|
|
@@ -627,29 +663,7 @@ export type SdkRuntimePageResponse = {
|
|
|
627
663
|
templates?: SdkTemplate[];
|
|
628
664
|
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
629
665
|
};
|
|
630
|
-
export type SdkRuntimeEntry
|
|
631
|
-
id: string;
|
|
632
|
-
routeId: string | null;
|
|
633
|
-
type: string | null;
|
|
634
|
-
title: string;
|
|
635
|
-
slug: string | null;
|
|
636
|
-
status: string;
|
|
637
|
-
publishAt: string | null;
|
|
638
|
-
path: string | null;
|
|
639
|
-
draftPath: string | null;
|
|
640
|
-
content: Record<string, unknown>;
|
|
641
|
-
draftContent: Record<string, unknown> | null;
|
|
642
|
-
publishedContent: Record<string, unknown> | null;
|
|
643
|
-
metaTitle: string | null;
|
|
644
|
-
draftMetaTitle: string | null;
|
|
645
|
-
metaDescription: string | null;
|
|
646
|
-
draftMetaDescription: string | null;
|
|
647
|
-
ogImageId: string | null;
|
|
648
|
-
ogImageUrl: string | null;
|
|
649
|
-
canonicalUrl: string | null;
|
|
650
|
-
createdAt: string;
|
|
651
|
-
updatedAt: string;
|
|
652
|
-
};
|
|
666
|
+
export type { SdkRuntimeEntry, SdkEditorRevision } from './siteRuntimeEntry';
|
|
653
667
|
export type SdkRuntimeEntryResponse = {
|
|
654
668
|
entry: SdkRuntimeEntry;
|
|
655
669
|
templates: SdkTemplate[];
|
|
@@ -666,6 +680,7 @@ export type SdkRuntimePageSurfaceContentSource = Readonly<{
|
|
|
666
680
|
}>;
|
|
667
681
|
export type SdkRuntimePageSurface = {
|
|
668
682
|
id: string;
|
|
683
|
+
editorRevision?: SdkEditorRevision;
|
|
669
684
|
routeId: string;
|
|
670
685
|
readinessState: 'internal_pilot' | 'shippable';
|
|
671
686
|
subject: SdkRuntimePageSurfaceSubject;
|
|
@@ -765,4 +780,3 @@ export type ContentDataResponse = {
|
|
|
765
780
|
}>;
|
|
766
781
|
}>;
|
|
767
782
|
};
|
|
768
|
-
export {};
|
|
@@ -176,13 +176,13 @@ export type DeleteContentTypeResponse = {
|
|
|
176
176
|
export type DuplicateContentTypeResponse = {
|
|
177
177
|
contentType: ContentTypeRecord;
|
|
178
178
|
};
|
|
179
|
-
export declare function listContentTypes(apiClient: ApiClient
|
|
179
|
+
export declare function listContentTypes(apiClient: ApiClient<'listContentTypes'>, { siteId, options, }: {
|
|
180
180
|
siteId: string;
|
|
181
181
|
options?: RequestInit;
|
|
182
182
|
}): Promise<{
|
|
183
183
|
contentTypes: SerializedContentTypeSummary[];
|
|
184
184
|
}>;
|
|
185
|
-
export declare function enableContentType(apiClient: ApiClient
|
|
185
|
+
export declare function enableContentType(apiClient: ApiClient<'enableContentType'>, { siteId, key, options, }: {
|
|
186
186
|
siteId: string;
|
|
187
187
|
key: 'post' | 'event' | 'testimonial' | (string & {});
|
|
188
188
|
options?: RequestInit;
|
|
@@ -190,7 +190,7 @@ export declare function enableContentType(apiClient: ApiClient, { siteId, key, o
|
|
|
190
190
|
ok: boolean;
|
|
191
191
|
contentType: SerializedContentTypeSummary;
|
|
192
192
|
}>;
|
|
193
|
-
export declare function setupContentType(apiClient: ApiClient
|
|
193
|
+
export declare function setupContentType(apiClient: ApiClient<'setupContentType'>, { siteId, key, addListingPage, addNavItem, seedExample, listBlockKind, options, }: {
|
|
194
194
|
siteId: string;
|
|
195
195
|
key: 'post' | 'event' | 'testimonial' | (string & {});
|
|
196
196
|
addListingPage?: boolean;
|
|
@@ -205,35 +205,35 @@ export declare function setupContentType(apiClient: ApiClient, { siteId, key, ad
|
|
|
205
205
|
navItemId?: string;
|
|
206
206
|
entryId?: string;
|
|
207
207
|
}>;
|
|
208
|
-
export declare function getContentTemplate(apiClient: ApiClient
|
|
208
|
+
export declare function getContentTemplate(apiClient: ApiClient<'getContentTemplate'>, { siteId, type, options, }: {
|
|
209
209
|
siteId: string;
|
|
210
210
|
type: string;
|
|
211
211
|
options?: RequestInit;
|
|
212
212
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
213
|
-
export declare function updateContentTemplateBlock(apiClient: ApiClient
|
|
213
|
+
export declare function updateContentTemplateBlock(apiClient: ApiClient<'updateContentTemplateBlock'>, { siteId, type, blockId, content, options, }: {
|
|
214
214
|
siteId: string;
|
|
215
215
|
type: string;
|
|
216
216
|
blockId: string;
|
|
217
217
|
content: Record<string, unknown>;
|
|
218
218
|
options?: RequestInit;
|
|
219
219
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
220
|
-
export declare function applyContentTemplateAddon(apiClient: ApiClient
|
|
220
|
+
export declare function applyContentTemplateAddon(apiClient: ApiClient<'applyContentTemplateAddon'>, { siteId, type, addonKey, options, }: {
|
|
221
221
|
siteId: string;
|
|
222
222
|
type: string;
|
|
223
223
|
addonKey: string;
|
|
224
224
|
options?: RequestInit;
|
|
225
225
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
226
|
-
export declare function updateContentTemplateBlockBindings(apiClient: ApiClient
|
|
226
|
+
export declare function updateContentTemplateBlockBindings(apiClient: ApiClient<'updateContentTemplateBlockBindings'>, { siteId, type, blockId, bindings, options, }: {
|
|
227
227
|
siteId: string;
|
|
228
228
|
type: string;
|
|
229
229
|
blockId: string;
|
|
230
230
|
bindings: Record<string, unknown>;
|
|
231
231
|
options?: RequestInit;
|
|
232
232
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
233
|
-
export declare function getTransforms(apiClient: ApiClient
|
|
233
|
+
export declare function getTransforms(apiClient: ApiClient<'getTransforms'>, { options, }?: {
|
|
234
234
|
options?: RequestInit;
|
|
235
235
|
}): Promise<GetTransformsResponse>;
|
|
236
|
-
export declare function createTemplateBlock(apiClient: ApiClient
|
|
236
|
+
export declare function createTemplateBlock(apiClient: ApiClient<'createTemplateBlock'>, { siteId, type, blockKind, scope, position, options, }: {
|
|
237
237
|
siteId: string;
|
|
238
238
|
type: string;
|
|
239
239
|
blockKind: string;
|
|
@@ -241,13 +241,13 @@ export declare function createTemplateBlock(apiClient: ApiClient, { siteId, type
|
|
|
241
241
|
position?: number;
|
|
242
242
|
options?: RequestInit;
|
|
243
243
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
244
|
-
export declare function deleteTemplateBlock(apiClient: ApiClient
|
|
244
|
+
export declare function deleteTemplateBlock(apiClient: ApiClient<'deleteTemplateBlock'>, { siteId, type, blockId, options, }: {
|
|
245
245
|
siteId: string;
|
|
246
246
|
type: string;
|
|
247
247
|
blockId: string;
|
|
248
248
|
options?: RequestInit;
|
|
249
249
|
}): Promise<ContentTemplateDetailsResponse>;
|
|
250
|
-
export declare function reorderTemplateBlocks(apiClient: ApiClient
|
|
250
|
+
export declare function reorderTemplateBlocks(apiClient: ApiClient<'reorderTemplateBlocks'>, { siteId, type, blockIds, options, }: {
|
|
251
251
|
siteId: string;
|
|
252
252
|
type: string;
|
|
253
253
|
blockIds: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GetVersionHistoryResponse, ListVersionHistoryResponse, RestoreVersionHistoryRequest, RestoreVersionHistoryResponse } from "./contentVersionHistory";
|
|
2
2
|
import type { ApiClient } from "./request";
|
|
3
|
-
export declare function listContentEntryVersions(apiClient: ApiClient
|
|
3
|
+
export declare function listContentEntryVersions(apiClient: ApiClient<"listContentEntryVersions">, input: {
|
|
4
4
|
siteId: string;
|
|
5
5
|
type: string;
|
|
6
6
|
entryId: string;
|
|
@@ -8,14 +8,14 @@ export declare function listContentEntryVersions(apiClient: ApiClient, input: {
|
|
|
8
8
|
cursor?: string;
|
|
9
9
|
options?: RequestInit;
|
|
10
10
|
}): Promise<ListVersionHistoryResponse>;
|
|
11
|
-
export declare function getContentEntryVersion(apiClient: ApiClient
|
|
11
|
+
export declare function getContentEntryVersion(apiClient: ApiClient<"getContentEntryVersion">, input: {
|
|
12
12
|
siteId: string;
|
|
13
13
|
type: string;
|
|
14
14
|
entryId: string;
|
|
15
15
|
versionId: string;
|
|
16
16
|
options?: RequestInit;
|
|
17
17
|
}): Promise<GetVersionHistoryResponse>;
|
|
18
|
-
export declare function restoreContentEntryVersion(apiClient: ApiClient
|
|
18
|
+
export declare function restoreContentEntryVersion(apiClient: ApiClient<"restoreContentEntryVersion">, input: {
|
|
19
19
|
siteId: string;
|
|
20
20
|
type: string;
|
|
21
21
|
entryId: string;
|
|
@@ -23,20 +23,20 @@ export declare function restoreContentEntryVersion(apiClient: ApiClient, input:
|
|
|
23
23
|
body: RestoreVersionHistoryRequest;
|
|
24
24
|
options?: RequestInit;
|
|
25
25
|
}): Promise<RestoreVersionHistoryResponse>;
|
|
26
|
-
export declare function listPageVersions(apiClient: ApiClient
|
|
26
|
+
export declare function listPageVersions(apiClient: ApiClient<"listPageVersions">, input: {
|
|
27
27
|
siteId: string;
|
|
28
28
|
pageId: string;
|
|
29
29
|
limit?: number;
|
|
30
30
|
cursor?: string;
|
|
31
31
|
options?: RequestInit;
|
|
32
32
|
}): Promise<ListVersionHistoryResponse>;
|
|
33
|
-
export declare function getPageVersion(apiClient: ApiClient
|
|
33
|
+
export declare function getPageVersion(apiClient: ApiClient<"getPageVersion">, input: {
|
|
34
34
|
siteId: string;
|
|
35
35
|
pageId: string;
|
|
36
36
|
versionId: string;
|
|
37
37
|
options?: RequestInit;
|
|
38
38
|
}): Promise<GetVersionHistoryResponse>;
|
|
39
|
-
export declare function restorePageVersion(apiClient: ApiClient
|
|
39
|
+
export declare function restorePageVersion(apiClient: ApiClient<"restorePageVersion">, input: {
|
|
40
40
|
siteId: string;
|
|
41
41
|
pageId: string;
|
|
42
42
|
versionId: string;
|
|
@@ -4,7 +4,7 @@ export declare const CANONICAL_REFUND_CONFLICT_CODES: readonly ["already_refunde
|
|
|
4
4
|
export type CanonicalRefundConflictCode = (typeof CANONICAL_REFUND_CONFLICT_CODES)[number];
|
|
5
5
|
export declare const CANONICAL_REFUND_PLANNER_ERROR_CODES: readonly ["already_refunded", "idempotency_amount_mismatch", "idempotency_method_mismatch", "idempotency_receipt_mismatch", "idempotency_scope_mismatch", "refund_in_progress", "invalid_amount", "amount_exceeds_remaining", "pass_revoke_requires_full_refund", "refund_failed"];
|
|
6
6
|
export type CanonicalRefundPlannerErrorCode = (typeof CANONICAL_REFUND_PLANNER_ERROR_CODES)[number];
|
|
7
|
-
export declare const CANONICAL_ADMIN_REFUND_FAILURE_CODES: readonly ["already_refunded", "idempotency_amount_mismatch", "idempotency_method_mismatch", "idempotency_receipt_mismatch", "idempotency_scope_mismatch", "refund_in_progress", "invalid_amount", "amount_exceeds_remaining", "pass_revoke_requires_full_refund", "refund_failed", "payment_intent_not_found", "stripe_error", "stale_pending_missing_context", "non_refundable_deposit_remaining", "deposit_refund_override_required", "refund_revoke_requires_full_line_refund", "payment_receipt_not_found", "payment_receipt_not_refundable", "payment_receipt_attribution_required"];
|
|
7
|
+
export declare const CANONICAL_ADMIN_REFUND_FAILURE_CODES: readonly ["refund_blocked_by_live_payment_terms", "already_refunded", "idempotency_amount_mismatch", "idempotency_method_mismatch", "idempotency_receipt_mismatch", "idempotency_scope_mismatch", "refund_in_progress", "invalid_amount", "amount_exceeds_remaining", "pass_revoke_requires_full_refund", "refund_failed", "payment_intent_not_found", "stripe_error", "stale_pending_missing_context", "non_refundable_deposit_remaining", "deposit_refund_override_required", "refund_revoke_requires_full_line_refund", "payment_receipt_not_found", "payment_receipt_not_refundable", "payment_receipt_attribution_required"];
|
|
8
8
|
export type CanonicalAdminRefundFailureCode = (typeof CANONICAL_ADMIN_REFUND_FAILURE_CODES)[number];
|
|
9
9
|
export type CustomerMembershipPaymentRefundConflictCode = CanonicalRefundConflictCode;
|
|
10
10
|
export declare const CUSTOMER_MEMBERSHIP_PAYMENT_REFUND_INVALID_CODES: readonly ["stripe_not_connected", "credit_refunds_disabled", "not_refundable", "invalid_amount", "amount_exceeds_remaining", "payment_receipt_not_found", "payment_receipt_not_refundable", "payment_receipt_attribution_required"];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { RevisionedBlockListItem, PageSurfaceEditorDocument, ContentRouteRecord } from './contentRuntime';
|
|
2
|
+
/** A settled block's complete values and next-write identity. */
|
|
3
|
+
export type DocumentBlockBaseline = RevisionedBlockListItem & Readonly<{
|
|
4
|
+
orderIndex: number;
|
|
5
|
+
content: Record<string, unknown> | null;
|
|
6
|
+
draftContent: null;
|
|
7
|
+
publishedContent: Record<string, unknown> | null;
|
|
8
|
+
draftContentId: null;
|
|
9
|
+
publishedContentId: string | null;
|
|
10
|
+
}>;
|
|
11
|
+
/** Complete ordered block membership covered by a document lifecycle write. */
|
|
12
|
+
export type DocumentBlockState = Readonly<{
|
|
13
|
+
kind: 'page';
|
|
14
|
+
pageId: string;
|
|
15
|
+
blocks: readonly DocumentBlockBaseline[];
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'entry-slots';
|
|
18
|
+
slots: readonly Readonly<{
|
|
19
|
+
entrySlotId: string;
|
|
20
|
+
slotKey: string;
|
|
21
|
+
blocks: readonly DocumentBlockBaseline[];
|
|
22
|
+
}>[];
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'surface-slots';
|
|
25
|
+
pageSurfaceId: string;
|
|
26
|
+
slots: readonly Readonly<{
|
|
27
|
+
surfaceSlotId: string;
|
|
28
|
+
slotKey: string;
|
|
29
|
+
compositionHash: string;
|
|
30
|
+
blocks: readonly DocumentBlockBaseline[];
|
|
31
|
+
}>[];
|
|
32
|
+
}>;
|
|
33
|
+
export type DiscardPageSurfaceResponse = Readonly<{
|
|
34
|
+
kind: 'unchanged';
|
|
35
|
+
}> | Readonly<{
|
|
36
|
+
kind: 'discarded';
|
|
37
|
+
document: PageSurfaceEditorDocument;
|
|
38
|
+
blockState: Extract<DocumentBlockState, {
|
|
39
|
+
kind: 'surface-slots';
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* A publish moves the route's draft revision. `draftUpdatedAt` and `route` are what
|
|
44
|
+
* the publish itself wrote, from the same transaction, so an open editor adopts
|
|
45
|
+
* values and revision together. `noChange` still acknowledges the revisions observed
|
|
46
|
+
* under the publication lock without replacing document values.
|
|
47
|
+
*/
|
|
48
|
+
export type PublishPageSurfaceResponse = Readonly<{
|
|
49
|
+
revisions: Readonly<{
|
|
50
|
+
content: string;
|
|
51
|
+
metadata: string;
|
|
52
|
+
}>;
|
|
53
|
+
}> & ({
|
|
54
|
+
publication: 'published';
|
|
55
|
+
draftUpdatedAt: string;
|
|
56
|
+
route: ContentRouteRecord;
|
|
57
|
+
document: PageSurfaceEditorDocument;
|
|
58
|
+
blockState: Extract<DocumentBlockState, {
|
|
59
|
+
kind: 'surface-slots';
|
|
60
|
+
}>;
|
|
61
|
+
} | {
|
|
62
|
+
publication: 'noChange';
|
|
63
|
+
document: PageSurfaceEditorDocument;
|
|
64
|
+
blockState: Extract<DocumentBlockState, {
|
|
65
|
+
kind: 'surface-slots';
|
|
66
|
+
}>;
|
|
67
|
+
});
|
|
@@ -4,33 +4,33 @@ import type { ApiClient } from './request';
|
|
|
4
4
|
type RemoveDomainResponse = NonNullable<APIEndpoints['removeDomain']['response']>;
|
|
5
5
|
type GetDomainDnsResponse = NonNullable<APIEndpoints['getDomainDns']['response']>;
|
|
6
6
|
type VerifyDomainDnsResponse = NonNullable<APIEndpoints['verifyDomainDns']['response']>;
|
|
7
|
-
export declare function listAccountDomains(apiClient: ApiClient
|
|
8
|
-
export declare function searchDomainsRequest(apiClient: ApiClient
|
|
9
|
-
export declare function registerDomainRequest(apiClient: ApiClient
|
|
10
|
-
export declare function assignDomainToSiteRequest(apiClient: ApiClient
|
|
7
|
+
export declare function listAccountDomains(apiClient: ApiClient<'listAccountDomains'>, options?: RequestInit): Promise<SiteDomainRecord[]>;
|
|
8
|
+
export declare function searchDomainsRequest(apiClient: ApiClient<'searchDomains'>, query: string, options?: RequestInit): Promise<DomainSearchResultResponse>;
|
|
9
|
+
export declare function registerDomainRequest(apiClient: ApiClient<'registerDomain'>, input: RegisterDomainRequestPayload, options?: RequestInit): Promise<RegisterDomainResponse>;
|
|
10
|
+
export declare function assignDomainToSiteRequest(apiClient: ApiClient<'assignDomain'>, { domainId, siteId, options, }: {
|
|
11
11
|
domainId: string;
|
|
12
12
|
siteId: string;
|
|
13
13
|
options?: RequestInit;
|
|
14
14
|
}): Promise<SiteDomainRecord>;
|
|
15
|
-
export declare function removeDomainRequest(apiClient: ApiClient
|
|
15
|
+
export declare function removeDomainRequest(apiClient: ApiClient<'removeDomain'>, { domainId, options }: {
|
|
16
16
|
domainId: string;
|
|
17
17
|
options?: RequestInit;
|
|
18
18
|
}): Promise<RemoveDomainResponse>;
|
|
19
|
-
export declare function syncCustomDomainToEdgeConfig(apiClient: ApiClient
|
|
19
|
+
export declare function syncCustomDomainToEdgeConfig(apiClient: ApiClient<'syncCustomDomainToEdgeConfig'>, siteId: string, options?: RequestInit): Promise<{
|
|
20
20
|
success: boolean;
|
|
21
21
|
domain: string;
|
|
22
22
|
siteId: string;
|
|
23
23
|
message: string;
|
|
24
24
|
}>;
|
|
25
|
-
export declare function retryDomainConfigRequest(apiClient: ApiClient
|
|
25
|
+
export declare function retryDomainConfigRequest(apiClient: ApiClient<'retryDomainConfig'>, { domainId, options }: {
|
|
26
26
|
domainId: string;
|
|
27
27
|
options?: RequestInit;
|
|
28
28
|
}): Promise<DomainConfigResult>;
|
|
29
|
-
export declare function getDomainDnsRequest(apiClient: ApiClient
|
|
29
|
+
export declare function getDomainDnsRequest(apiClient: ApiClient<'getDomainDns'>, { domainId, options }: {
|
|
30
30
|
domainId: string;
|
|
31
31
|
options?: RequestInit;
|
|
32
32
|
}): Promise<GetDomainDnsResponse>;
|
|
33
|
-
export declare function verifyDomainDnsRequest(apiClient: ApiClient
|
|
33
|
+
export declare function verifyDomainDnsRequest(apiClient: ApiClient<'verifyDomainDns'>, { domainId, options }: {
|
|
34
34
|
domainId: string;
|
|
35
35
|
options?: RequestInit;
|
|
36
36
|
}): Promise<VerifyDomainDnsResponse>;
|
|
@@ -41,13 +41,13 @@ type DomainIdRequest = {
|
|
|
41
41
|
domainId: string;
|
|
42
42
|
options?: RequestInit;
|
|
43
43
|
};
|
|
44
|
-
export declare function retryNameserversRequest(apiClient: ApiClient
|
|
45
|
-
export declare function updateRegisteredDomainContactRequest(apiClient: ApiClient
|
|
44
|
+
export declare function retryNameserversRequest(apiClient: ApiClient<'retryDomainNameservers'>, { domainId, options }: DomainIdRequest): Promise<RetryNameserversResponse>;
|
|
45
|
+
export declare function updateRegisteredDomainContactRequest(apiClient: ApiClient<'updateRegisteredDomainContact'>, { domainId, contact, options }: DomainIdRequest & {
|
|
46
46
|
contact: SiteDomainContactPayload;
|
|
47
47
|
}): Promise<RegistrarLifecycleResponse>;
|
|
48
|
-
export declare function setRegisteredDomainPrivacyRequest(apiClient: ApiClient
|
|
49
|
-
export declare function setRegisteredDomainAutoRenewRequest(apiClient: ApiClient
|
|
50
|
-
export declare function getRegisteredDomainRenewalPostureRequest(apiClient: ApiClient
|
|
51
|
-
export declare function retryVercelRequest(apiClient: ApiClient
|
|
52
|
-
export declare function retryResendRequest(apiClient: ApiClient
|
|
48
|
+
export declare function setRegisteredDomainPrivacyRequest(apiClient: ApiClient<'setRegisteredDomainPrivacy'>, { domainId, enabled, options }: DomainIdRequest & RegistrarBooleanMutationRequest): Promise<RegistrarLifecycleResponse>;
|
|
49
|
+
export declare function setRegisteredDomainAutoRenewRequest(apiClient: ApiClient<'setRegisteredDomainAutoRenew'>, { domainId, enabled, options }: DomainIdRequest & RegistrarBooleanMutationRequest): Promise<RegistrarLifecycleResponse>;
|
|
50
|
+
export declare function getRegisteredDomainRenewalPostureRequest(apiClient: ApiClient<'getRegisteredDomainRenewalPosture'>, { domainId, options }: DomainIdRequest): Promise<RegistrarRenewalPostureResponse>;
|
|
51
|
+
export declare function retryVercelRequest(apiClient: ApiClient<'retryDomainVercel'>, { domainId, options }: DomainIdRequest): Promise<RetryVercelResponse>;
|
|
52
|
+
export declare function retryResendRequest(apiClient: ApiClient<'retryDomainResend'>, { domainId, options }: DomainIdRequest): Promise<RetryResendResponse>;
|
|
53
53
|
export {};
|