@riverbankcms/sdk 0.134.0 → 0.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
- package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +5 -5
- package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4070 -8011
- 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 +10 -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 +6 -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-BQqwi8Oa.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
- package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
- package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
- package/dist/client/{accordion-DFXpLvwg.mjs → accordion-BA0j8Mpw.mjs} +1 -1
- package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-Br2e41H0.mjs} +6 -7
- package/dist/client/bookings.mjs +912 -1906
- package/dist/client/{carousel-wjyWTZCh.mjs → carousel-B4dmwnpD.mjs} +1 -1
- package/dist/client/{cart-DCwdpA4i.mjs → cart-B_ckGW4b.mjs} +3 -3
- package/dist/client/{checkout-DTDW3l0R.mjs → checkout-DAyspHdf.mjs} +3 -3
- package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
- package/dist/client/client.mjs +5074 -9309
- package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
- package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
- package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
- package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
- package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-B9aXPO-I.mjs} +3 -3
- package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-CBSovBkg.mjs} +4522 -3690
- package/dist/client/{form-CUXfsABE.mjs → form-Cm0tu_7o.mjs} +2 -2
- package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-OgRtHeKS.mjs} +2 -2
- package/dist/client/hooks.mjs +430 -692
- package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DmjcYqNM.mjs} +2 -2
- package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
- package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-BqZeu2P4.mjs} +3 -3
- package/dist/client/{productList-CttYcS_S.mjs → productList-mNyIF9FG.mjs} +3 -3
- package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-DwHXRm9X.mjs} +4656 -4419
- package/dist/client/rendering/client.mjs +59504 -62158
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +5354 -9683
- package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
- package/dist/client/{shop-DXQtMo2O.mjs → shop-CNjZK16F.mjs} +6 -6
- package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-DkNNao1J.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
- package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-CHCVfccY.mjs} +3 -3
- package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-DvuaB4ZN.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-3GhW4knb.mjs} +2 -2
- package/dist/{separator-CMhj6BTi.mjs → separator-D3bCWYYb.mjs} +1 -1
- package/dist/server/components.mjs +535 -2950
- package/dist/server/config-validation.mjs +430 -692
- package/dist/server/config.mjs +430 -692
- package/dist/server/data.mjs +430 -692
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +549 -2964
- package/dist/server/page-converter.mjs +331 -560
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +534 -2855
- package/dist/server/rendering.mjs +535 -2950
- package/dist/server/routing.mjs +574 -1065
- package/dist/server/server.mjs +444 -706
- 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
|
@@ -73,7 +73,7 @@ export type DatedOfferingMetadataRefParseError = Readonly<{
|
|
|
73
73
|
type LegacyDatedOfferingOrderItemEngineMetadata = Readonly<{
|
|
74
74
|
[TKey in keyof DatedOfferingOrderItemEngineMetadata]?: never;
|
|
75
75
|
}>;
|
|
76
|
-
export type
|
|
76
|
+
export type EventSeriesRegistrationEngineMetadata = (LegacyDatedOfferingOrderItemEngineMetadata & Readonly<{
|
|
77
77
|
courseId: CourseId;
|
|
78
78
|
}>) | DatedOfferingOrderItemEngineMetadata | DatedOfferingNonCashOrderItemEngineMetadata;
|
|
79
79
|
export type EventTicketOrderItemMetadata = CheckoutLineMetadata & StripeBookingCommissionOrderItemMetadata & BookableOrderItemPricingMetadata & Readonly<{
|
|
@@ -105,7 +105,7 @@ export type PassOrderItemMetadata = CheckoutLineMetadata & Readonly<{
|
|
|
105
105
|
validDays: number | null;
|
|
106
106
|
bundleFulfillment?: PassBundleFulfillmentMetadata;
|
|
107
107
|
}>;
|
|
108
|
-
export type
|
|
108
|
+
export type EventSeriesRegistrationOrderItemMetadata = CheckoutLineMetadata & StripeBookingCommissionOrderItemMetadata & BookableOrderItemPricingMetadata & EventSeriesRegistrationEngineMetadata & Readonly<{
|
|
109
109
|
pricingOptionId?: PricingOptionId;
|
|
110
110
|
attendeeEmail: string;
|
|
111
111
|
attendeeName: string;
|
|
@@ -135,7 +135,7 @@ export type OrderItemMetadataByKind = {
|
|
|
135
135
|
event_ticket: EventTicketOrderItemMetadata;
|
|
136
136
|
product: ProductOrderItemMetadata;
|
|
137
137
|
pass: PassOrderItemMetadata;
|
|
138
|
-
|
|
138
|
+
event_series_registration: EventSeriesRegistrationOrderItemMetadata;
|
|
139
139
|
appointment: AppointmentOrderItemMetadata;
|
|
140
140
|
membership: MembershipOrderItemMetadata;
|
|
141
141
|
};
|
|
@@ -145,7 +145,7 @@ export declare function parseBookableOrderItemPricingMetadata(raw: Record<string
|
|
|
145
145
|
export declare function parseOrderItemMetadata(kind: 'event_ticket', raw: unknown): Result<EventTicketOrderItemMetadata, string>;
|
|
146
146
|
export declare function parseOrderItemMetadata(kind: 'product', raw: unknown): Result<ProductOrderItemMetadata, string>;
|
|
147
147
|
export declare function parseOrderItemMetadata(kind: 'pass', raw: unknown): Result<PassOrderItemMetadata, string>;
|
|
148
|
-
export declare function parseOrderItemMetadata(kind: '
|
|
148
|
+
export declare function parseOrderItemMetadata(kind: 'event_series_registration', raw: unknown): Result<EventSeriesRegistrationOrderItemMetadata, string>;
|
|
149
149
|
export declare function parseOrderItemMetadata(kind: 'appointment', raw: unknown): Result<AppointmentOrderItemMetadata, string>;
|
|
150
150
|
export declare function parseOrderItemMetadata(kind: 'membership', raw: unknown): Result<MembershipOrderItemMetadata, string>;
|
|
151
151
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AttendeeId } from '../../../core/src/index';
|
|
2
|
-
import type { AppointmentOrderItemMetadata,
|
|
2
|
+
import type { AppointmentOrderItemMetadata, EventSeriesRegistrationOrderItemMetadata, EventTicketOrderItemMetadata, MembershipOrderItemMetadata, PassOrderItemMetadata, ProductOrderItemMetadata } from './orderItemMetadata';
|
|
3
3
|
import type { OrderItemReconciliationState, OrderItemCommitState } from './orderTypes';
|
|
4
4
|
/**
|
|
5
5
|
* Structural input records for pure order-planning helpers.
|
|
@@ -39,7 +39,7 @@ export type EventTicketOrderItemPlanningRecord = OrderItemPlanningBase & Readonl
|
|
|
39
39
|
productId: null;
|
|
40
40
|
productVariantId: null;
|
|
41
41
|
customerPassId: null;
|
|
42
|
-
|
|
42
|
+
eventSeriesRegistrationId: null;
|
|
43
43
|
appointmentId: null;
|
|
44
44
|
customerMembershipId: null;
|
|
45
45
|
}>;
|
|
@@ -50,7 +50,7 @@ export type ProductOrderItemPlanningRecord = OrderItemPlanningBase & Readonly<{
|
|
|
50
50
|
productVariantId: string | null;
|
|
51
51
|
eventAttendeeId: null;
|
|
52
52
|
customerPassId: null;
|
|
53
|
-
|
|
53
|
+
eventSeriesRegistrationId: null;
|
|
54
54
|
appointmentId: null;
|
|
55
55
|
customerMembershipId: null;
|
|
56
56
|
}>;
|
|
@@ -61,14 +61,14 @@ export type PassOrderItemPlanningRecord = OrderItemPlanningBase & Readonly<{
|
|
|
61
61
|
eventAttendeeId: AttendeeId | null;
|
|
62
62
|
productId: null;
|
|
63
63
|
productVariantId: null;
|
|
64
|
-
|
|
64
|
+
eventSeriesRegistrationId: null;
|
|
65
65
|
appointmentId: null;
|
|
66
66
|
customerMembershipId: null;
|
|
67
67
|
}>;
|
|
68
|
-
export type
|
|
69
|
-
kind: '
|
|
70
|
-
metadata:
|
|
71
|
-
|
|
68
|
+
export type EventSeriesRegistrationOrderItemPlanningRecord = OrderItemPlanningBase & Readonly<{
|
|
69
|
+
kind: 'event_series_registration';
|
|
70
|
+
metadata: EventSeriesRegistrationOrderItemMetadata;
|
|
71
|
+
eventSeriesRegistrationId: string | null;
|
|
72
72
|
eventAttendeeId: null;
|
|
73
73
|
productId: null;
|
|
74
74
|
productVariantId: null;
|
|
@@ -84,7 +84,7 @@ export type AppointmentOrderItemPlanningRecord = OrderItemPlanningBase & Readonl
|
|
|
84
84
|
productId: null;
|
|
85
85
|
productVariantId: null;
|
|
86
86
|
customerPassId: string | null;
|
|
87
|
-
|
|
87
|
+
eventSeriesRegistrationId: null;
|
|
88
88
|
customerMembershipId: null;
|
|
89
89
|
}>;
|
|
90
90
|
export type MembershipOrderItemPlanningRecord = OrderItemPlanningBase & Readonly<{
|
|
@@ -95,8 +95,8 @@ export type MembershipOrderItemPlanningRecord = OrderItemPlanningBase & Readonly
|
|
|
95
95
|
productId: null;
|
|
96
96
|
productVariantId: null;
|
|
97
97
|
customerPassId: null;
|
|
98
|
-
|
|
98
|
+
eventSeriesRegistrationId: null;
|
|
99
99
|
appointmentId: null;
|
|
100
100
|
}>;
|
|
101
|
-
export type OrderItemPlanningRecord = EventTicketOrderItemPlanningRecord | ProductOrderItemPlanningRecord | PassOrderItemPlanningRecord |
|
|
101
|
+
export type OrderItemPlanningRecord = EventTicketOrderItemPlanningRecord | ProductOrderItemPlanningRecord | PassOrderItemPlanningRecord | EventSeriesRegistrationOrderItemPlanningRecord | AppointmentOrderItemPlanningRecord | MembershipOrderItemPlanningRecord;
|
|
102
102
|
export {};
|
|
@@ -34,6 +34,6 @@ export type CheckoutCompensationDecision = Readonly<{
|
|
|
34
34
|
export declare const DISCOUNT_REDEMPTION_STATUSES: readonly ["pending", "redeemed", "released", "expired"];
|
|
35
35
|
export type DiscountRedemptionStatus = (typeof DISCOUNT_REDEMPTION_STATUSES)[number];
|
|
36
36
|
export declare function isDiscountRedemptionStatus(value: string): value is DiscountRedemptionStatus;
|
|
37
|
-
export declare const ORDER_ITEM_KINDS: readonly ["event_ticket", "product", "pass", "
|
|
37
|
+
export declare const ORDER_ITEM_KINDS: readonly ["event_ticket", "product", "pass", "event_series_registration", "appointment", "membership"];
|
|
38
38
|
export type OrderItemKind = (typeof ORDER_ITEM_KINDS)[number];
|
|
39
39
|
export declare function isOrderItemKind(value: string): value is OrderItemKind;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Result, type CheckoutLineId } from '../../../core/src/index';
|
|
2
2
|
import { type RefundableLineSettlement } from './settlement';
|
|
3
3
|
import { type PositiveCheckoutQuantity } from './checkoutQuantity';
|
|
4
|
-
export type PersistedCheckoutLineKind = 'event_ticket' | 'product' | 'pass' | '
|
|
4
|
+
export type PersistedCheckoutLineKind = 'event_ticket' | 'product' | 'pass' | 'event_series_registration' | 'appointment' | 'membership';
|
|
5
5
|
export type PersistedCheckoutLineInput = Readonly<{
|
|
6
6
|
id: string;
|
|
7
7
|
kind: PersistedCheckoutLineKind;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* course, membership), it's a Purchase. Payment method is an attribute
|
|
6
6
|
* of the purchase, not a separate concept (Model B: unified).
|
|
7
7
|
*/
|
|
8
|
-
import type { OccurrenceId, TicketTypeId, PricingOptionId, ProductId, ProductVariantId, PassId, MembershipId, CustomerId, OrderId, AttendeeId, CustomerPassId, CustomerMembershipId,
|
|
8
|
+
import type { OccurrenceId, TicketTypeId, PricingOptionId, ProductId, ProductVariantId, PassId, MembershipId, CustomerId, OrderId, AttendeeId, CustomerPassId, CustomerMembershipId, EventSeriesRegistrationId, AppointmentId, NonEmptyArray, SiteId, EventSeriesId } from '../../../core/src/index';
|
|
9
9
|
import type { PositiveCheckoutQuantity } from './checkoutQuantity';
|
|
10
|
-
export type CheckoutItem = EventTicketItem | ProductItem | PassItem |
|
|
10
|
+
export type CheckoutItem = EventTicketItem | ProductItem | PassItem | EventSeriesRegistrationItem | AppointmentItem;
|
|
11
11
|
export type EventTicketItem = {
|
|
12
12
|
type: 'event_ticket';
|
|
13
13
|
occurrenceId: OccurrenceId;
|
|
@@ -26,10 +26,14 @@ export type PassItem = {
|
|
|
26
26
|
type: 'pass';
|
|
27
27
|
passId: PassId;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
type: '
|
|
29
|
+
export type EventSeriesRegistrationItem = {
|
|
30
|
+
type: 'event_series_registration';
|
|
31
31
|
eventSeriesId: EventSeriesId;
|
|
32
|
-
|
|
32
|
+
attendanceMode: 'inPerson' | 'online';
|
|
33
|
+
ticketSelections: NonEmptyArray<{
|
|
34
|
+
pricingOptionId?: PricingOptionId;
|
|
35
|
+
quantity: PositiveCheckoutQuantity;
|
|
36
|
+
}>;
|
|
33
37
|
selectedSlidingAmount?: number;
|
|
34
38
|
attendeeInfo: AttendeeInfo;
|
|
35
39
|
};
|
|
@@ -54,7 +58,7 @@ export type AttendeeInfo = Readonly<{
|
|
|
54
58
|
name: string;
|
|
55
59
|
formData?: AttendeeFormData;
|
|
56
60
|
}>;
|
|
57
|
-
export type AttendeeBearingCheckoutItem = EventTicketItem |
|
|
61
|
+
export type AttendeeBearingCheckoutItem = EventTicketItem | EventSeriesRegistrationItem;
|
|
58
62
|
export type Checkout = CartCheckout | MembershipCheckout;
|
|
59
63
|
export type CartCheckout = {
|
|
60
64
|
mode: 'one_time';
|
|
@@ -133,8 +137,8 @@ export type PurchaseLineItem = {
|
|
|
133
137
|
passId: PassId;
|
|
134
138
|
unitPriceCents: number;
|
|
135
139
|
} | {
|
|
136
|
-
type: '
|
|
137
|
-
|
|
140
|
+
type: 'event_series_registration';
|
|
141
|
+
registrationId: EventSeriesRegistrationId;
|
|
138
142
|
eventSeriesId: EventSeriesId;
|
|
139
143
|
pricingOptionId?: PricingOptionId;
|
|
140
144
|
unitPriceCents: number;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const internalLinkEntityTypes: readonly ["page", "content", "pageSurface"];
|
|
3
|
+
type InternalLinkEntityType = (typeof internalLinkEntityTypes)[number];
|
|
4
|
+
export type InternalDigitalFulfillmentLink = Readonly<{
|
|
5
|
+
kind: 'internal';
|
|
6
|
+
routeId: string;
|
|
7
|
+
entityId: string;
|
|
8
|
+
entityType: InternalLinkEntityType;
|
|
9
|
+
href: string;
|
|
10
|
+
title: string;
|
|
11
|
+
typeLabel: string;
|
|
12
|
+
contentTypeKey?: string | null;
|
|
13
|
+
contentTypeName?: string | null;
|
|
14
|
+
updatedAt?: string | null;
|
|
15
|
+
}>;
|
|
16
|
+
export type ExternalDigitalFulfillmentLink = Readonly<{
|
|
17
|
+
kind: 'external';
|
|
18
|
+
href: string;
|
|
19
|
+
}>;
|
|
20
|
+
export type UrlDigitalFulfillmentLink = Readonly<{
|
|
21
|
+
kind: 'url';
|
|
22
|
+
href: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type PageDigitalFulfillmentLink = Readonly<{
|
|
25
|
+
kind: 'page';
|
|
26
|
+
identifier: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type EntryDigitalFulfillmentLink = Readonly<{
|
|
29
|
+
kind: 'entry';
|
|
30
|
+
contentType: string;
|
|
31
|
+
identifier: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type DigitalFulfillmentLink = InternalDigitalFulfillmentLink | ExternalDigitalFulfillmentLink | UrlDigitalFulfillmentLink | PageDigitalFulfillmentLink | EntryDigitalFulfillmentLink;
|
|
34
|
+
export declare const digitalFulfillmentLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
35
|
+
kind: z.ZodLiteral<"internal">;
|
|
36
|
+
routeId: z.ZodString;
|
|
37
|
+
entityId: z.ZodString;
|
|
38
|
+
entityType: z.ZodEnum<{
|
|
39
|
+
content: "content";
|
|
40
|
+
page: "page";
|
|
41
|
+
pageSurface: "pageSurface";
|
|
42
|
+
}>;
|
|
43
|
+
href: z.ZodString;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
typeLabel: z.ZodString;
|
|
46
|
+
contentTypeKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
contentTypeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"external">;
|
|
51
|
+
href: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<"url">;
|
|
54
|
+
href: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"page">;
|
|
57
|
+
identifier: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"entry">;
|
|
60
|
+
contentType: z.ZodString;
|
|
61
|
+
identifier: z.ZodString;
|
|
62
|
+
}, z.core.$strip>]>;
|
|
63
|
+
export declare const digitalFulfillmentFileSchema: z.ZodObject<{
|
|
64
|
+
assetId: z.ZodString;
|
|
65
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const digitalFulfillmentConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
|
+
mode: z.ZodLiteral<"email">;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
mode: z.ZodLiteral<"guarded_url">;
|
|
71
|
+
destination: z.ZodUnion<readonly [z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"internal">;
|
|
73
|
+
routeId: z.ZodString;
|
|
74
|
+
entityId: z.ZodString;
|
|
75
|
+
entityType: z.ZodEnum<{
|
|
76
|
+
content: "content";
|
|
77
|
+
page: "page";
|
|
78
|
+
pageSurface: "pageSurface";
|
|
79
|
+
}>;
|
|
80
|
+
href: z.ZodString;
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
typeLabel: z.ZodString;
|
|
83
|
+
contentTypeKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
contentTypeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"external">;
|
|
88
|
+
href: z.ZodString;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"url">;
|
|
91
|
+
href: z.ZodString;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"page">;
|
|
94
|
+
identifier: z.ZodString;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"entry">;
|
|
97
|
+
contentType: z.ZodString;
|
|
98
|
+
identifier: z.ZodString;
|
|
99
|
+
}, z.core.$strip>]>;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
mode: z.ZodLiteral<"file_download">;
|
|
102
|
+
files: z.ZodArray<z.ZodObject<{
|
|
103
|
+
assetId: z.ZodString;
|
|
104
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>], "mode">;
|
|
107
|
+
export type DigitalFulfillmentConfig = z.infer<typeof digitalFulfillmentConfigSchema>;
|
|
108
|
+
export type DigitalFulfillmentMode = DigitalFulfillmentConfig['mode'];
|
|
109
|
+
export declare function parseDigitalFulfillmentConfig(raw: unknown): DigitalFulfillmentConfig | null;
|
|
110
|
+
export declare function isDigitalFulfillmentMode(value: string): value is DigitalFulfillmentMode;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const FULFILLMENT_STATUSES: readonly ["unfulfilled", "partially_shipped", "shipped"];
|
|
2
|
+
export type FulfillmentStatus = (typeof FULFILLMENT_STATUSES)[number];
|
|
3
|
+
export declare function isFulfillmentStatus(value: string): value is FulfillmentStatus;
|
|
4
|
+
/**
|
|
5
|
+
* Derive the fulfillment status from shippable vs shipped item counts.
|
|
6
|
+
*
|
|
7
|
+
* Returns `null` when the order has no shippable items (e.g., all-digital
|
|
8
|
+
* or all-pass orders) — the caller should not display a fulfillment badge.
|
|
9
|
+
*/
|
|
10
|
+
export declare function deriveFulfillmentStatus(shippableItemCount: number, shippedItemCount: number): FulfillmentStatus | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OrderItemKind } from '../purchase/orderTypes';
|
|
2
|
+
export type InventoryRestoreInput = Readonly<{
|
|
3
|
+
kind: OrderItemKind;
|
|
4
|
+
productType?: 'physical' | 'digital' | null;
|
|
5
|
+
requiresShipping?: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Whether a cancelled item needs its inventory restored.
|
|
9
|
+
*
|
|
10
|
+
* Physical products (whether requiring shipping or not) need restock.
|
|
11
|
+
* Digital products, passes, tickets, enrollments, and memberships do not.
|
|
12
|
+
*/
|
|
13
|
+
export declare function needsInventoryRestore(item: InventoryRestoreInput): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ShippingAddressSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodNullable<z.ZodString>;
|
|
4
|
+
line1: z.ZodNullable<z.ZodString>;
|
|
5
|
+
line2: z.ZodNullable<z.ZodString>;
|
|
6
|
+
city: z.ZodNullable<z.ZodString>;
|
|
7
|
+
state: z.ZodNullable<z.ZodString>;
|
|
8
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
9
|
+
country: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type ShippingAddress = z.infer<typeof ShippingAddressSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Parse `shipping_address_json` from the DB boundary.
|
|
14
|
+
* Returns `null` if the JSON doesn't match the expected shape.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseShippingAddress(json: unknown): ShippingAddress | null;
|
|
17
|
+
/** Serialise a ShippingAddress to a plain record for DB JSONB write. */
|
|
18
|
+
export declare function toShippingAddressJson(address: ShippingAddress): Record<string, string | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isPlainRecord(value: unknown): value is Record<string, unknown>;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { Json } from './types/json';
|
|
2
|
+
import type { NarrowResult } from '../../core/src/index';
|
|
3
|
+
import { type CustomerId, type EventSeriesId, type OccurrenceId, type WaitlistEntryId, type WaitlistHoldId } from '../../core/src/index';
|
|
4
|
+
export type PublicWaitlistClaimSubject = Readonly<{
|
|
5
|
+
kind: 'event_occurrence';
|
|
6
|
+
occurrenceId: string;
|
|
7
|
+
attendanceMode: 'in_person' | 'online';
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
kind: 'whole_series';
|
|
10
|
+
eventSeriesId: string;
|
|
11
|
+
attendanceMode: 'in_person' | 'online';
|
|
12
|
+
ticketSelections: readonly Readonly<{
|
|
13
|
+
ticketTypeId: string | null;
|
|
14
|
+
quantity: number;
|
|
15
|
+
}>[];
|
|
16
|
+
seatCount: number;
|
|
17
|
+
selectedSlidingAmount: number | null;
|
|
18
|
+
}>;
|
|
19
|
+
export type PublicWaitlistClaimResponse = Readonly<{
|
|
20
|
+
subject: PublicWaitlistClaimSubject;
|
|
21
|
+
expiresAt: string;
|
|
22
|
+
customer: Readonly<{
|
|
23
|
+
email: string;
|
|
24
|
+
name: string;
|
|
25
|
+
phone: string | null;
|
|
26
|
+
}>;
|
|
27
|
+
prefill: Readonly<{
|
|
28
|
+
email: string;
|
|
29
|
+
name: string;
|
|
30
|
+
phone: string | null;
|
|
31
|
+
notes: string | null;
|
|
32
|
+
guests: readonly Readonly<{
|
|
33
|
+
name: string;
|
|
34
|
+
email?: string | null;
|
|
35
|
+
phone: string | null;
|
|
36
|
+
}>[];
|
|
37
|
+
}>;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const WAITLIST_SUBJECT_KINDS: readonly ["event_occurrence", "event_series"];
|
|
40
|
+
export type WaitlistSubjectKind = (typeof WAITLIST_SUBJECT_KINDS)[number];
|
|
41
|
+
export declare const WAITLIST_ENTRY_STATUSES: readonly ["waiting", "hold_active", "hold_expired", "claimed", "cancelled"];
|
|
42
|
+
export type WaitlistEntryStatus = (typeof WAITLIST_ENTRY_STATUSES)[number];
|
|
43
|
+
export declare const WAITLIST_HOLD_STATUSES: readonly ["active", "consumed", "expired", "cancelled"];
|
|
44
|
+
export type WaitlistHoldStatus = (typeof WAITLIST_HOLD_STATUSES)[number];
|
|
45
|
+
export declare const WAITLIST_EMAIL_DELIVERY_STATUSES: readonly ["pending", "sent", "failed"];
|
|
46
|
+
export type WaitlistEmailDeliveryStatus = (typeof WAITLIST_EMAIL_DELIVERY_STATUSES)[number];
|
|
47
|
+
export declare const WAITLIST_JOIN_SOURCES: readonly ["public_booking_flow", "admin_manual"];
|
|
48
|
+
export type WaitlistJoinSource = (typeof WAITLIST_JOIN_SOURCES)[number];
|
|
49
|
+
export declare const WAITLIST_CAPACITY_EFFECT_REASONS: readonly ["registration_cancelled", "capacity_increased", "hold_cancelled", "hold_expired", "subject_reopened"];
|
|
50
|
+
export type WaitlistCapacityEffectReason = (typeof WAITLIST_CAPACITY_EFFECT_REASONS)[number];
|
|
51
|
+
export type WaitlistStorageSubjectRef = Readonly<{
|
|
52
|
+
kind: 'event_occurrence';
|
|
53
|
+
eventOccurrenceId: OccurrenceId;
|
|
54
|
+
attendanceMode: 'in_person' | 'online';
|
|
55
|
+
eventSeriesId?: never;
|
|
56
|
+
}> | Readonly<{
|
|
57
|
+
kind: 'event_series';
|
|
58
|
+
eventSeriesId: EventSeriesId;
|
|
59
|
+
eventOccurrenceId?: never;
|
|
60
|
+
attendanceMode?: never;
|
|
61
|
+
}>;
|
|
62
|
+
export type WholeSeriesWaitlistSubject = Extract<WaitlistStorageSubjectRef, {
|
|
63
|
+
kind: 'event_series';
|
|
64
|
+
}>;
|
|
65
|
+
export type WaitlistSubjectRef = WaitlistStorageSubjectRef;
|
|
66
|
+
export declare function toWholeSeriesWaitlistSubject(input: Readonly<{
|
|
67
|
+
eventSeriesId: EventSeriesId;
|
|
68
|
+
}>): WholeSeriesWaitlistSubject;
|
|
69
|
+
export type WaitlistCustomerSnapshot = Readonly<{
|
|
70
|
+
customerId: CustomerId;
|
|
71
|
+
email: string;
|
|
72
|
+
name: string;
|
|
73
|
+
phone: string | null;
|
|
74
|
+
}>;
|
|
75
|
+
export type WaitlistCapacityEffect = Readonly<{
|
|
76
|
+
siteId: string;
|
|
77
|
+
subject: WaitlistSubjectRef;
|
|
78
|
+
seatsDelta: number;
|
|
79
|
+
reason: WaitlistCapacityEffectReason;
|
|
80
|
+
}>;
|
|
81
|
+
export type WaitlistEntrySnapshot = Readonly<{
|
|
82
|
+
id: WaitlistEntryId;
|
|
83
|
+
siteId: string;
|
|
84
|
+
customerId: CustomerId;
|
|
85
|
+
subject: WaitlistSubjectRef;
|
|
86
|
+
status: WaitlistEntryStatus;
|
|
87
|
+
joinedAt: string;
|
|
88
|
+
customerSnapshot: {
|
|
89
|
+
email: string;
|
|
90
|
+
name: string;
|
|
91
|
+
phone: string | null;
|
|
92
|
+
};
|
|
93
|
+
seatCount: number;
|
|
94
|
+
source: WaitlistJoinSource;
|
|
95
|
+
metadata: Json;
|
|
96
|
+
formSnapshot: Json;
|
|
97
|
+
activeHoldId: WaitlistHoldId | null;
|
|
98
|
+
}>;
|
|
99
|
+
export type WaitlistHoldSnapshot = Readonly<{
|
|
100
|
+
id: WaitlistHoldId;
|
|
101
|
+
siteId: string;
|
|
102
|
+
waitlistEntryId: WaitlistEntryId;
|
|
103
|
+
subject: WaitlistSubjectRef;
|
|
104
|
+
status: WaitlistHoldStatus;
|
|
105
|
+
emailDeliveryStatus: WaitlistEmailDeliveryStatus;
|
|
106
|
+
tokenPublicId: string;
|
|
107
|
+
tokenSecretHash: string;
|
|
108
|
+
expiresAt: string;
|
|
109
|
+
}>;
|
|
110
|
+
export declare function isWaitlistSubjectKind(value: unknown): value is WaitlistSubjectKind;
|
|
111
|
+
export declare function isWaitlistEntryStatus(value: unknown): value is WaitlistEntryStatus;
|
|
112
|
+
export declare function isWaitlistHoldStatus(value: unknown): value is WaitlistHoldStatus;
|
|
113
|
+
export declare function isWaitlistEmailDeliveryStatus(value: unknown): value is WaitlistEmailDeliveryStatus;
|
|
114
|
+
export declare function isWaitlistJoinSource(value: unknown): value is WaitlistJoinSource;
|
|
115
|
+
export declare function isWaitlistCapacityEffectReason(value: unknown): value is WaitlistCapacityEffectReason;
|
|
116
|
+
export declare function narrowWaitlistSubjectRef(input: {
|
|
117
|
+
kind: unknown;
|
|
118
|
+
eventOccurrenceId?: string | null;
|
|
119
|
+
eventSeriesId?: string | null;
|
|
120
|
+
attendanceMode?: string | null;
|
|
121
|
+
}): NarrowResult<WaitlistSubjectRef>;
|
|
122
|
+
export declare function narrowWaitlistCapacityEffect(input: {
|
|
123
|
+
siteId: string;
|
|
124
|
+
subjectKind: unknown;
|
|
125
|
+
eventOccurrenceId?: string | null;
|
|
126
|
+
eventSeriesId?: string | null;
|
|
127
|
+
attendanceMode?: string | null;
|
|
128
|
+
seatsDelta: number;
|
|
129
|
+
reason: unknown;
|
|
130
|
+
}): NarrowResult<WaitlistCapacityEffect>;
|
|
131
|
+
export declare function toWaitlistSubjectColumns(subject: WaitlistSubjectRef): {
|
|
132
|
+
subjectKind: WaitlistSubjectKind;
|
|
133
|
+
eventOccurrenceId: string | null;
|
|
134
|
+
eventSeriesId: string | null;
|
|
135
|
+
attendanceMode: 'in_person' | 'online' | null;
|
|
136
|
+
};
|
|
137
|
+
export declare function toWaitlistSubjectKey(subject: WaitlistSubjectRef): string;
|
|
138
|
+
export declare function waitlistSubjectsMatch(a: WaitlistSubjectRef, b: WaitlistSubjectRef): boolean;
|
|
139
|
+
export declare function toWaitlistObjectRecord(value: unknown): Record<string, unknown>;
|
|
140
|
+
export declare function createWaitlistCustomerSnapshot(input: {
|
|
141
|
+
customerId: string;
|
|
142
|
+
email: string;
|
|
143
|
+
name: string;
|
|
144
|
+
phone?: string | null;
|
|
145
|
+
}): WaitlistCustomerSnapshot;
|
|
146
|
+
export declare function createWaitlistEntrySnapshot(input: {
|
|
147
|
+
id: string;
|
|
148
|
+
siteId: string;
|
|
149
|
+
customerId: string;
|
|
150
|
+
subject: WaitlistSubjectRef;
|
|
151
|
+
status: WaitlistEntryStatus;
|
|
152
|
+
joinedAt: string;
|
|
153
|
+
customerEmail: string;
|
|
154
|
+
customerName: string;
|
|
155
|
+
customerPhone: string | null;
|
|
156
|
+
seatCount?: number;
|
|
157
|
+
source: WaitlistJoinSource;
|
|
158
|
+
metadata?: Json | null;
|
|
159
|
+
formSnapshot?: Json | null;
|
|
160
|
+
activeHoldId?: string | null;
|
|
161
|
+
}): WaitlistEntrySnapshot;
|
|
162
|
+
export declare function createWaitlistHoldSnapshot(input: {
|
|
163
|
+
id: string;
|
|
164
|
+
siteId: string;
|
|
165
|
+
waitlistEntryId: string;
|
|
166
|
+
subject: WaitlistSubjectRef;
|
|
167
|
+
status: WaitlistHoldStatus;
|
|
168
|
+
emailDeliveryStatus: WaitlistEmailDeliveryStatus;
|
|
169
|
+
tokenPublicId: string;
|
|
170
|
+
tokenSecretHash: string;
|
|
171
|
+
expiresAt: string;
|
|
172
|
+
}): WaitlistHoldSnapshot;
|
|
@@ -91,36 +91,6 @@ export declare const EVENT_CONTENT_TYPE_SCHEMA: {
|
|
|
91
91
|
readonly plural: "Events";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
export declare const COURSE_CONTENT_TYPE_SCHEMA: {
|
|
95
|
-
readonly version: 1;
|
|
96
|
-
readonly fields: [{
|
|
97
|
-
readonly id: "summary";
|
|
98
|
-
readonly type: "textarea";
|
|
99
|
-
readonly label: "Summary";
|
|
100
|
-
readonly description: "Short teaser shown in listings.";
|
|
101
|
-
readonly rows: 3;
|
|
102
|
-
}, {
|
|
103
|
-
readonly id: "image";
|
|
104
|
-
readonly type: "media";
|
|
105
|
-
readonly label: "Listing image";
|
|
106
|
-
readonly description: "Optional image used for course cards and previews.";
|
|
107
|
-
}, {
|
|
108
|
-
readonly id: "body";
|
|
109
|
-
readonly type: "richText";
|
|
110
|
-
readonly label: "Details";
|
|
111
|
-
readonly description: "Full course details and curriculum.";
|
|
112
|
-
}];
|
|
113
|
-
readonly routing: {
|
|
114
|
-
readonly enabled: true;
|
|
115
|
-
readonly pattern: "/courses/{slug}";
|
|
116
|
-
readonly slugField: "slug";
|
|
117
|
-
readonly prefix: "/courses/";
|
|
118
|
-
};
|
|
119
|
-
readonly labels: {
|
|
120
|
-
readonly singular: "Course";
|
|
121
|
-
readonly plural: "Courses";
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
94
|
export declare const TEAM_MEMBER_CONTENT_TYPE_SCHEMA: {
|
|
125
95
|
readonly version: 1;
|
|
126
96
|
readonly fields: [{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* parallel hand-maintained interface.
|
|
15
15
|
*/
|
|
16
16
|
import type { RichTextDoc } from '../../../blocks/src/system/manifest/richTextSchema';
|
|
17
|
-
import {
|
|
17
|
+
import { EVENT_CONTENT_TYPE_SCHEMA, POST_CONTENT_TYPE_SCHEMA, PRODUCT_CATEGORY_CONTENT_TYPE_SCHEMA, PRODUCT_CONTENT_TYPE_SCHEMA, TEAM_MEMBER_CONTENT_TYPE_SCHEMA, TESTIMONIAL_CONTENT_TYPE_SCHEMA } from './builtin-schemas';
|
|
18
18
|
export interface ContentMediaValue {
|
|
19
19
|
identifier: string;
|
|
20
20
|
url?: string;
|
|
@@ -70,7 +70,6 @@ export type ContentFieldsFromSchema<S extends {
|
|
|
70
70
|
}> = ContentFieldsFromFields<S['fields']>;
|
|
71
71
|
export type PostEntryFields = ContentFieldsFromSchema<typeof POST_CONTENT_TYPE_SCHEMA>;
|
|
72
72
|
export type EventEntryFields = ContentFieldsFromSchema<typeof EVENT_CONTENT_TYPE_SCHEMA>;
|
|
73
|
-
export type CourseEntryFields = ContentFieldsFromSchema<typeof COURSE_CONTENT_TYPE_SCHEMA>;
|
|
74
73
|
export type TeamMemberEntryFields = ContentFieldsFromSchema<typeof TEAM_MEMBER_CONTENT_TYPE_SCHEMA>;
|
|
75
74
|
export type ProductEntryFields = ContentFieldsFromSchema<typeof PRODUCT_CONTENT_TYPE_SCHEMA>;
|
|
76
75
|
export type TestimonialEntryFields = ContentFieldsFromSchema<typeof TESTIMONIAL_CONTENT_TYPE_SCHEMA>;
|
|
@@ -92,7 +91,7 @@ export type ProductCategoryEntryFields = ContentFieldsFromSchema<typeof PRODUCT_
|
|
|
92
91
|
* built-in here forces every consumer (`ContentTypeFields<K>` callers, the
|
|
93
92
|
* snapshot test, the templates in `defaults.ts`) to update.
|
|
94
93
|
*/
|
|
95
|
-
export type BuiltinContentTypeKey = 'post' | 'event' | '
|
|
94
|
+
export type BuiltinContentTypeKey = 'post' | 'event' | 'team-member' | 'product' | 'testimonial' | 'page' | 'product-category';
|
|
96
95
|
/**
|
|
97
96
|
* Typed map from built-in content type key to its field shape. Templates
|
|
98
97
|
* parameterise on this:
|
|
@@ -106,7 +105,6 @@ export type BuiltinContentTypeKey = 'post' | 'event' | 'course' | 'team-member'
|
|
|
106
105
|
export interface BuiltinEntryFieldsByKey {
|
|
107
106
|
post: PostEntryFields;
|
|
108
107
|
event: EventEntryFields;
|
|
109
|
-
course: CourseEntryFields;
|
|
110
108
|
'team-member': TeamMemberEntryFields;
|
|
111
109
|
product: ProductEntryFields;
|
|
112
110
|
testimonial: TestimonialEntryFields;
|
|
@@ -196,36 +194,6 @@ export declare const BUILTIN_CONTENT_TYPE_SCHEMAS: {
|
|
|
196
194
|
readonly plural: "Events";
|
|
197
195
|
};
|
|
198
196
|
};
|
|
199
|
-
readonly course: {
|
|
200
|
-
readonly version: 1;
|
|
201
|
-
readonly fields: [{
|
|
202
|
-
readonly id: "summary";
|
|
203
|
-
readonly type: "textarea";
|
|
204
|
-
readonly label: "Summary";
|
|
205
|
-
readonly description: "Short teaser shown in listings.";
|
|
206
|
-
readonly rows: 3;
|
|
207
|
-
}, {
|
|
208
|
-
readonly id: "image";
|
|
209
|
-
readonly type: "media";
|
|
210
|
-
readonly label: "Listing image";
|
|
211
|
-
readonly description: "Optional image used for course cards and previews.";
|
|
212
|
-
}, {
|
|
213
|
-
readonly id: "body";
|
|
214
|
-
readonly type: "richText";
|
|
215
|
-
readonly label: "Details";
|
|
216
|
-
readonly description: "Full course details and curriculum.";
|
|
217
|
-
}];
|
|
218
|
-
readonly routing: {
|
|
219
|
-
readonly enabled: true;
|
|
220
|
-
readonly pattern: "/courses/{slug}";
|
|
221
|
-
readonly slugField: "slug";
|
|
222
|
-
readonly prefix: "/courses/";
|
|
223
|
-
};
|
|
224
|
-
readonly labels: {
|
|
225
|
-
readonly singular: "Course";
|
|
226
|
-
readonly plural: "Courses";
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
197
|
readonly 'team-member': {
|
|
230
198
|
readonly version: 1;
|
|
231
199
|
readonly fields: [{
|
|
@@ -415,7 +383,6 @@ export declare const BUILTIN_CONTENT_TYPE_SCHEMAS: {
|
|
|
415
383
|
export declare const BUILTIN_CONTENT_TYPE_FIELD_IDS: {
|
|
416
384
|
readonly post: ReadonlySet<string>;
|
|
417
385
|
readonly event: ReadonlySet<string>;
|
|
418
|
-
readonly course: ReadonlySet<string>;
|
|
419
386
|
readonly 'team-member': ReadonlySet<string>;
|
|
420
387
|
readonly product: ReadonlySet<string>;
|
|
421
388
|
readonly testimonial: ReadonlySet<string>;
|
|
@@ -442,10 +409,6 @@ export declare const BUILTIN_PREVIEW_LINKED_ENTRY_EDITING: {
|
|
|
442
409
|
readonly kind: "unsupported-domain-backed";
|
|
443
410
|
readonly reason: "Domain-backed entries need a dedicated editor workflow.";
|
|
444
411
|
};
|
|
445
|
-
readonly course: {
|
|
446
|
-
readonly kind: "unsupported-domain-backed";
|
|
447
|
-
readonly reason: "Domain-backed entries need a dedicated editor workflow.";
|
|
448
|
-
};
|
|
449
412
|
readonly 'team-member': {
|
|
450
413
|
readonly kind: "generic";
|
|
451
414
|
};
|
|
@@ -110,7 +110,6 @@ export declare function isHomepagePageRouteSlug(slug: PageRouteSlug): boolean;
|
|
|
110
110
|
export declare function resolvePageRouteSlug(entry: ContentEntrySnapshot, currentSlug?: string | null): PageRouteSlug | null;
|
|
111
111
|
export declare const ROUTE_METADATA_MANAGED_FIELDS_BY_TYPE: {
|
|
112
112
|
readonly event: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
113
|
-
readonly course: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
114
113
|
readonly product: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
115
114
|
readonly "product-category": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
116
115
|
readonly "team-member": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|