@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
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry Command
|
|
3
|
-
*
|
|
4
|
-
* Manage content entries via CLI.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms entry upsert <type> <identifier> --data <json>
|
|
8
|
-
* riverbankcms entry publish <type> <identifier>
|
|
9
|
-
* riverbankcms entry unpublish <type> <identifier>
|
|
10
|
-
* riverbankcms entry get <type> <identifier>
|
|
11
|
-
* riverbankcms entry get <type> <uuid> --by-id
|
|
12
|
-
* riverbankcms entry list <type> [--limit N] [--page N]
|
|
13
|
-
*/
|
|
14
|
-
import { Command } from 'commander';
|
|
15
|
-
import { type EntryScaffold } from '../../../../content-model/src/index';
|
|
16
|
-
import type { ManagementClient, ManagementEntry } from '../../client/management/types';
|
|
17
|
-
import { type MediaValidationResult } from '../media/write-guard';
|
|
18
|
-
export declare const ENTRY_LIST_COLUMNS: readonly ["id", "identifier", "slug", "status", "hasUnpublishedChanges", "updatedAt", "createdAt", "publishedAt", "title", "contentType"];
|
|
19
|
-
export type EntryListColumn = (typeof ENTRY_LIST_COLUMNS)[number];
|
|
20
|
-
export declare function parseEntryListColumns(input: string): {
|
|
21
|
-
columns: EntryListColumn[];
|
|
22
|
-
} | {
|
|
23
|
-
error: string;
|
|
24
|
-
};
|
|
25
|
-
export declare function pickEntryListColumns(entry: ManagementEntry, columns: EntryListColumn[]): Partial<Record<EntryListColumn, unknown>>;
|
|
26
|
-
export declare function getEntryListColumnHelp(): string;
|
|
27
|
-
export declare function parseEntryStatusFilter(value: string | undefined): 'draft' | 'published' | undefined | {
|
|
28
|
-
error: string;
|
|
29
|
-
};
|
|
30
|
-
export declare function filterEntriesByStatus(entries: ManagementEntry[], status: 'draft' | 'published' | undefined): ManagementEntry[];
|
|
31
|
-
export declare function validateEntryUpsertMedia(options: {
|
|
32
|
-
client: ManagementClient;
|
|
33
|
-
contentType: string;
|
|
34
|
-
identifier: string;
|
|
35
|
-
data: Record<string, unknown>;
|
|
36
|
-
}): Promise<MediaValidationResult>;
|
|
37
|
-
export declare function findEntryById(client: ManagementClient, contentType: string, entryId: string, options?: {
|
|
38
|
-
limit?: number;
|
|
39
|
-
maxPages?: number;
|
|
40
|
-
}): Promise<ManagementEntry | null>;
|
|
41
|
-
/**
|
|
42
|
-
* Resolve a scaffold for a content type from the discovery catalog (the field
|
|
43
|
-
* DSL), or an error listing the available keys. Sourced from
|
|
44
|
-
* `client.catalog.contentTypes()`, matching how `content-type list` resolves its
|
|
45
|
-
* source from the client. (An offline local-config fallback is not implemented:
|
|
46
|
-
* the normalized field DSL is only exposed over the catalog API, and
|
|
47
|
-
* `content-type list` likewise has no local fallback.)
|
|
48
|
-
*/
|
|
49
|
-
export declare function resolveEntryScaffold(client: ManagementClient, contentType: string): Promise<{
|
|
50
|
-
scaffold: EntryScaffold;
|
|
51
|
-
} | {
|
|
52
|
-
error: string;
|
|
53
|
-
availableKeys: string[];
|
|
54
|
-
}>;
|
|
55
|
-
export declare const entryCommand: Command;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Environment Command
|
|
3
|
-
*
|
|
4
|
-
* Inspect the current CLI environment configuration.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms env status # Show active environment
|
|
8
|
-
* riverbankcms env status --env=remote # Show remote environment
|
|
9
|
-
* riverbankcms env status --env=both # Show both environments
|
|
10
|
-
* riverbankcms env status --json # Machine-readable output
|
|
11
|
-
*/
|
|
12
|
-
import { Command } from 'commander';
|
|
13
|
-
import type { EnvTarget } from '../helpers';
|
|
14
|
-
export interface EnvStatusResult {
|
|
15
|
-
target: EnvTarget;
|
|
16
|
-
configured: boolean;
|
|
17
|
-
siteId: string | null;
|
|
18
|
-
dashboardUrl: string | null;
|
|
19
|
-
managementApiKey: {
|
|
20
|
-
set: boolean;
|
|
21
|
-
masked: string;
|
|
22
|
-
};
|
|
23
|
-
apiKey: {
|
|
24
|
-
set: boolean;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/** Get the status of a single environment target. No network calls. */
|
|
28
|
-
export declare function getEnvStatus(target: EnvTarget): EnvStatusResult;
|
|
29
|
-
/** Format a single environment status for human-readable output. */
|
|
30
|
-
export declare function formatEnvStatus(status: EnvStatusResult): string;
|
|
31
|
-
export declare const envCommand: Command;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import type { EventOccurrenceCapacityIntent, EventOccurrenceScheduleInput, ManagementEventOccurrence, EventSeriesUpsertInput, ManagementEventSeries } from '../../client/management/types';
|
|
3
|
-
import { canCancelEventStatus } from './eventOccurrenceSchedule';
|
|
4
|
-
export { canCancelEventStatus };
|
|
5
|
-
export declare function toEventUpsertInput(identifier: string, raw: Record<string, unknown>): EventSeriesUpsertInput;
|
|
6
|
-
export declare function buildCancelledEventUpsertInput(current: ManagementEventSeries): EventSeriesUpsertInput;
|
|
7
|
-
type OccurrenceScheduleOptions = Readonly<{
|
|
8
|
-
startsAt?: string;
|
|
9
|
-
endsAt?: string;
|
|
10
|
-
durationMinutes?: string;
|
|
11
|
-
}>;
|
|
12
|
-
type OccurrenceCapacityOptions = Readonly<{
|
|
13
|
-
capacity?: string;
|
|
14
|
-
inheritCapacity?: boolean;
|
|
15
|
-
}>;
|
|
16
|
-
export declare function occurrenceScheduleFromOptions(options: OccurrenceScheduleOptions, required: true): EventOccurrenceScheduleInput;
|
|
17
|
-
export declare function occurrenceScheduleFromOptions(options: OccurrenceScheduleOptions, required: false): EventOccurrenceScheduleInput | undefined;
|
|
18
|
-
export declare function occurrenceCapacityFromOptions(options: OccurrenceCapacityOptions): EventOccurrenceCapacityIntent | undefined;
|
|
19
|
-
export declare function formatDeletionEligibility(occurrence: ManagementEventOccurrence): string;
|
|
20
|
-
export declare function occurrenceListJson(occurrences: readonly ManagementEventOccurrence[]): Readonly<{
|
|
21
|
-
occurrences: readonly ManagementEventOccurrence[];
|
|
22
|
-
}>;
|
|
23
|
-
export declare const eventCommand: Command;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ManagementEventSeries } from '../../client/management/types';
|
|
2
|
-
export declare function portableEventScheduleOutput(event: ManagementEventSeries): {
|
|
3
|
-
schedule: import("../../../../api/src/sdkContracts").SdkEventCanonicalScheduleInput;
|
|
4
|
-
preset: import("../../../../api/src/index").EventPreset;
|
|
5
|
-
bookingScope: "single_occurrence" | "whole_series";
|
|
6
|
-
occurrences: readonly Readonly<{
|
|
7
|
-
startsAt: string;
|
|
8
|
-
endsAt: string;
|
|
9
|
-
timeZone: string;
|
|
10
|
-
}>[];
|
|
11
|
-
};
|
|
12
|
-
export declare function canCancelEventStatus(status: ManagementEventSeries['status']): boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Identifiers Command
|
|
3
|
-
*
|
|
4
|
-
* Manage SDK identifiers for pages, blocks, and entries.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms identifiers backfill # Backfill identifiers for content without them
|
|
8
|
-
*/
|
|
9
|
-
import { Command } from 'commander';
|
|
10
|
-
export declare const identifiersCommand: Command;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* init-docs Command
|
|
3
|
-
*
|
|
4
|
-
* Scaffold agent documentation and site context.
|
|
5
|
-
*/
|
|
6
|
-
import { Command } from 'commander';
|
|
7
|
-
interface InitDocsOptions {
|
|
8
|
-
path?: string;
|
|
9
|
-
config?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function runInitDocs(options: InitDocsOptions, command: Command): Promise<void>;
|
|
12
|
-
export declare const createInitDocsCommand: () => Command;
|
|
13
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manifest Command
|
|
3
|
-
*
|
|
4
|
-
* CLI tool for converting HTML (with Tailwind/CSS) into declarative block manifests.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms manifest generate --html <file> --theme <file> [options]
|
|
8
|
-
*/
|
|
9
|
-
import { Command } from 'commander';
|
|
10
|
-
export declare const manifestCommand: Command;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migrate Command
|
|
3
|
-
*
|
|
4
|
-
* Local-only utilities to migrate SDK on-disk content formats.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms migrate entries [contentType] [--content-dir <dir>] [--dry-run] [--force] [--yes]
|
|
8
|
-
* riverbankcms migrate events [--content-dir <dir>] [--dry-run] [--yes]
|
|
9
|
-
*/
|
|
10
|
-
import { Command } from 'commander';
|
|
11
|
-
export declare const migrateCommand: Command;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Navigation Command
|
|
3
|
-
*
|
|
4
|
-
* Manage navigation menus via CLI.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms navigation upsert <menu-name> --file <json-file>
|
|
8
|
-
* riverbankcms navigation get <menu-name>
|
|
9
|
-
* riverbankcms navigation list
|
|
10
|
-
*/
|
|
11
|
-
import { Command } from 'commander';
|
|
12
|
-
export declare const navigationCommand: Command;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Page Command
|
|
3
|
-
*
|
|
4
|
-
* Manage pages via CLI.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms page upsert <identifier> --title <title> --path <path>
|
|
8
|
-
* riverbankcms page publish <identifier>
|
|
9
|
-
* riverbankcms page unpublish <identifier>
|
|
10
|
-
* riverbankcms page get <identifier>
|
|
11
|
-
* riverbankcms page list [--limit N] [--page N]
|
|
12
|
-
*/
|
|
13
|
-
import { Command } from 'commander';
|
|
14
|
-
export declare const pageCommand: Command;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Publish-All Command
|
|
3
|
-
*
|
|
4
|
-
* Publish all entries of a specific content type.
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Publishes all entries with unpublished changes
|
|
8
|
-
* - Skips already-published entries (no-op for clean entries)
|
|
9
|
-
* - Continues on failure, reports all results at end
|
|
10
|
-
* - Supports --env for multi-environment operations
|
|
11
|
-
* - Requires --yes for remote environments
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
* riverbankcms publish-all <content-type>
|
|
15
|
-
* riverbankcms publish-all <content-type> --env=remote --yes
|
|
16
|
-
* riverbankcms publish-all <content-type> --env=both --yes
|
|
17
|
-
* riverbankcms publish-all <content-type> --dry-run
|
|
18
|
-
*/
|
|
19
|
-
import { Command } from 'commander';
|
|
20
|
-
import { type ManagementEntry } from '../../client/management';
|
|
21
|
-
export interface PublishResult {
|
|
22
|
-
identifier: string;
|
|
23
|
-
success: boolean;
|
|
24
|
-
skipped: boolean;
|
|
25
|
-
error?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface PublishAllSummary {
|
|
28
|
-
total: number;
|
|
29
|
-
published: number;
|
|
30
|
-
skipped: number;
|
|
31
|
-
failed: number;
|
|
32
|
-
errors: Array<{
|
|
33
|
-
identifier: string;
|
|
34
|
-
error: string;
|
|
35
|
-
}>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Filter entries into those needing publishing vs already published.
|
|
39
|
-
* Exported for testing.
|
|
40
|
-
*/
|
|
41
|
-
export declare function categorizeEntries(entries: ManagementEntry[]): {
|
|
42
|
-
toPublish: ManagementEntry[];
|
|
43
|
-
alreadyPublished: ManagementEntry[];
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Aggregate publish results into a summary.
|
|
47
|
-
* Exported for testing.
|
|
48
|
-
*/
|
|
49
|
-
export declare function aggregateResults(results: PublishResult[]): Omit<PublishAllSummary, 'total'>;
|
|
50
|
-
export declare const createPublishAllCommand: () => Command;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OutputContext } from '../output';
|
|
2
|
-
export type DatedOfferingPullScope = 'venues' | 'event-categories' | 'events';
|
|
3
|
-
export declare function isDatedOfferingPullScope(scope: string): scope is DatedOfferingPullScope;
|
|
4
|
-
export declare function filterPullItemsByIdentifier<TItem>(items: readonly TItem[], identifier: string | undefined, getIdentifier: (item: TItem) => string): TItem[];
|
|
5
|
-
export declare function reportMissingScopedPullItem(input: Readonly<{
|
|
6
|
-
output: OutputContext;
|
|
7
|
-
scope: DatedOfferingPullScope;
|
|
8
|
-
identifier: string | undefined;
|
|
9
|
-
found: boolean;
|
|
10
|
-
}>): boolean;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { ManagementFooterContent, PulledEventCategories, PulledEvents, PulledVenues } from '../../client/management/types';
|
|
2
|
-
import type { LocalEvent, LocalEventCategory, LocalFooterContent, LocalTheme, LocalVenue } from '../content/reader';
|
|
3
|
-
export type DryRunDiffType = 'create' | 'update' | 'unchanged';
|
|
4
|
-
export interface DryRunDiffSummary {
|
|
5
|
-
create: number;
|
|
6
|
-
update: number;
|
|
7
|
-
unchanged: number;
|
|
8
|
-
}
|
|
9
|
-
export interface DryRunItemDiff {
|
|
10
|
-
type: DryRunDiffType;
|
|
11
|
-
identifier: string;
|
|
12
|
-
changes?: string[];
|
|
13
|
-
}
|
|
14
|
-
export declare function calculateKeyedArrayPullDiff<TRemote, TLocal>(args: {
|
|
15
|
-
remoteItems: TRemote[];
|
|
16
|
-
localItems: TLocal[];
|
|
17
|
-
getRemoteId: (item: TRemote) => string;
|
|
18
|
-
getLocalId: (item: TLocal) => string;
|
|
19
|
-
remoteToComparable: (item: TRemote) => Record<string, unknown>;
|
|
20
|
-
localToComparable: (item: TLocal) => Record<string, unknown>;
|
|
21
|
-
}): {
|
|
22
|
-
diffs: DryRunItemDiff[];
|
|
23
|
-
summary: DryRunDiffSummary;
|
|
24
|
-
};
|
|
25
|
-
export declare function formatDryRunArrayDiff(args: {
|
|
26
|
-
label: string;
|
|
27
|
-
diffs: DryRunItemDiff[];
|
|
28
|
-
summary: DryRunDiffSummary;
|
|
29
|
-
}): {
|
|
30
|
-
summaryText: string;
|
|
31
|
-
detailText: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Format keyed array diff with field-level before/after values for human display.
|
|
35
|
-
* Used by pull --dry-run --diff for scoped pulls (venues, events, etc.).
|
|
36
|
-
*/
|
|
37
|
-
export declare function formatHumanArrayDiff<TRemote, TLocal>(args: {
|
|
38
|
-
label: string;
|
|
39
|
-
diffs: DryRunItemDiff[];
|
|
40
|
-
summary: DryRunDiffSummary;
|
|
41
|
-
remoteItems: TRemote[];
|
|
42
|
-
localItems: TLocal[];
|
|
43
|
-
getRemoteId: (item: TRemote) => string;
|
|
44
|
-
getLocalId: (item: TLocal) => string;
|
|
45
|
-
remoteToComparable: (item: TRemote) => Record<string, unknown>;
|
|
46
|
-
localToComparable: (item: TLocal) => Record<string, unknown>;
|
|
47
|
-
}): {
|
|
48
|
-
summaryText: string;
|
|
49
|
-
detailText: string;
|
|
50
|
-
};
|
|
51
|
-
export declare function calculateThemePullDiff(args: {
|
|
52
|
-
remoteTheme: unknown;
|
|
53
|
-
localTheme: LocalTheme | null;
|
|
54
|
-
}): {
|
|
55
|
-
type: DryRunDiffType;
|
|
56
|
-
changes?: string[];
|
|
57
|
-
};
|
|
58
|
-
export declare function calculateFooterPullDiff(args: {
|
|
59
|
-
remoteFooter: ManagementFooterContent | null;
|
|
60
|
-
localFooter: LocalFooterContent | null;
|
|
61
|
-
}): {
|
|
62
|
-
type: DryRunDiffType;
|
|
63
|
-
changes?: string[];
|
|
64
|
-
};
|
|
65
|
-
export declare function mapRemoteVenueToLocalComparable(v: PulledVenues['venues'][number]): Record<string, unknown>;
|
|
66
|
-
export declare function mapLocalVenueToComparable(v: LocalVenue): Record<string, unknown>;
|
|
67
|
-
export declare function mapRemoteEventCategoryToLocalComparable(c: PulledEventCategories['eventCategories'][number]): Record<string, unknown>;
|
|
68
|
-
export declare function mapLocalEventCategoryToComparable(c: LocalEventCategory): Record<string, unknown>;
|
|
69
|
-
export declare function mapRemoteEventToLocalComparable(event: PulledEvents['events'][number]): Record<string, unknown>;
|
|
70
|
-
export declare function mapLocalEventToComparable(event: LocalEvent): Record<string, unknown>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ContentDiff } from '../sync';
|
|
2
|
-
/**
|
|
3
|
-
* In pull --dry-run, scoped pulls should only report diffs for the requested scope.
|
|
4
|
-
*
|
|
5
|
-
* `PulledContent` always includes a `settings` object (even when pulling entries/pages/etc),
|
|
6
|
-
* so `calculatePullDiff()` can otherwise report settings changes for unrelated scopes.
|
|
7
|
-
*/
|
|
8
|
-
export declare function maskPullDiffForScope(diff: ContentDiff, pullScope: string): ContentDiff;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pull Command
|
|
3
|
-
*
|
|
4
|
-
* Pulls content from the CMS and saves to local JSON files.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* riverbankcms pull # Pull all content
|
|
8
|
-
* riverbankcms pull entries # Pull all entries
|
|
9
|
-
* riverbankcms pull entries blog-post # Pull specific content type
|
|
10
|
-
* riverbankcms pull entries blog-post welcome # Pull specific entry
|
|
11
|
-
* riverbankcms pull pages # Pull all pages
|
|
12
|
-
* riverbankcms pull pages home # Pull specific page
|
|
13
|
-
* riverbankcms pull navigation # Pull navigation menus
|
|
14
|
-
* riverbankcms pull settings # Pull site settings
|
|
15
|
-
* riverbankcms pull footer # Pull footer content
|
|
16
|
-
*/
|
|
17
|
-
import { Command } from 'commander';
|
|
18
|
-
import type { ManagementClient, PulledContent } from '../../client/management';
|
|
19
|
-
import type { OutputContext } from '../output';
|
|
20
|
-
import type { EntryBaseSnapshotTarget } from '../merge-remote/entrySnapshots';
|
|
21
|
-
export declare function entryBaseSnapshotTargetForPull(input: Readonly<{
|
|
22
|
-
isRemote: boolean;
|
|
23
|
-
siteId: string;
|
|
24
|
-
}>): EntryBaseSnapshotTarget;
|
|
25
|
-
/**
|
|
26
|
-
* Fetch broad generic content, including paginated entry payloads when needed,
|
|
27
|
-
* then remove canonical/owner-managed entry types before diffing or writing.
|
|
28
|
-
*/
|
|
29
|
-
export declare function pullAllContentWithCanonicalEntryPolicy(client: ManagementClient, output: OutputContext): Promise<PulledContent>;
|
|
30
|
-
export declare function createScopedPullContent(meta: Omit<PulledContent['meta'], 'truncation'> & Partial<Pick<PulledContent['meta'], 'truncation'>>, overrides: Partial<Omit<PulledContent, 'meta'>>): PulledContent;
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether the pull command should prompt for overwrite confirmation.
|
|
33
|
-
* Scoped pulls (e.g., `pull entries blog-post`) only modify their target subdirectory,
|
|
34
|
-
* so they skip the confirmation. Broad pulls (`pull` or `pull all`) require it.
|
|
35
|
-
*/
|
|
36
|
-
export declare function shouldPromptForOverwrite(opts: {
|
|
37
|
-
pullScope: string;
|
|
38
|
-
contentDirExists: boolean;
|
|
39
|
-
force: boolean;
|
|
40
|
-
yes: boolean;
|
|
41
|
-
}): boolean;
|
|
42
|
-
export declare const createPullCommand: () => Command;
|
|
43
|
-
export declare const pullCommand: Command;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const VALID_PUSH_SCOPES: readonly ["entries", "pages", "navigation", "forms", "settings", "theme", "footer", "venues", "event-categories", "events", "all"];
|
|
2
|
-
export type PushScope = (typeof VALID_PUSH_SCOPES)[number];
|
|
3
|
-
export declare function isValidPushScope(scope: string): scope is PushScope;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PulledContent } from '../../../../client/management/types';
|
|
2
|
-
import type { LoadedCliConfig } from '../../../config-loader';
|
|
3
|
-
import type { LocalContent } from '../../../content/reader';
|
|
4
|
-
import type { OutputContext } from '../../../output';
|
|
5
|
-
import { type ContentDiff, type JsonDiffMode } from '../../../sync';
|
|
6
|
-
import type { LocalMediaPushReport } from '../../../media/local-sync';
|
|
7
|
-
export declare function displayDiff(params: {
|
|
8
|
-
output: OutputContext;
|
|
9
|
-
diff: ContentDiff;
|
|
10
|
-
config: LoadedCliConfig;
|
|
11
|
-
dryRun: boolean;
|
|
12
|
-
isRemote: boolean;
|
|
13
|
-
jsonOutput: boolean;
|
|
14
|
-
jsonDiffMode: JsonDiffMode | undefined;
|
|
15
|
-
localContent: LocalContent;
|
|
16
|
-
remoteContent: PulledContent;
|
|
17
|
-
humanDiff?: boolean;
|
|
18
|
-
mediaReport?: LocalMediaPushReport;
|
|
19
|
-
}): unknown;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { ManagementFooterContent } from '../../../../client/management/types';
|
|
2
|
-
import { writeFooterContentAfterPush } from '../../../content/footerFile';
|
|
3
|
-
import type { EnvTarget } from '../../../helpers';
|
|
4
|
-
import type { OutputContext } from '../../../output';
|
|
5
|
-
import { type FooterDiff } from '../../../sync/diff';
|
|
6
|
-
import type { PushOptions } from '../options';
|
|
7
|
-
export type FooterPushExecutionResult = Readonly<{
|
|
8
|
-
success: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
export type FooterLocalRefreshResult = Readonly<{
|
|
11
|
-
kind: 'refreshed';
|
|
12
|
-
}> | Readonly<{
|
|
13
|
-
kind: 'failed';
|
|
14
|
-
cause: unknown;
|
|
15
|
-
}>;
|
|
16
|
-
type FooterPushDecision = Readonly<{
|
|
17
|
-
kind: 'unchanged';
|
|
18
|
-
}> | Readonly<{
|
|
19
|
-
kind: 'dry-run';
|
|
20
|
-
diff: FooterDiff;
|
|
21
|
-
}> | Readonly<{
|
|
22
|
-
kind: 'apply';
|
|
23
|
-
diff: FooterDiff;
|
|
24
|
-
}>;
|
|
25
|
-
export declare function footerPushDecision(diff: FooterDiff | null, dryRun: boolean): FooterPushDecision;
|
|
26
|
-
export declare function footerDryRunPayload(diff: FooterDiff): Readonly<{
|
|
27
|
-
kind: 'push';
|
|
28
|
-
scope: 'footer';
|
|
29
|
-
dryRun: true;
|
|
30
|
-
changes: readonly string[];
|
|
31
|
-
}>;
|
|
32
|
-
export declare function refreshLocalFooterAfterPush(contentDir: string, footer: ManagementFooterContent, writeFooter?: typeof writeFooterContentAfterPush): Promise<FooterLocalRefreshResult>;
|
|
33
|
-
export declare function executeFooterPush(input: Readonly<{
|
|
34
|
-
output: OutputContext;
|
|
35
|
-
target: EnvTarget;
|
|
36
|
-
options: PushOptions & {
|
|
37
|
-
dryRun: boolean;
|
|
38
|
-
};
|
|
39
|
-
jsonOutput: boolean;
|
|
40
|
-
skipMeta: boolean;
|
|
41
|
-
}>): Promise<FooterPushExecutionResult>;
|
|
42
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type OutputContext } from '../../../output';
|
|
2
|
-
import type { ManagementClient } from '../../../../client/management';
|
|
3
|
-
import type { LocalContent } from '../../../content/reader';
|
|
4
|
-
import type { LocalMediaPushEvent, LocalMediaPushReport } from '../../../media/local-sync';
|
|
5
|
-
import { type LocalMediaPushResult } from '../../../media/local-sync';
|
|
6
|
-
export declare function reportLocalMediaPushEvent(output: OutputContext, event: LocalMediaPushEvent): void;
|
|
7
|
-
export declare function reportLocalMediaPushSummary(params: {
|
|
8
|
-
output: OutputContext;
|
|
9
|
-
report: LocalMediaPushReport;
|
|
10
|
-
dryRun: boolean;
|
|
11
|
-
includeResolved?: boolean;
|
|
12
|
-
}): void;
|
|
13
|
-
export declare function syncLocalMediaForPushWithReporting(params: {
|
|
14
|
-
output: OutputContext;
|
|
15
|
-
contentDir: string;
|
|
16
|
-
content: LocalContent;
|
|
17
|
-
client: ManagementClient;
|
|
18
|
-
dryRun: boolean;
|
|
19
|
-
targetEnv: string;
|
|
20
|
-
isStructuredOutput: boolean;
|
|
21
|
-
forceUpdateAsset?: boolean;
|
|
22
|
-
printSummary?: boolean;
|
|
23
|
-
}): Promise<LocalMediaPushResult>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { LocalContent } from '../../../content/reader';
|
|
2
|
-
import type { OutputContext } from '../../../output';
|
|
3
|
-
import type { ManagementClient } from '../../../../client/management';
|
|
4
|
-
/**
|
|
5
|
-
* Convert LocalContent to a structure that extractMediaPaths can walk.
|
|
6
|
-
* LocalContent.entries is a Map, but extractMediaPaths uses Object.keys()
|
|
7
|
-
* which doesn't work on Maps.
|
|
8
|
-
*/
|
|
9
|
-
export declare function localContentToExtractable(content: LocalContent): unknown;
|
|
10
|
-
/**
|
|
11
|
-
* Sync media from source to target environment for a push.
|
|
12
|
-
* Downloads files from source Supabase and uploads to target via management API.
|
|
13
|
-
*/
|
|
14
|
-
export declare function syncMediaFilesForPush(params: {
|
|
15
|
-
content: LocalContent;
|
|
16
|
-
sourceClient: ManagementClient;
|
|
17
|
-
sourceSupabaseUrl: string;
|
|
18
|
-
sourceSiteId: string;
|
|
19
|
-
targetClient: ManagementClient;
|
|
20
|
-
output: OutputContext;
|
|
21
|
-
overwrite?: boolean;
|
|
22
|
-
}): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mapIfUpdating<T, R>(shouldUpdate: boolean, items: T[], mapper: (item: T) => R): R[];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { OutputContext } from '../../../output';
|
|
2
|
-
import type { ValidatedThemeForPersistence } from '../../../../../../blocks/src/index';
|
|
3
|
-
import type { ThemeUpsertUpdateInput } from '../../../../client/management/types';
|
|
4
|
-
export type ThemePushClient = {
|
|
5
|
-
theme: {
|
|
6
|
-
upsert: (params: ThemeUpsertUpdateInput) => Promise<{
|
|
7
|
-
themeId: string;
|
|
8
|
-
selectionId: string;
|
|
9
|
-
savedAt: string;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
12
|
-
pull: {
|
|
13
|
-
theme: () => Promise<{
|
|
14
|
-
meta: {
|
|
15
|
-
updatedAt?: string | null;
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type ThemeMetaEntry = {
|
|
21
|
-
themeId: string;
|
|
22
|
-
selectionId: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
};
|
|
25
|
-
export type ThemesMetaFile = {
|
|
26
|
-
pulledAt: string;
|
|
27
|
-
themes: Record<string, ThemeMetaEntry>;
|
|
28
|
-
};
|
|
29
|
-
export declare function pushThemeAndUpdateMeta(params: {
|
|
30
|
-
client: ThemePushClient;
|
|
31
|
-
contentDir: string;
|
|
32
|
-
themeName: string;
|
|
33
|
-
theme: ThemeUpsertUpdateInput['theme'];
|
|
34
|
-
existingMeta?: ThemeMetaEntry;
|
|
35
|
-
readThemesMeta: (contentDir: string) => Promise<ThemesMetaFile | null>;
|
|
36
|
-
writeThemesMeta: (contentDir: string, data: ThemesMetaFile) => Promise<void>;
|
|
37
|
-
}): Promise<{
|
|
38
|
-
themeId: string;
|
|
39
|
-
selectionId: string;
|
|
40
|
-
savedAt: string;
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* Handle theme push with validation and output.
|
|
44
|
-
* Used by both the early-return path (no content changes) and the main flow.
|
|
45
|
-
*/
|
|
46
|
-
export declare function handleThemePushForAllScope(params: {
|
|
47
|
-
client: ThemePushClient;
|
|
48
|
-
contentDir: string;
|
|
49
|
-
cliConfig: {
|
|
50
|
-
activeTheme?: string;
|
|
51
|
-
};
|
|
52
|
-
output: OutputContext;
|
|
53
|
-
options: {
|
|
54
|
-
dryRun: boolean;
|
|
55
|
-
afterContentPush?: boolean;
|
|
56
|
-
};
|
|
57
|
-
readTheme: (contentDir: string, themeName: string) => Promise<{
|
|
58
|
-
name: string;
|
|
59
|
-
theme: ValidatedThemeForPersistence;
|
|
60
|
-
} | null>;
|
|
61
|
-
readThemesMeta: (contentDir: string) => Promise<ThemesMetaFile | null>;
|
|
62
|
-
writeThemesMeta: (contentDir: string, data: ThemesMetaFile) => Promise<void>;
|
|
63
|
-
}): Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { LocalContent } from '../../content/reader';
|
|
2
|
-
/**
|
|
3
|
-
* Result of filtering local content
|
|
4
|
-
*/
|
|
5
|
-
export interface FilterResult {
|
|
6
|
-
/** The filtered content (empty on error) */
|
|
7
|
-
content: LocalContent;
|
|
8
|
-
/** Error message if validation failed */
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Filter local content based on push scope (entries, pages, navigation, forms, or all)
|
|
13
|
-
* @internal Exported for testing
|
|
14
|
-
*/
|
|
15
|
-
export declare function filterLocalContent(localContent: LocalContent, scope: string, contentType?: string, identifier?: string): FilterResult;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { SyncResult } from '../../sync';
|
|
2
|
-
/**
|
|
3
|
-
* Flags indicating which content types should have their metadata updated
|
|
4
|
-
* after a push operation.
|
|
5
|
-
*/
|
|
6
|
-
export interface MetadataUpdateFlags {
|
|
7
|
-
/** Whether entries metadata should be updated (zero failures + some synced) */
|
|
8
|
-
willUpdateEntries: boolean;
|
|
9
|
-
/** Whether pages metadata should be updated (zero failures + some synced) */
|
|
10
|
-
willUpdatePages: boolean;
|
|
11
|
-
/** Whether navigation metadata should be updated (zero failures + some synced) */
|
|
12
|
-
willUpdateNavigation: boolean;
|
|
13
|
-
/** Whether forms metadata should be updated (zero failures + some synced) */
|
|
14
|
-
willUpdateForms: boolean;
|
|
15
|
-
/** Whether settings metadata should be updated (zero failures + settings synced) */
|
|
16
|
-
willUpdateSettings: boolean;
|
|
17
|
-
/** Whether any metadata should be updated (at least one content type qualifies) */
|
|
18
|
-
shouldUpdateMetadata: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Calculate which content types should have their metadata updated after a push.
|
|
22
|
-
* Metadata is only updated for content types that:
|
|
23
|
-
* 1. Had zero failures (all items synced successfully)
|
|
24
|
-
* 2. Had at least one item created or updated (something actually changed)
|
|
25
|
-
*
|
|
26
|
-
* This prevents false "stale content" warnings on subsequent pushes after
|
|
27
|
-
* partial failures.
|
|
28
|
-
*/
|
|
29
|
-
export declare function calculateMetadataUpdates(result: SyncResult): MetadataUpdateFlags;
|