@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
|
@@ -1,966 +1,14 @@
|
|
|
1
|
-
import type { APIEndpoint } from "./apiEndpointTypes";
|
|
2
|
-
import type { PublicEventPricing } from "../../core/src/index";
|
|
3
|
-
import type { PublicEventDestination } from "./event-listing-destination";
|
|
4
|
-
import type { BookingPaymentTermsConfig, BookingPricing, DirectCheckoutCollectionOptionKind, EventAttendanceMode, EventDeliveryMode, EventPricingMode, PublicEventEligibilityTicketTypeRecord, PublicEventTicketTypeRecord } from "./bookingConfig";
|
|
5
|
-
import type { AutoAppliedDiscountPreview } from "./bookingRecords";
|
|
6
|
-
export declare const PUBLIC_EVENT_TICKET_SELECTION_CONTRACT_VERSION: "public-event-ticket-selection.v2";
|
|
7
|
-
export type EventTicketSelectionRequest = {
|
|
8
|
-
ticketTypeId?: string | null;
|
|
9
|
-
quantity: number;
|
|
10
|
-
};
|
|
11
|
-
export type EventTicketLineSummaryResponse = {
|
|
12
|
-
ticketTypeId: string | null;
|
|
13
|
-
label: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
quantity: number;
|
|
16
|
-
unitPriceCents: number;
|
|
17
|
-
subtotalCents: number;
|
|
18
|
-
currency: string;
|
|
19
|
-
};
|
|
20
|
-
import type { PublicCourseDetails } from "./courses";
|
|
21
|
-
import type { PublicTeamMemberBlockItem, PublicTeamMemberSummary } from "./teamMembers";
|
|
22
|
-
import type { EventPreset } from "./bookingConfig";
|
|
23
|
-
import type { GeneratedIconRenderAssetsRequest, GeneratedIconRenderAssetsResponse } from "./siteIcons";
|
|
24
|
-
export type { PublicCoursePriceDisplay, PublicEventPriceDisplay, PublicEventPricing, } from "../../core/src/index";
|
|
25
1
|
/**
|
|
26
2
|
* Public-experience endpoints group the storefront-facing event, booking, newsletter,
|
|
27
3
|
* and commerce loaders that are shared by blocks and public site runtime consumers.
|
|
4
|
+
*
|
|
5
|
+
* The endpoint declarations live in `./publicExperience/*`, grouped by surface, and are
|
|
6
|
+
* merged here. This module stays the single import site for consumers.
|
|
28
7
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
venueId?: string;
|
|
37
|
-
staffMemberId?: string;
|
|
38
|
-
kind?: string;
|
|
39
|
-
eventSurface?: string;
|
|
40
|
-
eventPresets?: string;
|
|
41
|
-
scheduleScope?: string;
|
|
42
|
-
entryId?: string;
|
|
43
|
-
seriesId?: string;
|
|
44
|
-
seriesSlug?: string;
|
|
45
|
-
includeOccurrenceId?: string;
|
|
46
|
-
detailLevel?: string;
|
|
47
|
-
readProfile?: string;
|
|
48
|
-
};
|
|
49
|
-
export type NewsletterSignupPublicDestinationRef = {
|
|
50
|
-
tag: "block_ref";
|
|
51
|
-
blockId: string;
|
|
52
|
-
} | {
|
|
53
|
-
tag: "signed_destination_ref";
|
|
54
|
-
token: string;
|
|
55
|
-
};
|
|
56
|
-
export type NewsletterSubscribeTarget = {
|
|
57
|
-
tag: "legacy_riverbank_list";
|
|
58
|
-
listId: string;
|
|
59
|
-
destinationRef?: NewsletterSignupPublicDestinationRef;
|
|
60
|
-
} | {
|
|
61
|
-
tag: "published_block_ref";
|
|
62
|
-
destinationRef: NewsletterSignupPublicDestinationRef;
|
|
63
|
-
};
|
|
64
|
-
type NewsletterSubscribeFields = {
|
|
65
|
-
email: string;
|
|
66
|
-
firstName?: string | null;
|
|
67
|
-
lastName?: string | null;
|
|
68
|
-
name?: string | null;
|
|
69
|
-
company?: string | null;
|
|
70
|
-
phone?: string | null;
|
|
71
|
-
tags?: string[];
|
|
72
|
-
meta?: {
|
|
73
|
-
honeypot?: string;
|
|
74
|
-
altchaSolution?: string | null;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export type NewsletterSubscribeBody = NewsletterSubscribeFields & ({
|
|
78
|
-
target: NewsletterSubscribeTarget;
|
|
79
|
-
} | {
|
|
80
|
-
listId: string;
|
|
81
|
-
destinationRef?: NewsletterSignupPublicDestinationRef;
|
|
82
|
-
});
|
|
83
|
-
export type PublicEventScheduleScope = "any" | "recurring" | "oneOff";
|
|
84
|
-
export type PublicEventRecurrence = Readonly<{
|
|
85
|
-
kind: "weekly";
|
|
86
|
-
interval: number;
|
|
87
|
-
weekdays: ReadonlyArray<"MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU">;
|
|
88
|
-
}> | Readonly<{
|
|
89
|
-
kind: "other";
|
|
90
|
-
}>;
|
|
91
|
-
export type PublicEventSurfaceScope = "all" | "regularClassSchedule" | "specialDatedEvents" | "custom";
|
|
92
|
-
export type PublicEventDetailsLoaderParams = Omit<PublicEventLoaderParams, "detailLevel" | "readProfile">;
|
|
93
|
-
export type PublicRouteCandidate = Readonly<{
|
|
94
|
-
entityId: string;
|
|
95
|
-
path: string;
|
|
96
|
-
title: string;
|
|
97
|
-
kind: "page" | "content";
|
|
98
|
-
contentTypeKey?: string | null;
|
|
99
|
-
}>;
|
|
100
|
-
type PublicDiscountContext = {
|
|
101
|
-
type: "event";
|
|
102
|
-
eventSeriesId: string;
|
|
103
|
-
eventCategoryId: string | null;
|
|
104
|
-
ticketsCount?: number;
|
|
105
|
-
} | {
|
|
106
|
-
type: "appointment";
|
|
107
|
-
serviceId: string;
|
|
108
|
-
} | {
|
|
109
|
-
type: "course";
|
|
110
|
-
courseId: string;
|
|
111
|
-
} | {
|
|
112
|
-
type: "pass";
|
|
113
|
-
passId: string;
|
|
114
|
-
} | {
|
|
115
|
-
type: "membership";
|
|
116
|
-
membershipId: string;
|
|
117
|
-
} | {
|
|
118
|
-
type: "product";
|
|
119
|
-
productId: string;
|
|
120
|
-
productCategoryId: string | null;
|
|
121
|
-
};
|
|
122
|
-
export type DiscountsAvailableResponse = Readonly<{
|
|
123
|
-
type: "none";
|
|
124
|
-
}> | Readonly<{
|
|
125
|
-
type: "manual";
|
|
126
|
-
manualCodeEntryAllowed: true;
|
|
127
|
-
}> | Readonly<{
|
|
128
|
-
type: "auto";
|
|
129
|
-
manualCodeEntryAllowed: false;
|
|
130
|
-
autoAppliedDiscount: AutoAppliedDiscountPreview;
|
|
131
|
-
}> | Readonly<{
|
|
132
|
-
type: "auto_and_manual";
|
|
133
|
-
manualCodeEntryAllowed: true;
|
|
134
|
-
autoAppliedDiscount: AutoAppliedDiscountPreview;
|
|
135
|
-
}>;
|
|
136
|
-
export type PublicExperienceAPIEndpoints = {
|
|
137
|
-
getPublicBookingCalendarFeedIcs: APIEndpoint<never, {
|
|
138
|
-
siteId: string;
|
|
139
|
-
token: string;
|
|
140
|
-
}, string>;
|
|
141
|
-
listPublicEvents: APIEndpoint<never, {
|
|
142
|
-
siteId: string;
|
|
143
|
-
stage?: string;
|
|
144
|
-
} & PublicEventLoaderParams, Array<{
|
|
145
|
-
kind?: "event" | "course_session";
|
|
146
|
-
eventPreset?: EventPreset;
|
|
147
|
-
eventDestinationMode?: import("./event-destination-policy").EventDestinationMode;
|
|
148
|
-
destination: PublicEventDestination;
|
|
149
|
-
scheduleScope?: Exclude<PublicEventScheduleScope, "any">;
|
|
150
|
-
recurrence?: PublicEventRecurrence;
|
|
151
|
-
id: string;
|
|
152
|
-
occurrenceId: string;
|
|
153
|
-
seriesId: string;
|
|
154
|
-
title: string;
|
|
155
|
-
description: string | null;
|
|
156
|
-
presentation?: {
|
|
157
|
-
title?: string | null;
|
|
158
|
-
summary?: string | null;
|
|
159
|
-
image?: {
|
|
160
|
-
type: "image" | "video" | "audio";
|
|
161
|
-
purpose?: string;
|
|
162
|
-
placeholder?: boolean;
|
|
163
|
-
assetId?: string;
|
|
164
|
-
src?: string;
|
|
165
|
-
alt?: string;
|
|
166
|
-
width?: number;
|
|
167
|
-
height?: number;
|
|
168
|
-
storageBucket?: string;
|
|
169
|
-
storagePath?: string;
|
|
170
|
-
transform?: {
|
|
171
|
-
rect?: [number, number, number, number];
|
|
172
|
-
hotspot?: {
|
|
173
|
-
x: number;
|
|
174
|
-
y: number;
|
|
175
|
-
radius?: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
} | null;
|
|
179
|
-
};
|
|
180
|
-
slug: string;
|
|
181
|
-
path: string | null;
|
|
182
|
-
requiresRegistration: boolean;
|
|
183
|
-
deliveryMode: EventDeliveryMode;
|
|
184
|
-
attendanceModes: Array<{
|
|
185
|
-
mode: EventAttendanceMode;
|
|
186
|
-
capacity: number | null;
|
|
187
|
-
registeredCount: number;
|
|
188
|
-
availableSpots: number | null;
|
|
189
|
-
waitlistEnabled: boolean;
|
|
190
|
-
}>;
|
|
191
|
-
startsAt: string;
|
|
192
|
-
endsAt: string;
|
|
193
|
-
capacity: number | null;
|
|
194
|
-
registeredCount: number;
|
|
195
|
-
availableSpots: number | null;
|
|
196
|
-
waitlistEnabled: boolean;
|
|
197
|
-
venue: {
|
|
198
|
-
id: string;
|
|
199
|
-
name: string;
|
|
200
|
-
address: string | null;
|
|
201
|
-
location: {
|
|
202
|
-
lat: number;
|
|
203
|
-
lng: number;
|
|
204
|
-
} | null;
|
|
205
|
-
} | null;
|
|
206
|
-
eventCategory: {
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
color: string | null;
|
|
210
|
-
} | null;
|
|
211
|
-
teamMembers?: PublicTeamMemberSummary[];
|
|
212
|
-
status?: "active" | "draft" | "archived";
|
|
213
|
-
pricing: PublicEventPricing<PublicEventTicketTypeRecord>;
|
|
214
|
-
paymentTerms: BookingPaymentTermsConfig;
|
|
215
|
-
accessRestriction: "none" | "category";
|
|
216
|
-
allowedCategoryIds: string[];
|
|
217
|
-
requireGuestDetails?: boolean;
|
|
218
|
-
timeZone: string;
|
|
219
|
-
acceptsPasses?: boolean;
|
|
220
|
-
acceptsMemberships?: boolean;
|
|
221
|
-
course?: {
|
|
222
|
-
id: string;
|
|
223
|
-
pricing?: BookingPricing;
|
|
224
|
-
priceCents: number | null;
|
|
225
|
-
currency: string;
|
|
226
|
-
enrollmentOpen: boolean;
|
|
227
|
-
} | null;
|
|
228
|
-
}>>;
|
|
229
|
-
getPublicEventFilters: APIEndpoint<never, {
|
|
230
|
-
siteId: string;
|
|
231
|
-
stage?: string;
|
|
232
|
-
categoryIds?: string;
|
|
233
|
-
venueId?: string;
|
|
234
|
-
staffMemberId?: string;
|
|
235
|
-
kind?: string;
|
|
236
|
-
eventSurface?: string;
|
|
237
|
-
eventPresets?: string;
|
|
238
|
-
scheduleScope?: string;
|
|
239
|
-
}, {
|
|
240
|
-
categories: Array<{
|
|
241
|
-
id: string;
|
|
242
|
-
name: string;
|
|
243
|
-
identifier: string | null;
|
|
244
|
-
color: string | null;
|
|
245
|
-
upcomingCount: number;
|
|
246
|
-
}>;
|
|
247
|
-
venues: Array<{
|
|
248
|
-
id: string;
|
|
249
|
-
name: string;
|
|
250
|
-
upcomingCount: number;
|
|
251
|
-
}>;
|
|
252
|
-
staffMembers: Array<{
|
|
253
|
-
id: string;
|
|
254
|
-
name: string;
|
|
255
|
-
upcomingCount: number;
|
|
256
|
-
}>;
|
|
257
|
-
labels: {
|
|
258
|
-
courseOption: string;
|
|
259
|
-
};
|
|
260
|
-
}>;
|
|
261
|
-
listPublicPasses: APIEndpoint<never, {
|
|
262
|
-
siteId: string;
|
|
263
|
-
categories?: string;
|
|
264
|
-
}, {
|
|
265
|
-
passes: Array<{
|
|
266
|
-
id: string;
|
|
267
|
-
productUseCase: "event_pass" | "appointment_package";
|
|
268
|
-
name: string;
|
|
269
|
-
description: string | null;
|
|
270
|
-
price: number;
|
|
271
|
-
currency: string;
|
|
272
|
-
creditsTotal: number;
|
|
273
|
-
pricePerCredit: number;
|
|
274
|
-
validDays: number | null;
|
|
275
|
-
eligibleCategoryIds: string[];
|
|
276
|
-
eligibleCategoryNames: string[];
|
|
277
|
-
}>;
|
|
278
|
-
}>;
|
|
279
|
-
listPublicCourses: APIEndpoint<never, {
|
|
280
|
-
siteId: string;
|
|
281
|
-
limit?: string;
|
|
282
|
-
stage?: string;
|
|
283
|
-
}, Array<{
|
|
284
|
-
id: string;
|
|
285
|
-
seriesId: string;
|
|
286
|
-
title: string;
|
|
287
|
-
slug: string;
|
|
288
|
-
description: unknown;
|
|
289
|
-
teamMembers?: PublicTeamMemberSummary[];
|
|
290
|
-
enrollmentOpen: boolean;
|
|
291
|
-
pricing?: BookingPricing;
|
|
292
|
-
priceCents: number | null;
|
|
293
|
-
currency: string;
|
|
294
|
-
paymentTerms: BookingPaymentTermsConfig;
|
|
295
|
-
enrollmentCapacity: number | null;
|
|
296
|
-
acceptsMemberships: boolean;
|
|
297
|
-
status: string;
|
|
298
|
-
sessionsCount: number;
|
|
299
|
-
enrolledCount: number;
|
|
300
|
-
availableSpots: number | null;
|
|
301
|
-
sessions: Array<{
|
|
302
|
-
id: string;
|
|
303
|
-
startsAt: string;
|
|
304
|
-
endsAt: string;
|
|
305
|
-
timeZone: string;
|
|
306
|
-
capacityOverride?: number | null;
|
|
307
|
-
overrides?: Record<string, unknown> | null;
|
|
308
|
-
}>;
|
|
309
|
-
venue: {
|
|
310
|
-
id: string;
|
|
311
|
-
name: string;
|
|
312
|
-
address: string | null;
|
|
313
|
-
} | null;
|
|
314
|
-
contentEntryId: string | null;
|
|
315
|
-
}>>;
|
|
316
|
-
listPublicTeamMembers: APIEndpoint<never, {
|
|
317
|
-
siteId: string;
|
|
318
|
-
stage?: string;
|
|
319
|
-
}, {
|
|
320
|
-
teamMembers: PublicTeamMemberBlockItem[];
|
|
321
|
-
}>;
|
|
322
|
-
getPublicCourse: APIEndpoint<never, {
|
|
323
|
-
siteId: string;
|
|
324
|
-
courseId: string;
|
|
325
|
-
stage?: string;
|
|
326
|
-
}, {
|
|
327
|
-
course: PublicCourseDetails;
|
|
328
|
-
}>;
|
|
329
|
-
enrollInCourse: APIEndpoint<{
|
|
330
|
-
courseId: string;
|
|
331
|
-
pricingOptionId?: string;
|
|
332
|
-
selectedSlidingAmount?: number;
|
|
333
|
-
email: string;
|
|
334
|
-
name: string;
|
|
335
|
-
phone?: string;
|
|
336
|
-
formData?: Record<string, unknown>;
|
|
337
|
-
altchaSolution?: string | null;
|
|
338
|
-
stage?: "preview" | "published";
|
|
339
|
-
paymentMethod?: "free" | "membership";
|
|
340
|
-
customerMembershipId?: string;
|
|
341
|
-
claimToken?: string;
|
|
342
|
-
}, {
|
|
343
|
-
siteId: string;
|
|
344
|
-
}, {
|
|
345
|
-
enrollmentId: string;
|
|
346
|
-
status: "enrolled";
|
|
347
|
-
waitlistPosition?: number | null;
|
|
348
|
-
courseTitle: string;
|
|
349
|
-
sessionsCount: number;
|
|
350
|
-
paymentMethod: "free" | "membership" | "stripe";
|
|
351
|
-
pendingPayment: boolean;
|
|
352
|
-
message: string;
|
|
353
|
-
} | {
|
|
354
|
-
status: "waitlist";
|
|
355
|
-
waitlistPosition?: number | null;
|
|
356
|
-
courseTitle: string;
|
|
357
|
-
sessionsCount: number;
|
|
358
|
-
paymentMethod: "free";
|
|
359
|
-
pendingPayment: false;
|
|
360
|
-
message: string;
|
|
361
|
-
}>;
|
|
362
|
-
resolveWaitlistClaim: APIEndpoint<{
|
|
363
|
-
claimToken: string;
|
|
364
|
-
}, {
|
|
365
|
-
siteId: string;
|
|
366
|
-
}, {
|
|
367
|
-
subject: {
|
|
368
|
-
kind: "event_occurrence";
|
|
369
|
-
occurrenceId: string;
|
|
370
|
-
} | {
|
|
371
|
-
kind: "course";
|
|
372
|
-
courseId: string;
|
|
373
|
-
};
|
|
374
|
-
expiresAt: string;
|
|
375
|
-
customer: {
|
|
376
|
-
email: string;
|
|
377
|
-
name: string;
|
|
378
|
-
phone: string | null;
|
|
379
|
-
};
|
|
380
|
-
prefill: {
|
|
381
|
-
email: string;
|
|
382
|
-
name: string;
|
|
383
|
-
phone: string | null;
|
|
384
|
-
notes: string | null;
|
|
385
|
-
guests: Array<{
|
|
386
|
-
name: string;
|
|
387
|
-
email?: string | null;
|
|
388
|
-
phone: string | null;
|
|
389
|
-
}>;
|
|
390
|
-
};
|
|
391
|
-
}>;
|
|
392
|
-
checkCourseEligibility: APIEndpoint<{
|
|
393
|
-
courseId: string;
|
|
394
|
-
}, {
|
|
395
|
-
siteId: string;
|
|
396
|
-
}, {
|
|
397
|
-
courseId: string;
|
|
398
|
-
canEnroll: boolean;
|
|
399
|
-
canJoinWaitlist: boolean;
|
|
400
|
-
reason?: string;
|
|
401
|
-
availableSpots: number | null;
|
|
402
|
-
isFull: boolean;
|
|
403
|
-
isOnWaitlist: boolean;
|
|
404
|
-
waitlistEnabled: boolean;
|
|
405
|
-
price: {
|
|
406
|
-
cents: number | null;
|
|
407
|
-
currency: string;
|
|
408
|
-
};
|
|
409
|
-
paymentOptions: {
|
|
410
|
-
free: boolean;
|
|
411
|
-
membership: boolean;
|
|
412
|
-
stripe: boolean;
|
|
413
|
-
};
|
|
414
|
-
eligibleMemberships?: Array<{
|
|
415
|
-
customerMembershipId: string;
|
|
416
|
-
membershipName: string;
|
|
417
|
-
}>;
|
|
418
|
-
}>;
|
|
419
|
-
createCourseCheckout: APIEndpoint<{
|
|
420
|
-
courseId: string;
|
|
421
|
-
pricingOptionId?: string;
|
|
422
|
-
selectedSlidingAmount?: number;
|
|
423
|
-
email: string;
|
|
424
|
-
name: string;
|
|
425
|
-
phone?: string;
|
|
426
|
-
formData?: Record<string, unknown>;
|
|
427
|
-
altchaSolution?: string | null;
|
|
428
|
-
discountCode?: string;
|
|
429
|
-
successUrl: string;
|
|
430
|
-
cancelUrl: string;
|
|
431
|
-
claimToken?: string;
|
|
432
|
-
}, {
|
|
433
|
-
siteId: string;
|
|
434
|
-
}, {
|
|
435
|
-
checkoutUrl: string | null;
|
|
436
|
-
sessionId: string | null;
|
|
437
|
-
enrollmentId: string;
|
|
438
|
-
bypassed: boolean;
|
|
439
|
-
}>;
|
|
440
|
-
getCourseRegistrationStatus: APIEndpoint<never, {
|
|
441
|
-
siteId: string;
|
|
442
|
-
sessionId: string;
|
|
443
|
-
}, {
|
|
444
|
-
enrollmentId: string;
|
|
445
|
-
courseId: string;
|
|
446
|
-
courseTitle: string;
|
|
447
|
-
status: "pending_payment" | "enrolled" | "waitlist" | "cancelled" | "completed";
|
|
448
|
-
paymentMethod: "free" | "membership" | "stripe" | null;
|
|
449
|
-
paymentStatus: "pending" | "completed" | "failed" | "not_required" | "refunded" | null;
|
|
450
|
-
}>;
|
|
451
|
-
listPublicMemberships: APIEndpoint<never, {
|
|
452
|
-
siteId: string;
|
|
453
|
-
categories?: string;
|
|
454
|
-
}, {
|
|
455
|
-
memberships: Array<{
|
|
456
|
-
id: string;
|
|
457
|
-
name: string;
|
|
458
|
-
description: string | null;
|
|
459
|
-
price: number;
|
|
460
|
-
currency: string;
|
|
461
|
-
billingInterval: "month" | "year";
|
|
462
|
-
eligibleCategoryIds: string[];
|
|
463
|
-
eligibleCategoryNames: string[];
|
|
464
|
-
}>;
|
|
465
|
-
}>;
|
|
466
|
-
listPublicProducts: APIEndpoint<never, {
|
|
467
|
-
siteId: string;
|
|
468
|
-
stage?: string;
|
|
469
|
-
} & ({
|
|
470
|
-
productCategoryScope?: undefined;
|
|
471
|
-
productCategoryId?: undefined;
|
|
472
|
-
productCategoryEntryId?: undefined;
|
|
473
|
-
} | {
|
|
474
|
-
productCategoryScope: "category";
|
|
475
|
-
productCategoryId: string;
|
|
476
|
-
productCategoryEntryId?: undefined;
|
|
477
|
-
} | {
|
|
478
|
-
productCategoryScope: "current-category-page";
|
|
479
|
-
productCategoryEntryId: string;
|
|
480
|
-
productCategoryId?: undefined;
|
|
481
|
-
}), {
|
|
482
|
-
products: Array<{
|
|
483
|
-
id: string;
|
|
484
|
-
contentEntryId: string | null;
|
|
485
|
-
title: string;
|
|
486
|
-
slug: string;
|
|
487
|
-
path: string | null;
|
|
488
|
-
status: "draft" | "active";
|
|
489
|
-
priceCents: number;
|
|
490
|
-
currency: string;
|
|
491
|
-
productType: "physical" | "digital";
|
|
492
|
-
requiresShipping: boolean;
|
|
493
|
-
hasVariants: boolean;
|
|
494
|
-
trackInventory: boolean;
|
|
495
|
-
soldOut: boolean;
|
|
496
|
-
category: {
|
|
497
|
-
id: string;
|
|
498
|
-
name: string;
|
|
499
|
-
slug: string;
|
|
500
|
-
} | null;
|
|
501
|
-
summary: string | null;
|
|
502
|
-
body: unknown;
|
|
503
|
-
gallery: Array<{
|
|
504
|
-
url: string;
|
|
505
|
-
alt: string | null;
|
|
506
|
-
}>;
|
|
507
|
-
variants: Array<{
|
|
508
|
-
id: string;
|
|
509
|
-
title: string;
|
|
510
|
-
sku: string | null;
|
|
511
|
-
priceCents: number;
|
|
512
|
-
stockQuantity: number | null;
|
|
513
|
-
soldOut: boolean;
|
|
514
|
-
}>;
|
|
515
|
-
}>;
|
|
516
|
-
}>;
|
|
517
|
-
listPublicGiftingOffers: APIEndpoint<never, {
|
|
518
|
-
siteId: string;
|
|
519
|
-
}, {
|
|
520
|
-
currency: string;
|
|
521
|
-
giftCards: Array<{
|
|
522
|
-
id: string;
|
|
523
|
-
kind: "gift_card";
|
|
524
|
-
title: string;
|
|
525
|
-
description: string | null;
|
|
526
|
-
sortOrder: number;
|
|
527
|
-
giftCard: {
|
|
528
|
-
fixedDenominations: number[];
|
|
529
|
-
customAmountEnabled: boolean;
|
|
530
|
-
customAmountMinCents: number;
|
|
531
|
-
customAmountMaxCents: number;
|
|
532
|
-
};
|
|
533
|
-
voucher: null;
|
|
534
|
-
}>;
|
|
535
|
-
vouchers: Array<{
|
|
536
|
-
id: string;
|
|
537
|
-
kind: "voucher";
|
|
538
|
-
title: string;
|
|
539
|
-
description: string | null;
|
|
540
|
-
sortOrder: number;
|
|
541
|
-
giftCard: null;
|
|
542
|
-
voucher: {
|
|
543
|
-
purchaseAmountCents: number;
|
|
544
|
-
};
|
|
545
|
-
}>;
|
|
546
|
-
}>;
|
|
547
|
-
createPublicGiftingCheckout: APIEndpoint<{
|
|
548
|
-
offerId: string;
|
|
549
|
-
purchaserName?: string | null;
|
|
550
|
-
purchaserEmail: string;
|
|
551
|
-
recipientName?: string | null;
|
|
552
|
-
recipientEmail: string;
|
|
553
|
-
message?: string | null;
|
|
554
|
-
amountCents?: number | null;
|
|
555
|
-
sendOnDate?: string | null;
|
|
556
|
-
successUrl: string;
|
|
557
|
-
cancelUrl: string;
|
|
558
|
-
}, {
|
|
559
|
-
siteId: string;
|
|
560
|
-
}, {
|
|
561
|
-
checkoutUrl: string;
|
|
562
|
-
sessionId: string;
|
|
563
|
-
}>;
|
|
564
|
-
claimGiftCardPublic: APIEndpoint<{
|
|
565
|
-
email: string;
|
|
566
|
-
token?: string | null;
|
|
567
|
-
code?: string | null;
|
|
568
|
-
}, {
|
|
569
|
-
siteId: string;
|
|
570
|
-
}, {
|
|
571
|
-
customerId: string;
|
|
572
|
-
amountCents: number;
|
|
573
|
-
currency: string;
|
|
574
|
-
}>;
|
|
575
|
-
createShopCheckout: APIEndpoint<{
|
|
576
|
-
productType: "pass" | "membership";
|
|
577
|
-
productId: string;
|
|
578
|
-
customerEmail: string;
|
|
579
|
-
customerName: string;
|
|
580
|
-
discountCode?: string;
|
|
581
|
-
successUrl: string;
|
|
582
|
-
cancelUrl: string;
|
|
583
|
-
confirmDuplicate?: boolean;
|
|
584
|
-
}, {
|
|
585
|
-
siteId: string;
|
|
586
|
-
}, {
|
|
587
|
-
type: "redirect";
|
|
588
|
-
checkoutUrl: string;
|
|
589
|
-
sessionId: string;
|
|
590
|
-
} | {
|
|
591
|
-
type: "bypassed";
|
|
592
|
-
sessionId: null;
|
|
593
|
-
} | {
|
|
594
|
-
type: "duplicate_membership_warning";
|
|
595
|
-
message: string;
|
|
596
|
-
existingMembership: {
|
|
597
|
-
id: string;
|
|
598
|
-
name: string;
|
|
599
|
-
expiresAt: string | null;
|
|
600
|
-
};
|
|
601
|
-
}>;
|
|
602
|
-
createUnifiedCheckout: APIEndpoint<{
|
|
603
|
-
mode: "one_time";
|
|
604
|
-
items: Array<{
|
|
605
|
-
type: "event_ticket";
|
|
606
|
-
occurrenceId: string;
|
|
607
|
-
ticketTypeId?: string;
|
|
608
|
-
selectedSlidingAmount?: number;
|
|
609
|
-
ticketCount: number;
|
|
610
|
-
attendeeInfo: {
|
|
611
|
-
email: string;
|
|
612
|
-
name: string;
|
|
613
|
-
formData?: Record<string, unknown>;
|
|
614
|
-
};
|
|
615
|
-
} | {
|
|
616
|
-
type: "product";
|
|
617
|
-
productId: string;
|
|
618
|
-
variantId?: string;
|
|
619
|
-
quantity: number;
|
|
620
|
-
} | {
|
|
621
|
-
type: "pass";
|
|
622
|
-
passId: string;
|
|
623
|
-
} | {
|
|
624
|
-
type: "course_enrollment";
|
|
625
|
-
courseId: string;
|
|
626
|
-
pricingOptionId?: string;
|
|
627
|
-
selectedSlidingAmount?: number;
|
|
628
|
-
attendeeInfo: {
|
|
629
|
-
email: string;
|
|
630
|
-
name: string;
|
|
631
|
-
formData?: Record<string, unknown>;
|
|
632
|
-
};
|
|
633
|
-
}>;
|
|
634
|
-
customer: {
|
|
635
|
-
email: string;
|
|
636
|
-
name: string;
|
|
637
|
-
};
|
|
638
|
-
discountCode?: string;
|
|
639
|
-
successUrl: string;
|
|
640
|
-
cancelUrl: string;
|
|
641
|
-
} | {
|
|
642
|
-
mode: "subscription";
|
|
643
|
-
membership: {
|
|
644
|
-
membershipId: string;
|
|
645
|
-
};
|
|
646
|
-
customer: {
|
|
647
|
-
email: string;
|
|
648
|
-
name: string;
|
|
649
|
-
};
|
|
650
|
-
discountCode?: string;
|
|
651
|
-
successUrl: string;
|
|
652
|
-
cancelUrl: string;
|
|
653
|
-
}, {
|
|
654
|
-
siteId: string;
|
|
655
|
-
}, {
|
|
656
|
-
type: "redirect";
|
|
657
|
-
checkoutUrl: string;
|
|
658
|
-
sessionId: string;
|
|
659
|
-
orderId: string | null;
|
|
660
|
-
orderNumber: string | null;
|
|
661
|
-
} | {
|
|
662
|
-
type: "bypassed";
|
|
663
|
-
orderId: string | null;
|
|
664
|
-
orderNumber: string | null;
|
|
665
|
-
}>;
|
|
666
|
-
getDiscountsAvailable: APIEndpoint<{
|
|
667
|
-
subtotalCents?: number;
|
|
668
|
-
context: PublicDiscountContext;
|
|
669
|
-
}, {
|
|
670
|
-
siteId: string;
|
|
671
|
-
}, DiscountsAvailableResponse>;
|
|
672
|
-
applyDiscountCode: APIEndpoint<{
|
|
673
|
-
discountCode: string;
|
|
674
|
-
customerEmail: string;
|
|
675
|
-
lines: Array<{
|
|
676
|
-
context: PublicDiscountContext;
|
|
677
|
-
subtotalCents: number;
|
|
678
|
-
currency: string;
|
|
679
|
-
}>;
|
|
680
|
-
}, {
|
|
681
|
-
siteId: string;
|
|
682
|
-
}, {
|
|
683
|
-
type: "applied";
|
|
684
|
-
code: string;
|
|
685
|
-
publicLabel: string;
|
|
686
|
-
description: string | null;
|
|
687
|
-
discountCents: number;
|
|
688
|
-
subtotalCents: number;
|
|
689
|
-
totalAfterDiscountCents: number;
|
|
690
|
-
currency: string;
|
|
691
|
-
} | {
|
|
692
|
-
type: "rejected";
|
|
693
|
-
reason: "invalid_or_not_applicable" | "unavailable" | "unknown";
|
|
694
|
-
message: string;
|
|
695
|
-
}>;
|
|
696
|
-
batchBlockLoaders: APIEndpoint<{
|
|
697
|
-
requests: Array<{
|
|
698
|
-
id: string;
|
|
699
|
-
endpoint: "listPublicEvents";
|
|
700
|
-
params?: PublicEventLoaderParams;
|
|
701
|
-
} | {
|
|
702
|
-
id: string;
|
|
703
|
-
endpoint: "getPublicEventDetails";
|
|
704
|
-
params?: PublicEventDetailsLoaderParams;
|
|
705
|
-
} | {
|
|
706
|
-
id: string;
|
|
707
|
-
endpoint: "listPublicCourses";
|
|
708
|
-
params?: {
|
|
709
|
-
limit?: string;
|
|
710
|
-
};
|
|
711
|
-
} | {
|
|
712
|
-
id: string;
|
|
713
|
-
endpoint: "listPublicTeamMembers";
|
|
714
|
-
params?: {
|
|
715
|
-
siteId?: string;
|
|
716
|
-
stage?: string;
|
|
717
|
-
};
|
|
718
|
-
} | {
|
|
719
|
-
id: string;
|
|
720
|
-
endpoint: "listPublicRouteCandidates";
|
|
721
|
-
params?: never;
|
|
722
|
-
} | {
|
|
723
|
-
id: string;
|
|
724
|
-
endpoint: "listPublicProducts";
|
|
725
|
-
params?: {
|
|
726
|
-
categorySelector?: {
|
|
727
|
-
kind: "category";
|
|
728
|
-
productCategoryId: string;
|
|
729
|
-
} | {
|
|
730
|
-
kind: "current-category-page";
|
|
731
|
-
productCategoryEntryId: string;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
} | {
|
|
735
|
-
id: string;
|
|
736
|
-
endpoint: "getPublicBookingServices";
|
|
737
|
-
params?: {
|
|
738
|
-
ids?: string;
|
|
739
|
-
};
|
|
740
|
-
} | {
|
|
741
|
-
id: string;
|
|
742
|
-
endpoint: "getPublicWeeklySlotAvailability";
|
|
743
|
-
params: {
|
|
744
|
-
serviceId: string;
|
|
745
|
-
resourceId?: string;
|
|
746
|
-
horizonWeeks?: number;
|
|
747
|
-
timezone?: string;
|
|
748
|
-
};
|
|
749
|
-
} | {
|
|
750
|
-
id: string;
|
|
751
|
-
endpoint: "getPublicFormById";
|
|
752
|
-
params: {
|
|
753
|
-
formId: string;
|
|
754
|
-
};
|
|
755
|
-
}>;
|
|
756
|
-
}, {
|
|
757
|
-
siteId: string;
|
|
758
|
-
stage?: string;
|
|
759
|
-
}, {
|
|
760
|
-
results: Record<string, {
|
|
761
|
-
ok: true;
|
|
762
|
-
data: unknown;
|
|
763
|
-
} | {
|
|
764
|
-
ok: false;
|
|
765
|
-
error: {
|
|
766
|
-
code: string;
|
|
767
|
-
message: string;
|
|
768
|
-
};
|
|
769
|
-
}>;
|
|
770
|
-
}>;
|
|
771
|
-
getGeneratedIconRenderAssets: APIEndpoint<GeneratedIconRenderAssetsRequest, {
|
|
772
|
-
siteId: string;
|
|
773
|
-
}, GeneratedIconRenderAssetsResponse>;
|
|
774
|
-
resolveEntrySubroute: APIEndpoint<never, {
|
|
775
|
-
siteId: string;
|
|
776
|
-
entryId: string;
|
|
777
|
-
kind: "event-occurrence" | "course-run";
|
|
778
|
-
segment: string;
|
|
779
|
-
stage?: "preview" | "published";
|
|
780
|
-
}, {
|
|
781
|
-
subroute: {
|
|
782
|
-
kind: "event-occurrence";
|
|
783
|
-
occurrence: {
|
|
784
|
-
id: string;
|
|
785
|
-
seriesId: string;
|
|
786
|
-
startsAt: string;
|
|
787
|
-
endsAt: string;
|
|
788
|
-
timeZone: string;
|
|
789
|
-
status: string;
|
|
790
|
-
capacityOverride: number | null;
|
|
791
|
-
overridesJson: Record<string, unknown>;
|
|
792
|
-
};
|
|
793
|
-
} | {
|
|
794
|
-
kind: "course-run";
|
|
795
|
-
run: {
|
|
796
|
-
courseId: string;
|
|
797
|
-
seriesId: string;
|
|
798
|
-
runSlug: string;
|
|
799
|
-
runName: string | null;
|
|
800
|
-
};
|
|
801
|
-
} | null;
|
|
802
|
-
}>;
|
|
803
|
-
resolveEventOccurrence: APIEndpoint<never, {
|
|
804
|
-
siteId: string;
|
|
805
|
-
entryId: string;
|
|
806
|
-
segment: string;
|
|
807
|
-
}, {
|
|
808
|
-
occurrence: {
|
|
809
|
-
id: string;
|
|
810
|
-
seriesId: string;
|
|
811
|
-
startsAt: string;
|
|
812
|
-
endsAt: string;
|
|
813
|
-
timeZone: string;
|
|
814
|
-
status: string;
|
|
815
|
-
capacityOverride: number | null;
|
|
816
|
-
overridesJson: Record<string, unknown>;
|
|
817
|
-
} | null;
|
|
818
|
-
}>;
|
|
819
|
-
registerForEvent: APIEndpoint<{
|
|
820
|
-
occurrenceId: string;
|
|
821
|
-
attendanceMode?: EventAttendanceMode;
|
|
822
|
-
selectedSlidingAmount?: number;
|
|
823
|
-
email: string;
|
|
824
|
-
name: string;
|
|
825
|
-
ticketSelections: EventTicketSelectionRequest[];
|
|
826
|
-
phone?: string;
|
|
827
|
-
notes?: string;
|
|
828
|
-
formData?: Record<string, unknown>;
|
|
829
|
-
altchaSolution?: string | null;
|
|
830
|
-
stage?: "preview" | "published";
|
|
831
|
-
paymentMethod?: "free" | "pass" | "membership" | "stripe" | "pass_bundle" | "membership_bundle";
|
|
832
|
-
customerPassId?: string;
|
|
833
|
-
customerMembershipId?: string;
|
|
834
|
-
bundleProductId?: string;
|
|
835
|
-
claimToken?: string;
|
|
836
|
-
guests?: Array<{
|
|
837
|
-
name: string;
|
|
838
|
-
email?: string | null;
|
|
839
|
-
phone?: string | null;
|
|
840
|
-
}>;
|
|
841
|
-
}, {
|
|
842
|
-
siteId: string;
|
|
843
|
-
}, {
|
|
844
|
-
success: boolean;
|
|
845
|
-
attendeeId: string;
|
|
846
|
-
status: "confirmed";
|
|
847
|
-
paymentMethod: "free" | "pass" | "membership" | "stripe" | "pass_bundle" | "membership_bundle";
|
|
848
|
-
pendingPayment: boolean;
|
|
849
|
-
passCreditsUsed?: number;
|
|
850
|
-
alreadyRegistered?: boolean;
|
|
851
|
-
ticketLines: EventTicketLineSummaryResponse[];
|
|
852
|
-
message: string;
|
|
853
|
-
} | {
|
|
854
|
-
success: boolean;
|
|
855
|
-
attendeeId: string;
|
|
856
|
-
status: "waitlist";
|
|
857
|
-
waitlistPosition: number | null;
|
|
858
|
-
alreadyRegistered?: boolean;
|
|
859
|
-
message: string;
|
|
860
|
-
}>;
|
|
861
|
-
createPublicEventCheckout: APIEndpoint<{
|
|
862
|
-
attendeeId: string;
|
|
863
|
-
checkoutType?: "event" | "pass_bundle" | "membership_bundle";
|
|
864
|
-
productId?: string;
|
|
865
|
-
discountCode?: string;
|
|
866
|
-
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
867
|
-
successUrl: string;
|
|
868
|
-
cancelUrl: string;
|
|
869
|
-
}, {
|
|
870
|
-
siteId: string;
|
|
871
|
-
}, {
|
|
872
|
-
checkoutUrl: string | null;
|
|
873
|
-
sessionId: string | null;
|
|
874
|
-
bypassed: boolean;
|
|
875
|
-
}>;
|
|
876
|
-
checkPublicEventEligibility: APIEndpoint<{
|
|
877
|
-
occurrenceId: string;
|
|
878
|
-
attendanceMode?: EventAttendanceMode;
|
|
879
|
-
email: string;
|
|
880
|
-
ticketSelections: EventTicketSelectionRequest[];
|
|
881
|
-
selectedSlidingAmount?: number;
|
|
882
|
-
}, {
|
|
883
|
-
siteId: string;
|
|
884
|
-
}, {
|
|
885
|
-
customerExists: boolean;
|
|
886
|
-
eligibility: {
|
|
887
|
-
isFull: boolean;
|
|
888
|
-
waitlistEnabled: boolean;
|
|
889
|
-
canJoinWaitlist: boolean;
|
|
890
|
-
membership: {
|
|
891
|
-
customerMembershipId: string;
|
|
892
|
-
membershipName: string;
|
|
893
|
-
} | null;
|
|
894
|
-
passes: Array<{
|
|
895
|
-
customerPassId: string;
|
|
896
|
-
passName: string;
|
|
897
|
-
creditsRemaining: number;
|
|
898
|
-
}>;
|
|
899
|
-
requiresPayment: boolean;
|
|
900
|
-
pricingMode?: EventPricingMode;
|
|
901
|
-
selectedTicketTypeId?: string | null;
|
|
902
|
-
ticketLines: EventTicketLineSummaryResponse[];
|
|
903
|
-
ticketTypes?: PublicEventEligibilityTicketTypeRecord[];
|
|
904
|
-
eventPrice: number | null;
|
|
905
|
-
eventPriceCurrency: string | null;
|
|
906
|
-
eventAcceptsPasses: boolean;
|
|
907
|
-
eventAcceptsMemberships: boolean;
|
|
908
|
-
requiresAuthForPasses: boolean;
|
|
909
|
-
requiresAuthForMemberships: boolean;
|
|
910
|
-
availableForPurchase: {
|
|
911
|
-
passes: Array<{
|
|
912
|
-
id: string;
|
|
913
|
-
name: string;
|
|
914
|
-
description: string | null;
|
|
915
|
-
price: number;
|
|
916
|
-
currency: string;
|
|
917
|
-
creditsTotal: number;
|
|
918
|
-
pricePerCredit: number;
|
|
919
|
-
validDays: number | null;
|
|
920
|
-
}>;
|
|
921
|
-
memberships: Array<{
|
|
922
|
-
id: string;
|
|
923
|
-
name: string;
|
|
924
|
-
description: string | null;
|
|
925
|
-
price: number;
|
|
926
|
-
currency: string;
|
|
927
|
-
interval: "month" | "year";
|
|
928
|
-
}>;
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
}>;
|
|
932
|
-
getPublicEventRegistrationStatus: APIEndpoint<never, {
|
|
933
|
-
siteId: string;
|
|
934
|
-
attendeeId: string;
|
|
935
|
-
}, {
|
|
936
|
-
paymentStatus: "not_required" | "pending" | "completed" | "failed" | "refunded";
|
|
937
|
-
attendeeStatus: "confirmed" | "waitlist" | "cancelled";
|
|
938
|
-
waitlistPosition: number | null;
|
|
939
|
-
}>;
|
|
940
|
-
getPublicEventTicketQrSvg: APIEndpoint<never, {
|
|
941
|
-
siteId: string;
|
|
942
|
-
token: string;
|
|
943
|
-
}, string>;
|
|
944
|
-
subscribeNewsletter: APIEndpoint<NewsletterSubscribeBody, {
|
|
945
|
-
siteId: string;
|
|
946
|
-
}, {
|
|
947
|
-
subscribed: true;
|
|
948
|
-
requiresConfirmation?: boolean;
|
|
949
|
-
}>;
|
|
950
|
-
confirmNewsletter: APIEndpoint<never, {
|
|
951
|
-
siteId: string;
|
|
952
|
-
token: string;
|
|
953
|
-
}, string>;
|
|
954
|
-
unsubscribeNewsletter: APIEndpoint<never, {
|
|
955
|
-
siteId: string;
|
|
956
|
-
token: string;
|
|
957
|
-
}, string>;
|
|
958
|
-
unsubscribeNewsletterPost: APIEndpoint<never, {
|
|
959
|
-
siteId: string;
|
|
960
|
-
token: string;
|
|
961
|
-
}, string>;
|
|
962
|
-
getNewsletterArchive: APIEndpoint<never, {
|
|
963
|
-
siteId: string;
|
|
964
|
-
token: string;
|
|
965
|
-
}, string>;
|
|
966
|
-
};
|
|
8
|
+
import type { PublicCommerceAPIEndpoints } from "./publicExperience/commerceEndpoints";
|
|
9
|
+
import type { PublicWholeSeriesAPIEndpoints } from "./publicExperience/wholeSeriesEndpoints";
|
|
10
|
+
import type { PublicEventAPIEndpoints } from "./publicExperience/eventEndpoints";
|
|
11
|
+
import type { PublicNewsletterAPIEndpoints } from "./publicExperience/newsletterEndpoints";
|
|
12
|
+
import type { PublicSiteAPIEndpoints } from "./publicExperience/siteEndpoints";
|
|
13
|
+
export * from "./publicExperience/sharedTypes";
|
|
14
|
+
export type PublicExperienceAPIEndpoints = PublicEventAPIEndpoints & PublicWholeSeriesAPIEndpoints & PublicCommerceAPIEndpoints & PublicSiteAPIEndpoints & PublicNewsletterAPIEndpoints;
|