@riverbankcms/sdk 0.139.0 → 0.141.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 +1 -1
- package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-Q-fy9GYw.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-LYGzgk85.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-CoPYI5Jq.mjs} +90 -50
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-D8LePX8x.mjs} +2731 -1303
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
- package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
- package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/authSubmission.d.ts +46 -0
- package/dist/_dts/api/src/billing.d.ts +8 -4
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
- package/dist/_dts/api/src/blocks.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
- package/dist/_dts/api/src/communications.d.ts +0 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +17 -31
- package/dist/_dts/api/src/domainConnection.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +93 -64
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +25 -0
- package/dist/_dts/api/src/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +6 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -0
- package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +2 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +3 -29
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +10 -29
- package/dist/_dts/api/src/siteOnboarding.d.ts +9 -9
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +20 -7
- package/dist/_dts/api/src/types.d.ts +77 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/billing/src/plans/types.d.ts +3 -0
- package/dist/_dts/billing/src/site-arrangements.d.ts +23 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +7 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
- package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +122 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/eventSelection.d.ts +11 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +7 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +27 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -186
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -93
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +48 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.state.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +14 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.d.ts +37 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +11 -101
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
- package/dist/_dts/core/src/participants.d.ts +2 -29
- package/dist/_dts/core/src/public-experience.d.ts +4 -0
- package/dist/_dts/core/src/public-profile.d.ts +27 -1
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +296 -606
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +27 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +17 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +0 -6
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +4 -4
- package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +54 -12
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
- package/dist/_dts/theme-core/src/schema.d.ts +84 -84
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
- package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
- package/dist/_dts/ui/src/pending-button.d.ts +10 -0
- package/dist/client/{BookingConsentAgreement-CZvTDtsK.mjs → BookingConsentAgreement-xJeYNdnb.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-DdT6uzl9.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-Cp28uYuM.mjs} +12 -16
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-CD6AJsMr.mjs} +4 -17
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-DBsAi9-e.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6dwbOKYR.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-CZE9_qPQ.mjs} +7 -7
- package/dist/client/bookings.mjs +500 -233
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-7VHGQARz.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-Qg_mvQhh.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D84rpgdr.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +2315 -1017
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Ctp3T0Wr.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-DJKFcI_N.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-CK31z3vs.mjs} +12 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-DiXd-ewn.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-CTRgt2DK.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-Dy9vi_j_.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-CnalYMr2.mjs} +618 -177
- package/dist/client/{form-CBKXN5In.mjs → form-eUiMveTT.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-Dy9kQpB1.mjs} +2 -2
- package/dist/client/hooks.mjs +692 -212
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-DalCmWU0.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-SDDPvhS0.mjs} +150 -94
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-OcMz4SnX.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-BQrgHElM.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-OnPn_UJj.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-zBdsnS-N.mjs} +168 -32
- package/dist/client/rendering/client.mjs +1355 -519
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2294 -953
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-BNM4Ob2Y.mjs} +28 -11
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Bv1fPTwQ.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-D4KNGaW8.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-2N5EV0Rc.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-DvJGdHTV.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-BBBvGDHQ.mjs} +19 -13
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +4 -8
- package/dist/preview-next/keepAlive.mjs +119 -64
- package/dist/preview-next/middleware.mjs +119 -64
- package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
- package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-Defnbfzw.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-CZXO3Sb0.mjs} +1 -1
- package/dist/server/components.mjs +1170 -384
- package/dist/server/config-validation.mjs +560 -105
- package/dist/server/config.mjs +564 -109
- package/dist/server/data.mjs +688 -212
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1429 -662
- package/dist/server/page-converter.mjs +372 -99
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1624 -817
- package/dist/server/rendering.mjs +1200 -391
- package/dist/server/routing.mjs +767 -247
- package/dist/server/server.mjs +715 -276
- package/dist/server/theme-bridge.mjs +475 -110
- package/dist/server/theme.mjs +9 -3
- package/dist/styles/index.css +265 -45
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import type { CamelizeKeys, DbDatabase, DbRow } from
|
|
2
|
-
export type { AccessPolicyContract, AccessPolicyTag, AmbientBackgroundRole, CreateMediaAssetBody, EntitledCustomerAccessScopeContract, FileKindContract, FileKindTag, FileUseContract, FileUseTag, ImageFileFormat, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteAssetFailure, MediaBulkDeleteResponse, MediaDeleteResponse, MediaDeleteWarning, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse, RenderableFileKindTag, SiteBackgroundAssetUse, StorageClass, UploadIntentContract, UploadIntentTag, } from
|
|
3
|
-
export type { AnalyticsPreset, AnalyticsReferrer, AnalyticsReportFilters, AnalyticsReportQuery, AnalyticsReportResponse, AnalyticsSeriesPoint, AnalyticsTopPage, AnalyticsTotals, } from
|
|
4
|
-
export type { AIChatMessage, AiBriefTurn, JsonPrimitive, JsonValue, MediaUsageCheckItem, MediaUsageCheckResponse, MediaUsageLocation, } from
|
|
5
|
-
export type * from
|
|
6
|
-
export { STAFF_OPERATIONAL_CAPABILITIES, getDefaultStaffCapabilities, } from
|
|
7
|
-
export type * from
|
|
8
|
-
export { appointmentResourceIdFromStaffMemberId, canAccessOwnAppointmentResource, deriveLinkedAppointmentIdentity, deriveOpsLandingDestination, deriveSiteListingNavigationPlan, deriveStaffScope, deriveStaffSiteHomeDestination, getIdentityAppointmentResourceId, getIdentityAppointmentResourceIdValue, getIdentityStaffMemberId, getIdentityStaffMemberIdValue, getLinkedStaffMemberId, getOwnAppointmentResourceId, hasAppointmentStaffAccess, hasEventOpsAccess, isEventOpsOnlyUser, isLinkedAppointmentResource, isStaffScoped, isTeamMemberScope, roleAtLeast, roleAtLeastOrNone, shouldRedirectStaffScopeToOps, } from
|
|
9
|
-
export type * from
|
|
10
|
-
export type * from
|
|
11
|
-
export type * from
|
|
12
|
-
export type * from
|
|
13
|
-
export type * from
|
|
14
|
-
export type * from
|
|
15
|
-
export type * from
|
|
16
|
-
export { APPOINTMENT_HISTORY_STATUS_VALUES } from
|
|
17
|
-
export type * from
|
|
18
|
-
export type * from
|
|
19
|
-
export type * from
|
|
20
|
-
export type * from
|
|
21
|
-
export type * from
|
|
1
|
+
import type { CamelizeKeys, DbDatabase, DbRow } from '../../db/src/index';
|
|
2
|
+
export type { AccessPolicyContract, AccessPolicyTag, AmbientBackgroundRole, CreateMediaAssetBody, EntitledCustomerAccessScopeContract, FileKindContract, FileKindTag, FileUseContract, FileUseTag, ImageFileFormat, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteAssetFailure, MediaBulkDeleteResponse, MediaDeleteResponse, MediaDeleteWarning, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse, RenderableFileKindTag, SiteBackgroundAssetUse, StorageClass, UploadIntentContract, UploadIntentTag, } from './media';
|
|
3
|
+
export type { AnalyticsPreset, AnalyticsReferrer, AnalyticsReportFilters, AnalyticsReportQuery, AnalyticsReportResponse, AnalyticsSeriesPoint, AnalyticsTopPage, AnalyticsTotals, } from './analytics';
|
|
4
|
+
export type { AIChatMessage, AiBriefTurn, JsonPrimitive, JsonValue, MediaUsageCheckItem, MediaUsageCheckResponse, MediaUsageLocation, } from './shared-contracts';
|
|
5
|
+
export type * from './accessAdmin';
|
|
6
|
+
export { STAFF_OPERATIONAL_CAPABILITIES, getDefaultStaffCapabilities, } from './accessAdmin';
|
|
7
|
+
export type * from './staffAccess';
|
|
8
|
+
export { appointmentResourceIdFromStaffMemberId, canAccessOwnAppointmentResource, deriveLinkedAppointmentIdentity, deriveOpsLandingDestination, deriveSiteListingNavigationPlan, deriveStaffScope, deriveStaffSiteHomeDestination, getIdentityAppointmentResourceId, getIdentityAppointmentResourceIdValue, getIdentityStaffMemberId, getIdentityStaffMemberIdValue, getLinkedStaffMemberId, getOwnAppointmentResourceId, hasAppointmentStaffAccess, hasEventOpsAccess, isEventOpsOnlyUser, isLinkedAppointmentResource, isStaffScoped, isTeamMemberScope, roleAtLeast, roleAtLeastOrNone, shouldRedirectStaffScopeToOps, } from './staffAccess';
|
|
9
|
+
export type * from './aiEndpoints';
|
|
10
|
+
export type * from './apiEndpointTypes';
|
|
11
|
+
export type * from './bookingAdjustments';
|
|
12
|
+
export type * from './bookingConfig';
|
|
13
|
+
export type * from './event-listing-destination';
|
|
14
|
+
export type * from './bookingManagementEndpoints';
|
|
15
|
+
export type * from './bookingOperations';
|
|
16
|
+
export { APPOINTMENT_HISTORY_STATUS_VALUES } from './bookingOperations';
|
|
17
|
+
export type * from './bookingRecords';
|
|
18
|
+
export type * from './commercePortalEndpoints';
|
|
19
|
+
export type * from './communications';
|
|
20
|
+
export type * from './contentRuntime';
|
|
21
|
+
export type * from './contentVersionHistory';
|
|
22
22
|
export type * from './wholeSeriesRuns';
|
|
23
|
-
export type * from
|
|
24
|
-
export type * from
|
|
25
|
-
export type * from
|
|
26
|
-
export type * from
|
|
27
|
-
export type * from
|
|
28
|
-
export type * from
|
|
29
|
-
export type * from
|
|
30
|
-
export type * from
|
|
31
|
-
export type * from
|
|
32
|
-
export type * from
|
|
33
|
-
export type * from
|
|
34
|
-
export type * from
|
|
35
|
-
export type * from
|
|
36
|
-
export { FLEXIBLE_BALANCE_ADMIN_ACTION_SOURCES } from
|
|
37
|
-
export type { AppointmentBlackout, AvailabilityScheduleSettings, CreateBlackoutResponse, CreateBlackoutRequest, DeleteBlackoutResponse, GetAvailableSlotsQuery, GetAvailableSlotsResponse, ListAvailabilityRulesResponse, ListBlackoutsResponse, SetWeeklyAvailabilityIssue, SetWeeklyAvailabilityRequest, SetWeeklyAvailabilityResponse, TimeSlot, ServiceSpecificAvailabilityScheduleSettings, WeeklyAvailabilityWindowInput, } from
|
|
38
|
-
export type { CalendarConnectionStatus, CalendarInfo, CalendarPreferences, CalendarStatusResponse, DisconnectCalendarResponse, UpdateCalendarPreferencesRequest, UpdateCalendarPreferencesResponse, } from
|
|
39
|
-
export type { AppointmentRecord, AppointmentStatus, BookingQuestionFormSummary, BookingQuestionRequirementScope, BookingQuestionsRequirementConfig, BookingCustomerRecord, BookingRequirementConfigRequest, BookingRequirementConfigResponse, BookingRequirementTargetType, BookingRequirementValidityPolicy, ConsentRequirementConfig, CreateAppointmentRequest, CreateAppointmentResponse, } from
|
|
40
|
-
export { APPOINTMENT_STATUS_VALUES } from
|
|
41
|
-
export type { AiPatchApplyResponse, AiPatchBlockSetOp, AiPatchDryRunResponse, AiPatchOp, AiPatchPageMetaOp, AiPatchRequest, } from
|
|
42
|
-
export type { AffectedOccurrence, AiDesignerThemePatchOp, AllowedField, ApplyAiDesignerPageOpsRequest, ApplyAiDesignerPageOpsResponse, ApplyAiDesignerThemePatchRequest, ApplyAiDesignerThemePatchResponse, AiPlaygroundApplyRequest, AiPlaygroundApplyResponse, BlockContext, DebugArtifact, DebugArtifacts, ModifiedOccurrence, MultiPagePatchEnvelope, MultiPageUpdateResponse, PageBlock, PageContext, PageConversionAttempt, PageConversionFailure, PageConversionResult, PageConversionSuccess, PageConvertJob, PageConvertJobEvent, PageConvertJobEventsResponse, PageConvertJobEventType, PageConvertJobGetResponse, PageConvertJobRunResponse, PageConvertJobsCreateRequest, PageConvertJobsCreateResponse, PageConvertJobsListResponse, PageConvertJobStatus, PageConverterOutput, PageConvertResponse, PlaygroundProposeRequest, RegenerationSummary, Rfc6902PatchOp, SchedulePreviewRequest, SchedulePreviewResponse, StreamEvent, } from
|
|
43
|
-
export type { ApplySeoChangesRequest, ApplySeoChangesResponse, PerformanceOverviewQuery, PerformanceOverviewResponse, PerformanceRangePreset, SeoOverviewQuery, SeoOverviewResponse, SeoOverviewTimePoint, SeoRangePreset, SeoSearchPagesQuery, SeoSearchPagesResponse, SeoSearchQueriesQuery, SeoSearchQueriesResponse, SeoSearchSummary, } from
|
|
44
|
-
export type { CheckRedirectQuery, CheckRedirectResponse, CreateRedirectRuleRequest, CreateRedirectRuleResponse, DeleteRedirectRuleResponse, ListRedirectRulesResponse, RedirectRuleRecord, } from
|
|
45
|
-
export type { ApplyContentTemplateAddonRequest, ContentTemplateAddonSummary, ContentAddonDefinition, ContentTemplateBlockSummary, ContentTemplateDetailsResponse, ContentTemplateSummary, ContentTypeTemplateSummary, ContentTypeRoutingInfo, ContentTypeRoutingSubroute, ContentTypeRecord, CreateTemplateBlockRequest, ContentTypeSummary, CreateContentTypeRequest, CreateContentTypeResponse, DeleteContentTypeResponse, DuplicateContentTypeResponse, GetTransformsResponse, ListContentTypesResponse, PublicContentTypeFieldMeta, PublicContentTypeMeta, ReorderTemplateBlocksRequest, SerializedContentTypeSummary, TransformMetadata, UpdateContentTemplateBlockBindingsRequest, UpdateContentTemplateBlockRequest, UpdateContentTypeRequest, UpdateContentTypeResponse, } from
|
|
46
|
-
export type { CartLinkLabelConfig, CartLinkPayload, EntryLinkPayload, EntryRoutableContentItem, InternalLinkRoutablePayload, LinkPayload, NavigationLinkInput, PageLinkPayload, PageRoutableContentItem, PageSurfaceRoutableContentItem, PortalLinkPayload, RoutableContentItem, SitemapRouteItem, } from
|
|
47
|
-
export type { SiteBannerAnnouncementRole, SiteBannerCta, SiteBannerScope, SiteBannerSettingsPayload, SiteBannerSettingsResponse, SiteBannerTone, } from
|
|
48
|
-
export type { SitePageBlock, SitePagePayload } from
|
|
49
|
-
export type { SiteAnalyticsCookieBannerCopyOverrides, SiteAnalyticsSettingsPayload, SiteAnalyticsSettingsResponse, } from
|
|
50
|
-
export type { SiteLegalJurisdiction, SiteLegalProfilePayload, SensitiveClientRecordsConfirmationKey, SensitiveClientRecordsMode, SensitiveClientRecordsRetentionProfile, SensitiveClientRecordsSettings, SensitiveClientRecordsUpdatePayload, SitePrivacyPolicyCapabilities, SitePrivacyPolicyDocument, SitePrivacySettings, SitePrivacySettingsPayload, SitePrivacySettingsResponse, SiteRuntimePrivacyPolicy, SitePrivacyPolicySection, } from
|
|
51
|
-
export type { MaintenanceSettingsPayload, MaintenanceSettingsResponse, SiteBusinessAddressPayload, SiteBusinessAddressResponse, SiteDeploymentMode, SiteFooterBlocksEditorBlock, SiteFooterBlocksEditorResponse, SiteGeneralSettingsPayload, SiteGeneralSettingsResponse, SiteLayoutResolvedPayload, SiteLayoutSettingsPayload, SiteLayoutSettingsResponse, SiteRuntimeBusinessDetails, UpdateSiteDeploymentModePayload, UpdateSiteDeploymentModeResponse, UpdateSiteFooterBlocksPayload, UpdateSiteFooterBlocksResponse, } from
|
|
52
|
-
export type { BillingCheckoutRequest, BillingCheckoutResponse, BillingStatusResponse, BillingSummaryComponent, BillingSummaryComponentKind, BillingSummaryComponentSource, BillingSummaryBasePlanComponent, BillingSummarySiteComponent, BillingSummaryAddOnComponent, BillingSummaryResponse, SiteBillingCheckoutResponse, SiteBillingCostResponse, StripeAutomaticTaxIssue, StripeAutomaticTaxReadiness, StripeAutomaticTaxStatus, StripeConnectDisconnectResponse, StripeConnectRestrictions, StripeConnectStartResponse, StripeConnectStatusResponse, UpdateStripeAutomaticTaxRequest, } from
|
|
53
|
-
export type { AiGenerateSiteEntityType, AiGenerateSitePrimaryCta, AiGenerateSiteRequest, AiGenerateSiteResponse, } from
|
|
54
|
-
export { SITE_ROLE_DISPLAY_ORDER, SITE_ROLE_PERMISSION_LEVEL } from
|
|
55
|
-
export type { SiteRole } from
|
|
56
|
-
import type { HTTPMethod, ApiResponseKind, ApiAuthRequirement } from
|
|
23
|
+
export type * from './mailchimpIntegration';
|
|
24
|
+
export type * from './participantMessaging';
|
|
25
|
+
export type * from './publicExperienceEndpoints';
|
|
26
|
+
export type * from './sdkContracts';
|
|
27
|
+
export type * from './sdk-event-payment-terms';
|
|
28
|
+
export type * from './siteInfrastructure';
|
|
29
|
+
export type * from './siteGeneration';
|
|
30
|
+
export type * from './siteManagementEndpoints';
|
|
31
|
+
export type * from './siteOnboarding';
|
|
32
|
+
export type * from './siteOperations';
|
|
33
|
+
export type * from './siteAssets';
|
|
34
|
+
export type * from './sitePlatformEndpoints';
|
|
35
|
+
export type * from './siteRuntimeEndpoints';
|
|
36
|
+
export { FLEXIBLE_BALANCE_ADMIN_ACTION_SOURCES } from './siteOperations';
|
|
37
|
+
export type { AppointmentBlackout, AvailabilityScheduleSettings, CreateBlackoutResponse, CreateBlackoutRequest, DeleteBlackoutResponse, GetAvailableSlotsQuery, GetAvailableSlotsResponse, ListAvailabilityRulesResponse, ListBlackoutsResponse, SetWeeklyAvailabilityIssue, SetWeeklyAvailabilityRequest, SetWeeklyAvailabilityResponse, TimeSlot, ServiceSpecificAvailabilityScheduleSettings, WeeklyAvailabilityWindowInput, } from './availability';
|
|
38
|
+
export type { CalendarConnectionStatus, CalendarInfo, CalendarPreferences, CalendarStatusResponse, DisconnectCalendarResponse, UpdateCalendarPreferencesRequest, UpdateCalendarPreferencesResponse, } from './calendar';
|
|
39
|
+
export type { AppointmentRecord, AppointmentStatus, BookingQuestionFormSummary, BookingQuestionRequirementScope, BookingQuestionsRequirementConfig, BookingCustomerRecord, BookingRequirementConfigRequest, BookingRequirementConfigResponse, BookingRequirementTargetType, BookingRequirementValidityPolicy, ConsentRequirementConfig, CreateAppointmentRequest, CreateAppointmentResponse, } from './bookings';
|
|
40
|
+
export { APPOINTMENT_STATUS_VALUES } from './bookings';
|
|
41
|
+
export type { AiPatchApplyResponse, AiPatchBlockSetOp, AiPatchDryRunResponse, AiPatchOp, AiPatchPageMetaOp, AiPatchRequest, } from './aiPatch';
|
|
42
|
+
export type { AffectedOccurrence, AiDesignerThemePatchOp, AllowedField, ApplyAiDesignerPageOpsRequest, ApplyAiDesignerPageOpsResponse, ApplyAiDesignerThemePatchRequest, ApplyAiDesignerThemePatchResponse, AiPlaygroundApplyRequest, AiPlaygroundApplyResponse, BlockContext, DebugArtifact, DebugArtifacts, ModifiedOccurrence, MultiPagePatchEnvelope, MultiPageUpdateResponse, PageBlock, PageContext, PageConversionAttempt, PageConversionFailure, PageConversionResult, PageConversionSuccess, PageConvertJob, PageConvertJobEvent, PageConvertJobEventsResponse, PageConvertJobEventType, PageConvertJobGetResponse, PageConvertJobRunResponse, PageConvertJobsCreateRequest, PageConvertJobsCreateResponse, PageConvertJobsListResponse, PageConvertJobStatus, PageConverterOutput, PageConvertResponse, PlaygroundProposeRequest, RegenerationSummary, Rfc6902PatchOp, SchedulePreviewRequest, SchedulePreviewResponse, StreamEvent, } from './aiPlayground';
|
|
43
|
+
export type { ApplySeoChangesRequest, ApplySeoChangesResponse, PerformanceOverviewQuery, PerformanceOverviewResponse, PerformanceRangePreset, SeoOverviewQuery, SeoOverviewResponse, SeoOverviewTimePoint, SeoRangePreset, SeoSearchPagesQuery, SeoSearchPagesResponse, SeoSearchQueriesQuery, SeoSearchQueriesResponse, SeoSearchSummary, } from './seo';
|
|
44
|
+
export type { CheckRedirectQuery, CheckRedirectResponse, CreateRedirectRuleRequest, CreateRedirectRuleResponse, DeleteRedirectRuleResponse, ListRedirectRulesResponse, RedirectRuleRecord, } from './redirects';
|
|
45
|
+
export type { ApplyContentTemplateAddonRequest, ContentTemplateAddonSummary, ContentAddonDefinition, ContentTemplateBlockSummary, ContentTemplateDetailsResponse, ContentTemplateSummary, ContentTypeTemplateSummary, ContentTypeRoutingInfo, ContentTypeRoutingSubroute, ContentTypeRecord, CreateTemplateBlockRequest, ContentTypeSummary, CreateContentTypeRequest, CreateContentTypeResponse, DeleteContentTypeResponse, DuplicateContentTypeResponse, GetTransformsResponse, ListContentTypesResponse, PublicContentTypeFieldMeta, PublicContentTypeMeta, ReorderTemplateBlocksRequest, SerializedContentTypeSummary, TransformMetadata, UpdateContentTemplateBlockBindingsRequest, UpdateContentTemplateBlockRequest, UpdateContentTypeRequest, UpdateContentTypeResponse, } from './contentTypes';
|
|
46
|
+
export type { CartLinkLabelConfig, CartLinkPayload, EntryLinkPayload, EntryRoutableContentItem, InternalLinkRoutablePayload, LinkPayload, NavigationLinkInput, PageLinkPayload, PageRoutableContentItem, PageSurfaceRoutableContentItem, PortalLinkPayload, RoutableContentItem, SitemapRouteItem, } from './navigation/types';
|
|
47
|
+
export type { SiteBannerAnnouncementRole, SiteBannerCta, SiteBannerScope, SiteBannerSettingsPayload, SiteBannerSettingsResponse, SiteBannerTone, } from './siteBanner';
|
|
48
|
+
export type { SitePageBlock, SitePagePayload } from './sitePages';
|
|
49
|
+
export type { SiteAnalyticsCookieBannerCopyOverrides, SiteAnalyticsSettingsPayload, SiteAnalyticsSettingsResponse, } from './siteAnalytics';
|
|
50
|
+
export type { SiteLegalJurisdiction, SiteLegalProfilePayload, SensitiveClientRecordsConfirmationKey, SensitiveClientRecordsMode, SensitiveClientRecordsRetentionProfile, SensitiveClientRecordsSettings, SensitiveClientRecordsUpdatePayload, SitePrivacyPolicyCapabilities, SitePrivacyPolicyDocument, SitePrivacySettings, SitePrivacySettingsPayload, SitePrivacySettingsResponse, SiteRuntimePrivacyPolicy, SitePrivacyPolicySection, } from './privacyPolicy';
|
|
51
|
+
export type { MaintenanceSettingsPayload, MaintenanceSettingsResponse, SiteBusinessAddressPayload, SiteBusinessAddressResponse, SiteDeploymentMode, SiteFooterBlocksEditorBlock, SiteFooterBlocksEditorResponse, SiteGeneralSettingsPayload, SiteGeneralSettingsResponse, SiteLayoutResolvedPayload, SiteLayoutSettingsPayload, SiteLayoutSettingsResponse, SiteRuntimeBusinessDetails, SiteRuntimeBookingAttribution, UpdateSiteDeploymentModePayload, UpdateSiteDeploymentModeResponse, UpdateSiteFooterBlocksPayload, UpdateSiteFooterBlocksResponse, } from './siteSettings';
|
|
52
|
+
export type { BillingCheckoutRequest, BillingCheckoutResponse, BillingStatusResponse, BillingSummaryComponent, BillingSummaryComponentKind, BillingSummaryComponentSource, BillingSummaryBasePlanComponent, BillingSummarySiteComponent, BillingSummaryAddOnComponent, BillingSummaryResponse, SiteBillingCheckoutResponse, SiteBillingCostResponse, StripeAutomaticTaxIssue, StripeAutomaticTaxReadiness, StripeAutomaticTaxStatus, StripeConnectDisconnectResponse, StripeConnectRestrictions, StripeConnectStartResponse, StripeConnectStatusResponse, UpdateStripeAutomaticTaxRequest, } from './billing';
|
|
53
|
+
export type { AiGenerateSiteEntityType, AiGenerateSitePrimaryCta, AiGenerateSiteRequest, AiGenerateSiteResponse, } from './siteGeneration';
|
|
54
|
+
export { SITE_ROLE_DISPLAY_ORDER, SITE_ROLE_PERMISSION_LEVEL, } from './siteMembers';
|
|
55
|
+
export type { SiteRole } from './siteMembers';
|
|
56
|
+
import type { HTTPMethod, ApiResponseKind, ApiAuthRequirement } from './common/types';
|
|
57
57
|
export type { HTTPMethod, ApiResponseKind, ApiAuthRequirement };
|
|
58
|
-
export type { AdminProfileRole, AdminRoleMutationResponse, RevokeAdminRoleRequest, StartImpersonationRequest, StartImpersonationResponse, StopImpersonationRequest, StopImpersonationResponse, UpsertAdminRoleRequest, } from
|
|
58
|
+
export type { AdminProfileRole, AdminRoleMutationResponse, RevokeAdminRoleRequest, StartImpersonationRequest, StartImpersonationResponse, StopImpersonationRequest, StopImpersonationResponse, UpsertAdminRoleRequest, } from './admin/types';
|
|
59
59
|
import type { AccountAPIEndpoints } from './accountEndpoints';
|
|
60
60
|
export type * from './accountEndpoints';
|
|
61
|
-
import type { AiAndLaunchReadinessAPIEndpointDefinitions, AiAPIEndpointName, AiAPIEndpoints, LaunchReadinessAPIEndpointName, LaunchReadinessAPIEndpoints } from
|
|
62
|
-
import type { BookingManagementAPIEndpoints } from
|
|
63
|
-
import type { CommercePortalAPIEndpoints } from
|
|
64
|
-
import type { MailchimpIntegrationAPIEndpoints } from
|
|
65
|
-
import type { MailingListIntegrationAPIEndpoints } from
|
|
66
|
-
import type { PublicExperienceAPIEndpoints } from
|
|
67
|
-
import type { SeoEndpointDefinitions } from
|
|
68
|
-
import type { SiteManagementAPIEndpoints } from
|
|
69
|
-
import type { SitePlatformAPIEndpoints } from
|
|
70
|
-
import type { SiteRuntimeAPIEndpoints } from
|
|
71
|
-
type TableName = keyof DbDatabase[
|
|
61
|
+
import type { AiAndLaunchReadinessAPIEndpointDefinitions, AiAPIEndpointName, AiAPIEndpoints, LaunchReadinessAPIEndpointName, LaunchReadinessAPIEndpoints } from './aiEndpoints';
|
|
62
|
+
import type { BookingManagementAPIEndpoints } from './bookingManagementEndpoints';
|
|
63
|
+
import type { CommercePortalAPIEndpoints } from './commercePortalEndpoints';
|
|
64
|
+
import type { MailchimpIntegrationAPIEndpoints } from './mailchimpIntegration';
|
|
65
|
+
import type { MailingListIntegrationAPIEndpoints } from './mailingListIntegration';
|
|
66
|
+
import type { PublicExperienceAPIEndpoints } from './publicExperienceEndpoints';
|
|
67
|
+
import type { SeoEndpointDefinitions } from './seoEndpoints';
|
|
68
|
+
import type { SiteManagementAPIEndpoints } from './siteManagementEndpoints';
|
|
69
|
+
import type { SitePlatformAPIEndpoints } from './sitePlatformEndpoints';
|
|
70
|
+
import type { SiteRuntimeAPIEndpoints } from './siteRuntimeEndpoints';
|
|
71
|
+
type TableName = keyof DbDatabase['public']['Tables'];
|
|
72
72
|
export type DTOType<K extends TableName> = Partial<CamelizeKeys<DbRow<K>>>;
|
|
73
73
|
type APIEndpointsMonolith = AiAndLaunchReadinessAPIEndpointDefinitions & AccountAPIEndpoints & SeoEndpointDefinitions & SiteManagementAPIEndpoints & PublicExperienceAPIEndpoints & SiteRuntimeAPIEndpoints & SitePlatformAPIEndpoints & BookingManagementAPIEndpoints & CommercePortalAPIEndpoints & MailchimpIntegrationAPIEndpoints & MailingListIntegrationAPIEndpoints;
|
|
74
74
|
type ComposeEndpointMaps<Maps extends readonly object[], Acc extends object = {}> = Maps extends readonly [
|
|
75
75
|
infer Head extends object,
|
|
76
76
|
...infer Tail extends readonly object[]
|
|
77
77
|
] ? [Extract<keyof Acc, keyof Head>] extends [never] ? ComposeEndpointMaps<Tail, Acc & Head> : never : Acc;
|
|
78
|
-
type SiteMembersAPIEndpointName =
|
|
79
|
-
type SeoAPIEndpointName =
|
|
80
|
-
type RedirectsAPIEndpointName =
|
|
81
|
-
type AvailabilityAPIEndpointName =
|
|
82
|
-
type CalendarAPIEndpointName =
|
|
83
|
-
type ContentTypesAPIEndpointName =
|
|
84
|
-
type MediaAPIEndpointName =
|
|
85
|
-
type ComposedDomainEndpointNames =
|
|
78
|
+
type SiteMembersAPIEndpointName = 'listSiteMembers' | 'inviteSiteMember' | 'updateSiteMemberRole' | 'linkCurrentUserPractitioner' | 'unlinkCurrentUserPractitioner' | 'removeSiteMember' | 'revokeSiteInvitation' | 'resendSiteInvitation' | 'transferSiteOwnership' | 'acceptSiteInvitation';
|
|
79
|
+
type SeoAPIEndpointName = 'getSeoOverview' | 'getSeoPages' | 'exportSeoPagesCsv' | 'getSeoQueries' | 'exportSeoQueriesCsv' | 'getPerformanceOverview' | 'applySeoChanges';
|
|
80
|
+
type RedirectsAPIEndpointName = 'checkRedirect' | 'listRedirectRules' | 'createRedirectRule' | 'deleteRedirectRule';
|
|
81
|
+
type AvailabilityAPIEndpointName = 'listAvailabilityRules' | 'setWeeklyAvailability' | 'setServiceSpecificAvailability' | 'deleteServiceSpecificAvailability' | 'listBlackouts' | 'createBlackout' | 'deleteBlackout' | 'getAvailableSlots';
|
|
82
|
+
type CalendarAPIEndpointName = 'getCalendarStatus' | 'updateCalendarPreferences' | 'disconnectCalendar';
|
|
83
|
+
type ContentTypesAPIEndpointName = 'listContentTypes' | 'createContentType' | 'updateContentType' | 'deleteContentType' | 'duplicateContentType';
|
|
84
|
+
type MediaAPIEndpointName = 'createMediaAsset' | 'mediaList' | 'mediaProductFileList' | 'mediaGet' | 'mediaUpdate' | 'mediaCanonicalCrop' | 'mediaDelete' | 'mediaBulkDelete' | 'mediaUsageCheck' | 'mediaGetSignedUrl' | 'createMediaUploadUrl' | 'mediaUpload' | 'getMediaLabels' | 'getMediaSettings' | 'updateMediaSettings' | 'mediaSearch' | 'classifyMediaAsset' | 'classifyMediaBatch' | 'enqueueMediaClassifyJob' | 'runMediaClassifyJob' | 'runAllMediaClassifyJobs' | 'mediaJobsStatus';
|
|
85
|
+
type ComposedDomainEndpointNames = 'accountGetIdentity' | 'accountListSites' | 'accountCreateSite' | 'accountProvisionProjectCredentials' | AiAPIEndpointName | LaunchReadinessAPIEndpointName | SiteMembersAPIEndpointName | SeoAPIEndpointName | RedirectsAPIEndpointName | AvailabilityAPIEndpointName | CalendarAPIEndpointName | ContentTypesAPIEndpointName | MediaAPIEndpointName | 'listMailchimpAudiences';
|
|
86
86
|
export type SiteMembersAPIEndpoints = Pick<APIEndpointsMonolith, SiteMembersAPIEndpointName>;
|
|
87
87
|
export type SeoAPIEndpoints = Pick<APIEndpointsMonolith, SeoAPIEndpointName>;
|
|
88
88
|
export type RedirectsAPIEndpoints = Pick<APIEndpointsMonolith, RedirectsAPIEndpointName>;
|
|
@@ -103,8 +103,8 @@ type DomainAPIEndpointMaps = [
|
|
|
103
103
|
CalendarAPIEndpoints,
|
|
104
104
|
ContentTypesAPIEndpoints,
|
|
105
105
|
MediaAPIEndpoints,
|
|
106
|
-
Pick<APIEndpointsMonolith,
|
|
106
|
+
Pick<APIEndpointsMonolith, 'listMailchimpAudiences'>
|
|
107
107
|
];
|
|
108
108
|
type ComposedAPIEndpointMaps = [...DomainAPIEndpointMaps, RemainingAPIEndpoints];
|
|
109
109
|
export type APIEndpoints = ComposeEndpointMaps<ComposedAPIEndpointMaps>;
|
|
110
|
-
export type * from
|
|
110
|
+
export type * from './apiCallParams';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EventLifecycleStatus } from './eventManagementContracts';
|
|
2
2
|
export type { WholeSeriesRunCancellationSettlement } from './eventManagementContracts';
|
|
3
3
|
/**
|
|
4
4
|
* Whole-series Event contracts
|
|
@@ -9,43 +9,8 @@ export type { WholeSeriesRunCancellationSettlement } from './eventManagementCont
|
|
|
9
9
|
* Note: Do NOT use these API types as validation schemas. They document wire
|
|
10
10
|
* contracts while the owning services validate and normalize inputs.
|
|
11
11
|
*/
|
|
12
|
-
export type WholeSeriesRunStatus =
|
|
12
|
+
export type WholeSeriesRunStatus = EventLifecycleStatus;
|
|
13
13
|
export type WholeSeriesRunMutableStatus = Exclude<WholeSeriesRunStatus, 'completed'>;
|
|
14
|
-
export type WholeSeriesRunSeriesRecord = {
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
/** Denormalized presentation projection from the linked content entry (e.g. summary). */
|
|
19
|
-
presentationJson: unknown;
|
|
20
|
-
venueId: string | null;
|
|
21
|
-
capacity: number | null;
|
|
22
|
-
eventCategoryId: string | null;
|
|
23
|
-
staffMemberIds?: string[];
|
|
24
|
-
mainHostStaffMemberId?: string | null;
|
|
25
|
-
status: string;
|
|
26
|
-
};
|
|
27
|
-
export type WholeSeriesRunRecord = {
|
|
28
|
-
id: string;
|
|
29
|
-
siteId: string;
|
|
30
|
-
seriesId: string;
|
|
31
|
-
eventOfferingId: string;
|
|
32
|
-
enrollmentCapacity: number | null;
|
|
33
|
-
acceptsMemberships: boolean;
|
|
34
|
-
waitlistMode: WaitlistOverride;
|
|
35
|
-
bookingOffer: BookingPricing;
|
|
36
|
-
status: WholeSeriesRunStatus;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
series: WholeSeriesRunSeriesRecord;
|
|
40
|
-
sessionsCount: number;
|
|
41
|
-
/** Total registrations for this run (all statuses, including cancelled/waitlist). */
|
|
42
|
-
enrollmentsCount: number;
|
|
43
|
-
/** Seat-holding enrollments (enrolled, pending_payment, completed). */
|
|
44
|
-
enrolledCount: number;
|
|
45
|
-
};
|
|
46
|
-
export type UpdateWholeSeriesRunResponse = {
|
|
47
|
-
run: WholeSeriesRunRecord;
|
|
48
|
-
};
|
|
49
14
|
export type DeleteWholeSeriesRunResponse = {
|
|
50
15
|
message: string;
|
|
51
16
|
};
|
|
@@ -3,6 +3,7 @@ import { type SubscriptionRepository, type SubscriptionRecord } from '../subscri
|
|
|
3
3
|
import { type PlanStanding } from '../plans/standing';
|
|
4
4
|
export interface MembershipState {
|
|
5
5
|
userId: string;
|
|
6
|
+
planStanding: 'paid' | 'payment_recovery' | 'free';
|
|
6
7
|
planId: BillingPlanId;
|
|
7
8
|
interval: BillingInterval;
|
|
8
9
|
status: SubscriptionRecord['status'];
|
|
@@ -13,6 +14,8 @@ export interface MembershipState {
|
|
|
13
14
|
}
|
|
14
15
|
export interface MembershipSummary {
|
|
15
16
|
userId: string;
|
|
17
|
+
/** Canonical effective standing; consumers must not reconstruct it from provider status. */
|
|
18
|
+
planStanding: 'paid' | 'payment_recovery' | 'free';
|
|
16
19
|
/** Effective entitlement plan. Provider subscription identity remains in the repository. */
|
|
17
20
|
planId: BillingPlanId;
|
|
18
21
|
interval: BillingInterval;
|
|
@@ -38,6 +38,8 @@ export declare const BRANDING_TIERS: readonly ["macadamia_visible", "light_custo
|
|
|
38
38
|
export type BrandingTier = (typeof BRANDING_TIERS)[number];
|
|
39
39
|
export declare const TEAM_TIERS: readonly ["owner_only", "multi_practitioner"];
|
|
40
40
|
export type TeamTier = (typeof TEAM_TIERS)[number];
|
|
41
|
+
export declare const WEBSITE_TIERS: readonly ["hosted_booking", "full"];
|
|
42
|
+
export type WebsiteTier = (typeof WEBSITE_TIERS)[number];
|
|
41
43
|
export declare const WEBSITE_COLLABORATOR_ROLES: readonly ["editor", "administrator"];
|
|
42
44
|
export type WebsiteCollaboratorRole = (typeof WEBSITE_COLLABORATOR_ROLES)[number];
|
|
43
45
|
export declare const WEBSITE_COLLABORATION_VISITOR_ROLES: readonly ["owner", "administrator", "editor", "team_member"];
|
|
@@ -97,6 +99,7 @@ export interface PlanEntitlements {
|
|
|
97
99
|
newsletter: NewsletterTier;
|
|
98
100
|
branding: BrandingTier;
|
|
99
101
|
team: TeamTier;
|
|
102
|
+
website: WebsiteTier;
|
|
100
103
|
}
|
|
101
104
|
export interface PlanDefinition {
|
|
102
105
|
id: BillingPlanId;
|
|
@@ -58,8 +58,8 @@ export type SiteBillingSubscriptionSnapshot = Readonly<{
|
|
|
58
58
|
origin: BillingSubscriptionOrigin | null;
|
|
59
59
|
status: string;
|
|
60
60
|
}> | null;
|
|
61
|
-
export type SiteBillingManualReviewReason = 'ambiguous_subscription_origin' | 'active_site_linked_add_on' | 'admin_requested_manual_review' | 'missing_admin_subscription_choice' | 'subscription_action_failed';
|
|
62
|
-
export declare const SITE_BILLING_MANUAL_REVIEW_REASONS: readonly ["ambiguous_subscription_origin", "active_site_linked_add_on", "admin_requested_manual_review", "missing_admin_subscription_choice", "subscription_action_failed"];
|
|
61
|
+
export type SiteBillingManualReviewReason = 'ambiguous_subscription_origin' | 'active_site_linked_add_on' | 'admin_requested_manual_review' | 'missing_admin_subscription_choice' | 'practitioner_limit_exceeded' | 'live_site_allowance_exceeded' | 'subscription_action_failed' | 'multiple_platform_subscriptions' | 'commission_reconciliation_exhausted';
|
|
62
|
+
export declare const SITE_BILLING_MANUAL_REVIEW_REASONS: readonly ["ambiguous_subscription_origin", "active_site_linked_add_on", "admin_requested_manual_review", "missing_admin_subscription_choice", "practitioner_limit_exceeded", "live_site_allowance_exceeded", "subscription_action_failed", "multiple_platform_subscriptions", "commission_reconciliation_exhausted"];
|
|
63
63
|
export type SiteBillingManualReviewStatus = 'open' | 'resolved';
|
|
64
64
|
export declare const SITE_BILLING_MANUAL_REVIEW_STATUSES: readonly ["open", "resolved"];
|
|
65
65
|
export type SiteBillingManualReviewResolutionAction = 'external_action_completed' | 'no_action_needed' | 'duplicate' | 'superseded_by_arrangement_change' | 'accepted_risk';
|
|
@@ -78,6 +78,17 @@ export type SiteBillingManualReviewDetailsByReason = Readonly<{
|
|
|
78
78
|
missing_admin_subscription_choice: Readonly<{
|
|
79
79
|
subscriptionId: string | null;
|
|
80
80
|
}>;
|
|
81
|
+
practitioner_limit_exceeded: Readonly<{
|
|
82
|
+
previousPlanId: string;
|
|
83
|
+
resultingPlanId: string;
|
|
84
|
+
practitionerCount: number;
|
|
85
|
+
}>;
|
|
86
|
+
live_site_allowance_exceeded: Readonly<{
|
|
87
|
+
previousPlanId: string;
|
|
88
|
+
resultingPlanId: string;
|
|
89
|
+
liveSiteCount: number;
|
|
90
|
+
includedLiveSiteCount: number;
|
|
91
|
+
}>;
|
|
81
92
|
subscription_action_failed: Readonly<{
|
|
82
93
|
action: SiteBillingManualReviewFailureAction;
|
|
83
94
|
error: string;
|
|
@@ -85,6 +96,15 @@ export type SiteBillingManualReviewDetailsByReason = Readonly<{
|
|
|
85
96
|
externalActionCompleted?: boolean;
|
|
86
97
|
transitionAttemptId?: string | null;
|
|
87
98
|
}>;
|
|
99
|
+
multiple_platform_subscriptions: Readonly<{
|
|
100
|
+
subscriptionIds: readonly string[];
|
|
101
|
+
}>;
|
|
102
|
+
commission_reconciliation_exhausted: Readonly<{
|
|
103
|
+
targetKind: 'customer_membership' | 'order_payment_plan';
|
|
104
|
+
targetId: string;
|
|
105
|
+
attempts: number;
|
|
106
|
+
error: string;
|
|
107
|
+
}>;
|
|
88
108
|
}>;
|
|
89
109
|
export type SiteBillingManualReviewPayload = {
|
|
90
110
|
[TReason in SiteBillingManualReviewReason]: Readonly<{
|
|
@@ -92,7 +112,7 @@ export type SiteBillingManualReviewPayload = {
|
|
|
92
112
|
details: SiteBillingManualReviewDetailsByReason[TReason];
|
|
93
113
|
}>;
|
|
94
114
|
}[SiteBillingManualReviewReason];
|
|
95
|
-
export type SiteBillingArrangementPlanManualReviewReason = Exclude<SiteBillingManualReviewReason, 'subscription_action_failed'>;
|
|
115
|
+
export type SiteBillingArrangementPlanManualReviewReason = Exclude<SiteBillingManualReviewReason, 'subscription_action_failed' | 'practitioner_limit_exceeded' | 'live_site_allowance_exceeded' | 'multiple_platform_subscriptions' | 'commission_reconciliation_exhausted'>;
|
|
96
116
|
export type SiteBillingArrangementSubscriptionAction = 'not_applicable' | 'sync_attempted' | 'cancelled_immediately' | 'scheduled_cancel_at_period_end' | 'manual_review_required' | 'failed';
|
|
97
117
|
export declare const SITE_BILLING_ARRANGEMENT_SUBSCRIPTION_ACTIONS: readonly ["not_applicable", "sync_attempted", "cancelled_immediately", "scheduled_cancel_at_period_end", "manual_review_required", "failed"];
|
|
98
118
|
export declare const SITE_BILLING_ARRANGEMENT_CHANGE_ORIGINS: readonly ["native_arrangement_change", "imported_legacy_cost_history"];
|
|
@@ -188,7 +188,9 @@ export declare const proofBlockIslandCodecs: {
|
|
|
188
188
|
mode: "event-registration";
|
|
189
189
|
} & Readonly<{
|
|
190
190
|
display: EventRegistrationDisplay;
|
|
191
|
-
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
191
|
+
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "events" | "buttonText"> & {
|
|
192
|
+
eventSource: import("../system/runtime/nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
193
|
+
}>;
|
|
192
194
|
}>>;
|
|
193
195
|
}>) => unknown;
|
|
194
196
|
decode: (input: unknown) => import("./runtime").DecodeResult<Readonly<Readonly<{
|
|
@@ -203,7 +205,9 @@ export declare const proofBlockIslandCodecs: {
|
|
|
203
205
|
mode: "event-registration";
|
|
204
206
|
} & Readonly<{
|
|
205
207
|
display: EventRegistrationDisplay;
|
|
206
|
-
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
208
|
+
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "events" | "buttonText"> & {
|
|
209
|
+
eventSource: import("../system/runtime/nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
210
|
+
}>;
|
|
207
211
|
}>>;
|
|
208
212
|
}>>;
|
|
209
213
|
}>;
|
|
@@ -294,6 +298,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
294
298
|
eventSurface: import("..").EventSurfaceScope;
|
|
295
299
|
filterEventPresets: string | null;
|
|
296
300
|
scheduleScope: import("..").EventScheduleScope;
|
|
301
|
+
seriesIds?: string | null;
|
|
297
302
|
filterCategoryIds?: string | null;
|
|
298
303
|
filterStaffMemberId?: string | null;
|
|
299
304
|
filterVenueId?: string | null;
|
|
@@ -339,6 +344,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
339
344
|
eventSurface: import("..").EventSurfaceScope;
|
|
340
345
|
filterEventPresets: string | null;
|
|
341
346
|
scheduleScope: import("..").EventScheduleScope;
|
|
347
|
+
seriesIds?: string | null;
|
|
342
348
|
filterCategoryIds?: string | null;
|
|
343
349
|
filterStaffMemberId?: string | null;
|
|
344
350
|
filterVenueId?: string | null;
|
|
@@ -421,6 +427,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
421
427
|
availability: "ready" | "unavailable";
|
|
422
428
|
className: string | null;
|
|
423
429
|
buttonLabel: string;
|
|
430
|
+
successMessage: string;
|
|
424
431
|
buttonVariant: import("../system/runtime/nodes/newsletter-form.types").NewsletterButtonVariant;
|
|
425
432
|
privacyNote: string | null;
|
|
426
433
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
@@ -451,6 +458,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
451
458
|
availability: "ready" | "unavailable";
|
|
452
459
|
className: string | null;
|
|
453
460
|
buttonLabel: string;
|
|
461
|
+
successMessage: string;
|
|
454
462
|
buttonVariant: import("../system/runtime/nodes/newsletter-form.types").NewsletterButtonVariant;
|
|
455
463
|
privacyNote: string | null;
|
|
456
464
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
@@ -1118,7 +1126,9 @@ export declare const runtimeIslandCodecs: {
|
|
|
1118
1126
|
mode: "event-registration";
|
|
1119
1127
|
} & Readonly<{
|
|
1120
1128
|
display: EventRegistrationDisplay;
|
|
1121
|
-
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
1129
|
+
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "events" | "buttonText"> & {
|
|
1130
|
+
eventSource: import("../system/runtime/nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1131
|
+
}>;
|
|
1122
1132
|
}>>;
|
|
1123
1133
|
}>) => unknown;
|
|
1124
1134
|
decode: (input: unknown) => import("./runtime").DecodeResult<Readonly<Readonly<{
|
|
@@ -1133,7 +1143,9 @@ export declare const runtimeIslandCodecs: {
|
|
|
1133
1143
|
mode: "event-registration";
|
|
1134
1144
|
} & Readonly<{
|
|
1135
1145
|
display: EventRegistrationDisplay;
|
|
1136
|
-
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText"
|
|
1146
|
+
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "events" | "buttonText"> & {
|
|
1147
|
+
eventSource: import("../system/runtime/nodes/event-registration/eventSourceRecovery").EventRegistrationEventSource;
|
|
1148
|
+
}>;
|
|
1137
1149
|
}>>;
|
|
1138
1150
|
}>>;
|
|
1139
1151
|
}>;
|
|
@@ -1224,6 +1236,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1224
1236
|
eventSurface: import("..").EventSurfaceScope;
|
|
1225
1237
|
filterEventPresets: string | null;
|
|
1226
1238
|
scheduleScope: import("..").EventScheduleScope;
|
|
1239
|
+
seriesIds?: string | null;
|
|
1227
1240
|
filterCategoryIds?: string | null;
|
|
1228
1241
|
filterStaffMemberId?: string | null;
|
|
1229
1242
|
filterVenueId?: string | null;
|
|
@@ -1269,6 +1282,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1269
1282
|
eventSurface: import("..").EventSurfaceScope;
|
|
1270
1283
|
filterEventPresets: string | null;
|
|
1271
1284
|
scheduleScope: import("..").EventScheduleScope;
|
|
1285
|
+
seriesIds?: string | null;
|
|
1272
1286
|
filterCategoryIds?: string | null;
|
|
1273
1287
|
filterStaffMemberId?: string | null;
|
|
1274
1288
|
filterVenueId?: string | null;
|
|
@@ -1351,6 +1365,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1351
1365
|
availability: "ready" | "unavailable";
|
|
1352
1366
|
className: string | null;
|
|
1353
1367
|
buttonLabel: string;
|
|
1368
|
+
successMessage: string;
|
|
1354
1369
|
buttonVariant: import("../system/runtime/nodes/newsletter-form.types").NewsletterButtonVariant;
|
|
1355
1370
|
privacyNote: string | null;
|
|
1356
1371
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
@@ -1381,6 +1396,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1381
1396
|
availability: "ready" | "unavailable";
|
|
1382
1397
|
className: string | null;
|
|
1383
1398
|
buttonLabel: string;
|
|
1399
|
+
successMessage: string;
|
|
1384
1400
|
buttonVariant: import("../system/runtime/nodes/newsletter-form.types").NewsletterButtonVariant;
|
|
1385
1401
|
privacyNote: string | null;
|
|
1386
1402
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
@@ -11,6 +11,7 @@ export type RenderablePageBlock = Readonly<{
|
|
|
11
11
|
kind: Block['kind'];
|
|
12
12
|
purpose: Block['purpose'];
|
|
13
13
|
bindings?: Block['bindings'];
|
|
14
|
+
contentVersionId?: string | null;
|
|
14
15
|
admission: Readonly<{
|
|
15
16
|
kind: 'renderable';
|
|
16
17
|
content: RenderableManifestContent;
|
|
@@ -32,6 +33,7 @@ export type PresentationAdmission = Readonly<{
|
|
|
32
33
|
}>;
|
|
33
34
|
export type PresentationBlock = Block & Readonly<{
|
|
34
35
|
presentationAdmission: PresentationAdmission;
|
|
36
|
+
contentVersionId?: string | null;
|
|
35
37
|
}>;
|
|
36
38
|
export type PresentationPageOutline = Omit<PageOutline, 'blocks'> & Readonly<{
|
|
37
39
|
blocks: readonly PresentationBlock[];
|
|
@@ -5,6 +5,7 @@ import type { SdkCustomBlock } from './system/manifest/schema';
|
|
|
5
5
|
import type { MediaAssetIndexItem, ResolveImageUrlContext, ResolveImageUrlContextInput } from './system/runtime/nodes/media';
|
|
6
6
|
import type { RouteMap } from './system/transforms';
|
|
7
7
|
import type { BookingOfferingPresetSummary } from './system/blocks/offerings-preview/model';
|
|
8
|
+
import type { BlockLoaderFailures } from './system/data/types';
|
|
8
9
|
/**
|
|
9
10
|
* Occurrence context for event pages.
|
|
10
11
|
* Passed through to blocks that need occurrence information (e.g., event-registration).
|
|
@@ -71,6 +72,8 @@ export type BlockOverrideProps<TContent = Record<string, unknown>> = {
|
|
|
71
72
|
imageResolveContext?: ResolveImageUrlContext;
|
|
72
73
|
/** Block instance ID (null for unsaved blocks) */
|
|
73
74
|
blockId: string | null;
|
|
75
|
+
/** Exact content snapshot rendered for this block. */
|
|
76
|
+
contentVersionId?: string | null;
|
|
74
77
|
/** Block kind identifier (e.g., "block.hero" or "custom.my-block") */
|
|
75
78
|
blockKind: string;
|
|
76
79
|
};
|
|
@@ -134,6 +137,8 @@ export type PageRendererDataContext = {
|
|
|
134
137
|
/** Canonical request pathname used by blocks when resolving same-site destinations. */
|
|
135
138
|
pathname?: string;
|
|
136
139
|
resolvedData?: Record<string, Record<string, unknown>>;
|
|
140
|
+
/** Failed server loader requests, kept separate from successful data. */
|
|
141
|
+
loaderFailures?: BlockLoaderFailures;
|
|
137
142
|
previewStage?: 'published' | 'preview';
|
|
138
143
|
previewToken?: string | null;
|
|
139
144
|
routes?: RouteMap;
|
|
@@ -151,6 +156,8 @@ export type PageRendererDataContext = {
|
|
|
151
156
|
apiBaseUrl?: string;
|
|
152
157
|
portalToken?: string | null;
|
|
153
158
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[];
|
|
159
|
+
/** Optional canonical service-detail route prefix for catalogue links. */
|
|
160
|
+
appointmentServicePathPrefix?: string;
|
|
154
161
|
mailingList?: import('../../core/src/index').MailingListRuntimeContext;
|
|
155
162
|
bookingTimeZone?: string;
|
|
156
163
|
eventRegistrationOverlayEnabled?: boolean;
|
|
@@ -111,10 +111,8 @@ export interface CustomerEventRegistration {
|
|
|
111
111
|
ticketingEnabled: boolean;
|
|
112
112
|
ticketUrl?: string;
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*/
|
|
117
|
-
export interface EventGuest {
|
|
114
|
+
export type { CustomerPortalWaitlistEntry, CustomerPortalWaitlistSubject } from './waitlist-types';
|
|
115
|
+
/** Guest details for event registration. */ export interface EventGuest {
|
|
118
116
|
id: string;
|
|
119
117
|
name: string;
|
|
120
118
|
phone: string | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type CustomerPortalWaitlistSubject = {
|
|
2
|
+
kind: 'occurrence';
|
|
3
|
+
occurrenceId: string;
|
|
4
|
+
eventSeriesId: string;
|
|
5
|
+
startsAt: string;
|
|
6
|
+
endsAt: string;
|
|
7
|
+
timeZone: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'wholeSeries';
|
|
10
|
+
eventSeriesId: string;
|
|
11
|
+
scheduleSummary: string | null;
|
|
12
|
+
};
|
|
13
|
+
type CustomerPortalWaitlistEntryBase = {
|
|
14
|
+
id: string;
|
|
15
|
+
subject: CustomerPortalWaitlistSubject;
|
|
16
|
+
eventTitle: string;
|
|
17
|
+
eventPath: string | null;
|
|
18
|
+
requestedPlaces: number;
|
|
19
|
+
joinedAt: string;
|
|
20
|
+
};
|
|
21
|
+
export type CustomerPortalWaitlistEntry = (CustomerPortalWaitlistEntryBase & {
|
|
22
|
+
status: 'waiting';
|
|
23
|
+
queuePosition: number | null;
|
|
24
|
+
canLeave: true;
|
|
25
|
+
}) | (CustomerPortalWaitlistEntryBase & {
|
|
26
|
+
status: 'placeAvailable';
|
|
27
|
+
claimExpiresAt: string;
|
|
28
|
+
claimPath: string | null;
|
|
29
|
+
canLeave: true;
|
|
30
|
+
}) | (CustomerPortalWaitlistEntryBase & {
|
|
31
|
+
status: 'offerExpired';
|
|
32
|
+
claimExpiredAt: string;
|
|
33
|
+
canLeave: false;
|
|
34
|
+
});
|
|
35
|
+
export {};
|
|
@@ -57,6 +57,8 @@ export type EventCalendarFilterContent = {
|
|
|
57
57
|
eventSurface?: EventSurfaceScope | null;
|
|
58
58
|
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
59
59
|
scheduleScope?: EventScheduleScope | null;
|
|
60
|
+
eventSelection?: 'matching' | 'selected' | null;
|
|
61
|
+
selectedEventSeriesIds?: readonly string[] | null;
|
|
60
62
|
filterCategoryIds?: readonly EventCategoryId[] | null;
|
|
61
63
|
filterStaffMemberId?: string | null;
|
|
62
64
|
filterVenueId?: VenueId | null;
|