@riverbankcms/sdk 0.95.0 → 0.98.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 +47 -5
- package/dist/{PreviewEditorSidebar-6FQYKOSB.mjs → PreviewEditorSidebar-CG3SSJND.mjs} +3 -3
- package/dist/{PreviewEditorUI-NPO2XMFB.mjs → PreviewEditorUI-RHNGKAAU.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-OV5PNJBB.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +10 -10
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +35 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +246 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +109 -40
- package/dist/_dts/api/src/endpoints.d.ts +80 -0
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +7 -1
- package/dist/_dts/block-form/src/client/index.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +9 -1
- package/dist/_dts/block-form/src/registry/schemas.d.ts +4 -0
- package/dist/_dts/block-form/src/registry/widgets.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/InlineTextField.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldDefaults.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldSchema.d.ts +3 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -0
- package/dist/_dts/blocks/src/bindings/types.d.ts +1 -4
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +7 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -12
- package/dist/_dts/blocks/src/index.d.ts +2 -0
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -29631
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -29614
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -29634
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -29627
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +2 -29585
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -29677
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +220 -0
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -29685
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -29761
- package/dist/_dts/blocks/src/system/blocks/weekly-slot-availability.d.ts +34 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +4 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +9 -0
- package/dist/_dts/blocks/src/system/inlineText.d.ts +78 -0
- package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +15 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +188 -7
- package/dist/_dts/blocks/src/system/node/builder.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAppointmentCheckoutVerification.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +133 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/renderInlineText.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.controller.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.state.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.server.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.view.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +31 -1
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +5 -0
- package/dist/_dts/blocks/src/utils/date-formatting.d.ts +1 -1
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/primitives/PreviewInlineTextEditor.d.ts +9 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +30 -0
- package/dist/_dts/content-model/src/templates/types.d.ts +3 -6
- package/dist/_dts/core/src/branded.d.ts +8 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +505 -2
- package/dist/_dts/editor/src/inline/FloatingToolbar.d.ts +18 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +18 -1
- package/dist/_dts/editor/src/inline/InlineTextEditorStyles.d.ts +1 -0
- package/dist/_dts/editor/src/inline/domParse.d.ts +3 -0
- package/dist/_dts/editor/src/inline/presentation.d.ts +48 -0
- package/dist/_dts/editor/src/inline/selection.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/index.d.ts +1 -0
- package/dist/_dts/field-primitives/src/bindings/index.d.ts +8 -0
- package/dist/_dts/path-utils/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +4 -7
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +5 -1
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +9 -3
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +34 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +14 -0
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +46 -0
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +16 -14
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +8 -4
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +6 -7
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +22 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +78 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +36 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +48 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +13 -2
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +51 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +21 -0
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +3 -6
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +39 -0
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +1 -1
- package/dist/_dts/sdk/src/client/types.d.ts +18 -2
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +8 -3
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +5 -3
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/bindings.d.ts +4 -7
- package/dist/_dts/sdk/src/contracts/content.d.ts +18 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +16 -2
- package/dist/_dts/sdk/src/next/route-outcome-proxy.d.ts +3 -3
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +174 -78
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +4 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +52 -1
- package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +18 -66
- 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/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +42 -42
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +44 -44
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +16 -16
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/{chunk-4A6NWO3X.mjs → chunk-6WDBXCPX.mjs} +73 -12
- package/dist/{chunk-VZBSD4AJ.mjs → chunk-DBRI3PQF.mjs} +2281 -322
- package/dist/{chunk-PJPFTVZG.mjs → chunk-H24OU7WG.mjs} +106 -4
- package/dist/{chunk-K2SJTZMX.mjs → chunk-PKDPQHB5.mjs} +2 -2
- package/dist/{chunk-VTPPVAOL.mjs → chunk-QPXE2OUZ.mjs} +1 -1
- package/dist/{chunk-7ED5UNHL.mjs → chunk-V2BYFSPW.mjs} +109 -0
- package/dist/cli/index.mjs +4182 -1165
- package/dist/cli/init-docs/content/cli-reference.md +72 -5
- package/dist/cli/init-docs/content/content-management.md +22 -0
- package/dist/cli/init-docs/content/getting-started.md +8 -0
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +3 -1
- package/dist/cli/init-docs/content/workflow-preview-mode.md +6 -0
- package/dist/cli/init-docs/content/workflow-remote-setup.md +51 -0
- package/dist/client/{accordion-LGO4IO5U.mjs → accordion-Q2BDNL53.mjs} +1 -1
- package/dist/client/{bookingForm-MWLS4LGU.mjs → bookingForm-ZMP4P7EK.mjs} +16 -6
- package/dist/client/bookings.mjs +98 -18
- package/dist/client/{carousel-6AHNP5HA.mjs → carousel-LW3UXPWO.mjs} +1 -1
- package/dist/client/{cart-CIXGYAZB.mjs → cart-Z6D3KS6K.mjs} +5 -5
- package/dist/client/{checkout-OTX6O3DN.mjs → checkout-YMT2QJQM.mjs} +5 -5
- package/dist/client/{chunk-Y2PMKCXO.mjs → chunk-26ZBRXFR.mjs} +9 -3
- package/dist/client/{chunk-MYCXAKWP.mjs → chunk-DRRQ7QSL.mjs} +2 -2
- package/dist/client/{chunk-TREIML53.mjs → chunk-ET2MDQQT.mjs} +4 -4
- package/dist/client/{chunk-AVBQSUIS.mjs → chunk-HBQEAOG4.mjs} +1 -1
- package/dist/client/{chunk-INRIT6DP.mjs → chunk-IEOECM7U.mjs} +62 -43
- package/dist/client/{chunk-TNGL2WJF.mjs → chunk-KDP7ZRZV.mjs} +16 -0
- package/dist/client/{chunk-V67AT7ZW.mjs → chunk-R4XK3CKR.mjs} +18 -1
- package/dist/client/{chunk-R3NQTBWE.mjs → chunk-SK2BMD22.mjs} +2 -2
- package/dist/client/{chunk-HOP7MKAZ.mjs → chunk-XNTHVZ25.mjs} +1 -1
- package/dist/client/client.mjs +5172 -4177
- package/dist/client/{courseRegistration-2LU6C3JL.mjs → courseRegistration-DGKCMC77.mjs} +4 -4
- package/dist/client/{eventCalendar-OKUSISBZ.mjs → eventCalendar-74Z2NNFM.mjs} +7 -7
- package/dist/client/{eventCombined-CMF6CD4S.mjs → eventCombined-GK2ODOX2.mjs} +7 -7
- package/dist/client/{eventDetails-XYWH7WXI.mjs → eventDetails-MONAGT3N.mjs} +7 -7
- package/dist/client/{eventListing-EK5DJTAH.mjs → eventListing-SKGAO6PS.mjs} +7 -7
- package/dist/client/{eventRegistration-XDOSICV6.mjs → eventRegistration-6KISGXRD.mjs} +7 -7
- package/dist/client/{form-J6GOHKYG.mjs → form-FXPRTXHI.mjs} +2 -2
- package/dist/client/{headerSection-C5SYJTRW.mjs → headerSection-7NAN5WNB.mjs} +2 -2
- package/dist/client/hooks.mjs +1681 -1337
- package/dist/client/{locationMap-QSQIFVVT.mjs → locationMap-UERN74U4.mjs} +2 -2
- package/dist/client/{newsletterForm-47VXJRWK.mjs → newsletterForm-SGWXMJ7U.mjs} +2 -2
- package/dist/client/{productDetail-5U6ISCC2.mjs → productDetail-HN3HWZQZ.mjs} +5 -5
- package/dist/client/{productList-XDZUMR3P.mjs → productList-YT22Z5UR.mjs} +5 -5
- package/dist/client/rendering/client.mjs +4796 -4288
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +2120 -1106
- package/dist/client/{shop-ZSZKIY3R.mjs → shop-TKEDNWUS.mjs} +5 -5
- package/dist/preview-next/before-render.mjs +109 -0
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +109 -0
- package/dist/{sdk-runtime-PHNM7MRD.mjs → sdk-runtime-LWNYCQF2.mjs} +6 -6
- package/dist/server/components.mjs +3777 -2981
- package/dist/server/config-template-validation.mjs +35 -22
- package/dist/server/config-validation.mjs +1883 -1565
- package/dist/server/config.mjs +1883 -1565
- package/dist/server/data.mjs +1667 -1334
- package/dist/server/index.mjs +208 -9
- package/dist/server/next/middleware.mjs +2 -2
- package/dist/server/next.mjs +4077 -3060
- package/dist/server/page-converter.mjs +1481 -1279
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3806 -2993
- package/dist/server/rendering.mjs +4000 -3060
- package/dist/server/routing.mjs +1737 -1357
- package/dist/server/server.mjs +2918 -2276
- package/dist/server/theme-bridge.mjs +43 -0
- package/dist/styles/index.css +44 -0
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-PBEFH5AL.mjs +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AddressedLocationValue, BusinessAddress, BookingFlexibleBalanceConfig, BookingInstalmentPlanConfig, PublicEventPricing } from
|
|
2
|
-
import type { Media, MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent, Theme } from
|
|
3
|
-
import type { BlockFieldConfig as SdkBlockFieldConfig, BlockFieldOptionsMap as SdkBlockFieldOptionsMap, ContentConfig as SdkContentConfig, ContainerOptionsConfig as SdkContainerOptionsConfig, FieldSelectOption as SdkFieldSelectOption, SdkCustomBlock, SdkThemeConfig, SdkThemePalette, SectionBackground as SdkSectionBackground, SectionOptionsConfig as SdkSectionOptionsConfig, SiteStyleConfig as SdkSiteStyleConfig } from
|
|
1
|
+
import type { AddressedLocationValue, BusinessAddress, BookingFlexibleBalanceConfig, BookingInstalmentPlanConfig, PublicEventPricing } from '../../../core/src/index';
|
|
2
|
+
import type { Media, MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent, Theme } from '../contracts';
|
|
3
|
+
import type { BlockFieldConfig as SdkBlockFieldConfig, BlockFieldOptionsMap as SdkBlockFieldOptionsMap, ContentConfig as SdkContentConfig, ContainerOptionsConfig as SdkContainerOptionsConfig, FieldSelectOption as SdkFieldSelectOption, SdkCustomBlock, SdkThemeConfig, SdkThemePalette, SectionBackground as SdkSectionBackground, SectionOptionsConfig as SdkSectionOptionsConfig, SiteStyleConfig as SdkSiteStyleConfig } from '../config/types';
|
|
4
4
|
export type PublicTeamMemberSummary = {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -21,9 +21,9 @@ export type RuntimeSiteSdkConfig = {
|
|
|
21
21
|
theme?: SdkThemeConfig;
|
|
22
22
|
customBlocks?: SdkCustomBlock[];
|
|
23
23
|
};
|
|
24
|
-
export type HTTPMethod =
|
|
25
|
-
export type ApiResponseKind =
|
|
26
|
-
export type ApiAuthRequirement =
|
|
24
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
25
|
+
export type ApiResponseKind = 'json' | 'stream' | 'text' | 'void' | 'blob';
|
|
26
|
+
export type ApiAuthRequirement = 'public' | 'user' | 'admin' | 'service';
|
|
27
27
|
export interface APIEndpointBase<TBody = unknown, TQuery = unknown, TResponse = unknown> {
|
|
28
28
|
path: string;
|
|
29
29
|
method: HTTPMethod;
|
|
@@ -40,7 +40,7 @@ export interface ApiResponse<TData> {
|
|
|
40
40
|
data: TData;
|
|
41
41
|
meta: ResponseMeta;
|
|
42
42
|
}
|
|
43
|
-
export type ApiErrorCode =
|
|
43
|
+
export type ApiErrorCode = 'auth:unauthenticated' | 'auth:token_expired' | 'auth:token_invalid' | 'auth:forbidden' | 'auth:mfa_required' | 'auth:sudo_required' | 'auth:insufficient_permissions' | 'auth:impersonation_restricted' | 'validation:invalid_input' | 'validation:missing_field' | 'validation:invalid_format' | 'validation:payload_too_large' | 'resource:not_found' | 'resource:already_exists' | 'resource:conflict' | 'resource:gone' | 'rate_limit:exceeded' | 'billing:payment_required' | 'billing:plan_limit_exceeded' | 'billing:pass_redemption_failed' | 'server:internal_error' | 'server:unavailable' | 'external:service_error' | 'external:registrar_orphaned_contact_profile' | 'network:connection_error' | 'network:timeout' | 'network:dns_error';
|
|
44
44
|
export interface FieldError {
|
|
45
45
|
field: string;
|
|
46
46
|
code: string;
|
|
@@ -58,7 +58,7 @@ export interface ApiError {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
export type ApiResult<TData> = ApiResponse<TData> | ApiError;
|
|
61
|
-
export type ApiVersion =
|
|
61
|
+
export type ApiVersion = '2025-01-01';
|
|
62
62
|
export interface ResponseMeta {
|
|
63
63
|
requestId: string;
|
|
64
64
|
timestamp: string;
|
|
@@ -71,12 +71,12 @@ export interface DeprecationWarning {
|
|
|
71
71
|
sunsetDate: string;
|
|
72
72
|
alternative?: string;
|
|
73
73
|
}
|
|
74
|
-
export type ContentEntryStatus =
|
|
75
|
-
export type ContentEntryListStage =
|
|
74
|
+
export type ContentEntryStatus = 'draft' | 'published' | 'scheduled' | 'archived';
|
|
75
|
+
export type ContentEntryListStage = 'published' | 'preview';
|
|
76
76
|
export type ContentTypeRoutingSubroute = {
|
|
77
77
|
kind: string;
|
|
78
|
-
segmentType:
|
|
79
|
-
precedence?:
|
|
78
|
+
segmentType: 'uuid' | 'iso-date' | 'uuid-or-date' | 'slug';
|
|
79
|
+
precedence?: 'subroute-first' | 'content-first';
|
|
80
80
|
};
|
|
81
81
|
export type ContentTypeRoutingInfo = {
|
|
82
82
|
key: string;
|
|
@@ -85,10 +85,10 @@ export type ContentTypeRoutingInfo = {
|
|
|
85
85
|
subroutes?: ContentTypeRoutingSubroute[];
|
|
86
86
|
};
|
|
87
87
|
export type PublicProductCategorySelector = Readonly<{
|
|
88
|
-
kind:
|
|
88
|
+
kind: 'category';
|
|
89
89
|
productCategoryId: string;
|
|
90
90
|
}> | Readonly<{
|
|
91
|
-
kind:
|
|
91
|
+
kind: 'current-category-page';
|
|
92
92
|
productCategoryEntryId: string;
|
|
93
93
|
}>;
|
|
94
94
|
export type PublicProductCategorySelectorQuery = Readonly<{
|
|
@@ -96,19 +96,19 @@ export type PublicProductCategorySelectorQuery = Readonly<{
|
|
|
96
96
|
productCategoryId?: undefined;
|
|
97
97
|
productCategoryEntryId?: undefined;
|
|
98
98
|
}> | Readonly<{
|
|
99
|
-
productCategoryScope:
|
|
99
|
+
productCategoryScope: 'category';
|
|
100
100
|
productCategoryId: string;
|
|
101
101
|
productCategoryEntryId?: undefined;
|
|
102
102
|
}> | Readonly<{
|
|
103
|
-
productCategoryScope:
|
|
103
|
+
productCategoryScope: 'current-category-page';
|
|
104
104
|
productCategoryEntryId: string;
|
|
105
105
|
productCategoryId?: undefined;
|
|
106
106
|
}>;
|
|
107
107
|
export type InternalLinkPayload = {
|
|
108
|
-
kind:
|
|
108
|
+
kind: 'internal';
|
|
109
109
|
routeId: string;
|
|
110
110
|
entityId: string;
|
|
111
|
-
entityType:
|
|
111
|
+
entityType: 'page' | 'content';
|
|
112
112
|
href: string;
|
|
113
113
|
title: string;
|
|
114
114
|
typeLabel: string;
|
|
@@ -117,20 +117,20 @@ export type InternalLinkPayload = {
|
|
|
117
117
|
updatedAt?: string | null;
|
|
118
118
|
};
|
|
119
119
|
export type PageLinkPayload = {
|
|
120
|
-
kind:
|
|
120
|
+
kind: 'page';
|
|
121
121
|
identifier: string;
|
|
122
122
|
routeId?: string | null;
|
|
123
123
|
href?: string | null;
|
|
124
124
|
};
|
|
125
125
|
export type EntryLinkPayload = {
|
|
126
|
-
kind:
|
|
126
|
+
kind: 'entry';
|
|
127
127
|
contentType: string;
|
|
128
128
|
identifier: string;
|
|
129
129
|
routeId?: string | null;
|
|
130
130
|
href?: string | null;
|
|
131
131
|
};
|
|
132
132
|
export type PortalLinkPayload = {
|
|
133
|
-
kind:
|
|
133
|
+
kind: 'portal';
|
|
134
134
|
path?: string | null;
|
|
135
135
|
labels?: {
|
|
136
136
|
loggedOut?: string;
|
|
@@ -138,28 +138,28 @@ export type PortalLinkPayload = {
|
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
export type CartLinkLabelConfig = {
|
|
141
|
-
kind:
|
|
141
|
+
kind: 'icon-only';
|
|
142
142
|
} | {
|
|
143
|
-
kind:
|
|
143
|
+
kind: 'icon-with-label';
|
|
144
144
|
label: string;
|
|
145
145
|
};
|
|
146
146
|
export type CartLinkPayload = {
|
|
147
|
-
kind:
|
|
148
|
-
badge:
|
|
147
|
+
kind: 'cart';
|
|
148
|
+
badge: 'show-count' | 'hidden';
|
|
149
149
|
label: CartLinkLabelConfig;
|
|
150
150
|
};
|
|
151
151
|
export type LinkPayload = InternalLinkPayload | PageLinkPayload | EntryLinkPayload | {
|
|
152
|
-
kind:
|
|
152
|
+
kind: 'external';
|
|
153
153
|
href: string;
|
|
154
154
|
} | {
|
|
155
|
-
kind:
|
|
155
|
+
kind: 'url';
|
|
156
156
|
href: string;
|
|
157
157
|
} | PortalLinkPayload | CartLinkPayload;
|
|
158
158
|
export type NavigationLinkInput = PageLinkPayload | EntryLinkPayload | {
|
|
159
|
-
kind:
|
|
159
|
+
kind: 'external';
|
|
160
160
|
href: string;
|
|
161
161
|
} | {
|
|
162
|
-
kind:
|
|
162
|
+
kind: 'url';
|
|
163
163
|
href: string;
|
|
164
164
|
} | PortalLinkPayload | CartLinkPayload;
|
|
165
165
|
export interface NavigationItemRecord {
|
|
@@ -232,7 +232,7 @@ export type SitePrivacyPolicyDocument = {
|
|
|
232
232
|
effectiveDate: string;
|
|
233
233
|
sections: SitePrivacyPolicySection[];
|
|
234
234
|
};
|
|
235
|
-
export type SiteLegalJurisdiction =
|
|
235
|
+
export type SiteLegalJurisdiction = 'UK' | 'US' | 'EU' | 'CA' | 'AU' | 'OTHER';
|
|
236
236
|
export type SiteLegalProfilePayload = {
|
|
237
237
|
legalEntityName: string | null;
|
|
238
238
|
privacyContactEmail: string | null;
|
|
@@ -275,8 +275,8 @@ export type SiteRouteRecord = {
|
|
|
275
275
|
draftStatus?: string | null;
|
|
276
276
|
publishedAt?: string | null;
|
|
277
277
|
};
|
|
278
|
-
export type SiteBookingOfferingCanonicalBehaviour =
|
|
279
|
-
export type SiteBookingOfferingEngine =
|
|
278
|
+
export type SiteBookingOfferingCanonicalBehaviour = 'class' | 'workshop' | 'course' | 'retreat' | 'performance' | 'appointment';
|
|
279
|
+
export type SiteBookingOfferingEngine = 'event_series' | 'course' | 'appointment_service';
|
|
280
280
|
export type SiteBookingOfferingPresetSummary = Readonly<{
|
|
281
281
|
id: string;
|
|
282
282
|
canonicalBehaviour: SiteBookingOfferingCanonicalBehaviour;
|
|
@@ -293,7 +293,7 @@ export type SiteResponse = {
|
|
|
293
293
|
updated_at: string;
|
|
294
294
|
maintenance_mode_enabled?: boolean;
|
|
295
295
|
maintenance_mode_message?: unknown;
|
|
296
|
-
deployment_mode?:
|
|
296
|
+
deployment_mode?: 'managed' | 'headless_cms' | 'headless_full' | null;
|
|
297
297
|
is_sdk_site?: boolean | null;
|
|
298
298
|
businessAddress?: BusinessAddress | null;
|
|
299
299
|
venuesById?: Record<string, AddressedLocationValue>;
|
|
@@ -395,18 +395,78 @@ export type SdkEntrySlotContent = {
|
|
|
395
395
|
content: Record<string, unknown> | null;
|
|
396
396
|
}>;
|
|
397
397
|
};
|
|
398
|
+
export type SdkSurfaceSlotContent = {
|
|
399
|
+
surfaceSlotId: string;
|
|
400
|
+
pageSurfaceId: string;
|
|
401
|
+
slotKey: string;
|
|
402
|
+
blocks: Array<{
|
|
403
|
+
id: string;
|
|
404
|
+
blockId?: string;
|
|
405
|
+
surfaceSlotId: string;
|
|
406
|
+
identifier?: string | null;
|
|
407
|
+
kind: string;
|
|
408
|
+
purpose: string;
|
|
409
|
+
orderIndex?: number | null;
|
|
410
|
+
content: Record<string, unknown>;
|
|
411
|
+
draftContent?: unknown;
|
|
412
|
+
publishedContent?: unknown;
|
|
413
|
+
draftContentId?: string | null;
|
|
414
|
+
publishedContentId?: string | null;
|
|
415
|
+
}>;
|
|
416
|
+
};
|
|
417
|
+
export type SdkRuntimePageSurfaceSubject = Readonly<{
|
|
418
|
+
kind: 'eventSeries';
|
|
419
|
+
eventSeriesId: string;
|
|
420
|
+
}>;
|
|
421
|
+
export type SdkRuntimePageSurfaceContentSource = Readonly<{
|
|
422
|
+
kind: 'pageSurface';
|
|
423
|
+
contentTypeId: string;
|
|
424
|
+
contentTypeKey: string;
|
|
425
|
+
templateKey: string | null;
|
|
426
|
+
}>;
|
|
427
|
+
export type SdkRuntimePageSurface = {
|
|
428
|
+
id: string;
|
|
429
|
+
routeId: string;
|
|
430
|
+
readinessState: 'shippable';
|
|
431
|
+
subject: SdkRuntimePageSurfaceSubject;
|
|
432
|
+
title: string;
|
|
433
|
+
slug: string | null;
|
|
434
|
+
path: string | null;
|
|
435
|
+
status: string;
|
|
436
|
+
publishAt: string | null;
|
|
437
|
+
content: Record<string, unknown>;
|
|
438
|
+
draftContent: Record<string, unknown> | null;
|
|
439
|
+
publishedContent: Record<string, unknown> | null;
|
|
440
|
+
metaTitle: string | null;
|
|
441
|
+
draftMetaTitle: string | null;
|
|
442
|
+
metaDescription: string | null;
|
|
443
|
+
draftMetaDescription: string | null;
|
|
444
|
+
ogImageId: string | null;
|
|
445
|
+
ogImageUrl: string | null;
|
|
446
|
+
canonicalUrl: string | null;
|
|
447
|
+
createdAt: string;
|
|
448
|
+
updatedAt: string;
|
|
449
|
+
contentSource: SdkRuntimePageSurfaceContentSource;
|
|
450
|
+
};
|
|
398
451
|
export type PageResponse = {
|
|
399
452
|
page: SdkRuntimePage;
|
|
400
453
|
templates?: SdkTemplate[];
|
|
401
454
|
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
402
|
-
type?:
|
|
455
|
+
type?: 'page';
|
|
403
456
|
} | {
|
|
404
457
|
entry: SdkRuntimeEntry;
|
|
405
458
|
templates: SdkTemplate[];
|
|
406
459
|
entrySlots?: SdkEntrySlotContent[];
|
|
407
460
|
contentTypeSchema: Record<string, unknown> | null;
|
|
408
461
|
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
409
|
-
type:
|
|
462
|
+
type: 'entry';
|
|
463
|
+
} | {
|
|
464
|
+
pageSurface: SdkRuntimePageSurface;
|
|
465
|
+
templates: SdkTemplate[];
|
|
466
|
+
surfaceSlots?: SdkSurfaceSlotContent[];
|
|
467
|
+
contentTypeSchema: Record<string, unknown> | null;
|
|
468
|
+
mediaAssets?: SdkRuntimeMediaAsset[];
|
|
469
|
+
type: 'pageSurface';
|
|
410
470
|
};
|
|
411
471
|
export type SdkRuntimeMediaAsset = MediaAssetIndexItem;
|
|
412
472
|
export type SdkRuntimeEntry = {
|
|
@@ -466,8 +526,8 @@ export type ContentEntryListItem<TContent = Record<string, unknown>> = {
|
|
|
466
526
|
export type PublicContentTypeFieldMeta = {
|
|
467
527
|
id: string;
|
|
468
528
|
type: string;
|
|
469
|
-
mediaKinds: Array<
|
|
470
|
-
fileKinds: Array<
|
|
529
|
+
mediaKinds: Array<'image' | 'video' | 'audio'> | null;
|
|
530
|
+
fileKinds: Array<'document' | 'spreadsheet' | 'archive' | 'audio'> | null;
|
|
471
531
|
};
|
|
472
532
|
export type PublicContentTypeMeta = {
|
|
473
533
|
key: string;
|
|
@@ -515,6 +575,23 @@ export type PublicBookingService = {
|
|
|
515
575
|
export type PublicBookingServicesResponse = {
|
|
516
576
|
services: PublicBookingService[];
|
|
517
577
|
};
|
|
578
|
+
export type PublicWeeklySlotAvailabilityOption = {
|
|
579
|
+
id: string;
|
|
580
|
+
resourceId: string;
|
|
581
|
+
weekday: number;
|
|
582
|
+
weekdayLabel: string;
|
|
583
|
+
startTime: string;
|
|
584
|
+
endTime: string;
|
|
585
|
+
nextDate: string;
|
|
586
|
+
availableWeeks: number;
|
|
587
|
+
};
|
|
588
|
+
export type PublicWeeklySlotAvailabilityResponse = {
|
|
589
|
+
slots: PublicWeeklySlotAvailabilityOption[];
|
|
590
|
+
horizonWeeks: number;
|
|
591
|
+
timezone: string;
|
|
592
|
+
startDate: string;
|
|
593
|
+
endDate: string;
|
|
594
|
+
};
|
|
518
595
|
export type PublicEventTicketTypeRecord = {
|
|
519
596
|
id: string;
|
|
520
597
|
siteId: string;
|
|
@@ -524,32 +601,32 @@ export type PublicEventTicketTypeRecord = {
|
|
|
524
601
|
priceAmount: number;
|
|
525
602
|
isActive: boolean;
|
|
526
603
|
sortOrder: number;
|
|
527
|
-
capacityMode:
|
|
604
|
+
capacityMode: 'limited' | 'unlimited';
|
|
528
605
|
capacityLimit: number | null;
|
|
529
606
|
saleStartsAt: string | null;
|
|
530
607
|
saleEndsAt: string | null;
|
|
531
608
|
availability: {
|
|
532
|
-
kind:
|
|
609
|
+
kind: 'available';
|
|
533
610
|
remainingCapacity: number | null;
|
|
534
611
|
} | {
|
|
535
|
-
kind:
|
|
536
|
-
reason:
|
|
612
|
+
kind: 'unavailable';
|
|
613
|
+
reason: 'inactive' | 'not_on_sale_yet' | 'sale_ended' | 'sold_out' | 'event_sold_out';
|
|
537
614
|
remainingCapacity: number | null;
|
|
538
615
|
};
|
|
539
616
|
createdAt: string;
|
|
540
617
|
updatedAt: string;
|
|
541
618
|
};
|
|
542
619
|
export type PublicEventDestination = Readonly<{
|
|
543
|
-
kind:
|
|
544
|
-
mode:
|
|
620
|
+
kind: 'native';
|
|
621
|
+
mode: 'cms-managed' | 'system-managed';
|
|
545
622
|
path: string;
|
|
546
623
|
}> | Readonly<{
|
|
547
|
-
kind:
|
|
624
|
+
kind: 'external';
|
|
548
625
|
url: string;
|
|
549
626
|
label: string;
|
|
550
627
|
}>;
|
|
551
628
|
export type PublicEventsResponse = Array<{
|
|
552
|
-
kind?:
|
|
629
|
+
kind?: 'event' | 'course_session';
|
|
553
630
|
destination: PublicEventDestination;
|
|
554
631
|
id: string;
|
|
555
632
|
occurrenceId: string;
|
|
@@ -560,7 +637,7 @@ export type PublicEventsResponse = Array<{
|
|
|
560
637
|
cardTitleOverride?: string | null;
|
|
561
638
|
summary?: string | null;
|
|
562
639
|
image?: {
|
|
563
|
-
type:
|
|
640
|
+
type: 'image' | 'video' | 'audio' | 'document' | 'spreadsheet' | 'archive';
|
|
564
641
|
purpose?: string;
|
|
565
642
|
placeholder?: boolean;
|
|
566
643
|
assetId?: string;
|
|
@@ -610,19 +687,19 @@ export type PublicEventsResponse = Array<{
|
|
|
610
687
|
summary: string | null;
|
|
611
688
|
profilePath: string | null;
|
|
612
689
|
}>;
|
|
613
|
-
status?:
|
|
690
|
+
status?: 'active' | 'draft' | 'archived';
|
|
614
691
|
pricing: PublicEventPricing<PublicEventTicketTypeRecord>;
|
|
615
692
|
paymentTerms: {
|
|
616
693
|
allowedOptions: Array<{
|
|
617
|
-
kind:
|
|
694
|
+
kind: 'upfront';
|
|
618
695
|
} | {
|
|
619
|
-
kind:
|
|
696
|
+
kind: 'deferred_manual';
|
|
620
697
|
} | {
|
|
621
|
-
kind:
|
|
698
|
+
kind: 'instalment_plan';
|
|
622
699
|
plan: Record<string, unknown>;
|
|
623
700
|
}>;
|
|
624
701
|
};
|
|
625
|
-
accessRestriction:
|
|
702
|
+
accessRestriction: 'none' | 'category';
|
|
626
703
|
allowedCategoryIds: string[];
|
|
627
704
|
requireGuestDetails?: boolean;
|
|
628
705
|
timeZone?: string;
|
|
@@ -631,20 +708,20 @@ export type PublicEventsResponse = Array<{
|
|
|
631
708
|
course?: {
|
|
632
709
|
id: string;
|
|
633
710
|
pricing?: {
|
|
634
|
-
bookingRequirement:
|
|
635
|
-
pricingStrategy:
|
|
711
|
+
bookingRequirement: 'none' | 'required';
|
|
712
|
+
pricingStrategy: 'free' | 'single' | 'tiered';
|
|
636
713
|
currency: string;
|
|
637
714
|
singlePriceAmount: number | null;
|
|
638
715
|
paymentTerms: {
|
|
639
716
|
allowedOptions: Array<{
|
|
640
|
-
kind:
|
|
717
|
+
kind: 'upfront';
|
|
641
718
|
} | {
|
|
642
|
-
kind:
|
|
719
|
+
kind: 'deferred_manual';
|
|
643
720
|
} | {
|
|
644
|
-
kind:
|
|
721
|
+
kind: 'instalment_plan';
|
|
645
722
|
plan: BookingInstalmentPlanConfig;
|
|
646
723
|
} | {
|
|
647
|
-
kind:
|
|
724
|
+
kind: 'flexible_balance';
|
|
648
725
|
config: BookingFlexibleBalanceConfig;
|
|
649
726
|
}>;
|
|
650
727
|
};
|
|
@@ -658,7 +735,7 @@ export type PublicEventsResponse = Array<{
|
|
|
658
735
|
capacityLimit: number | null;
|
|
659
736
|
saleStartsAt: string | null;
|
|
660
737
|
saleEndsAt: string | null;
|
|
661
|
-
attendanceScope?:
|
|
738
|
+
attendanceScope?: 'in_person' | 'online' | 'both' | null;
|
|
662
739
|
}>;
|
|
663
740
|
};
|
|
664
741
|
priceCents: number | null;
|
|
@@ -709,10 +786,10 @@ export type PublicProductsResponse = {
|
|
|
709
786
|
title: string;
|
|
710
787
|
slug: string;
|
|
711
788
|
path: string | null;
|
|
712
|
-
status:
|
|
789
|
+
status: 'draft' | 'active';
|
|
713
790
|
priceCents: number;
|
|
714
791
|
currency: string;
|
|
715
|
-
productType:
|
|
792
|
+
productType: 'physical' | 'digital';
|
|
716
793
|
requiresShipping: boolean;
|
|
717
794
|
hasVariants: boolean;
|
|
718
795
|
trackInventory: boolean;
|
|
@@ -741,7 +818,7 @@ export type PublicProductsResponse = {
|
|
|
741
818
|
export type PublicPassesResponse = {
|
|
742
819
|
passes: Array<{
|
|
743
820
|
id: string;
|
|
744
|
-
productUseCase:
|
|
821
|
+
productUseCase: 'event_pass' | 'appointment_package';
|
|
745
822
|
name: string;
|
|
746
823
|
description: string | null;
|
|
747
824
|
price: number;
|
|
@@ -760,14 +837,14 @@ export type PublicMembershipsResponse = {
|
|
|
760
837
|
description: string | null;
|
|
761
838
|
price: number;
|
|
762
839
|
currency: string;
|
|
763
|
-
billingInterval:
|
|
840
|
+
billingInterval: 'month' | 'year';
|
|
764
841
|
eligibleCategoryIds: string[];
|
|
765
842
|
eligibleCategoryNames: string[];
|
|
766
843
|
}>;
|
|
767
844
|
};
|
|
768
845
|
export type ResolveEntrySubrouteResponse = {
|
|
769
846
|
subroute: {
|
|
770
|
-
kind:
|
|
847
|
+
kind: 'event-occurrence';
|
|
771
848
|
occurrence: {
|
|
772
849
|
id: string;
|
|
773
850
|
seriesId: string;
|
|
@@ -779,7 +856,7 @@ export type ResolveEntrySubrouteResponse = {
|
|
|
779
856
|
overridesJson: Record<string, unknown>;
|
|
780
857
|
};
|
|
781
858
|
} | {
|
|
782
|
-
kind:
|
|
859
|
+
kind: 'course-run';
|
|
783
860
|
run: {
|
|
784
861
|
courseId: string;
|
|
785
862
|
seriesId: string;
|
|
@@ -806,22 +883,28 @@ export type CheckRedirectResponse = {
|
|
|
806
883
|
};
|
|
807
884
|
export type RedirectHttpStatus = 301 | 302 | 307 | 308;
|
|
808
885
|
export type RouteOutcomeResponse = {
|
|
809
|
-
type:
|
|
886
|
+
type: 'content';
|
|
810
887
|
content: PageResponse;
|
|
811
888
|
} | {
|
|
812
|
-
type:
|
|
889
|
+
type: 'redirect';
|
|
813
890
|
destination: string;
|
|
814
891
|
status: RedirectHttpStatus;
|
|
815
892
|
} | {
|
|
816
|
-
type:
|
|
893
|
+
type: 'notFound';
|
|
817
894
|
} | {
|
|
818
|
-
type:
|
|
895
|
+
type: 'loadFailed';
|
|
819
896
|
message: string;
|
|
820
897
|
};
|
|
898
|
+
export type RouteNonContentDecisionResponse = Exclude<RouteOutcomeResponse, {
|
|
899
|
+
type: 'content';
|
|
900
|
+
}>;
|
|
901
|
+
export type RouteDecisionResponse = {
|
|
902
|
+
type: 'contentExists';
|
|
903
|
+
} | RouteNonContentDecisionResponse;
|
|
821
904
|
export type RoutableContentItem = {
|
|
822
905
|
routeId: string;
|
|
823
906
|
entityId: string;
|
|
824
|
-
entityType:
|
|
907
|
+
entityType: 'page' | 'content';
|
|
825
908
|
identifier: string | null;
|
|
826
909
|
contentTypeKey?: string | null;
|
|
827
910
|
contentTypeName?: string | null;
|
|
@@ -849,17 +932,18 @@ export type SitemapRoutesResponse = {
|
|
|
849
932
|
pageSize: number;
|
|
850
933
|
allowIndexingInProduction: boolean;
|
|
851
934
|
};
|
|
852
|
-
export type PublicEndpointName =
|
|
935
|
+
export type PublicEndpointName = 'getSite' | 'getContentByPath' | 'resolveRouteOutcome' | 'resolveRouteDecision' | 'listPublishedEntries' | 'getPublishedEntryPreview' | 'getPublicFormById' | 'listPublicForms' | 'getPublicBookingServices' | 'getPublicWeeklySlotAvailability' | 'getPublicChallenge' | 'listPublicEvents' | 'batchBlockLoaders' | 'listPublicCourses' | 'listPublicTeamMembers' | 'listPublicProducts' | 'listPublicPasses' | 'listPublicMemberships' | 'resolveEntrySubroute' | 'resolveEventOccurrence' | 'checkRedirect' | 'getRoutableContent' | 'getPublicRoutableContent' | 'getPublicSitemapRoutes';
|
|
853
936
|
export type PublicAPIEndpoints = {
|
|
854
937
|
getSite: APIEndpointBase<never, {
|
|
855
938
|
id?: string;
|
|
856
939
|
slug?: string;
|
|
857
940
|
domain?: string;
|
|
858
|
-
scope?:
|
|
941
|
+
scope?: 'full';
|
|
859
942
|
}, SiteResponse>;
|
|
860
943
|
getContentByPath: APIEndpointBase<{
|
|
861
944
|
path: string;
|
|
862
945
|
preview?: boolean;
|
|
946
|
+
contentContract?: 'compat' | 'native';
|
|
863
947
|
}, {
|
|
864
948
|
siteId: string;
|
|
865
949
|
}, PageResponse>;
|
|
@@ -868,15 +952,20 @@ export type PublicAPIEndpoints = {
|
|
|
868
952
|
path: string;
|
|
869
953
|
preview?: boolean;
|
|
870
954
|
}, RouteOutcomeResponse>;
|
|
955
|
+
resolveRouteDecision: APIEndpointBase<never, {
|
|
956
|
+
siteId: string;
|
|
957
|
+
path: string;
|
|
958
|
+
preview?: boolean;
|
|
959
|
+
}, RouteDecisionResponse>;
|
|
871
960
|
listPublishedEntries: APIEndpointBase<never, {
|
|
872
961
|
siteId: string;
|
|
873
962
|
type: string;
|
|
874
963
|
limit?: string;
|
|
875
964
|
offset?: string;
|
|
876
|
-
order?:
|
|
965
|
+
order?: 'published_at.asc' | 'published_at.desc' | 'title.asc' | 'title.desc' | 'updated_at.asc' | 'updated_at.desc';
|
|
877
966
|
stage?: ContentEntryListStage;
|
|
878
967
|
meta?: string;
|
|
879
|
-
mode?:
|
|
968
|
+
mode?: 'manual';
|
|
880
969
|
entryIds?: string;
|
|
881
970
|
}, EntriesResponse>;
|
|
882
971
|
getPublishedEntryPreview: APIEndpointBase<never, {
|
|
@@ -895,6 +984,13 @@ export type PublicAPIEndpoints = {
|
|
|
895
984
|
siteId: string;
|
|
896
985
|
ids?: string;
|
|
897
986
|
}, PublicBookingServicesResponse>;
|
|
987
|
+
getPublicWeeklySlotAvailability: APIEndpointBase<never, {
|
|
988
|
+
siteId: string;
|
|
989
|
+
serviceId: string;
|
|
990
|
+
resourceId?: string;
|
|
991
|
+
horizonWeeks?: string;
|
|
992
|
+
timezone?: string;
|
|
993
|
+
}, PublicWeeklySlotAvailabilityResponse>;
|
|
898
994
|
getPublicChallenge: APIEndpointBase<never, never, string>;
|
|
899
995
|
listPublicEvents: APIEndpointBase<never, {
|
|
900
996
|
siteId: string;
|
|
@@ -914,7 +1010,7 @@ export type PublicAPIEndpoints = {
|
|
|
914
1010
|
batchBlockLoaders: APIEndpointBase<{
|
|
915
1011
|
requests: Array<{
|
|
916
1012
|
id: string;
|
|
917
|
-
endpoint:
|
|
1013
|
+
endpoint: 'getPublicEventDetails';
|
|
918
1014
|
params?: {
|
|
919
1015
|
limit?: string;
|
|
920
1016
|
from?: string;
|
|
@@ -931,7 +1027,7 @@ export type PublicAPIEndpoints = {
|
|
|
931
1027
|
};
|
|
932
1028
|
} | {
|
|
933
1029
|
id: string;
|
|
934
|
-
endpoint:
|
|
1030
|
+
endpoint: 'listPublicTeamMembers';
|
|
935
1031
|
params?: {
|
|
936
1032
|
siteId?: string;
|
|
937
1033
|
stage?: string;
|
|
@@ -963,7 +1059,7 @@ export type PublicAPIEndpoints = {
|
|
|
963
1059
|
}, PublicTeamMembersResponse>;
|
|
964
1060
|
listPublicProducts: APIEndpointBase<never, {
|
|
965
1061
|
siteId: string;
|
|
966
|
-
stage?:
|
|
1062
|
+
stage?: 'published' | 'preview';
|
|
967
1063
|
} & PublicProductCategorySelectorQuery, PublicProductsResponse>;
|
|
968
1064
|
listPublicPasses: APIEndpointBase<never, {
|
|
969
1065
|
siteId: string;
|
|
@@ -976,9 +1072,9 @@ export type PublicAPIEndpoints = {
|
|
|
976
1072
|
resolveEntrySubroute: APIEndpointBase<never, {
|
|
977
1073
|
siteId: string;
|
|
978
1074
|
entryId: string;
|
|
979
|
-
kind:
|
|
1075
|
+
kind: 'event-occurrence' | 'course-run';
|
|
980
1076
|
segment: string;
|
|
981
|
-
stage?:
|
|
1077
|
+
stage?: 'preview' | 'published';
|
|
982
1078
|
}, ResolveEntrySubrouteResponse>;
|
|
983
1079
|
resolveEventOccurrence: APIEndpointBase<never, {
|
|
984
1080
|
siteId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiResult, HTTPMethod, PublicAPIEndpoints, PublicEndpointName } from './contracts';
|
|
2
|
-
export declare const PUBLIC_ENDPOINT_NAMES: readonly ["getSite", "getContentByPath", "resolveRouteOutcome", "listPublishedEntries", "getPublishedEntryPreview", "getPublicFormById", "listPublicForms", "getPublicBookingServices", "getPublicChallenge", "listPublicEvents", "batchBlockLoaders", "listPublicCourses", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "resolveEntrySubroute", "resolveEventOccurrence", "checkRedirect", "getRoutableContent", "getPublicRoutableContent", "getPublicSitemapRoutes"];
|
|
2
|
+
export declare const PUBLIC_ENDPOINT_NAMES: readonly ["getSite", "getContentByPath", "resolveRouteOutcome", "resolveRouteDecision", "listPublishedEntries", "getPublishedEntryPreview", "getPublicFormById", "listPublicForms", "getPublicBookingServices", "getPublicWeeklySlotAvailability", "getPublicChallenge", "listPublicEvents", "batchBlockLoaders", "listPublicCourses", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "resolveEntrySubroute", "resolveEventOccurrence", "checkRedirect", "getRoutableContent", "getPublicRoutableContent", "getPublicSitemapRoutes"];
|
|
3
3
|
export type ApiClient = <E extends PublicEndpointName>(params: {
|
|
4
4
|
endpoint: E;
|
|
5
5
|
params?: PublicAPIEndpoints[E]['query'];
|
|
@@ -9,9 +9,10 @@ import { applyBindings as blocksApplyBindings, applyBindingsToContent as blocksA
|
|
|
9
9
|
import type { BindingSource, BindingDescriptor, BindingInput, BindingContext } from '../../contracts';
|
|
10
10
|
export type { BindingSource, BindingDescriptor, BindingInput, BindingMap, BindingContext } from '../../contracts';
|
|
11
11
|
export declare const TRANSFORMS: {
|
|
12
|
-
RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph";
|
|
13
|
-
DATE_FORMAT_SHORT: "date.formatShort";
|
|
14
|
-
DATE_FORMAT_LONG: "date.formatLong";
|
|
12
|
+
readonly RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph";
|
|
13
|
+
readonly DATE_FORMAT_SHORT: "date.formatShort";
|
|
14
|
+
readonly DATE_FORMAT_LONG: "date.formatLong";
|
|
15
|
+
readonly TEXT_INLINE_TEXT: "text.inlineText";
|
|
15
16
|
};
|
|
16
17
|
export declare const BINDING_SOURCES: BindingSource[];
|
|
17
18
|
export declare const isRecord: typeof blocksIsRecord;
|