@riverbankcms/sdk 0.123.0 → 0.124.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/README.md +14 -9
- package/dist/{PreviewEditorSidebar-DvJFmC29.mjs → PreviewEditorSidebar-DBmAJJkQ.mjs} +22 -39
- package/dist/{PreviewEditorUI-DVHP4bCo.mjs → PreviewEditorUI-CfGaz9cY.mjs} +3 -3
- package/dist/{PreviewQueryProvider-07EE4uWL.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BE5eFayo.mjs → SdkPreviewModeRuntime-BW9Z8j8T.mjs} +1020 -1234
- package/dist/{SiteChromeCustomizeContext-4hn4A0HX.mjs → SiteChromeCustomizeContext-2z8moxYf.mjs} +1900 -1959
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1236 -4152
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +435 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +3 -3
- package/dist/_dts/api/src/bookingConfig.d.ts +72 -73
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +26 -35
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -15
- package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +746 -0
- package/dist/_dts/api/src/bookingVerticalPreset.d.ts +38 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +11 -652
- package/dist/_dts/api/src/bookings.d.ts +11 -9
- package/dist/_dts/api/src/cache-tags.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +10 -10
- package/dist/_dts/api/src/common/envelope.d.ts +2 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -17
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +99 -0
- package/dist/_dts/api/src/courses.d.ts +22 -33
- package/dist/_dts/api/src/defineEndpointDefinitions.d.ts +14 -0
- package/dist/_dts/api/src/demoMutationPolicies.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +3740 -3733
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/event-presentation.d.ts +4 -9
- package/dist/_dts/api/src/index.d.ts +9 -11
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +376 -0
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +272 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +274 -0
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +31 -0
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +152 -0
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +95 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +154 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -962
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +52 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +0 -51
- package/dist/_dts/api/src/sdkEntryReadEndpoints.d.ts +23 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -38
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -4
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -15
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +0 -16
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -222
- package/dist/_dts/blocks/src/portal/types.d.ts +3 -3
- package/dist/_dts/blocks/src/subroutes/fold.d.ts +1 -14
- package/dist/_dts/blocks/src/subroutes/index.d.ts +1 -1
- package/dist/_dts/blocks/src/subroutes/kinds.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -4
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +401 -12
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +9 -10
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -13
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +1 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +19 -18
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +9 -11
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +10 -10
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -10
- 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 +162 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +59 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +134 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/discounts.d.ts +85 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +241 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/forms.d.ts +53 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +220 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +176 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +12 -1121
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +19 -583
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -276
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +1 -12
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +1 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +1 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/courseRegistrationViewState.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +0 -25
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationPortal.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +80 -55
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseWaitlistSelection.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -38
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +0 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +0 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +0 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +24 -433
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +52 -266
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventFilters.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1573 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +1 -3
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -3
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -5
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -5
- package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -3
- package/dist/_dts/core/src/editor-state.d.ts +1 -13
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1580 -120
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +6 -6
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +27 -4
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -2
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +4 -6
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +25 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +3 -81
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +6 -9
- package/dist/_dts/sdk/src/client/contentReadOperations.d.ts +40 -0
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -3
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -91
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +72 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +10 -75
- package/dist/_dts/sdk/src/client/types.d.ts +7 -33
- package/dist/_dts/sdk/src/components.d.ts +1 -1
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -6
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +0 -8
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -34
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +4 -3
- package/dist/_dts/sdk/src/next/catch-all-utils.d.ts +0 -11
- package/dist/_dts/sdk/src/next/catch-all.d.ts +1 -76
- package/dist/_dts/sdk/src/next/types.d.ts +0 -19
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -207
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +0 -7
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +81 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -51
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -1
- package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +6 -6
- package/dist/_dts/sdk/src/routing/index.d.ts +0 -2
- package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +3 -3
- package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +10 -39
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +100 -0
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/commandContract.d.ts +1242 -0
- package/dist/_dts/site-commands/src/commandDomain.d.ts +20 -0
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +7 -0
- package/dist/_dts/site-commands/src/commandValidation.d.ts +10 -0
- package/dist/_dts/site-commands/src/commands.d.ts +729 -2659
- package/dist/_dts/site-commands/src/domain.d.ts +1 -1
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +11 -0
- package/dist/_dts/site-commands/src/exposure.d.ts +1 -1
- package/dist/_dts/site-commands/src/index.d.ts +6 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +1 -27
- package/dist/_dts/site-commands/src/planner.d.ts +1 -1
- package/dist/_dts/site-commands/src/refContributions.d.ts +1 -1
- package/dist/_dts/site-commands/src/refs.d.ts +1 -4
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +378 -0
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +46 -0
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +58 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +47 -24
- package/dist/cli/index.mjs +7250 -8478
- package/dist/cli/init-docs/content/cli-reference.md +5 -21
- package/dist/cli/init-docs/content/content-management.md +4 -5
- package/dist/client/{DiscountCodeDisclosure-DIWj-P9v.mjs → DiscountCodeDisclosure-DxvjKvck.mjs} +2 -2
- package/dist/client/{EventCombined.client-De8YWBSr.mjs → EventCombined.client-BydMGc4c.mjs} +5 -16
- package/dist/client/{EventListing.client-seHTjimY.mjs → EventListing.client-vpzhhysN.mjs} +3 -10
- package/dist/client/{LeafletStaticMap-BmQxFcJW.mjs → LeafletStaticMap-CB07rpf8.mjs} +1 -1
- package/dist/client/{MagicLinkForm-OoJAIUIj.mjs → MagicLinkForm-BzyRJ8VF.mjs} +2 -2
- package/dist/client/{StepIndicator-CiZ8kdPk.mjs → StepIndicator-CTcGf8Be.mjs} +2 -2
- package/dist/client/{accordion-6lnN__XJ.mjs → accordion-B-DUDLRD.mjs} +1 -1
- package/dist/client/{bookingForm-5uyqhONU.mjs → bookingForm-DSbClLcZ.mjs} +6 -6
- package/dist/client/bookings.mjs +753 -818
- package/dist/client/{carousel-Dtnifil_.mjs → carousel-B6Ccdx8M.mjs} +1 -1
- package/dist/client/{cart-5Tc5S7NV.mjs → cart-BZh8G8wM.mjs} +3 -3
- package/dist/client/{checkout-CYKKN5Hr.mjs → checkout-o6zaC-kM.mjs} +3 -3
- package/dist/client/client.mjs +6859 -7149
- package/dist/client/{context-BGZNlGXB.mjs → context-CJz1Vlsz.mjs} +40 -43
- package/dist/client/{courseRegistration-CxCBybB4.mjs → courseRegistration-Cf11pNDs.mjs} +606 -621
- package/dist/client/{eventCalendar-Xj2jZS9X.mjs → eventCalendar-BeXrdsSE.mjs} +5 -13
- package/dist/client/{eventCombined-CgcMoOgM.mjs → eventCombined-DA76PZgG.mjs} +3 -3
- package/dist/client/{eventDetails-CEAH8Edc.mjs → eventDetails-BLxg0rok.mjs} +140 -116
- package/dist/client/{eventListing-qyPVQ0wP.mjs → eventListing-tO9LheBX.mjs} +3 -3
- package/dist/client/{eventRegistration-DDu79CtL.mjs → eventRegistration-Cnene9D9.mjs} +165 -68
- package/dist/client/{form-Bc7JKI7I.mjs → form-DZf72CHB.mjs} +2 -2
- package/dist/client/{headerSection-vTku_LEl.mjs → headerSection-Hioja5Cr.mjs} +2 -2
- package/dist/client/hooks.mjs +3452 -2365
- package/dist/client/{locationMap-Bg7X4Jna.mjs → locationMap-DwhUXEix.mjs} +2 -2
- package/dist/client/{newsletterForm-lpylVdp5.mjs → newsletterForm-C350bEQf.mjs} +2 -2
- package/dist/client/{pricing-DE8fjJiT.mjs → pricing-BYWN_ATa.mjs} +3 -19
- package/dist/client/{productDetail-D7Bo2RMH.mjs → productDetail-CCqCyXgU.mjs} +3 -3
- package/dist/client/{productList-VjnZqiqN.mjs → productList-BAiNJrOU.mjs} +3 -3
- package/dist/client/{propsDecoder-DreFXjNP.mjs → propsDecoder-DeunRj6m.mjs} +210 -378
- package/dist/client/rendering/client.mjs +2541 -2813
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +5622 -4734
- package/dist/client/{shop-IRsHHbf7.mjs → shop-DUmCdBtw.mjs} +6 -6
- package/dist/client/{shop-commerce-gnI8PieZ.mjs → shop-commerce-CY27mEUr.mjs} +5 -5
- package/dist/client/{shop-commerce-store-BTbrhObn.mjs → shop-commerce-store-ChXPbWfa.mjs} +1 -1
- package/dist/client/{shopShared-D6KS2_qk.mjs → shopShared-q0kin1cv.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DCccGCxV.mjs → useDiscountCodeUi-I-92-x2V.mjs} +2 -2
- package/dist/client/{useEventFilters-eGs3rPZQ.mjs → useEventFilters-DlcVluZh.mjs} +59 -124
- package/dist/client/{usePolling-CvSU2sur.mjs → usePolling-Bz7GFV_a.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +1115 -1044
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +1118 -1047
- package/dist/{previewAuthStore-ShY26RNz.mjs → previewAuthStore-CJX21dGi.mjs} +1121 -1047
- package/dist/{sdk-runtime-CJxkFq2B.mjs → sdk-runtime-OnPM8Z69.mjs} +2 -2
- package/dist/{separator-CoFmo8uA.mjs → separator-CPtfzHqA.mjs} +1 -1
- package/dist/server/components.mjs +4560 -3672
- package/dist/server/config-validation.mjs +3454 -2356
- package/dist/server/config.mjs +3454 -2356
- package/dist/server/data.mjs +3452 -2367
- package/dist/server/index.mjs +1501 -1491
- package/dist/server/next.mjs +7524 -8067
- package/dist/server/page-converter.mjs +1898 -2040
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4258 -3373
- package/dist/server/rendering.mjs +6228 -5393
- package/dist/server/routing.mjs +3614 -2509
- package/dist/server/server.mjs +3298 -3479
- package/package.json +1 -1
- package/dist/_dts/api/src/previewContentContract.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/course.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/courses.d.ts +0 -4
- package/dist/_dts/sdk/src/client/management/courses.d.ts +0 -10
- package/dist/_dts/sdk/src/routing/resolveEntrySubroute.d.ts +0 -36
|
@@ -139,9 +139,9 @@ export declare const coursePricingSchema: z.ZodObject<{
|
|
|
139
139
|
/**
|
|
140
140
|
* Zod schema for public course data
|
|
141
141
|
*/
|
|
142
|
-
export declare const
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
export declare const publicWholeSeriesOfferingSchema: z.ZodObject<{
|
|
143
|
+
eventSeriesId: z.ZodString;
|
|
144
|
+
eventOfferingId: z.ZodString;
|
|
145
145
|
title: z.ZodString;
|
|
146
146
|
slug: z.ZodString;
|
|
147
147
|
description: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -153,7 +153,7 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
153
153
|
profilePath: z.ZodNullable<z.ZodString>;
|
|
154
154
|
}, z.core.$strip>>>;
|
|
155
155
|
enrollmentOpen: z.ZodBoolean;
|
|
156
|
-
pricing: z.
|
|
156
|
+
pricing: z.ZodObject<{
|
|
157
157
|
bookingRequirement: z.ZodEnum<{
|
|
158
158
|
required: "required";
|
|
159
159
|
none: "none";
|
|
@@ -247,8 +247,204 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
247
247
|
online: "online";
|
|
248
248
|
}>>>;
|
|
249
249
|
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
currency: z.ZodString;
|
|
252
|
+
paymentTerms: z.ZodObject<{
|
|
253
|
+
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
254
|
+
kind: z.ZodLiteral<"upfront">;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
kind: z.ZodLiteral<"deferred_manual">;
|
|
257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
+
kind: z.ZodLiteral<"instalment_plan">;
|
|
259
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
260
|
+
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
261
|
+
depositAmountCents: z.ZodNumber;
|
|
262
|
+
depositRefundability: z.ZodEnum<{
|
|
263
|
+
refundable: "refundable";
|
|
264
|
+
non_refundable: "non_refundable";
|
|
265
|
+
}>;
|
|
266
|
+
remainderDueCount: z.ZodNumber;
|
|
267
|
+
intervalUnit: z.ZodEnum<{
|
|
268
|
+
day: "day";
|
|
269
|
+
week: "week";
|
|
270
|
+
month: "month";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
274
|
+
depositAmountCents: z.ZodNumber;
|
|
275
|
+
depositRefundability: z.ZodEnum<{
|
|
276
|
+
refundable: "refundable";
|
|
277
|
+
non_refundable: "non_refundable";
|
|
278
|
+
}>;
|
|
279
|
+
instalmentCount: z.ZodNumber;
|
|
280
|
+
intervalCount: z.ZodNumber;
|
|
281
|
+
intervalUnit: z.ZodEnum<{
|
|
282
|
+
day: "day";
|
|
283
|
+
week: "week";
|
|
284
|
+
month: "month";
|
|
285
|
+
}>;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
288
|
+
instalmentCount: z.ZodNumber;
|
|
289
|
+
intervalCount: z.ZodNumber;
|
|
290
|
+
intervalUnit: z.ZodEnum<{
|
|
291
|
+
day: "day";
|
|
292
|
+
week: "week";
|
|
293
|
+
month: "month";
|
|
294
|
+
}>;
|
|
295
|
+
}, z.core.$strip>]>;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"flexible_balance">;
|
|
298
|
+
config: z.ZodObject<{
|
|
299
|
+
upfrontAmountCents: z.ZodNumber;
|
|
300
|
+
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
301
|
+
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
302
|
+
daysBeforeStart: z.ZodNumber;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
305
|
+
dueAt: z.ZodString;
|
|
306
|
+
}, z.core.$strip>]>;
|
|
307
|
+
depositRefundability: z.ZodEnum<{
|
|
308
|
+
refundable: "refundable";
|
|
309
|
+
non_refundable: "non_refundable";
|
|
310
|
+
}>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>]>>;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
enrollmentCapacity: z.ZodNullable<z.ZodNumber>;
|
|
315
|
+
acceptsMemberships: z.ZodBoolean;
|
|
316
|
+
status: z.ZodEnum<{
|
|
317
|
+
active: "active";
|
|
318
|
+
draft: "draft";
|
|
319
|
+
cancelled: "cancelled";
|
|
320
|
+
}>;
|
|
321
|
+
sessionsCount: z.ZodNumber;
|
|
322
|
+
enrolledCount: z.ZodNumber;
|
|
323
|
+
availableSpots: z.ZodNullable<z.ZodNumber>;
|
|
324
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
startsAt: z.ZodString;
|
|
327
|
+
endsAt: z.ZodString;
|
|
328
|
+
timeZone: z.ZodString;
|
|
329
|
+
capacityOverride: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
330
|
+
overrides: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
venue: z.ZodNullable<z.ZodObject<{
|
|
333
|
+
id: z.ZodString;
|
|
334
|
+
name: z.ZodString;
|
|
335
|
+
address: z.ZodNullable<z.ZodString>;
|
|
250
336
|
}, z.core.$strip>>;
|
|
251
|
-
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
/** Deployed course blocks retain this schema alias for stored content. */
|
|
339
|
+
export declare const publicCourseSchema: z.ZodObject<{
|
|
340
|
+
eventSeriesId: z.ZodString;
|
|
341
|
+
eventOfferingId: z.ZodString;
|
|
342
|
+
title: z.ZodString;
|
|
343
|
+
slug: z.ZodString;
|
|
344
|
+
description: z.ZodNullable<z.ZodUnknown>;
|
|
345
|
+
teamMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
346
|
+
id: z.ZodString;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
349
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
350
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
enrollmentOpen: z.ZodBoolean;
|
|
353
|
+
pricing: z.ZodObject<{
|
|
354
|
+
bookingRequirement: z.ZodEnum<{
|
|
355
|
+
required: "required";
|
|
356
|
+
none: "none";
|
|
357
|
+
}>;
|
|
358
|
+
pricingStrategy: z.ZodEnum<{
|
|
359
|
+
single: "single";
|
|
360
|
+
sliding_scale: "sliding_scale";
|
|
361
|
+
free: "free";
|
|
362
|
+
tiered: "tiered";
|
|
363
|
+
}>;
|
|
364
|
+
currency: z.ZodString;
|
|
365
|
+
singlePriceAmount: z.ZodNullable<z.ZodNumber>;
|
|
366
|
+
slidingMinAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
367
|
+
slidingMaxAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
368
|
+
slidingSuggestedAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
369
|
+
paymentTerms: z.ZodObject<{
|
|
370
|
+
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
371
|
+
kind: z.ZodLiteral<"upfront">;
|
|
372
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
373
|
+
kind: z.ZodLiteral<"deferred_manual">;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"instalment_plan">;
|
|
376
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
377
|
+
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
378
|
+
depositAmountCents: z.ZodNumber;
|
|
379
|
+
depositRefundability: z.ZodEnum<{
|
|
380
|
+
refundable: "refundable";
|
|
381
|
+
non_refundable: "non_refundable";
|
|
382
|
+
}>;
|
|
383
|
+
remainderDueCount: z.ZodNumber;
|
|
384
|
+
intervalUnit: z.ZodEnum<{
|
|
385
|
+
day: "day";
|
|
386
|
+
week: "week";
|
|
387
|
+
month: "month";
|
|
388
|
+
}>;
|
|
389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
390
|
+
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
391
|
+
depositAmountCents: z.ZodNumber;
|
|
392
|
+
depositRefundability: z.ZodEnum<{
|
|
393
|
+
refundable: "refundable";
|
|
394
|
+
non_refundable: "non_refundable";
|
|
395
|
+
}>;
|
|
396
|
+
instalmentCount: z.ZodNumber;
|
|
397
|
+
intervalCount: z.ZodNumber;
|
|
398
|
+
intervalUnit: z.ZodEnum<{
|
|
399
|
+
day: "day";
|
|
400
|
+
week: "week";
|
|
401
|
+
month: "month";
|
|
402
|
+
}>;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
405
|
+
instalmentCount: z.ZodNumber;
|
|
406
|
+
intervalCount: z.ZodNumber;
|
|
407
|
+
intervalUnit: z.ZodEnum<{
|
|
408
|
+
day: "day";
|
|
409
|
+
week: "week";
|
|
410
|
+
month: "month";
|
|
411
|
+
}>;
|
|
412
|
+
}, z.core.$strip>]>;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
kind: z.ZodLiteral<"flexible_balance">;
|
|
415
|
+
config: z.ZodObject<{
|
|
416
|
+
upfrontAmountCents: z.ZodNumber;
|
|
417
|
+
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
418
|
+
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
419
|
+
daysBeforeStart: z.ZodNumber;
|
|
420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
421
|
+
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
422
|
+
dueAt: z.ZodString;
|
|
423
|
+
}, z.core.$strip>]>;
|
|
424
|
+
depositRefundability: z.ZodEnum<{
|
|
425
|
+
refundable: "refundable";
|
|
426
|
+
non_refundable: "non_refundable";
|
|
427
|
+
}>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
}, z.core.$strip>]>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
options: z.ZodArray<z.ZodObject<{
|
|
432
|
+
id: z.ZodString;
|
|
433
|
+
name: z.ZodString;
|
|
434
|
+
description: z.ZodNullable<z.ZodString>;
|
|
435
|
+
priceAmount: z.ZodNumber;
|
|
436
|
+
isActive: z.ZodBoolean;
|
|
437
|
+
sortOrder: z.ZodNumber;
|
|
438
|
+
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
439
|
+
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
440
|
+
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
441
|
+
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
442
|
+
in_person: "in_person";
|
|
443
|
+
both: "both";
|
|
444
|
+
online: "online";
|
|
445
|
+
}>>>;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
}, z.core.$strip>;
|
|
252
448
|
currency: z.ZodString;
|
|
253
449
|
paymentTerms: z.ZodObject<{
|
|
254
450
|
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -335,14 +531,13 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
335
531
|
name: z.ZodString;
|
|
336
532
|
address: z.ZodNullable<z.ZodString>;
|
|
337
533
|
}, z.core.$strip>>;
|
|
338
|
-
contentEntryId: z.ZodNullable<z.ZodString>;
|
|
339
534
|
}, z.core.$strip>;
|
|
340
535
|
/**
|
|
341
536
|
* Schema for an array of public courses
|
|
342
537
|
*/
|
|
343
|
-
export declare const
|
|
344
|
-
|
|
345
|
-
|
|
538
|
+
export declare const publicWholeSeriesOfferingsArraySchema: z.ZodArray<z.ZodObject<{
|
|
539
|
+
eventSeriesId: z.ZodString;
|
|
540
|
+
eventOfferingId: z.ZodString;
|
|
346
541
|
title: z.ZodString;
|
|
347
542
|
slug: z.ZodString;
|
|
348
543
|
description: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -354,7 +549,7 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
354
549
|
profilePath: z.ZodNullable<z.ZodString>;
|
|
355
550
|
}, z.core.$strip>>>;
|
|
356
551
|
enrollmentOpen: z.ZodBoolean;
|
|
357
|
-
pricing: z.
|
|
552
|
+
pricing: z.ZodObject<{
|
|
358
553
|
bookingRequirement: z.ZodEnum<{
|
|
359
554
|
required: "required";
|
|
360
555
|
none: "none";
|
|
@@ -448,8 +643,203 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
448
643
|
online: "online";
|
|
449
644
|
}>>>;
|
|
450
645
|
}, z.core.$strip>>;
|
|
646
|
+
}, z.core.$strip>;
|
|
647
|
+
currency: z.ZodString;
|
|
648
|
+
paymentTerms: z.ZodObject<{
|
|
649
|
+
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"upfront">;
|
|
651
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
652
|
+
kind: z.ZodLiteral<"deferred_manual">;
|
|
653
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
654
|
+
kind: z.ZodLiteral<"instalment_plan">;
|
|
655
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
656
|
+
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
657
|
+
depositAmountCents: z.ZodNumber;
|
|
658
|
+
depositRefundability: z.ZodEnum<{
|
|
659
|
+
refundable: "refundable";
|
|
660
|
+
non_refundable: "non_refundable";
|
|
661
|
+
}>;
|
|
662
|
+
remainderDueCount: z.ZodNumber;
|
|
663
|
+
intervalUnit: z.ZodEnum<{
|
|
664
|
+
day: "day";
|
|
665
|
+
week: "week";
|
|
666
|
+
month: "month";
|
|
667
|
+
}>;
|
|
668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
+
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
670
|
+
depositAmountCents: z.ZodNumber;
|
|
671
|
+
depositRefundability: z.ZodEnum<{
|
|
672
|
+
refundable: "refundable";
|
|
673
|
+
non_refundable: "non_refundable";
|
|
674
|
+
}>;
|
|
675
|
+
instalmentCount: z.ZodNumber;
|
|
676
|
+
intervalCount: z.ZodNumber;
|
|
677
|
+
intervalUnit: z.ZodEnum<{
|
|
678
|
+
day: "day";
|
|
679
|
+
week: "week";
|
|
680
|
+
month: "month";
|
|
681
|
+
}>;
|
|
682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
683
|
+
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
684
|
+
instalmentCount: z.ZodNumber;
|
|
685
|
+
intervalCount: z.ZodNumber;
|
|
686
|
+
intervalUnit: z.ZodEnum<{
|
|
687
|
+
day: "day";
|
|
688
|
+
week: "week";
|
|
689
|
+
month: "month";
|
|
690
|
+
}>;
|
|
691
|
+
}, z.core.$strip>]>;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
kind: z.ZodLiteral<"flexible_balance">;
|
|
694
|
+
config: z.ZodObject<{
|
|
695
|
+
upfrontAmountCents: z.ZodNumber;
|
|
696
|
+
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
697
|
+
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
698
|
+
daysBeforeStart: z.ZodNumber;
|
|
699
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
700
|
+
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
701
|
+
dueAt: z.ZodString;
|
|
702
|
+
}, z.core.$strip>]>;
|
|
703
|
+
depositRefundability: z.ZodEnum<{
|
|
704
|
+
refundable: "refundable";
|
|
705
|
+
non_refundable: "non_refundable";
|
|
706
|
+
}>;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
}, z.core.$strip>]>>;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
enrollmentCapacity: z.ZodNullable<z.ZodNumber>;
|
|
711
|
+
acceptsMemberships: z.ZodBoolean;
|
|
712
|
+
status: z.ZodEnum<{
|
|
713
|
+
active: "active";
|
|
714
|
+
draft: "draft";
|
|
715
|
+
cancelled: "cancelled";
|
|
716
|
+
}>;
|
|
717
|
+
sessionsCount: z.ZodNumber;
|
|
718
|
+
enrolledCount: z.ZodNumber;
|
|
719
|
+
availableSpots: z.ZodNullable<z.ZodNumber>;
|
|
720
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
721
|
+
id: z.ZodString;
|
|
722
|
+
startsAt: z.ZodString;
|
|
723
|
+
endsAt: z.ZodString;
|
|
724
|
+
timeZone: z.ZodString;
|
|
725
|
+
capacityOverride: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
726
|
+
overrides: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
727
|
+
}, z.core.$strip>>;
|
|
728
|
+
venue: z.ZodNullable<z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
name: z.ZodString;
|
|
731
|
+
address: z.ZodNullable<z.ZodString>;
|
|
451
732
|
}, z.core.$strip>>;
|
|
452
|
-
|
|
733
|
+
}, z.core.$strip>>;
|
|
734
|
+
export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
735
|
+
eventSeriesId: z.ZodString;
|
|
736
|
+
eventOfferingId: z.ZodString;
|
|
737
|
+
title: z.ZodString;
|
|
738
|
+
slug: z.ZodString;
|
|
739
|
+
description: z.ZodNullable<z.ZodUnknown>;
|
|
740
|
+
teamMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
|
+
id: z.ZodString;
|
|
742
|
+
name: z.ZodString;
|
|
743
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
744
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
745
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
746
|
+
}, z.core.$strip>>>;
|
|
747
|
+
enrollmentOpen: z.ZodBoolean;
|
|
748
|
+
pricing: z.ZodObject<{
|
|
749
|
+
bookingRequirement: z.ZodEnum<{
|
|
750
|
+
required: "required";
|
|
751
|
+
none: "none";
|
|
752
|
+
}>;
|
|
753
|
+
pricingStrategy: z.ZodEnum<{
|
|
754
|
+
single: "single";
|
|
755
|
+
sliding_scale: "sliding_scale";
|
|
756
|
+
free: "free";
|
|
757
|
+
tiered: "tiered";
|
|
758
|
+
}>;
|
|
759
|
+
currency: z.ZodString;
|
|
760
|
+
singlePriceAmount: z.ZodNullable<z.ZodNumber>;
|
|
761
|
+
slidingMinAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
762
|
+
slidingMaxAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
763
|
+
slidingSuggestedAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
764
|
+
paymentTerms: z.ZodObject<{
|
|
765
|
+
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
766
|
+
kind: z.ZodLiteral<"upfront">;
|
|
767
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
768
|
+
kind: z.ZodLiteral<"deferred_manual">;
|
|
769
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
770
|
+
kind: z.ZodLiteral<"instalment_plan">;
|
|
771
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
772
|
+
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
773
|
+
depositAmountCents: z.ZodNumber;
|
|
774
|
+
depositRefundability: z.ZodEnum<{
|
|
775
|
+
refundable: "refundable";
|
|
776
|
+
non_refundable: "non_refundable";
|
|
777
|
+
}>;
|
|
778
|
+
remainderDueCount: z.ZodNumber;
|
|
779
|
+
intervalUnit: z.ZodEnum<{
|
|
780
|
+
day: "day";
|
|
781
|
+
week: "week";
|
|
782
|
+
month: "month";
|
|
783
|
+
}>;
|
|
784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
785
|
+
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
786
|
+
depositAmountCents: z.ZodNumber;
|
|
787
|
+
depositRefundability: z.ZodEnum<{
|
|
788
|
+
refundable: "refundable";
|
|
789
|
+
non_refundable: "non_refundable";
|
|
790
|
+
}>;
|
|
791
|
+
instalmentCount: z.ZodNumber;
|
|
792
|
+
intervalCount: z.ZodNumber;
|
|
793
|
+
intervalUnit: z.ZodEnum<{
|
|
794
|
+
day: "day";
|
|
795
|
+
week: "week";
|
|
796
|
+
month: "month";
|
|
797
|
+
}>;
|
|
798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
799
|
+
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
800
|
+
instalmentCount: z.ZodNumber;
|
|
801
|
+
intervalCount: z.ZodNumber;
|
|
802
|
+
intervalUnit: z.ZodEnum<{
|
|
803
|
+
day: "day";
|
|
804
|
+
week: "week";
|
|
805
|
+
month: "month";
|
|
806
|
+
}>;
|
|
807
|
+
}, z.core.$strip>]>;
|
|
808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
809
|
+
kind: z.ZodLiteral<"flexible_balance">;
|
|
810
|
+
config: z.ZodObject<{
|
|
811
|
+
upfrontAmountCents: z.ZodNumber;
|
|
812
|
+
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
813
|
+
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
814
|
+
daysBeforeStart: z.ZodNumber;
|
|
815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
+
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
817
|
+
dueAt: z.ZodString;
|
|
818
|
+
}, z.core.$strip>]>;
|
|
819
|
+
depositRefundability: z.ZodEnum<{
|
|
820
|
+
refundable: "refundable";
|
|
821
|
+
non_refundable: "non_refundable";
|
|
822
|
+
}>;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
}, z.core.$strip>]>>;
|
|
825
|
+
}, z.core.$strip>;
|
|
826
|
+
options: z.ZodArray<z.ZodObject<{
|
|
827
|
+
id: z.ZodString;
|
|
828
|
+
name: z.ZodString;
|
|
829
|
+
description: z.ZodNullable<z.ZodString>;
|
|
830
|
+
priceAmount: z.ZodNumber;
|
|
831
|
+
isActive: z.ZodBoolean;
|
|
832
|
+
sortOrder: z.ZodNumber;
|
|
833
|
+
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
834
|
+
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
835
|
+
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
836
|
+
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
837
|
+
in_person: "in_person";
|
|
838
|
+
both: "both";
|
|
839
|
+
online: "online";
|
|
840
|
+
}>>>;
|
|
841
|
+
}, z.core.$strip>>;
|
|
842
|
+
}, z.core.$strip>;
|
|
453
843
|
currency: z.ZodString;
|
|
454
844
|
paymentTerms: z.ZodObject<{
|
|
455
845
|
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -536,5 +926,4 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
536
926
|
name: z.ZodString;
|
|
537
927
|
address: z.ZodNullable<z.ZodString>;
|
|
538
928
|
}, z.core.$strip>>;
|
|
539
|
-
contentEntryId: z.ZodNullable<z.ZodString>;
|
|
540
929
|
}, z.core.$strip>>;
|
|
@@ -54,10 +54,11 @@ export type CoursePricing = {
|
|
|
54
54
|
* Public course data from the API
|
|
55
55
|
* Used by Course Registration block
|
|
56
56
|
*/
|
|
57
|
-
export type
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
export type PublicWholeSeriesOffering = {
|
|
58
|
+
/** Canonical event-series identity backing this concrete bookable run. */
|
|
59
|
+
eventSeriesId: string;
|
|
60
|
+
/** Offering identity owning the public course page and its available runs. */
|
|
61
|
+
eventOfferingId: string;
|
|
61
62
|
title: string;
|
|
62
63
|
slug: string;
|
|
63
64
|
/** Rich text description (ProseMirror/TipTap JSON format) */
|
|
@@ -65,10 +66,8 @@ export type PublicCourse = {
|
|
|
65
66
|
teamMembers?: PublicTeamMemberSummary[];
|
|
66
67
|
/** Enrollment is open if the course has not started yet */
|
|
67
68
|
enrollmentOpen: boolean;
|
|
68
|
-
/**
|
|
69
|
-
pricing
|
|
70
|
-
/** Price in cents for the full course */
|
|
71
|
-
priceCents: number | null;
|
|
69
|
+
/** Canonical shared pricing model for the whole-series run. */
|
|
70
|
+
pricing: CoursePricing;
|
|
72
71
|
/** Currency code (ISO 4217) */
|
|
73
72
|
currency: string;
|
|
74
73
|
/** Shared booking payment-terms model for appointments/events/courses. */
|
|
@@ -89,9 +88,9 @@ export type PublicCourse = {
|
|
|
89
88
|
sessions: CourseSession[];
|
|
90
89
|
/** Venue information */
|
|
91
90
|
venue: CourseVenue | null;
|
|
92
|
-
/** Linked content entry ID for SEO pages */
|
|
93
|
-
contentEntryId: string | null;
|
|
94
91
|
};
|
|
92
|
+
/** Deployed course blocks retain this presentation alias for stored content. */
|
|
93
|
+
export type PublicCourse = PublicWholeSeriesOffering;
|
|
95
94
|
/**
|
|
96
95
|
* Button variant options for course actions
|
|
97
96
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventCategoryId, VenueId } from '../../../../../core/src/index';
|
|
2
2
|
import type { SystemBlockDefinition } from '../../registry';
|
|
3
3
|
import { type ContainerStylesContent, type SectionStylesContent } from '../../fields/boxStyles';
|
|
4
|
-
import type { DisplayMode, EventLayout, ColumnOption, WeekStart, FilterAutoShow, CalendarTabViews, CalendarView, ButtonVariant,
|
|
4
|
+
import type { DisplayMode, EventLayout, ColumnOption, WeekStart, FilterAutoShow, CalendarTabViews, CalendarView, ButtonVariant, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './shared/types';
|
|
5
5
|
import { eventCalendarBlockRuntime } from '../../runtime/nodes/events/EventCalendar.interactive';
|
|
6
6
|
export declare function normalizeEventCalendarContent(content: unknown): EventCalendarContent;
|
|
7
7
|
export declare const eventCalendarManifest: import("../..").DefinedBlockManifest<{
|
|
@@ -49,7 +49,19 @@ export declare const eventCalendarManifest: import("../..").DefinedBlockManifest
|
|
|
49
49
|
};
|
|
50
50
|
readonly skipSectionStyles: true;
|
|
51
51
|
}>;
|
|
52
|
-
export type
|
|
52
|
+
export type EventCalendarFilterContent = {
|
|
53
|
+
showFilters?: boolean | null;
|
|
54
|
+
showCategoryFilter?: FilterAutoShow | null;
|
|
55
|
+
showVenueFilter?: boolean | null;
|
|
56
|
+
showStaffFilter?: boolean | null;
|
|
57
|
+
eventSurface?: EventSurfaceScope | null;
|
|
58
|
+
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
59
|
+
scheduleScope?: EventScheduleScope | null;
|
|
60
|
+
filterCategoryIds?: readonly EventCategoryId[] | null;
|
|
61
|
+
filterStaffMemberId?: string | null;
|
|
62
|
+
filterVenueId?: VenueId | null;
|
|
63
|
+
};
|
|
64
|
+
export type EventCalendarContent = EventCalendarFilterContent & {
|
|
53
65
|
heading?: string | null;
|
|
54
66
|
description?: unknown;
|
|
55
67
|
variant?: DisplayMode | null;
|
|
@@ -65,17 +77,6 @@ export type EventCalendarContent = {
|
|
|
65
77
|
startOfWeek?: WeekStart | null;
|
|
66
78
|
calendarTabViews?: CalendarTabViews | null;
|
|
67
79
|
defaultCalendarView?: CalendarView | null;
|
|
68
|
-
showFilters?: boolean | null;
|
|
69
|
-
showCategoryFilter?: FilterAutoShow | null;
|
|
70
|
-
showVenueFilter?: boolean | null;
|
|
71
|
-
showStaffFilter?: boolean | null;
|
|
72
|
-
kind?: EventBlockKind | null;
|
|
73
|
-
eventSurface?: EventSurfaceScope | null;
|
|
74
|
-
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
75
|
-
scheduleScope?: EventScheduleScope | null;
|
|
76
|
-
filterCategoryIds?: readonly EventCategoryId[] | null;
|
|
77
|
-
filterStaffMemberId?: string | null;
|
|
78
|
-
filterVenueId?: VenueId | null;
|
|
79
80
|
buttonVariant?: ButtonVariant | null;
|
|
80
81
|
buttonText?: string | null;
|
|
81
82
|
showCapacity?: boolean | null;
|
|
@@ -2,7 +2,7 @@ import type { SystemBlockDefinition } from "../../registry";
|
|
|
2
2
|
import { type ContainerStylesContent, type SectionStylesContent } from "../../fields/boxStyles";
|
|
3
3
|
import { eventListingBlockRuntime } from "../../runtime/nodes/events/EventListing.interactive";
|
|
4
4
|
import type { BlockButtonRole } from "../../constants/buttonRoles";
|
|
5
|
-
import type {
|
|
5
|
+
import type { EventCardVariantInput, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from "./shared/types";
|
|
6
6
|
export declare const eventListingManifest: import("../..").DefinedBlockManifest<{
|
|
7
7
|
readonly additionalFields: readonly [{
|
|
8
8
|
readonly id: "layout";
|
|
@@ -42,7 +42,6 @@ export type EventListingContent = {
|
|
|
42
42
|
showVenue?: boolean | null;
|
|
43
43
|
showMap?: boolean | null;
|
|
44
44
|
showCapacity?: boolean | null;
|
|
45
|
-
kind?: EventBlockKind | null;
|
|
46
45
|
eventSurface?: EventSurfaceScope | null;
|
|
47
46
|
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
48
47
|
scheduleScope?: EventScheduleScope | null;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { EventCategoryId, VenueId } from "../../../../../../core/src/index";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const eventSurfacePresetValues: readonly ["class", "workshop", "retreat", "performance"];
|
|
2
|
+
export declare const eventSurfacePresetValues: readonly ["course", "class", "workshop", "retreat", "performance"];
|
|
4
3
|
export declare const eventSurfaceScopeValues: readonly ["all", "regularClassSchedule", "specialDatedEvents", "custom"];
|
|
5
4
|
export declare const eventScheduleScopeValues: readonly ["any", "recurring", "oneOff"];
|
|
6
|
-
export type EventBlockKind = (typeof eventBlockKindValues)[number];
|
|
7
5
|
export type EventSurfacePreset = (typeof eventSurfacePresetValues)[number];
|
|
8
6
|
export type EventSurfaceScope = (typeof eventSurfaceScopeValues)[number];
|
|
9
7
|
export type EventScheduleScope = (typeof eventScheduleScopeValues)[number];
|
|
10
|
-
export declare function normalizeEventBlockKind(value: unknown): EventBlockKind;
|
|
11
8
|
export declare function normalizeEventSurfaceScope(value: unknown): EventSurfaceScope;
|
|
12
9
|
export declare function normalizeEventScheduleScope(value: unknown): EventScheduleScope;
|
|
13
10
|
export declare function normalizeEventSurfacePresets(value: unknown): readonly EventSurfacePreset[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const eventPresetSchema: z.ZodEnum<{
|
|
3
|
+
course: "course";
|
|
3
4
|
event: "event";
|
|
4
5
|
performance: "performance";
|
|
5
6
|
class: "class";
|
|
@@ -370,11 +371,12 @@ export declare const publicTeamMemberSummarySchema: z.ZodObject<{
|
|
|
370
371
|
* Zod schema for public event data
|
|
371
372
|
*/
|
|
372
373
|
export declare const publicEventSchema: z.ZodObject<{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
374
|
+
bookingScope: z.ZodEnum<{
|
|
375
|
+
single_occurrence: "single_occurrence";
|
|
376
|
+
whole_series: "whole_series";
|
|
377
|
+
}>;
|
|
377
378
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
379
|
+
course: "course";
|
|
378
380
|
event: "event";
|
|
379
381
|
performance: "performance";
|
|
380
382
|
class: "class";
|
|
@@ -936,9 +938,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
936
938
|
requireGuestDetails: z.ZodOptional<z.ZodBoolean>;
|
|
937
939
|
acceptsPasses: z.ZodOptional<z.ZodBoolean>;
|
|
938
940
|
acceptsMemberships: z.ZodOptional<z.ZodBoolean>;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
pricing: z.
|
|
941
|
+
wholeSeries: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
942
|
+
eventSeriesId: z.ZodString;
|
|
943
|
+
pricing: z.ZodObject<{
|
|
942
944
|
bookingRequirement: z.ZodEnum<{
|
|
943
945
|
required: "required";
|
|
944
946
|
none: "none";
|
|
@@ -1032,8 +1034,7 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1032
1034
|
online: "online";
|
|
1033
1035
|
}>>>;
|
|
1034
1036
|
}, z.core.$strip>>;
|
|
1035
|
-
}, z.core.$strip
|
|
1036
|
-
priceCents: z.ZodNullable<z.ZodNumber>;
|
|
1037
|
+
}, z.core.$strip>;
|
|
1037
1038
|
currency: z.ZodString;
|
|
1038
1039
|
enrollmentOpen: z.ZodBoolean;
|
|
1039
1040
|
}, z.core.$strip>>>;
|
|
@@ -1042,11 +1043,12 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1042
1043
|
* Schema for an array of public events
|
|
1043
1044
|
*/
|
|
1044
1045
|
export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1046
|
+
bookingScope: z.ZodEnum<{
|
|
1047
|
+
single_occurrence: "single_occurrence";
|
|
1048
|
+
whole_series: "whole_series";
|
|
1049
|
+
}>;
|
|
1049
1050
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1051
|
+
course: "course";
|
|
1050
1052
|
event: "event";
|
|
1051
1053
|
performance: "performance";
|
|
1052
1054
|
class: "class";
|
|
@@ -1608,9 +1610,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1608
1610
|
requireGuestDetails: z.ZodOptional<z.ZodBoolean>;
|
|
1609
1611
|
acceptsPasses: z.ZodOptional<z.ZodBoolean>;
|
|
1610
1612
|
acceptsMemberships: z.ZodOptional<z.ZodBoolean>;
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
pricing: z.
|
|
1613
|
+
wholeSeries: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1614
|
+
eventSeriesId: z.ZodString;
|
|
1615
|
+
pricing: z.ZodObject<{
|
|
1614
1616
|
bookingRequirement: z.ZodEnum<{
|
|
1615
1617
|
required: "required";
|
|
1616
1618
|
none: "none";
|
|
@@ -1704,8 +1706,7 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1704
1706
|
online: "online";
|
|
1705
1707
|
}>>>;
|
|
1706
1708
|
}, z.core.$strip>>;
|
|
1707
|
-
}, z.core.$strip
|
|
1708
|
-
priceCents: z.ZodNullable<z.ZodNumber>;
|
|
1709
|
+
}, z.core.$strip>;
|
|
1709
1710
|
currency: z.ZodString;
|
|
1710
1711
|
enrollmentOpen: z.ZodBoolean;
|
|
1711
1712
|
}, z.core.$strip>>>;
|