@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
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DiscountContext } from '../../api/types';
|
|
2
|
-
import type { EventTicketSelectionLine, EventRegistrationClientProps, FormData, Guest, GuestErrors, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult, RegistrationStep } from './types';
|
|
2
|
+
import type { EventTicketSelectionLine, EventRegistrationClientProps, EligibilityData, FormData, Guest, GuestErrors, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult, RegistrationStep } from './types';
|
|
3
3
|
import { usePortalAuth, useEligibility, useExistingEventRegistration } from './hooks';
|
|
4
4
|
import { useWaitlistClaim } from '../../shared/useWaitlistClaim';
|
|
5
5
|
import { useEventRegistrationStripeReturn } from './useEventRegistrationStripeReturn';
|
|
@@ -18,6 +18,7 @@ export type UseEventRegistrationWizardOptions = Readonly<{
|
|
|
18
18
|
occurrenceContext: EventRegistrationClientProps['occurrenceContext'];
|
|
19
19
|
subject?: EventRegistrationClientProps['subject'];
|
|
20
20
|
events: PublicEvent[];
|
|
21
|
+
wholeSeriesOfferings?: EventRegistrationClientProps['wholeSeriesOfferings'];
|
|
21
22
|
maxTicketsNum: number;
|
|
22
23
|
}>;
|
|
23
24
|
export type EventRegistrationWizardDeps = Readonly<{
|
|
@@ -42,7 +43,7 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
42
43
|
overrides?: Record<string, unknown> | null | undefined;
|
|
43
44
|
} | null | undefined;
|
|
44
45
|
registrationTarget: Readonly<{
|
|
45
|
-
|
|
46
|
+
subject: import("./types").RegistrationSubject;
|
|
46
47
|
selectedEventId: string | null;
|
|
47
48
|
}> | null;
|
|
48
49
|
subject: import("./eventScope").EventRegistrationPageSurfaceSubject | null | undefined;
|
|
@@ -114,12 +115,19 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
|
|
|
114
115
|
paymentSelection: PaymentSelection;
|
|
115
116
|
isMembershipFastTrack: boolean;
|
|
116
117
|
waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
|
|
117
|
-
eligibility:
|
|
118
|
+
eligibility: EligibilityData | null;
|
|
118
119
|
eligibilityLoading: boolean;
|
|
119
120
|
eligibilityError: string | null;
|
|
120
121
|
existingRegistration: import("../../api").CustomerEventRegistration | null;
|
|
121
122
|
existingRegistrationLoading: boolean;
|
|
122
123
|
existingRegistrationState: import("./hooks.state").ExistingRegistrationLookupState;
|
|
124
|
+
registrationState: Readonly<{
|
|
125
|
+
kind: "none";
|
|
126
|
+
}> | Readonly<{
|
|
127
|
+
kind: "booked";
|
|
128
|
+
}> | Readonly<{
|
|
129
|
+
kind: "waitlisted";
|
|
130
|
+
}>;
|
|
123
131
|
hasEligibility: boolean;
|
|
124
132
|
hasMembershipEligibility: boolean;
|
|
125
133
|
requireGuestDetails: boolean;
|
|
@@ -155,7 +163,7 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
155
163
|
overrides?: Record<string, unknown> | null | undefined;
|
|
156
164
|
} | null | undefined;
|
|
157
165
|
registrationTarget: Readonly<{
|
|
158
|
-
|
|
166
|
+
subject: import("./types").RegistrationSubject;
|
|
159
167
|
selectedEventId: string | null;
|
|
160
168
|
}> | null;
|
|
161
169
|
subject: import("./eventScope").EventRegistrationPageSurfaceSubject | null | undefined;
|
|
@@ -227,12 +235,19 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
|
|
|
227
235
|
paymentSelection: PaymentSelection;
|
|
228
236
|
isMembershipFastTrack: boolean;
|
|
229
237
|
waitlistClaim: import("../../shared/useWaitlistClaim").UseWaitlistClaimResult;
|
|
230
|
-
eligibility:
|
|
238
|
+
eligibility: EligibilityData | null;
|
|
231
239
|
eligibilityLoading: boolean;
|
|
232
240
|
eligibilityError: string | null;
|
|
233
241
|
existingRegistration: import("../../api").CustomerEventRegistration | null;
|
|
234
242
|
existingRegistrationLoading: boolean;
|
|
235
243
|
existingRegistrationState: import("./hooks.state").ExistingRegistrationLookupState;
|
|
244
|
+
registrationState: Readonly<{
|
|
245
|
+
kind: "none";
|
|
246
|
+
}> | Readonly<{
|
|
247
|
+
kind: "booked";
|
|
248
|
+
}> | Readonly<{
|
|
249
|
+
kind: "waitlisted";
|
|
250
|
+
}>;
|
|
236
251
|
hasEligibility: boolean;
|
|
237
252
|
hasMembershipEligibility: boolean;
|
|
238
253
|
requireGuestDetails: boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
import type { ResolveWaitlistClaimResponse } from '../../api/types';
|
|
3
|
+
import type { EventTicketSelectionLine, FormData, Guest, RegistrationEvent, RegistrationStep } from './types';
|
|
4
|
+
export type WaitlistClaimRestorationSetters = Readonly<{
|
|
5
|
+
setErrorMessage: Dispatch<SetStateAction<string>>;
|
|
6
|
+
setStep: (step: RegistrationStep) => void;
|
|
7
|
+
setSelectedEvent: Dispatch<SetStateAction<RegistrationEvent | null>>;
|
|
8
|
+
setAttendanceMode: Dispatch<SetStateAction<'in_person' | 'online' | null>>;
|
|
9
|
+
setTicketSelections: Dispatch<SetStateAction<EventTicketSelectionLine[]>>;
|
|
10
|
+
setSlidingAmountInput: Dispatch<SetStateAction<string>>;
|
|
11
|
+
setTicketsCount: (count: number) => void;
|
|
12
|
+
setFormData: Dispatch<SetStateAction<FormData>>;
|
|
13
|
+
setGuests: Dispatch<SetStateAction<Guest[]>>;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function useWaitlistClaimRestoration(input: Readonly<{
|
|
16
|
+
claim: ResolveWaitlistClaimResponse | null;
|
|
17
|
+
scopedEvents: readonly RegistrationEvent[];
|
|
18
|
+
occurrenceContextId?: string;
|
|
19
|
+
setters: WaitlistClaimRestorationSetters;
|
|
20
|
+
}>): void;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RegistrationOptionsResponse } from '../../api/types';
|
|
2
2
|
import type { EligibilityData, EligibilityEventTicketType, PublicEvent, PublicEventTicketType, RegistrationEvent } from './types';
|
|
3
3
|
export declare const DEFAULT_EVENT_CURRENCY = "usd";
|
|
4
|
+
export declare function getPortalSubjectEmail(profile: Readonly<{
|
|
5
|
+
email: string;
|
|
6
|
+
}> | null): string | null;
|
|
4
7
|
export type SelectableEventTicketType = EligibilityEventTicketType | PublicEventTicketType;
|
|
5
8
|
type TicketTypeSourceEvent = PublicEvent | RegistrationEvent;
|
|
6
9
|
/**
|
|
@@ -24,15 +27,6 @@ export declare function formatEventDateTime(isoTimestamp: string, options?: {
|
|
|
24
27
|
timeZone?: string | null;
|
|
25
28
|
locale?: string;
|
|
26
29
|
}): string;
|
|
27
|
-
/**
|
|
28
|
-
* Build the registration API endpoint URL
|
|
29
|
-
*
|
|
30
|
-
* @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
|
|
31
|
-
* @param siteId - The site ID
|
|
32
|
-
* @param customEndpoint - Optional custom endpoint override
|
|
33
|
-
* @returns The full API endpoint URL
|
|
34
|
-
*/
|
|
35
|
-
export declare function buildRegistrationEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
|
|
36
30
|
export { formatPrice } from '../../shared';
|
|
37
31
|
/** Tooltip text shown when pass/membership redemptions are unavailable for multi-ticket bookings. */
|
|
38
32
|
export declare const ENTITLEMENT_SINGLE_TICKET_TOOLTIP = "Only available for single-ticket bookings";
|
|
@@ -51,31 +45,7 @@ export declare function areEntitlementsDisabledForTicketCount(ticketsCount: numb
|
|
|
51
45
|
* @param creditsRemaining - Credits on the pass before this booking, if known
|
|
52
46
|
*/
|
|
53
47
|
export declare function formatPassCreditUsageLabel(creditsRemaining: number | null | undefined): string;
|
|
54
|
-
|
|
55
|
-
* Build the eligibility check endpoint URL
|
|
56
|
-
*
|
|
57
|
-
* @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
|
|
58
|
-
* @param siteId - The site ID
|
|
59
|
-
* @param customEndpoint - Optional custom endpoint override
|
|
60
|
-
* @returns The full API endpoint URL
|
|
61
|
-
*/
|
|
62
|
-
export declare function buildEligibilityEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
|
|
63
|
-
/**
|
|
64
|
-
* Build the checkout endpoint URL
|
|
65
|
-
*
|
|
66
|
-
* @param apiBaseUrl - The dashboard API base URL (e.g., "http://localhost:4000/api")
|
|
67
|
-
* @param siteId - The site ID
|
|
68
|
-
* @param customEndpoint - Optional custom endpoint override
|
|
69
|
-
* @returns The full API endpoint URL
|
|
70
|
-
*/
|
|
71
|
-
export declare function buildCheckoutEndpoint(apiBaseUrl: string, siteId: string, customEndpoint?: string): string;
|
|
72
|
-
/**
|
|
73
|
-
* Transform API eligibility response to internal eligibility data.
|
|
74
|
-
*
|
|
75
|
-
* @param response - The raw API response from checkEligibility
|
|
76
|
-
* @returns Transformed eligibility data for component use
|
|
77
|
-
*/
|
|
78
|
-
export declare function transformEligibilityResponse(response: EligibilityCheckResponse): EligibilityData;
|
|
48
|
+
export declare function transformRegistrationOptionsResponse(response: RegistrationOptionsResponse): EligibilityData;
|
|
79
49
|
export declare function getTicketTypeAvailabilityLabel(ticketType: Pick<SelectableEventTicketType, 'availability'>): string | null;
|
|
80
50
|
export declare function getVisibleTicketTypes(input: {
|
|
81
51
|
event: TicketTypeSourceEvent | null;
|
|
@@ -89,24 +59,3 @@ export declare function findSelectedTicketType(input: {
|
|
|
89
59
|
selectedTicketTypeId: string | null;
|
|
90
60
|
selectedAttendanceMode?: 'in_person' | 'online' | null;
|
|
91
61
|
}): SelectableEventTicketType | null;
|
|
92
|
-
/**
|
|
93
|
-
* Check if card payment is the only available option.
|
|
94
|
-
*
|
|
95
|
-
* Returns true when:
|
|
96
|
-
* - Event requires payment (not free)
|
|
97
|
-
* - User can pay directly (card payment enabled)
|
|
98
|
-
* - User has no eligible passes
|
|
99
|
-
* - User has no eligible memberships
|
|
100
|
-
* - No passes are available for purchase (upsells)
|
|
101
|
-
* - No memberships are available for purchase (upsells)
|
|
102
|
-
*
|
|
103
|
-
* Used to pre-select stripe in PaymentSelectionStep when there's only one option.
|
|
104
|
-
*/
|
|
105
|
-
export declare function isOnlyCardPaymentAvailable(eligibility: EligibilityData | null): boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Like `isOnlyCardPaymentAvailable`, but accounts for ticket-count rules.
|
|
108
|
-
*
|
|
109
|
-
* Passes/memberships (and pass/membership bundles) are disabled for multi-ticket bookings,
|
|
110
|
-
* so they shouldn't prevent us auto-selecting card when they're visible-but-disabled.
|
|
111
|
-
*/
|
|
112
|
-
export declare function isOnlyCardPaymentAvailableForTicketCount(eligibility: EligibilityData | null, ticketsCount: number): boolean;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ResolveWaitlistClaimResponse } from '../../api/types';
|
|
2
|
+
import type { EventTicketSelectionLine, RegistrationEvent } from './types';
|
|
3
|
+
export type WaitlistClaimRestoration = Readonly<{
|
|
4
|
+
ok: false;
|
|
5
|
+
message: string;
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
ok: true;
|
|
8
|
+
event: RegistrationEvent | null;
|
|
9
|
+
attendanceMode: 'in_person' | 'online';
|
|
10
|
+
ticketSelections: readonly EventTicketSelectionLine[];
|
|
11
|
+
ticketsCount: number;
|
|
12
|
+
slidingAmountInput: string | null;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function resolveWaitlistClaimRestoration(input: Readonly<{
|
|
15
|
+
claim: ResolveWaitlistClaimResponse;
|
|
16
|
+
scopedEvents: readonly RegistrationEvent[];
|
|
17
|
+
occurrenceContextId?: string;
|
|
18
|
+
}>): WaitlistClaimRestoration;
|
|
19
|
+
export declare function resolveClaimedTicketSelections(claim: ResolveWaitlistClaimResponse | null): readonly EventTicketSelectionLine[] | null;
|
|
20
|
+
export declare function resolveClaimTicketCount(claim: ResolveWaitlistClaimResponse | null, fallback: number): number;
|
|
@@ -26,11 +26,7 @@ export type EventRegistrationSourceProps = Readonly<{
|
|
|
26
26
|
maxTickets?: string | null;
|
|
27
27
|
showVenue?: boolean;
|
|
28
28
|
showCapacity?: boolean;
|
|
29
|
-
showSessions?: boolean;
|
|
30
|
-
showPrice?: boolean;
|
|
31
29
|
successMessage?: string;
|
|
32
|
-
waitlistMessage?: string;
|
|
33
|
-
membershipMessage?: string;
|
|
34
30
|
buttonVariant?: BlockButtonRole;
|
|
35
31
|
overlayEnabled?: boolean;
|
|
36
32
|
spamProtectionEnabled?: boolean;
|
|
@@ -54,7 +50,7 @@ export type EventRegistrationDisplay = Readonly<{
|
|
|
54
50
|
titleText: string;
|
|
55
51
|
bodyText: string;
|
|
56
52
|
}>;
|
|
57
|
-
export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | '
|
|
53
|
+
export type EventRegistrationHydration = Readonly<Omit<InternalEventRegistrationClientProps, 'siteId' | 'stage' | 'buttonText' | 'className'>>;
|
|
58
54
|
type EventRegistrationIslandMeta = Readonly<{
|
|
59
55
|
siteId?: string;
|
|
60
56
|
apiBaseUrl?: string;
|
|
@@ -82,11 +78,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
82
78
|
maxTickets?: string | null;
|
|
83
79
|
showVenue?: boolean;
|
|
84
80
|
showCapacity?: boolean;
|
|
85
|
-
showSessions?: boolean;
|
|
86
|
-
showPrice?: boolean;
|
|
87
81
|
successMessage?: string;
|
|
88
|
-
waitlistMessage?: string;
|
|
89
|
-
membershipMessage?: string;
|
|
90
82
|
buttonVariant?: BlockButtonRole;
|
|
91
83
|
overlayEnabled?: boolean;
|
|
92
84
|
spamProtectionEnabled?: boolean;
|
|
@@ -100,7 +92,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
100
92
|
}> | null;
|
|
101
93
|
}>) => Readonly<{
|
|
102
94
|
display: EventRegistrationDisplay;
|
|
103
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
95
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
104
96
|
}>;
|
|
105
97
|
contracts: Readonly<{
|
|
106
98
|
source: Readonly<{
|
|
@@ -120,11 +112,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
120
112
|
maxTickets?: string | null;
|
|
121
113
|
showVenue?: boolean;
|
|
122
114
|
showCapacity?: boolean;
|
|
123
|
-
showSessions?: boolean;
|
|
124
|
-
showPrice?: boolean;
|
|
125
115
|
successMessage?: string;
|
|
126
|
-
waitlistMessage?: string;
|
|
127
|
-
membershipMessage?: string;
|
|
128
116
|
buttonVariant?: BlockButtonRole;
|
|
129
117
|
overlayEnabled?: boolean;
|
|
130
118
|
spamProtectionEnabled?: boolean;
|
|
@@ -153,11 +141,7 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
153
141
|
maxTickets?: string | null;
|
|
154
142
|
showVenue?: boolean;
|
|
155
143
|
showCapacity?: boolean;
|
|
156
|
-
showSessions?: boolean;
|
|
157
|
-
showPrice?: boolean;
|
|
158
144
|
successMessage?: string;
|
|
159
|
-
waitlistMessage?: string;
|
|
160
|
-
membershipMessage?: string;
|
|
161
145
|
buttonVariant?: BlockButtonRole;
|
|
162
146
|
overlayEnabled?: boolean;
|
|
163
147
|
spamProtectionEnabled?: boolean;
|
|
@@ -174,11 +158,11 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
174
158
|
render: Readonly<{
|
|
175
159
|
encode: (value: Readonly<{
|
|
176
160
|
display: EventRegistrationDisplay;
|
|
177
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
161
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
178
162
|
}>) => unknown;
|
|
179
163
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
180
164
|
display: EventRegistrationDisplay;
|
|
181
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
165
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
182
166
|
}>>;
|
|
183
167
|
}>;
|
|
184
168
|
}>;
|
|
@@ -196,7 +180,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
196
180
|
mode: "event-registration";
|
|
197
181
|
} & Readonly<{
|
|
198
182
|
display: EventRegistrationDisplay;
|
|
199
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
183
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
200
184
|
}>>;
|
|
201
185
|
}>) => unknown;
|
|
202
186
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<Readonly<{
|
|
@@ -211,7 +195,7 @@ export declare const eventRegistrationInteractiveIslandPropsCodec: Readonly<{
|
|
|
211
195
|
mode: "event-registration";
|
|
212
196
|
} & Readonly<{
|
|
213
197
|
display: EventRegistrationDisplay;
|
|
214
|
-
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
198
|
+
hydration: Readonly<Omit<InternalEventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText">>;
|
|
215
199
|
}>>;
|
|
216
200
|
}>>;
|
|
217
201
|
}>;
|
|
@@ -6,6 +6,6 @@ export type DateTimeTileProps = {
|
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Shared tile content for displaying date and time range.
|
|
9
|
-
* Used by event-details "Other dates"
|
|
9
|
+
* Used by event-details "Other dates".
|
|
10
10
|
*/
|
|
11
11
|
export declare function DateTimeTile({ startsAt, endsAt, timeZone }: DateTimeTileProps): React.JSX.Element;
|
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -141,8 +141,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
141
141
|
readonly filterVenueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
142
|
readonly events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
143
143
|
bookingScope: z.ZodEnum<{
|
|
144
|
-
single_occurrence: "single_occurrence";
|
|
145
144
|
whole_series: "whole_series";
|
|
145
|
+
single_occurrence: "single_occurrence";
|
|
146
146
|
}>;
|
|
147
147
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
148
148
|
course: "course";
|
|
@@ -632,9 +632,9 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
632
632
|
currency: z.ZodString;
|
|
633
633
|
}, z.core.$strip>;
|
|
634
634
|
}, z.core.$strip>, z.ZodObject<{
|
|
635
|
-
kind: z.ZodLiteral<"
|
|
635
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
636
636
|
display: z.ZodObject<{
|
|
637
|
-
kind: z.ZodLiteral<"
|
|
637
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
638
638
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
639
639
|
kind: z.ZodLiteral<"free">;
|
|
640
640
|
currency: z.ZodString;
|
|
@@ -646,6 +646,11 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
646
646
|
kind: z.ZodLiteral<"from">;
|
|
647
647
|
amount: z.ZodNumber;
|
|
648
648
|
currency: z.ZodString;
|
|
649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"range">;
|
|
651
|
+
minAmount: z.ZodNumber;
|
|
652
|
+
maxAmount: z.ZodNumber;
|
|
653
|
+
currency: z.ZodString;
|
|
649
654
|
}, z.core.$strip>, z.ZodObject<{
|
|
650
655
|
kind: z.ZodLiteral<"unavailable">;
|
|
651
656
|
currency: z.ZodString;
|
|
@@ -880,8 +885,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
880
885
|
export declare const eventCollectionDisplaySchemaShape: {
|
|
881
886
|
readonly events: z.ZodArray<z.ZodObject<{
|
|
882
887
|
bookingScope: z.ZodEnum<{
|
|
883
|
-
single_occurrence: "single_occurrence";
|
|
884
888
|
whole_series: "whole_series";
|
|
889
|
+
single_occurrence: "single_occurrence";
|
|
885
890
|
}>;
|
|
886
891
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
887
892
|
course: "course";
|
|
@@ -1371,9 +1376,9 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1371
1376
|
currency: z.ZodString;
|
|
1372
1377
|
}, z.core.$strip>;
|
|
1373
1378
|
}, z.core.$strip>, z.ZodObject<{
|
|
1374
|
-
kind: z.ZodLiteral<"
|
|
1379
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1375
1380
|
display: z.ZodObject<{
|
|
1376
|
-
kind: z.ZodLiteral<"
|
|
1381
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1377
1382
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1378
1383
|
kind: z.ZodLiteral<"free">;
|
|
1379
1384
|
currency: z.ZodString;
|
|
@@ -1385,6 +1390,11 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1385
1390
|
kind: z.ZodLiteral<"from">;
|
|
1386
1391
|
amount: z.ZodNumber;
|
|
1387
1392
|
currency: z.ZodString;
|
|
1393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1394
|
+
kind: z.ZodLiteral<"range">;
|
|
1395
|
+
minAmount: z.ZodNumber;
|
|
1396
|
+
maxAmount: z.ZodNumber;
|
|
1397
|
+
currency: z.ZodString;
|
|
1388
1398
|
}, z.core.$strip>, z.ZodObject<{
|
|
1389
1399
|
kind: z.ZodLiteral<"unavailable">;
|
|
1390
1400
|
currency: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicWholeSeriesOffering } from '../../blocks/events/whole-series/types';
|
|
3
3
|
import type { ButtonVariant, PublicEvent } from '../../blocks/events/shared/types';
|
|
4
4
|
import type { CardStylesContent } from '../../fields/boxStyles';
|
|
5
5
|
import { type BookingOfferingPresetSummary, type OfferingsPreviewEventDataKey, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
|
|
@@ -17,7 +17,7 @@ type OfferingsPreviewProps = Readonly<{
|
|
|
17
17
|
routeCandidates?: Readonly<{
|
|
18
18
|
routes?: readonly OfferingsPreviewRouteCandidate[] | null;
|
|
19
19
|
}> | null;
|
|
20
|
-
|
|
20
|
+
wholeSeriesOfferings?: readonly PublicWholeSeriesOffering[] | null;
|
|
21
21
|
}> & Partial<Record<OfferingsPreviewEventDataKey, readonly PublicEvent[] | null>>;
|
|
22
22
|
export declare function OfferingsPreviewNode(props: OfferingsPreviewProps): React.JSX.Element | null;
|
|
23
23
|
export default OfferingsPreviewNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
|
|
1
|
+
import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../blocks/shared/bookingPaymentTerms';
|
|
2
2
|
export type BookingPaymentSelectionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
3
3
|
export type BookingPaymentOptionSummaryRow = Readonly<{
|
|
4
4
|
label: string;
|
|
@@ -18,6 +18,11 @@ export type BookingPaymentSelectionViewModel = Readonly<{
|
|
|
18
18
|
serviceTitle: string;
|
|
19
19
|
options: readonly BookingPaymentOptionViewModel[];
|
|
20
20
|
}>;
|
|
21
|
+
export declare function resolveBookingPaymentDueNowCents(input: Readonly<{
|
|
22
|
+
option: BlockBookingPaymentCollectionOption;
|
|
23
|
+
totalCents: number;
|
|
24
|
+
bookingStartAt?: string | null;
|
|
25
|
+
}>): number;
|
|
21
26
|
export declare function buildBookingPaymentSelectionViewModel(input: Readonly<{
|
|
22
27
|
serviceTitle: string;
|
|
23
28
|
paymentTerms?: BlockBookingPaymentTerms;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
type BlockDiscountCodeSurface = 'event-registration'
|
|
2
|
+
type BlockDiscountCodeSurface = 'event-registration';
|
|
3
3
|
export type DiscountCodeDisclosureSurface = BlockDiscountCodeSurface | 'theme-form';
|
|
4
4
|
export declare const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES: {
|
|
5
|
-
readonly 'whole-series-registration': {
|
|
6
|
-
readonly root: "er-whole-series-discount";
|
|
7
|
-
readonly toggle: "er-whole-series-discount__toggle";
|
|
8
|
-
readonly form: "er-whole-series-discount__form";
|
|
9
|
-
readonly label: "er-whole-series-discount__label";
|
|
10
|
-
readonly row: "er-whole-series-discount__row";
|
|
11
|
-
readonly input: "er-whole-series-discount__input";
|
|
12
|
-
readonly apply: "er-whole-series-discount__apply";
|
|
13
|
-
readonly remove: "er-whole-series-discount__remove";
|
|
14
|
-
readonly hint: "er-whole-series-discount__hint";
|
|
15
|
-
readonly feedback: "er-whole-series-discount__feedback";
|
|
16
|
-
};
|
|
17
5
|
readonly 'event-registration': {
|
|
18
6
|
readonly root: "er-discount";
|
|
19
7
|
readonly toggle: "er-discount__toggle";
|
|
@@ -4,7 +4,7 @@ export type LoggedInAsUserProps = {
|
|
|
4
4
|
email: string;
|
|
5
5
|
/** Optional logout handler. If provided, shows "Not you? Log out" link. */
|
|
6
6
|
onLogout?: () => void;
|
|
7
|
-
/** CSS class prefix for
|
|
7
|
+
/** CSS class prefix for the owning registration surface. */
|
|
8
8
|
classPrefix: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Celebratory UI shown when user's membership covers the course/event.
|
|
3
3
|
* Displays confirmation that no payment is required.
|
|
4
4
|
*
|
|
5
|
-
* Supports
|
|
5
|
+
* Supports registration surfaces with a caller-provided class prefix.
|
|
6
6
|
*/
|
|
7
7
|
type MembershipHeroProps = {
|
|
8
8
|
/** Name of the membership that covers this item */
|
|
@@ -8,7 +8,7 @@ type StateIconProps = {
|
|
|
8
8
|
* Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
|
|
9
9
|
*
|
|
10
10
|
* Layout is provided by shared `rb-state-icon` CSS; color variants are
|
|
11
|
-
* block-scoped
|
|
11
|
+
* block-scoped by the owning registration surface.
|
|
12
12
|
*/
|
|
13
13
|
export declare function StateIcon({ variant, children }: StateIconProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Registration Components and Utilities
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Shared registration components and utilities.
|
|
5
5
|
*/
|
|
6
6
|
export type { FormData, ButtonVariant } from './types';
|
|
7
7
|
export { DEFAULT_CURRENCY } from './types';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* and include the block anchor hash for post-redirect scroll targeting.
|
|
6
6
|
*
|
|
7
7
|
* @param paramName - Query parameter name to add (e.g., 'enrollment', 'registration')
|
|
8
|
-
* @param anchorId - Block anchor ID for hash fragment
|
|
8
|
+
* @param anchorId - Block anchor ID for the return URL hash fragment.
|
|
9
9
|
* @returns Object with success and cancel URLs
|
|
10
10
|
*/
|
|
11
|
-
export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string): {
|
|
11
|
+
export declare function buildCheckoutReturnUrls(paramName: string, anchorId: string, returnParams?: Readonly<Record<string, string>>): {
|
|
12
12
|
successUrl: string;
|
|
13
13
|
cancelUrl: string;
|
|
14
14
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { assertNever } from './utils/assertNever';
|
|
2
|
+
export type { Json } from './types/json';
|
|
3
|
+
export * from './money';
|
|
4
|
+
export * from './moneyContracts';
|
|
5
|
+
export * from './moneyDateUtils';
|
|
6
|
+
export * from './moneyPayments';
|
|
7
|
+
export * from './moneyReceiptReadModel';
|
|
8
|
+
export * from './moneyPlanningTime';
|
|
9
|
+
export * from './moneyReport';
|
|
10
|
+
export * from './moneyReportPage';
|
|
11
|
+
export * from './waitlists';
|
|
12
|
+
export * from './shop/digitalFulfillment';
|
|
13
|
+
export * from './shop/fulfillmentStatus';
|
|
14
|
+
export * from './shop/shipmentEligibility';
|
|
15
|
+
export * from './shop/shippingAddress';
|
|
16
|
+
export * from './shop/inventoryRestore';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { type Result, type EventCategoryId, type EventSeriesId, type MembershipId, type MoneyDateString, type PassId, type ProductId, type VenueId } from '../../core/src/index';
|
|
2
|
+
import { type MoneyPlanningTimeInput } from './moneyPlanningTime';
|
|
3
|
+
export declare const MONEY_PERIOD_PRESETS: readonly ["1d", "7d", "30d", "90d", "365d"];
|
|
4
|
+
export type MoneyPeriodPreset = (typeof MONEY_PERIOD_PRESETS)[number];
|
|
5
|
+
export declare const MONEY_ITEM_KINDS: readonly ["event", "event_series_registration", "pass", "membership", "product"];
|
|
6
|
+
export type MoneyItemKind = (typeof MONEY_ITEM_KINDS)[number];
|
|
7
|
+
export type MoneyPeriod = Readonly<{
|
|
8
|
+
kind: 'preset';
|
|
9
|
+
preset: MoneyPeriodPreset;
|
|
10
|
+
from?: never;
|
|
11
|
+
to?: never;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'custom';
|
|
14
|
+
from: MoneyDateString;
|
|
15
|
+
to: MoneyDateString;
|
|
16
|
+
preset?: never;
|
|
17
|
+
}>;
|
|
18
|
+
export type MoneyDateRange = Readonly<{
|
|
19
|
+
from: MoneyDateString;
|
|
20
|
+
to: MoneyDateString;
|
|
21
|
+
}>;
|
|
22
|
+
export type MoneyEntityFilters = Readonly<{
|
|
23
|
+
eventSeriesIds: readonly EventSeriesId[];
|
|
24
|
+
eventCategoryIds: readonly EventCategoryId[];
|
|
25
|
+
venueIds: readonly VenueId[];
|
|
26
|
+
passIds: readonly PassId[];
|
|
27
|
+
membershipIds: readonly MembershipId[];
|
|
28
|
+
productIds: readonly ProductId[];
|
|
29
|
+
discountCodes: readonly string[];
|
|
30
|
+
}>;
|
|
31
|
+
export type MoneyFilterState = Readonly<{
|
|
32
|
+
period: MoneyPeriod;
|
|
33
|
+
itemKinds: readonly MoneyItemKind[];
|
|
34
|
+
entities: MoneyEntityFilters;
|
|
35
|
+
}>;
|
|
36
|
+
export type MoneyFilterSelection = Readonly<{
|
|
37
|
+
itemKinds: readonly MoneyItemKind[];
|
|
38
|
+
entities: MoneyEntityFilters;
|
|
39
|
+
}>;
|
|
40
|
+
export type MoneyQueryRange = Readonly<{
|
|
41
|
+
kind: 'all';
|
|
42
|
+
}> | MoneyPeriod;
|
|
43
|
+
export type MoneyQueryParamKey = 'period' | 'from' | 'to' | 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount';
|
|
44
|
+
export type MoneyFilterQuery = Readonly<{
|
|
45
|
+
period?: MoneyPeriodPreset;
|
|
46
|
+
from?: string;
|
|
47
|
+
to?: string;
|
|
48
|
+
kind?: MoneyItemKind[];
|
|
49
|
+
event?: string[];
|
|
50
|
+
category?: string[];
|
|
51
|
+
venue?: string[];
|
|
52
|
+
pass?: string[];
|
|
53
|
+
membership?: string[];
|
|
54
|
+
product?: string[];
|
|
55
|
+
discount?: string[];
|
|
56
|
+
}>;
|
|
57
|
+
type MoneyQueryRangeInput = Readonly<{
|
|
58
|
+
period?: string;
|
|
59
|
+
from?: string;
|
|
60
|
+
to?: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type MoneyFilterParseIssue = Readonly<{
|
|
63
|
+
kind: 'invalid_period_preset';
|
|
64
|
+
value: string;
|
|
65
|
+
}> | Readonly<{
|
|
66
|
+
kind: 'invalid_date';
|
|
67
|
+
field: 'from' | 'to';
|
|
68
|
+
value: string;
|
|
69
|
+
}> | Readonly<{
|
|
70
|
+
kind: 'invalid_date_range';
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
}> | Readonly<{
|
|
74
|
+
kind: 'partial_custom_range';
|
|
75
|
+
from: string | null;
|
|
76
|
+
to: string | null;
|
|
77
|
+
}> | Readonly<{
|
|
78
|
+
kind: 'invalid_item_kind';
|
|
79
|
+
value: string;
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
kind: 'empty_filter_value';
|
|
82
|
+
field: Exclude<MoneyQueryParamKey, 'period' | 'from' | 'to' | 'kind'>;
|
|
83
|
+
}>;
|
|
84
|
+
export type MoneyFilterParseResult = Readonly<{
|
|
85
|
+
value: MoneyFilterState;
|
|
86
|
+
issues: readonly MoneyFilterParseIssue[];
|
|
87
|
+
}>;
|
|
88
|
+
export type MoneyQueryRangeError = Readonly<{
|
|
89
|
+
kind: 'invalid_period';
|
|
90
|
+
value: string;
|
|
91
|
+
}> | Readonly<{
|
|
92
|
+
kind: 'invalid_date';
|
|
93
|
+
field: 'from' | 'to';
|
|
94
|
+
value: string;
|
|
95
|
+
}> | Readonly<{
|
|
96
|
+
kind: 'invalid_date_range';
|
|
97
|
+
from: string;
|
|
98
|
+
to: string;
|
|
99
|
+
}> | Readonly<{
|
|
100
|
+
kind: 'partial_custom_range';
|
|
101
|
+
from: string | null;
|
|
102
|
+
to: string | null;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const DEFAULT_MONEY_FILTER_STATE: MoneyFilterState;
|
|
105
|
+
export declare function isMoneyDateString(value: string): value is MoneyDateString;
|
|
106
|
+
export declare function parseMoneyDateString(value: string): MoneyDateString | null;
|
|
107
|
+
export declare function isMoneyPeriodPreset(value: unknown): value is MoneyPeriodPreset;
|
|
108
|
+
export declare function isMoneyItemKind(value: unknown): value is MoneyItemKind;
|
|
109
|
+
export declare function createDefaultMoneyFilterState(): MoneyFilterState;
|
|
110
|
+
export declare function createDefaultMoneyFilterSelection(): MoneyFilterSelection;
|
|
111
|
+
export declare function resolveMoneyDateRange(period: MoneyPeriod, options?: MoneyPlanningTimeInput): MoneyDateRange;
|
|
112
|
+
export declare function parseMoneyFilterState(searchParams: URLSearchParams): MoneyFilterParseResult;
|
|
113
|
+
export declare function serializeMoneyFilterState(filters: MoneyFilterState): URLSearchParams;
|
|
114
|
+
export declare function moneyFilterStateToQuery(filters: MoneyFilterState, options?: Readonly<{
|
|
115
|
+
includePeriod?: boolean;
|
|
116
|
+
}>): MoneyFilterQuery;
|
|
117
|
+
export declare function moneyFilterStateToSelection(filters: MoneyFilterState): MoneyFilterSelection;
|
|
118
|
+
export declare function moneyFilterSelectionFromQuery(query: Pick<MoneyFilterQuery, 'kind' | 'event' | 'category' | 'venue' | 'pass' | 'membership' | 'product' | 'discount'>): MoneyFilterSelection;
|
|
119
|
+
export declare function resolveMoneyQueryRange(query: MoneyQueryRangeInput, options?: Readonly<{
|
|
120
|
+
defaultPreset?: MoneyPeriodPreset;
|
|
121
|
+
}>): Result<MoneyQueryRange, MoneyQueryRangeError>;
|
|
122
|
+
export {};
|