@riverbankcms/sdk 0.151.0 → 0.152.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 +37 -0
- package/dist/{EventEmbeddedCheckoutStep-BBHbM22D.mjs → EventEmbeddedCheckoutStep-DVQXWFm6.mjs} +10 -9
- package/dist/{PreviewEditorSidebar-BHplI9HE.mjs → PreviewEditorSidebar-Dr4NJi3Q.mjs} +4 -3
- package/dist/{PreviewEditorUI-DuyN8nsD.mjs → PreviewEditorUI-DSZXQbyh.mjs} +5 -4
- package/dist/{SdkPreviewModeRuntime-CR5ypwxJ.mjs → SdkPreviewModeRuntime-Dl4GyMc3.mjs} +124 -53
- package/dist/{SiteChromeCustomizeContext-D5t6joF_.mjs → SiteChromeCustomizeContext-DgBe-FlM.mjs} +20418 -32298
- package/dist/ThemedButton-B8ViBnLK.mjs +16350 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -3
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +7 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +10 -1
- package/dist/_dts/api/src/siteAssets.d.ts +1 -0
- package/dist/_dts/blocks/src/definitions.d.ts +1 -1
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/utils/sanitizeHref.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +16 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -0
- package/dist/_dts/blocks/src/system/helpers/normalizeMailingListBlockContent.d.ts +2 -0
- package/dist/_dts/blocks/src/system/registry.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -5
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +971 -0
- package/dist/_dts/blocks/src/system/runtime/api/schemas/waitlist-claims.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +10 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +10 -136
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.state.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.hooks.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.state.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/BookingEntryViews.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +19 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/GuestDetailsSection.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SingleTicketEntitlementNote.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/VerifyingTimeoutStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingEntry.d.ts +154 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingFocus.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +77 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/offeringNoun.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +33 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDisplay.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDraft.state.d.ts +60 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +58 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +23 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useBookingBarFacts.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +4 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +1563 -31
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +2 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +147 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +50 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +6 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +85 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +53 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/MonthLookView.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +37 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/ModalShell.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/PaymentChoiceRows.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +9 -12
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/themePortalRoot.d.ts +10 -15
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/registry/links.d.ts +3 -1
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +14 -14
- package/dist/_dts/commerce/src/purchase/confirmationPayment.d.ts +65 -0
- package/dist/_dts/commerce/src/purchase/confirmationPaymentSchema.d.ts +66 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentState.d.ts +8 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +2 -2
- package/dist/_dts/core/src/appointment-booking-terms.d.ts +20 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +70 -0
- package/dist/_dts/core/src/branded.d.ts +0 -2
- package/dist/_dts/core/src/demo-claim-access.d.ts +1 -1
- package/dist/_dts/core/src/demo-claim-readiness.d.ts +18 -0
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +1 -1
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +1 -1
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/mailing-list-targeting-availability.d.ts +68 -0
- package/dist/_dts/core/src/mailing-list-targeting.d.ts +2 -0
- package/dist/_dts/core/src/ticket-quantity.d.ts +13 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +51 -32
- package/dist/_dts/editor/src/chrome/chromeLayers.d.ts +7 -0
- package/dist/_dts/editor/src/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkAddressInput.d.ts +8 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +5 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +8 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +4 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +44 -0
- package/dist/_dts/editor-blocks/src/widgets/link/presentation.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/link/useRoutableContent.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +5 -4
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +13 -8
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -3
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/storageObjectKey.d.ts +12 -0
- package/dist/_dts/media-react/src/hooks/useSupabaseMediaUploader.d.ts +1 -1
- package/dist/_dts/media-react/src/internal/supabaseResumableUpload.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/previewModeRootAttribute.d.ts +11 -0
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +0 -1
- package/dist/_dts/sdk/src/rendering/image.d.ts +10 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/link.d.ts +9 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +3 -3
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/client/BookingMailingListNote-CBuMKN0w.mjs +386 -0
- package/dist/client/{CardListItem-ZDLYh6dL.mjs → CardListItem-Dc9XTXhB.mjs} +3 -4
- package/dist/client/CheckIcon-CpyXr-Kg.mjs +35 -0
- package/dist/client/{CheckboxChoice-M-3HycLw.mjs → CheckboxChoice-CIqx_o0E.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BMtvPTWE.mjs → DemoBookingPortalAccess-D3VQ_kLj.mjs} +85 -85
- package/dist/client/{EventCombined.client-DUm_DOxW.mjs → EventCombined.client-BHGEKise.mjs} +8 -9
- package/dist/client/{EventEmbeddedCheckoutStep-DsNNzgRm.mjs → EventEmbeddedCheckoutStep-Bo1Cm23R.mjs} +11 -10
- package/dist/client/{EventListing.client-DjNYGUVm.mjs → EventListing.client-D5OQgVPr.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DuFiOHq_.mjs → LeafletStaticMap-CLL5cWrr.mjs} +1 -1
- package/dist/client/{ModalShell-CqkBvBIC.mjs → ModalShell-BXzucfR6.mjs} +83 -12
- package/dist/client/{RichText-LjPCUGGi.mjs → RichText-BoDmnopf.mjs} +6 -3
- package/dist/client/{ThemedButton-DZKjtaDD.mjs → ThemedButton-Ciltp0IK.mjs} +2 -2
- package/dist/client/{accordion-Qe--SILD.mjs → accordion-DOkRS64-.mjs} +1 -1
- package/dist/client/aspectTransforms-D-TnDdq4.mjs +93 -0
- package/dist/client/{bookingForm-3BCl4g_f.mjs → bookingForm-wlMVwo9h.mjs} +289 -149
- package/dist/client/bookings.mjs +12212 -10832
- package/dist/client/{carousel-h2YjKOS2.mjs → carousel-CGWk-Z0u.mjs} +2 -2
- package/dist/client/{carousel.client-BLrd4hmY.mjs → carousel.client-kX5mN1Eg.mjs} +46 -41
- package/dist/client/{cart-5NeiigVd.mjs → cart-OBBPlaH4.mjs} +3 -3
- package/dist/client/{checkout-G4UWjOEw.mjs → checkout-Bmw2WjQX.mjs} +3 -3
- package/dist/client/client.mjs +9541 -6039
- package/dist/client/{colorStyles-DTunOThj.mjs → colorStyles-ECDNPE_P.mjs} +23 -86
- package/dist/client/{context-GK4-AVAh.mjs → context-BI77UFAn.mjs} +275 -10
- package/dist/client/{eventCalendar-Prw3Yo_L.mjs → eventCalendar-qkej2Edn.mjs} +19 -17
- package/dist/client/{eventCombined-BUugi6__.mjs → eventCombined-DApKHvat.mjs} +4 -4
- package/dist/client/{eventDetails-CBHUda-R.mjs → eventDetails-BQyUDPH0.mjs} +3 -4
- package/dist/client/{eventListing-CQeG45Dg.mjs → eventListing-CeAnshlZ.mjs} +4 -4
- package/dist/client/{eventRegistration-Dif3p3oJ.mjs → eventRegistration-C3A3NyBO.mjs} +2209 -2144
- package/dist/client/{form-Cf0WMtfG.mjs → form-DW8rU7jO.mjs} +6 -6
- package/dist/client/{headerSection-Bqdr3JWp.mjs → headerSection-CkIhsoNm.mjs} +9 -9
- package/dist/client/hooks.mjs +1289 -380
- package/dist/client/{locationMap-BVvPou4O.mjs → locationMap-D4O8wbli.mjs} +4 -4
- package/dist/client/{media-47fcnhzD.mjs → media-C5K_0xPd.mjs} +2 -2
- package/dist/client/{newsletterForm-Cx-1dnic.mjs → newsletterForm-B7IxSPuz.mjs} +5 -5
- package/dist/client/{productDetail-DaUMaJYk.mjs → productDetail-Bqxpwy5N.mjs} +3 -3
- package/dist/client/{productList-BKQlWEKE.mjs → productList-u9Lz8V15.mjs} +3 -3
- package/dist/client/{propsDecoder-DO5iXphQ.mjs → propsDecoder-Bf1jucUp.mjs} +17333 -14489
- package/dist/client/rendering/client.mjs +58216 -55133
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +9099 -5636
- package/dist/client/{routeIslandApiConfig-BNm0Z3-g.mjs → routeIslandApiConfig-BgP-aPMl.mjs} +1 -1
- package/dist/client/{shop-D7ytcFBC.mjs → shop-B_eykR-_.mjs} +16 -14
- package/dist/client/{shop-commerce-D68-hHy2.mjs → shop-commerce-CT0APkFV.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Cu7X2lyu.mjs → shop-commerce-store-DcvZxdEK.mjs} +1 -1
- package/dist/client/{shopShared-D12rxE69.mjs → shopShared-BVJOiUiJ.mjs} +5 -5
- package/dist/client/themePortalRoot-DS92SRVZ.mjs +47 -0
- package/dist/client/{TerminalPanel-DOTSUCO0.mjs → useDiscountCodeUi-DPmYDunz.mjs} +60 -77
- package/dist/client/{useEventPagination-jgKa67KV.mjs → useEventPagination-8-U55vH5.mjs} +7 -8
- package/dist/preview-next/before-render.mjs +7 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/keepAlive.mjs +7 -0
- package/dist/preview-next/middleware.mjs +7 -0
- package/dist/{sdk-runtime-4cCWO_3i.mjs → sdk-runtime-C5jPdSrk.mjs} +1 -1
- package/dist/server/components.mjs +3138 -1373
- package/dist/server/config-validation.mjs +1395 -486
- package/dist/server/config.mjs +1395 -486
- package/dist/server/data.mjs +1289 -380
- package/dist/server/index.mjs +8 -1
- package/dist/server/next.mjs +3362 -1538
- package/dist/server/page-converter.mjs +1357 -453
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2335 -1044
- package/dist/server/rendering.mjs +3152 -1370
- package/dist/server/routing.mjs +1437 -490
- package/dist/server/server.mjs +1297 -381
- package/dist/server/theme-bridge.mjs +1135 -795
- package/dist/{spinner-tSdG9YvG.mjs → spinner-B-ab2rJp.mjs} +1 -1
- package/dist/styles/index.css +1088 -721
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +0 -22
- package/dist/_dts/blocks/src/system/runtime/shared/components/SelectableOptionCard.d.ts +0 -30
- package/dist/client/BookingMailingListNote-DlDSs5Vm.mjs +0 -567
- package/dist/client/pricing-CMD0kADd.mjs +0 -314
- package/dist/client/result-DRW7JWXz.mjs +0 -30
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
- package/dist/client/themePortalRoot-AGs4cE7t.mjs +0 -30
- package/dist/spinner-BL3kW9Uh.mjs +0 -803
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TimeSlot } from './availability';
|
|
2
2
|
import type { PublicCreateBookingAppointmentRequest, PublicCreateBookingAppointmentResponse } from './publicAppointmentBookingContracts';
|
|
3
|
-
export type { PublicCreateBookingAppointmentRequest, PublicCreateBookingAppointmentResponse, PublicBookingAppointmentSummary, PublicBookingCustomerSummary, } from './publicAppointmentBookingContracts';
|
|
3
|
+
export type { PublicCreateBookingAppointmentRequest, PublicCreateBookingAppointmentResponse, PublicBookingAppointmentSummary, PublicBookingCustomerSummary, PublicAppointmentPaymentChoices, } from './publicAppointmentBookingContracts';
|
|
4
4
|
import type { InviteSiteMemberEmailResult, SiteInvitation, StaffOperationalCapability } from './accessAdmin';
|
|
5
5
|
import type { EventSeriesRegistrationRefundFailedCode, EventAttendeeRefundFailedCode } from './bookingRefundOutcomes';
|
|
6
6
|
import type { AdminBookingCancellationPreview } from './common/cancellation';
|
|
@@ -724,10 +724,12 @@ export type BookingSessionListAppointmentsResponse = {
|
|
|
724
724
|
count: number;
|
|
725
725
|
};
|
|
726
726
|
};
|
|
727
|
-
export type BookingSessionCreateAppointmentRequest = Omit<PublicCreateBookingAppointmentRequest, 'altchaSolution' | 'cancelUrl' | 'discountCode' | 'selectedCollectionOptionKind' | 'successUrl'> & {
|
|
727
|
+
export type BookingSessionCreateAppointmentRequest = Omit<PublicCreateBookingAppointmentRequest, 'altchaSolution' | 'cancelUrl' | 'discountCode' | 'selectedCollectionOptionKind' | 'successUrl' | 'shownTerms'> & {
|
|
728
728
|
customerPassId: string;
|
|
729
729
|
};
|
|
730
|
-
export type BookingSessionCreateAppointmentResponse = PublicCreateBookingAppointmentResponse
|
|
730
|
+
export type BookingSessionCreateAppointmentResponse = Extract<PublicCreateBookingAppointmentResponse, {
|
|
731
|
+
type: 'booked' | 'checkout_redirect';
|
|
732
|
+
}>;
|
|
731
733
|
export type BookingSessionEligibleAppointmentPackage = {
|
|
732
734
|
customerPassId: string;
|
|
733
735
|
passId: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DemoClaimReadiness } from '../../core/src/index';
|
|
1
2
|
import type { AppointmentBookingQuestionsTaskDetail, CustomerEventSeriesRegistration, CustomerEventRegistration, CustomerPortalWaitlistEntry, CustomerMembership, CustomerOrder, CustomerPass, EventGuest, MagicLinkRequest, MagicLinkResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalCancelMembershipAtPeriodEndResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCreditResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalEventTicket, PortalWholeSeriesBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalMeResponse, PortalMeUpdateRequest, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, UpdateEventGuestsRequest } from '../../blocks/src/api';
|
|
2
3
|
import type { APIEndpoint } from './apiEndpointTypes';
|
|
3
4
|
import type { DeleteAccountRequest, DeleteAccountResponse } from './accessAdmin';
|
|
@@ -275,6 +276,9 @@ export type CommercePortalAPIEndpoints = {
|
|
|
275
276
|
result: PortalCancelMembershipAtPeriodEndResult;
|
|
276
277
|
}>;
|
|
277
278
|
portalSendMagicLink: APIEndpoint<MagicLinkRequest, never, MagicLinkResponse>;
|
|
279
|
+
demoClaimReadiness: APIEndpoint<never, {
|
|
280
|
+
claimId: string;
|
|
281
|
+
}, DemoClaimReadiness | null>;
|
|
278
282
|
demoClaimMagicLink: APIEndpoint<{
|
|
279
283
|
email: string;
|
|
280
284
|
blueprintSlug: DemoClaimBlueprintSlug;
|
|
@@ -263,6 +263,13 @@ export declare const API_ENDPOINTS: {
|
|
|
263
263
|
readonly auth: "public";
|
|
264
264
|
readonly responseKind: "json";
|
|
265
265
|
};
|
|
266
|
+
readonly demoClaimReadiness: {
|
|
267
|
+
readonly path: "/demo/claims/{claimId}/readiness";
|
|
268
|
+
readonly method: "GET";
|
|
269
|
+
readonly auth: "user";
|
|
270
|
+
readonly responseKind: "json";
|
|
271
|
+
readonly errors: readonly [];
|
|
272
|
+
};
|
|
266
273
|
readonly demoClaimMagicLink: {
|
|
267
274
|
readonly path: "/demo/auth/send-magic-link";
|
|
268
275
|
readonly method: "POST";
|
|
@@ -39,7 +39,7 @@ export { DEFAULT_EXTERNAL_EVENT_CTA_LABEL, EVENT_LISTING_DESTINATION_SETTINGS_KE
|
|
|
39
39
|
export type { EventListingDestination, EventListingDestinationInput, EventListingDestinationPublicationIssue, ExternalEventUrl, ExternalEventUrlValidationError, ExternalEventUrlValidationErrorCode, ExternalEventUrlValidationResult, PublicEventDestination, } from './event-listing-destination';
|
|
40
40
|
export { APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX, APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX, applyAppointmentSetupRequestSchema, applyAppointmentSetupRequest, appointmentSetupAvailabilityDraftSchema, appointmentSetupBookingNoticeSchema, appointmentSetupPaymentDraftSchema, appointmentSetupPractitionerDraftSchema, appointmentSetupRefSchema, appointmentSetupServiceAssignmentDraftSchema, appointmentSetupServiceDraftSchema, appointmentSetupVenueChoiceSchema, appointmentSetupWeeklyWindowDraftSchema, getAppointmentSetupRequest, } from './appointmentSetup';
|
|
41
41
|
export type { ApplyAppointmentSetupRequest, ApplyAppointmentSetupResponse, AppointmentPractitionerMode, AppointmentSetupAvailabilityDraft, AppointmentSetupAvailabilityWindowInvalidReason, AppointmentSetupBookingNotice, AppointmentSetupDraftMapping, AppointmentSetupPaymentDraft, AppointmentSetupPlanIssue, AppointmentSetupPractitionerDraft, AppointmentSetupReadiness, AppointmentSetupRef, AppointmentSetupResponse, BookingPaymentAuthoringReadiness, AppointmentSetupSeedCandidate, AppointmentSetupSeedInvalidMetadata, AppointmentSetupSeedSelection, AppointmentSetupServiceAssignmentDraft, AppointmentSetupServiceDraft, AppointmentSetupServiceResourceLink, AppointmentSetupTargetStep, AppointmentSetupVenueChoice, AppointmentSetupWeeklyWindowDraft, } from './appointmentSetup';
|
|
42
|
-
export type { AdminBookingCancellationRequest, AdminBookingCancellationResult, AppointmentHistoryStatus, AppointmentReservation, AppointmentReservationListItem, AppointmentReservationPaymentMode, AppointmentReservationStatus, BookingSessionCreateAppointmentRequest, BookingSessionCreateAppointmentResponse, BookingSessionEligibleAppointmentPackage, BookingSessionListEligibleAppointmentPackagesResponse, PublicWeeklySlotAvailabilityOption, PublicWeeklySlotAvailabilityQuery, PublicWeeklySlotAvailabilityResponse, } from './bookingOperations';
|
|
42
|
+
export type { AdminBookingCancellationRequest, AdminBookingCancellationResult, AppointmentHistoryStatus, AppointmentReservation, AppointmentReservationListItem, AppointmentReservationPaymentMode, AppointmentReservationStatus, BookingSessionCreateAppointmentRequest, PublicAppointmentPaymentChoices, BookingSessionCreateAppointmentResponse, BookingSessionEligibleAppointmentPackage, BookingSessionListEligibleAppointmentPackagesResponse, PublicWeeklySlotAvailabilityOption, PublicWeeklySlotAvailabilityQuery, PublicWeeklySlotAvailabilityResponse, } from './bookingOperations';
|
|
43
43
|
export type { AdminBookingCancellationPreview, AdminBookingReturnableValue } from './common/cancellation';
|
|
44
44
|
export { APPOINTMENT_HISTORY_STATUS_VALUES } from './bookingOperations';
|
|
45
45
|
export type { BookingClosureAffectedItemKind, BookingClosureAutoCancelItem, BookingClosureAutoCancelReason, BookingClosureConflictResponse, BookingClosureImpactPlan, BookingClosureImpactSummary, BookingClosureManualReviewItem, BookingClosureManualReviewReason, BookingClosureRecord, BookingClosureRequest, BookingClosureScope, CreateBookingClosureRequest, CreateBookingClosureResponse, DeleteBookingClosureResponse, GetBookingClosureResponse, ListBookingClosuresResponse, PreviewBookingClosureResponse, } from './bookingClosures';
|
|
@@ -89,8 +89,15 @@ export type EntryRoutableContentItem = RoutableContentItemBase & {
|
|
|
89
89
|
contentTypeKey: string;
|
|
90
90
|
contentTypeName: string | null;
|
|
91
91
|
};
|
|
92
|
+
export type EventPageAvailability = Readonly<{
|
|
93
|
+
kind: 'local';
|
|
94
|
+
}> | Readonly<{
|
|
95
|
+
kind: 'withheld';
|
|
96
|
+
reason: 'bookedElsewhere';
|
|
97
|
+
}>;
|
|
92
98
|
export type PageSurfaceRoutableContentItem = RoutableContentItemBase & {
|
|
93
99
|
entityType: 'pageSurface';
|
|
100
|
+
pageAvailability: EventPageAvailability;
|
|
94
101
|
identifier: null;
|
|
95
102
|
contentTypeKey: null;
|
|
96
103
|
contentTypeName: null;
|
|
@@ -23,7 +23,7 @@ export type { DashboardAppointmentResourceLabel, DashboardBookingModules, Dashbo
|
|
|
23
23
|
export type { DashboardMoneyNavSurfaceId, DashboardShopNavSurfaceId, } from './navigation/dashboardDemoNav';
|
|
24
24
|
export { linkPayloadToValue, linkValueToPayload, toInternalLinkValue, toPersistableNavigationLinkValue, } from './navigation/linkValue';
|
|
25
25
|
export type { PersistableNavigationLinkError, PersistableNavigationLinkResult, PersistableNavigationLinkValue, } from './navigation/linkValue';
|
|
26
|
-
export type { CartLinkLabelConfig, CartLinkPayload, EntryLinkPayload, InternalLinkRoutablePayload, PageRoutableContentItem, EntryRoutableContentItem, PageSurfaceRoutableContentItem, LinkResolutionOptions, LinkPayload, NavigationLinkInput, NavigationUrlType, PageLinkPayload, PortalLinkPayload, ResolvedNavigationLink, RoutableContentItem, SitemapRouteItem, } from './navigation/types';
|
|
26
|
+
export type { CartLinkLabelConfig, CartLinkPayload, EntryLinkPayload, InternalLinkRoutablePayload, PageRoutableContentItem, EntryRoutableContentItem, PageSurfaceRoutableContentItem, EventPageAvailability, LinkResolutionOptions, LinkPayload, NavigationLinkInput, NavigationUrlType, PageLinkPayload, PortalLinkPayload, ResolvedNavigationLink, RoutableContentItem, SitemapRouteItem, } from './navigation/types';
|
|
27
27
|
export { matchNavigationItems } from './navigation/matcher';
|
|
28
28
|
export type { ItemMatch, MatchResult } from './navigation/matcher';
|
|
29
29
|
export type { EntryNavLinkInfo, NavigationItemForMatching, NavigationItemInput, NavigationReferenceMaps, PageNavLinkInfo, } from './navigation/types';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { BookingMailingListNote as BookingSignupNote, BookingPaymentCollectionOptionKind } from '../../core/src/index';
|
|
1
|
+
import type { BookingMailingListNote as BookingSignupNote, BookingPaymentCollectionOptionKind, AppointmentBookingTerms, AppointmentBookingReview } from '../../core/src/index';
|
|
2
|
+
import type { PublicBookingService } from './publicBookingService';
|
|
3
|
+
export type PublicAppointmentPaymentChoices = Pick<PublicBookingService, 'id' | 'priceAmount' | 'priceCurrency' | 'pricing' | 'paymentTerms' | 'paymentTermsAvailability'>;
|
|
2
4
|
export type PublicCreateBookingAppointmentRequest = {
|
|
3
5
|
formId: string;
|
|
4
6
|
serviceId: string;
|
|
@@ -14,6 +16,7 @@ export type PublicCreateBookingAppointmentRequest = {
|
|
|
14
16
|
altchaSolution?: string | null;
|
|
15
17
|
successUrl?: string;
|
|
16
18
|
cancelUrl?: string;
|
|
19
|
+
shownTerms: AppointmentBookingTerms;
|
|
17
20
|
};
|
|
18
21
|
export type PublicBookingAppointmentSummary = {
|
|
19
22
|
id: string;
|
|
@@ -30,6 +33,12 @@ export type PublicBookingCustomerSummary = {
|
|
|
30
33
|
phone: string | null;
|
|
31
34
|
};
|
|
32
35
|
export type PublicCreateBookingAppointmentResponse = {
|
|
36
|
+
type: 'review_required';
|
|
37
|
+
review: AppointmentBookingReview;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'payment_choice_required';
|
|
40
|
+
paymentChoices: PublicAppointmentPaymentChoices;
|
|
41
|
+
} | {
|
|
33
42
|
type: 'booked';
|
|
34
43
|
orderId: string;
|
|
35
44
|
orderNumber: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This entry point MUST NOT import any React components or client-side code.
|
|
4
4
|
* It is safe to use in Server Components and data fetching utilities.
|
|
5
5
|
*/
|
|
6
|
-
export { getBlockDefinition, getBlockRenderKind, listBlockDefinitions, hasBlockDefinition, registerBlockDefinition, type SystemBlockDefinition, type BlockDataLoader, type BlockDescriptor, } from './system/registry';
|
|
6
|
+
export { getBlockDefinition, normalizeBlockContent, getBlockRenderKind, listBlockDefinitions, hasBlockDefinition, registerBlockDefinition, type SystemBlockDefinition, type BlockDataLoader, type BlockDescriptor, } from './system/registry';
|
|
7
7
|
export { blockDesignCapabilityMapFromDefinitions, blockDesignMetadataMapFromDefinitions, declareBlockDesignCapability, declareNoBlockDesignCapability, resolveDeclaredBlockDesignCapability, } from './system/designCapabilities';
|
|
8
8
|
export type { BlockDesignCapabilityDeclaration, NoBlockDesignCapabilityReason, } from './system/designCapabilities';
|
|
9
9
|
export type { AnyBlockRuntimeDefinition, BlockRenderKind, BlockRuntimeDefinition, RuntimeContractsFor, RuntimeDisplay, RuntimeHydration, RuntimeKind, RuntimeRender, RuntimeSource, } from './contracts';
|
|
@@ -87,6 +87,7 @@ export { BACKGROUND_MODES, DEFAULT_BACKGROUND_OVERRIDE, applyBackgroundOverrideC
|
|
|
87
87
|
export { transformSdkBlockToManifest, transformSdkBlockToDefinition, } from './sdkBlockTransform';
|
|
88
88
|
export { rgbColorValue, cssVarValue, backgroundColorStyle, textColorStyle, borderColorStyle, gradientBackgroundStyle, mergeStyles, } from '../../theme-core/src/utils/colorStyles';
|
|
89
89
|
export { parseVideoUrl, getVideoEmbed, getEmbedUrl, getThumbnailUrl, type VideoProvider, type VideoInfo, type EmbedInfo, } from './lib/video';
|
|
90
|
+
export { sanitizeHref } from './primitives/content/utils/sanitizeHref';
|
|
90
91
|
export { resolvedItemSurfaceProps } from './system/runtime/lookSurfaces';
|
|
91
92
|
export { buildPageRenderPlan } from './pageRenderPlan';
|
|
92
93
|
export { toPresentationPage } from './pageRenderAdmission';
|
|
@@ -93,6 +93,7 @@ export declare function buildBlockOverrideProps(input: Readonly<{
|
|
|
93
93
|
themeResources: PageThemeResources;
|
|
94
94
|
dataContext: PageRendererDataContext | undefined;
|
|
95
95
|
imageResolveContext: ResolveImageUrlContext;
|
|
96
|
+
routeMap?: RouteMap;
|
|
96
97
|
}>): BlockOverrideProps;
|
|
97
98
|
/** What this render is *about* — the entry, occurrence or surface in scope. */
|
|
98
99
|
export declare function blockSubjectProps(dataContext: PageRendererDataContext | undefined): {
|
|
@@ -73,6 +73,7 @@ export type BlockOverrideProps<TContent = Record<string, unknown>> = {
|
|
|
73
73
|
/** Supabase project URL (useful for media URL resolution in override components) */
|
|
74
74
|
supabaseUrl?: string;
|
|
75
75
|
/** Full image-resolution context including canonical media sidecars. */
|
|
76
|
+
linkResolveContext?: Pick<import('./system/transforms/registry/core').TransformContext, 'routes' | 'pagesByIdentifier' | 'entriesByIdentifier' | 'stage'>;
|
|
76
77
|
imageResolveContext?: ResolveImageUrlContext;
|
|
77
78
|
/** Block instance ID (null for unsaved blocks) */
|
|
78
79
|
blockId: string | null;
|
|
@@ -169,6 +170,5 @@ export type PageRendererDataContext = {
|
|
|
169
170
|
appointmentServicePathPrefix?: string;
|
|
170
171
|
mailingList?: import('../../core/src/index').MailingListRuntimeContext;
|
|
171
172
|
bookingTimeZone?: string;
|
|
172
|
-
eventRegistrationOverlayEnabled?: boolean;
|
|
173
173
|
};
|
|
174
174
|
export declare function buildPageRendererRootRuntime(dataContext: PageRendererDataContext | undefined): Readonly<Record<string, unknown>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - Allow absolute URLs with protocols: http, https, mailto, tel.
|
|
6
6
|
* - Allow root-relative ("/path") and hash-only ("#section") links.
|
|
7
7
|
* - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
|
|
8
|
-
* executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
|
|
8
|
+
* backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
|
|
9
9
|
* - Preserve percent-encoding from the original normalized input.
|
|
10
10
|
*/
|
|
11
11
|
export declare function sanitizeHref(raw: unknown): string | null;
|
|
@@ -31,7 +31,7 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
31
31
|
readonly description: "Main heading for the registration form";
|
|
32
32
|
readonly required: false;
|
|
33
33
|
readonly multiline: false;
|
|
34
|
-
readonly defaultValue: "
|
|
34
|
+
readonly defaultValue: "";
|
|
35
35
|
}, {
|
|
36
36
|
readonly id: "description";
|
|
37
37
|
readonly type: "richText";
|
|
@@ -99,11 +99,11 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
99
99
|
}, {
|
|
100
100
|
readonly id: "buttonText";
|
|
101
101
|
readonly type: "text";
|
|
102
|
-
readonly label: "
|
|
103
|
-
readonly description: "Text
|
|
102
|
+
readonly label: "Button text";
|
|
103
|
+
readonly description: "Text on the booking button";
|
|
104
104
|
readonly required: false;
|
|
105
105
|
readonly multiline: false;
|
|
106
|
-
readonly defaultValue: "
|
|
106
|
+
readonly defaultValue: "Book your place";
|
|
107
107
|
readonly maxLength: 40;
|
|
108
108
|
}, import("../../../../block-form/src/backend/index").FieldDefinition];
|
|
109
109
|
}>;
|
|
@@ -243,6 +243,10 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
243
243
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
244
244
|
kind: z.ZodLiteral<"other">;
|
|
245
245
|
}, z.core.$strip>>], "kind">>;
|
|
246
|
+
scheduleSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
247
|
+
recurrenceDescription: z.ZodString;
|
|
248
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
249
|
+
}, z.core.$strip>>>;
|
|
246
250
|
id: z.ZodString;
|
|
247
251
|
occurrenceId: z.ZodString;
|
|
248
252
|
seriesId: z.ZodString;
|
|
@@ -732,6 +736,10 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
732
736
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
733
737
|
kind: z.ZodLiteral<"other">;
|
|
734
738
|
}, z.core.$strip>>], "kind">>;
|
|
739
|
+
scheduleSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
740
|
+
recurrenceDescription: z.ZodString;
|
|
741
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
742
|
+
}, z.core.$strip>>>;
|
|
735
743
|
id: z.ZodString;
|
|
736
744
|
occurrenceId: z.ZodString;
|
|
737
745
|
seriesId: z.ZodString;
|
|
@@ -1246,6 +1254,10 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1246
1254
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
1247
1255
|
kind: z.ZodLiteral<"other">;
|
|
1248
1256
|
}, z.core.$strip>>], "kind">>;
|
|
1257
|
+
scheduleSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1258
|
+
recurrenceDescription: z.ZodString;
|
|
1259
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
1260
|
+
}, z.core.$strip>>>;
|
|
1249
1261
|
id: z.ZodString;
|
|
1250
1262
|
occurrenceId: z.ZodString;
|
|
1251
1263
|
seriesId: z.ZodString;
|
|
@@ -1735,6 +1747,10 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1735
1747
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
1736
1748
|
kind: z.ZodLiteral<"other">;
|
|
1737
1749
|
}, z.core.$strip>>], "kind">>;
|
|
1750
|
+
scheduleSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1751
|
+
recurrenceDescription: z.ZodString;
|
|
1752
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
1753
|
+
}, z.core.$strip>>>;
|
|
1738
1754
|
id: z.ZodString;
|
|
1739
1755
|
occurrenceId: z.ZodString;
|
|
1740
1756
|
seriesId: z.ZodString;
|
|
@@ -119,6 +119,11 @@ export type PublicEventBase = {
|
|
|
119
119
|
scheduleScope?: Exclude<EventScheduleScope, 'any'>;
|
|
120
120
|
/** Safe, normalized recurrence evidence when the series owns a recurrence rule. */
|
|
121
121
|
recurrence?: PublicEventRecurrence;
|
|
122
|
+
/** Stored series wording and local clock time, independent of occurrence overrides. */
|
|
123
|
+
scheduleSummary?: Readonly<{
|
|
124
|
+
recurrenceDescription: string;
|
|
125
|
+
startTime: string | null;
|
|
126
|
+
}> | null;
|
|
122
127
|
id: string;
|
|
123
128
|
/** Always the occurrence ID (stable pagination cursor) */
|
|
124
129
|
occurrenceId: string;
|
|
@@ -167,4 +167,6 @@ export declare function buildOfferingsPreviewRenderStates(input: Readonly<{
|
|
|
167
167
|
emptyMessage: string;
|
|
168
168
|
failedMessage: string;
|
|
169
169
|
}>): readonly OfferingsPreviewGroupRenderState[];
|
|
170
|
+
/** Which offerings a site preset row names; one owner for "the course preset means whole-series runs". */
|
|
171
|
+
export declare function sourceFromPresetSummary(preset: BookingOfferingPresetSummary): OfferingsPreviewSource | null;
|
|
170
172
|
export declare function resolveOfferingsPreviewRunPath(run: Pick<PublicWholeSeriesRun, 'eventSeriesId' | 'eventOfferingId'>, routes: readonly OfferingsPreviewRouteCandidate[] | null | undefined): string | null;
|
|
@@ -53,15 +53,27 @@ export type BlockDataLoader = {
|
|
|
53
53
|
*/
|
|
54
54
|
when?: unknown;
|
|
55
55
|
};
|
|
56
|
-
export type SystemBlockDefinition<
|
|
56
|
+
export type SystemBlockDefinition<_TContent = Record<string, unknown>, TRuntime extends AnyBlockRuntimeDefinition | undefined = undefined> = {
|
|
57
57
|
manifest: BlockManifest;
|
|
58
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Normalization owns only these top-level fields. Missing output removes an owned
|
|
60
|
+
* field; shared styles and SDK extension fields outside this set remain untouched.
|
|
61
|
+
* Callbacks transform records only; malformed top-level input stays for admission.
|
|
62
|
+
* Use normalizeBlockContent; normalization never proves content validity.
|
|
63
|
+
*/
|
|
64
|
+
contentNormalizer?: Readonly<{
|
|
65
|
+
fieldIds: readonly string[];
|
|
66
|
+
normalize: (content: Readonly<Record<string, unknown>>) => Readonly<Record<string, unknown>>;
|
|
67
|
+
}>;
|
|
59
68
|
dataSchemas?: Record<string, z.ZodTypeAny>;
|
|
60
69
|
dataLoaders?: Record<string, BlockDataLoader>;
|
|
61
70
|
designCapability?: BlockDesignCapabilityDeclaration;
|
|
62
71
|
designMetadata?: BlockDesignMetadata;
|
|
63
72
|
runtime?: TRuntime;
|
|
64
73
|
};
|
|
74
|
+
/** Preserve other field owners while allowing deliberate removal of owned fields. */
|
|
75
|
+
export declare function normalizeBlockContent(definition: Pick<SystemBlockDefinition, 'contentNormalizer'> | undefined, content: Record<string, unknown>): Record<string, unknown>;
|
|
76
|
+
export declare function normalizeBlockContent(definition: Pick<SystemBlockDefinition, 'contentNormalizer'> | undefined, content: unknown): unknown;
|
|
65
77
|
export type BlockDescriptor = {
|
|
66
78
|
name: string;
|
|
67
79
|
title: string;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Block API Client
|
|
3
|
-
*
|
|
4
|
-
* Factory function for creating a typed API client for block client-side API calls.
|
|
5
|
-
*/
|
|
6
1
|
import { type CalendarWindowPage, type CalendarWindowRequest } from '../../blocks/events/shared/calendarWindow';
|
|
7
2
|
import type { BlockApiConfig, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, BookingSubmitRequest, BookingPackageSubmitRequest, BookingSubmitResponse, EligibleAppointmentPackagesResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, WeeklySlotAvailabilityRequest, WeeklySlotAvailabilityResponse, AvailableDatesRequest, AvailableDatesResponse, BookingServicesResponse, BookingServiceResponse, BookingResourcesResponse, PublicEventsRequest, PublicEvent, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, RegistrationOptionsRequest, EventRegistrationNextStepRequest, EventRegistrationNextStepResponse, RegistrationOptionsResponse, EventRegistrationStatusRequest, EventRegistrationStatusResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, ResolveWaitlistClaimRequest, ResolveWaitlistClaimResponse, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyRequest, DiscountApplyResponse, PublicProductsResponse, ShopCheckoutRequest, ShopCheckoutResponse, UnifiedCheckoutRequest, UnifiedCheckoutResponse, PublicGiftingOffersResponse, CreateGiftingCheckoutRequest, CreateGiftingCheckoutResponse, ClaimGiftCardRequest, ClaimGiftCardResponse, PortalMeResponse, CustomerProfile, CustomerOrder, PortalMeUpdateRequest, CustomerPass, CustomerMembership, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, BookingQuestionsTaskDetail, CustomerEventSeriesRegistration, PortalCredit, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateEventBookingQuestionsRequest, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, MagicLinkResponse, EventGuest, UpdateEventGuestsRequest, NewsletterSubscribeRequest, NewsletterSubscribeResponse } from './types';
|
|
8
3
|
type WithoutSiteId<T> = T extends unknown ? Omit<T, 'siteId'> : never;
|
|
@@ -53,3 +53,5 @@ export { ENDPOINTS, buildPath, appendQuery } from './endpoints';
|
|
|
53
53
|
export type { EndpointDefinition, HttpMethod } from './endpoints';
|
|
54
54
|
export { createDeduplicationCache } from './deduplication';
|
|
55
55
|
export type { DeduplicationCache, DeduplicationOptions } from './deduplication';
|
|
56
|
+
export * from './schemas/events';
|
|
57
|
+
export type { EventBookingOutcome, ConfirmedBookingIdentity } from './types/events';
|