@riverbankcms/sdk 0.121.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-lZ600tJx.mjs → PreviewEditorSidebar-DBmAJJkQ.mjs} +24 -41
- package/dist/{PreviewEditorUI-CTBWzLSb.mjs → PreviewEditorUI-CfGaz9cY.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BHT8CJvZ.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DhPU58s7.mjs → SdkPreviewModeRuntime-BW9Z8j8T.mjs} +1020 -1234
- package/dist/{SiteChromeCustomizeContext-BkNvpzNZ.mjs → SiteChromeCustomizeContext-2z8moxYf.mjs} +1902 -1961
- 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 +100 -75
- 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 +10 -12
- 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 +6 -7
- 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 +1587 -115
- 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 +7392 -10989
- 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 +7398 -7687
- 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 -1043
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +1116 -1044
- package/dist/{previewAuthStore-31xH13Jc.mjs → previewAuthStore-CJX21dGi.mjs} +1119 -1044
- package/dist/{sdk-runtime-BE_vcGua.mjs → sdk-runtime-OnPM8Z69.mjs} +2 -2
- package/dist/{separator-CiffYtk3.mjs → separator-CPtfzHqA.mjs} +1 -1
- package/dist/server/components.mjs +11120 -12601
- 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 +1499 -1488
- package/dist/server/next.mjs +18291 -21201
- package/dist/server/page-converter.mjs +1898 -2040
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +19666 -21153
- package/dist/server/rendering.mjs +17117 -18651
- package/dist/server/routing.mjs +3614 -2509
- package/dist/server/server.mjs +3298 -3478
- 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
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
* Entry subroute detection utilities.
|
|
3
3
|
*
|
|
4
4
|
* An "entry subroute" is a URL path with one extra segment under a content entry path:
|
|
5
|
-
* - Parent entry: /
|
|
6
|
-
* - Subroute URL: /
|
|
5
|
+
* - Parent entry: /events/yoga
|
|
6
|
+
* - Subroute URL: /events/yoga/2026-08-14
|
|
7
7
|
*
|
|
8
8
|
* Detection is intentionally generic:
|
|
9
9
|
* - We parse the last segment.
|
|
10
10
|
* - We validate segment shape from declared `segmentType`.
|
|
11
11
|
* - We match the parent path against content type route patterns (when available).
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Event occurrence resolution is performed by callers via
|
|
14
|
+
* `resolvePageContent({ resolveSubroute })`.
|
|
14
15
|
*/
|
|
15
16
|
import type { ContentTypeRoutingInfo } from './contentTypeResolver';
|
|
16
17
|
type ContentTypeRoutingSubroute = NonNullable<ContentTypeRoutingInfo['subroutes']>[number];
|
|
@@ -26,7 +27,7 @@ export type ShouldAttemptEntrySubrouteArgs = {
|
|
|
26
27
|
entryTypeKey: string | null;
|
|
27
28
|
segment: string;
|
|
28
29
|
};
|
|
29
|
-
export type KnownEntrySubrouteKind = 'event-occurrence'
|
|
30
|
+
export type KnownEntrySubrouteKind = 'event-occurrence';
|
|
30
31
|
/**
|
|
31
32
|
* Parse a path into parent path and last segment.
|
|
32
33
|
* Returns null when no parent/segment split exists.
|
|
@@ -47,7 +48,6 @@ export declare function isSubrouteSlugSegment(segment: string): boolean;
|
|
|
47
48
|
* Default eligibility predicate for entry subroute resolution.
|
|
48
49
|
*
|
|
49
50
|
* - `event`: segment must be event-like (date or UUID)
|
|
50
|
-
* - `course`: segment must be slug-like (`spring-2026`)
|
|
51
51
|
* - `null`: used by fallback probing; keep it strict and only allow event-like segments
|
|
52
52
|
* - others: not subroute-eligible
|
|
53
53
|
*/
|
|
@@ -57,7 +57,7 @@ export declare function defaultShouldAttemptEntrySubroute(args: ShouldAttemptEnt
|
|
|
57
57
|
*
|
|
58
58
|
* This is primarily used by SDK catch-all routing when local config does not
|
|
59
59
|
* yet expose `routing.subroutes`, allowing generic resolver usage without
|
|
60
|
-
* duplicating event
|
|
60
|
+
* duplicating event-specific API calls.
|
|
61
61
|
*/
|
|
62
62
|
export declare function inferKnownEntrySubrouteKind(args: ShouldAttemptEntrySubrouteArgs): KnownEntrySubrouteKind | null;
|
|
63
63
|
export {};
|
|
@@ -15,7 +15,5 @@ export type { EntrySubrouteCandidate, ShouldAttemptEntrySubrouteArgs, KnownEntry
|
|
|
15
15
|
export { resolvePageContent } from './resolvePageContent';
|
|
16
16
|
export { contentFound, contentLoadFailed, contentNotFound, RiverbankContentLoadError, } from './resolvePageContent';
|
|
17
17
|
export type { OccurrenceData, EntrySubrouteData, LoadContentResult, PublicContentLoadError, PublicLoadStage, ResolvePageContentOptions, PageResolutionResult, RiverbankContentLoadErrorOptions, } from './resolvePageContent';
|
|
18
|
-
export { resolveEntrySubrouteFromSegment } from './resolveEntrySubroute';
|
|
19
|
-
export type { ResolveEntrySubrouteParams } from './resolveEntrySubroute';
|
|
20
18
|
export { checkRedirectForPath } from './checkRedirect';
|
|
21
19
|
export type { RedirectRule, RedirectResult, CheckRedirectParams, } from './checkRedirect';
|
|
@@ -32,9 +32,9 @@ export type ResolveOccurrenceParams = {
|
|
|
32
32
|
*/
|
|
33
33
|
siteId: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Event series IDs represented by the page authority.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
eventSeriesIds: readonly [string, ...string[]];
|
|
38
38
|
/**
|
|
39
39
|
* URL segment to resolve - either a date (YYYY-MM-DD) or UUID
|
|
40
40
|
*/
|
|
@@ -56,7 +56,7 @@ export type ResolveOccurrenceParams = {
|
|
|
56
56
|
* const result = await resolveOccurrence({
|
|
57
57
|
* client,
|
|
58
58
|
* siteId: 'your-site-id',
|
|
59
|
-
*
|
|
59
|
+
* eventSeriesIds: [pageSurface.subject.eventSeriesId],
|
|
60
60
|
* segment: params.occurrence, // e.g., "2025-01-15"
|
|
61
61
|
* });
|
|
62
62
|
*
|
|
@@ -7,20 +7,11 @@
|
|
|
7
7
|
* Both SDK and frontend inject their own auth/loaders, but share the same resolution logic.
|
|
8
8
|
*/
|
|
9
9
|
import type { ContentTypeRoutingInfo } from './contentTypeResolver';
|
|
10
|
-
import type {
|
|
11
|
-
type
|
|
12
|
-
export type OccurrenceData = Extract<ResolvedSubroute, {
|
|
13
|
-
kind: 'event-occurrence';
|
|
14
|
-
}>['occurrence'];
|
|
15
|
-
export type CourseRunData = Extract<ResolvedSubroute, {
|
|
16
|
-
kind: 'course-run';
|
|
17
|
-
}>['run'];
|
|
10
|
+
import type { ResolveEventOccurrenceResponse } from '../client/types';
|
|
11
|
+
export type OccurrenceData = NonNullable<ResolveEventOccurrenceResponse['occurrence']>;
|
|
18
12
|
export type EntrySubrouteData = {
|
|
19
13
|
kind: 'event-occurrence';
|
|
20
14
|
occurrence: OccurrenceData;
|
|
21
|
-
} | {
|
|
22
|
-
kind: 'course-run';
|
|
23
|
-
run: CourseRunData;
|
|
24
15
|
};
|
|
25
16
|
export type PublicLoadStage = 'site_lookup' | 'content_lookup' | 'entry_subroute_lookup' | 'redirect_lookup' | 'content_normalization';
|
|
26
17
|
export type PublicContentLoadError = {
|
|
@@ -98,42 +89,23 @@ export interface ResolvePageContentOptions<TContent> {
|
|
|
98
89
|
* @returns Content load result
|
|
99
90
|
*/
|
|
100
91
|
loadContent: (path: string) => Promise<LoadContentResult<TContent>>;
|
|
101
|
-
/**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* @param entryId - The parent entry's ID
|
|
105
|
-
* @param segment - The occurrence segment (date or UUID)
|
|
106
|
-
* @returns Occurrence data if valid, null if invalid
|
|
107
|
-
*/
|
|
108
|
-
resolveEntrySubroute: (args: {
|
|
109
|
-
entryId: string;
|
|
92
|
+
/** Resolve a subroute from the already-loaded parent page authority. */
|
|
93
|
+
resolveSubroute: (args: {
|
|
94
|
+
content: TContent;
|
|
110
95
|
kind?: string | null;
|
|
111
|
-
|
|
96
|
+
contentTypeKey: string | null;
|
|
112
97
|
segment: string;
|
|
113
98
|
}) => Promise<EntrySubrouteData | null>;
|
|
114
|
-
/**
|
|
115
|
-
|
|
116
|
-
* Used to determine if occurrence resolution is applicable.
|
|
117
|
-
*/
|
|
118
|
-
isEntry: (content: TContent) => boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Get the entry ID from content.
|
|
121
|
-
* Only called when isEntry returns true.
|
|
122
|
-
*/
|
|
123
|
-
getEntryId: (content: TContent) => string;
|
|
124
|
-
/**
|
|
125
|
-
* Get the entry type key (content type key/slug) from content.
|
|
126
|
-
* Only called when isEntry returns true.
|
|
127
|
-
*/
|
|
128
|
-
getEntryTypeKey: (content: TContent) => string | null;
|
|
99
|
+
/** Read the content type key for routing policy, regardless of owner kind. */
|
|
100
|
+
getContentTypeKey: (content: TContent) => string | null;
|
|
129
101
|
/**
|
|
130
102
|
* Optional optimization hook: decide whether to attempt subroute resolution
|
|
131
103
|
* based on the content type and segment, before loading the parent content.
|
|
132
104
|
*
|
|
133
105
|
* If omitted, subroute resolution is attempted whenever the URL matches an
|
|
134
|
-
* occurrence pattern
|
|
106
|
+
* event-occurrence pattern or the fallback extractor.
|
|
135
107
|
*/
|
|
136
|
-
|
|
108
|
+
shouldAttemptSubroute?: (args: {
|
|
137
109
|
entryTypeKey: string | null;
|
|
138
110
|
segment: string;
|
|
139
111
|
}) => boolean;
|
|
@@ -185,4 +157,3 @@ export type PageResolutionResult<TContent> = {
|
|
|
185
157
|
* @returns Resolution result indicating success or failure
|
|
186
158
|
*/
|
|
187
159
|
export declare function resolvePageContent<TContent>(options: ResolvePageContentOptions<TContent>): Promise<PageResolutionResult<TContent>>;
|
|
188
|
-
export {};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `@riverbankcms/blocks` (which is not a public dependency). This list is a
|
|
8
8
|
* stable public contract; keep it in sync with the internal blocks runtime.
|
|
9
9
|
*/
|
|
10
|
-
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.contact-newsletter", "block.appointment-booking", "block.weekly-slot-availability", "block.event-registration", "block.event-details", "block.
|
|
10
|
+
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.contact-newsletter", "block.appointment-booking", "block.weekly-slot-availability", "block.event-registration", "block.event-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.recurring-schedule", "block.offerings-preview", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
11
11
|
export type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
12
12
|
export type CustomBlockKind = `custom.${string}`;
|
|
13
13
|
export type BlockKind = SystemBlockKind | CustomBlockKind;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Result, SiteId } from '../../core/src/index';
|
|
2
|
-
import type { SiteCommand } from './
|
|
2
|
+
import type { SiteCommand } from './commandContract';
|
|
3
3
|
import type { AllowedRuntime, SiteCommandResourceIds } from './domain';
|
|
4
4
|
import type { SiteCommandRef } from './refs';
|
|
5
5
|
export type SiteCommandExecutionContext = Readonly<{
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type AppointmentAvailabilityRef, type AppointmentResourceRef, type AppointmentServiceRef, type CommandRef } from './refs';
|
|
3
|
+
export declare const upsertAppointmentServiceCommandSchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodLiteral<"upsertAppointmentService">;
|
|
5
|
+
ref: z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentServiceRef, string>>;
|
|
6
|
+
input: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
|
+
priceAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
payment: z.ZodDefault<z.ZodObject<{
|
|
9
|
+
mode: z.ZodLiteral<"manual_request">;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
durationMinutes: z.ZodNumber;
|
|
14
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
locationType: z.ZodDefault<z.ZodEnum<{
|
|
16
|
+
virtual: "virtual";
|
|
17
|
+
in_person: "in_person";
|
|
18
|
+
hybrid: "hybrid";
|
|
19
|
+
}>>;
|
|
20
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
buffers: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
beforeMinutes: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
afterMinutes: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
26
|
+
priceAmount: z.ZodOptional<z.ZodNull>;
|
|
27
|
+
payment: z.ZodObject<{
|
|
28
|
+
mode: z.ZodLiteral<"free">;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
durationMinutes: z.ZodNumber;
|
|
33
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
locationType: z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
virtual: "virtual";
|
|
36
|
+
in_person: "in_person";
|
|
37
|
+
hybrid: "hybrid";
|
|
38
|
+
}>>;
|
|
39
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
buffers: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
beforeMinutes: z.ZodDefault<z.ZodNumber>;
|
|
42
|
+
afterMinutes: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
priceAmount: z.ZodNumber;
|
|
46
|
+
payment: z.ZodObject<{
|
|
47
|
+
mode: z.ZodLiteral<"paid_online_intent">;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
durationMinutes: z.ZodNumber;
|
|
52
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
+
locationType: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
virtual: "virtual";
|
|
55
|
+
in_person: "in_person";
|
|
56
|
+
hybrid: "hybrid";
|
|
57
|
+
}>>;
|
|
58
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
buffers: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
beforeMinutes: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
afterMinutes: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
}, z.core.$strict>]>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export declare const upsertBookableResourceCommandSchema: z.ZodObject<{
|
|
66
|
+
type: z.ZodLiteral<"upsertBookableResource">;
|
|
67
|
+
ref: z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentResourceRef, string>>;
|
|
68
|
+
input: z.ZodObject<{
|
|
69
|
+
displayName: z.ZodString;
|
|
70
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
timezone: z.ZodString;
|
|
72
|
+
colorHex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
kind: z.ZodDefault<z.ZodLiteral<"practitioner">>;
|
|
74
|
+
capacity: z.ZodDefault<z.ZodLiteral<1>>;
|
|
75
|
+
publicVisibility: z.ZodDefault<z.ZodLiteral<"visible">>;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export declare const assignAppointmentServiceResourcesCommandSchema: z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"assignAppointmentServiceResources">;
|
|
80
|
+
ref: z.ZodPipe<z.ZodString, z.ZodTransform<CommandRef, string>>;
|
|
81
|
+
input: z.ZodObject<{
|
|
82
|
+
serviceRef: z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentServiceRef, string>>;
|
|
83
|
+
resourceRefs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentResourceRef, string>>>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export declare const configureAppointmentAvailabilityCommandSchema: z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"configureAppointmentAvailability">;
|
|
88
|
+
ref: z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentAvailabilityRef, string>>;
|
|
89
|
+
input: z.ZodObject<{
|
|
90
|
+
resourceRef: z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentResourceRef, string>>;
|
|
91
|
+
serviceRef: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<AppointmentServiceRef, string>>>>;
|
|
92
|
+
timezone: z.ZodString;
|
|
93
|
+
replaceScope: z.ZodDefault<z.ZodLiteral<"schedule">>;
|
|
94
|
+
windows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
95
|
+
weekday: z.ZodNumber;
|
|
96
|
+
startTime: z.ZodString;
|
|
97
|
+
endTime: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
}, z.core.$strict>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const staticExecutionGapCodes: readonly ["event_occurrence_required", "event_ticket_single_occurrence_scope_unsupported", "event_manual_payment_unsupported", "event_external_payment_unsupported", "event_waitlist_requires_waitlist_adapter", "event_media_content_requires_media_adapter", "event_linked_content_requires_content_adapter", "event_delivery_mode_requires_booking_surface_adapter", "
|
|
1
|
+
export declare const staticExecutionGapCodes: readonly ["event_occurrence_required", "event_ticket_single_occurrence_scope_unsupported", "event_manual_payment_unsupported", "event_external_payment_unsupported", "event_waitlist_requires_waitlist_adapter", "event_media_content_requires_media_adapter", "event_linked_content_requires_content_adapter", "event_delivery_mode_requires_booking_surface_adapter", "event_whole_series_page_fields_unsupported", "event_whole_series_passes_unsupported", "event_whole_series_pricing_unsupported", "event_whole_series_schedule_update_unsupported", "event_whole_series_staff_update_unsupported"];
|
|
2
2
|
export type StaticExecutionGapCode = (typeof staticExecutionGapCodes)[number];
|
|
3
3
|
export declare const plannerCapabilityGapCodes: readonly ["command_metadata_support_gap"];
|
|
4
4
|
export type PlannerCapabilityGapCode = (typeof plannerCapabilityGapCodes)[number];
|
|
5
5
|
export declare const adapterCapabilityGapCodes: readonly ["demo_recipe_adapter_missing", "media_manifest_storage_resolution_missing", "navigation_content_entry_refs_unsupported", "staff_site_user_requires_dashboard_user", "team_member_profile_requires_dashboard_user", "generated_navigation_command_unsupported"];
|
|
6
6
|
export type AdapterCapabilityGapCode = (typeof adapterCapabilityGapCodes)[number];
|
|
7
|
-
export declare const siteCommandCapabilityGapCodes: readonly ["event_occurrence_required", "event_ticket_single_occurrence_scope_unsupported", "event_manual_payment_unsupported", "event_external_payment_unsupported", "event_waitlist_requires_waitlist_adapter", "event_media_content_requires_media_adapter", "event_linked_content_requires_content_adapter", "event_delivery_mode_requires_booking_surface_adapter", "
|
|
7
|
+
export declare const siteCommandCapabilityGapCodes: readonly ["event_occurrence_required", "event_ticket_single_occurrence_scope_unsupported", "event_manual_payment_unsupported", "event_external_payment_unsupported", "event_waitlist_requires_waitlist_adapter", "event_media_content_requires_media_adapter", "event_linked_content_requires_content_adapter", "event_delivery_mode_requires_booking_surface_adapter", "event_whole_series_page_fields_unsupported", "event_whole_series_passes_unsupported", "event_whole_series_pricing_unsupported", "event_whole_series_schedule_update_unsupported", "event_whole_series_staff_update_unsupported", "command_metadata_support_gap", "demo_recipe_adapter_missing", "media_manifest_storage_resolution_missing", "navigation_content_entry_refs_unsupported", "staff_site_user_requires_dashboard_user", "team_member_profile_requires_dashboard_user", "generated_navigation_command_unsupported"];
|
|
8
8
|
export type SiteCommandCapabilityGapCode = (typeof siteCommandCapabilityGapCodes)[number];
|