@riverbankcms/sdk 0.129.0 → 0.130.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 +51 -266
- package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
- package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
- package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +14 -21
- package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
- package/dist/_dts/api/src/index.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
- package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- package/dist/_dts/sdk/src/config/types.d.ts +5 -4
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +142 -0
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
- package/dist/client/bookings.mjs +1028 -1038
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
- package/dist/client/client.mjs +18324 -18224
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
- package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
- package/dist/client/hooks.mjs +4550 -4211
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
- package/dist/client/rendering/client.mjs +3606 -4078
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +15969 -15843
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +16 -27
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +16 -27
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
- package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
- package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
- package/dist/server/components.mjs +17802 -17875
- package/dist/server/config-validation.mjs +4729 -4416
- package/dist/server/config.mjs +4733 -4420
- package/dist/server/data.mjs +4533 -4211
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +17 -28
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +17635 -17676
- package/dist/server/page-converter.mjs +3759 -4386
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +18960 -19049
- package/dist/server/rendering.mjs +17848 -17902
- package/dist/server/routing.mjs +4776 -4323
- package/dist/server/server.mjs +4609 -4264
- package/dist/server/theme-bridge.mjs +1361 -1850
- package/dist/server/theme.mjs +736 -605
- package/dist/styles/index.css +22 -3
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162988
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface SdkEventCategoryUpsertInput {
|
|
2
|
+
identifier: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
color?: string | null;
|
|
6
|
+
sortOrder?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface SdkEventSchedule {
|
|
9
|
+
recurrenceRule: string | null;
|
|
10
|
+
startDate?: string | null;
|
|
11
|
+
timezone?: string | null;
|
|
12
|
+
defaultStartTime: string;
|
|
13
|
+
durationMinutes: number;
|
|
14
|
+
}
|
|
15
|
+
export type SdkEventStartEndScheduleInput = {
|
|
16
|
+
/** Start/end schedules are currently supported for one-off SDK-managed events only. */
|
|
17
|
+
recurrenceRule?: null;
|
|
18
|
+
/** ISO datetime. Local datetime strings are treated as event-local wall time. */
|
|
19
|
+
startsAt: string;
|
|
20
|
+
/** ISO datetime. Must be after startsAt and no more than the shared event duration maximum. */
|
|
21
|
+
endsAt: string;
|
|
22
|
+
durationMinutes?: never;
|
|
23
|
+
};
|
|
24
|
+
export type SdkEventStartDurationScheduleInput = {
|
|
25
|
+
/** Start/duration schedules are currently supported for one-off SDK-managed events only. */
|
|
26
|
+
recurrenceRule?: null;
|
|
27
|
+
/** ISO datetime. Local datetime strings are treated as event-local wall time. */
|
|
28
|
+
startsAt: string;
|
|
29
|
+
/** Must be no more than the shared event duration maximum. */
|
|
30
|
+
durationMinutes: number;
|
|
31
|
+
endsAt?: never;
|
|
32
|
+
};
|
|
33
|
+
export type SdkEventUpsertScheduleInput = SdkEventSchedule | SdkEventStartEndScheduleInput | SdkEventStartDurationScheduleInput;
|
|
34
|
+
export interface SdkVenueUpsertInput {
|
|
35
|
+
slug: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description?: string | null;
|
|
38
|
+
timezone?: string | null;
|
|
39
|
+
capacity?: number | null;
|
|
40
|
+
address?: {
|
|
41
|
+
line1?: string;
|
|
42
|
+
line2?: string;
|
|
43
|
+
city?: string;
|
|
44
|
+
region?: string;
|
|
45
|
+
postcode?: string;
|
|
46
|
+
country?: string;
|
|
47
|
+
};
|
|
48
|
+
location?: {
|
|
49
|
+
lat?: number;
|
|
50
|
+
lng?: number;
|
|
51
|
+
} | null;
|
|
52
|
+
mapEmbed?: string | null;
|
|
53
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import type { SdkEventSchedule } from './sdk-event-management';
|
|
2
|
+
export type SdkPullEventOccurrence = Readonly<{
|
|
3
|
+
startsAt: string;
|
|
4
|
+
endsAt: string;
|
|
5
|
+
timeZone: string;
|
|
6
|
+
}>;
|
|
1
7
|
export type SdkEventScheduleIssue = Readonly<{
|
|
2
8
|
path: readonly string[];
|
|
3
9
|
message: string;
|
|
4
10
|
}>;
|
|
5
|
-
export type SdkEventCanonicalSchedule = Readonly<
|
|
6
|
-
recurrenceRule: string | null;
|
|
7
|
-
startDate?: string | null;
|
|
8
|
-
defaultStartTime: string;
|
|
9
|
-
durationMinutes: number;
|
|
10
|
-
}>;
|
|
11
|
+
export type SdkEventCanonicalSchedule = Readonly<SdkEventSchedule>;
|
|
11
12
|
export type SdkEventScheduleInput = Readonly<{
|
|
12
13
|
recurrenceRule?: string | null;
|
|
13
14
|
startDate?: string | null;
|
|
15
|
+
timezone?: string | null;
|
|
14
16
|
defaultStartTime?: string | null;
|
|
15
17
|
durationMinutes?: number | null;
|
|
16
18
|
startsAt?: string | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { SdkEntryUpsertSlotBlock, SdkEventContentInput,
|
|
1
|
+
import type { SdkEntryUpsertSlotBlock, SdkEventContentInput, SdkPullEvent, SdkPullEventRun, SdkEventUpsertPaymentTermsInput, SdkEventUpsertPricingInput, SdkEventUpsertScheduleInput } from './sdkContracts';
|
|
2
|
+
import { type BookingTimeZone, type UtcIsoDateTimeString } from '../../core/src/index';
|
|
2
3
|
import { type SdkEventPaymentTerms, type SdkEventPaymentTermsIssue } from './sdk-event-payment-terms';
|
|
3
4
|
import { type SdkEventPricing, type SdkEventPricingIssue } from './sdk-event-pricing';
|
|
4
|
-
import { type ClassifySdkEventScheduleOptions, type SdkEventCanonicalSchedule
|
|
5
|
+
import { type ClassifySdkEventScheduleOptions, type SdkEventCanonicalSchedule } from './sdk-event-schedule';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
export declare const sdkEventOccurrenceInputSchema: z.ZodObject<{
|
|
7
8
|
startsAt: z.ZodString;
|
|
@@ -41,55 +42,134 @@ export declare const sdkEventUpsertOptionalFieldSchemas: {
|
|
|
41
42
|
}, z.core.$strip>>>;
|
|
42
43
|
readonly capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
44
|
};
|
|
44
|
-
export type
|
|
45
|
+
export type SdkEventBookingScope = SdkPullEventRun['bookingScope'];
|
|
46
|
+
export type SdkEventOccurrenceInput = Readonly<{
|
|
47
|
+
startsAt: string;
|
|
48
|
+
endsAt: string;
|
|
49
|
+
timeZone: string;
|
|
50
|
+
}>;
|
|
51
|
+
export type ValidatedSdkEventOccurrence = Readonly<{
|
|
52
|
+
startsAt: UtcIsoDateTimeString;
|
|
53
|
+
endsAt: UtcIsoDateTimeString;
|
|
54
|
+
timeZone: BookingTimeZone;
|
|
55
|
+
}>;
|
|
56
|
+
export type NonEmptySdkEventOccurrences = readonly [
|
|
57
|
+
ValidatedSdkEventOccurrence,
|
|
58
|
+
...ValidatedSdkEventOccurrence[]
|
|
59
|
+
];
|
|
60
|
+
export type SdkEventTimingAuthority = Readonly<{
|
|
61
|
+
kind: 'authored_schedule';
|
|
62
|
+
schedule: SdkEventCanonicalSchedule;
|
|
63
|
+
bookingScope?: SdkEventBookingScope;
|
|
64
|
+
}> | Readonly<{
|
|
65
|
+
kind: 'explicit_occurrences';
|
|
66
|
+
bookingScope: SdkEventBookingScope;
|
|
67
|
+
occurrences: NonEmptySdkEventOccurrences;
|
|
68
|
+
timeZone: BookingTimeZone;
|
|
69
|
+
}>;
|
|
70
|
+
export type SdkEventTimingIssue = Readonly<{
|
|
71
|
+
path: readonly string[];
|
|
72
|
+
message: string;
|
|
73
|
+
}>;
|
|
74
|
+
export type SdkEventTimingClassification = Readonly<{
|
|
75
|
+
ok: true;
|
|
76
|
+
timingAuthority: SdkEventTimingAuthority;
|
|
77
|
+
}> | Readonly<{
|
|
78
|
+
ok: false;
|
|
79
|
+
issues: readonly SdkEventTimingIssue[];
|
|
80
|
+
}>;
|
|
81
|
+
type SdkEventRunUpsertCommon = Readonly<{
|
|
45
82
|
identifier: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
visibility?: SdkPullEventSeries['visibility'];
|
|
51
|
-
preset?: SdkPullEventSeries['preset'];
|
|
52
|
-
bookingScope?: SdkPullEventSeries['bookingScope'];
|
|
53
|
-
occurrences?: SdkPullEventSeries['occurrences'];
|
|
54
|
-
schedule: SdkEventUpsertScheduleInput;
|
|
83
|
+
eventRef: string;
|
|
84
|
+
name?: string | null;
|
|
85
|
+
status?: SdkPullEventRun['status'];
|
|
86
|
+
visibility?: SdkPullEventRun['visibility'];
|
|
55
87
|
capacity?: number | null;
|
|
56
88
|
pricing?: SdkEventUpsertPricingInput;
|
|
57
89
|
paymentTerms?: SdkEventUpsertPaymentTermsInput;
|
|
58
90
|
venueRef?: string | null;
|
|
59
91
|
categoryRef?: string | null;
|
|
60
|
-
content?: SdkEventContentInput;
|
|
61
92
|
formRef?: string | null;
|
|
62
93
|
settings?: Record<string, unknown>;
|
|
63
94
|
presentation?: Record<string, unknown> | null;
|
|
64
95
|
tags?: string[];
|
|
96
|
+
}>;
|
|
97
|
+
type SdkEventRunAuthoredScheduleInput = Readonly<{
|
|
98
|
+
schedule: SdkEventUpsertScheduleInput;
|
|
99
|
+
occurrences?: readonly [];
|
|
100
|
+
bookingScope?: SdkEventBookingScope;
|
|
101
|
+
}>;
|
|
102
|
+
type SdkEventRunExplicitOccurrencesInput = Readonly<{
|
|
103
|
+
occurrences: readonly [SdkEventOccurrenceInput, ...SdkEventOccurrenceInput[]];
|
|
104
|
+
bookingScope: SdkEventBookingScope;
|
|
105
|
+
schedule?: SdkEventUpsertScheduleInput;
|
|
106
|
+
}>;
|
|
107
|
+
export type SdkEventRunUpsertBody = SdkEventRunUpsertCommon & (SdkEventRunAuthoredScheduleInput | SdkEventRunExplicitOccurrencesInput);
|
|
108
|
+
export type SdkEventUpsertBody = Readonly<{
|
|
109
|
+
identifier: string;
|
|
110
|
+
title: string;
|
|
111
|
+
slug: string;
|
|
112
|
+
path?: string | null;
|
|
113
|
+
preset: SdkPullEvent['preset'];
|
|
114
|
+
runRefs: readonly [string, ...string[]];
|
|
115
|
+
content?: SdkEventContentInput;
|
|
65
116
|
blocks?: Record<string, SdkEntryUpsertSlotBlock[]>;
|
|
117
|
+
runs: readonly [SdkEventRunUpsertBody, ...SdkEventRunUpsertBody[]];
|
|
66
118
|
}>;
|
|
67
|
-
export type
|
|
68
|
-
|
|
119
|
+
export type ValidatedSdkEventRunUpsertInput = Omit<SdkEventRunUpsertCommon, 'pricing' | 'paymentTerms'> & Readonly<{
|
|
120
|
+
timingAuthority: SdkEventTimingAuthority;
|
|
69
121
|
pricing?: SdkEventPricing;
|
|
70
122
|
paymentTerms?: SdkEventPaymentTerms;
|
|
71
123
|
}>;
|
|
72
|
-
export type
|
|
73
|
-
schedule
|
|
124
|
+
export type SdkEventRunUpsertParseInput = Omit<SdkEventRunUpsertCommon, 'pricing' | 'paymentTerms'> & Readonly<{
|
|
125
|
+
schedule?: unknown;
|
|
126
|
+
occurrences?: readonly SdkEventOccurrenceInput[];
|
|
127
|
+
bookingScope?: SdkEventBookingScope;
|
|
74
128
|
pricing?: unknown;
|
|
75
129
|
paymentTerms?: unknown;
|
|
76
130
|
}>;
|
|
131
|
+
/** Legacy flat-series parser input retained for internal command adapters. */
|
|
132
|
+
export type SdkEventUpsertParseInput = Omit<SdkEventRunUpsertParseInput, 'identifier' | 'eventRef'> & Readonly<{
|
|
133
|
+
identifier: string;
|
|
134
|
+
title: string;
|
|
135
|
+
slug: string;
|
|
136
|
+
path?: string | null;
|
|
137
|
+
preset?: SdkPullEvent['preset'];
|
|
138
|
+
content?: SdkEventContentInput;
|
|
139
|
+
blocks?: Record<string, SdkEntryUpsertSlotBlock[]>;
|
|
140
|
+
}>;
|
|
77
141
|
export type SdkEventUpsertValidationIssue = Readonly<{
|
|
78
|
-
source: '
|
|
142
|
+
source: 'graph';
|
|
79
143
|
path: readonly string[];
|
|
80
144
|
message: string;
|
|
81
|
-
issue:
|
|
145
|
+
issue: Readonly<{
|
|
146
|
+
kind: 'incoherentParentRunGraph';
|
|
147
|
+
}>;
|
|
82
148
|
}> | Readonly<{
|
|
149
|
+
runIndex: number;
|
|
150
|
+
source: 'timing';
|
|
151
|
+
path: readonly string[];
|
|
152
|
+
message: string;
|
|
153
|
+
issue: SdkEventTimingIssue;
|
|
154
|
+
}> | Readonly<{
|
|
155
|
+
runIndex: number;
|
|
83
156
|
source: 'pricing';
|
|
84
157
|
path: readonly string[];
|
|
85
158
|
message: string;
|
|
86
159
|
issue: SdkEventPricingIssue;
|
|
87
160
|
}> | Readonly<{
|
|
161
|
+
runIndex: number;
|
|
88
162
|
source: 'paymentTerms';
|
|
89
163
|
path: readonly string[];
|
|
90
164
|
message: string;
|
|
91
165
|
issue: SdkEventPaymentTermsIssue;
|
|
92
166
|
}>;
|
|
167
|
+
export type ValidatedSdkEventUpsertInput = Omit<SdkEventUpsertBody, 'runs'> & Readonly<{
|
|
168
|
+
runs: readonly [
|
|
169
|
+
ValidatedSdkEventRunUpsertInput,
|
|
170
|
+
...ValidatedSdkEventRunUpsertInput[]
|
|
171
|
+
];
|
|
172
|
+
}>;
|
|
93
173
|
export type SdkEventUpsertValidationResult = Readonly<{
|
|
94
174
|
ok: true;
|
|
95
175
|
value: ValidatedSdkEventUpsertInput;
|
|
@@ -100,4 +180,16 @@ export type SdkEventUpsertValidationResult = Readonly<{
|
|
|
100
180
|
export type ParseSdkEventUpsertInputOptions = Readonly<{
|
|
101
181
|
schedule?: ClassifySdkEventScheduleOptions;
|
|
102
182
|
}>;
|
|
103
|
-
export declare function
|
|
183
|
+
export declare function classifySdkEventTiming(input: Readonly<{
|
|
184
|
+
schedule?: unknown;
|
|
185
|
+
bookingScope?: SdkEventBookingScope;
|
|
186
|
+
occurrences?: readonly SdkEventOccurrenceInput[];
|
|
187
|
+
}>, options?: ClassifySdkEventScheduleOptions): SdkEventTimingClassification;
|
|
188
|
+
export declare function parseSdkEventUpsertInput(input: Omit<SdkEventUpsertBody, 'runs'> & Readonly<{
|
|
189
|
+
runs: readonly [
|
|
190
|
+
SdkEventRunUpsertParseInput,
|
|
191
|
+
...SdkEventRunUpsertParseInput[]
|
|
192
|
+
];
|
|
193
|
+
}>, options?: ParseSdkEventUpsertInputOptions): SdkEventUpsertValidationResult;
|
|
194
|
+
export declare function toSdkEventUpsertBody(input: ValidatedSdkEventUpsertInput): SdkEventUpsertBody;
|
|
195
|
+
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput,
|
|
1
|
+
import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, Theme } from '../../blocks/src/index';
|
|
2
2
|
import type { ContentTypeSchema } from '../../content-model/src/index';
|
|
3
|
-
import type { FooterCompositionV1 } from '../../core/src/index';
|
|
3
|
+
import type { FooterCompositionV1, RichTextDoc } from '../../core/src/index';
|
|
4
4
|
import type { LinkPayload } from './navigation/types';
|
|
5
5
|
import type { JsonValue } from './shared-contracts';
|
|
6
6
|
import type { SdkEventPricing, SdkEventPricingInput } from './sdk-event-pricing';
|
|
7
7
|
import type { SdkEventPaymentTerms, SdkEventPaymentTermsInput } from './sdk-event-payment-terms';
|
|
8
|
-
import type {
|
|
8
|
+
import type { SdkPullEventOccurrence } from './sdk-event-schedule';
|
|
9
|
+
import type { SiteCommandApplicationResult } from '@riverbankcms/site-commands';
|
|
9
10
|
import type { EventPreset } from './bookingConfig';
|
|
11
|
+
import type { SdkThemeWire } from './sdkThemeWire';
|
|
12
|
+
import type { SdkManagementEvent, SdkManagementEventOccurrence, SdkManagementEventRun } from './sdkManagedEventContracts';
|
|
13
|
+
export type { SdkEventOccurrenceDeletionEligibility, SdkEventOccurrenceProvenance, SdkManagementEvent, SdkManagementEventOccurrence, SdkManagementEventRun, } from './sdkManagedEventContracts';
|
|
10
14
|
/**
|
|
11
15
|
* SDK Site Configuration Types
|
|
12
16
|
*
|
|
@@ -543,7 +547,7 @@ export interface SdkPullThemeMeta extends SdkPullMeta {
|
|
|
543
547
|
updatedAt: string | null;
|
|
544
548
|
}
|
|
545
549
|
export interface SdkPullThemeResponse {
|
|
546
|
-
theme:
|
|
550
|
+
theme: SdkThemeWire | null;
|
|
547
551
|
themeId: string | null;
|
|
548
552
|
selectionId: string | null;
|
|
549
553
|
/**
|
|
@@ -578,9 +582,9 @@ export interface SdkCatalogSiteStyle {
|
|
|
578
582
|
* `typography` object per style, not a preset-choice list (see deviation notes).
|
|
579
583
|
*/
|
|
580
584
|
typography: Theme['typography'];
|
|
581
|
-
/** Canonical header layout+style pair
|
|
585
|
+
/** Canonical header layout+style pair. */
|
|
582
586
|
defaultHeaderSelection: SdkCatalogHeaderLayoutStyleChoice;
|
|
583
|
-
|
|
587
|
+
recommendedHeaderSelections: SdkCatalogHeaderLayoutStyleChoice[];
|
|
584
588
|
recommendedFooterLookIds: string[];
|
|
585
589
|
}
|
|
586
590
|
export interface SdkCatalogButtonStyleSelection {
|
|
@@ -630,9 +634,7 @@ export interface SdkCatalogCurrentSelection {
|
|
|
630
634
|
/** The curated site style the active theme was compiled from (null when unknown). */
|
|
631
635
|
siteStyleId: string | null;
|
|
632
636
|
buttonStyleSelection: SdkCatalogButtonStyleSelection | null;
|
|
633
|
-
|
|
634
|
-
headerStyleId: string | null;
|
|
635
|
-
headerLookId: string | null;
|
|
637
|
+
headerSelection: SdkCatalogHeaderLayoutStyleChoice | null;
|
|
636
638
|
footerLookId: string | null;
|
|
637
639
|
}
|
|
638
640
|
export interface SdkCatalogThemeResponse {
|
|
@@ -640,7 +642,6 @@ export interface SdkCatalogThemeResponse {
|
|
|
640
642
|
buttonStyles: SdkCatalogButtonStyle[];
|
|
641
643
|
palettes: SdkCatalogPalette[];
|
|
642
644
|
typographyPresets: SdkCatalogTypographyPreset[];
|
|
643
|
-
headerLookIds: string[];
|
|
644
645
|
footerLookIds: string[];
|
|
645
646
|
headerLayoutIds: string[];
|
|
646
647
|
headerStyleIds: string[];
|
|
@@ -840,31 +841,13 @@ export interface SdkPullEventCategoriesResponse {
|
|
|
840
841
|
eventCategories: SdkPullEventCategory[];
|
|
841
842
|
meta: SdkPullMeta;
|
|
842
843
|
}
|
|
843
|
-
export interface
|
|
844
|
+
export interface SdkPullEvent {
|
|
844
845
|
identifier: string;
|
|
845
846
|
title: string;
|
|
846
847
|
slug: string;
|
|
847
848
|
path: string | null;
|
|
848
|
-
/**
|
|
849
|
-
* Mirrors `event_series.status` from the bookings system.
|
|
850
|
-
*
|
|
851
|
-
* IMPORTANT: This must be roundtrip-safe for SDK pull -> push workflows.
|
|
852
|
-
*/
|
|
853
|
-
status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
|
|
854
|
-
/**
|
|
855
|
-
* Mirrors `event_series.visibility` from the bookings system.
|
|
856
|
-
*
|
|
857
|
-
* IMPORTANT: This must be roundtrip-safe for SDK pull -> push workflows.
|
|
858
|
-
*/
|
|
859
|
-
visibility: 'private' | 'public' | 'unlisted';
|
|
860
849
|
preset: EventPreset;
|
|
861
|
-
|
|
862
|
-
occurrences: readonly SdkPullEventOccurrence[];
|
|
863
|
-
capacity: number | null;
|
|
864
|
-
pricing: SdkEventPricing;
|
|
865
|
-
paymentTerms?: SdkEventPaymentTerms;
|
|
866
|
-
venueRef: string | null;
|
|
867
|
-
categoryRef: string | null;
|
|
850
|
+
runRefs: readonly [string, ...string[]];
|
|
868
851
|
content: {
|
|
869
852
|
summary?: string;
|
|
870
853
|
body?: RichTextDoc;
|
|
@@ -873,20 +856,32 @@ export interface SdkPullEventSeries {
|
|
|
873
856
|
};
|
|
874
857
|
[key: string]: unknown;
|
|
875
858
|
};
|
|
859
|
+
updatedAt: string;
|
|
860
|
+
createdAt: string;
|
|
861
|
+
contentUpdatedAt: string | null;
|
|
862
|
+
blocks?: SdkEntrySlotBlocks;
|
|
863
|
+
}
|
|
864
|
+
export interface SdkPullEventRun {
|
|
865
|
+
identifier: string;
|
|
866
|
+
eventRef: string;
|
|
867
|
+
name: string | null;
|
|
868
|
+
status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
|
|
869
|
+
visibility: 'private' | 'public' | 'unlisted';
|
|
870
|
+
bookingScope: 'single_occurrence' | 'whole_series';
|
|
871
|
+
occurrences: readonly SdkPullEventOccurrence[];
|
|
872
|
+
capacity: number | null;
|
|
873
|
+
pricing: SdkEventPricing;
|
|
874
|
+
paymentTerms?: SdkEventPaymentTerms;
|
|
875
|
+
venueRef: string | null;
|
|
876
|
+
categoryRef: string | null;
|
|
876
877
|
formRef: string | null;
|
|
877
878
|
settings: Record<string, unknown>;
|
|
878
879
|
presentation: Record<string, unknown> | null;
|
|
879
880
|
tags: string[];
|
|
880
881
|
updatedAt: string;
|
|
881
882
|
createdAt: string;
|
|
882
|
-
contentUpdatedAt: string | null;
|
|
883
|
-
blocks?: SdkEntrySlotBlocks;
|
|
884
883
|
}
|
|
885
|
-
export type SdkPullEventOccurrence
|
|
886
|
-
startsAt: string;
|
|
887
|
-
endsAt: string;
|
|
888
|
-
timeZone: string;
|
|
889
|
-
}>;
|
|
884
|
+
export type { SdkPullEventOccurrence } from './sdk-event-schedule';
|
|
890
885
|
export type SdkEventContentInput = {
|
|
891
886
|
summary?: string;
|
|
892
887
|
body?: string | RichTextDoc;
|
|
@@ -924,7 +919,8 @@ export type SdkEventUpsertScheduleInput = SdkEventCanonicalScheduleInput | SdkEv
|
|
|
924
919
|
export type SdkEventUpsertPricingInput = SdkEventPricingInput;
|
|
925
920
|
export type SdkEventUpsertPaymentTermsInput = SdkEventPaymentTermsInput;
|
|
926
921
|
export interface SdkPullEventsResponse {
|
|
927
|
-
events:
|
|
922
|
+
events: SdkPullEvent[];
|
|
923
|
+
eventRuns: SdkPullEventRun[];
|
|
928
924
|
meta: SdkPullMeta;
|
|
929
925
|
}
|
|
930
926
|
export interface SdkPulledEntry {
|
|
@@ -985,6 +981,12 @@ export interface SdkPullEntriesAllResponse {
|
|
|
985
981
|
truncation: SdkPullTruncationMeta;
|
|
986
982
|
};
|
|
987
983
|
}
|
|
984
|
+
/**
|
|
985
|
+
* Canonical wire representation of a site-command mutation. Management
|
|
986
|
+
* authorities must return the command application result unchanged so clients
|
|
987
|
+
* never reconstruct created/updated/unchanged meaning from resource metadata.
|
|
988
|
+
*/
|
|
989
|
+
export type SdkCommandApplicationResult<T> = SiteCommandApplicationResult<T>;
|
|
988
990
|
export interface SdkManagementPage {
|
|
989
991
|
id: string;
|
|
990
992
|
identifier: string;
|
|
@@ -1030,34 +1032,6 @@ export type SdkManagementVenue = SdkPullVenue & {
|
|
|
1030
1032
|
export type SdkManagementEventCategory = SdkPullEventCategory & {
|
|
1031
1033
|
id: string;
|
|
1032
1034
|
};
|
|
1033
|
-
export type SdkManagementEventSeries = SdkPullEventSeries & {
|
|
1034
|
-
id: string;
|
|
1035
|
-
schedule: SdkEventCanonicalScheduleInput;
|
|
1036
|
-
};
|
|
1037
|
-
export type SdkEventOccurrenceProvenance = 'manual' | 'recurrence_generated' | 'recurrence_exception';
|
|
1038
|
-
export type SdkEventOccurrenceDeletionEligibility = {
|
|
1039
|
-
kind: 'allowed';
|
|
1040
|
-
} | {
|
|
1041
|
-
kind: 'blocked_by_registrations';
|
|
1042
|
-
registrations: number;
|
|
1043
|
-
} | {
|
|
1044
|
-
kind: 'blocked_generated_occurrence';
|
|
1045
|
-
} | {
|
|
1046
|
-
kind: 'blocked_completed_occurrence';
|
|
1047
|
-
};
|
|
1048
|
-
export interface SdkManagementEventOccurrence {
|
|
1049
|
-
id: string;
|
|
1050
|
-
seriesId: string;
|
|
1051
|
-
startsAt: string;
|
|
1052
|
-
endsAt: string;
|
|
1053
|
-
timeZone: string;
|
|
1054
|
-
status: EventOccurrenceStatus;
|
|
1055
|
-
provenance: SdkEventOccurrenceProvenance;
|
|
1056
|
-
capacityOverride: number | null;
|
|
1057
|
-
capacity: number | null;
|
|
1058
|
-
registrations: number;
|
|
1059
|
-
deletionEligibility: SdkEventOccurrenceDeletionEligibility;
|
|
1060
|
-
}
|
|
1061
1035
|
export type SdkEventOccurrenceScheduleInput = {
|
|
1062
1036
|
startsAt: string;
|
|
1063
1037
|
endsAt: string;
|
|
@@ -1083,9 +1057,7 @@ export type SdkUpdateEventOccurrenceRequest = {
|
|
|
1083
1057
|
schedule?: never;
|
|
1084
1058
|
capacity: SdkEventOccurrenceCapacityIntent;
|
|
1085
1059
|
};
|
|
1086
|
-
export
|
|
1087
|
-
page: SdkManagementPage;
|
|
1088
|
-
}
|
|
1060
|
+
export type SdkPageResponse = SdkCommandApplicationResult<SdkManagementPage>;
|
|
1089
1061
|
export type SdkUpsertPageResponse = SdkPageResponse & SdkPublicationStageFields<SdkPagePublishErrorCode>;
|
|
1090
1062
|
export interface SdkDraftPage {
|
|
1091
1063
|
identifier: string;
|
|
@@ -1111,14 +1083,13 @@ export interface SdkPullDraftsResponse {
|
|
|
1111
1083
|
};
|
|
1112
1084
|
meta: SdkPullMeta;
|
|
1113
1085
|
}
|
|
1114
|
-
export
|
|
1115
|
-
block: SdkManagementBlock;
|
|
1086
|
+
export type SdkUpsertBlockResponse = SdkCommandApplicationResult<SdkManagementBlock> & {
|
|
1116
1087
|
/** Non-blocking content warnings (e.g. theme-unavailable button variants). */
|
|
1117
1088
|
warnings?: SdkBlockContentWarning[];
|
|
1118
|
-
}
|
|
1119
|
-
export
|
|
1089
|
+
};
|
|
1090
|
+
export type SdkDeleteResponse = SdkCommandApplicationResult<Readonly<{
|
|
1120
1091
|
deleted: true;
|
|
1121
|
-
}
|
|
1092
|
+
}>>;
|
|
1122
1093
|
export interface SdkReorderResponse {
|
|
1123
1094
|
reordered: true;
|
|
1124
1095
|
}
|
|
@@ -1171,12 +1142,8 @@ export type SdkPublicationStageFields<TCode extends string> = {
|
|
|
1171
1142
|
saved: true;
|
|
1172
1143
|
publication: SdkPublicationOutcome<TCode>;
|
|
1173
1144
|
};
|
|
1174
|
-
export type SdkUpsertEntryResponse =
|
|
1175
|
-
|
|
1176
|
-
} & SdkPublicationStageFields<SdkEntryPublishErrorCode>;
|
|
1177
|
-
export interface SdkPublishOrUnpublishEntryResponse {
|
|
1178
|
-
entry: Omit<SdkManagementEntry, 'publishedData'>;
|
|
1179
|
-
}
|
|
1145
|
+
export type SdkUpsertEntryResponse = SdkCommandApplicationResult<Omit<SdkManagementEntry, 'publishedData'>> & SdkPublicationStageFields<SdkEntryPublishErrorCode>;
|
|
1146
|
+
export type SdkPublishOrUnpublishEntryResponse = SdkCommandApplicationResult<Omit<SdkManagementEntry, 'publishedData'>>;
|
|
1180
1147
|
export interface SdkListEntriesResponse {
|
|
1181
1148
|
items: SdkManagementEntry[];
|
|
1182
1149
|
pagination: SdkPullPagination;
|
|
@@ -1185,38 +1152,36 @@ export type SdkGetEntryResponse = SdkManagementEntry;
|
|
|
1185
1152
|
export interface SdkListFormsResponse {
|
|
1186
1153
|
forms: SdkManagementForm[];
|
|
1187
1154
|
}
|
|
1188
|
-
export
|
|
1189
|
-
form: SdkManagementForm;
|
|
1190
|
-
}
|
|
1155
|
+
export type SdkUpsertFormResponse = SdkCommandApplicationResult<SdkManagementForm>;
|
|
1191
1156
|
export interface SdkGetFormResponse {
|
|
1192
1157
|
form: SdkManagementForm;
|
|
1193
1158
|
}
|
|
1194
1159
|
export interface SdkListVenuesResponse {
|
|
1195
1160
|
venues: SdkManagementVenue[];
|
|
1196
1161
|
}
|
|
1197
|
-
export
|
|
1198
|
-
venue: SdkManagementVenue;
|
|
1199
|
-
}
|
|
1162
|
+
export type SdkUpsertVenueResponse = SdkCommandApplicationResult<SdkManagementVenue>;
|
|
1200
1163
|
export interface SdkGetVenueResponse {
|
|
1201
1164
|
venue: SdkManagementVenue;
|
|
1202
1165
|
}
|
|
1203
1166
|
export interface SdkListEventCategoriesResponse {
|
|
1204
1167
|
eventCategories: SdkManagementEventCategory[];
|
|
1205
1168
|
}
|
|
1206
|
-
export
|
|
1207
|
-
eventCategory: SdkManagementEventCategory;
|
|
1208
|
-
}
|
|
1169
|
+
export type SdkUpsertEventCategoryResponse = SdkCommandApplicationResult<SdkManagementEventCategory>;
|
|
1209
1170
|
export interface SdkGetEventCategoryResponse {
|
|
1210
1171
|
eventCategory: SdkManagementEventCategory;
|
|
1211
1172
|
}
|
|
1212
1173
|
export interface SdkListEventsResponse {
|
|
1213
|
-
events:
|
|
1214
|
-
|
|
1215
|
-
export interface SdkUpsertEventResponse {
|
|
1216
|
-
event: SdkManagementEventSeries;
|
|
1174
|
+
events: SdkManagementEvent[];
|
|
1175
|
+
eventRuns: SdkManagementEventRun[];
|
|
1217
1176
|
}
|
|
1177
|
+
export type SdkManagementEventGraph = Readonly<{
|
|
1178
|
+
event: SdkManagementEvent;
|
|
1179
|
+
runs: readonly [SdkManagementEventRun, ...SdkManagementEventRun[]];
|
|
1180
|
+
}>;
|
|
1181
|
+
export type SdkUpsertEventResponse = SdkCommandApplicationResult<SdkManagementEventGraph>;
|
|
1218
1182
|
export interface SdkGetEventResponse {
|
|
1219
|
-
event:
|
|
1183
|
+
event: SdkManagementEvent;
|
|
1184
|
+
runs: readonly [SdkManagementEventRun, ...SdkManagementEventRun[]];
|
|
1220
1185
|
}
|
|
1221
1186
|
export interface SdkListEventOccurrencesResponse {
|
|
1222
1187
|
occurrences: SdkManagementEventOccurrence[];
|
|
@@ -1225,27 +1190,21 @@ export interface SdkListEventOccurrencesResponse {
|
|
|
1225
1190
|
export interface SdkEventOccurrenceResponse {
|
|
1226
1191
|
occurrence: SdkManagementEventOccurrence;
|
|
1227
1192
|
}
|
|
1228
|
-
export
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1241
|
-
export interface SdkUpsertThemeResponse {
|
|
1193
|
+
export type SdkUpsertNavigationMenuResponse = SdkCommandApplicationResult<{
|
|
1194
|
+
id: string;
|
|
1195
|
+
identifier: string | null;
|
|
1196
|
+
name: string;
|
|
1197
|
+
isPrimary: boolean;
|
|
1198
|
+
isFooter: boolean;
|
|
1199
|
+
footerRole: 'main' | 'legal-policy' | null;
|
|
1200
|
+
items: SdkPullNavigationItem[];
|
|
1201
|
+
createdAt: string;
|
|
1202
|
+
updatedAt: string;
|
|
1203
|
+
}>;
|
|
1204
|
+
export type SdkUpsertThemeResponse = SdkCommandApplicationResult<{
|
|
1242
1205
|
themeId: string;
|
|
1243
1206
|
selectionId: string;
|
|
1244
1207
|
savedAt: string;
|
|
1245
|
-
}
|
|
1246
|
-
export
|
|
1247
|
-
|
|
1248
|
-
}
|
|
1249
|
-
export interface SdkUpdateSettingsResponse {
|
|
1250
|
-
settings: SdkPullSettings;
|
|
1251
|
-
}
|
|
1208
|
+
}>;
|
|
1209
|
+
export type SdkUpsertFooterResponse = SdkCommandApplicationResult<SdkFooterContent | null>;
|
|
1210
|
+
export type SdkUpdateSettingsResponse = SdkCommandApplicationResult<SdkPullSettings>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { EventOccurrenceStatus } from './bookingRecords';
|
|
2
|
+
import type { EventOfferingId, EventSeriesId, OccurrenceId } from '../../core/src/index';
|
|
3
|
+
import type { SdkEventCanonicalScheduleInput, SdkPullEvent, SdkPullEventRun } from './sdkContracts';
|
|
4
|
+
export type SdkManagementEvent = SdkPullEvent & {
|
|
5
|
+
id: EventOfferingId;
|
|
6
|
+
};
|
|
7
|
+
export type SdkManagementEventRun = SdkPullEventRun & {
|
|
8
|
+
id: EventSeriesId;
|
|
9
|
+
eventId: EventOfferingId;
|
|
10
|
+
schedule: SdkEventCanonicalScheduleInput;
|
|
11
|
+
};
|
|
12
|
+
export type SdkEventOccurrenceProvenance = 'manual' | 'recurrence_generated' | 'recurrence_exception';
|
|
13
|
+
export type SdkEventOccurrenceDeletionEligibility = {
|
|
14
|
+
kind: 'allowed';
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'blocked_by_registrations';
|
|
17
|
+
registrations: number;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'blocked_generated_occurrence';
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'blocked_completed_occurrence';
|
|
22
|
+
};
|
|
23
|
+
export interface SdkManagementEventOccurrence {
|
|
24
|
+
id: OccurrenceId;
|
|
25
|
+
seriesId: EventSeriesId;
|
|
26
|
+
startsAt: string;
|
|
27
|
+
endsAt: string;
|
|
28
|
+
timeZone: string;
|
|
29
|
+
status: EventOccurrenceStatus;
|
|
30
|
+
provenance: SdkEventOccurrenceProvenance;
|
|
31
|
+
capacityOverride: number | null;
|
|
32
|
+
capacity: number | null;
|
|
33
|
+
registrations: number;
|
|
34
|
+
deletionEligibility: SdkEventOccurrenceDeletionEligibility;
|
|
35
|
+
}
|