@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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PublicWholeSeriesOffering, ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
|
|
2
|
-
import type { BlockApiClient } from '../../../api';
|
|
3
|
-
import type { WholeSeriesEligibilityResponse } from '../../../api/types';
|
|
4
|
-
import type { WholeSeriesRegistrationWizardActionResult, WholeSeriesRegistrationWizardOptions, EnrollmentResult, EnrollmentStep, FormData, PortalAuthState } from './types';
|
|
5
|
-
import type { PaymentChoice } from './useWholeSeriesEligibility';
|
|
6
|
-
type Membership = Readonly<{
|
|
7
|
-
customerMembershipId: string;
|
|
8
|
-
membershipName: string;
|
|
9
|
-
}>;
|
|
10
|
-
type ActionState = Readonly<{
|
|
11
|
-
api: BlockApiClient;
|
|
12
|
-
selectedRun: PublicWholeSeriesOffering | null;
|
|
13
|
-
pricing: ResolvedWholeSeriesPricingState | null;
|
|
14
|
-
formData: FormData;
|
|
15
|
-
portalAuthState: PortalAuthState;
|
|
16
|
-
eligibility: WholeSeriesEligibilityResponse | null;
|
|
17
|
-
eligibleMemberships: readonly Membership[];
|
|
18
|
-
paymentChoice: PaymentChoice;
|
|
19
|
-
selectedMembershipId: string | null;
|
|
20
|
-
claimToken: string | null;
|
|
21
|
-
hasClaim: boolean;
|
|
22
|
-
altchaSolution: string | null;
|
|
23
|
-
discountCode: string;
|
|
24
|
-
options: WholeSeriesRegistrationWizardOptions;
|
|
25
|
-
}>;
|
|
26
|
-
export declare function useWholeSeriesRegistrationActions(state: ActionState, setStep: (step: EnrollmentStep) => void): {
|
|
27
|
-
errors: Partial<Record<keyof FormData, string>>;
|
|
28
|
-
enrollmentResult: EnrollmentResult | null;
|
|
29
|
-
errorMessage: string;
|
|
30
|
-
reportError: (message: string) => void;
|
|
31
|
-
recordEnrollmentResult: (result: EnrollmentResult) => void;
|
|
32
|
-
handleSubmit: () => Promise<WholeSeriesRegistrationWizardActionResult>;
|
|
33
|
-
handlePaymentContinue: () => Promise<WholeSeriesRegistrationWizardActionResult>;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BlockApiClient } from '../../../api';
|
|
2
|
-
import type { FormData, PortalAuthState } from './types';
|
|
3
|
-
export declare function useWholeSeriesRegistrationPortal(api: BlockApiClient): {
|
|
4
|
-
formData: FormData;
|
|
5
|
-
updateFormData: (updater: FormData | ((current: FormData) => FormData)) => void;
|
|
6
|
-
portalAuthState: PortalAuthState;
|
|
7
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
|
|
2
|
-
import type { WholeSeriesRegistrationClientProps, EnrollmentStep } from './types';
|
|
3
|
-
export type WholeSeriesRegistrationLocation = Readonly<{
|
|
4
|
-
search: string;
|
|
5
|
-
hash: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function getWholeSeriesCheckoutSessionId(location?: WholeSeriesRegistrationLocation): string | null;
|
|
8
|
-
export declare function useWholeSeriesRegistrationSelection(props: WholeSeriesRegistrationClientProps, location?: WholeSeriesRegistrationLocation): {
|
|
9
|
-
scopedRuns: readonly PublicWholeSeriesOffering[];
|
|
10
|
-
step: EnrollmentStep;
|
|
11
|
-
goToStep: (nextStep: EnrollmentStep) => void;
|
|
12
|
-
selectedRun: PublicWholeSeriesOffering | null;
|
|
13
|
-
chooseRun: (run: PublicWholeSeriesOffering) => void;
|
|
14
|
-
selectedPricingOptionId: string | null;
|
|
15
|
-
choosePricingOption: (pricingOptionId: string | null) => void;
|
|
16
|
-
selectedSlidingAmountInput: string;
|
|
17
|
-
changeSlidingAmount: (amount: string) => void;
|
|
18
|
-
selectedRunPricing: Readonly<{
|
|
19
|
-
currency: string;
|
|
20
|
-
display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
|
|
21
|
-
selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
|
|
22
|
-
requiresSelection: boolean;
|
|
23
|
-
selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
|
|
24
|
-
slidingScale: Readonly<{
|
|
25
|
-
minAmount: number;
|
|
26
|
-
maxAmount: number;
|
|
27
|
-
suggestedAmount: number | null;
|
|
28
|
-
}> | null;
|
|
29
|
-
selectedSlidingAmount: number | null;
|
|
30
|
-
selectedPriceAmount: number | null;
|
|
31
|
-
selectedRequiresPayment: boolean;
|
|
32
|
-
hasPaidSelection: boolean;
|
|
33
|
-
hasFreeSelection: boolean;
|
|
34
|
-
}> | null;
|
|
35
|
-
};
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { useBlockApi } from '../../../api';
|
|
2
|
-
import type { UseWaitlistClaimResult } from '../../../shared/useWaitlistClaim';
|
|
3
|
-
import { useDiscountCodeUi } from '../useDiscountCodeUi';
|
|
4
|
-
import type { BookingMode, WholeSeriesRegistrationClientProps, WholeSeriesRegistrationWizardOptions } from './types';
|
|
5
|
-
import { deriveWholeSeriesRegistrationViewState } from './wholeSeriesRegistrationViewState';
|
|
6
|
-
import { useWholeSeriesEligibility } from './useWholeSeriesEligibility';
|
|
7
|
-
import { useWholeSeriesRegistrationActions } from './useWholeSeriesRegistrationActions';
|
|
8
|
-
import { useWholeSeriesRegistrationPortal } from './useWholeSeriesRegistrationPortal';
|
|
9
|
-
import { useWholeSeriesRegistrationSelection } from './useWholeSeriesRegistrationSelection';
|
|
10
|
-
import type { WholeSeriesRegistrationLocation } from './useWholeSeriesRegistrationSelection';
|
|
11
|
-
export declare function useWholeSeriesRegistrationWizard(props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
|
|
12
|
-
handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
|
|
13
|
-
handleRetry: () => void;
|
|
14
|
-
handleBookingModeChange: (mode: BookingMode) => void;
|
|
15
|
-
handleLogout: (() => void) | undefined;
|
|
16
|
-
selectedRunPricingPayload: {
|
|
17
|
-
pricingOptionId?: string;
|
|
18
|
-
selectedSlidingAmount?: number;
|
|
19
|
-
};
|
|
20
|
-
hasRunPayment: boolean;
|
|
21
|
-
canUseMembership: boolean;
|
|
22
|
-
hasPreSelectedRun: boolean;
|
|
23
|
-
wizardSteps: readonly import("./types").EnrollmentStep[];
|
|
24
|
-
currentStepNumber: number;
|
|
25
|
-
totalSteps: number;
|
|
26
|
-
stepLabels: string[];
|
|
27
|
-
showPortalAuthSidebar: boolean;
|
|
28
|
-
waitlistClaim: UseWaitlistClaimResult;
|
|
29
|
-
bookingMode: BookingMode;
|
|
30
|
-
altchaSolution: string | null;
|
|
31
|
-
setAltchaSolution: (solution: string | null) => void;
|
|
32
|
-
showSpamProtection: boolean;
|
|
33
|
-
discountUiOpen: boolean;
|
|
34
|
-
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
35
|
-
discountCode: string;
|
|
36
|
-
setDiscountCode: (code: string) => void;
|
|
37
|
-
discountsAvailable: boolean;
|
|
38
|
-
manualCodeEntryAllowed: boolean;
|
|
39
|
-
discountsAvailableLoading: boolean;
|
|
40
|
-
errors: Partial<Record<keyof import("./types").FormData, string>>;
|
|
41
|
-
enrollmentResult: import("./types").EnrollmentResult | null;
|
|
42
|
-
errorMessage: string;
|
|
43
|
-
reportError: (message: string) => void;
|
|
44
|
-
recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
|
|
45
|
-
handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
|
|
46
|
-
handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
|
|
47
|
-
eligibilityLoading: boolean;
|
|
48
|
-
eligibilityError: string | null;
|
|
49
|
-
runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
|
|
50
|
-
eligibleMemberships: Readonly<{
|
|
51
|
-
customerMembershipId: string;
|
|
52
|
-
membershipName: string;
|
|
53
|
-
}>[];
|
|
54
|
-
paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
|
|
55
|
-
choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
|
|
56
|
-
selectedMembershipId: string | null;
|
|
57
|
-
chooseMembership: (membershipId: string | null) => void;
|
|
58
|
-
formData: import("./types").FormData;
|
|
59
|
-
updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
|
|
60
|
-
portalAuthState: import("./types").PortalAuthState;
|
|
61
|
-
scopedRuns: readonly import("../../../..").PublicCourse[];
|
|
62
|
-
step: import("./types").EnrollmentStep;
|
|
63
|
-
goToStep: (nextStep: import("./types").EnrollmentStep) => void;
|
|
64
|
-
selectedRun: import("../../../..").PublicCourse | null;
|
|
65
|
-
chooseRun: (run: import("../../../..").PublicCourse) => void;
|
|
66
|
-
selectedPricingOptionId: string | null;
|
|
67
|
-
choosePricingOption: (pricingOptionId: string | null) => void;
|
|
68
|
-
selectedSlidingAmountInput: string;
|
|
69
|
-
changeSlidingAmount: (amount: string) => void;
|
|
70
|
-
selectedRunPricing: Readonly<{
|
|
71
|
-
currency: string;
|
|
72
|
-
display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
|
|
73
|
-
selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
|
|
74
|
-
requiresSelection: boolean;
|
|
75
|
-
selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
|
|
76
|
-
slidingScale: Readonly<{
|
|
77
|
-
minAmount: number;
|
|
78
|
-
maxAmount: number;
|
|
79
|
-
suggestedAmount: number | null;
|
|
80
|
-
}> | null;
|
|
81
|
-
selectedSlidingAmount: number | null;
|
|
82
|
-
selectedPriceAmount: number | null;
|
|
83
|
-
selectedRequiresPayment: boolean;
|
|
84
|
-
hasPaidSelection: boolean;
|
|
85
|
-
hasFreeSelection: boolean;
|
|
86
|
-
}> | null;
|
|
87
|
-
api: import("../../../api").BlockApiClient;
|
|
88
|
-
};
|
|
89
|
-
export type WholeSeriesRegistrationWizardDeps = Readonly<{
|
|
90
|
-
readLocation: () => WholeSeriesRegistrationLocation;
|
|
91
|
-
}>;
|
|
92
|
-
export declare function useWholeSeriesRegistrationWizardWithDeps(deps: WholeSeriesRegistrationWizardDeps, props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
|
|
93
|
-
handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
|
|
94
|
-
handleRetry: () => void;
|
|
95
|
-
handleBookingModeChange: (mode: BookingMode) => void;
|
|
96
|
-
handleLogout: (() => void) | undefined;
|
|
97
|
-
selectedRunPricingPayload: {
|
|
98
|
-
pricingOptionId?: string;
|
|
99
|
-
selectedSlidingAmount?: number;
|
|
100
|
-
};
|
|
101
|
-
hasRunPayment: boolean;
|
|
102
|
-
canUseMembership: boolean;
|
|
103
|
-
hasPreSelectedRun: boolean;
|
|
104
|
-
wizardSteps: readonly import("./types").EnrollmentStep[];
|
|
105
|
-
currentStepNumber: number;
|
|
106
|
-
totalSteps: number;
|
|
107
|
-
stepLabels: string[];
|
|
108
|
-
showPortalAuthSidebar: boolean;
|
|
109
|
-
waitlistClaim: UseWaitlistClaimResult;
|
|
110
|
-
bookingMode: BookingMode;
|
|
111
|
-
altchaSolution: string | null;
|
|
112
|
-
setAltchaSolution: (solution: string | null) => void;
|
|
113
|
-
showSpamProtection: boolean;
|
|
114
|
-
discountUiOpen: boolean;
|
|
115
|
-
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
116
|
-
discountCode: string;
|
|
117
|
-
setDiscountCode: (code: string) => void;
|
|
118
|
-
discountsAvailable: boolean;
|
|
119
|
-
manualCodeEntryAllowed: boolean;
|
|
120
|
-
discountsAvailableLoading: boolean;
|
|
121
|
-
errors: Partial<Record<keyof import("./types").FormData, string>>;
|
|
122
|
-
enrollmentResult: import("./types").EnrollmentResult | null;
|
|
123
|
-
errorMessage: string;
|
|
124
|
-
reportError: (message: string) => void;
|
|
125
|
-
recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
|
|
126
|
-
handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
|
|
127
|
-
handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
|
|
128
|
-
eligibilityLoading: boolean;
|
|
129
|
-
eligibilityError: string | null;
|
|
130
|
-
runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
|
|
131
|
-
eligibleMemberships: Readonly<{
|
|
132
|
-
customerMembershipId: string;
|
|
133
|
-
membershipName: string;
|
|
134
|
-
}>[];
|
|
135
|
-
paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
|
|
136
|
-
choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
|
|
137
|
-
selectedMembershipId: string | null;
|
|
138
|
-
chooseMembership: (membershipId: string | null) => void;
|
|
139
|
-
formData: import("./types").FormData;
|
|
140
|
-
updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
|
|
141
|
-
portalAuthState: import("./types").PortalAuthState;
|
|
142
|
-
scopedRuns: readonly import("../../../..").PublicCourse[];
|
|
143
|
-
step: import("./types").EnrollmentStep;
|
|
144
|
-
goToStep: (nextStep: import("./types").EnrollmentStep) => void;
|
|
145
|
-
selectedRun: import("../../../..").PublicCourse | null;
|
|
146
|
-
chooseRun: (run: import("../../../..").PublicCourse) => void;
|
|
147
|
-
selectedPricingOptionId: string | null;
|
|
148
|
-
choosePricingOption: (pricingOptionId: string | null) => void;
|
|
149
|
-
selectedSlidingAmountInput: string;
|
|
150
|
-
changeSlidingAmount: (amount: string) => void;
|
|
151
|
-
selectedRunPricing: Readonly<{
|
|
152
|
-
currency: string;
|
|
153
|
-
display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
|
|
154
|
-
selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
|
|
155
|
-
requiresSelection: boolean;
|
|
156
|
-
selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
|
|
157
|
-
slidingScale: Readonly<{
|
|
158
|
-
minAmount: number;
|
|
159
|
-
maxAmount: number;
|
|
160
|
-
suggestedAmount: number | null;
|
|
161
|
-
}> | null;
|
|
162
|
-
selectedSlidingAmount: number | null;
|
|
163
|
-
selectedPriceAmount: number | null;
|
|
164
|
-
selectedRequiresPayment: boolean;
|
|
165
|
-
hasPaidSelection: boolean;
|
|
166
|
-
hasFreeSelection: boolean;
|
|
167
|
-
}> | null;
|
|
168
|
-
api: import("../../../api").BlockApiClient;
|
|
169
|
-
};
|
|
170
|
-
type WizardParts = Readonly<{
|
|
171
|
-
api: ReturnType<typeof useBlockApi>;
|
|
172
|
-
selection: ReturnType<typeof useWholeSeriesRegistrationSelection>;
|
|
173
|
-
portal: ReturnType<typeof useWholeSeriesRegistrationPortal>;
|
|
174
|
-
eligibility: ReturnType<typeof useWholeSeriesEligibility>;
|
|
175
|
-
actions: ReturnType<typeof useWholeSeriesRegistrationActions>;
|
|
176
|
-
discountUi: ReturnType<typeof useDiscountCodeUi>;
|
|
177
|
-
waitlistClaim: UseWaitlistClaimResult;
|
|
178
|
-
view: ReturnType<typeof deriveWholeSeriesRegistrationViewState>;
|
|
179
|
-
bookingMode: BookingMode;
|
|
180
|
-
setBookingMode: (mode: BookingMode) => void;
|
|
181
|
-
altchaSolution: string | null;
|
|
182
|
-
setAltchaSolution: (solution: string | null) => void;
|
|
183
|
-
anchorId: 'event-registration' | 'course-registration';
|
|
184
|
-
}>;
|
|
185
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
|
|
2
|
-
import type { EnrollmentStep, FormData } from './types';
|
|
3
|
-
import type { useWaitlistClaim } from '../../../shared/useWaitlistClaim';
|
|
4
|
-
type WaitlistClaimState = ReturnType<typeof useWaitlistClaim>;
|
|
5
|
-
export declare function useWholeSeriesWaitlistSelection(input: Readonly<{
|
|
6
|
-
waitlistClaim: WaitlistClaimState;
|
|
7
|
-
scopedRuns: readonly PublicWholeSeriesOffering[];
|
|
8
|
-
step: EnrollmentStep;
|
|
9
|
-
goToStep: (step: EnrollmentStep) => void;
|
|
10
|
-
chooseRun: (run: PublicWholeSeriesOffering) => void;
|
|
11
|
-
updateFormData: (updater: (current: FormData) => FormData) => void;
|
|
12
|
-
reportError: (message: string) => void;
|
|
13
|
-
}>): void;
|
|
14
|
-
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Registration Utilities
|
|
3
|
-
*
|
|
4
|
-
* Formatting and validation helpers for run registration.
|
|
5
|
-
*/
|
|
6
|
-
export { buildCheckoutReturnUrls, formatPrice, validateFormData, } from '../../../shared';
|
|
7
|
-
/**
|
|
8
|
-
* Format a date string to a localized date.
|
|
9
|
-
*
|
|
10
|
-
* @param dateString - ISO 8601 date string
|
|
11
|
-
* @param locale - Optional locale for formatting (defaults to browser locale)
|
|
12
|
-
* @returns Formatted date string (e.g., "Sat, Feb 1, 2026")
|
|
13
|
-
*/
|
|
14
|
-
export declare function formatDate(dateString: string, options?: {
|
|
15
|
-
locale?: string;
|
|
16
|
-
timeZone?: string | null;
|
|
17
|
-
}): string;
|
|
18
|
-
/**
|
|
19
|
-
* Format a date string to a localized time.
|
|
20
|
-
*
|
|
21
|
-
* @param dateString - ISO 8601 date string
|
|
22
|
-
* @param locale - Optional locale for formatting (defaults to browser locale)
|
|
23
|
-
* @returns Formatted time string (e.g., "10:00 AM")
|
|
24
|
-
*/
|
|
25
|
-
export declare function formatTime(dateString: string, options?: {
|
|
26
|
-
locale?: string;
|
|
27
|
-
timeZone?: string | null;
|
|
28
|
-
}): string;
|
|
29
|
-
/**
|
|
30
|
-
* Format a date and time together.
|
|
31
|
-
*
|
|
32
|
-
* @param dateString - ISO 8601 date string
|
|
33
|
-
* @param locale - Optional locale for formatting
|
|
34
|
-
* @returns Formatted date and time string
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatDateTime(dateString: string, options?: {
|
|
37
|
-
locale?: string;
|
|
38
|
-
timeZone?: string | null;
|
|
39
|
-
}): string;
|
|
40
|
-
/**
|
|
41
|
-
* Anchor ID for the registration block, used for scroll targeting.
|
|
42
|
-
*/
|
|
43
|
-
export declare const WHOLE_SERIES_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import type { BlockBookingPaymentTerms } from '../../../../blocks/shared/bookingPaymentTerms';
|
|
2
|
-
import type { PublicTeamMemberSummary } from '../../../../blocks/shared/teamMembers';
|
|
3
|
-
import type { WholeSeriesRegistrationClientProps, EnrollmentResult, FormData } from './types';
|
|
4
|
-
import type { BlockBookingConsent } from '../../../../blocks/shared/bookingConsent';
|
|
5
|
-
export type WholeSeriesRegistrationPricingOptionInput = Readonly<{
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description: string | null;
|
|
9
|
-
priceAmount: number;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
sortOrder: number;
|
|
12
|
-
capacityLimit: number | null;
|
|
13
|
-
saleStartsAt: string | null;
|
|
14
|
-
saleEndsAt: string | null;
|
|
15
|
-
attendanceScope?: 'in_person' | 'online' | 'both' | null;
|
|
16
|
-
}>;
|
|
17
|
-
type WholeSeriesRegistrationPricingBase = Readonly<{
|
|
18
|
-
currency: string;
|
|
19
|
-
paymentTerms: BlockBookingPaymentTerms;
|
|
20
|
-
bookingRequirement: 'none' | 'required';
|
|
21
|
-
}>;
|
|
22
|
-
export type WholeSeriesRegistrationPricingInput = (WholeSeriesRegistrationPricingBase & Readonly<{
|
|
23
|
-
pricingStrategy: 'free';
|
|
24
|
-
}>) | (WholeSeriesRegistrationPricingBase & Readonly<{
|
|
25
|
-
pricingStrategy: 'single';
|
|
26
|
-
amountCents: number;
|
|
27
|
-
}>) | (WholeSeriesRegistrationPricingBase & Readonly<{
|
|
28
|
-
pricingStrategy: 'tiered';
|
|
29
|
-
options: readonly WholeSeriesRegistrationPricingOptionInput[];
|
|
30
|
-
}>) | (WholeSeriesRegistrationPricingBase & Readonly<{
|
|
31
|
-
pricingStrategy: 'sliding_scale';
|
|
32
|
-
minAmountCents: number;
|
|
33
|
-
maxAmountCents: number;
|
|
34
|
-
suggestedAmountCents: number | null;
|
|
35
|
-
}>);
|
|
36
|
-
export type WholeSeriesRegistrationRunInput = Readonly<{
|
|
37
|
-
/** Offering identity owning this run in the public run experience. */
|
|
38
|
-
eventOfferingId: string;
|
|
39
|
-
registrationTarget: Readonly<{
|
|
40
|
-
kind: 'event_series_whole_series';
|
|
41
|
-
eventSeriesId: string;
|
|
42
|
-
}>;
|
|
43
|
-
title: string;
|
|
44
|
-
slug: string;
|
|
45
|
-
description: unknown;
|
|
46
|
-
teamMembers?: readonly PublicTeamMemberSummary[];
|
|
47
|
-
consent: BlockBookingConsent | null;
|
|
48
|
-
registrationOpen: boolean;
|
|
49
|
-
pricing: WholeSeriesRegistrationPricingInput;
|
|
50
|
-
capacity: number | null;
|
|
51
|
-
acceptsMemberships: boolean;
|
|
52
|
-
lifecycleStatus: 'active' | 'draft' | 'cancelled';
|
|
53
|
-
registeredCount: number;
|
|
54
|
-
availableSpots: number | null;
|
|
55
|
-
includedDates: readonly Readonly<{
|
|
56
|
-
id: string;
|
|
57
|
-
startsAt: string;
|
|
58
|
-
endsAt: string;
|
|
59
|
-
timeZone: string;
|
|
60
|
-
capacityOverride?: number | null;
|
|
61
|
-
overrides?: Readonly<Record<string, unknown>> | null;
|
|
62
|
-
}>[];
|
|
63
|
-
venue: Readonly<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
address: string | null;
|
|
67
|
-
}> | null;
|
|
68
|
-
}>;
|
|
69
|
-
export type WholeSeriesRegistrationRun = Readonly<{
|
|
70
|
-
/** Stable dated-offering run identity. */
|
|
71
|
-
id: string;
|
|
72
|
-
title: string;
|
|
73
|
-
slug: string;
|
|
74
|
-
description: unknown;
|
|
75
|
-
registrationOpen: boolean;
|
|
76
|
-
capacity: number | null;
|
|
77
|
-
registeredCount: number;
|
|
78
|
-
availableSpots: number | null;
|
|
79
|
-
includedDates: readonly Readonly<{
|
|
80
|
-
id: string;
|
|
81
|
-
startsAt: string;
|
|
82
|
-
endsAt: string;
|
|
83
|
-
timeZone: string;
|
|
84
|
-
}>[];
|
|
85
|
-
venue: Readonly<{
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
address: string | null;
|
|
89
|
-
}> | null;
|
|
90
|
-
}>;
|
|
91
|
-
export type WholeSeriesRegistrationFlowStatus = Readonly<{
|
|
92
|
-
tag: 'ready';
|
|
93
|
-
}> | Readonly<{
|
|
94
|
-
tag: 'submitting';
|
|
95
|
-
}> | Readonly<{
|
|
96
|
-
tag: 'redirecting';
|
|
97
|
-
}> | Readonly<{
|
|
98
|
-
tag: 'verifying-payment';
|
|
99
|
-
}> | Readonly<{
|
|
100
|
-
tag: 'verifying-timeout';
|
|
101
|
-
message: string;
|
|
102
|
-
}> | Readonly<{
|
|
103
|
-
tag: 'payment-failed';
|
|
104
|
-
message: string;
|
|
105
|
-
}> | Readonly<{
|
|
106
|
-
tag: 'success';
|
|
107
|
-
result: EnrollmentResult;
|
|
108
|
-
}> | Readonly<{
|
|
109
|
-
tag: 'waitlist';
|
|
110
|
-
result: EnrollmentResult;
|
|
111
|
-
}> | Readonly<{
|
|
112
|
-
tag: 'error';
|
|
113
|
-
message: string;
|
|
114
|
-
}>;
|
|
115
|
-
export type WholeSeriesRegistrationFlowView = Readonly<{
|
|
116
|
-
kind: 'empty';
|
|
117
|
-
message: string;
|
|
118
|
-
}> | Readonly<{
|
|
119
|
-
kind: 'unavailable';
|
|
120
|
-
message: string;
|
|
121
|
-
}> | Readonly<{
|
|
122
|
-
kind: 'form';
|
|
123
|
-
}> | Readonly<{
|
|
124
|
-
kind: 'verifying';
|
|
125
|
-
message: string;
|
|
126
|
-
}> | Readonly<{
|
|
127
|
-
kind: 'success';
|
|
128
|
-
result: EnrollmentResult;
|
|
129
|
-
}> | Readonly<{
|
|
130
|
-
kind: 'waitlist';
|
|
131
|
-
result: EnrollmentResult;
|
|
132
|
-
}> | Readonly<{
|
|
133
|
-
kind: 'error';
|
|
134
|
-
message: string;
|
|
135
|
-
}>;
|
|
136
|
-
export type WholeSeriesRegistrationFlowStepId = 'select-run' | 'enter-details' | 'select-booking-method' | 'select-payment';
|
|
137
|
-
export type WholeSeriesRegistrationFlowStep = Readonly<{
|
|
138
|
-
id: WholeSeriesRegistrationFlowStepId;
|
|
139
|
-
state: 'complete' | 'active' | 'available' | 'blocked';
|
|
140
|
-
index: number;
|
|
141
|
-
canEnter: boolean;
|
|
142
|
-
}>;
|
|
143
|
-
export type WholeSeriesRegistrationFlowActionResult = Readonly<{
|
|
144
|
-
ok: true;
|
|
145
|
-
outcome: Readonly<{
|
|
146
|
-
kind: 'state-updated';
|
|
147
|
-
}> | Readonly<{
|
|
148
|
-
kind: 'checkout-redirect';
|
|
149
|
-
checkoutUrl: string;
|
|
150
|
-
}>;
|
|
151
|
-
}> | Readonly<{
|
|
152
|
-
ok: false;
|
|
153
|
-
reason: 'blocked' | 'validation-failed' | 'failed';
|
|
154
|
-
message: string;
|
|
155
|
-
}>;
|
|
156
|
-
export type WholeSeriesRegistrationRunsModel = Readonly<{
|
|
157
|
-
items: readonly WholeSeriesRegistrationRun[];
|
|
158
|
-
scoped: readonly WholeSeriesRegistrationRun[];
|
|
159
|
-
selected: WholeSeriesRegistrationRun | null;
|
|
160
|
-
hasPreSelectedRun: boolean;
|
|
161
|
-
subject: WholeSeriesRegistrationClientProps['subject'];
|
|
162
|
-
}>;
|
|
163
|
-
export type WholeSeriesRegistrationPricingModel = Readonly<{
|
|
164
|
-
currency: string | null;
|
|
165
|
-
display: Readonly<{
|
|
166
|
-
kind: 'free';
|
|
167
|
-
currency: string;
|
|
168
|
-
}> | Readonly<{
|
|
169
|
-
kind: 'exact';
|
|
170
|
-
amountCents: number;
|
|
171
|
-
currency: string;
|
|
172
|
-
}> | Readonly<{
|
|
173
|
-
kind: 'from';
|
|
174
|
-
amountCents: number;
|
|
175
|
-
currency: string;
|
|
176
|
-
}> | Readonly<{
|
|
177
|
-
kind: 'range';
|
|
178
|
-
minAmountCents: number;
|
|
179
|
-
maxAmountCents: number;
|
|
180
|
-
currency: string;
|
|
181
|
-
}> | Readonly<{
|
|
182
|
-
kind: 'unavailable';
|
|
183
|
-
currency: string;
|
|
184
|
-
}> | null;
|
|
185
|
-
options: readonly Readonly<{
|
|
186
|
-
id: string;
|
|
187
|
-
name: string;
|
|
188
|
-
description: string | null;
|
|
189
|
-
amountCents: number;
|
|
190
|
-
}>[];
|
|
191
|
-
selectedOptionId: string | null;
|
|
192
|
-
slidingScale: Readonly<{
|
|
193
|
-
minAmountCents: number;
|
|
194
|
-
maxAmountCents: number;
|
|
195
|
-
suggestedAmountCents: number | null;
|
|
196
|
-
}> | null;
|
|
197
|
-
selectedAmountCents: number | null;
|
|
198
|
-
selectedPriceCents: number | null;
|
|
199
|
-
requiresPayment: boolean;
|
|
200
|
-
selection: Readonly<{
|
|
201
|
-
tag: 'not-required';
|
|
202
|
-
}> | Readonly<{
|
|
203
|
-
tag: 'required';
|
|
204
|
-
}> | Readonly<{
|
|
205
|
-
tag: 'valid';
|
|
206
|
-
}> | Readonly<{
|
|
207
|
-
tag: 'invalid';
|
|
208
|
-
message: string;
|
|
209
|
-
}> | Readonly<{
|
|
210
|
-
tag: 'unavailable';
|
|
211
|
-
}>;
|
|
212
|
-
}>;
|
|
213
|
-
export type WholeSeriesRegistrationPaymentSelection = Readonly<{
|
|
214
|
-
method: 'none';
|
|
215
|
-
}> | Readonly<{
|
|
216
|
-
method: 'card';
|
|
217
|
-
}> | Readonly<{
|
|
218
|
-
method: 'membership';
|
|
219
|
-
membershipId: string | null;
|
|
220
|
-
}>;
|
|
221
|
-
export type WholeSeriesRegistrationPaymentModel = Readonly<{
|
|
222
|
-
required: boolean;
|
|
223
|
-
selection: WholeSeriesRegistrationPaymentSelection;
|
|
224
|
-
canUseMembership: boolean;
|
|
225
|
-
eligibleMemberships: readonly Readonly<{
|
|
226
|
-
id: string;
|
|
227
|
-
name: string;
|
|
228
|
-
}>[];
|
|
229
|
-
eligibility: Readonly<{
|
|
230
|
-
tag: 'idle';
|
|
231
|
-
}> | Readonly<{
|
|
232
|
-
tag: 'loading';
|
|
233
|
-
}> | Readonly<{
|
|
234
|
-
tag: 'loaded';
|
|
235
|
-
}> | Readonly<{
|
|
236
|
-
tag: 'error';
|
|
237
|
-
message: string;
|
|
238
|
-
}>;
|
|
239
|
-
}>;
|
|
240
|
-
export type WholeSeriesRegistrationAvailabilityModel = Readonly<{
|
|
241
|
-
enrollmentOpen: boolean;
|
|
242
|
-
availableSpots: number | null;
|
|
243
|
-
isFull: boolean;
|
|
244
|
-
canJoinWaitlist: boolean;
|
|
245
|
-
message: string | null;
|
|
246
|
-
}>;
|
|
247
|
-
export type WholeSeriesRegistrationSpamProtectionModel = Readonly<{
|
|
248
|
-
enabled: false;
|
|
249
|
-
}> | Readonly<{
|
|
250
|
-
enabled: true;
|
|
251
|
-
provider: 'altcha';
|
|
252
|
-
challenge: Readonly<{
|
|
253
|
-
url: string;
|
|
254
|
-
auto: 'onfocus';
|
|
255
|
-
}>;
|
|
256
|
-
solution: string | null;
|
|
257
|
-
}>;
|
|
258
|
-
export type WholeSeriesRegistrationWaitlistClaimModel = Readonly<{
|
|
259
|
-
tag: 'none';
|
|
260
|
-
}> | Readonly<{
|
|
261
|
-
tag: 'loading';
|
|
262
|
-
}> | Readonly<{
|
|
263
|
-
tag: 'login-required';
|
|
264
|
-
message: string;
|
|
265
|
-
}> | Readonly<{
|
|
266
|
-
tag: 'ready';
|
|
267
|
-
expiresAt: string;
|
|
268
|
-
prefill: Readonly<{
|
|
269
|
-
email: string;
|
|
270
|
-
name: string;
|
|
271
|
-
phone: string | null;
|
|
272
|
-
notes: string | null;
|
|
273
|
-
}>;
|
|
274
|
-
}> | Readonly<{
|
|
275
|
-
tag: 'error';
|
|
276
|
-
message: string;
|
|
277
|
-
}>;
|
|
278
|
-
export type WholeSeriesRegistrationFlowActions = Readonly<{
|
|
279
|
-
selectRun: (runId: string) => void;
|
|
280
|
-
updateRegistrant: (values: FormData) => void;
|
|
281
|
-
selectPricingOption: (pricingOptionId: string | null) => void;
|
|
282
|
-
setSlidingAmountCents: (amount: number | null) => void;
|
|
283
|
-
selectPayment: (selection: WholeSeriesRegistrationPaymentSelection) => void;
|
|
284
|
-
setDiscountCode: (code: string) => void;
|
|
285
|
-
setDiscountOpen: (isOpen: boolean) => void;
|
|
286
|
-
setAltchaSolution: (solution: string | null) => void;
|
|
287
|
-
continue: () => Promise<WholeSeriesRegistrationFlowActionResult>;
|
|
288
|
-
back: () => void;
|
|
289
|
-
submit: () => Promise<WholeSeriesRegistrationFlowActionResult>;
|
|
290
|
-
retry: () => void;
|
|
291
|
-
logout: () => void;
|
|
292
|
-
}>;
|
|
293
|
-
export type HeadlessWholeSeriesRegistrationFlow = Readonly<{
|
|
294
|
-
status: WholeSeriesRegistrationFlowStatus;
|
|
295
|
-
view: WholeSeriesRegistrationFlowView;
|
|
296
|
-
steps: readonly WholeSeriesRegistrationFlowStep[];
|
|
297
|
-
currentStep: WholeSeriesRegistrationFlowStep | null;
|
|
298
|
-
runs: WholeSeriesRegistrationRunsModel;
|
|
299
|
-
registrant: Readonly<{
|
|
300
|
-
values: FormData;
|
|
301
|
-
errors: Partial<Record<keyof FormData, string>>;
|
|
302
|
-
}>;
|
|
303
|
-
pricing: WholeSeriesRegistrationPricingModel;
|
|
304
|
-
payment: WholeSeriesRegistrationPaymentModel;
|
|
305
|
-
discount: Readonly<{
|
|
306
|
-
code: string;
|
|
307
|
-
isOpen: boolean;
|
|
308
|
-
available: boolean;
|
|
309
|
-
manualCodeEntryAllowed: boolean;
|
|
310
|
-
loading: boolean;
|
|
311
|
-
}>;
|
|
312
|
-
availability: WholeSeriesRegistrationAvailabilityModel;
|
|
313
|
-
portalAuth: Readonly<{
|
|
314
|
-
state: 'checking' | 'authenticated' | 'unauthenticated';
|
|
315
|
-
isAuthenticated: boolean;
|
|
316
|
-
}>;
|
|
317
|
-
waitlistClaim: WholeSeriesRegistrationWaitlistClaimModel;
|
|
318
|
-
spamProtection: WholeSeriesRegistrationSpamProtectionModel;
|
|
319
|
-
terminal: Readonly<{
|
|
320
|
-
result: EnrollmentResult | null;
|
|
321
|
-
errorMessage: string;
|
|
322
|
-
}>;
|
|
323
|
-
actions: WholeSeriesRegistrationFlowActions;
|
|
324
|
-
}>;
|
|
325
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
|
|
2
|
-
import type { EnrollmentStep } from './types';
|
|
3
|
-
import type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingModel } from './whole-series-registration.headless.contract';
|
|
4
|
-
export declare function deriveWholeSeriesRegistrationSteps(input: Readonly<{
|
|
5
|
-
wizardSteps: readonly EnrollmentStep[];
|
|
6
|
-
step: EnrollmentStep;
|
|
7
|
-
}>): readonly WholeSeriesRegistrationFlowStep[];
|
|
8
|
-
export declare function resolveWholeSeriesRegistrationStatus(wizard: Readonly<{
|
|
9
|
-
step: EnrollmentStep;
|
|
10
|
-
enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
|
|
11
|
-
errorMessage: string;
|
|
12
|
-
}>): WholeSeriesRegistrationFlowStatus;
|
|
13
|
-
export declare function resolveWholeSeriesRegistrationView(wizard: Readonly<{
|
|
14
|
-
step: EnrollmentStep;
|
|
15
|
-
scopedRunsCount: number;
|
|
16
|
-
selectedRun: Readonly<{
|
|
17
|
-
enrollmentOpen: boolean;
|
|
18
|
-
}> | null;
|
|
19
|
-
enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
|
|
20
|
-
errorMessage: string;
|
|
21
|
-
}>): WholeSeriesRegistrationFlowView;
|
|
22
|
-
export declare function resolveWholeSeriesPricingSelection(pricing: ResolvedWholeSeriesPricingState | null): WholeSeriesRegistrationPricingModel['selection'];
|
|
23
|
-
export declare function resolveWholeSeriesPaymentSelection(input: Readonly<{
|
|
24
|
-
paymentChoice: 'checkout' | 'membership';
|
|
25
|
-
selectedMembershipId: string | null;
|
|
26
|
-
required: boolean;
|
|
27
|
-
}>): WholeSeriesRegistrationPaymentSelection;
|