@riverbankcms/sdk 0.132.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 +14 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DKQ5eFK9.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
- package/dist/{PreviewEditorUI-CNTcOjCC.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DJu3qu33.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +48 -17
- package/dist/{SiteChromeCustomizeContext-2TzT3vbj.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4351 -7964
- package/dist/_dts/ai/src/contracts/proposals.d.ts +549 -549
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +234 -234
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +1 -1
- 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 -173
- 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 +7 -11
- 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/contentRuntime.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +30 -110
- 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/navigation/contracts.d.ts +9 -6
- package/dist/_dts/api/src/navigation/linkResolver.d.ts +6 -2
- package/dist/_dts/api/src/navigation/types.d.ts +23 -6
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/publicBookingService.d.ts +15 -0
- 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 +88 -6
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -98
- 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 +2 -2
- package/dist/_dts/api/src/sdkThemeWire.d.ts +50 -50
- package/dist/_dts/api/src/siteBanner.d.ts +4 -2
- package/dist/_dts/api/src/siteOperations.d.ts +2 -2
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/webhooks.d.ts +12 -12
- package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
- package/dist/_dts/blocks/src/client.d.ts +1 -6
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +33 -166
- package/dist/_dts/blocks/src/index.d.ts +3 -2
- 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/primitives/content/components/RichText.d.ts +2 -2
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- 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 +46 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +6 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +148 -148
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +5 -4
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shared/bookingConsent.d.ts +36 -0
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/hydrateLinks.d.ts +9 -2
- package/dist/_dts/blocks/src/system/manifest/resolveBlockData.d.ts +8 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +79 -79
- 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/appointments.d.ts +2 -11
- 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 +100 -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/multi-step/DynamicFormFields.d.ts +3 -19
- 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/hooks/useSelectedAppointmentConsentForm.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.consent.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.field-values.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.fields.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +38 -144
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +5 -19
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -2
- 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/AttendeeDetailsStep.d.ts +2 -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/registrationSurface.d.ts +18 -1
- 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 +24 -9
- 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/validation.d.ts +2 -1
- 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 +40 -18
- 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/BookingConsentAgreement.d.ts +7 -0
- 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 +2 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
- package/dist/_dts/blocks/src/system/types/link.d.ts +7 -1
- 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/content-types/schema.d.ts +4 -4
- 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/booking-consent.d.ts +8 -0
- 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/index.d.ts +1 -0
- 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 +899 -2157
- package/dist/_dts/db/src/schemas/forms.d.ts +21 -21
- package/dist/_dts/db/src/types/jsonb.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +3 -2
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +3 -4
- package/dist/_dts/media-core/src/usageScanner.d.ts +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
- package/dist/_dts/sdk/src/bookings/types.d.ts +8 -60
- package/dist/_dts/sdk/src/config/validation.d.ts +30 -30
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -36
- package/dist/_dts/sdk/src/contracts/rendering.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +9 -9
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -19
- 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/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -12
- package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -72
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +82 -82
- 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/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/client/{usePolling-M5jG675x.mjs → BookingConsentAgreement-BQqwi8Oa.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-DO7llLxm.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
- package/dist/client/{EventCombined.client-xID7zN__.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
- package/dist/client/{EventListing.client-CriBslp0.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DYmHnM8g.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
- package/dist/client/{accordion-CgFbnnnQ.mjs → accordion-BA0j8Mpw.mjs} +1 -1
- package/dist/client/{bookingForm-dUyGpbxc.mjs → bookingForm-Br2e41H0.mjs} +72 -47
- package/dist/client/bookings.mjs +1987 -2132
- package/dist/client/{carousel-BvBwkUzx.mjs → carousel-B4dmwnpD.mjs} +1 -1
- package/dist/client/{cart-DiZENT2E.mjs → cart-B_ckGW4b.mjs} +3 -3
- package/dist/client/{checkout-Dq13KIgR.mjs → checkout-DAyspHdf.mjs} +3 -3
- package/dist/client/checkoutUrls-BuseL0dw.mjs +189 -0
- package/dist/client/client.mjs +5627 -9543
- package/dist/client/{context-B83PiNzm.mjs → context-DljQn8L5.mjs} +15 -82
- package/dist/client/{eventCalendar-BF0Jatfw.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
- package/dist/client/{eventCombined-BuoCF8je.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
- package/dist/client/{eventDetails-CKwh0S9s.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
- package/dist/client/{eventListing-eUxaWFaB.mjs → eventListing-B9aXPO-I.mjs} +3 -3
- package/dist/client/{eventRegistration-CfkNOkPb.mjs → eventRegistration-CBSovBkg.mjs} +4550 -3671
- package/dist/client/{form-C17H1c_H.mjs → form-Cm0tu_7o.mjs} +2 -2
- package/dist/client/{headerSection-DEwUmrtt.mjs → headerSection-OgRtHeKS.mjs} +2 -2
- package/dist/client/hooks.mjs +535 -694
- package/dist/client/{locationMap-Pf2QwuvW.mjs → locationMap-DmjcYqNM.mjs} +2 -2
- package/dist/client/{newsletterForm-BWQAH5Sv.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
- package/dist/client/{productDetail-BZi1Fa_G.mjs → productDetail-BqZeu2P4.mjs} +3 -3
- package/dist/client/{productList-qq-55DNk.mjs → productList-mNyIF9FG.mjs} +3 -3
- package/dist/client/{propsDecoder-BxmqPKdP.mjs → propsDecoder-DwHXRm9X.mjs} +4850 -4502
- package/dist/client/rendering/client.mjs +59921 -62298
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +6226 -10236
- package/dist/client/{scrollToBlock-B3CcKdtG.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
- package/dist/client/{shop-DNWJPut5.mjs → shop-CNjZK16F.mjs} +6 -6
- package/dist/client/{shop-commerce-BhvQCosS.mjs → shop-commerce-DkNNao1J.mjs} +7 -164
- package/dist/client/{shop-commerce-store-B04sCNnW.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
- package/dist/client/{shopShared-DNNgZlmW.mjs → shopShared-CHCVfccY.mjs} +3 -3
- package/dist/client/{useEventFilters-CUmhE24_.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-BEXb1wqo.mjs → sdk-runtime-3GhW4knb.mjs} +2 -2
- package/dist/{separator-DGMuip1D.mjs → separator-D3bCWYYb.mjs} +1 -1
- package/dist/server/components.mjs +634 -2969
- package/dist/server/config-validation.mjs +535 -694
- package/dist/server/config.mjs +535 -694
- package/dist/server/data.mjs +535 -694
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +644 -2979
- package/dist/server/page-converter.mjs +435 -561
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +635 -2874
- package/dist/server/rendering.mjs +634 -2969
- package/dist/server/routing.mjs +706 -1138
- package/dist/server/server.mjs +549 -708
- package/dist/server/theme-bridge.mjs +152 -1635
- package/dist/styles/index.css +41 -1348
- package/package.json +2 -2
- 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 -133
- 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 -45
- 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 -323
- 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/StepIndicator-CGixP_LW.mjs +0 -138
- package/dist/client/WholeSeriesRegistrationWizard-BEjzSiOA.mjs +0 -2496
- package/dist/client/checkoutUrls-Ct8Mxna3.mjs +0 -26
- package/dist/client/courseRegistration-CKC5NmyH.mjs +0 -52
- package/dist/client/pricing-CVdvbopJ.mjs +0 -195
|
@@ -37,8 +37,8 @@ export { type GeneratedIconAssetId, type GeneratedIconSetId, parseSiteIconStyleG
|
|
|
37
37
|
export { isSemanticIconId, type SemanticIconId } from './system/icons/semantic';
|
|
38
38
|
export { getGeneratedBlockIconStyleState, parseBlockIconValue, type GeneratedBlockIconValue, type GeneratedBlockIconStyleState, } from './system/icons/value';
|
|
39
39
|
export { SUPPORTED_LOADER_ENDPOINTS, isSupportedLoaderEndpoint, type SupportedLoaderEndpoint, } from './system/data';
|
|
40
|
-
export type { AuthoredLinkValue, LinkValue, InternalLinkValue, InternalResolvedLinkValue, InternalRouteOnlyLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, } from './system/types/link';
|
|
41
|
-
export { linkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, externalLinkSchema, customLinkSchema, pageLinkSchema, entryLinkSchema, isInternalResolvedLinkValue, } from './system/types/link';
|
|
40
|
+
export type { AuthoredLinkValue, LinkValue, InternalLinkValue, InternalResolvedLinkValue, InternalRouteOnlyLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, ResolvedInternalLinkEntityType, } from './system/types/link';
|
|
41
|
+
export { RESOLVED_INTERNAL_LINK_ENTITY_TYPES, isResolvedInternalLinkEntityType, linkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, externalLinkSchema, customLinkSchema, pageLinkSchema, entryLinkSchema, isInternalResolvedLinkValue, } from './system/types/link';
|
|
42
42
|
export { heroManifest } from './system/blocks/hero';
|
|
43
43
|
export type { HeroContent, HeroMedia } from './system/blocks/hero';
|
|
44
44
|
export { bodyTextManifest } from './system/blocks/body-text';
|
|
@@ -68,6 +68,7 @@ export type { BookingOfferingPresetSummary, OfferingsPreviewContent, OfferingsPr
|
|
|
68
68
|
export type { FormRecord, FormFieldDef, } from './system/runtime/nodes/form.types';
|
|
69
69
|
export { APPOINTMENT_BOOKING_BLOCK_ID, BOOKING_FORM_DATA_RESERVED_KEYS, BOOKING_FORM_DATA_RESERVED_KEY_VALUES, collectBookingReservedFieldCollisions, findBookingFormDataReservedFieldCollisions, formatBookingReservedFieldCollisionMessages, formatBookingFormDataReservedFieldMessage, isBookingFormDataReservedKey, type BookingFormDataReservedKey, type BookingReservedFieldCollision, } from './system/runtime/nodes/booking-form.reserved-fields';
|
|
70
70
|
export type { ShopDisplayConfig } from './system/runtime/nodes/shop.types';
|
|
71
|
+
export { BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX, blockBookingConsentSchema, bookingConsentCarrierSchema, isBookingRequirementConsentFieldId, toBookingRequirementConsentField, toBookingRequirementConsentFieldId, type BlockBookingConsent, type BookingConsentCarrier, type BookingRequirementConsentField, } from './system/blocks/shared/bookingConsent';
|
|
71
72
|
export type { SemanticSpacing } from './system/spacing';
|
|
72
73
|
export { defineFrameCapability, flushPanelFrame, panelFrame, plainFrame, resolveFrameStyles, } from './system/frame/frameStyles';
|
|
73
74
|
export type { ContentFrameIntent, FlushFrameTreatment, FlushPanelFrameIntent, FrameBleedEdge, FrameCapability, FrameDecisionFor, FrameKind, PanelFrameIntent, PanelFrameTreatment, PlainFrameIntent, ResolvedFlushPanelFrame, ResolvedFrameStyles, ResolvedPanelFrame, ResolvedPlainFrame, SectionPaddingX, FrameSurfaceOwner, } from './system/frame/frameStyles';
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* route. Status values use British spelling ('cancelled') to match the backend.
|
|
6
6
|
*/
|
|
7
7
|
import type { OrderInstalmentSummary, OrderInstalmentSummaryRow, OrderInstalmentPlanStatus, OrderInstalmentStatus } from '../../../core/src/index';
|
|
8
|
+
export { formatDate, formatDateTime } from './dateFormatting';
|
|
8
9
|
type JsonPrimitive = string | number | boolean | null;
|
|
9
10
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
10
11
|
[key: string]: JsonValue | undefined;
|
|
@@ -119,18 +120,14 @@ export interface EventGuest {
|
|
|
119
120
|
phone: string | null;
|
|
120
121
|
guestIndex: number;
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
* Customer course enrollment data from /api/portal/dated-offerings/whole-series
|
|
124
|
-
* Note: status uses British spelling 'cancelled'
|
|
125
|
-
*/
|
|
126
|
-
export interface CustomerCourseEnrollment {
|
|
123
|
+
export interface CustomerEventSeriesRegistration {
|
|
127
124
|
id: string;
|
|
128
125
|
eventSeriesId: string | null;
|
|
129
|
-
|
|
130
|
-
/** Path to the
|
|
131
|
-
|
|
126
|
+
eventTitle: string;
|
|
127
|
+
/** Path to the Event page (published route) when available */
|
|
128
|
+
eventPath?: string | null;
|
|
132
129
|
/** Rich text description in ProseMirror/TipTap JSON format, or null if not set */
|
|
133
|
-
|
|
130
|
+
eventDescription: unknown;
|
|
134
131
|
status: 'pending_payment' | 'enrolled' | 'waitlist' | 'cancelled' | 'completed';
|
|
135
132
|
paymentMethod: 'free' | 'membership' | 'stripe' | null;
|
|
136
133
|
paymentStatus: 'not_required' | 'pending' | 'completed' | 'failed' | 'refunded' | null;
|
|
@@ -146,6 +143,15 @@ export interface CustomerCourseEnrollment {
|
|
|
146
143
|
endsAt: string | null;
|
|
147
144
|
timeZone: string;
|
|
148
145
|
}>;
|
|
146
|
+
participantCount: number;
|
|
147
|
+
ticketSummary: readonly Readonly<{
|
|
148
|
+
label: string;
|
|
149
|
+
quantity: number;
|
|
150
|
+
}>[];
|
|
151
|
+
participants: readonly Readonly<{
|
|
152
|
+
displayName: string | null;
|
|
153
|
+
isBooker: boolean;
|
|
154
|
+
}>[];
|
|
149
155
|
beforeYouCome: BeforeYouComeTaskSummary | null;
|
|
150
156
|
/** Venue information */
|
|
151
157
|
venue: {
|
|
@@ -277,7 +283,7 @@ export interface PortalCredit {
|
|
|
277
283
|
export type CustomerOrderFilter = 'all' | 'products' | 'bookings' | 'passes' | 'memberships';
|
|
278
284
|
export interface CustomerOrderItem {
|
|
279
285
|
id: string;
|
|
280
|
-
kind: 'product' | 'event_ticket' | '
|
|
286
|
+
kind: 'product' | 'event_ticket' | 'event_series_registration' | 'pass' | 'membership' | 'appointment';
|
|
281
287
|
displayName: string;
|
|
282
288
|
quantity: number;
|
|
283
289
|
unitPriceCents: number;
|
|
@@ -434,15 +440,7 @@ export declare function formatOrderInstalmentStatusLabel(instalment: CustomerOrd
|
|
|
434
440
|
export declare function getDigitalProductAccessBadgeVariant(status: PortalDigitalProduct['accessState']): BadgeVariant;
|
|
435
441
|
export declare function digitalProductModeLabel(mode: PortalDigitalProduct['fulfillmentMode']): string;
|
|
436
442
|
export declare function summarizeCustomerOrderFilters(orders: readonly CustomerOrder[]): CustomerOrderFilterSummary;
|
|
437
|
-
|
|
438
|
-
* Get badge variant for course enrollment status
|
|
439
|
-
*/
|
|
440
|
-
export declare function getCourseEnrollmentBadgeVariant(status: CustomerCourseEnrollment['status']): BadgeVariant;
|
|
441
|
-
export declare function formatDate(dateStr: string | null | undefined): string;
|
|
442
|
-
/**
|
|
443
|
-
* Format date and time for display
|
|
444
|
-
*/
|
|
445
|
-
export declare function formatDateTime(dateStr: string | null | undefined): string;
|
|
443
|
+
export declare function getEventSeriesRegistrationBadgeVariant(status: CustomerEventSeriesRegistration['status']): BadgeVariant;
|
|
446
444
|
/**
|
|
447
445
|
* Format relative time (e.g., "in 3 days", "2 hours ago")
|
|
448
446
|
*/
|
|
@@ -457,4 +455,3 @@ export declare function isPast(dateStr: string | null | undefined): boolean;
|
|
|
457
455
|
export declare function isFuture(dateStr: string | null | undefined): boolean;
|
|
458
456
|
export declare function formatCurrencyCents(amountCents: number, currency: string): string;
|
|
459
457
|
export declare function formatCreditTransactionType(type: string): string;
|
|
460
|
-
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { RichTextPrimitiveProps } from "../primitives";
|
|
3
|
-
export default function RichText({ as: Comp, className, doc, path }: RichTextPrimitiveProps): React.JSX.Element;
|
|
3
|
+
export default function RichText({ as: Comp, className, doc, path, linkTarget, }: RichTextPrimitiveProps): React.JSX.Element;
|
|
@@ -22,6 +22,7 @@ export type RichTextPrimitiveProps = {
|
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
ariaLabel?: string;
|
|
24
24
|
blockData?: Record<string, unknown> | null;
|
|
25
|
+
linkTarget?: "stored" | "new-tab";
|
|
25
26
|
};
|
|
26
27
|
export type RichTextVariant = "full" | "inline" | "limited" | "media" | "notes";
|
|
27
28
|
export type PrimitiveAPI = {
|
|
@@ -3,6 +3,7 @@ import type { SectionStylesContent } from '../fields/boxStyles';
|
|
|
3
3
|
import { type PublicEvent } from './events/shared';
|
|
4
4
|
import { eventRegistrationBlockRuntime } from '../runtime/nodes/event-registration.interactive';
|
|
5
5
|
import type { BlockButtonRole } from '../constants/buttonRoles';
|
|
6
|
+
import type { BlockBookingPaymentTerms } from './shared/bookingPaymentTerms';
|
|
6
7
|
/**
|
|
7
8
|
* Event Registration Block
|
|
8
9
|
*
|
|
@@ -83,26 +84,6 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
83
84
|
readonly ui: {
|
|
84
85
|
readonly intent: "display";
|
|
85
86
|
};
|
|
86
|
-
}, {
|
|
87
|
-
readonly id: "showSessions";
|
|
88
|
-
readonly type: "boolean";
|
|
89
|
-
readonly label: "Show complete schedule";
|
|
90
|
-
readonly description: "Display every session for whole-series registrations";
|
|
91
|
-
readonly required: false;
|
|
92
|
-
readonly defaultValue: true;
|
|
93
|
-
readonly ui: {
|
|
94
|
-
readonly intent: "display";
|
|
95
|
-
};
|
|
96
|
-
}, {
|
|
97
|
-
readonly id: "showPrice";
|
|
98
|
-
readonly type: "boolean";
|
|
99
|
-
readonly label: "Show price";
|
|
100
|
-
readonly description: "Display the whole-series price";
|
|
101
|
-
readonly required: false;
|
|
102
|
-
readonly defaultValue: true;
|
|
103
|
-
readonly ui: {
|
|
104
|
-
readonly intent: "display";
|
|
105
|
-
};
|
|
106
87
|
}, {
|
|
107
88
|
readonly id: "successMessage";
|
|
108
89
|
readonly type: "text";
|
|
@@ -112,24 +93,6 @@ export declare const eventRegistrationManifest: import("..").DefinedBlockManifes
|
|
|
112
93
|
readonly multiline: true;
|
|
113
94
|
readonly defaultValue: "Thank you for registering! Check your email for confirmation details.";
|
|
114
95
|
readonly maxLength: 500;
|
|
115
|
-
}, {
|
|
116
|
-
readonly id: "waitlistMessage";
|
|
117
|
-
readonly type: "text";
|
|
118
|
-
readonly label: "Waitlist message";
|
|
119
|
-
readonly description: "Message shown after joining a whole-series waitlist";
|
|
120
|
-
readonly required: false;
|
|
121
|
-
readonly multiline: true;
|
|
122
|
-
readonly defaultValue: "You've been added to the waitlist. We'll email you if a place becomes available.";
|
|
123
|
-
readonly maxLength: 500;
|
|
124
|
-
}, {
|
|
125
|
-
readonly id: "membershipMessage";
|
|
126
|
-
readonly type: "text";
|
|
127
|
-
readonly label: "Membership registration message";
|
|
128
|
-
readonly description: "Message shown when a whole-series place is covered by membership";
|
|
129
|
-
readonly required: false;
|
|
130
|
-
readonly multiline: true;
|
|
131
|
-
readonly defaultValue: "Registered using your membership. Check your email for session details.";
|
|
132
|
-
readonly maxLength: 500;
|
|
133
96
|
}, {
|
|
134
97
|
readonly id: "buttonText";
|
|
135
98
|
readonly type: "text";
|
|
@@ -147,15 +110,157 @@ export type EventRegistrationContent = {
|
|
|
147
110
|
maxTickets?: '1' | '2' | '3' | '5' | '10' | null;
|
|
148
111
|
showVenue?: boolean | null;
|
|
149
112
|
showCapacity?: boolean | null;
|
|
150
|
-
showSessions?: boolean | null;
|
|
151
|
-
showPrice?: boolean | null;
|
|
152
113
|
successMessage?: string | null;
|
|
153
|
-
waitlistMessage?: string | null;
|
|
154
|
-
membershipMessage?: string | null;
|
|
155
114
|
buttonText?: string | null;
|
|
156
115
|
buttonVariant?: BlockButtonRole | null;
|
|
157
116
|
_sectionStyles?: SectionStylesContent;
|
|
158
117
|
};
|
|
118
|
+
export type EventRegistrationOptionsRequest = Readonly<{
|
|
119
|
+
subject: Readonly<{
|
|
120
|
+
kind: 'occurrence';
|
|
121
|
+
occurrenceId: string;
|
|
122
|
+
attendanceMode?: 'in_person' | 'online';
|
|
123
|
+
}> | Readonly<{
|
|
124
|
+
kind: 'wholeSeries';
|
|
125
|
+
eventSeriesId: string;
|
|
126
|
+
attendanceMode?: 'in_person' | 'online';
|
|
127
|
+
}>;
|
|
128
|
+
selections: readonly Readonly<{
|
|
129
|
+
pricingOptionId: string | null;
|
|
130
|
+
quantity: number;
|
|
131
|
+
}>[];
|
|
132
|
+
selectedSlidingAmount?: number;
|
|
133
|
+
}>;
|
|
134
|
+
export type EventRegistrationOptionsResponse = Readonly<{
|
|
135
|
+
subject: Readonly<{
|
|
136
|
+
kind: 'occurrence';
|
|
137
|
+
occurrenceId: string;
|
|
138
|
+
}> | Readonly<{
|
|
139
|
+
kind: 'wholeSeries';
|
|
140
|
+
eventSeriesId: string;
|
|
141
|
+
}>;
|
|
142
|
+
availability: Readonly<{
|
|
143
|
+
kind: 'available';
|
|
144
|
+
remainingPlaces: number | null;
|
|
145
|
+
waitlistEnabled: boolean;
|
|
146
|
+
}> | Readonly<{
|
|
147
|
+
kind: 'waitlist';
|
|
148
|
+
remainingPlaces: 0;
|
|
149
|
+
waitlistEnabled: true;
|
|
150
|
+
}> | Readonly<{
|
|
151
|
+
kind: 'unavailable';
|
|
152
|
+
reason: 'full' | 'bookingClosed' | 'paymentUnavailable' | 'selectionRequired';
|
|
153
|
+
remainingPlaces: number | null;
|
|
154
|
+
waitlistEnabled: boolean;
|
|
155
|
+
}>;
|
|
156
|
+
registration: Readonly<{
|
|
157
|
+
kind: 'none';
|
|
158
|
+
}> | Readonly<{
|
|
159
|
+
kind: 'booked';
|
|
160
|
+
}> | Readonly<{
|
|
161
|
+
kind: 'waitlisted';
|
|
162
|
+
}>;
|
|
163
|
+
pricing: Readonly<{
|
|
164
|
+
mode: 'single' | 'ticket_types' | 'sliding_scale';
|
|
165
|
+
currency: string;
|
|
166
|
+
subtotalCents: number;
|
|
167
|
+
requiresPayment: boolean;
|
|
168
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
169
|
+
lines: readonly EventRegistrationOptionLine[];
|
|
170
|
+
options: readonly EventRegistrationPricingOption[];
|
|
171
|
+
}>;
|
|
172
|
+
paymentOptions: readonly EventRegistrationAvailablePaymentOption[];
|
|
173
|
+
customer: Readonly<{
|
|
174
|
+
kind: 'anonymous';
|
|
175
|
+
credit: null;
|
|
176
|
+
}> | Readonly<{
|
|
177
|
+
kind: 'authenticated';
|
|
178
|
+
credit: Readonly<{
|
|
179
|
+
availableCents: number;
|
|
180
|
+
currency: string;
|
|
181
|
+
}> | null;
|
|
182
|
+
}>;
|
|
183
|
+
entitlements: Readonly<{
|
|
184
|
+
requiresLoginForMemberships: boolean;
|
|
185
|
+
requiresLoginForPasses: boolean;
|
|
186
|
+
memberships: readonly EventRegistrationOwnedMembership[];
|
|
187
|
+
passes: readonly EventRegistrationOwnedPass[];
|
|
188
|
+
availableForPurchase: Readonly<{
|
|
189
|
+
passes: readonly EventRegistrationPassProduct[];
|
|
190
|
+
memberships: readonly EventRegistrationMembershipProduct[];
|
|
191
|
+
}>;
|
|
192
|
+
}>;
|
|
193
|
+
}>;
|
|
194
|
+
export type EventRegistrationAvailablePaymentOption = Readonly<{
|
|
195
|
+
kind: 'free';
|
|
196
|
+
}> | Readonly<{
|
|
197
|
+
kind: 'payInFull' | 'deferredManual' | 'instalmentPlan' | 'flexibleBalance';
|
|
198
|
+
amountCents: number;
|
|
199
|
+
currency: string;
|
|
200
|
+
}> | Readonly<{
|
|
201
|
+
kind: 'ownedMembership';
|
|
202
|
+
membershipId: string;
|
|
203
|
+
}> | Readonly<{
|
|
204
|
+
kind: 'ownedPass';
|
|
205
|
+
passId: string;
|
|
206
|
+
}> | Readonly<{
|
|
207
|
+
kind: 'buyMembership' | 'buyPass';
|
|
208
|
+
productId: string;
|
|
209
|
+
}>;
|
|
210
|
+
export type EventRegistrationOptionLine = Readonly<{
|
|
211
|
+
pricingOptionId: string | null;
|
|
212
|
+
label: string;
|
|
213
|
+
description: string | null;
|
|
214
|
+
quantity: number;
|
|
215
|
+
unitPriceCents: number;
|
|
216
|
+
subtotalCents: number;
|
|
217
|
+
}>;
|
|
218
|
+
export type EventRegistrationPricingOption = Readonly<{
|
|
219
|
+
pricingOptionId: string;
|
|
220
|
+
label: string;
|
|
221
|
+
description: string | null;
|
|
222
|
+
unitPriceCents: number;
|
|
223
|
+
sortOrder: number;
|
|
224
|
+
capacityLimit: number | null;
|
|
225
|
+
saleStartsAt: string | null;
|
|
226
|
+
saleEndsAt: string | null;
|
|
227
|
+
attendanceScope: 'in_person' | 'online' | 'both';
|
|
228
|
+
availability: Readonly<{
|
|
229
|
+
kind: 'available';
|
|
230
|
+
remainingPlaces: number | null;
|
|
231
|
+
}> | Readonly<{
|
|
232
|
+
kind: 'unavailable';
|
|
233
|
+
reason: 'inactive' | 'notOnSaleYet' | 'saleEnded' | 'soldOut' | 'attendanceModeUnavailable' | 'overallCapacityUnavailable';
|
|
234
|
+
remainingPlaces: number | null;
|
|
235
|
+
}>;
|
|
236
|
+
}>;
|
|
237
|
+
export type EventRegistrationOwnedMembership = Readonly<{
|
|
238
|
+
customerMembershipId: string;
|
|
239
|
+
membershipName: string;
|
|
240
|
+
}>;
|
|
241
|
+
export type EventRegistrationOwnedPass = Readonly<{
|
|
242
|
+
customerPassId: string;
|
|
243
|
+
passName: string;
|
|
244
|
+
creditsRemaining: number;
|
|
245
|
+
}>;
|
|
246
|
+
export type EventRegistrationPassProduct = Readonly<{
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
description: string | null;
|
|
250
|
+
price: number;
|
|
251
|
+
currency: string;
|
|
252
|
+
creditsTotal: number;
|
|
253
|
+
pricePerCredit: number;
|
|
254
|
+
validDays: number | null;
|
|
255
|
+
}>;
|
|
256
|
+
export type EventRegistrationMembershipProduct = Readonly<{
|
|
257
|
+
id: string;
|
|
258
|
+
name: string;
|
|
259
|
+
description: string | null;
|
|
260
|
+
price: number;
|
|
261
|
+
currency: string;
|
|
262
|
+
interval: 'month' | 'year';
|
|
263
|
+
}>;
|
|
159
264
|
export type { PublicEvent };
|
|
160
265
|
export type { OccurrenceContext } from './event-registration.shared';
|
|
161
266
|
export declare const eventRegistrationBlockDefinition: SystemBlockDefinition<EventRegistrationContent, typeof eventRegistrationBlockRuntime>;
|
|
@@ -82,7 +82,7 @@ export declare const eventPricingModeSchema: z.ZodEnum<{
|
|
|
82
82
|
single: "single";
|
|
83
83
|
ticket_types: "ticket_types";
|
|
84
84
|
}>;
|
|
85
|
-
export declare const
|
|
85
|
+
export declare const publicWholeSeriesPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
86
|
kind: z.ZodLiteral<"free">;
|
|
87
87
|
currency: z.ZodString;
|
|
88
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -125,7 +125,7 @@ export declare const publicEventPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
125
125
|
kind: z.ZodLiteral<"external">;
|
|
126
126
|
label: z.ZodString;
|
|
127
127
|
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
-
kind: z.ZodLiteral<"
|
|
128
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
129
129
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
130
130
|
kind: z.ZodLiteral<"free">;
|
|
131
131
|
currency: z.ZodString;
|
|
@@ -168,13 +168,13 @@ export declare const publicEventTicketTypePriceDisplaySchema: z.ZodUnion<readonl
|
|
|
168
168
|
currency: z.ZodString;
|
|
169
169
|
}, z.core.$strip>]>;
|
|
170
170
|
export declare const publicEventAttendanceModeSchema: z.ZodEnum<{
|
|
171
|
-
in_person: "in_person";
|
|
172
171
|
online: "online";
|
|
172
|
+
in_person: "in_person";
|
|
173
173
|
}>;
|
|
174
174
|
export declare const publicEventAttendanceModeAvailabilitySchema: z.ZodObject<{
|
|
175
175
|
mode: z.ZodEnum<{
|
|
176
|
-
in_person: "in_person";
|
|
177
176
|
online: "online";
|
|
177
|
+
in_person: "in_person";
|
|
178
178
|
}>;
|
|
179
179
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
180
180
|
registeredCount: z.ZodNumber;
|
|
@@ -210,9 +210,9 @@ export declare const publicEventTicketTypeSchema: z.ZodObject<{
|
|
|
210
210
|
}>;
|
|
211
211
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
212
212
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
213
|
-
in_person: "in_person";
|
|
214
213
|
both: "both";
|
|
215
214
|
online: "online";
|
|
215
|
+
in_person: "in_person";
|
|
216
216
|
}>>;
|
|
217
217
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
218
218
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -274,9 +274,9 @@ export declare const publicEventPricingSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
274
274
|
}>;
|
|
275
275
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
276
276
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
in_person: "in_person";
|
|
278
277
|
both: "both";
|
|
279
278
|
online: "online";
|
|
279
|
+
in_person: "in_person";
|
|
280
280
|
}>>;
|
|
281
281
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
282
282
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -335,9 +335,9 @@ export declare const publicEventPricingSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
335
335
|
currency: z.ZodString;
|
|
336
336
|
}, z.core.$strip>;
|
|
337
337
|
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
-
kind: z.ZodLiteral<"
|
|
338
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
339
339
|
display: z.ZodObject<{
|
|
340
|
-
kind: z.ZodLiteral<"
|
|
340
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
341
341
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
342
|
kind: z.ZodLiteral<"free">;
|
|
343
343
|
currency: z.ZodString;
|
|
@@ -391,8 +391,8 @@ export declare const publicEventBookingAvailabilitySchema: z.ZodDiscriminatedUni
|
|
|
391
391
|
*/
|
|
392
392
|
export declare const publicEventSchema: z.ZodObject<{
|
|
393
393
|
bookingScope: z.ZodEnum<{
|
|
394
|
-
single_occurrence: "single_occurrence";
|
|
395
394
|
whole_series: "whole_series";
|
|
395
|
+
single_occurrence: "single_occurrence";
|
|
396
396
|
}>;
|
|
397
397
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
398
398
|
course: "course";
|
|
@@ -731,14 +731,14 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
731
731
|
}>;
|
|
732
732
|
}, z.core.$strip>], "kind">;
|
|
733
733
|
deliveryMode: z.ZodEnum<{
|
|
734
|
+
online: "online";
|
|
734
735
|
in_person: "in_person";
|
|
735
736
|
hybrid: "hybrid";
|
|
736
|
-
online: "online";
|
|
737
737
|
}>;
|
|
738
738
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
739
739
|
mode: z.ZodEnum<{
|
|
740
|
-
in_person: "in_person";
|
|
741
740
|
online: "online";
|
|
741
|
+
in_person: "in_person";
|
|
742
742
|
}>;
|
|
743
743
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
744
744
|
registeredCount: z.ZodNumber;
|
|
@@ -821,9 +821,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
821
821
|
}>;
|
|
822
822
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
823
823
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
824
|
-
in_person: "in_person";
|
|
825
824
|
both: "both";
|
|
826
825
|
online: "online";
|
|
826
|
+
in_person: "in_person";
|
|
827
827
|
}>>;
|
|
828
828
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
829
829
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -882,9 +882,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
882
882
|
currency: z.ZodString;
|
|
883
883
|
}, z.core.$strip>;
|
|
884
884
|
}, z.core.$strip>, z.ZodObject<{
|
|
885
|
-
kind: z.ZodLiteral<"
|
|
885
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
886
886
|
display: z.ZodObject<{
|
|
887
|
-
kind: z.ZodLiteral<"
|
|
887
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
888
888
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
889
889
|
kind: z.ZodLiteral<"free">;
|
|
890
890
|
currency: z.ZodString;
|
|
@@ -970,6 +970,17 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
970
970
|
}, z.core.$strip>;
|
|
971
971
|
}, z.core.$strip>]>>;
|
|
972
972
|
}, z.core.$strip>;
|
|
973
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
974
|
+
requirementId: string;
|
|
975
|
+
title: string;
|
|
976
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
977
|
+
checkboxLabel: string;
|
|
978
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
979
|
+
requirementId: string;
|
|
980
|
+
title: string;
|
|
981
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
982
|
+
checkboxLabel: string;
|
|
983
|
+
}>, unknown>>>;
|
|
973
984
|
accessRestriction: z.ZodEnum<{
|
|
974
985
|
none: "none";
|
|
975
986
|
category: "category";
|
|
@@ -982,8 +993,8 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
982
993
|
eventSeriesId: z.ZodString;
|
|
983
994
|
pricing: z.ZodObject<{
|
|
984
995
|
bookingRequirement: z.ZodEnum<{
|
|
985
|
-
required: "required";
|
|
986
996
|
none: "none";
|
|
997
|
+
required: "required";
|
|
987
998
|
}>;
|
|
988
999
|
pricingStrategy: z.ZodEnum<{
|
|
989
1000
|
single: "single";
|
|
@@ -1069,9 +1080,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1069
1080
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1070
1081
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
1071
1082
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1072
|
-
in_person: "in_person";
|
|
1073
1083
|
both: "both";
|
|
1074
1084
|
online: "online";
|
|
1085
|
+
in_person: "in_person";
|
|
1075
1086
|
}>>>;
|
|
1076
1087
|
}, z.core.$strip>>;
|
|
1077
1088
|
}, z.core.$strip>;
|
|
@@ -1084,8 +1095,8 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1084
1095
|
*/
|
|
1085
1096
|
export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
1086
1097
|
bookingScope: z.ZodEnum<{
|
|
1087
|
-
single_occurrence: "single_occurrence";
|
|
1088
1098
|
whole_series: "whole_series";
|
|
1099
|
+
single_occurrence: "single_occurrence";
|
|
1089
1100
|
}>;
|
|
1090
1101
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1091
1102
|
course: "course";
|
|
@@ -1424,14 +1435,14 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1424
1435
|
}>;
|
|
1425
1436
|
}, z.core.$strip>], "kind">;
|
|
1426
1437
|
deliveryMode: z.ZodEnum<{
|
|
1438
|
+
online: "online";
|
|
1427
1439
|
in_person: "in_person";
|
|
1428
1440
|
hybrid: "hybrid";
|
|
1429
|
-
online: "online";
|
|
1430
1441
|
}>;
|
|
1431
1442
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
1432
1443
|
mode: z.ZodEnum<{
|
|
1433
|
-
in_person: "in_person";
|
|
1434
1444
|
online: "online";
|
|
1445
|
+
in_person: "in_person";
|
|
1435
1446
|
}>;
|
|
1436
1447
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1437
1448
|
registeredCount: z.ZodNumber;
|
|
@@ -1514,9 +1525,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1514
1525
|
}>;
|
|
1515
1526
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
1516
1527
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
1517
|
-
in_person: "in_person";
|
|
1518
1528
|
both: "both";
|
|
1519
1529
|
online: "online";
|
|
1530
|
+
in_person: "in_person";
|
|
1520
1531
|
}>>;
|
|
1521
1532
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1522
1533
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1575,9 +1586,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1575
1586
|
currency: z.ZodString;
|
|
1576
1587
|
}, z.core.$strip>;
|
|
1577
1588
|
}, z.core.$strip>, z.ZodObject<{
|
|
1578
|
-
kind: z.ZodLiteral<"
|
|
1589
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1579
1590
|
display: z.ZodObject<{
|
|
1580
|
-
kind: z.ZodLiteral<"
|
|
1591
|
+
kind: z.ZodLiteral<"whole_series">;
|
|
1581
1592
|
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1582
1593
|
kind: z.ZodLiteral<"free">;
|
|
1583
1594
|
currency: z.ZodString;
|
|
@@ -1663,6 +1674,17 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1663
1674
|
}, z.core.$strip>;
|
|
1664
1675
|
}, z.core.$strip>]>>;
|
|
1665
1676
|
}, z.core.$strip>;
|
|
1677
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1678
|
+
requirementId: string;
|
|
1679
|
+
title: string;
|
|
1680
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
1681
|
+
checkboxLabel: string;
|
|
1682
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
1683
|
+
requirementId: string;
|
|
1684
|
+
title: string;
|
|
1685
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
1686
|
+
checkboxLabel: string;
|
|
1687
|
+
}>, unknown>>>;
|
|
1666
1688
|
accessRestriction: z.ZodEnum<{
|
|
1667
1689
|
none: "none";
|
|
1668
1690
|
category: "category";
|
|
@@ -1675,8 +1697,8 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1675
1697
|
eventSeriesId: z.ZodString;
|
|
1676
1698
|
pricing: z.ZodObject<{
|
|
1677
1699
|
bookingRequirement: z.ZodEnum<{
|
|
1678
|
-
required: "required";
|
|
1679
1700
|
none: "none";
|
|
1701
|
+
required: "required";
|
|
1680
1702
|
}>;
|
|
1681
1703
|
pricingStrategy: z.ZodEnum<{
|
|
1682
1704
|
single: "single";
|
|
@@ -1762,9 +1784,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1762
1784
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1763
1785
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
1764
1786
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1765
|
-
in_person: "in_person";
|
|
1766
1787
|
both: "both";
|
|
1767
1788
|
online: "online";
|
|
1789
|
+
in_person: "in_person";
|
|
1768
1790
|
}>>>;
|
|
1769
1791
|
}, z.core.$strip>>;
|
|
1770
1792
|
}, z.core.$strip>;
|
|
@@ -5,6 +5,7 @@ import type { LocationCoordinates, PublicEventPricing, PublicEventPricingType, P
|
|
|
5
5
|
import type { Media } from '../../../../lib/media';
|
|
6
6
|
import type { RichTextDoc } from '../../../manifest/richTextSchema';
|
|
7
7
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
8
|
+
import type { BlockBookingConsent } from '../../shared/bookingConsent';
|
|
8
9
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
9
10
|
import type { WholeSeriesPricing } from '../whole-series';
|
|
10
11
|
import type { eventCalendarDefaultViewValues, eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
@@ -151,6 +152,8 @@ export type PublicEvent = {
|
|
|
151
152
|
pricing: PublicEventPricing<PublicEventTicketType>;
|
|
152
153
|
/** Shared booking payment-terms model for appointments/events/courses. */
|
|
153
154
|
paymentTerms: BlockBookingPaymentTerms;
|
|
155
|
+
/** Consent that must be accepted before registration, when configured. */
|
|
156
|
+
consent: BlockBookingConsent | null;
|
|
154
157
|
/** Access restriction type */
|
|
155
158
|
accessRestriction: AccessRestriction;
|
|
156
159
|
/** Event category IDs when accessRestriction is 'category' */
|
|
@@ -31,15 +31,15 @@ export declare const wholeSeriesPricingOptionSchema: z.ZodObject<{
|
|
|
31
31
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
32
32
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
33
33
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
34
|
-
in_person: "in_person";
|
|
35
34
|
both: "both";
|
|
36
35
|
online: "online";
|
|
36
|
+
in_person: "in_person";
|
|
37
37
|
}>>>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export declare const wholeSeriesPricingSchema: z.ZodObject<{
|
|
40
40
|
bookingRequirement: z.ZodEnum<{
|
|
41
|
-
required: "required";
|
|
42
41
|
none: "none";
|
|
42
|
+
required: "required";
|
|
43
43
|
}>;
|
|
44
44
|
pricingStrategy: z.ZodEnum<{
|
|
45
45
|
single: "single";
|
|
@@ -125,9 +125,9 @@ export declare const wholeSeriesPricingSchema: z.ZodObject<{
|
|
|
125
125
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
126
126
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
127
127
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
128
|
-
in_person: "in_person";
|
|
129
128
|
both: "both";
|
|
130
129
|
online: "online";
|
|
130
|
+
in_person: "in_person";
|
|
131
131
|
}>>>;
|
|
132
132
|
}, z.core.$strip>>;
|
|
133
133
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Canonical public model for Events booked as one complete run. */
|
|
2
2
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
3
|
+
import type { BlockBookingConsent } from '../../shared/bookingConsent';
|
|
3
4
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
4
5
|
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
5
6
|
export type WholeSeriesOfferingStatus = 'active' | 'draft' | 'cancelled';
|
|
@@ -52,6 +53,9 @@ export type PublicWholeSeriesOffering = {
|
|
|
52
53
|
slug: string;
|
|
53
54
|
/** Rich text description (ProseMirror/TipTap JSON format) */
|
|
54
55
|
description: unknown;
|
|
56
|
+
deliveryMode: 'in_person' | 'online' | 'hybrid';
|
|
57
|
+
waitlistEnabled: boolean;
|
|
58
|
+
requireGuestDetails: boolean;
|
|
55
59
|
teamMembers?: PublicTeamMemberSummary[];
|
|
56
60
|
/** Registration is open if the run has not started yet. */
|
|
57
61
|
enrollmentOpen: boolean;
|
|
@@ -61,6 +65,8 @@ export type PublicWholeSeriesOffering = {
|
|
|
61
65
|
currency: string;
|
|
62
66
|
/** Shared booking payment-terms model for appointments and Events. */
|
|
63
67
|
paymentTerms: BlockBookingPaymentTerms;
|
|
68
|
+
/** Consent that must be accepted before registering for this run. */
|
|
69
|
+
consent: BlockBookingConsent | null;
|
|
64
70
|
/** Maximum enrollment capacity (null = unlimited) */
|
|
65
71
|
enrollmentCapacity: number | null;
|
|
66
72
|
/** Whether memberships can be used for free enrollment */
|
|
@@ -39,8 +39,6 @@ export * from "./appointment-booking";
|
|
|
39
39
|
export * from "./weekly-slot-availability";
|
|
40
40
|
export * from "./event-registration";
|
|
41
41
|
export * from "./event-details";
|
|
42
|
-
export * from "./course-registration";
|
|
43
|
-
export * from "./course-details";
|
|
44
42
|
export * from "./events";
|
|
45
43
|
export * from "./events/recurring-schedule";
|
|
46
44
|
export * from "./embed";
|