@riverbankcms/sdk 0.104.3 → 0.108.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 +84 -51
- package/dist/{PreviewEditorSidebar-CBMhU9p_.mjs → PreviewEditorSidebar-BBT-kZAM.mjs} +1850 -1183
- package/dist/{PreviewEditorUI-C5KEw4M8.mjs → PreviewEditorUI-D69xNKT2.mjs} +10 -9
- package/dist/{PreviewQueryProvider-CStABBUh.mjs → PreviewQueryProvider-RRu7wyQ5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Iq12HjL7.mjs → SdkPreviewModeRuntime-CuDjXH6o.mjs} +2562 -457
- package/dist/{SiteChromeCustomizeContext-Cx0NMdyv.mjs → SiteChromeCustomizeContext-BQUY2dEk.mjs} +7689 -3196
- package/dist/_dts/ai/src/contracts/proposals.d.ts +36493 -1395
- package/dist/_dts/api/src/blocks.d.ts +41 -7
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +180 -115
- package/dist/_dts/api/src/cache-tags.d.ts +3 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +25 -16
- package/dist/_dts/api/src/courses.d.ts +68 -10
- package/dist/_dts/api/src/endpoints.d.ts +128 -0
- package/dist/_dts/api/src/footer-settings.d.ts +1 -0
- package/dist/_dts/api/src/footerSettings.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +127 -124
- package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
- package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +9 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +178 -6
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +143 -55
- package/dist/_dts/api/src/siteOperations.d.ts +1 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +72 -47
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -4
- package/dist/_dts/blocks/src/definitions.d.ts +1 -1
- package/dist/_dts/blocks/src/portal/types.d.ts +25 -7
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule-projection.d.ts +52 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +22 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +45 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +8 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +8 -8
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +29 -0
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +2 -5
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
- package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +3 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +90 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +45 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +9 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +106 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/RecurringSchedule.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +11 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/svg.d.ts +7 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
- package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
- package/dist/_dts/content-editor/src/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +47 -0
- package/dist/_dts/core/src/dated-offering-settlement.d.ts +47 -0
- package/dist/_dts/core/src/editor-state.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +44 -0
- package/dist/_dts/core/src/footer-composition.d.ts +143 -0
- package/dist/_dts/core/src/index.d.ts +51 -47
- package/dist/_dts/core/src/public-profile.d.ts +73 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +4398 -2859
- package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +4 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/media-core/src/index.d.ts +2 -1
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +47 -0
- package/dist/_dts/media-core/src/url.d.ts +1 -21
- package/dist/_dts/path-utils/src/index.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +4 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +8 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -9
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +2 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +81 -43
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.typography.d.ts +61 -0
- package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +7 -17
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +15 -8
- package/dist/_dts/preview-next/src/client/preview/typographyFontCatalog.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +4 -7
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +24 -10
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +16 -2
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +147 -24
- package/dist/_dts/sdk/src/client/types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +23 -3
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +17 -0
- package/dist/_dts/sdk/src/data/dataLoaderValue.d.ts +36 -0
- package/dist/_dts/sdk/src/data/defineOwnDataProperty.d.ts +2 -0
- package/dist/_dts/sdk/src/data/executeCodeLoaders.d.ts +36 -40
- package/dist/_dts/sdk/src/data/index.d.ts +3 -3
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +54 -0
- package/dist/_dts/sdk/src/data/types.d.ts +43 -78
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
- package/dist/_dts/sdk/src/next/index.d.ts +1 -0
- package/dist/_dts/sdk/src/next/redirect-destination.d.ts +1 -1
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +2 -1
- package/dist/_dts/sdk/src/next/types.d.ts +10 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -10
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +10 -5
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +6 -10
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/server.d.ts +4 -3
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +934 -40
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -1
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/data.d.ts +12 -0
- package/dist/_dts/theme-core/src/fonts/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/fonts/types.d.ts +6 -0
- package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -54
- package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/colors.d.ts +12 -0
- package/dist/_dts/theme-core/src/palette/curated/brand-led.d.ts +10 -5
- package/dist/_dts/theme-core/src/palette/curated/high-contrast.d.ts +6 -3
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +31 -236
- package/dist/_dts/theme-core/src/palette/curated/soft-natural.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +14 -12
- package/dist/_dts/theme-core/src/palette/curated/warm-dark.d.ts +4 -2
- package/dist/_dts/theme-core/src/palette/curated/warm-neutral.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +33 -3
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -4
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +12 -6
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +20 -72
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +29 -4
- package/dist/_dts/theme-core/src/palette/selection.d.ts +6 -4
- package/dist/_dts/theme-core/src/schema.d.ts +1307 -38
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +5 -6
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +161 -51
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +24 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -48
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -23
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +1 -2
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +456 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +52 -3
- package/dist/cli/index.mjs +4118 -2278
- package/dist/client/{DiscountCodeDisclosure-BXM73_E5.mjs → DiscountCodeDisclosure-D6TOf6Hi.mjs} +1 -1
- package/dist/client/{EventCombined.client-DT5elP7j.mjs → EventCombined.client-Dao3zxRk.mjs} +3 -3
- package/dist/client/{EventListing.client-pTYGfV9C.mjs → EventListing.client-B2NNt4y1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-dQrhlUe3.mjs → LeafletStaticMap-BhwFo16w.mjs} +1 -1
- package/dist/client/{MagicLinkForm-u6Dul4j5.mjs → MagicLinkForm-BWnB7cMR.mjs} +2 -2
- package/dist/client/{StepIndicator-nWqineJ2.mjs → StepIndicator-TzRiQ0BY.mjs} +2 -2
- package/dist/client/{accordion-CSJcTUyH.mjs → accordion-BPy-AJ4_.mjs} +1 -1
- package/dist/client/{bookingForm-C73wOuVa.mjs → bookingForm-BL4PGZds.mjs} +7 -7
- package/dist/client/bookings.mjs +382 -204
- package/dist/client/{buttons-DfYyqt8C.mjs → buttons-EBjyslaX.mjs} +265 -152
- package/dist/client/{carousel-fMBb0JSc.mjs → carousel-C2b7Cn9-.mjs} +1 -1
- package/dist/client/{cart-BtaCwT3S.mjs → cart-BQcbXIVD.mjs} +3 -3
- package/dist/client/{checkout-DkTwZSnh.mjs → checkout-DEmpGRJu.mjs} +3 -3
- package/dist/client/client.mjs +5019 -1886
- package/dist/client/{colorStyles-Wyl6JujD.mjs → colorStyles-jZS6KfkP.mjs} +1 -1
- package/dist/client/{colorTokenParts-dT8MISgJ.mjs → colorTokenParts-CMugwvX_.mjs} +3 -1
- package/dist/client/{courseRegistration-DnLmapJu.mjs → courseRegistration-BqRZPmsq.mjs} +56 -21
- package/dist/client/{eventCalendar-BvLOc9KY.mjs → eventCalendar-B8N_tSl5.mjs} +29 -21
- package/dist/client/{eventCombined-kShgJPQr.mjs → eventCombined-Gjn6gtq7.mjs} +2 -2
- package/dist/client/{eventDetails-C5NTM0Vo.mjs → eventDetails-M-VCxA-r.mjs} +4 -4
- package/dist/client/{eventListing-B82ZdKP6.mjs → eventListing-DR19hqYi.mjs} +2 -2
- package/dist/client/{eventRegistration-qJVFqBWo.mjs → eventRegistration-BR02a0k3.mjs} +8 -8
- package/dist/client/{form-BvAcKiuu.mjs → form-LY2xIbwg.mjs} +2 -2
- package/dist/client/{headerSection-NvAiEHAg.mjs → headerSection-CYwwXJfh.mjs} +3 -3
- package/dist/client/hooks.mjs +3335 -2210
- package/dist/client/{locationMap-D0j52xfI.mjs → locationMap-DWnBXrFq.mjs} +3 -3
- package/dist/client/{media-BCW_g2cQ.mjs → media-DHtSxS5V.mjs} +61 -56
- package/dist/client/{newsletterForm-B8_i93qH.mjs → newsletterForm-D9s-fQ2P.mjs} +3 -3
- package/dist/client/{pricing-DIYnyHOk.mjs → pricing-DDq80oYc.mjs} +1 -1
- package/dist/client/{productDetail-w0eAHkuQ.mjs → productDetail-B0SbWd45.mjs} +3 -3
- package/dist/client/{productList-Vsguq5Xt.mjs → productList-PwYlZn0y.mjs} +3 -3
- package/dist/client/{propsDecoder-CD2pJ1WB.mjs → propsDecoder-BRWBiH7i.mjs} +225 -68
- package/dist/client/rendering/client.mjs +2266 -1267
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +5364 -1979
- package/dist/client/{shop-Dgxs-Q8F.mjs → shop-CMwZPYME.mjs} +8 -8
- package/dist/client/{shop-commerce-DJAhsTaT.mjs → shop-commerce-BuxsFate.mjs} +6 -6
- package/dist/client/{shop-commerce-store-CfCXltXW.mjs → shop-commerce-store-boYlEJ91.mjs} +1 -1
- package/dist/client/{shopShared-CmDcPXUt.mjs → shopShared-D2naaOes.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-CirrT2bM.mjs → useDiscountCodeUi-D9RHpVoj.mjs} +1 -1
- package/dist/client/{useEventFilters-CNZxlCcO.mjs → useEventFilters-igGiK1re.mjs} +6 -6
- package/dist/client/{usePolling-Baks_iBI.mjs → usePolling-CI7MbsFB.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +218 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +218 -1
- package/dist/{previewAuthStore-CfquDtTh.mjs → previewAuthStore-a_cBD28m.mjs} +218 -1
- package/dist/{sdk-runtime-BfNiFeNJ.mjs → sdk-runtime-MBzD-GmP.mjs} +2 -2
- package/dist/{separator-BhAR_Xmf.mjs → separator-5ahRBC85.mjs} +1 -1
- package/dist/server/components.mjs +5218 -2529
- package/dist/server/config-validation.mjs +3112 -2210
- package/dist/server/config.mjs +3112 -2211
- package/dist/server/data.mjs +3758 -2277
- package/dist/server/index.mjs +224 -4
- package/dist/server/navigation.mjs +9 -3
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next.mjs +6468 -2749
- package/dist/server/page-converter.mjs +3524 -2635
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +5392 -2488
- package/dist/server/rendering.mjs +6241 -2851
- package/dist/server/routing.mjs +3414 -1826
- package/dist/server/server.mjs +4174 -2354
- package/dist/server/theme-bridge.mjs +9579 -8132
- package/dist/server/theme.mjs +313 -154
- package/dist/styles/index.css +1223 -31
- package/package.json +1 -1
- package/dist/_dts/preview-next/src/client/preview/typographySelectionInput.d.ts +0 -16
- package/dist/_dts/theme-core/src/palette/historicalThemePalette.d.ts +0 -44
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +0 -55
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +0 -45
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +0 -232
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +0 -234
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PersonRecordNoteKind } from
|
|
2
|
-
import type { EventTicketBreakdownLine } from
|
|
1
|
+
import type { PersonRecordNoteKind } from '../../core/src/index';
|
|
2
|
+
import type { EventTicketBreakdownLine } from './bookingOperations';
|
|
3
3
|
/**
|
|
4
4
|
* Booking Record Contracts
|
|
5
5
|
*
|
|
@@ -22,66 +22,66 @@ export type BookingEventSeriesAttendeeGuest = {
|
|
|
22
22
|
beforeYouCome?: BookingBeforeYouComeSummary | null;
|
|
23
23
|
beforeYouComeReadiness?: BookingBeforeYouComeReadiness | null;
|
|
24
24
|
};
|
|
25
|
-
export type BookingPaymentIssueReason =
|
|
25
|
+
export type BookingPaymentIssueReason = 'failed_recurring_charge' | 'overdue_instalment' | 'overdue_flexible_balance' | 'partial_payment_remaining_overdue';
|
|
26
26
|
export type BookingPaymentAttentionSummary = {
|
|
27
27
|
reason: BookingPaymentIssueReason;
|
|
28
28
|
label: string;
|
|
29
29
|
};
|
|
30
30
|
export type FlexibleBalanceAdminActionPlan = {
|
|
31
|
-
kind:
|
|
32
|
-
reason:
|
|
31
|
+
kind: 'unavailable';
|
|
32
|
+
reason: 'not_booking_item' | 'not_flexible_balance' | 'not_overdue' | 'already_cancelled_due_to_non_payment' | 'not_cancelled_due_to_non_payment' | 'booking_item_already_cancelled' | 'booking_item_not_cancelled' | 'settled_or_closed' | 'payment_in_progress';
|
|
33
33
|
} | {
|
|
34
|
-
kind:
|
|
34
|
+
kind: 'cancel_plan';
|
|
35
35
|
target: {
|
|
36
|
-
kind:
|
|
36
|
+
kind: 'appointment' | 'event_attendee' | 'course_enrollment';
|
|
37
37
|
orderId: string;
|
|
38
38
|
orderItemId: string;
|
|
39
39
|
};
|
|
40
40
|
} | {
|
|
41
|
-
kind:
|
|
41
|
+
kind: 'reopen_plan';
|
|
42
42
|
target: {
|
|
43
|
-
kind:
|
|
43
|
+
kind: 'appointment' | 'event_attendee' | 'course_enrollment';
|
|
44
44
|
orderId: string;
|
|
45
45
|
orderItemId: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
export type FlexibleBalanceAdminActionView = {
|
|
49
|
-
contractStatus:
|
|
49
|
+
contractStatus: 'active' | 'payment_pending' | 'overdue' | 'completed' | 'waived' | 'cancelled_due_to_non_payment' | 'refunded';
|
|
50
50
|
label: string | null;
|
|
51
51
|
plan: FlexibleBalanceAdminActionPlan;
|
|
52
52
|
};
|
|
53
53
|
export type BookingBeforeYouComeSummary = {
|
|
54
|
-
status:
|
|
54
|
+
status: 'complete' | 'incomplete' | 'overdue';
|
|
55
55
|
dueAt: string;
|
|
56
56
|
completedAt: string | null;
|
|
57
57
|
prefillAvailable: boolean;
|
|
58
58
|
};
|
|
59
59
|
export type BookingBeforeYouComeDeliveryIssue = {
|
|
60
|
-
kind:
|
|
60
|
+
kind: 'email_bounced';
|
|
61
61
|
detail: string;
|
|
62
62
|
occurredAt: string;
|
|
63
63
|
} | {
|
|
64
|
-
kind:
|
|
64
|
+
kind: 'send_failed';
|
|
65
65
|
detail: string;
|
|
66
66
|
occurredAt: string;
|
|
67
67
|
};
|
|
68
68
|
export type BookingBeforeYouComeReadiness = {
|
|
69
|
-
kind:
|
|
69
|
+
kind: 'ready';
|
|
70
70
|
task: BookingBeforeYouComeSummary;
|
|
71
71
|
} | {
|
|
72
|
-
kind:
|
|
73
|
-
reason:
|
|
72
|
+
kind: 'blocked';
|
|
73
|
+
reason: 'blocked_missing_email' | 'blocked_staff_managed_only';
|
|
74
74
|
} | {
|
|
75
|
-
kind:
|
|
75
|
+
kind: 'delivery_issue';
|
|
76
76
|
issue: BookingBeforeYouComeDeliveryIssue;
|
|
77
77
|
};
|
|
78
78
|
export type BookingBeforeYouComeReviewAnswer = {
|
|
79
|
-
kind:
|
|
79
|
+
kind: 'scalar';
|
|
80
80
|
fieldId: string;
|
|
81
81
|
label: string;
|
|
82
82
|
valueSummary: string;
|
|
83
83
|
} | {
|
|
84
|
-
kind:
|
|
84
|
+
kind: 'document';
|
|
85
85
|
fieldId: string;
|
|
86
86
|
label: string;
|
|
87
87
|
fileName: string;
|
|
@@ -98,16 +98,16 @@ export type BookingBeforeYouComeReview = {
|
|
|
98
98
|
};
|
|
99
99
|
export type { PersonRecordNoteKind };
|
|
100
100
|
export type PersonRecordEntrySubject = {
|
|
101
|
-
kind:
|
|
101
|
+
kind: 'customer';
|
|
102
102
|
customerId: string;
|
|
103
103
|
} | {
|
|
104
|
-
kind:
|
|
104
|
+
kind: 'appointment';
|
|
105
105
|
appointmentId: string;
|
|
106
106
|
} | {
|
|
107
|
-
kind:
|
|
107
|
+
kind: 'participant';
|
|
108
108
|
participantId: string;
|
|
109
109
|
} | {
|
|
110
|
-
kind:
|
|
110
|
+
kind: 'participation';
|
|
111
111
|
participantParticipationId: string;
|
|
112
112
|
};
|
|
113
113
|
export type CreatePersonRecordEntryRequest = {
|
|
@@ -155,7 +155,7 @@ export type AddEventOccurrenceAttendeeRequest = {
|
|
|
155
155
|
customerEmail: string;
|
|
156
156
|
customerPhone?: string | null;
|
|
157
157
|
sendConfirmation?: boolean;
|
|
158
|
-
attendanceMode?:
|
|
158
|
+
attendanceMode?: 'in_person' | 'online' | null;
|
|
159
159
|
ticketTypeId?: string | null;
|
|
160
160
|
customerPassId?: string | null;
|
|
161
161
|
customerMembershipId?: string | null;
|
|
@@ -163,10 +163,10 @@ export type AddEventOccurrenceAttendeeRequest = {
|
|
|
163
163
|
export type AddEventOccurrenceAttendeeResponse = {
|
|
164
164
|
attendeeId: string;
|
|
165
165
|
customerId: string;
|
|
166
|
-
status:
|
|
166
|
+
status: 'confirmed';
|
|
167
167
|
reinstated: boolean;
|
|
168
168
|
customerCreated: boolean;
|
|
169
|
-
paymentMethod:
|
|
169
|
+
paymentMethod: 'free' | 'pass' | 'membership';
|
|
170
170
|
passCreditsRemaining?: number;
|
|
171
171
|
passName?: string;
|
|
172
172
|
membershipName?: string;
|
|
@@ -193,7 +193,7 @@ export type EventAttendeeRecord = {
|
|
|
193
193
|
occurrenceId: string | null;
|
|
194
194
|
name: string;
|
|
195
195
|
email: string;
|
|
196
|
-
status:
|
|
196
|
+
status: 'registered' | 'attended' | 'cancelled';
|
|
197
197
|
registeredAt: string;
|
|
198
198
|
};
|
|
199
199
|
export type EventOnlineDetails = {
|
|
@@ -206,18 +206,18 @@ export type EventOnlineDetailsInput = {
|
|
|
206
206
|
accessCode?: string | null;
|
|
207
207
|
notes?: string | null;
|
|
208
208
|
};
|
|
209
|
-
export type StaffAssignmentMode =
|
|
209
|
+
export type StaffAssignmentMode = 'inherit' | 'override';
|
|
210
210
|
export type EventOccurrenceOverrides = {
|
|
211
211
|
title?: string;
|
|
212
212
|
description?: string;
|
|
213
213
|
venueId?: string;
|
|
214
214
|
[key: string]: unknown;
|
|
215
215
|
};
|
|
216
|
-
export type EventOccurrenceStatus =
|
|
216
|
+
export type EventOccurrenceStatus = 'scheduled' | 'cancelled' | 'completed';
|
|
217
217
|
export type EventOccurrenceDeletionEligibility = {
|
|
218
|
-
kind:
|
|
218
|
+
kind: 'allowed';
|
|
219
219
|
} | {
|
|
220
|
-
kind:
|
|
220
|
+
kind: 'blocked_by_registrations';
|
|
221
221
|
registrations: number;
|
|
222
222
|
};
|
|
223
223
|
export type EventOccurrenceRecord = {
|
|
@@ -341,8 +341,8 @@ export type BookingPassRecord = {
|
|
|
341
341
|
priceCurrency: string;
|
|
342
342
|
stripeProductId: string | null;
|
|
343
343
|
stripePriceId: string | null;
|
|
344
|
-
productUseCase:
|
|
345
|
-
appointmentScopeMode:
|
|
344
|
+
productUseCase: 'event_pass' | 'appointment_package';
|
|
345
|
+
appointmentScopeMode: 'all_services' | 'selected_services' | null;
|
|
346
346
|
appointmentServiceIds: string[];
|
|
347
347
|
eligibleCategoryIds: string[];
|
|
348
348
|
isActive: boolean;
|
|
@@ -358,8 +358,8 @@ export type CreateBookingPassRequest = {
|
|
|
358
358
|
creditsTotal: number;
|
|
359
359
|
priceAmount: number;
|
|
360
360
|
validDays?: number | null;
|
|
361
|
-
productUseCase?:
|
|
362
|
-
appointmentScopeMode?:
|
|
361
|
+
productUseCase?: 'event_pass' | 'appointment_package';
|
|
362
|
+
appointmentScopeMode?: 'all_services' | 'selected_services' | null;
|
|
363
363
|
appointmentServiceIds?: string[];
|
|
364
364
|
eligibleCategoryIds?: string[];
|
|
365
365
|
isActive?: boolean;
|
|
@@ -369,8 +369,8 @@ export type UpdateBookingPassRequest = {
|
|
|
369
369
|
description?: string | null;
|
|
370
370
|
priceAmount?: number;
|
|
371
371
|
validDays?: number | null;
|
|
372
|
-
productUseCase?:
|
|
373
|
-
appointmentScopeMode?:
|
|
372
|
+
productUseCase?: 'event_pass' | 'appointment_package';
|
|
373
|
+
appointmentScopeMode?: 'all_services' | 'selected_services' | null;
|
|
374
374
|
appointmentServiceIds?: string[];
|
|
375
375
|
eligibleCategoryIds?: string[];
|
|
376
376
|
isActive?: boolean;
|
|
@@ -383,7 +383,7 @@ export type ListBookingPassesResponse = {
|
|
|
383
383
|
};
|
|
384
384
|
export type BookingPassResponse = {
|
|
385
385
|
pass: BookingPassRecord;
|
|
386
|
-
outcome?:
|
|
386
|
+
outcome?: 'deleted' | 'archived';
|
|
387
387
|
};
|
|
388
388
|
export type BookingMembershipRecord = {
|
|
389
389
|
id: string;
|
|
@@ -392,7 +392,7 @@ export type BookingMembershipRecord = {
|
|
|
392
392
|
description: string | null;
|
|
393
393
|
priceAmount: number;
|
|
394
394
|
priceCurrency: string;
|
|
395
|
-
billingInterval:
|
|
395
|
+
billingInterval: 'month' | 'year';
|
|
396
396
|
stripeProductId: string | null;
|
|
397
397
|
stripePriceId: string | null;
|
|
398
398
|
includesUnlimitedEvents: boolean;
|
|
@@ -408,7 +408,7 @@ export type CreateBookingMembershipRequest = {
|
|
|
408
408
|
name: string;
|
|
409
409
|
description?: string | null;
|
|
410
410
|
priceAmount: number;
|
|
411
|
-
billingInterval:
|
|
411
|
+
billingInterval: 'month' | 'year';
|
|
412
412
|
eligibleCategoryIds?: string[];
|
|
413
413
|
isActive?: boolean;
|
|
414
414
|
};
|
|
@@ -416,7 +416,7 @@ export type UpdateBookingMembershipRequest = {
|
|
|
416
416
|
name?: string;
|
|
417
417
|
description?: string | null;
|
|
418
418
|
priceAmount?: number;
|
|
419
|
-
billingInterval?:
|
|
419
|
+
billingInterval?: 'month' | 'year';
|
|
420
420
|
eligibleCategoryIds?: string[];
|
|
421
421
|
isActive?: boolean;
|
|
422
422
|
};
|
|
@@ -428,7 +428,7 @@ export type ListBookingMembershipsRequest = {
|
|
|
428
428
|
};
|
|
429
429
|
export type BookingMembershipResponse = {
|
|
430
430
|
membership: BookingMembershipRecord;
|
|
431
|
-
outcome?:
|
|
431
|
+
outcome?: 'deleted' | 'archived';
|
|
432
432
|
};
|
|
433
433
|
export type BookingCustomerWithCounts = {
|
|
434
434
|
id: string;
|
|
@@ -440,11 +440,11 @@ export type BookingCustomerWithCounts = {
|
|
|
440
440
|
activePassesCount: number;
|
|
441
441
|
activeMembershipsCount: number;
|
|
442
442
|
};
|
|
443
|
-
export type CustomerLifecycleSegmentCode =
|
|
444
|
-
export type CustomerLifecycleFlagCode =
|
|
445
|
-
export type CustomerAggregateCoverage =
|
|
446
|
-
export type CustomerFinancialCoverage =
|
|
447
|
-
export type CustomerWaitlistStatus =
|
|
443
|
+
export type CustomerLifecycleSegmentCode = 'new' | 'active' | 'at_risk' | 'lapsed' | 'unclassified';
|
|
444
|
+
export type CustomerLifecycleFlagCode = 'high_value';
|
|
445
|
+
export type CustomerAggregateCoverage = 'available' | 'unavailable' | 'deferred';
|
|
446
|
+
export type CustomerFinancialCoverage = 'available' | 'no_completed_payments' | 'mixed_currency' | 'unavailable';
|
|
447
|
+
export type CustomerWaitlistStatus = 'none' | 'waiting' | 'hold_active' | 'multiple';
|
|
448
448
|
export type CustomerBookingActivitySummary = {
|
|
449
449
|
firstBookingAt: string | null;
|
|
450
450
|
lastCompletedBookingAt: string | null;
|
|
@@ -459,24 +459,24 @@ export type CustomerBookingActivitySummary = {
|
|
|
459
459
|
noShowCoverage: CustomerAggregateCoverage;
|
|
460
460
|
};
|
|
461
461
|
export type CustomerFinancialValue = {
|
|
462
|
-
coverage:
|
|
462
|
+
coverage: 'available';
|
|
463
463
|
currency: string;
|
|
464
464
|
lifetimePaidCents: number;
|
|
465
465
|
lifetimeRefundedCents: number;
|
|
466
466
|
lifetimeNetCents: number;
|
|
467
467
|
} | {
|
|
468
|
-
coverage: Exclude<CustomerFinancialCoverage,
|
|
468
|
+
coverage: Exclude<CustomerFinancialCoverage, 'available'>;
|
|
469
469
|
currency: string | null;
|
|
470
470
|
lifetimePaidCents: null;
|
|
471
471
|
lifetimeRefundedCents: null;
|
|
472
472
|
lifetimeNetCents: null;
|
|
473
473
|
};
|
|
474
474
|
export type CustomerWaitlistSummary = {
|
|
475
|
-
coverage:
|
|
475
|
+
coverage: 'available';
|
|
476
476
|
status: CustomerWaitlistStatus;
|
|
477
477
|
count: number;
|
|
478
478
|
} | {
|
|
479
|
-
coverage:
|
|
479
|
+
coverage: 'deferred' | 'unavailable';
|
|
480
480
|
status: null;
|
|
481
481
|
count: null;
|
|
482
482
|
};
|
|
@@ -504,14 +504,14 @@ export type ListBookingCustomersResponse = {
|
|
|
504
504
|
total: number;
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
|
-
export type CustomerSortColumn =
|
|
508
|
-
export type CustomerFilter =
|
|
507
|
+
export type CustomerSortColumn = 'name' | 'email' | 'createdAt' | 'passesCount' | 'membershipsCount';
|
|
508
|
+
export type CustomerFilter = 'all' | 'hasActivePass' | 'hasActiveProducts' | 'hasMembership' | 'noProducts';
|
|
509
509
|
export type ListBookingCustomersRequest = {
|
|
510
510
|
page?: number;
|
|
511
511
|
limit?: number;
|
|
512
512
|
search?: string;
|
|
513
513
|
sortBy?: CustomerSortColumn;
|
|
514
|
-
sortDirection?:
|
|
514
|
+
sortDirection?: 'asc' | 'desc';
|
|
515
515
|
filter?: CustomerFilter;
|
|
516
516
|
includeAggregates?: boolean;
|
|
517
517
|
};
|
|
@@ -523,13 +523,13 @@ export type CreateBookingCustomerRequest = {
|
|
|
523
523
|
export type CreateBookingCustomerResponse = {
|
|
524
524
|
customer: BookingCustomerWithCounts;
|
|
525
525
|
};
|
|
526
|
-
export type CustomerContactField =
|
|
526
|
+
export type CustomerContactField = 'name' | 'email' | 'phone';
|
|
527
527
|
export type CustomerContactChange = {
|
|
528
528
|
field: CustomerContactField;
|
|
529
529
|
before: string | null;
|
|
530
530
|
after: string | null;
|
|
531
531
|
};
|
|
532
|
-
export type CustomerProfileRectificationSourceSurface =
|
|
532
|
+
export type CustomerProfileRectificationSourceSurface = 'appointment_booking' | 'event_registration' | 'retreat_registration' | 'course_enrollment';
|
|
533
533
|
export type CustomerProfileRectificationSourceContext = {
|
|
534
534
|
surface: CustomerProfileRectificationSourceSurface;
|
|
535
535
|
};
|
|
@@ -540,11 +540,11 @@ export type RectifyBookingCustomerProfileRequest = {
|
|
|
540
540
|
sourceContext?: CustomerProfileRectificationSourceContext | null;
|
|
541
541
|
};
|
|
542
542
|
export type RectifyBookingCustomerProfileResponse = {
|
|
543
|
-
status:
|
|
543
|
+
status: 'updated';
|
|
544
544
|
customer: BookingCustomerWithCounts;
|
|
545
545
|
changes: CustomerContactChange[];
|
|
546
546
|
} | {
|
|
547
|
-
status:
|
|
547
|
+
status: 'noop';
|
|
548
548
|
customer: BookingCustomerWithCounts;
|
|
549
549
|
changes: [];
|
|
550
550
|
};
|
|
@@ -556,7 +556,7 @@ export type BookingParticipantIdentityForRectification = {
|
|
|
556
556
|
email: string | null;
|
|
557
557
|
emailNormalized: string | null;
|
|
558
558
|
phone: string | null;
|
|
559
|
-
identityState:
|
|
559
|
+
identityState: 'contactable' | 'portal_claimed' | 'staff_verified';
|
|
560
560
|
updatedAt: string;
|
|
561
561
|
};
|
|
562
562
|
/**
|
|
@@ -566,7 +566,7 @@ export type BookingParticipantIdentityForRectification = {
|
|
|
566
566
|
* reserved for a future participant-record editor and is accepted by the API
|
|
567
567
|
* so that surface can ship without an additional contract change.
|
|
568
568
|
*/
|
|
569
|
-
export type ParticipantIdentityRectificationSourceSurface =
|
|
569
|
+
export type ParticipantIdentityRectificationSourceSurface = 'event_registration_guest' | 'participant_record';
|
|
570
570
|
export type ParticipantIdentityRectificationSourceContext = {
|
|
571
571
|
surface: ParticipantIdentityRectificationSourceSurface;
|
|
572
572
|
eventAttendeeId?: string | null;
|
|
@@ -580,12 +580,12 @@ export type RectifyBookingParticipantIdentityRequest = {
|
|
|
580
580
|
sourceContext?: ParticipantIdentityRectificationSourceContext | null;
|
|
581
581
|
};
|
|
582
582
|
export type RectifyBookingParticipantIdentityResponse = {
|
|
583
|
-
status:
|
|
583
|
+
status: 'updated';
|
|
584
584
|
participant: BookingParticipantIdentityForRectification;
|
|
585
585
|
auditEventId: string;
|
|
586
586
|
changes: CustomerContactChange[];
|
|
587
587
|
} | {
|
|
588
|
-
status:
|
|
588
|
+
status: 'noop';
|
|
589
589
|
participant: BookingParticipantIdentityForRectification;
|
|
590
590
|
changes: [];
|
|
591
591
|
};
|
|
@@ -600,7 +600,7 @@ export type CustomerPassRecord = {
|
|
|
600
600
|
pass: {
|
|
601
601
|
name: string;
|
|
602
602
|
description: string | null;
|
|
603
|
-
productUseCase:
|
|
603
|
+
productUseCase: 'event_pass' | 'appointment_package';
|
|
604
604
|
};
|
|
605
605
|
};
|
|
606
606
|
export type ListCustomerPassesResponse = {
|
|
@@ -644,7 +644,7 @@ export type CustomerMembershipRecord = {
|
|
|
644
644
|
membership: {
|
|
645
645
|
name: string;
|
|
646
646
|
description: string | null;
|
|
647
|
-
billingInterval:
|
|
647
|
+
billingInterval: 'month' | 'year';
|
|
648
648
|
};
|
|
649
649
|
};
|
|
650
650
|
export declare const CUSTOMER_MEMBERSHIP_STATUS_VALUES: readonly ["active", "trialing", "past_due", "paused", "canceled"];
|
|
@@ -688,14 +688,14 @@ export type ListSiteCustomerMembershipsResponse = {
|
|
|
688
688
|
customerMemberships: SiteCustomerMembershipRecord[];
|
|
689
689
|
count: number;
|
|
690
690
|
};
|
|
691
|
-
export type BookingPaymentKind =
|
|
692
|
-
export type BookingPaymentStatus =
|
|
693
|
-
export type BookingPaymentsView =
|
|
691
|
+
export type BookingPaymentKind = 'event' | 'pass_purchase' | 'membership_invoice' | 'course';
|
|
692
|
+
export type BookingPaymentStatus = 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'pending';
|
|
693
|
+
export type BookingPaymentsView = 'successful' | 'refunds' | 'failed' | 'pending' | 'all';
|
|
694
694
|
export type BookingPaymentListItem = {
|
|
695
695
|
id: string;
|
|
696
696
|
kind: BookingPaymentKind;
|
|
697
697
|
status: BookingPaymentStatus;
|
|
698
|
-
provider?:
|
|
698
|
+
provider?: 'stripe' | 'internal';
|
|
699
699
|
amountPaidCents: number;
|
|
700
700
|
amountSubtotalCents?: number;
|
|
701
701
|
amountRefundedCents: number;
|
|
@@ -785,7 +785,7 @@ export type BookingActivityListItem = {
|
|
|
785
785
|
currency: string | null;
|
|
786
786
|
payment: {
|
|
787
787
|
id: string | null;
|
|
788
|
-
provider: BookingPaymentListItem[
|
|
788
|
+
provider: BookingPaymentListItem['provider'] | null;
|
|
789
789
|
status: string | null;
|
|
790
790
|
method: string | null;
|
|
791
791
|
stripeCheckoutSessionId: string | null;
|
|
@@ -886,7 +886,7 @@ export type GetCustomerCreditResponse = {
|
|
|
886
886
|
} | null;
|
|
887
887
|
};
|
|
888
888
|
export type AdjustCustomerCreditRequest = {
|
|
889
|
-
kind:
|
|
889
|
+
kind: 'grant' | 'revoke';
|
|
890
890
|
amountCents: number;
|
|
891
891
|
currency?: string;
|
|
892
892
|
reason: string;
|
|
@@ -896,13 +896,13 @@ export type AdjustCustomerCreditResponse = {
|
|
|
896
896
|
transaction: BookingCustomerCreditTransactionListItem;
|
|
897
897
|
summary: BookingCustomerCreditSummary | null;
|
|
898
898
|
};
|
|
899
|
-
export type MoneyPeriodPreset =
|
|
900
|
-
export type MoneyItemKind =
|
|
901
|
-
export type MoneyPaymentsView =
|
|
902
|
-
export type MoneyTimeSeriesGranularity =
|
|
903
|
-
export type MoneyBreakdownDimension =
|
|
904
|
-
export type MoneyNonCashUsageKind =
|
|
905
|
-
export type MoneyReportIncompleteReason =
|
|
899
|
+
export type MoneyPeriodPreset = '1d' | '7d' | '30d' | '90d' | '365d';
|
|
900
|
+
export type MoneyItemKind = 'event' | 'course' | 'pass' | 'membership' | 'product';
|
|
901
|
+
export type MoneyPaymentsView = 'successful' | 'refunds' | 'all';
|
|
902
|
+
export type MoneyTimeSeriesGranularity = 'day' | 'week' | 'month';
|
|
903
|
+
export type MoneyBreakdownDimension = 'item_kind' | 'event' | 'event_category' | 'venue' | 'course' | 'pass' | 'membership' | 'product' | 'discount_code';
|
|
904
|
+
export type MoneyNonCashUsageKind = 'pass_redemption' | 'membership_access';
|
|
905
|
+
export type MoneyReportIncompleteReason = 'refund_history_incomplete' | 'missing_refund_processed_dates';
|
|
906
906
|
export type MoneyFilterQuery = {
|
|
907
907
|
period?: MoneyPeriodPreset;
|
|
908
908
|
from?: string;
|
|
@@ -936,13 +936,13 @@ export type MoneyReportSummary = {
|
|
|
936
936
|
netRevenueCents: MoneyComparisonMetric;
|
|
937
937
|
discountCents: MoneyComparisonMetric;
|
|
938
938
|
tax: {
|
|
939
|
-
kind:
|
|
939
|
+
kind: 'hidden';
|
|
940
940
|
} | {
|
|
941
|
-
kind:
|
|
941
|
+
kind: 'visible';
|
|
942
942
|
taxCollectedCents: MoneyComparisonMetric;
|
|
943
943
|
};
|
|
944
944
|
orderCount: MoneyComparisonMetric;
|
|
945
|
-
|
|
945
|
+
averageCollectedPerOrderCents: MoneyComparisonMetric;
|
|
946
946
|
};
|
|
947
947
|
export type MoneyTimeSeriesBucket = {
|
|
948
948
|
bucketStart: string;
|
|
@@ -976,7 +976,7 @@ export type MoneyNonCashUsageRow = {
|
|
|
976
976
|
usageCount: number;
|
|
977
977
|
};
|
|
978
978
|
export type MoneyNonCashUsageSection = {
|
|
979
|
-
dimension:
|
|
979
|
+
dimension: 'event' | 'course';
|
|
980
980
|
rows: MoneyNonCashUsageRow[];
|
|
981
981
|
};
|
|
982
982
|
export type GetMoneyReportRequest = MoneyFilterQuery;
|
|
@@ -994,29 +994,94 @@ export type GetMoneyReportResponse = {
|
|
|
994
994
|
};
|
|
995
995
|
export type MoneyPaymentListItem = {
|
|
996
996
|
id: string;
|
|
997
|
-
orderId: string
|
|
997
|
+
orderId: string;
|
|
998
998
|
orderNumber: string | null;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
999
|
+
allocation: {
|
|
1000
|
+
kind: 'single';
|
|
1001
|
+
item: {
|
|
1002
|
+
kind: 'event';
|
|
1003
|
+
sourceLabel: string;
|
|
1004
|
+
eventAttendeeId: string;
|
|
1005
|
+
} | {
|
|
1006
|
+
kind: 'course';
|
|
1007
|
+
sourceLabel: string;
|
|
1008
|
+
courseId: string;
|
|
1009
|
+
courseEnrollmentId: string;
|
|
1010
|
+
} | {
|
|
1011
|
+
kind: 'pass';
|
|
1012
|
+
sourceLabel: string;
|
|
1013
|
+
customerPassId: string;
|
|
1014
|
+
} | {
|
|
1015
|
+
kind: 'membership';
|
|
1016
|
+
sourceLabel: string;
|
|
1017
|
+
customerMembershipId: string;
|
|
1018
|
+
} | {
|
|
1019
|
+
kind: 'product';
|
|
1020
|
+
sourceLabel: string;
|
|
1021
|
+
};
|
|
1022
|
+
} | {
|
|
1023
|
+
kind: 'multiple';
|
|
1024
|
+
itemKinds: readonly MoneyItemKind[];
|
|
1025
|
+
sourceLabels: readonly string[];
|
|
1026
|
+
} | {
|
|
1027
|
+
kind: 'unresolved';
|
|
1028
|
+
itemKinds: readonly MoneyItemKind[];
|
|
1029
|
+
sourceLabels: readonly string[];
|
|
1030
|
+
};
|
|
1031
|
+
refundAccess: {
|
|
1032
|
+
kind: 'entity';
|
|
1033
|
+
target: {
|
|
1034
|
+
kind: 'event';
|
|
1035
|
+
sourceLabel: string;
|
|
1036
|
+
eventAttendeeId: string;
|
|
1037
|
+
} | {
|
|
1038
|
+
kind: 'course';
|
|
1039
|
+
sourceLabel: string;
|
|
1040
|
+
courseId: string;
|
|
1041
|
+
courseEnrollmentId: string;
|
|
1042
|
+
} | {
|
|
1043
|
+
kind: 'pass';
|
|
1044
|
+
sourceLabel: string;
|
|
1045
|
+
customerPassId: string;
|
|
1046
|
+
} | {
|
|
1047
|
+
kind: 'membership';
|
|
1048
|
+
sourceLabel: string;
|
|
1049
|
+
customerMembershipId: string;
|
|
1050
|
+
};
|
|
1051
|
+
onlineAction: {
|
|
1052
|
+
kind: 'available';
|
|
1053
|
+
} | {
|
|
1054
|
+
kind: 'unavailable';
|
|
1055
|
+
reason: 'manual_receipt' | 'inferred_receipt' | 'provider_target_mismatch' | 'fully_refunded' | 'refund_attribution_pending';
|
|
1056
|
+
};
|
|
1057
|
+
} | {
|
|
1058
|
+
kind: 'unavailable';
|
|
1059
|
+
reason: 'multiple_allocations' | 'unresolved_allocation' | 'product';
|
|
1060
|
+
};
|
|
1061
|
+
status: 'paid' | 'partially_refunded' | 'refunded' | 'refund_attribution_pending';
|
|
1062
|
+
purpose: 'initial_checkout' | 'flexible_balance_paydown' | 'instalment' | 'instalment_payoff' | 'subscription_renewal';
|
|
1063
|
+
rail: 'stripe_checkout' | 'stripe_invoice' | 'manual';
|
|
1064
|
+
provenance: 'live' | 'backfilled_exact' | 'backfilled_inferred';
|
|
1065
|
+
paymentMethod: 'stripe' | 'mixed' | 'store_credit' | 'pass_redemption' | 'membership_access' | 'free' | 'manual' | 'waived' | null;
|
|
1066
|
+
provider: 'stripe' | 'internal';
|
|
1003
1067
|
amountPaidCents: number;
|
|
1004
|
-
amountSubtotalCents
|
|
1005
|
-
|
|
1006
|
-
|
|
1068
|
+
amountSubtotalCents: number;
|
|
1069
|
+
knownRefundedCents: number;
|
|
1070
|
+
amountRefundedCents: number | null;
|
|
1071
|
+
amountDiscountCents: number;
|
|
1007
1072
|
currency: string;
|
|
1073
|
+
orderTotalCents: number;
|
|
1074
|
+
orderCollectedCents: number;
|
|
1075
|
+
orderOutstandingCents: number;
|
|
1076
|
+
paymentDueAt: string | null;
|
|
1008
1077
|
createdAt: string;
|
|
1009
1078
|
stripeCheckoutSessionId: string | null;
|
|
1010
1079
|
stripePaymentIntentId: string | null;
|
|
1011
1080
|
stripeInvoiceId: string | null;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
courseEnrollmentId?: string | null;
|
|
1016
|
-
discountCode?: string | null;
|
|
1017
|
-
discountPublicLabel?: string | null;
|
|
1081
|
+
stripeAccountId: string | null;
|
|
1082
|
+
discountCode: string | null;
|
|
1083
|
+
discountPublicLabel: string | null;
|
|
1018
1084
|
customer: SiteCustomerRecord | null;
|
|
1019
|
-
sourceLabel: string;
|
|
1020
1085
|
};
|
|
1021
1086
|
export type ListMoneyPaymentsRequest = MoneyFilterQuery & {
|
|
1022
1087
|
search?: string;
|
|
@@ -1034,12 +1099,12 @@ export type ListMoneyPaymentsResponse = {
|
|
|
1034
1099
|
hasMore: boolean;
|
|
1035
1100
|
};
|
|
1036
1101
|
};
|
|
1037
|
-
export type DiscountCodeType =
|
|
1038
|
-
export type DiscountPerEmailLimit =
|
|
1039
|
-
export type DiscountMembershipDuration =
|
|
1040
|
-
export type DiscountEventScopeMode =
|
|
1041
|
-
export type DiscountScopeMode =
|
|
1042
|
-
export type ProductScopeMode =
|
|
1102
|
+
export type DiscountCodeType = 'percent' | 'fixed';
|
|
1103
|
+
export type DiscountPerEmailLimit = 'once' | 'unlimited';
|
|
1104
|
+
export type DiscountMembershipDuration = 'once' | 'forever';
|
|
1105
|
+
export type DiscountEventScopeMode = 'all_categories' | 'categories' | 'event_series';
|
|
1106
|
+
export type DiscountScopeMode = 'all' | 'selected';
|
|
1107
|
+
export type ProductScopeMode = 'all' | 'categories' | 'selected';
|
|
1043
1108
|
export type DiscountCodeRecord = {
|
|
1044
1109
|
id: string;
|
|
1045
1110
|
siteId: string;
|
|
@@ -1087,16 +1152,16 @@ export type DiscountCodeScopeIds = {
|
|
|
1087
1152
|
export type DiscountCodeDetails = DiscountCodeRecord & {
|
|
1088
1153
|
scopes: DiscountCodeScopeIds;
|
|
1089
1154
|
};
|
|
1090
|
-
export type CreateDiscountCodeRequest = (Omit<DiscountCodeRecord,
|
|
1091
|
-
discountType:
|
|
1155
|
+
export type CreateDiscountCodeRequest = (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
|
|
1156
|
+
discountType: 'percent';
|
|
1092
1157
|
discountPercent: number;
|
|
1093
1158
|
discountAmountCents?: never;
|
|
1094
1159
|
autoApply?: boolean;
|
|
1095
1160
|
eventMinTicketsEnabled?: boolean;
|
|
1096
1161
|
eventMinTickets?: number | null;
|
|
1097
1162
|
scopeIds?: Partial<DiscountCodeScopeIds>;
|
|
1098
|
-
}) | (Omit<DiscountCodeRecord,
|
|
1099
|
-
discountType:
|
|
1163
|
+
}) | (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
|
|
1164
|
+
discountType: 'fixed';
|
|
1100
1165
|
discountAmountCents: number;
|
|
1101
1166
|
discountPercent?: never;
|
|
1102
1167
|
autoApply?: boolean;
|
|
@@ -1134,18 +1199,18 @@ type EventAutoApplyDiscountPreviewBase = {
|
|
|
1134
1199
|
minTicketsRequired: number | null;
|
|
1135
1200
|
};
|
|
1136
1201
|
export type EventAutoApplyDiscountPreview = (EventAutoApplyDiscountPreviewBase & {
|
|
1137
|
-
discountType:
|
|
1202
|
+
discountType: 'percent';
|
|
1138
1203
|
discountPercent: number;
|
|
1139
1204
|
discountAmountCents: null;
|
|
1140
1205
|
}) | (EventAutoApplyDiscountPreviewBase & {
|
|
1141
|
-
discountType:
|
|
1206
|
+
discountType: 'fixed';
|
|
1142
1207
|
discountPercent: null;
|
|
1143
1208
|
discountAmountCents: number;
|
|
1144
1209
|
});
|
|
1145
1210
|
export type DeleteDiscountCodeResponse = {
|
|
1146
1211
|
success: boolean;
|
|
1147
1212
|
};
|
|
1148
|
-
export type DiscountRedemptionStatus =
|
|
1213
|
+
export type DiscountRedemptionStatus = 'pending' | 'redeemed' | 'released' | 'expired';
|
|
1149
1214
|
export type DiscountRedemptionListItem = {
|
|
1150
1215
|
id: string;
|
|
1151
1216
|
siteId: string;
|
|
@@ -1194,12 +1259,12 @@ export type ListDiscountRedemptionsResponse = {
|
|
|
1194
1259
|
export type ListCustomerAttendancesRequest = {
|
|
1195
1260
|
limit?: number;
|
|
1196
1261
|
offset?: number;
|
|
1197
|
-
status?:
|
|
1262
|
+
status?: 'confirmed' | 'waitlist' | 'cancelled';
|
|
1198
1263
|
};
|
|
1199
|
-
export type CustomerAttendancePaymentMethod =
|
|
1200
|
-
export type CustomerAttendancePaymentStatus =
|
|
1264
|
+
export type CustomerAttendancePaymentMethod = 'free' | 'pass' | 'membership' | 'stripe';
|
|
1265
|
+
export type CustomerAttendancePaymentStatus = 'not_required' | 'pending' | 'completed' | 'failed' | 'refunded';
|
|
1201
1266
|
export type CustomerAttendanceLivePayment = {
|
|
1202
|
-
kind:
|
|
1267
|
+
kind: 'live';
|
|
1203
1268
|
method: CustomerAttendancePaymentMethod;
|
|
1204
1269
|
status: CustomerAttendancePaymentStatus;
|
|
1205
1270
|
isAdminAdded?: boolean;
|
|
@@ -1209,13 +1274,13 @@ export type CustomerAttendanceLivePayment = {
|
|
|
1209
1274
|
currency: string | null;
|
|
1210
1275
|
};
|
|
1211
1276
|
export type CustomerAttendanceArchivedPayment = {
|
|
1212
|
-
kind:
|
|
1277
|
+
kind: 'archived';
|
|
1213
1278
|
};
|
|
1214
1279
|
export type CustomerAttendancePayment = CustomerAttendanceLivePayment | CustomerAttendanceArchivedPayment;
|
|
1215
1280
|
export type CustomerAttendanceRecord = {
|
|
1216
1281
|
id: string;
|
|
1217
1282
|
ticketsCount: number;
|
|
1218
|
-
status:
|
|
1283
|
+
status: 'confirmed' | 'waitlist' | 'cancelled';
|
|
1219
1284
|
createdAt: string;
|
|
1220
1285
|
event: {
|
|
1221
1286
|
title: string;
|