@riverbankcms/sdk 0.134.0 → 0.135.1
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 +4 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +4 -4
- package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-D0cRoTX1.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +5 -5
- package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +4105 -8035
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +15 -15
- package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
- package/dist/_dts/api/src/bookingOperations.d.ts +111 -161
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
- package/dist/_dts/api/src/bookings.d.ts +5 -9
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +29 -109
- package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
- package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
- package/dist/_dts/api/src/index.d.ts +3 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +85 -5
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -100
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/siteOperations.d.ts +2 -2
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
- package/dist/_dts/blocks/src/client.d.ts +0 -5
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +5 -94
- package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +35 -10
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +99 -59
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -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/constants.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
- 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 +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +20 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +16 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
- package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
- package/dist/_dts/commerce/src/index.d.ts +16 -0
- package/dist/_dts/commerce/src/money.d.ts +122 -0
- package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
- package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
- package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
- package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
- package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
- package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
- package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
- package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
- package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
- package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
- package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
- package/dist/_dts/commerce/src/types/json.d.ts +3 -0
- package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
- package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
- package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
- package/dist/_dts/core/src/branded.d.ts +3 -3
- package/dist/_dts/core/src/event-pricing.d.ts +6 -6
- package/dist/_dts/core/src/participants.d.ts +17 -17
- package/dist/_dts/core/src/rectification.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +890 -2154
- package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
- package/dist/_dts/sdk/src/bookings/types.d.ts +34 -4
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/client/{usePolling-UN4WKnaM.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +13 -27
- package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-BKB0ZxRR.mjs} +3 -3
- package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
- package/dist/client/{accordion-DFXpLvwg.mjs → accordion-KIDsKTwS.mjs} +1 -1
- package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-D96Rmp-5.mjs} +6 -7
- package/dist/client/bookings.mjs +913 -1906
- package/dist/client/{carousel-wjyWTZCh.mjs → carousel-YwUgyL66.mjs} +1 -1
- package/dist/client/{cart-DCwdpA4i.mjs → cart-BbwuNrUT.mjs} +3 -3
- package/dist/client/{checkout-DTDW3l0R.mjs → checkout-hp1ucmEY.mjs} +3 -3
- package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
- package/dist/client/client.mjs +5109 -9333
- package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
- package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-DU4iNLpo.mjs} +5 -5
- package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-CZuupW8m.mjs} +3 -3
- package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-DPQWwCIi.mjs} +8 -8
- package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-C7oMidwS.mjs} +3 -3
- package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-zEiunlUs.mjs} +4522 -3690
- package/dist/client/{form-CUXfsABE.mjs → form-D2KIyCVJ.mjs} +2 -2
- package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-CK5uChUK.mjs} +2 -2
- package/dist/client/hooks.mjs +459 -714
- package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DLQNH1ln.mjs} +2 -2
- package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-ZuhIG7fZ.mjs} +2 -2
- package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-7hIcGeae.mjs} +3 -3
- package/dist/client/{productList-CttYcS_S.mjs → productList-T4Cii1ot.mjs} +3 -3
- package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-mB0aC_Fi.mjs} +4702 -4458
- package/dist/client/rendering/client.mjs +59617 -62260
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +5389 -9707
- package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-Du5mHgvL.mjs} +2 -2
- package/dist/client/{shop-DXQtMo2O.mjs → shop-B5zAcKZn.mjs} +6 -6
- package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-BKBZB6l5.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
- package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-DYGzEs9D.mjs} +3 -3
- package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-Bphkda8m.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +40 -161
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +40 -161
- package/dist/preview-next/middleware.mjs +40 -161
- package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
- package/dist/{sdk-runtime-Ca5RD78X.mjs → sdk-runtime-BbIC8G4J.mjs} +2 -2
- package/dist/{separator-CMhj6BTi.mjs → separator-CadhAtI7.mjs} +1 -1
- package/dist/server/components.mjs +558 -2962
- package/dist/server/config-validation.mjs +459 -714
- package/dist/server/config.mjs +459 -714
- package/dist/server/data.mjs +459 -714
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +572 -2976
- package/dist/server/page-converter.mjs +360 -582
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +569 -2879
- package/dist/server/rendering.mjs +558 -2962
- package/dist/server/routing.mjs +603 -1087
- package/dist/server/server.mjs +473 -728
- package/dist/server/theme-bridge.mjs +41 -1524
- package/dist/styles/index.css +41 -1348
- package/package.json +1 -1
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
- package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
- package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -135
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -46
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -325
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
- package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
- package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
- package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
- package/dist/client/BookingConsentAgreement-BxgpGEFD.mjs +0 -160
- package/dist/client/WholeSeriesRegistrationWizard-DwtC7bCs.mjs +0 -2546
- package/dist/client/courseRegistration-A-Tg7qw_.mjs +0 -52
- package/dist/client/pricing-Caa0QWzh.mjs +0 -195
|
@@ -3,6 +3,7 @@ import type { SectionStylesContent } from '../fields/boxStyles';
|
|
|
3
3
|
import { type PublicEvent } from './events/shared';
|
|
4
4
|
import { eventRegistrationBlockRuntime } from '../runtime/nodes/event-registration.interactive';
|
|
5
5
|
import type { BlockButtonRole } from '../constants/buttonRoles';
|
|
6
|
+
import type { BlockBookingPaymentTerms } from './shared/bookingPaymentTerms';
|
|
6
7
|
/**
|
|
7
8
|
* Event Registration Block
|
|
8
9
|
*
|
|
@@ -83,26 +84,6 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
83
84
|
readonly ui: {
|
|
84
85
|
readonly intent: "display";
|
|
85
86
|
};
|
|
86
|
-
}, {
|
|
87
|
-
readonly id: "showSessions";
|
|
88
|
-
readonly type: "boolean";
|
|
89
|
-
readonly label: "Show complete schedule";
|
|
90
|
-
readonly description: "Display every session for whole-series registrations";
|
|
91
|
-
readonly required: false;
|
|
92
|
-
readonly defaultValue: true;
|
|
93
|
-
readonly ui: {
|
|
94
|
-
readonly intent: "display";
|
|
95
|
-
};
|
|
96
|
-
}, {
|
|
97
|
-
readonly id: "showPrice";
|
|
98
|
-
readonly type: "boolean";
|
|
99
|
-
readonly label: "Show price";
|
|
100
|
-
readonly description: "Display the whole-series price";
|
|
101
|
-
readonly required: false;
|
|
102
|
-
readonly defaultValue: true;
|
|
103
|
-
readonly ui: {
|
|
104
|
-
readonly intent: "display";
|
|
105
|
-
};
|
|
106
87
|
}, {
|
|
107
88
|
readonly id: "successMessage";
|
|
108
89
|
readonly type: "text";
|
|
@@ -112,24 +93,6 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
112
93
|
readonly multiline: true;
|
|
113
94
|
readonly defaultValue: "Thank you for registering! Check your email for confirmation details.";
|
|
114
95
|
readonly maxLength: 500;
|
|
115
|
-
}, {
|
|
116
|
-
readonly id: "waitlistMessage";
|
|
117
|
-
readonly type: "text";
|
|
118
|
-
readonly label: "Waitlist message";
|
|
119
|
-
readonly description: "Message shown after joining a whole-series waitlist";
|
|
120
|
-
readonly required: false;
|
|
121
|
-
readonly multiline: true;
|
|
122
|
-
readonly defaultValue: "You've been added to the waitlist. We'll email you if a place becomes available.";
|
|
123
|
-
readonly maxLength: 500;
|
|
124
|
-
}, {
|
|
125
|
-
readonly id: "membershipMessage";
|
|
126
|
-
readonly type: "text";
|
|
127
|
-
readonly label: "Membership registration message";
|
|
128
|
-
readonly description: "Message shown when a whole-series place is covered by membership";
|
|
129
|
-
readonly required: false;
|
|
130
|
-
readonly multiline: true;
|
|
131
|
-
readonly defaultValue: "Registered using your membership. Check your email for session details.";
|
|
132
|
-
readonly maxLength: 500;
|
|
133
96
|
}, {
|
|
134
97
|
readonly id: "buttonText";
|
|
135
98
|
readonly type: "text";
|
|
@@ -147,15 +110,157 @@ export type EventRegistrationContent = {
|
|
|
147
110
|
maxTickets?: '1' | '2' | '3' | '5' | '10' | null;
|
|
148
111
|
showVenue?: boolean | null;
|
|
149
112
|
showCapacity?: boolean | null;
|
|
150
|
-
showSessions?: boolean | null;
|
|
151
|
-
showPrice?: boolean | null;
|
|
152
113
|
successMessage?: string | null;
|
|
153
|
-
waitlistMessage?: string | null;
|
|
154
|
-
membershipMessage?: string | null;
|
|
155
114
|
buttonText?: string | null;
|
|
156
115
|
buttonVariant?: BlockButtonRole | null;
|
|
157
116
|
_sectionStyles?: SectionStylesContent;
|
|
158
117
|
};
|
|
118
|
+
export type EventRegistrationOptionsRequest = Readonly<{
|
|
119
|
+
subject: Readonly<{
|
|
120
|
+
kind: 'occurrence';
|
|
121
|
+
occurrenceId: string;
|
|
122
|
+
attendanceMode?: 'in_person' | 'online';
|
|
123
|
+
}> | Readonly<{
|
|
124
|
+
kind: 'wholeSeries';
|
|
125
|
+
eventSeriesId: string;
|
|
126
|
+
attendanceMode?: 'in_person' | 'online';
|
|
127
|
+
}>;
|
|
128
|
+
selections: readonly Readonly<{
|
|
129
|
+
pricingOptionId: string | null;
|
|
130
|
+
quantity: number;
|
|
131
|
+
}>[];
|
|
132
|
+
selectedSlidingAmount?: number;
|
|
133
|
+
}>;
|
|
134
|
+
export type EventRegistrationOptionsResponse = Readonly<{
|
|
135
|
+
subject: Readonly<{
|
|
136
|
+
kind: 'occurrence';
|
|
137
|
+
occurrenceId: string;
|
|
138
|
+
}> | Readonly<{
|
|
139
|
+
kind: 'wholeSeries';
|
|
140
|
+
eventSeriesId: string;
|
|
141
|
+
}>;
|
|
142
|
+
availability: Readonly<{
|
|
143
|
+
kind: 'available';
|
|
144
|
+
remainingPlaces: number | null;
|
|
145
|
+
waitlistEnabled: boolean;
|
|
146
|
+
}> | Readonly<{
|
|
147
|
+
kind: 'waitlist';
|
|
148
|
+
remainingPlaces: 0;
|
|
149
|
+
waitlistEnabled: true;
|
|
150
|
+
}> | Readonly<{
|
|
151
|
+
kind: 'unavailable';
|
|
152
|
+
reason: 'full' | 'bookingClosed' | 'paymentUnavailable' | 'selectionRequired';
|
|
153
|
+
remainingPlaces: number | null;
|
|
154
|
+
waitlistEnabled: boolean;
|
|
155
|
+
}>;
|
|
156
|
+
registration: Readonly<{
|
|
157
|
+
kind: 'none';
|
|
158
|
+
}> | Readonly<{
|
|
159
|
+
kind: 'booked';
|
|
160
|
+
}> | Readonly<{
|
|
161
|
+
kind: 'waitlisted';
|
|
162
|
+
}>;
|
|
163
|
+
pricing: Readonly<{
|
|
164
|
+
mode: 'single' | 'ticket_types' | 'sliding_scale';
|
|
165
|
+
currency: string;
|
|
166
|
+
subtotalCents: number;
|
|
167
|
+
requiresPayment: boolean;
|
|
168
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
169
|
+
lines: readonly EventRegistrationOptionLine[];
|
|
170
|
+
options: readonly EventRegistrationPricingOption[];
|
|
171
|
+
}>;
|
|
172
|
+
paymentOptions: readonly EventRegistrationAvailablePaymentOption[];
|
|
173
|
+
customer: Readonly<{
|
|
174
|
+
kind: 'anonymous';
|
|
175
|
+
credit: null;
|
|
176
|
+
}> | Readonly<{
|
|
177
|
+
kind: 'authenticated';
|
|
178
|
+
credit: Readonly<{
|
|
179
|
+
availableCents: number;
|
|
180
|
+
currency: string;
|
|
181
|
+
}> | null;
|
|
182
|
+
}>;
|
|
183
|
+
entitlements: Readonly<{
|
|
184
|
+
requiresLoginForMemberships: boolean;
|
|
185
|
+
requiresLoginForPasses: boolean;
|
|
186
|
+
memberships: readonly EventRegistrationOwnedMembership[];
|
|
187
|
+
passes: readonly EventRegistrationOwnedPass[];
|
|
188
|
+
availableForPurchase: Readonly<{
|
|
189
|
+
passes: readonly EventRegistrationPassProduct[];
|
|
190
|
+
memberships: readonly EventRegistrationMembershipProduct[];
|
|
191
|
+
}>;
|
|
192
|
+
}>;
|
|
193
|
+
}>;
|
|
194
|
+
export type EventRegistrationAvailablePaymentOption = Readonly<{
|
|
195
|
+
kind: 'free';
|
|
196
|
+
}> | Readonly<{
|
|
197
|
+
kind: 'payInFull' | 'deferredManual' | 'instalmentPlan' | 'flexibleBalance';
|
|
198
|
+
amountCents: number;
|
|
199
|
+
currency: string;
|
|
200
|
+
}> | Readonly<{
|
|
201
|
+
kind: 'ownedMembership';
|
|
202
|
+
membershipId: string;
|
|
203
|
+
}> | Readonly<{
|
|
204
|
+
kind: 'ownedPass';
|
|
205
|
+
passId: string;
|
|
206
|
+
}> | Readonly<{
|
|
207
|
+
kind: 'buyMembership' | 'buyPass';
|
|
208
|
+
productId: string;
|
|
209
|
+
}>;
|
|
210
|
+
export type EventRegistrationOptionLine = Readonly<{
|
|
211
|
+
pricingOptionId: string | null;
|
|
212
|
+
label: string;
|
|
213
|
+
description: string | null;
|
|
214
|
+
quantity: number;
|
|
215
|
+
unitPriceCents: number;
|
|
216
|
+
subtotalCents: number;
|
|
217
|
+
}>;
|
|
218
|
+
export type EventRegistrationPricingOption = Readonly<{
|
|
219
|
+
pricingOptionId: string;
|
|
220
|
+
label: string;
|
|
221
|
+
description: string | null;
|
|
222
|
+
unitPriceCents: number;
|
|
223
|
+
sortOrder: number;
|
|
224
|
+
capacityLimit: number | null;
|
|
225
|
+
saleStartsAt: string | null;
|
|
226
|
+
saleEndsAt: string | null;
|
|
227
|
+
attendanceScope: 'in_person' | 'online' | 'both';
|
|
228
|
+
availability: Readonly<{
|
|
229
|
+
kind: 'available';
|
|
230
|
+
remainingPlaces: number | null;
|
|
231
|
+
}> | Readonly<{
|
|
232
|
+
kind: 'unavailable';
|
|
233
|
+
reason: 'inactive' | 'notOnSaleYet' | 'saleEnded' | 'soldOut' | 'attendanceModeUnavailable' | 'overallCapacityUnavailable';
|
|
234
|
+
remainingPlaces: number | null;
|
|
235
|
+
}>;
|
|
236
|
+
}>;
|
|
237
|
+
export type EventRegistrationOwnedMembership = Readonly<{
|
|
238
|
+
customerMembershipId: string;
|
|
239
|
+
membershipName: string;
|
|
240
|
+
}>;
|
|
241
|
+
export type EventRegistrationOwnedPass = Readonly<{
|
|
242
|
+
customerPassId: string;
|
|
243
|
+
passName: string;
|
|
244
|
+
creditsRemaining: number;
|
|
245
|
+
}>;
|
|
246
|
+
export type EventRegistrationPassProduct = Readonly<{
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
description: string | null;
|
|
250
|
+
price: number;
|
|
251
|
+
currency: string;
|
|
252
|
+
creditsTotal: number;
|
|
253
|
+
pricePerCredit: number;
|
|
254
|
+
validDays: number | null;
|
|
255
|
+
}>;
|
|
256
|
+
export type EventRegistrationMembershipProduct = Readonly<{
|
|
257
|
+
id: string;
|
|
258
|
+
name: string;
|
|
259
|
+
description: string | null;
|
|
260
|
+
price: number;
|
|
261
|
+
currency: string;
|
|
262
|
+
interval: 'month' | 'year';
|
|
263
|
+
}>;
|
|
159
264
|
export type { PublicEvent };
|
|
160
265
|
export type { OccurrenceContext } from './event-registration.shared';
|
|
161
266
|
export declare const eventRegistrationBlockDefinition: SystemBlockDefinition<EventRegistrationContent, typeof eventRegistrationBlockRuntime>;
|
|
@@ -82,7 +82,7 @@ export declare const eventPricingModeSchema: z.ZodEnum<{
|
|
|
82
82
|
single: "single";
|
|
83
83
|
ticket_types: "ticket_types";
|
|
84
84
|
}>;
|
|
85
|
-
export declare const
|
|
85
|
+
export declare const publicWholeSeriesPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
86
|
kind: z.ZodLiteral<"free">;
|
|
87
87
|
currency: z.ZodString;
|
|
88
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -93,6 +93,11 @@ export declare const publicCoursePriceDisplaySchema: z.ZodDiscriminatedUnion<[z.
|
|
|
93
93
|
kind: z.ZodLiteral<"from">;
|
|
94
94
|
amount: z.ZodNumber;
|
|
95
95
|
currency: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"range">;
|
|
98
|
+
minAmount: z.ZodNumber;
|
|
99
|
+
maxAmount: z.ZodNumber;
|
|
100
|
+
currency: z.ZodString;
|
|
96
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
97
102
|
kind: z.ZodLiteral<"unavailable">;
|
|
98
103
|
currency: z.ZodString;
|
|
@@ -125,7 +130,7 @@ export declare const publicEventPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
125
130
|
kind: z.ZodLiteral<"external">;
|
|
126
131
|
label: z.ZodString;
|
|
127
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
-
kind: z.ZodLiteral<"
|
|
133
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
129
134
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
130
135
|
kind: z.ZodLiteral<"free">;
|
|
131
136
|
currency: z.ZodString;
|
|
@@ -137,6 +142,11 @@ export declare const publicEventPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
137
142
|
kind: z.ZodLiteral<"from">;
|
|
138
143
|
amount: z.ZodNumber;
|
|
139
144
|
currency: z.ZodString;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
kind: z.ZodLiteral<"range">;
|
|
147
|
+
minAmount: z.ZodNumber;
|
|
148
|
+
maxAmount: z.ZodNumber;
|
|
149
|
+
currency: z.ZodString;
|
|
140
150
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
151
|
kind: z.ZodLiteral<"unavailable">;
|
|
142
152
|
currency: z.ZodString;
|
|
@@ -335,9 +345,9 @@ export declare const publicEventPricingSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
335
345
|
currency: z.ZodString;
|
|
336
346
|
}, z.core.$strip>;
|
|
337
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
-
kind: z.ZodLiteral<"
|
|
348
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
339
349
|
display: z.ZodObject<{
|
|
340
|
-
kind: z.ZodLiteral<"
|
|
350
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
341
351
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
352
|
kind: z.ZodLiteral<"free">;
|
|
343
353
|
currency: z.ZodString;
|
|
@@ -349,6 +359,11 @@ export declare const publicEventPricingSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
349
359
|
kind: z.ZodLiteral<"from">;
|
|
350
360
|
amount: z.ZodNumber;
|
|
351
361
|
currency: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
kind: z.ZodLiteral<"range">;
|
|
364
|
+
minAmount: z.ZodNumber;
|
|
365
|
+
maxAmount: z.ZodNumber;
|
|
366
|
+
currency: z.ZodString;
|
|
352
367
|
}, z.core.$strip>, z.ZodObject<{
|
|
353
368
|
kind: z.ZodLiteral<"unavailable">;
|
|
354
369
|
currency: z.ZodString;
|
|
@@ -391,8 +406,8 @@ export declare const publicEventBookingAvailabilitySchema: z.ZodDiscriminatedUni
|
|
|
391
406
|
*/
|
|
392
407
|
export declare const publicEventSchema: z.ZodObject<{
|
|
393
408
|
bookingScope: z.ZodEnum<{
|
|
394
|
-
single_occurrence: "single_occurrence";
|
|
395
409
|
whole_series: "whole_series";
|
|
410
|
+
single_occurrence: "single_occurrence";
|
|
396
411
|
}>;
|
|
397
412
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
398
413
|
course: "course";
|
|
@@ -882,9 +897,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
882
897
|
currency: z.ZodString;
|
|
883
898
|
}, z.core.$strip>;
|
|
884
899
|
}, z.core.$strip>, z.ZodObject<{
|
|
885
|
-
kind: z.ZodLiteral<"
|
|
900
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
886
901
|
display: z.ZodObject<{
|
|
887
|
-
kind: z.ZodLiteral<"
|
|
902
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
888
903
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
889
904
|
kind: z.ZodLiteral<"free">;
|
|
890
905
|
currency: z.ZodString;
|
|
@@ -896,6 +911,11 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
896
911
|
kind: z.ZodLiteral<"from">;
|
|
897
912
|
amount: z.ZodNumber;
|
|
898
913
|
currency: z.ZodString;
|
|
914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
915
|
+
kind: z.ZodLiteral<"range">;
|
|
916
|
+
minAmount: z.ZodNumber;
|
|
917
|
+
maxAmount: z.ZodNumber;
|
|
918
|
+
currency: z.ZodString;
|
|
899
919
|
}, z.core.$strip>, z.ZodObject<{
|
|
900
920
|
kind: z.ZodLiteral<"unavailable">;
|
|
901
921
|
currency: z.ZodString;
|
|
@@ -1095,8 +1115,8 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1095
1115
|
*/
|
|
1096
1116
|
export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
1097
1117
|
bookingScope: z.ZodEnum<{
|
|
1098
|
-
single_occurrence: "single_occurrence";
|
|
1099
1118
|
whole_series: "whole_series";
|
|
1119
|
+
single_occurrence: "single_occurrence";
|
|
1100
1120
|
}>;
|
|
1101
1121
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1102
1122
|
course: "course";
|
|
@@ -1586,9 +1606,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1586
1606
|
currency: z.ZodString;
|
|
1587
1607
|
}, z.core.$strip>;
|
|
1588
1608
|
}, z.core.$strip>, z.ZodObject<{
|
|
1589
|
-
kind: z.ZodLiteral<"
|
|
1609
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1590
1610
|
display: z.ZodObject<{
|
|
1591
|
-
kind: z.ZodLiteral<"
|
|
1611
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1592
1612
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1593
1613
|
kind: z.ZodLiteral<"free">;
|
|
1594
1614
|
currency: z.ZodString;
|
|
@@ -1600,6 +1620,11 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1600
1620
|
kind: z.ZodLiteral<"from">;
|
|
1601
1621
|
amount: z.ZodNumber;
|
|
1602
1622
|
currency: z.ZodString;
|
|
1623
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1624
|
+
kind: z.ZodLiteral<"range">;
|
|
1625
|
+
minAmount: z.ZodNumber;
|
|
1626
|
+
maxAmount: z.ZodNumber;
|
|
1627
|
+
currency: z.ZodString;
|
|
1603
1628
|
}, z.core.$strip>, z.ZodObject<{
|
|
1604
1629
|
kind: z.ZodLiteral<"unavailable">;
|
|
1605
1630
|
currency: z.ZodString;
|
|
@@ -53,6 +53,9 @@ export type PublicWholeSeriesOffering = {
|
|
|
53
53
|
slug: string;
|
|
54
54
|
/** Rich text description (ProseMirror/TipTap JSON format) */
|
|
55
55
|
description: unknown;
|
|
56
|
+
deliveryMode: 'in_person' | 'online' | 'hybrid';
|
|
57
|
+
waitlistEnabled: boolean;
|
|
58
|
+
requireGuestDetails: boolean;
|
|
56
59
|
teamMembers?: PublicTeamMemberSummary[];
|
|
57
60
|
/** Registration is open if the run has not started yet. */
|
|
58
61
|
enrollmentOpen: boolean;
|
|
@@ -39,8 +39,6 @@ export * from "./appointment-booking";
|
|
|
39
39
|
export * from "./weekly-slot-availability";
|
|
40
40
|
export * from "./event-registration";
|
|
41
41
|
export * from "./event-details";
|
|
42
|
-
export * from "./course-registration";
|
|
43
|
-
export * from "./course-details";
|
|
44
42
|
export * from "./events";
|
|
45
43
|
export * from "./events/recurring-schedule";
|
|
46
44
|
export * from "./embed";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ResolvedInternalLinkEntityType } from '../../types/link';
|
|
2
2
|
import type { PublicEvent } from '../events/shared/types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PublicWholeSeriesOffering } from '../events/whole-series/types';
|
|
4
4
|
export declare const OFFERINGS_PREVIEW_DEFAULT_ITEM_LIMIT = "3";
|
|
5
5
|
export declare const OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT = "Book";
|
|
6
6
|
export declare const OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE = "Nothing scheduled just yet.";
|
|
@@ -95,7 +95,7 @@ export type OfferingsPreviewItem = Readonly<{
|
|
|
95
95
|
event: PublicEvent;
|
|
96
96
|
} | {
|
|
97
97
|
kind: 'course';
|
|
98
|
-
course:
|
|
98
|
+
course: PublicWholeSeriesOffering;
|
|
99
99
|
path: string | null;
|
|
100
100
|
}>;
|
|
101
101
|
export type OfferingsPreviewGroupItemData = Readonly<{
|
|
@@ -160,4 +160,4 @@ export declare function buildOfferingsPreviewRenderStates(input: Readonly<{
|
|
|
160
160
|
emptyMessage: string;
|
|
161
161
|
failedMessage: string;
|
|
162
162
|
}>): readonly OfferingsPreviewGroupRenderState[];
|
|
163
|
-
export declare function resolveOfferingsPreviewCoursePath(course: Pick<
|
|
163
|
+
export declare function resolveOfferingsPreviewCoursePath(course: Pick<PublicWholeSeriesOffering, 'eventSeriesId' | 'eventOfferingId'>, routes: readonly OfferingsPreviewRouteCandidate[] | null | undefined): string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PublicWholeSeriesOffering } from '../events/whole-series/types';
|
|
2
2
|
import type { PublicEvent } from '../events/shared/types';
|
|
3
3
|
type ScheduleOccurrence = Readonly<{
|
|
4
4
|
startsAt: string;
|
|
@@ -24,6 +24,6 @@ export type OfferingsPreviewScheduleSummary = Readonly<{
|
|
|
24
24
|
sessionCount: number;
|
|
25
25
|
}>;
|
|
26
26
|
export declare function deriveEventScheduleSummary(event: Pick<PublicEvent, 'startsAt' | 'endsAt' | 'timeZone'>): OfferingsPreviewScheduleSummary;
|
|
27
|
-
export declare function deriveCourseScheduleSummary(course: Pick<
|
|
28
|
-
export declare function
|
|
27
|
+
export declare function deriveCourseScheduleSummary(course: Pick<PublicWholeSeriesOffering, 'sessions'>): OfferingsPreviewScheduleSummary | null;
|
|
28
|
+
export declare function nextWholeSeriesSessionStart(course: Pick<PublicWholeSeriesOffering, 'sessions'>): string | null;
|
|
29
29
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.contact-newsletter", "block.appointment-booking", "block.weekly-slot-availability", "block.event-registration", "block.event-details", "block.
|
|
1
|
+
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.contact-newsletter", "block.appointment-booking", "block.weekly-slot-availability", "block.event-registration", "block.event-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.recurring-schedule", "block.offerings-preview", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
2
2
|
export type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
3
3
|
export type CustomBlockKind = `custom.${string}`;
|
|
4
4
|
export type BlockKind = SystemBlockKind | CustomBlockKind;
|
|
@@ -34,7 +34,6 @@ export declare const productDetail: (props?: NodeProps | null, children?: Array<
|
|
|
34
34
|
export declare const cart: (props?: NodeProps | null, children?: Array<NodeDefinition | null | undefined> | null, ...mods: NodeModifier[]) => NodeDefinition;
|
|
35
35
|
export declare const checkout: (props?: NodeProps | null, children?: Array<NodeDefinition | null | undefined> | null, ...mods: NodeModifier[]) => NodeDefinition;
|
|
36
36
|
export declare const gifting: (props?: NodeProps | null, children?: Array<NodeDefinition | null | undefined> | null, ...mods: NodeModifier[]) => NodeDefinition;
|
|
37
|
-
export declare const courseRegistration: (props?: NodeProps | null, children?: Array<NodeDefinition | null | undefined> | null, ...mods: NodeModifier[]) => NodeDefinition;
|
|
38
37
|
export declare function bind(from: string, options?: {
|
|
39
38
|
fallback?: unknown;
|
|
40
39
|
transforms?: Array<{
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Factory function for creating a typed API client for block client-side API calls.
|
|
5
5
|
*/
|
|
6
|
-
import type { BlockApiConfig, 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,
|
|
6
|
+
import type { BlockApiConfig, 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, RegistrationOptionsResponse, EventRegistrationStatusRequest, EventRegistrationStatusResponse, 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, EventGuest, UpdateEventGuestsRequest, NewsletterSubscribeRequest, NewsletterSubscribeResponse } from './types';
|
|
7
|
+
type WithoutSiteId<T> = T extends unknown ? Omit<T, 'siteId'> : never;
|
|
7
8
|
type PublicProductCategorySelector = Readonly<{
|
|
8
9
|
kind: 'category';
|
|
9
10
|
productCategoryId: string;
|
|
@@ -45,14 +46,10 @@ export interface BlockApiClient {
|
|
|
45
46
|
getPublicEvents(params?: Omit<PublicEventsRequest, 'siteId'>): Promise<PublicEvent[]>;
|
|
46
47
|
getEventFilters(params?: Pick<PublicEventsRequest, 'categoryIds' | 'venueId' | 'staffMemberId' | 'eventSurface' | 'eventPresets' | 'scheduleScope'>): Promise<EventFiltersResponse>;
|
|
47
48
|
registerForEvent(data: Omit<EventRegisterRequest, 'siteId'>): Promise<EventRegisterResponse>;
|
|
48
|
-
createEventCheckout(data:
|
|
49
|
-
|
|
50
|
-
getEventRegistrationStatus(params:
|
|
51
|
-
registerForWholeSeries(data: Omit<WholeSeriesRegistrationRequest, 'siteId'>): Promise<WholeSeriesRegistrationResponse>;
|
|
52
|
-
checkWholeSeriesEligibility(data: Omit<WholeSeriesEligibilityRequest, 'siteId'>): Promise<WholeSeriesEligibilityResponse>;
|
|
49
|
+
createEventCheckout(data: WithoutSiteId<EventCheckoutRequest>): Promise<EventCheckoutResponse>;
|
|
50
|
+
getRegistrationOptions(data: Omit<RegistrationOptionsRequest, 'siteId'>): Promise<RegistrationOptionsResponse>;
|
|
51
|
+
getEventRegistrationStatus(params: WithoutSiteId<EventRegistrationStatusRequest>): Promise<EventRegistrationStatusResponse>;
|
|
53
52
|
resolveWaitlistClaim(data: Omit<ResolveWaitlistClaimRequest, 'siteId'>): Promise<ResolveWaitlistClaimResponse>;
|
|
54
|
-
createWholeSeriesCheckout(data: Omit<WholeSeriesCheckoutRequest, 'siteId'>): Promise<WholeSeriesCheckoutResponse>;
|
|
55
|
-
getWholeSeriesRegistrationStatus(params: Omit<WholeSeriesRegistrationStatusRequest, 'siteId'>): Promise<WholeSeriesRegistrationStatusResponse>;
|
|
56
53
|
getDiscountsAvailable(data: Omit<DiscountsAvailableRequest, 'siteId'>): Promise<DiscountsAvailableResponse>;
|
|
57
54
|
applyDiscountCode(data: Omit<DiscountApplyRequest, 'siteId'>): Promise<DiscountApplyResponse>;
|
|
58
55
|
getPublicProducts(params?: {
|
|
@@ -84,10 +81,10 @@ export interface BlockApiClient {
|
|
|
84
81
|
updatePortalAppointmentBookingQuestions(appointmentId: string, data: PortalUpdateAppointmentBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
|
|
85
82
|
getPortalEventBookingQuestions(registrationId: string): Promise<BookingQuestionsTaskDetail>;
|
|
86
83
|
updatePortalEventBookingQuestions(registrationId: string, data: PortalUpdateEventBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
|
|
87
|
-
getPortalWholeSeriesRegistrations(): Promise<
|
|
88
|
-
getPortalWholeSeriesBookingQuestions(
|
|
89
|
-
updatePortalWholeSeriesBookingQuestions(
|
|
90
|
-
cancelWholeSeriesRegistration(
|
|
84
|
+
getPortalWholeSeriesRegistrations(): Promise<CustomerEventSeriesRegistration[]>;
|
|
85
|
+
getPortalWholeSeriesBookingQuestions(registrationId: string): Promise<BookingQuestionsTaskDetail>;
|
|
86
|
+
updatePortalWholeSeriesBookingQuestions(registrationId: string, data: PortalUpdateWholeSeriesBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
|
|
87
|
+
cancelWholeSeriesRegistration(registrationId: string, options?: PortalCancelWholeSeriesRegistrationRequest): Promise<PortalCancelWholeSeriesRegistrationResult>;
|
|
91
88
|
cancelAppointment(appointmentId: string, options?: PortalCancelAppointmentRequest): Promise<PortalCancelAppointmentResult>;
|
|
92
89
|
rescheduleAppointment(appointmentId: string, data: PortalRescheduleAppointmentRequest): Promise<PortalRescheduleAppointmentResponse>;
|
|
93
90
|
cancelEventRegistration(registrationId: string, options?: PortalCancelEventRegistrationRequest): Promise<PortalCancelEventRegistrationResult>;
|
|
@@ -92,7 +92,7 @@ export declare const EVENTS: {
|
|
|
92
92
|
path: string;
|
|
93
93
|
method: "POST";
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
registrationOptions: {
|
|
96
96
|
path: string;
|
|
97
97
|
method: "POST";
|
|
98
98
|
authScope: "portal";
|
|
@@ -107,32 +107,11 @@ export declare const WHOLE_SERIES: {
|
|
|
107
107
|
path: string;
|
|
108
108
|
method: "GET";
|
|
109
109
|
};
|
|
110
|
-
enroll: {
|
|
111
|
-
path: string;
|
|
112
|
-
method: "POST";
|
|
113
|
-
authScope: "portal";
|
|
114
|
-
skipPreviewStage: true;
|
|
115
|
-
};
|
|
116
|
-
checkout: {
|
|
117
|
-
path: string;
|
|
118
|
-
method: "POST";
|
|
119
|
-
authScope: "portal";
|
|
120
|
-
};
|
|
121
|
-
checkEligibility: {
|
|
122
|
-
path: string;
|
|
123
|
-
method: "POST";
|
|
124
|
-
authScope: "portal";
|
|
125
|
-
};
|
|
126
110
|
waitlistClaimResolve: {
|
|
127
111
|
path: string;
|
|
128
112
|
method: "POST";
|
|
129
113
|
authScope: "portal";
|
|
130
114
|
};
|
|
131
|
-
registrationStatus: {
|
|
132
|
-
path: string;
|
|
133
|
-
method: "GET";
|
|
134
|
-
authScope: "portal";
|
|
135
|
-
};
|
|
136
115
|
};
|
|
137
116
|
export declare const SHOP: {
|
|
138
117
|
listProducts: {
|
|
@@ -440,7 +419,7 @@ export declare const ENDPOINTS: {
|
|
|
440
419
|
path: string;
|
|
441
420
|
method: "POST";
|
|
442
421
|
};
|
|
443
|
-
|
|
422
|
+
registrationOptions: {
|
|
444
423
|
path: string;
|
|
445
424
|
method: "POST";
|
|
446
425
|
authScope: "portal";
|
|
@@ -455,32 +434,11 @@ export declare const ENDPOINTS: {
|
|
|
455
434
|
path: string;
|
|
456
435
|
method: "GET";
|
|
457
436
|
};
|
|
458
|
-
enroll: {
|
|
459
|
-
path: string;
|
|
460
|
-
method: "POST";
|
|
461
|
-
authScope: "portal";
|
|
462
|
-
skipPreviewStage: true;
|
|
463
|
-
};
|
|
464
|
-
checkout: {
|
|
465
|
-
path: string;
|
|
466
|
-
method: "POST";
|
|
467
|
-
authScope: "portal";
|
|
468
|
-
};
|
|
469
|
-
checkEligibility: {
|
|
470
|
-
path: string;
|
|
471
|
-
method: "POST";
|
|
472
|
-
authScope: "portal";
|
|
473
|
-
};
|
|
474
437
|
waitlistClaimResolve: {
|
|
475
438
|
path: string;
|
|
476
439
|
method: "POST";
|
|
477
440
|
authScope: "portal";
|
|
478
441
|
};
|
|
479
|
-
registrationStatus: {
|
|
480
|
-
path: string;
|
|
481
|
-
method: "GET";
|
|
482
|
-
authScope: "portal";
|
|
483
|
-
};
|
|
484
442
|
};
|
|
485
443
|
readonly shop: {
|
|
486
444
|
listProducts: {
|
|
@@ -43,7 +43,7 @@ export { createBlockApi, BlockApiError } from './client';
|
|
|
43
43
|
export type { BlockApiClient } from './client';
|
|
44
44
|
export { BlockApiProvider, useBlockApi, useBlockApiOptional } from './context';
|
|
45
45
|
export type { BlockApiProviderProps } from './context';
|
|
46
|
-
export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, PricingType, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, PaymentMethod,
|
|
46
|
+
export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, PricingType, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, PaymentMethod, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderFilter, CustomerOrderItem, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, CustomerOrderRefund, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, EventTicketBreakdownLine, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerEventSeriesRegistration, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalWholeSeriesBookingQuestionsResponse, PortalCreateWholeSeriesBookingQuestionsUploadUrlRequest, PortalCreateWholeSeriesBookingQuestionsUploadUrlResponse, PortalFinalizeWholeSeriesBookingQuestionsUploadRequest, PortalFinalizeWholeSeriesBookingQuestionsUploadResponse, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, } from './types';
|
|
47
47
|
export { discountAvailabilityAllowsManualEntry, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, } from './types';
|
|
48
48
|
export type { BookingQuestionsDocumentAnswerValue } from '../../../portal/types';
|
|
49
49
|
export { deriveCreditProductLabels, getCreditProductCreditUnit, getCreditProductTypeLabel, getPortalCreditProductCreditNoun, } from './creditProducts';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Part of the block API client type surface; re-exported from `../types`.
|
|
5
5
|
*/
|
|
6
|
-
export type DirectCheckoutCollectionOptionKind = "upfront" | "deferred_manual" | "flexible_balance";
|
|
6
|
+
export type DirectCheckoutCollectionOptionKind = "upfront" | "deferred_manual" | "instalment_plan" | "flexible_balance";
|
|
7
7
|
/** API key auth for SDK sites (bld_live_sk_*) */
|
|
8
8
|
export type ApiKeyAuth = {
|
|
9
9
|
type: "api-key";
|