@riverbankcms/sdk 0.136.0 → 0.138.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/CHANGELOG.md +109 -0
- package/README.md +7 -4
- package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-BVPur_CU.mjs} +12 -18
- package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-DLhWX8oh.mjs} +3 -3
- package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-BguJY1SW.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-Tda6qw4z.mjs} +1375 -495
- package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BHFgMjde.mjs} +35665 -33602
- package/dist/_dts/ai/src/contracts/proposals.d.ts +7226 -3057
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1223 -811
- package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
- package/dist/_dts/api/src/accessAdmin.d.ts +16 -18
- package/dist/_dts/api/src/accountApi.d.ts +49 -2
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +83 -0
- package/dist/_dts/api/src/appointmentServiceLocation.d.ts +12 -0
- package/dist/_dts/api/src/appointmentServiceVisibility.d.ts +14 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +35 -87
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -69
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -2
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +2 -2
- package/dist/_dts/api/src/bookingServicePricing.d.ts +47 -0
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/cache-tags.d.ts +7 -2
- package/dist/_dts/api/src/common/index.d.ts +1 -0
- package/dist/_dts/api/src/common/zodFieldErrors.d.ts +34 -0
- package/dist/_dts/api/src/communications.d.ts +14 -8
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -6
- package/dist/_dts/api/src/domainConnection.d.ts +41 -0
- package/dist/_dts/api/src/endpoints.d.ts +1636 -1637
- package/dist/_dts/api/src/eventAttendanceLabels.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +10 -14
- package/dist/_dts/api/src/index.d.ts +11 -9
- 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/media.d.ts +19 -2
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +3 -3
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +62 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +109 -2
- package/dist/_dts/api/src/publicEventCheckoutEndpointDefinitions.d.ts +27 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +30 -148
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +8 -26
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +5 -13
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -3
- package/dist/_dts/api/src/schemas/admin-allowed-domains.d.ts +76 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +61 -0
- package/dist/_dts/api/src/schemas/admin-users.d.ts +80 -0
- package/dist/_dts/api/src/schemas/newsletter-memberships.d.ts +98 -0
- package/dist/_dts/api/src/schemas/sdk-entries.d.ts +128 -0
- package/dist/_dts/api/src/schemas/site-api-keys.d.ts +112 -0
- package/dist/_dts/api/src/schemas/support.d.ts +35 -0
- package/dist/_dts/api/src/sdk-event-booking-offer.d.ts +14 -0
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +4 -16
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -21
- package/dist/_dts/api/src/sdkContracts.d.ts +8 -23
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +37 -0
- package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
- package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +157 -146
- package/dist/_dts/api/src/siteInfrastructure.d.ts +37 -37
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +35 -54
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +38 -16
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/{wholeSeriesOfferings.d.ts → wholeSeriesRuns.d.ts} +11 -67
- package/dist/_dts/block-form/src/FormRenderer.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -0
- package/dist/_dts/block-form/src/context/FormFocusContext.d.ts +7 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +2 -1
- package/dist/_dts/block-form/src/utils/promotedFieldBackend.d.ts +8 -0
- package/dist/_dts/block-form/src/utils/promotedFieldPlan.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +8 -1
- package/dist/_dts/blocks/src/BlockErrorBoundary.d.ts +46 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -141
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -6
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderAudience.d.ts +54 -0
- package/dist/_dts/blocks/src/pageRenderDiagnostics.d.ts +26 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +116 -0
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +109 -0
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +154 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +12 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventCalendarDataLoaders.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +95 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/runGrouping.d.ts +37 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +1046 -773
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +59 -46
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +161 -161
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +13 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +10 -4
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +4 -4
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +5 -9
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +83 -83
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +12 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -8
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -20
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +32 -37
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -18
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +11 -8
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -22
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +14 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +14 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +13 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +25 -23
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +11 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1080 -560
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +11 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
- package/dist/_dts/commerce/src/purchase/eventOrderOptionSnapshot.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +6 -3
- package/dist/_dts/commerce/src/purchase/types.d.ts +3 -2
- package/dist/_dts/commerce/src/waitlists.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +4 -0
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +11 -0
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +13 -5
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +34 -2
- package/dist/_dts/content-editor/src/index.d.ts +2 -1
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -2
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +27 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/templates/defaults.d.ts +11 -0
- package/dist/_dts/core/src/branded.d.ts +28 -9
- package/dist/_dts/core/src/event-booking-offer-parser.d.ts +82 -0
- package/dist/_dts/core/src/event-booking-offer.d.ts +89 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +81 -4
- package/dist/_dts/core/src/event-pricing.d.ts +81 -89
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/non-empty-array.d.ts +3 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +92 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +495 -279
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +4 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +22 -7
- package/dist/_dts/editor-blocks/src/block-editor/useSettingsFieldFocus.d.ts +18 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
- package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
- package/dist/_dts/sdk/src/client/{eventSubrouteReadOperations.d.ts → publicEventReadOperations.d.ts} +4 -3
- package/dist/_dts/sdk/src/client/types.d.ts +6 -10
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +2 -3
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +8 -8
- package/dist/_dts/sdk/src/next/tags.d.ts +5 -8
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -26
- package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +9 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -53
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +22 -22
- package/dist/_dts/theme-core/src/cards/types.d.ts +49 -49
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +26 -3
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +195 -195
- package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +258 -257
- 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/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
- package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
- package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
- package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement-DQUik1Mx.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-CU67Q4vH.mjs} +1 -1
- package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-a02TXUgg.mjs} +233 -348
- package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-99qx7jFl.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-CWzcq73L.mjs} +1 -1
- package/dist/client/{accordion-CK29E8rG.mjs → accordion-D1nb3-Oj.mjs} +1 -1
- package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-BGrmLhaO.mjs} +5 -5
- package/dist/client/bookings.mjs +10555 -10475
- package/dist/client/{carousel-BVU5NQlb.mjs → carousel-DSmOx3ad.mjs} +1 -1
- package/dist/client/{cart-BNItcZVa.mjs → cart-COWeOIUk.mjs} +3 -3
- package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-CeysaIJK.mjs} +3 -3
- package/dist/client/client.mjs +58968 -57441
- package/dist/client/{context-BImarOAq.mjs → context-DBzX85Xc.mjs} +46 -18
- package/dist/client/dates-DCYhZBlW.mjs +264 -0
- package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-BgsN73Ul.mjs} +21 -44
- package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DcZQAMQP.mjs} +3 -3
- package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-BWwGJ54l.mjs} +131 -51
- package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-DqYqV8vp.mjs} +3 -3
- package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-DQGDgu_e.mjs} +1122 -803
- package/dist/client/{form-RMpoLTyr.mjs → form-ClfpasVT.mjs} +2 -2
- package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-BuOMe98N.mjs} +2 -2
- package/dist/client/hooks.mjs +9630 -9526
- package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-CEqu_sfa.mjs} +2 -2
- package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-IbrHjMxy.mjs} +2 -2
- package/dist/client/pricing-xj7MPZlK.mjs +314 -0
- package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-vxqTt5Xj.mjs} +3 -3
- package/dist/client/{productList-D7AP4GNq.mjs → productList-OTdZu8sb.mjs} +3 -3
- package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-CY9gGEF7.mjs} +786 -1194
- package/dist/client/rendering/client.mjs +11481 -10469
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +26871 -25232
- package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock--BFV6kl-.mjs} +1 -1
- package/dist/client/{shop-Cp5p_kGe.mjs → shop-CP4YbDL9.mjs} +6 -6
- package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-APs4XBXE.mjs} +5 -5
- package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-CAVLxLFr.mjs} +1 -1
- package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-BnSRrwXI.mjs} +3 -3
- package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-1a1by4c8.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +186 -148
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +186 -148
- package/dist/preview-next/middleware.mjs +186 -148
- package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-BkEgnYPP.mjs} +186 -148
- package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-DwGfsT0S.mjs} +2 -2
- package/dist/{separator-DaPLtJ1f.mjs → separator-BeqDLneQ.mjs} +1 -1
- package/dist/server/components.mjs +53243 -51879
- package/dist/server/config-validation.mjs +1015 -906
- package/dist/server/config.mjs +1019 -910
- package/dist/server/data.mjs +10304 -10200
- package/dist/server/index.mjs +217 -198
- package/dist/server/next/tags.mjs +18 -4
- package/dist/server/next.mjs +62787 -61617
- package/dist/server/page-converter.mjs +797 -917
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +52557 -51365
- package/dist/server/rendering.mjs +54373 -53054
- package/dist/server/routing.mjs +13274 -13142
- package/dist/server/server.mjs +1076 -1154
- package/dist/server/theme-bridge.mjs +69 -9
- package/dist/server/theme.mjs +27 -8
- package/dist/styles/index.css +32 -1
- package/package.json +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -65
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -20
- package/dist/_dts/api/src/sdk-event-pricing.d.ts +0 -61
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +0 -50
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +0 -135
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +0 -87
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +0 -11
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +0 -2
- /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
|
@@ -3,20 +3,16 @@ import { type Theme } from '../../../theme-core/src/index';
|
|
|
3
3
|
import { type ParsedRfc6902JsonPointerPath } from './rfc6902';
|
|
4
4
|
export declare const DEFAULT_THEME_PATCH_MAX_OPS = 25;
|
|
5
5
|
export declare const DEFAULT_THEME_PATCH_MAX_SERIALIZED_BYTES = 20000;
|
|
6
|
-
export declare const DEFAULT_THEME_PATCH_FORBIDDEN_PATH_PREFIXES: readonly ["/axes", "/palette"];
|
|
6
|
+
export declare const DEFAULT_THEME_PATCH_FORBIDDEN_PATH_PREFIXES: readonly ["/axes", "/palette", "/header", "/footer", "/buttons"];
|
|
7
7
|
export declare const SUPPORTED_THEME_PATCH_OPS: readonly ["add", "replace", "remove"];
|
|
8
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
9
|
-
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
10
|
-
[key: string]: JsonValue;
|
|
11
|
-
};
|
|
12
8
|
export declare const ThemePatchOpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
9
|
op: z.ZodLiteral<"add">;
|
|
14
10
|
path: z.ZodString;
|
|
15
|
-
value: z.
|
|
11
|
+
value: z.ZodJSONSchema;
|
|
16
12
|
}, z.core.$strip>, z.ZodObject<{
|
|
17
13
|
op: z.ZodLiteral<"replace">;
|
|
18
14
|
path: z.ZodString;
|
|
19
|
-
value: z.
|
|
15
|
+
value: z.ZodJSONSchema;
|
|
20
16
|
}, z.core.$strip>, z.ZodObject<{
|
|
21
17
|
op: z.ZodLiteral<"remove">;
|
|
22
18
|
path: z.ZodString;
|
|
@@ -25,11 +21,11 @@ export type ThemePatchOp = z.infer<typeof ThemePatchOpSchema>;
|
|
|
25
21
|
export declare const ThemePatchOpsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
22
|
op: z.ZodLiteral<"add">;
|
|
27
23
|
path: z.ZodString;
|
|
28
|
-
value: z.
|
|
24
|
+
value: z.ZodJSONSchema;
|
|
29
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
30
26
|
op: z.ZodLiteral<"replace">;
|
|
31
27
|
path: z.ZodString;
|
|
32
|
-
value: z.
|
|
28
|
+
value: z.ZodJSONSchema;
|
|
33
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
34
30
|
op: z.ZodLiteral<"remove">;
|
|
35
31
|
path: z.ZodString;
|
|
@@ -57,4 +53,3 @@ export declare function validateThemePatch(args: {
|
|
|
57
53
|
maxSerializedBytes?: number;
|
|
58
54
|
validateRuntime?: boolean;
|
|
59
55
|
}): ThemePatchValidationResult;
|
|
60
|
-
export {};
|
|
@@ -6,6 +6,8 @@ import type { PageRecord } from "./contentRuntime";
|
|
|
6
6
|
import type { SiteDeploymentMode } from "./siteSettings";
|
|
7
7
|
import type { SiteRole } from "./siteMembers";
|
|
8
8
|
import type { SiteAccessSummary, SitePlanSummaryResponse } from "./siteAccessAdmin";
|
|
9
|
+
import type { AdminAddAllowedDomainBodyInput } from "./schemas/admin-allowed-domains";
|
|
10
|
+
import type { AdminCreateUserBodyInput } from "./schemas/admin-users";
|
|
9
11
|
export type { SiteAccessSummary, SitePlanSummaryResponse, } from "./siteAccessAdmin";
|
|
10
12
|
/**
|
|
11
13
|
* Access, Domain, and Admin Contracts
|
|
@@ -137,15 +139,7 @@ export type AddCustomDomainRequest = {
|
|
|
137
139
|
};
|
|
138
140
|
export type AddCustomDomainResponse = {
|
|
139
141
|
domain: SiteDomainRecord;
|
|
140
|
-
|
|
141
|
-
verified: boolean;
|
|
142
|
-
verification?: Array<{
|
|
143
|
-
type: string;
|
|
144
|
-
domain: string;
|
|
145
|
-
value: string;
|
|
146
|
-
reason: string;
|
|
147
|
-
}>;
|
|
148
|
-
};
|
|
142
|
+
connection: import('./domainConnection').CustomDomainConnectionSnapshot;
|
|
149
143
|
};
|
|
150
144
|
export type DomainSearchResultResponse = {
|
|
151
145
|
query: string;
|
|
@@ -541,11 +535,12 @@ export type ListAdminInvitesResponse = {
|
|
|
541
535
|
export type RevokeAdminInviteResponse = {
|
|
542
536
|
invite: AdminInvite;
|
|
543
537
|
};
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
538
|
+
/**
|
|
539
|
+
* Derived from `adminCreateUserBodySchema`, which is the authority for what the
|
|
540
|
+
* endpoint accepts. `sendInvite` defaults, so the wire shape (`z.input`) is the
|
|
541
|
+
* side clients need — the route itself always receives a concrete boolean.
|
|
542
|
+
*/
|
|
543
|
+
export type CreateAdminUserRequest = AdminCreateUserBodyInput;
|
|
549
544
|
export type CreateAdminUserResponse = {
|
|
550
545
|
user: {
|
|
551
546
|
id: string;
|
|
@@ -564,10 +559,13 @@ export type AcceptAdminInviteResponse = {
|
|
|
564
559
|
export type ListAllowedDomainsResponse = {
|
|
565
560
|
domains: AllowedEmailDomain[];
|
|
566
561
|
};
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
562
|
+
/**
|
|
563
|
+
* Derived from `adminAddAllowedDomainBodySchema`, which is the authority for
|
|
564
|
+
* what the endpoint accepts. Nothing on that body defaults, coerces or
|
|
565
|
+
* transforms, so `z.input` and `z.output` agree and this alias is the same shape
|
|
566
|
+
* the type used to spell out by hand.
|
|
567
|
+
*/
|
|
568
|
+
export type CreateAllowedDomainRequest = AdminAddAllowedDomainBodyInput;
|
|
571
569
|
export type CreateAllowedDomainResponse = {
|
|
572
570
|
domain: AllowedEmailDomain;
|
|
573
571
|
};
|
|
@@ -3,6 +3,8 @@ import { type ApiKeyId, type Secret, type SiteId, type UserId } from '../../core
|
|
|
3
3
|
import { ApiEnvelopeError } from './common/envelope';
|
|
4
4
|
import { type ApiClient, type ApiRequestError } from './request';
|
|
5
5
|
import { type AccountCreateSiteRequest, type AccountCreateSiteResponse, type AccountProjectCredentialRecoveryFailureTag, type AccountProvisionProjectCredentialsRequest, type AccountIdentityResponse, type AccountListSitesQuery, type AccountListSitesResponse, type AccountSite } from './accountEndpoints';
|
|
6
|
+
import type { ExportBackupRequest } from './siteAssets';
|
|
7
|
+
import type { BackupPreviewRequest, BackupPreviewResponse, CreateBackupUploadUrlRequest, CreateBackupUploadUrlResponse, DeleteBackupUploadRequest, DeleteBackupUploadResponse, ImportBackupAsNewSiteRequest, ImportBackupAsNewSiteResponse } from './siteInfrastructure';
|
|
6
8
|
declare const identityResponseSchema: z.ZodObject<{
|
|
7
9
|
userId: z.ZodPipe<z.ZodString, z.ZodTransform<UserId, string>>;
|
|
8
10
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -79,6 +81,30 @@ declare const createSiteResponseSchema: z.ZodObject<{
|
|
|
79
81
|
title: z.ZodString;
|
|
80
82
|
slug: z.ZodString;
|
|
81
83
|
}, z.core.$strip>;
|
|
84
|
+
declare const backupUploadResponseSchema: z.ZodType<CreateBackupUploadUrlResponse>;
|
|
85
|
+
declare const backupPreviewResponseSchema: z.ZodType<BackupPreviewResponse>;
|
|
86
|
+
declare const importBackupAsNewSiteResponseSchema: z.ZodObject<{
|
|
87
|
+
ok: z.ZodLiteral<true>;
|
|
88
|
+
siteId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteId, string>>;
|
|
89
|
+
slug: z.ZodString;
|
|
90
|
+
title: z.ZodString;
|
|
91
|
+
counts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
92
|
+
created: z.ZodNumber;
|
|
93
|
+
updated: z.ZodNumber;
|
|
94
|
+
skipped: z.ZodNumber;
|
|
95
|
+
failed: z.ZodNumber;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
98
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
99
|
+
table: z.ZodString;
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
error: z.ZodString;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
export type AccountApiImportedSiteBackup = Omit<ImportBackupAsNewSiteResponse, 'siteId'> & Readonly<{
|
|
105
|
+
siteId: SiteId;
|
|
106
|
+
}>;
|
|
107
|
+
declare const deleteBackupUploadResponseSchema: z.ZodType<DeleteBackupUploadResponse>;
|
|
82
108
|
type AccountApiStandardKeyIds = Readonly<{
|
|
83
109
|
live?: ApiKeyId;
|
|
84
110
|
management?: ApiKeyId;
|
|
@@ -183,7 +209,7 @@ export type AccountApiCreatedSite = Omit<AccountCreateSiteResponse, 'id'> & Read
|
|
|
183
209
|
}>;
|
|
184
210
|
export type AccountApiResponseError = Readonly<{
|
|
185
211
|
tag: 'malformed_success';
|
|
186
|
-
endpoint: 'accountGetIdentity' | 'accountListSites' | 'accountCreateSite' | 'accountProvisionProjectCredentials';
|
|
212
|
+
endpoint: 'accountGetIdentity' | 'accountListSites' | 'accountCreateSite' | 'accountProvisionProjectCredentials' | 'createBackupUploadUrl' | 'deleteBackupUpload' | 'previewBackup' | 'importBackupAsNewSite';
|
|
187
213
|
issues: readonly z.ZodIssue[];
|
|
188
214
|
}>;
|
|
189
215
|
export declare class AccountApiMalformedResponseError extends Error {
|
|
@@ -207,7 +233,28 @@ export type AccountApi = Readonly<{
|
|
|
207
233
|
body: AccountProvisionProjectCredentialsRequest;
|
|
208
234
|
options?: RequestInit;
|
|
209
235
|
}>): Promise<AccountApiProvisionedProjectCredentials>;
|
|
236
|
+
exportSiteBackup(input: Readonly<{
|
|
237
|
+
siteId: SiteId;
|
|
238
|
+
body: ExportBackupRequest;
|
|
239
|
+
options?: RequestInit;
|
|
240
|
+
}>): Promise<Blob>;
|
|
241
|
+
createBackupUploadUrl(input: Readonly<{
|
|
242
|
+
body: CreateBackupUploadUrlRequest;
|
|
243
|
+
options?: RequestInit;
|
|
244
|
+
}>): Promise<CreateBackupUploadUrlResponse>;
|
|
245
|
+
deleteBackupUpload(input: Readonly<{
|
|
246
|
+
body: DeleteBackupUploadRequest;
|
|
247
|
+
options?: RequestInit;
|
|
248
|
+
}>): Promise<DeleteBackupUploadResponse>;
|
|
249
|
+
previewBackup(input: Readonly<{
|
|
250
|
+
body: BackupPreviewRequest;
|
|
251
|
+
options?: RequestInit;
|
|
252
|
+
}>): Promise<BackupPreviewResponse>;
|
|
253
|
+
importBackupAsNewSite(input: Readonly<{
|
|
254
|
+
body: ImportBackupAsNewSiteRequest;
|
|
255
|
+
options?: RequestInit;
|
|
256
|
+
}>): Promise<AccountApiImportedSiteBackup>;
|
|
210
257
|
}>;
|
|
211
258
|
export declare function createAccountApi(apiClient: ApiClient): AccountApi;
|
|
212
259
|
export declare function createBearerAccountApi(token: Secret<'oauth-access-token'>, baseUrl?: string): AccountApi;
|
|
213
|
-
export { identityResponseSchema as accountIdentityResponseSchema, listSitesResponseSchema as accountListSitesResponseSchema, createSiteResponseSchema as accountCreateSiteResponseSchema, provisionedProjectCredentialsResponseSchema as accountProvisionProjectCredentialsResponseSchema, };
|
|
260
|
+
export { identityResponseSchema as accountIdentityResponseSchema, listSitesResponseSchema as accountListSitesResponseSchema, createSiteResponseSchema as accountCreateSiteResponseSchema, provisionedProjectCredentialsResponseSchema as accountProvisionProjectCredentialsResponseSchema, backupUploadResponseSchema, backupPreviewResponseSchema, deleteBackupUploadResponseSchema, importBackupAsNewSiteResponseSchema, };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Appointment-service contracts.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `bookingOperations.ts` so the service record, its write requests
|
|
5
|
+
* and its public projection sit together — and so the one barrel line the root
|
|
6
|
+
* index needs covers all of them, including the visibility values and the
|
|
7
|
+
* redacted public DTO re-exported below.
|
|
8
|
+
*/
|
|
9
|
+
import type { BookingPaymentOptionsSource, BookingPaymentTermsConfig } from './bookingConfig';
|
|
10
|
+
import type { BookingServicePricing, BookingServicePricingInput } from './bookingServicePricing';
|
|
11
|
+
import type { AppointmentServiceVisibility } from './appointmentServiceVisibility';
|
|
12
|
+
import type { AppointmentServiceLocationType } from './appointmentServiceLocation';
|
|
13
|
+
export * from './appointmentServiceVisibility';
|
|
14
|
+
export * from './appointmentServiceLocation';
|
|
15
|
+
export type * from './publicBookingService';
|
|
16
|
+
export type AppointmentService = {
|
|
17
|
+
id: string;
|
|
18
|
+
siteId: string;
|
|
19
|
+
title: string;
|
|
20
|
+
slug: string;
|
|
21
|
+
visibility: AppointmentServiceVisibility;
|
|
22
|
+
description: string | null;
|
|
23
|
+
durationMinutes: number;
|
|
24
|
+
pricing?: BookingServicePricing;
|
|
25
|
+
priceAmount: number | null;
|
|
26
|
+
priceCurrency: string;
|
|
27
|
+
paymentTerms: BookingPaymentTermsConfig;
|
|
28
|
+
prepMinutes: number;
|
|
29
|
+
cleanupMinutes: number;
|
|
30
|
+
colorHex: string | null;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
locationType: AppointmentServiceLocationType;
|
|
33
|
+
venueId: string | null;
|
|
34
|
+
timezone: string | null;
|
|
35
|
+
onlineDetails: AppointmentServiceOnlineDetails | null;
|
|
36
|
+
formId: string | null;
|
|
37
|
+
cancellationPolicy: {
|
|
38
|
+
refunds: {
|
|
39
|
+
mode: 'inherit' | 'never' | 'always' | 'cutoff';
|
|
40
|
+
cutoffHours?: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
};
|
|
46
|
+
export type AppointmentServiceOnlineDetails = {
|
|
47
|
+
joinUrl: string;
|
|
48
|
+
accessCode: string | null;
|
|
49
|
+
notes: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type AppointmentServiceOnlineDetailsInput = {
|
|
52
|
+
joinUrl: string;
|
|
53
|
+
accessCode?: string | null;
|
|
54
|
+
notes?: string | null;
|
|
55
|
+
};
|
|
56
|
+
export type CreateAppointmentServiceRequest = {
|
|
57
|
+
title: string;
|
|
58
|
+
description?: string | null;
|
|
59
|
+
durationMinutes: number;
|
|
60
|
+
pricing?: BookingServicePricingInput;
|
|
61
|
+
priceAmount?: number | null;
|
|
62
|
+
priceCurrency?: string;
|
|
63
|
+
paymentTerms?: BookingPaymentTermsConfig;
|
|
64
|
+
paymentOptionsSource?: BookingPaymentOptionsSource;
|
|
65
|
+
prepMinutes?: number;
|
|
66
|
+
cleanupMinutes?: number;
|
|
67
|
+
colorHex?: string | null;
|
|
68
|
+
isActive?: boolean;
|
|
69
|
+
visibility?: AppointmentServiceVisibility;
|
|
70
|
+
locationType?: AppointmentServiceLocationType;
|
|
71
|
+
venueId?: string | null;
|
|
72
|
+
timezone?: string | null;
|
|
73
|
+
onlineDetails?: AppointmentServiceOnlineDetailsInput | null;
|
|
74
|
+
formId?: string | null;
|
|
75
|
+
cancellationPolicy?: AppointmentService['cancellationPolicy'];
|
|
76
|
+
};
|
|
77
|
+
export type UpdateAppointmentServiceRequest = Partial<CreateAppointmentServiceRequest>;
|
|
78
|
+
export type AppointmentServiceResponse = {
|
|
79
|
+
service: AppointmentService;
|
|
80
|
+
};
|
|
81
|
+
export type ListAppointmentServicesResponse = {
|
|
82
|
+
services: AppointmentService[];
|
|
83
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const APPOINTMENT_SERVICE_LOCATION_TYPE_VALUES: readonly ["virtual", "in_person", "hybrid"];
|
|
2
|
+
/**
|
|
3
|
+
* Where a service is delivered, as the operator configures it.
|
|
4
|
+
*
|
|
5
|
+
* `location_type` is a `text` column behind a check constraint, so rows arrive
|
|
6
|
+
* from the database as `string`; this is the closed union they narrow to. The
|
|
7
|
+
* public projection maps it to something a visitor is told
|
|
8
|
+
* (`PublicBookingServiceLocation`): `virtual` becomes `online`, `in_person`
|
|
9
|
+
* stays, and `hybrid` becomes `either`.
|
|
10
|
+
*/
|
|
11
|
+
export type AppointmentServiceLocationType = (typeof APPOINTMENT_SERVICE_LOCATION_TYPE_VALUES)[number];
|
|
12
|
+
export declare function isAppointmentServiceLocationType(value: unknown): value is AppointmentServiceLocationType;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const APPOINTMENT_SERVICE_VISIBILITY_VALUES: readonly ["public", "unlisted"];
|
|
2
|
+
/**
|
|
3
|
+
* How discoverable an appointment service is, mirroring event visibility.
|
|
4
|
+
*
|
|
5
|
+
* `public` appears in catalogues and sitemaps. `unlisted` is still bookable and
|
|
6
|
+
* still resolves by id or slug — it is simply left out of discovery.
|
|
7
|
+
*
|
|
8
|
+
* Separate from `isActive`, which answers a different question: an inactive
|
|
9
|
+
* service is not bookable at all. A service can be unlisted and active (a quiet
|
|
10
|
+
* offering you send people a link to), or listed and inactive (paused, and gone
|
|
11
|
+
* from everywhere public until it comes back).
|
|
12
|
+
*/
|
|
13
|
+
export type AppointmentServiceVisibility = (typeof APPOINTMENT_SERVICE_VISIBILITY_VALUES)[number];
|
|
14
|
+
export declare function isAppointmentServiceVisibility(value: unknown): value is AppointmentServiceVisibility;
|
|
@@ -141,6 +141,10 @@ export declare const appointmentSetupServiceDraftSchema: z.ZodObject<{
|
|
|
141
141
|
cleanupMinutes: z.ZodDefault<z.ZodNumber>;
|
|
142
142
|
priceAmount: z.ZodNullable<z.ZodNumber>;
|
|
143
143
|
isActive: z.ZodBoolean;
|
|
144
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
145
|
+
public: "public";
|
|
146
|
+
unlisted: "unlisted";
|
|
147
|
+
}>>;
|
|
144
148
|
locationType: z.ZodUnion<readonly [z.ZodLiteral<"virtual">, z.ZodLiteral<"in_person">, z.ZodLiteral<"hybrid">]>;
|
|
145
149
|
venue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
150
|
kind: z.ZodLiteral<"none">;
|
|
@@ -272,6 +276,10 @@ export declare const applyAppointmentSetupRequestSchema: z.ZodObject<{
|
|
|
272
276
|
cleanupMinutes: z.ZodDefault<z.ZodNumber>;
|
|
273
277
|
priceAmount: z.ZodNullable<z.ZodNumber>;
|
|
274
278
|
isActive: z.ZodBoolean;
|
|
279
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
280
|
+
public: "public";
|
|
281
|
+
unlisted: "unlisted";
|
|
282
|
+
}>>;
|
|
275
283
|
locationType: z.ZodUnion<readonly [z.ZodLiteral<"virtual">, z.ZodLiteral<"in_person">, z.ZodLiteral<"hybrid">]>;
|
|
276
284
|
venue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
285
|
kind: z.ZodLiteral<"none">;
|
|
@@ -3,8 +3,7 @@ import type { CreateEventRequest } from './eventManagementContracts';
|
|
|
3
3
|
import { BOOKING_SETTINGS_SECTION_KEYS } from './bookingSettingsSections';
|
|
4
4
|
import { type EventPreset } from '../../core/src/index';
|
|
5
5
|
export { BOOKING_SETTINGS_SECTION_KEYS, BOOKING_SETTINGS_SECTION_LABELS, } from './bookingSettingsSections';
|
|
6
|
-
import type {
|
|
7
|
-
export type { EventPricingMode } from '../../core/src/index';
|
|
6
|
+
import type { EventBookingOffer, EventPricing, EventPricingAttendanceScope, PricingOptionId, PublicEventPricingOptionAvailability, SiteVerticalBookingConfig, StaffMemberId, UserId } from '../../core/src/index';
|
|
8
7
|
/**
|
|
9
8
|
* Booking Configuration Contracts
|
|
10
9
|
*
|
|
@@ -17,7 +16,17 @@ export type { EventPricingMode } from '../../core/src/index';
|
|
|
17
16
|
export type BookingCollectionOptionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
18
17
|
export declare const DIRECT_CHECKOUT_COLLECTION_OPTION_KINDS: readonly ["upfront", "deferred_manual", "instalment_plan", "flexible_balance"];
|
|
19
18
|
export type DirectCheckoutCollectionOptionKind = (typeof DIRECT_CHECKOUT_COLLECTION_OPTION_KINDS)[number];
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Domain category a booking's payment terms belong to. Whole-series runs are
|
|
21
|
+
* `wholeSeries`; the value is stored under the historical `course` settings key,
|
|
22
|
+
* mapped at the boundary in `@riverbankcms/bookings/paymentTerms`.
|
|
23
|
+
*/
|
|
24
|
+
export type BookingPaymentArchetype = 'event' | 'class' | 'workshop' | 'retreat' | 'performance' | 'wholeSeries' | 'appointment';
|
|
25
|
+
/**
|
|
26
|
+
* Persisted key in `booking_settings.payment_defaults`. `course` is the stored
|
|
27
|
+
* form of the `wholeSeries` archetype; it is never a domain value.
|
|
28
|
+
*/
|
|
29
|
+
export type BookingPaymentDefaultsKey = 'event' | 'class' | 'workshop' | 'retreat' | 'performance' | 'course' | 'appointment';
|
|
21
30
|
export type BookingPaymentOptionsSource = 'default' | 'custom';
|
|
22
31
|
export type BookingInstalmentIntervalUnit = 'day' | 'week' | 'month';
|
|
23
32
|
export type BookingInstalmentPlanConfig = {
|
|
@@ -74,12 +83,10 @@ export type PublicBookingPaymentTermsAvailability = {
|
|
|
74
83
|
paymentTerms: BookingPaymentTermsConfig;
|
|
75
84
|
reason: 'online_payment_configured_before_launch';
|
|
76
85
|
};
|
|
77
|
-
export type BookingPaymentDefaults = Record<
|
|
78
|
-
export type
|
|
79
|
-
export type BookingPricingStrategy = 'free' | 'single' | 'tiered' | 'sliding_scale';
|
|
80
|
-
export type BookingPricingAttendanceScope = 'in_person' | 'online' | 'both';
|
|
86
|
+
export type BookingPaymentDefaults = Record<BookingPaymentDefaultsKey, BookingPaymentTermsConfig>;
|
|
87
|
+
export type BookingPricingAttendanceScope = EventPricingAttendanceScope;
|
|
81
88
|
export type BookingPricingOption = {
|
|
82
|
-
id:
|
|
89
|
+
id: PricingOptionId;
|
|
83
90
|
name: string;
|
|
84
91
|
description: string | null;
|
|
85
92
|
priceAmount: number;
|
|
@@ -88,7 +95,7 @@ export type BookingPricingOption = {
|
|
|
88
95
|
capacityLimit: number | null;
|
|
89
96
|
saleStartsAt: string | null;
|
|
90
97
|
saleEndsAt: string | null;
|
|
91
|
-
attendanceScope
|
|
98
|
+
attendanceScope: BookingPricingAttendanceScope;
|
|
92
99
|
};
|
|
93
100
|
export type BookingPricingOptionInput = {
|
|
94
101
|
id?: string;
|
|
@@ -102,32 +109,24 @@ export type BookingPricingOptionInput = {
|
|
|
102
109
|
saleEndsAt?: string | null;
|
|
103
110
|
attendanceScope?: BookingPricingAttendanceScope | null;
|
|
104
111
|
};
|
|
105
|
-
export type
|
|
106
|
-
bookingRequirement: BookingPricingRequirement;
|
|
107
|
-
pricingStrategy: BookingPricingStrategy;
|
|
112
|
+
export type BookingPricingValueTypes = Readonly<{
|
|
108
113
|
currency: string;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
options: readonly BookingPricingOption[];
|
|
115
|
-
};
|
|
116
|
-
export type BookingPricingInput = {
|
|
117
|
-
bookingRequirement?: BookingPricingRequirement;
|
|
118
|
-
pricingStrategy: BookingPricingStrategy;
|
|
114
|
+
positiveAmount: number;
|
|
115
|
+
nonNegativeAmount: number;
|
|
116
|
+
option: BookingPricingOption;
|
|
117
|
+
}>;
|
|
118
|
+
export type BookingPricingInputValueTypes = Readonly<{
|
|
119
119
|
currency: string;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export type EventTicketTypeCapacityMode = 'limited' | 'unlimited';
|
|
120
|
+
positiveAmount: number;
|
|
121
|
+
nonNegativeAmount: number;
|
|
122
|
+
option: BookingPricingOptionInput;
|
|
123
|
+
}>;
|
|
124
|
+
export type BookingPricing = EventBookingOffer<BookingPaymentTermsConfig, BookingPricingValueTypes>;
|
|
125
|
+
export type BookingPricingDraft = EventBookingOffer<BookingPaymentTermsConfig, BookingPricingInputValueTypes>;
|
|
126
|
+
export type BookingPricingInput = EventPricing<BookingPricingInputValueTypes>;
|
|
128
127
|
export type EventDeliveryMode = 'in_person' | 'online' | 'hybrid';
|
|
129
128
|
export type EventAttendanceMode = 'in_person' | 'online';
|
|
130
|
-
export type
|
|
129
|
+
export type EventPricingOptionAttendanceScope = EventPricingAttendanceScope;
|
|
131
130
|
export type EventModeCapacity = {
|
|
132
131
|
kind: 'limited';
|
|
133
132
|
capacity: number;
|
|
@@ -138,50 +137,7 @@ export type EventCapacityByAttendanceMode = {
|
|
|
138
137
|
inPerson: EventModeCapacity;
|
|
139
138
|
online: EventModeCapacity;
|
|
140
139
|
};
|
|
141
|
-
export type
|
|
142
|
-
id: string;
|
|
143
|
-
siteId: string;
|
|
144
|
-
eventSeriesId: string;
|
|
145
|
-
name: string;
|
|
146
|
-
description: string | null;
|
|
147
|
-
priceAmount: number;
|
|
148
|
-
isActive: boolean;
|
|
149
|
-
sortOrder: number;
|
|
150
|
-
capacityMode: EventTicketTypeCapacityMode;
|
|
151
|
-
capacityLimit: number | null;
|
|
152
|
-
attendanceScope: EventTicketTypeAttendanceScope;
|
|
153
|
-
saleStartsAt: string | null;
|
|
154
|
-
saleEndsAt: string | null;
|
|
155
|
-
createdAt: string;
|
|
156
|
-
updatedAt: string;
|
|
157
|
-
};
|
|
158
|
-
export type PublicEventTicketTypeAvailability = {
|
|
159
|
-
kind: 'available';
|
|
160
|
-
remainingCapacity: number | null;
|
|
161
|
-
} | {
|
|
162
|
-
kind: 'unavailable';
|
|
163
|
-
reason: 'inactive' | 'not_on_sale_yet' | 'sale_ended' | 'sold_out' | 'event_sold_out';
|
|
164
|
-
remainingCapacity: number | null;
|
|
165
|
-
};
|
|
166
|
-
export type PublicEventTicketTypeRecord = EventTicketTypeRecord & {
|
|
167
|
-
availability: PublicEventTicketTypeAvailability;
|
|
168
|
-
};
|
|
169
|
-
export type PublicEventEligibilityTicketTypeRecord = Pick<EventTicketTypeRecord, 'id' | 'name' | 'description' | 'priceAmount' | 'isActive' | 'sortOrder' | 'capacityMode' | 'capacityLimit' | 'attendanceScope' | 'saleStartsAt' | 'saleEndsAt'> & {
|
|
170
|
-
availability: PublicEventTicketTypeAvailability;
|
|
171
|
-
};
|
|
172
|
-
export type EventTicketTypeInput = {
|
|
173
|
-
id?: string;
|
|
174
|
-
name: string;
|
|
175
|
-
description?: string | null;
|
|
176
|
-
priceAmount: number;
|
|
177
|
-
isActive?: boolean;
|
|
178
|
-
sortOrder?: number;
|
|
179
|
-
capacityMode?: EventTicketTypeCapacityMode;
|
|
180
|
-
capacityLimit?: number | null;
|
|
181
|
-
attendanceScope?: EventTicketTypeAttendanceScope;
|
|
182
|
-
saleStartsAt?: string | null;
|
|
183
|
-
saleEndsAt?: string | null;
|
|
184
|
-
};
|
|
140
|
+
export type { PublicEventPricingOptionAvailability };
|
|
185
141
|
export type WaitlistMode = 'off' | 'on';
|
|
186
142
|
export type WaitlistOverride = 'inherit' | 'off' | 'on';
|
|
187
143
|
export type EventSeriesRecord = {
|
|
@@ -189,7 +145,7 @@ export type EventSeriesRecord = {
|
|
|
189
145
|
siteId: string;
|
|
190
146
|
preset: EventPreset;
|
|
191
147
|
verticalPresetId: string | null;
|
|
192
|
-
|
|
148
|
+
bookingOffer: BookingPricing;
|
|
193
149
|
title: string;
|
|
194
150
|
slug: string;
|
|
195
151
|
venueId: string | null;
|
|
@@ -205,20 +161,12 @@ export type EventSeriesRecord = {
|
|
|
205
161
|
defaultStartTime: string;
|
|
206
162
|
durationMinutes: number;
|
|
207
163
|
formId: string | null;
|
|
208
|
-
|
|
209
|
-
requiresPayment: boolean;
|
|
210
|
-
priceAmount: number | null;
|
|
211
|
-
priceCurrency: string | null;
|
|
212
|
-
slidingMinAmount: number | null;
|
|
213
|
-
slidingMaxAmount: number | null;
|
|
214
|
-
slidingSuggestedAmount: number | null;
|
|
164
|
+
priceNote: string | null;
|
|
215
165
|
acceptsPasses: boolean;
|
|
216
166
|
acceptsMemberships: boolean;
|
|
217
|
-
paymentTerms: BookingPaymentTermsConfig;
|
|
218
167
|
waitlistMode: WaitlistOverride;
|
|
219
168
|
staffMemberIds?: string[];
|
|
220
169
|
mainHostStaffMemberId?: string | null;
|
|
221
|
-
ticketTypes?: EventTicketTypeRecord[];
|
|
222
170
|
/** Arbitrary per-series settings persisted to event_series.settings_json. */
|
|
223
171
|
settingsJson: Record<string, unknown>;
|
|
224
172
|
/** Arbitrary per-series presentation config persisted to event_series.presentation_json. */
|
|
@@ -238,8 +186,8 @@ export type UpdateEventSeriesRequest = Partial<Omit<CreateEventRequest, 'creatio
|
|
|
238
186
|
* unnamed, which the update service enforces by booking scope.
|
|
239
187
|
*/
|
|
240
188
|
title?: string;
|
|
241
|
-
|
|
242
|
-
|
|
189
|
+
migrationPricingOptionId?: string | null;
|
|
190
|
+
migrationPricingOptionIndex?: number | null;
|
|
243
191
|
/** If true, regenerate future occurrences based on updated schedule */
|
|
244
192
|
regenerateSchedule?: boolean;
|
|
245
193
|
};
|
|
@@ -11,7 +11,7 @@ import type { AppointmentResourceResponse, AppointmentReservationLifecycleReques
|
|
|
11
11
|
import type { AddEventOccurrenceAttendeeRequest, AddEventOccurrenceAttendeeResponse, AdjustCustomerCreditRequest, AdjustCustomerCreditResponse, BookingEventSeriesAttendee, BookingMembershipResponse, BookingPassResponse, CheckEventAdminEligibilityRequest, CheckEventAdminEligibilityResponse, CreateBookingCustomerRequest, CreateBookingCustomerResponse, RectifyBookingCustomerProfileRequest, RectifyBookingCustomerProfileResponse, RectifyBookingParticipantIdentityRequest, RectifyBookingParticipantIdentityResponse, CreateBookingMembershipRequest, CreateBookingPassRequest, CreateDiscountCodeRequest, CreateEventCategoryRequest, CreateOccurrenceRequest, CreateVenueRequest, DeleteDiscountCodeResponse, DeleteVenueResponse, DiscountCodeResponse, EventCategoryResponse, EventOccurrenceRecord, GeocodeVenueRequest, GeocodeVenueResponse, GetCustomerCreditResponse, GetMoneyReportRequest, GetMoneyReportResponse, ExportBookingQuestionAnswersCsvRequest, ExportBookingLedgerCsvRequest, ListBookingActivityRequest, ListBookingActivityResponse, ListBookingCustomersRequest, ListBookingCustomersResponse, ListBookingMembershipsRequest, ListBookingMembershipsResponse, ListBookingPassesRequest, ListBookingPassesResponse, ListCustomerAttendancesRequest, ListCustomerAttendancesResponse, ListCustomerMembershipsResponse, ListCustomerPassesResponse, CreatePersonRecordEntryRequest, CreatePersonRecordEntryResponse, ListDiscountCodesResponse, ListDiscountRedemptionsRequest, ListDiscountRedemptionsResponse, ListEventCategoriesResponse, ListMoneyPaymentsRequest, ListMoneyPaymentsResponse, ListSiteCustomerMembershipsRequest, ListSiteCustomerMembershipsResponse, ListSiteCustomerPassesRequest, ListSiteCustomerPassesResponse, UpdateBookingMembershipRequest, UpdateBookingPassRequest, UpdateDiscountCodeRequest, UpdateEventCategoryRequest, UpdateVenueRequest, VenueRecord } from './bookingRecords';
|
|
12
12
|
import type * as OccurrenceScheduling from './occurrenceScheduling';
|
|
13
13
|
import type { ApplyAppointmentSetupRequest, ApplyAppointmentSetupResponse, AppointmentSetupResponse } from './appointmentSetup';
|
|
14
|
-
import type { AddEventSeriesRegistrationRequest, AddEventSeriesRegistrationResponse, EventSeriesContentOwnershipRequest, EventSeriesContentOwnershipResponse, DashboardWaitlistListResponse, DeleteEventOfferingResponse, ListEventSeriesRegistrationsResponse, UpdateEventSeriesRegistrationRequest, UpdateEventSeriesRegistrationResponse, WaitlistDashboardActionResponse } from './
|
|
14
|
+
import type { AddEventSeriesRegistrationRequest, AddEventSeriesRegistrationResponse, EventSeriesContentOwnershipRequest, EventSeriesContentOwnershipResponse, DashboardWaitlistListResponse, DeleteEventOfferingResponse, ListEventSeriesRegistrationsResponse, UpdateEventSeriesRegistrationRequest, UpdateEventSeriesRegistrationResponse, WaitlistDashboardActionResponse } from './wholeSeriesRuns';
|
|
15
15
|
import type { GetParticipantMessageRecipientsRequest, ListParticipantMessageHistoryRequest, ParticipantMessageHistoryResponse, ParticipantMessageRecipientsResponse, ParticipantMessageSendResponse, SendParticipantMessageRequest, TestParticipantMessageRequest, TestParticipantMessageResponse } from './participantMessaging';
|
|
16
16
|
import type { GetEmailSettingsResponse, GetEventSeriesEmailTemplatesResponse, GetNewsletterCampaignRecipientsSummaryResponse, GetNewsletterCampaignResponse, GetNewsletterCampaignStatsResponse, GetNewsletterSettingsResponse, GetNewsletterSubscriberResponse, GetNewsletterTemplateResponse, ListNewsletterCampaignsResponse, ListNewsletterListMembersQuery, ListNewsletterListMembersResponse, ListNewsletterListsResponse, ListNewsletterSendJobsQuery, ListNewsletterSendJobsResponse, ListNewsletterSubscribersQuery, ListNewsletterSubscribersResponse, ListNewsletterTagsResponse, ListNewsletterTemplatesResponse, PreviewEmailTemplateRequest, PreviewEmailTemplateResponse, PreviewNewsletterTemplateRequest, PreviewNewsletterTemplateResponse, RectifyNewsletterSubscriberRequest, RectifyNewsletterSubscriberResponse, SendTestEmailRequest, SendTestEmailResponse, UpdateEmailSettingsRequest, UpdateEmailSettingsResponse, UpdateEventSeriesEmailTemplatesRequest, UpdateEventSeriesEmailTemplatesResponse, UpdateNewsletterCampaignRequest, UpdateNewsletterCampaignResponse, UpdateNewsletterListMembershipsRequest, UpdateNewsletterListMembershipsResponse, UpdateNewsletterListRequest, UpdateNewsletterListResponse, UpdateNewsletterSettingsRequest, UpdateNewsletterSettingsResponse, UpdateNewsletterSubscriberRequest, UpdateNewsletterSubscriberResponse, UpdateNewsletterTemplateRequest, UpdateNewsletterTemplateResponse, UpsertNewsletterSubscriberRequest, UpsertNewsletterSubscriberResponse, ImportNewsletterSubscribersCsvResponse, ExportNewsletterSubscribersCsvResponse, DeleteNewsletterSubscriberResponse, AnonymizeNewsletterSubscriberResponse, ExportNewsletterSubscriberDataResponse, CreateNewsletterListRequest, CreateNewsletterListResponse, DeleteNewsletterListResponse, CreateNewsletterTemplateRequest, CreateNewsletterTemplateResponse, DeleteNewsletterTemplateResponse, CreateNewsletterCampaignRequest, CreateNewsletterCampaignResponse, DeleteNewsletterCampaignResponse, SendNewsletterCampaignNowRequest, SendNewsletterCampaignNowResponse, TestSendNewsletterCampaignRequest, TestSendNewsletterCampaignResponse, RetryNewsletterSendJobResponse, CancelNewsletterSendJobResponse } from './communications';
|
|
17
17
|
import type { CreateNewsletterSubscribersImportUploadUrlRequest, CreateNewsletterSubscribersImportUploadUrlResponse, ImportNewsletterSubscribersCsvRequest } from './siteInfrastructure';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { TimeSlot } from './availability';
|
|
2
|
-
import type { BookingPaymentOptionsSource, BookingPaymentTermsConfig, BookingPricing, BookingPricingInput } from './bookingConfig';
|
|
3
2
|
import type { InviteSiteMemberEmailResult, SiteInvitation, StaffOperationalCapability } from './accessAdmin';
|
|
4
3
|
import type { EventSeriesRegistrationRefundFailedCode, EventAttendeeRefundFailedCode } from './bookingRefundOutcomes';
|
|
5
4
|
/**
|
|
@@ -22,7 +21,7 @@ export type OpsEventOccurrenceSummary = {
|
|
|
22
21
|
status: string;
|
|
23
22
|
};
|
|
24
23
|
export type EventTicketBreakdownLine = {
|
|
25
|
-
|
|
24
|
+
pricingOptionId: string | null;
|
|
26
25
|
label: string;
|
|
27
26
|
quantity: number;
|
|
28
27
|
};
|
|
@@ -373,72 +372,7 @@ export type RemoveAppointmentResourceResponse = {
|
|
|
373
372
|
success: boolean;
|
|
374
373
|
action: 'deleted' | 'archived';
|
|
375
374
|
};
|
|
376
|
-
export
|
|
377
|
-
id: string;
|
|
378
|
-
siteId: string;
|
|
379
|
-
title: string;
|
|
380
|
-
slug: string;
|
|
381
|
-
description: string | null;
|
|
382
|
-
durationMinutes: number;
|
|
383
|
-
pricing?: BookingPricing;
|
|
384
|
-
priceAmount: number | null;
|
|
385
|
-
priceCurrency: string;
|
|
386
|
-
paymentTerms: BookingPaymentTermsConfig;
|
|
387
|
-
prepMinutes: number;
|
|
388
|
-
cleanupMinutes: number;
|
|
389
|
-
colorHex: string | null;
|
|
390
|
-
isActive: boolean;
|
|
391
|
-
locationType: 'virtual' | 'in_person' | 'hybrid';
|
|
392
|
-
venueId: string | null;
|
|
393
|
-
timezone: string | null;
|
|
394
|
-
onlineDetails: AppointmentServiceOnlineDetails | null;
|
|
395
|
-
formId: string | null;
|
|
396
|
-
cancellationPolicy: {
|
|
397
|
-
refunds: {
|
|
398
|
-
mode: 'inherit' | 'never' | 'always' | 'cutoff';
|
|
399
|
-
cutoffHours?: number;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
createdAt: string;
|
|
403
|
-
updatedAt: string;
|
|
404
|
-
};
|
|
405
|
-
export type AppointmentServiceOnlineDetails = {
|
|
406
|
-
joinUrl: string;
|
|
407
|
-
accessCode: string | null;
|
|
408
|
-
notes: string | null;
|
|
409
|
-
};
|
|
410
|
-
export type AppointmentServiceOnlineDetailsInput = {
|
|
411
|
-
joinUrl: string;
|
|
412
|
-
accessCode?: string | null;
|
|
413
|
-
notes?: string | null;
|
|
414
|
-
};
|
|
415
|
-
export type CreateAppointmentServiceRequest = {
|
|
416
|
-
title: string;
|
|
417
|
-
description?: string | null;
|
|
418
|
-
durationMinutes: number;
|
|
419
|
-
pricing?: BookingPricingInput;
|
|
420
|
-
priceAmount?: number | null;
|
|
421
|
-
priceCurrency?: string;
|
|
422
|
-
paymentTerms?: BookingPaymentTermsConfig;
|
|
423
|
-
paymentOptionsSource?: BookingPaymentOptionsSource;
|
|
424
|
-
prepMinutes?: number;
|
|
425
|
-
cleanupMinutes?: number;
|
|
426
|
-
colorHex?: string | null;
|
|
427
|
-
isActive?: boolean;
|
|
428
|
-
locationType?: 'virtual' | 'in_person' | 'hybrid';
|
|
429
|
-
venueId?: string | null;
|
|
430
|
-
timezone?: string | null;
|
|
431
|
-
onlineDetails?: AppointmentServiceOnlineDetailsInput | null;
|
|
432
|
-
formId?: string | null;
|
|
433
|
-
cancellationPolicy?: AppointmentService['cancellationPolicy'];
|
|
434
|
-
};
|
|
435
|
-
export type UpdateAppointmentServiceRequest = Partial<CreateAppointmentServiceRequest>;
|
|
436
|
-
export type AppointmentServiceResponse = {
|
|
437
|
-
service: AppointmentService;
|
|
438
|
-
};
|
|
439
|
-
export type ListAppointmentServicesResponse = {
|
|
440
|
-
services: AppointmentService[];
|
|
441
|
-
};
|
|
375
|
+
export * from './appointmentServiceContracts';
|
|
442
376
|
export declare const APPOINTMENT_RESERVATION_STATUS_VALUES: readonly ["active", "paused", "ended"];
|
|
443
377
|
export type AppointmentReservationStatus = (typeof APPOINTMENT_RESERVATION_STATUS_VALUES)[number];
|
|
444
378
|
export type AppointmentReservationPaymentMode = Readonly<{
|
|
@@ -671,7 +605,6 @@ export type ReferenceOption = {
|
|
|
671
605
|
export type ReferenceOptionsResponse = {
|
|
672
606
|
options: ReferenceOption[];
|
|
673
607
|
};
|
|
674
|
-
export type { PublicBookingService } from './publicBookingService';
|
|
675
608
|
export type PublicBookingAvailabilityQuery = {
|
|
676
609
|
siteId: string;
|
|
677
610
|
serviceId: string;
|
|
@@ -157,7 +157,7 @@ export type AddEventOccurrenceAttendeeRequest = {
|
|
|
157
157
|
customerPhone?: string | null;
|
|
158
158
|
sendConfirmation?: boolean;
|
|
159
159
|
attendanceMode?: 'in_person' | 'online' | null;
|
|
160
|
-
|
|
160
|
+
pricingOptionId?: string | null;
|
|
161
161
|
customerPassId?: string | null;
|
|
162
162
|
customerMembershipId?: string | null;
|
|
163
163
|
};
|
|
@@ -697,7 +697,7 @@ export type EventCategoryResponse = {
|
|
|
697
697
|
};
|
|
698
698
|
export declare const BOOKING_ACTIVITY_CATEGORY_VALUES: readonly ["booking", "purchase", "cancellation", "refund", "transfer", "failure"];
|
|
699
699
|
export type BookingActivityCategory = (typeof BOOKING_ACTIVITY_CATEGORY_VALUES)[number];
|
|
700
|
-
export declare const BOOKING_ACTIVITY_TYPE_VALUES: readonly ["appointment_booked", "appointment_cancelled", "booking_closure_created", "booking_closure_removed", "event_registration", "event_registration_cancelled", "event_series_registration", "event_series_registration_cancelled", "pass_purchased", "membership_started", "membership_paused", "membership_cancelled", "event_refund", "pass_refund", "membership_refund", "
|
|
700
|
+
export declare const BOOKING_ACTIVITY_TYPE_VALUES: readonly ["appointment_booked", "appointment_cancelled", "booking_closure_created", "booking_closure_removed", "event_registration", "event_registration_cancelled", "event_series_registration", "event_series_registration_cancelled", "pass_purchased", "membership_started", "membership_paused", "membership_cancelled", "event_refund", "pass_refund", "membership_refund", "event_series_registration_refund", "ticket_transfer", "payment_failed"];
|
|
701
701
|
export type BookingActivityType = (typeof BOOKING_ACTIVITY_TYPE_VALUES)[number];
|
|
702
702
|
export type BookingActivityCursor = {
|
|
703
703
|
occurredAt: string;
|