@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
|
@@ -470,60 +470,6 @@ export type EventOccurrenceScheduleInput = SdkEventOccurrenceScheduleInput;
|
|
|
470
470
|
export type AddEventOccurrenceInput = SdkAddEventOccurrenceRequest;
|
|
471
471
|
export type EventOccurrenceCapacityIntent = SdkEventOccurrenceCapacityIntent;
|
|
472
472
|
export type EventSeriesUpsertInput = SdkEventUpsertBody;
|
|
473
|
-
export interface CourseSession {
|
|
474
|
-
startsAt: string;
|
|
475
|
-
endsAt: string;
|
|
476
|
-
}
|
|
477
|
-
export interface CourseProgramContent {
|
|
478
|
-
identifier: string | null;
|
|
479
|
-
data: Record<string, unknown>;
|
|
480
|
-
}
|
|
481
|
-
export interface ManagementCourseRun {
|
|
482
|
-
id: string;
|
|
483
|
-
seriesId: string;
|
|
484
|
-
identifier: string;
|
|
485
|
-
title: string;
|
|
486
|
-
slug: string;
|
|
487
|
-
status: 'draft' | 'active' | 'cancelled' | 'completed';
|
|
488
|
-
visibility: 'private' | 'public' | 'unlisted';
|
|
489
|
-
venueRef: string | null;
|
|
490
|
-
categoryRef: string | null;
|
|
491
|
-
formRef: string | null;
|
|
492
|
-
capacity: number | null;
|
|
493
|
-
enrollmentCapacity: number | null;
|
|
494
|
-
acceptsMemberships: boolean;
|
|
495
|
-
priceCents: number | null;
|
|
496
|
-
currency: string;
|
|
497
|
-
sessions: CourseSession[];
|
|
498
|
-
programRef: string | null;
|
|
499
|
-
program: CourseProgramContent | null;
|
|
500
|
-
createdAt: string;
|
|
501
|
-
updatedAt: string;
|
|
502
|
-
}
|
|
503
|
-
export interface CourseRunUpsertInput {
|
|
504
|
-
identifier: string;
|
|
505
|
-
title: string;
|
|
506
|
-
slug: string;
|
|
507
|
-
status?: 'draft' | 'active' | 'cancelled';
|
|
508
|
-
visibility?: 'private' | 'public' | 'unlisted';
|
|
509
|
-
venueRef?: string | null;
|
|
510
|
-
categoryRef?: string | null;
|
|
511
|
-
formRef?: string | null;
|
|
512
|
-
capacity?: number | null;
|
|
513
|
-
enrollmentCapacity?: number | null;
|
|
514
|
-
acceptsMemberships?: boolean;
|
|
515
|
-
priceCents?: number | null;
|
|
516
|
-
currency?: string;
|
|
517
|
-
sessions: CourseSession[];
|
|
518
|
-
programRef?: string | null;
|
|
519
|
-
program?: CourseProgramContent | null;
|
|
520
|
-
}
|
|
521
|
-
export interface CourseSessionConflict {
|
|
522
|
-
code: 'course_sessions_enrolled_conflict';
|
|
523
|
-
identifier: string;
|
|
524
|
-
enrollmentCount: number;
|
|
525
|
-
message: string;
|
|
526
|
-
}
|
|
527
473
|
export interface ManagementMediaAsset {
|
|
528
474
|
id: string;
|
|
529
475
|
siteId: string;
|
|
@@ -593,9 +539,9 @@ export interface ThemeStyleSelectionApplyResult {
|
|
|
593
539
|
activePaletteSelection: PaletteSelection;
|
|
594
540
|
activeSitePaletteVersion: number | null;
|
|
595
541
|
headerLookId: string | null;
|
|
596
|
-
headerLayoutId: string;
|
|
597
|
-
headerStyleId: string;
|
|
598
|
-
footerLookId: string;
|
|
542
|
+
headerLayoutId: string | null;
|
|
543
|
+
headerStyleId: string | null;
|
|
544
|
+
footerLookId: string | null;
|
|
599
545
|
}
|
|
600
546
|
/**
|
|
601
547
|
* Footer content for SDK management operations.
|
|
@@ -804,31 +750,6 @@ export interface PulledEvents {
|
|
|
804
750
|
pulledAt: string;
|
|
805
751
|
};
|
|
806
752
|
}
|
|
807
|
-
export interface PulledCourses {
|
|
808
|
-
courses: Array<{
|
|
809
|
-
identifier: string;
|
|
810
|
-
title: string;
|
|
811
|
-
slug: string;
|
|
812
|
-
status: 'draft' | 'active' | 'cancelled' | 'completed';
|
|
813
|
-
visibility?: 'private' | 'public' | 'unlisted';
|
|
814
|
-
venueRef: string | null;
|
|
815
|
-
categoryRef: string | null;
|
|
816
|
-
formRef: string | null;
|
|
817
|
-
capacity: number | null;
|
|
818
|
-
enrollmentCapacity: number | null;
|
|
819
|
-
acceptsMemberships: boolean;
|
|
820
|
-
priceCents: number | null;
|
|
821
|
-
currency: string;
|
|
822
|
-
sessions: CourseSession[];
|
|
823
|
-
programRef: string | null;
|
|
824
|
-
program: CourseProgramContent | null;
|
|
825
|
-
updatedAt: string;
|
|
826
|
-
createdAt: string;
|
|
827
|
-
}>;
|
|
828
|
-
meta: {
|
|
829
|
-
pulledAt: string;
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
753
|
/**
|
|
833
754
|
* Site info returned by the siteInfo() method.
|
|
834
755
|
* Contains configuration data from the CMS server.
|
|
@@ -869,7 +790,6 @@ export interface PulledContent {
|
|
|
869
790
|
venues?: PulledVenues['venues'];
|
|
870
791
|
eventCategories?: PulledEventCategories['eventCategories'];
|
|
871
792
|
events?: PulledEvents['events'];
|
|
872
|
-
courses?: PulledCourses['courses'];
|
|
873
793
|
meta: {
|
|
874
794
|
pulledAt: string;
|
|
875
795
|
settingsUpdatedAt?: string | null;
|
|
@@ -1036,12 +956,6 @@ export interface EventOccurrenceOperations {
|
|
|
1036
956
|
cancel(identifier: string, occurrenceId: string): Promise<ManagementEventOccurrence>;
|
|
1037
957
|
delete(identifier: string, occurrenceId: string): Promise<void>;
|
|
1038
958
|
}
|
|
1039
|
-
export interface CourseOperations {
|
|
1040
|
-
list(): Promise<ManagementCourseRun[]>;
|
|
1041
|
-
get(identifier: string): Promise<ManagementCourseRun | null>;
|
|
1042
|
-
upsert(input: CourseRunUpsertInput): Promise<ManagementCourseRun>;
|
|
1043
|
-
delete(identifier: string): Promise<void>;
|
|
1044
|
-
}
|
|
1045
959
|
export interface PullOperations {
|
|
1046
960
|
entries(contentType?: string, options?: PaginationOptions): Promise<PulledEntries>;
|
|
1047
961
|
pages(): Promise<PulledPages>;
|
|
@@ -1058,7 +972,6 @@ export interface PullOperations {
|
|
|
1058
972
|
venues(): Promise<PulledVenues>;
|
|
1059
973
|
eventCategories(): Promise<PulledEventCategories>;
|
|
1060
974
|
events(): Promise<PulledEvents>;
|
|
1061
|
-
courses(): Promise<PulledCourses>;
|
|
1062
975
|
all(): Promise<PulledContent>;
|
|
1063
976
|
/**
|
|
1064
977
|
* Get site configuration info from the CMS server.
|
|
@@ -1170,7 +1083,6 @@ export interface ManagementClient {
|
|
|
1170
1083
|
venues: VenueOperations;
|
|
1171
1084
|
eventCategories: EventCategoryOperations;
|
|
1172
1085
|
events: EventOperations;
|
|
1173
|
-
courses: CourseOperations;
|
|
1174
1086
|
pull: PullOperations;
|
|
1175
1087
|
/** Discovery catalogs (theme / blocks / content-types). */
|
|
1176
1088
|
catalog: CatalogOperations;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { GetPageParams, GetSiteParams } from './types';
|
|
2
|
+
declare const publishedRuntimeCacheKeyBrand: unique symbol;
|
|
3
|
+
declare const publishedRuntimeCachePayloadSchemaVersionBrand: unique symbol;
|
|
4
|
+
export type PublishedRuntimeCacheKey = string & {
|
|
5
|
+
readonly [publishedRuntimeCacheKeyBrand]: 'PublishedRuntimeCacheKey';
|
|
6
|
+
};
|
|
7
|
+
export type PublishedRuntimeCachePayloadSchemaVersion = number & {
|
|
8
|
+
readonly [publishedRuntimeCachePayloadSchemaVersionBrand]: 'PublishedRuntimeCachePayloadSchemaVersion';
|
|
9
|
+
};
|
|
10
|
+
export declare const DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION: PublishedRuntimeCachePayloadSchemaVersion;
|
|
11
|
+
export type GetSiteRuntimeCacheParams = Readonly<Pick<GetSiteParams, 'id' | 'slug' | 'domain' | 'currentPath' | 'force'>>;
|
|
12
|
+
export type GetContentByPathRuntimeCacheParams = Readonly<Pick<GetPageParams, 'siteId' | 'path' | 'preview'>>;
|
|
13
|
+
type KeyDeriverInputByEndpoint = Readonly<{
|
|
14
|
+
getSite: GetSiteRuntimeCacheParams;
|
|
15
|
+
getContentByPath: GetContentByPathRuntimeCacheParams;
|
|
16
|
+
}>;
|
|
17
|
+
export type PublishedRuntimeCacheKeyEndpoint = keyof KeyDeriverInputByEndpoint;
|
|
18
|
+
export type PublishedRuntimeNormalizedParams = Readonly<Record<string, string>>;
|
|
19
|
+
export type DurableRuntimeCacheKeyInput = {
|
|
20
|
+
[E in PublishedRuntimeCacheKeyEndpoint]: Readonly<{
|
|
21
|
+
endpoint: E;
|
|
22
|
+
params: KeyDeriverInputByEndpoint[E];
|
|
23
|
+
}>;
|
|
24
|
+
}[PublishedRuntimeCacheKeyEndpoint];
|
|
25
|
+
export type DurableRuntimeCacheKeyError = Readonly<{
|
|
26
|
+
kind: 'missing_site_identity';
|
|
27
|
+
acceptedParams: readonly ['slug', 'domain', 'id'];
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'missing_required_param';
|
|
30
|
+
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
31
|
+
param: 'siteId';
|
|
32
|
+
}>;
|
|
33
|
+
export type DurableRuntimeCacheKeyResult = Readonly<{
|
|
34
|
+
ok: true;
|
|
35
|
+
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
36
|
+
key: PublishedRuntimeCacheKey;
|
|
37
|
+
normalizedParams: PublishedRuntimeNormalizedParams;
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
ok: false;
|
|
40
|
+
error: DurableRuntimeCacheKeyError;
|
|
41
|
+
}>;
|
|
42
|
+
export type ParsePublishedRuntimeCacheKeyResult = Readonly<{
|
|
43
|
+
ok: true;
|
|
44
|
+
key: PublishedRuntimeCacheKey;
|
|
45
|
+
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
ok: false;
|
|
48
|
+
error: 'not_string' | 'invalid_prefix' | 'unknown_endpoint' | 'invalid_param_encoding';
|
|
49
|
+
}>;
|
|
50
|
+
export type ParsePublishedRuntimeCacheKeyDetailsResult = Readonly<{
|
|
51
|
+
ok: true;
|
|
52
|
+
key: PublishedRuntimeCacheKey;
|
|
53
|
+
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
54
|
+
normalizedParams: PublishedRuntimeNormalizedParams;
|
|
55
|
+
}> | Readonly<{
|
|
56
|
+
ok: false;
|
|
57
|
+
error: 'not_string' | 'invalid_prefix' | 'unknown_endpoint' | 'invalid_param_encoding';
|
|
58
|
+
}>;
|
|
59
|
+
export type ParsePublishedRuntimeCachePayloadSchemaVersionResult = Readonly<{
|
|
60
|
+
ok: true;
|
|
61
|
+
value: PublishedRuntimeCachePayloadSchemaVersion;
|
|
62
|
+
}> | Readonly<{
|
|
63
|
+
ok: false;
|
|
64
|
+
error: 'not_number' | 'not_integer' | 'not_positive';
|
|
65
|
+
}>;
|
|
66
|
+
export declare function normalizeRuntimePublicPath(value: unknown): string;
|
|
67
|
+
export declare function deriveDurableRuntimeCacheKey(input: DurableRuntimeCacheKeyInput): DurableRuntimeCacheKeyResult;
|
|
68
|
+
export declare function isPublishedRuntimeCacheKeyEndpoint(value: unknown): value is PublishedRuntimeCacheKeyEndpoint;
|
|
69
|
+
export declare function parsePublishedRuntimeCacheKey(value: unknown): ParsePublishedRuntimeCacheKeyResult;
|
|
70
|
+
export declare function parsePublishedRuntimeCacheKeyDetails(value: unknown): ParsePublishedRuntimeCacheKeyDetailsResult;
|
|
71
|
+
export declare function parsePublishedRuntimeCachePayloadSchemaVersion(value: unknown): ParsePublishedRuntimeCachePayloadSchemaVersionResult;
|
|
72
|
+
export {};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import type { PublicEndpointName } from '../public-api/contracts';
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type PublishedRuntimeCacheKey = string & {
|
|
6
|
-
readonly [publishedRuntimeCacheKeyBrand]: 'PublishedRuntimeCacheKey';
|
|
7
|
-
};
|
|
8
|
-
export type PublishedRuntimeCachePayloadSchemaVersion = number & {
|
|
9
|
-
readonly [publishedRuntimeCachePayloadSchemaVersionBrand]: 'PublishedRuntimeCachePayloadSchemaVersion';
|
|
10
|
-
};
|
|
11
|
-
export declare const DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION: PublishedRuntimeCachePayloadSchemaVersion;
|
|
2
|
+
import { type DurableRuntimeCacheKeyError, type DurableRuntimeCacheKeyInput, type DurableRuntimeCacheKeyResult, type PublishedRuntimeCacheKey, type PublishedRuntimeCacheKeyEndpoint, type PublishedRuntimeCachePayloadSchemaVersion, type PublishedRuntimeNormalizedParams } from './runtimeCacheKeys';
|
|
3
|
+
export { DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, isPublishedRuntimeCacheKeyEndpoint, normalizeRuntimePublicPath, parsePublishedRuntimeCacheKey, parsePublishedRuntimeCacheKeyDetails, parsePublishedRuntimeCachePayloadSchemaVersion, } from './runtimeCacheKeys';
|
|
4
|
+
export type { GetContentByPathRuntimeCacheParams, GetSiteRuntimeCacheParams, ParsePublishedRuntimeCacheKeyDetailsResult, ParsePublishedRuntimeCacheKeyResult, ParsePublishedRuntimeCachePayloadSchemaVersionResult, PublishedRuntimeCacheKey, PublishedRuntimeCacheKeyEndpoint, PublishedRuntimeCachePayloadSchemaVersion, PublishedRuntimeNormalizedParams, } from './runtimeCacheKeys';
|
|
12
5
|
export type RuntimeCachePolicyKind = 'durable-public-stale' | 'memory-only' | 'live-only';
|
|
13
6
|
export type RuntimeCacheLiveOnlyReason = 'unknown_endpoint' | 'non_get_request' | 'preview_request' | 'force_refresh' | 'opaque_batch_loader' | 'challenge_endpoint' | 'auth_required' | 'safety_sensitive_booking';
|
|
14
7
|
export type RuntimeCachePolicy = Readonly<{
|
|
@@ -33,37 +26,6 @@ export type ResolveRuntimeCachePolicyInput = Readonly<{
|
|
|
33
26
|
params?: RuntimeCacheParams;
|
|
34
27
|
}>;
|
|
35
28
|
export declare function resolveRuntimeCachePolicy(input: ResolveRuntimeCachePolicyInput): RuntimeCachePolicy;
|
|
36
|
-
export type GetSiteRuntimeCacheParams = Readonly<Pick<GetSiteParams, 'id' | 'slug' | 'domain' | 'currentPath' | 'force'>>;
|
|
37
|
-
export type GetContentByPathRuntimeCacheParams = Readonly<Pick<GetPageParams, 'siteId' | 'path' | 'preview' | 'contentContract'>>;
|
|
38
|
-
type KeyDeriverInputByEndpoint = Readonly<{
|
|
39
|
-
getSite: GetSiteRuntimeCacheParams;
|
|
40
|
-
getContentByPath: GetContentByPathRuntimeCacheParams;
|
|
41
|
-
}>;
|
|
42
|
-
export type PublishedRuntimeCacheKeyEndpoint = keyof typeof DURABLE_RUNTIME_CACHE_KEY_DERIVERS;
|
|
43
|
-
export type ParsePublishedRuntimeCacheKeyResult = Readonly<{
|
|
44
|
-
ok: true;
|
|
45
|
-
key: PublishedRuntimeCacheKey;
|
|
46
|
-
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
47
|
-
}> | Readonly<{
|
|
48
|
-
ok: false;
|
|
49
|
-
error: 'not_string' | 'invalid_prefix' | 'unknown_endpoint' | 'invalid_param_encoding';
|
|
50
|
-
}>;
|
|
51
|
-
export type ParsePublishedRuntimeCacheKeyDetailsResult = Readonly<{
|
|
52
|
-
ok: true;
|
|
53
|
-
key: PublishedRuntimeCacheKey;
|
|
54
|
-
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
55
|
-
normalizedParams: PublishedRuntimeNormalizedParams;
|
|
56
|
-
}> | Readonly<{
|
|
57
|
-
ok: false;
|
|
58
|
-
error: 'not_string' | 'invalid_prefix' | 'unknown_endpoint' | 'invalid_param_encoding';
|
|
59
|
-
}>;
|
|
60
|
-
export type ParsePublishedRuntimeCachePayloadSchemaVersionResult = Readonly<{
|
|
61
|
-
ok: true;
|
|
62
|
-
value: PublishedRuntimeCachePayloadSchemaVersion;
|
|
63
|
-
}> | Readonly<{
|
|
64
|
-
ok: false;
|
|
65
|
-
error: 'not_number' | 'not_integer' | 'not_positive';
|
|
66
|
-
}>;
|
|
67
29
|
export type PublishedRuntimeCacheFreshness = Readonly<{
|
|
68
30
|
kind: 'fresh';
|
|
69
31
|
staleAgeSec: 0;
|
|
@@ -117,44 +79,17 @@ export type PublishedRuntimeCacheAdapter = Readonly<{
|
|
|
117
79
|
read?: <TPayload = unknown>(input: PublishedRuntimeCacheReadInput) => Promise<PublishedRuntimeCacheReadResult<TPayload>>;
|
|
118
80
|
write?: <TPayload = unknown>(input: PublishedRuntimeCacheWriteInput<TPayload>) => void | Promise<void>;
|
|
119
81
|
}>;
|
|
120
|
-
export type DerivePublishedRuntimeCacheKeyInput =
|
|
121
|
-
[E in PublishedRuntimeCacheKeyEndpoint]: Readonly<{
|
|
122
|
-
endpoint: E;
|
|
123
|
-
params: KeyDeriverInputByEndpoint[E];
|
|
124
|
-
}>;
|
|
125
|
-
}[PublishedRuntimeCacheKeyEndpoint];
|
|
126
|
-
export type PublishedRuntimeNormalizedParams = Readonly<Record<string, string>>;
|
|
82
|
+
export type DerivePublishedRuntimeCacheKeyInput = DurableRuntimeCacheKeyInput;
|
|
127
83
|
export type PublishedRuntimeCacheKeyError = Readonly<{
|
|
128
84
|
kind: 'not_durable_eligible';
|
|
129
85
|
policy: RuntimeCachePolicy;
|
|
130
|
-
}> |
|
|
131
|
-
|
|
132
|
-
acceptedParams: readonly ['slug', 'domain', 'id'];
|
|
133
|
-
}> | Readonly<{
|
|
134
|
-
kind: 'missing_required_param';
|
|
135
|
-
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
136
|
-
param: 'siteId';
|
|
137
|
-
}>;
|
|
138
|
-
export type DerivePublishedRuntimeCacheKeyResult = Readonly<{
|
|
139
|
-
ok: true;
|
|
140
|
-
endpoint: PublishedRuntimeCacheKeyEndpoint;
|
|
141
|
-
key: PublishedRuntimeCacheKey;
|
|
142
|
-
normalizedParams: PublishedRuntimeNormalizedParams;
|
|
143
|
-
}> | Readonly<{
|
|
86
|
+
}> | DurableRuntimeCacheKeyError;
|
|
87
|
+
export type DerivePublishedRuntimeCacheKeyResult = DurableRuntimeCacheKeyResult | Readonly<{
|
|
144
88
|
ok: false;
|
|
145
|
-
error:
|
|
89
|
+
error: Readonly<{
|
|
90
|
+
kind: 'not_durable_eligible';
|
|
91
|
+
policy: RuntimeCachePolicy;
|
|
92
|
+
}>;
|
|
146
93
|
}>;
|
|
147
|
-
export declare function normalizeRuntimePublicPath(value: unknown): string;
|
|
148
|
-
declare function deriveGetSiteKey(params: GetSiteRuntimeCacheParams): DerivePublishedRuntimeCacheKeyResult;
|
|
149
|
-
declare function deriveGetContentByPathKey(params: GetContentByPathRuntimeCacheParams): DerivePublishedRuntimeCacheKeyResult;
|
|
150
|
-
declare const DURABLE_RUNTIME_CACHE_KEY_DERIVERS: {
|
|
151
|
-
readonly getSite: typeof deriveGetSiteKey;
|
|
152
|
-
readonly getContentByPath: typeof deriveGetContentByPathKey;
|
|
153
|
-
};
|
|
154
|
-
export declare function isPublishedRuntimeCacheKeyEndpoint(value: unknown): value is PublishedRuntimeCacheKeyEndpoint;
|
|
155
|
-
export declare function parsePublishedRuntimeCacheKey(value: unknown): ParsePublishedRuntimeCacheKeyResult;
|
|
156
|
-
export declare function parsePublishedRuntimeCacheKeyDetails(value: unknown): ParsePublishedRuntimeCacheKeyDetailsResult;
|
|
157
|
-
export declare function parsePublishedRuntimeCachePayloadSchemaVersion(value: unknown): ParsePublishedRuntimeCachePayloadSchemaVersionResult;
|
|
158
94
|
export declare function classifyPublishedRuntimeCacheFreshness(input: ClassifyPublishedRuntimeCacheFreshnessInput): PublishedRuntimeCacheFreshness;
|
|
159
95
|
export declare function derivePublishedRuntimeCacheKey(input: DerivePublishedRuntimeCacheKeyInput): DerivePublishedRuntimeCacheKeyResult;
|
|
160
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse,
|
|
1
|
+
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, ResolveEventOccurrenceResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
2
2
|
import type { PublishedRuntimeCacheAdapter, PublishedRuntimeCacheAdapterErrorKind } from './runtimeCachePolicy';
|
|
3
|
-
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse,
|
|
3
|
+
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, ResolveEventOccurrenceResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
4
4
|
/**
|
|
5
5
|
* Pagination metadata returned when `includeMeta: true`
|
|
6
6
|
*/
|
|
@@ -48,7 +48,6 @@ export type GetPageParams = {
|
|
|
48
48
|
siteId: string;
|
|
49
49
|
path: string;
|
|
50
50
|
preview?: boolean;
|
|
51
|
-
contentContract?: 'compat' | 'native';
|
|
52
51
|
} & SdkMethodOptions;
|
|
53
52
|
/**
|
|
54
53
|
* Base parameters for getEntries - shared across all overloads
|
|
@@ -481,14 +480,12 @@ export interface RiverbankClient {
|
|
|
481
480
|
categoryIds?: string;
|
|
482
481
|
venueId?: string;
|
|
483
482
|
staffMemberId?: string;
|
|
484
|
-
kind?: 'all' | '
|
|
483
|
+
kind?: 'all' | 'events';
|
|
485
484
|
eventSurface?: string;
|
|
486
485
|
eventPresets?: string;
|
|
487
486
|
scheduleScope?: string;
|
|
488
487
|
detailLevel?: 'full' | 'listing';
|
|
489
488
|
readProfile?: string;
|
|
490
|
-
/** Optional: filter to a specific content entry (event series) */
|
|
491
|
-
entryId?: string;
|
|
492
489
|
/** Optional: filter to a specific seriesId */
|
|
493
490
|
seriesId?: string;
|
|
494
491
|
/** Optional: force-include a specific occurrenceId even if outside date range */
|
|
@@ -512,18 +509,9 @@ export interface RiverbankClient {
|
|
|
512
509
|
eventSurface?: string;
|
|
513
510
|
eventPresets?: string;
|
|
514
511
|
scheduleScope?: string;
|
|
515
|
-
entryId?: string;
|
|
516
512
|
seriesId?: string;
|
|
517
513
|
includeOccurrenceId?: string;
|
|
518
514
|
} & SdkMethodOptions): Promise<PublicEventDetailsResponse>;
|
|
519
|
-
/**
|
|
520
|
-
* List public courses for a site (for course registration block)
|
|
521
|
-
*/
|
|
522
|
-
listPublicCourses(params: {
|
|
523
|
-
siteId: string;
|
|
524
|
-
limit?: number;
|
|
525
|
-
stage?: string;
|
|
526
|
-
} & SdkMethodOptions): Promise<PublicCoursesResponse>;
|
|
527
515
|
/**
|
|
528
516
|
* List public team members for a site (for Team Members block)
|
|
529
517
|
*/
|
|
@@ -553,25 +541,11 @@ export interface RiverbankClient {
|
|
|
553
541
|
siteId: string;
|
|
554
542
|
categories?: string;
|
|
555
543
|
} & SdkMethodOptions): Promise<PublicMembershipsResponse>;
|
|
556
|
-
/**
|
|
557
|
-
* Resolve an entry subroute by kind and segment.
|
|
558
|
-
*
|
|
559
|
-
* Generic resolver used by SDK routing for URLs like:
|
|
560
|
-
* - Event occurrence: /events/yoga-class/2026-01-15
|
|
561
|
-
* - Course run: /courses/beginners/spring-2026
|
|
562
|
-
*/
|
|
563
|
-
resolveEntrySubroute(params: {
|
|
564
|
-
siteId: string;
|
|
565
|
-
entryId: string;
|
|
566
|
-
kind: 'event-occurrence' | 'course-run';
|
|
567
|
-
segment: string;
|
|
568
|
-
stage?: 'preview' | 'published';
|
|
569
|
-
} & SdkMethodOptions): Promise<ResolveEntrySubrouteResponse>;
|
|
570
544
|
/**
|
|
571
545
|
* Resolve an event occurrence by URL segment (date or UUID)
|
|
572
546
|
*
|
|
573
547
|
* @param params.siteId - The site ID
|
|
574
|
-
* @param params.
|
|
548
|
+
* @param params.eventSeriesIds - The event series that may own the occurrence
|
|
575
549
|
* @param params.segment - URL segment - either a date (YYYY-MM-DD) or UUID
|
|
576
550
|
*
|
|
577
551
|
* @example
|
|
@@ -579,21 +553,21 @@ export interface RiverbankClient {
|
|
|
579
553
|
* // Resolve occurrence by date
|
|
580
554
|
* const result = await client.resolveEventOccurrence({
|
|
581
555
|
* siteId: 'site-id',
|
|
582
|
-
*
|
|
556
|
+
* eventSeriesIds: ['event-series-id'],
|
|
583
557
|
* segment: '2025-01-15',
|
|
584
558
|
* });
|
|
585
559
|
*
|
|
586
560
|
* // Resolve occurrence by UUID
|
|
587
561
|
* const result = await client.resolveEventOccurrence({
|
|
588
562
|
* siteId: 'site-id',
|
|
589
|
-
*
|
|
563
|
+
* eventSeriesIds: ['event-series-id'],
|
|
590
564
|
* segment: 'abc123-...',
|
|
591
565
|
* });
|
|
592
566
|
* ```
|
|
593
567
|
*/
|
|
594
568
|
resolveEventOccurrence(params: {
|
|
595
569
|
siteId: string;
|
|
596
|
-
|
|
570
|
+
eventSeriesIds: readonly [string, ...string[]];
|
|
597
571
|
segment: string;
|
|
598
572
|
} & SdkMethodOptions): Promise<ResolveEventOccurrenceResponse>;
|
|
599
573
|
/**
|
|
@@ -27,6 +27,6 @@ export { Layout } from './rendering/components/Layout';
|
|
|
27
27
|
export type { LayoutProps, HeaderData, FooterData } from './rendering/components/Layout';
|
|
28
28
|
export type { SdkThemeResponsiveMode, SdkThemeRuntime, } from './rendering/themeRuntime';
|
|
29
29
|
export { PageRenderer, ThemeScope, buildThemeRuntime, RichText, resolveImageUrl, resolveImageUrlWithContext, resolveImageSourceSetWithContext, ImagePresets, } from './rendering';
|
|
30
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, CollectionContent, ColumnsContent,
|
|
30
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, CollectionContent, ColumnsContent, CtaFullContent, EmbedContent, EventCalendarContent, EventDetailsContent, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FormBlockContent, GiftingContent, HeroContent, HeroMedia, ImageGalleryContent, MediaTextContent, NewsletterSignupContent, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, SystemBlockContentByKind, SystemBlockContentFor, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, VideoGridContent, ImageOptions, ResolveImageUrlContext, ResolveImageSourceSetOptions, ResolvedImageSourceSet, PageOutline, RouteMap, Theme, ThemeTokens, Media, TipTapNode, LinkValue, RichTextPrimitiveProps, } from './rendering';
|
|
31
31
|
export type { BlockOverrideProps, BlockOverrideRegistration, BlockOverrideRegistrations, BlockOverrides, BlockOverrideComponent, CustomBlockOverrideKey, KnownSystemBlockOverrides, KnownBlockOverrideKey, LazyBlockOverrideFactory, LazyBlockOverrideRegistration, StrictBlockOverrideRegistrations, StrictBlockOverrides, SystemBlockOverrideKey, } from './rendering';
|
|
32
32
|
export { defineBlockOverrideRegistrations, defineBlockOverrides, defineLazyBlockOverride, } from './rendering';
|
|
@@ -45,7 +45,7 @@ export type BlockCategory = 'marketing' | 'content' | 'blog' | 'media' | 'layout
|
|
|
45
45
|
*
|
|
46
46
|
* Re-exported from `@riverbankcms/blocks` (single source of truth).
|
|
47
47
|
*/
|
|
48
|
-
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "listPublicRecurringSchedule", "getPublicEventDetails", "
|
|
48
|
+
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "listPublicRecurringSchedule", "getPublicEventDetails", "listPublicWholeSeriesOfferings", "listPublicRouteCandidates", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "getPublicFormById", "getPublicBookingServices", "getPublicWeeklySlotAvailability"];
|
|
49
49
|
export type SdkLoaderEndpoint = (typeof SUPPORTED_LOADER_ENDPOINTS)[number];
|
|
50
50
|
export type LoaderParamBinding = {
|
|
51
51
|
$bind: {
|
|
@@ -138,10 +138,9 @@ export declare const sdkLoaderEndpointSchema: z.ZodEnum<{
|
|
|
138
138
|
getPublicWeeklySlotAvailability: "getPublicWeeklySlotAvailability";
|
|
139
139
|
listPublicEvents: "listPublicEvents";
|
|
140
140
|
listPublicPasses: "listPublicPasses";
|
|
141
|
-
listPublicCourses: "listPublicCourses";
|
|
142
|
-
listPublicTeamMembers: "listPublicTeamMembers";
|
|
143
141
|
listPublicMemberships: "listPublicMemberships";
|
|
144
142
|
listPublicProducts: "listPublicProducts";
|
|
143
|
+
listPublicTeamMembers: "listPublicTeamMembers";
|
|
145
144
|
getPublishedEntryPreview: "getPublishedEntryPreview";
|
|
146
145
|
listPublishedEntries: "listPublishedEntries";
|
|
147
146
|
listPublicRecurringSchedule: "listPublicRecurringSchedule";
|
|
@@ -228,10 +227,9 @@ export declare const sdkConfigLoaderSchema: z.ZodObject<{
|
|
|
228
227
|
getPublicWeeklySlotAvailability: "getPublicWeeklySlotAvailability";
|
|
229
228
|
listPublicEvents: "listPublicEvents";
|
|
230
229
|
listPublicPasses: "listPublicPasses";
|
|
231
|
-
listPublicCourses: "listPublicCourses";
|
|
232
|
-
listPublicTeamMembers: "listPublicTeamMembers";
|
|
233
230
|
listPublicMemberships: "listPublicMemberships";
|
|
234
231
|
listPublicProducts: "listPublicProducts";
|
|
232
|
+
listPublicTeamMembers: "listPublicTeamMembers";
|
|
235
233
|
getPublishedEntryPreview: "getPublishedEntryPreview";
|
|
236
234
|
listPublishedEntries: "listPublishedEntries";
|
|
237
235
|
listPublicRecurringSchedule: "listPublicRecurringSchedule";
|
|
@@ -294,10 +292,9 @@ export declare const sdkDataLoadersSchema: z.ZodOptional<z.ZodRecord<z.ZodString
|
|
|
294
292
|
getPublicWeeklySlotAvailability: "getPublicWeeklySlotAvailability";
|
|
295
293
|
listPublicEvents: "listPublicEvents";
|
|
296
294
|
listPublicPasses: "listPublicPasses";
|
|
297
|
-
listPublicCourses: "listPublicCourses";
|
|
298
|
-
listPublicTeamMembers: "listPublicTeamMembers";
|
|
299
295
|
listPublicMemberships: "listPublicMemberships";
|
|
300
296
|
listPublicProducts: "listPublicProducts";
|
|
297
|
+
listPublicTeamMembers: "listPublicTeamMembers";
|
|
301
298
|
getPublishedEntryPreview: "getPublishedEntryPreview";
|
|
302
299
|
listPublishedEntries: "listPublishedEntries";
|
|
303
300
|
listPublicRecurringSchedule: "listPublicRecurringSchedule";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TipTapNode, TipTapMark, RichTextDoc, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent,
|
|
2
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
3
|
export type { PageOutline, PageRuntimeBoundary, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
5
5
|
export type { CustomCssDeclarationsInput, CustomCssRuleInput, CustomCssNestedRuleInput, CustomCssAtRuleInput, KeyframesAtRuleInput, FontFaceAtRuleInput, MediaAtRuleInput, SupportsAtRuleInput, RawAtRuleInput, } from './custom-css';
|
|
@@ -40,12 +40,4 @@ export type OccurrenceContextData = {
|
|
|
40
40
|
export type EntrySubrouteContextData = {
|
|
41
41
|
kind: 'event-occurrence';
|
|
42
42
|
occurrence: OccurrenceContextData;
|
|
43
|
-
} | {
|
|
44
|
-
kind: 'course-run';
|
|
45
|
-
run: {
|
|
46
|
-
courseId: string;
|
|
47
|
-
seriesId: string;
|
|
48
|
-
runSlug: string;
|
|
49
|
-
runName: string | null;
|
|
50
|
-
};
|
|
51
43
|
};
|
|
@@ -149,34 +149,6 @@ export type ColumnsContent = {
|
|
|
149
149
|
}>;
|
|
150
150
|
}>;
|
|
151
151
|
};
|
|
152
|
-
export type CourseDetailsContent = {
|
|
153
|
-
heading?: string | null;
|
|
154
|
-
courseSlug?: string | null;
|
|
155
|
-
showTitle?: boolean | null;
|
|
156
|
-
showDescription?: boolean | null;
|
|
157
|
-
showSessions?: boolean | null;
|
|
158
|
-
sessionsLimit?: '3' | '5' | '10' | 'all' | null;
|
|
159
|
-
showVenue?: boolean | null;
|
|
160
|
-
showPrice?: boolean | null;
|
|
161
|
-
showCapacity?: boolean | null;
|
|
162
|
-
showEnrollmentStatus?: boolean | null;
|
|
163
|
-
showMembershipNote?: boolean | null;
|
|
164
|
-
_sectionStyles?: SectionStylesContent;
|
|
165
|
-
};
|
|
166
|
-
export type CourseRegistrationContent = {
|
|
167
|
-
heading?: string | null;
|
|
168
|
-
description?: unknown;
|
|
169
|
-
showSessions?: boolean | null;
|
|
170
|
-
showPrice?: boolean | null;
|
|
171
|
-
showCapacity?: boolean | null;
|
|
172
|
-
showVenue?: boolean | null;
|
|
173
|
-
successMessage?: string | null;
|
|
174
|
-
waitlistMessage?: string | null;
|
|
175
|
-
membershipMessage?: string | null;
|
|
176
|
-
buttonText?: string | null;
|
|
177
|
-
buttonVariant?: ButtonVariant | null;
|
|
178
|
-
_sectionStyles?: SectionStylesContent;
|
|
179
|
-
};
|
|
180
152
|
export type CtaFullContent = {
|
|
181
153
|
eyebrow?: string | null;
|
|
182
154
|
title: string;
|
|
@@ -208,8 +180,7 @@ export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'acc
|
|
|
208
180
|
export type CardVariantRole = 'default' | 'alternative';
|
|
209
181
|
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2';
|
|
210
182
|
export type EventCardVariantInput = CardVariantRole | LegacyCardVariantRoleAlias;
|
|
211
|
-
export type
|
|
212
|
-
export type EventSurfacePreset = 'class' | 'workshop' | 'retreat' | 'performance';
|
|
183
|
+
export type EventSurfacePreset = 'course' | 'class' | 'workshop' | 'retreat' | 'performance';
|
|
213
184
|
export type EventSurfaceScope = 'all' | 'regularClassSchedule' | 'specialDatedEvents' | 'custom';
|
|
214
185
|
export type EventScheduleScope = 'any' | 'recurring' | 'oneOff';
|
|
215
186
|
export type EventCalendarContent = {
|
|
@@ -229,7 +200,6 @@ export type EventCalendarContent = {
|
|
|
229
200
|
showCategoryFilter?: FilterAutoShow | null;
|
|
230
201
|
showVenueFilter?: boolean | null;
|
|
231
202
|
showStaffFilter?: boolean | null;
|
|
232
|
-
kind?: EventBlockKind | null;
|
|
233
203
|
eventSurface?: EventSurfaceScope | null;
|
|
234
204
|
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
235
205
|
scheduleScope?: EventScheduleScope | null;
|
|
@@ -267,7 +237,6 @@ export type EventListingContent = {
|
|
|
267
237
|
showVenue?: boolean | null;
|
|
268
238
|
showMap?: boolean | null;
|
|
269
239
|
showCapacity?: boolean | null;
|
|
270
|
-
kind?: EventBlockKind | null;
|
|
271
240
|
eventSurface?: EventSurfaceScope | null;
|
|
272
241
|
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
273
242
|
scheduleScope?: EventScheduleScope | null;
|
|
@@ -726,8 +695,6 @@ export type SystemBlockContentByFullKind = {
|
|
|
726
695
|
'block.weekly-slot-availability': WeeklySlotAvailabilityContent;
|
|
727
696
|
'block.event-registration': EventRegistrationContent;
|
|
728
697
|
'block.event-details': EventDetailsContent;
|
|
729
|
-
'block.course-registration': CourseRegistrationContent;
|
|
730
|
-
'block.course-details': CourseDetailsContent;
|
|
731
698
|
'block.event-spotlight': EventSpotlightContent;
|
|
732
699
|
'block.event-listing': EventListingContent;
|
|
733
700
|
'block.event-calendar': EventCalendarContent;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { PageOutline } from '../contracts';
|
|
6
6
|
import type { SdkCustomBlock } from '../config/types';
|
|
7
|
-
import { prefetchBlockData as prefetchBlockDataCore, normalizeLoaderParams,
|
|
7
|
+
import { prefetchBlockData as prefetchBlockDataCore, normalizeLoaderParams, type SupportedLoaderEndpoint } from '../../../blocks/src/system/data/index';
|
|
8
8
|
import type { RiverbankClient } from '../client/types';
|
|
9
9
|
export type PrefetchContext = {
|
|
10
10
|
siteId?: string;
|
|
@@ -13,8 +13,9 @@ export type PrefetchContext = {
|
|
|
13
13
|
root?: Record<string, unknown>;
|
|
14
14
|
};
|
|
15
15
|
export type ResolvedBlockData = Record<string, Record<string, unknown>>;
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
type SdkSupportedLoaderEndpoint = Exclude<SupportedLoaderEndpoint, 'listPublicWholeSeriesOfferings'>;
|
|
17
|
+
export declare const SUPPORTED_LOADER_ENDPOINTS: SdkSupportedLoaderEndpoint[];
|
|
18
|
+
export type { SdkSupportedLoaderEndpoint as SupportedLoaderEndpoint };
|
|
18
19
|
/**
|
|
19
20
|
* Options for SDK block data prefetching.
|
|
20
21
|
*/
|
|
@@ -40,15 +40,4 @@ export declare function slugToPath(slug?: string[]): string;
|
|
|
40
40
|
export declare function isReservedStaticPath(path: string): boolean;
|
|
41
41
|
export declare function toOccurrenceContextFromEntrySubroute(entrySubrouteData: EntrySubrouteData | null): OccurrenceContextData | null;
|
|
42
42
|
export declare function toEntrySubrouteContext(entrySubrouteData: EntrySubrouteData | null): EntrySubrouteContextData | null;
|
|
43
|
-
export declare function getEntrySubrouteMetadataOverrides(args: {
|
|
44
|
-
entrySubrouteContext: EntrySubrouteContextData | null;
|
|
45
|
-
canonicalPath: string;
|
|
46
|
-
siteUrl: string;
|
|
47
|
-
}): {
|
|
48
|
-
canonicalUrl?: string;
|
|
49
|
-
robots?: {
|
|
50
|
-
index?: boolean;
|
|
51
|
-
follow?: boolean;
|
|
52
|
-
};
|
|
53
|
-
} | undefined;
|
|
54
43
|
export {};
|