@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.
Files changed (441) hide show
  1. package/README.md +51 -266
  2. package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
  3. package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
  6. package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
  7. package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
  8. package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
  9. package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
  10. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
  12. package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
  13. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
  14. package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
  15. package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
  16. package/dist/_dts/api/src/endpoints.d.ts +14 -21
  17. package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
  18. package/dist/_dts/api/src/index.d.ts +5 -3
  19. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
  20. package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
  21. package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
  22. package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
  23. package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
  24. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
  25. package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
  26. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
  27. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
  28. package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
  29. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
  30. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
  31. package/dist/_dts/blocks/src/index.d.ts +5 -3
  32. package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
  33. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
  34. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
  35. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
  36. package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
  37. package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
  39. package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
  40. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
  41. package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
  42. package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
  43. package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
  44. package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
  45. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
  46. package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
  47. package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
  48. package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
  49. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
  50. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
  51. package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
  52. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
  53. package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
  54. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
  55. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
  56. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
  57. package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
  58. package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
  59. package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
  60. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
  61. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
  62. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
  63. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
  64. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
  66. package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
  67. package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
  68. package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
  69. package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
  71. package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
  72. package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
  73. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
  74. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
  75. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
  76. package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
  77. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
  78. package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
  79. package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
  80. package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
  81. package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
  82. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
  83. package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
  84. package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
  85. package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
  86. package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
  87. package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
  88. package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
  89. package/dist/_dts/core/src/index.d.ts +1 -0
  90. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
  91. package/dist/_dts/media-core/src/index.d.ts +1 -0
  92. package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
  93. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
  94. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
  95. package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
  96. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
  97. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
  98. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
  99. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
  100. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
  101. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
  102. package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
  103. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
  104. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
  105. package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
  106. package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
  107. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
  108. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
  109. package/dist/_dts/sdk/src/config/types.d.ts +5 -4
  110. package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
  111. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
  112. package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
  113. package/dist/_dts/sdk/src/next/index.d.ts +8 -6
  114. package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
  115. package/dist/_dts/sdk/src/next/types.d.ts +10 -0
  116. package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
  117. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
  118. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
  119. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
  120. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
  121. package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
  122. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
  123. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
  124. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
  125. package/dist/_dts/sdk/src/version.d.ts +1 -1
  126. package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
  127. package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
  128. package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
  129. package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
  130. package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -0
  131. package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
  132. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
  133. package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
  134. package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
  135. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
  136. package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
  137. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
  138. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
  139. package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
  140. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
  142. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
  143. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
  144. package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
  145. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
  146. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
  147. package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
  148. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
  149. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
  150. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
  151. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  152. package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
  153. package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
  154. package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
  155. package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +142 -0
  156. package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
  157. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
  158. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
  159. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
  160. package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
  161. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
  162. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
  163. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
  164. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
  165. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
  166. package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
  167. package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
  168. package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
  169. package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
  170. package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
  171. package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
  172. package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
  173. package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
  174. package/dist/client/bookings.mjs +1028 -1038
  175. package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
  176. package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
  177. package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
  178. package/dist/client/client.mjs +18324 -18224
  179. package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
  180. package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
  181. package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
  182. package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
  183. package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
  184. package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
  185. package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
  186. package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
  187. package/dist/client/hooks.mjs +4550 -4211
  188. package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
  189. package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
  190. package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
  191. package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
  192. package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
  193. package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
  194. package/dist/client/rendering/client.mjs +3606 -4078
  195. package/dist/client/rendering/islands.mjs +18 -18
  196. package/dist/client/rendering.mjs +15969 -15843
  197. package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
  198. package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
  199. package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
  200. package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
  201. package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
  202. package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
  203. package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
  204. package/dist/preview-next/before-render.mjs +16 -27
  205. package/dist/preview-next/client/runtime.mjs +4 -4
  206. package/dist/preview-next/middleware.mjs +16 -27
  207. package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
  208. package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
  209. package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
  210. package/dist/server/components.mjs +17802 -17875
  211. package/dist/server/config-validation.mjs +4729 -4416
  212. package/dist/server/config.mjs +4733 -4420
  213. package/dist/server/data.mjs +4533 -4211
  214. package/dist/server/date-time.mjs +22 -13
  215. package/dist/server/index.mjs +17 -28
  216. package/dist/server/manifest.mjs +4966 -0
  217. package/dist/server/next.mjs +17635 -17676
  218. package/dist/server/page-converter.mjs +3759 -4386
  219. package/dist/server/prebuild.mjs +1 -1
  220. package/dist/server/rendering/server.mjs +18960 -19049
  221. package/dist/server/rendering.mjs +17848 -17902
  222. package/dist/server/routing.mjs +4776 -4323
  223. package/dist/server/server.mjs +4609 -4264
  224. package/dist/server/theme-bridge.mjs +1361 -1850
  225. package/dist/server/theme.mjs +736 -605
  226. package/dist/styles/index.css +22 -3
  227. package/package.json +9 -12
  228. package/dist/_dts/api/src/event-presentation.d.ts +0 -14
  229. package/dist/_dts/blocks/src/definitions.d.ts +0 -14
  230. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
  231. package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
  232. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
  233. package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
  234. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
  235. package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
  236. package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
  237. package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
  238. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
  239. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
  240. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
  241. package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
  242. package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
  243. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
  244. package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
  245. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
  246. package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
  247. package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
  248. package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
  249. package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
  250. package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
  251. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
  252. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
  253. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
  254. package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
  255. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
  256. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
  257. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
  258. package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
  259. package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
  260. package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
  261. package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
  262. package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
  263. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
  264. package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
  265. package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
  266. package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
  267. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
  268. package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
  269. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
  270. package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
  271. package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
  272. package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
  273. package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
  274. package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
  275. package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
  276. package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
  277. package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
  278. package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
  279. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
  280. package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
  281. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
  282. package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
  283. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
  284. package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
  285. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
  286. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
  287. package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
  288. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
  289. package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
  290. package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
  291. package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
  292. package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
  293. package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
  294. package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
  295. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
  296. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
  297. package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
  298. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
  299. package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
  300. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
  301. package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
  302. package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
  303. package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
  304. package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
  305. package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
  306. package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
  307. package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
  308. package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
  309. package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
  310. package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
  311. package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
  312. package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
  313. package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
  314. package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
  315. package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
  316. package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
  317. package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
  318. package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
  319. package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
  320. package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
  321. package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
  322. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
  323. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
  324. package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
  325. package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
  326. package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
  327. package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
  328. package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
  329. package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
  330. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
  331. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
  332. package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
  333. package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
  334. package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
  335. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
  336. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
  337. package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
  338. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
  339. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
  340. package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
  341. package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
  342. package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
  343. package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
  344. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
  345. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
  346. package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
  347. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
  348. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
  349. package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
  350. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
  351. package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
  352. package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
  353. package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
  354. package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
  355. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
  356. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
  357. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
  358. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
  359. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
  360. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
  361. package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
  362. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
  363. package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
  364. package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
  365. package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
  366. package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
  367. package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
  368. package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
  369. package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
  370. package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
  371. package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
  372. package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
  373. package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
  374. package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
  375. package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
  376. package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
  377. package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
  378. package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
  379. package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
  380. package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
  381. package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
  382. package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
  383. package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
  384. package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
  385. package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
  386. package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
  387. package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
  388. package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
  389. package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
  390. package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
  391. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
  392. package/dist/_dts/sdk/src/test/env.d.ts +0 -4
  393. package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
  394. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
  395. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
  396. package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
  397. package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
  398. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
  399. package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
  400. package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
  401. package/dist/_dts/site-commands/src/domain.d.ts +0 -104
  402. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
  403. package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
  404. package/dist/_dts/site-commands/src/guards.d.ts +0 -1
  405. package/dist/_dts/site-commands/src/index.d.ts +0 -18
  406. package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
  407. package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
  408. package/dist/_dts/site-commands/src/planner.d.ts +0 -58
  409. package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
  410. package/dist/_dts/site-commands/src/refs.d.ts +0 -90
  411. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
  412. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
  413. package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
  414. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
  415. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
  416. package/dist/_dts/theme-core/src/data.d.ts +0 -12
  417. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
  418. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
  419. package/dist/cli/index.mjs +0 -162988
  420. package/dist/cli/init-docs/content/agents-section.md +0 -67
  421. package/dist/cli/init-docs/content/cli-reference.md +0 -1238
  422. package/dist/cli/init-docs/content/content-management.md +0 -792
  423. package/dist/cli/init-docs/content/context-brand.md +0 -125
  424. package/dist/cli/init-docs/content/context-brief.md +0 -77
  425. package/dist/cli/init-docs/content/context-knowledge.md +0 -111
  426. package/dist/cli/init-docs/content/getting-started.md +0 -171
  427. package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
  428. package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
  429. package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
  430. package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
  431. package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
  432. package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
  433. package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
  434. package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
  435. package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
  436. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
  437. package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
  438. package/dist/cli/init-docs/content/workflow-publish.md +0 -285
  439. package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
  440. package/dist/cli/init-docs/content/workflow-templates.md +0 -381
  441. /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
@@ -1,170 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import { type DryRunReport, type SiteCommandBatch, type SiteCommandExecutionSuccess, type SiteCommandOf, type SiteCommandPlanFor, type SiteCommandRef, type SiteCommandType, type SiteCommandValidationError } from '../../../../site-commands/src/index';
3
- import { type ManagementApiErrorRequest } from '../../client/management';
4
- import type { EnvTarget } from '../helpers';
5
- export type CliCommandBatchRefInput<TSource extends string = string> = Readonly<{
6
- source: TSource;
7
- siteId: SiteId;
8
- targetEnv: EnvTarget;
9
- }>;
10
- export type CliCommandExecutionError<TCommandType extends SiteCommandType> = Readonly<{
11
- code: 'management_api_failed';
12
- commandRef: SiteCommandRef;
13
- commandType: TCommandType;
14
- message: string;
15
- detail?: CliCommandFailureDetail;
16
- }>;
17
- export type CliCommandFailureFieldError = Readonly<{
18
- field: string;
19
- message: string;
20
- code?: string;
21
- }>;
22
- export type CliCommandFailureDetail = Readonly<{
23
- tag: 'management_api';
24
- code: string;
25
- statusCode?: number;
26
- request?: ManagementApiErrorRequest;
27
- fieldErrors: readonly CliCommandFailureFieldError[];
28
- details?: unknown;
29
- }> | Readonly<{
30
- tag: 'unknown';
31
- }>;
32
- export type CliCommandExecutionResult<TCommandType extends SiteCommandType> = Readonly<{
33
- status: 'applied';
34
- applied: readonly SiteCommandExecutionSuccess[];
35
- }> | Readonly<{
36
- status: 'failed';
37
- applied: readonly SiteCommandExecutionSuccess[];
38
- failed: CliCommandExecutionError<TCommandType>;
39
- }>;
40
- export type PlannedCliCommand<TCommand extends Readonly<{
41
- ref: SiteCommandRef;
42
- type: SiteCommandType;
43
- }>> = Readonly<{
44
- command: TCommand;
45
- }>;
46
- export type CliCommandReportBinding<TCommand extends Readonly<{
47
- ref: SiteCommandRef;
48
- type: SiteCommandType;
49
- }>, TSubject> = Readonly<{
50
- command: TCommand;
51
- reportSubject: TSubject;
52
- }>;
53
- export type CliCommandReportedPlannedCommand<TCommand extends Readonly<{
54
- ref: SiteCommandRef;
55
- type: SiteCommandType;
56
- }>, TSubject> = Readonly<{
57
- plannedCommand: PlannedCliCommand<TCommand>;
58
- reportSubject: TSubject;
59
- }>;
60
- export type CliCommandExecutionReportFailure<TSubject> = Readonly<{
61
- identifier: string;
62
- message: string;
63
- detail?: CliCommandFailureDetail;
64
- subject?: TSubject;
65
- }>;
66
- export type CliCommandOutcome<TSubject> = Readonly<{
67
- status: 'applied';
68
- commandRef: SiteCommandRef;
69
- commandType: SiteCommandType;
70
- subject: TSubject;
71
- }> | Readonly<{
72
- status: 'failed';
73
- commandRef: SiteCommandRef;
74
- commandType: SiteCommandType;
75
- identifier: string;
76
- message: string;
77
- detail?: CliCommandFailureDetail;
78
- subject?: TSubject;
79
- }> | Readonly<{
80
- status: 'skipped_by_stop_policy';
81
- commandRef: SiteCommandRef;
82
- commandType: SiteCommandType;
83
- identifier: string;
84
- subject: TSubject;
85
- }> | Readonly<{
86
- status: 'compile_failed';
87
- identifier: string;
88
- message: string;
89
- subject?: TSubject;
90
- }> | Readonly<{
91
- status: 'preflight_failed';
92
- identifier: string;
93
- message: string;
94
- subject?: TSubject;
95
- }>;
96
- export type CliCommandExecutionReport<TSubject> = Readonly<{
97
- outcomes: readonly CliCommandOutcome<TSubject>[];
98
- appliedSubjects: readonly TSubject[];
99
- failure: CliCommandExecutionReportFailure<TSubject> | null;
100
- warnings: readonly string[];
101
- }>;
102
- export type CliCommandValidationCompileError = Readonly<{
103
- code: 'command_validation_failed';
104
- errors: readonly SiteCommandValidationError[];
105
- message: string;
106
- }>;
107
- export type CliCommandCompileBatchSuccess<TCommandType extends SiteCommandType> = Readonly<{
108
- batch: SiteCommandBatch;
109
- plan: SiteCommandPlanFor<TCommandType>;
110
- dryRunReport: DryRunReport;
111
- }>;
112
- export type CliCommandCompileBatchSuccessWithReports<TCommandType extends SiteCommandType, TSubject> = Readonly<{
113
- reportedCommands: readonly CliCommandReportedPlannedCommand<SiteCommandOf<TCommandType>, TSubject>[];
114
- }> & CliCommandCompileBatchSuccess<TCommandType>;
115
- export declare function createCliCommandBatchRef(input: CliCommandBatchRefInput): string;
116
- export declare function formatSiteCommandValidationErrors(errors: readonly {
117
- message: string;
118
- }[]): string;
119
- export declare function managementErrorDetail(error: unknown): CliCommandFailureDetail;
120
- export declare function formatManagementError(error: unknown): string;
121
- export declare function planCliCommandBatchForTypes<TCommandType extends SiteCommandType>(input: CliCommandBatchRefInput & Readonly<{
122
- commands: readonly SiteCommandOf<TCommandType>[];
123
- commandTypes: readonly TCommandType[];
124
- }>): Result<CliCommandCompileBatchSuccess<TCommandType>, CliCommandValidationCompileError>;
125
- export declare function planCliCommandBatchForBindings<TCommandType extends SiteCommandType, TSubject>(input: CliCommandBatchRefInput & Readonly<{
126
- commandBindings: readonly CliCommandReportBinding<SiteCommandOf<TCommandType>, TSubject>[];
127
- commandTypes: readonly TCommandType[];
128
- }>): Result<CliCommandCompileBatchSuccessWithReports<TCommandType, TSubject>, CliCommandValidationCompileError>;
129
- export declare function executeCliCommandPlan<TCommand extends Readonly<{
130
- ref: SiteCommandRef;
131
- type: TCommandType;
132
- }>, TCommandType extends SiteCommandType>(input: Readonly<{
133
- commands: readonly PlannedCliCommand<TCommand>[];
134
- applyCommand: (command: TCommand) => Promise<void>;
135
- }>): Promise<CliCommandExecutionResult<TCommandType>>;
136
- export declare function commandExecutionToReport<TCommand extends Readonly<{
137
- ref: SiteCommandRef;
138
- type: TCommandType;
139
- }>, TCommandType extends SiteCommandType, TSubject>(input: Readonly<{
140
- execution: CliCommandExecutionResult<TCommandType>;
141
- reportedCommands: readonly CliCommandReportedPlannedCommand<TCommand, TSubject>[];
142
- resourceLabel: string;
143
- commandDisplayIdentifier: (command: TCommand) => string;
144
- includeFailureSubject?: boolean;
145
- }>): CliCommandExecutionReport<TSubject>;
146
- export declare function commandCompileFailureToReport<TSubject>(input: Readonly<{
147
- identifier: string;
148
- message: string;
149
- detail?: CliCommandFailureDetail;
150
- subject?: TSubject;
151
- warnings?: readonly string[];
152
- }>): CliCommandExecutionReport<TSubject>;
153
- export declare function executeCompiledCliCommandPlanAsReport<TCompiledPlan extends Readonly<{
154
- plan: Readonly<{
155
- commands: readonly unknown[];
156
- }>;
157
- }>, TExecutionResult, TSubject>(input: Readonly<{
158
- compiledPlan: TCompiledPlan;
159
- onBeforeExecute?: (commandCount: number) => void;
160
- executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
161
- executionToReport: (input: Readonly<{
162
- execution: TExecutionResult;
163
- compiledPlan: TCompiledPlan;
164
- }>) => CliCommandExecutionReport<TSubject>;
165
- }>): Promise<CliCommandExecutionReport<TSubject>>;
166
- export declare function reportFromOutcomes<TSubject>(input: Readonly<{
167
- outcomes: readonly CliCommandOutcome<TSubject>[];
168
- warnings?: readonly string[];
169
- }>): CliCommandExecutionReport<TSubject>;
170
- export declare function commandReportHasFailures(report: CliCommandExecutionReport<unknown>): boolean;
@@ -1,21 +0,0 @@
1
- import { type SyncResult } from '../sync';
2
- import { type CliCommandExecutionReport } from './commandRuntime';
3
- export declare function commandReportToSyncResult<TSubject>(input: Readonly<{
4
- report: CliCommandExecutionReport<TSubject>;
5
- incrementSuccess: (result: SyncResult, subject: TSubject) => void;
6
- recordFailure: (result: SyncResult, identifier: string, message: string, subject: TSubject | undefined) => void;
7
- }>): SyncResult;
8
- export declare function executeCompiledCliCommandPlanAsSyncResult<TCompiledPlan extends Readonly<{
9
- plan: Readonly<{
10
- commands: readonly unknown[];
11
- }>;
12
- }>, TExecutionResult, TSubject>(input: Readonly<{
13
- compiledPlan: TCompiledPlan;
14
- onBeforeExecute?: (commandCount: number) => void;
15
- executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
16
- executionToReport: (input: Readonly<{
17
- execution: TExecutionResult;
18
- compiledPlan: TCompiledPlan;
19
- }>) => CliCommandExecutionReport<TSubject>;
20
- reportToSyncResult: (report: CliCommandExecutionReport<TSubject>) => SyncResult;
21
- }>): Promise<SyncResult>;
@@ -1,32 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import type { ManagementClient } from '../../client/management/types';
3
- import type { LocalContent } from '../content/reader';
4
- import type { EnvTarget } from '../helpers';
5
- import type { ContentDiff, SyncResult } from '../sync';
6
- import { compilePagePushCommands } from './pageCommands';
7
- import type { CommandSurface, CommandSurfaceCompileResult, CommandSurfaceCompileSuccess, CommandSurfaceExecutionReport, CompiledContentPushExecutionPlan, CompiledContentPushExecutionStep, ContentPushExecutionPlan, ContentPushExecutionReport } from './pushExecutionTypes';
8
- export type CommandSurfaceDispatchInput = Readonly<{
9
- siteId: SiteId;
10
- target: EnvTarget;
11
- diff: ContentDiff;
12
- local: LocalContent;
13
- client: ManagementClient;
14
- customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
15
- blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
16
- onEntryCommandCount?: (commandCount: number) => void;
17
- onFormCommandCount?: (commandCount: number) => void;
18
- onNavigationCommandCount?: (commandCount: number) => void;
19
- onPageCommandCount?: (commandCount: number) => void;
20
- }>;
21
- export type CommandSurfaceDispatchDependencies = Readonly<{
22
- compileCommandSurface?: (surface: CommandSurface, input: CommandSurfaceDispatchInput) => CommandSurfaceCompileResult;
23
- preflightCommandSurfaceAsReport?: (surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput) => CommandSurfaceExecutionReport;
24
- executeCommandSurfaceAsReport?: (surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput) => Promise<CommandSurfaceExecutionReport>;
25
- }>;
26
- export declare function compileContentPushExecutionPlan(plan: ContentPushExecutionPlan, input: CommandSurfaceDispatchInput, dependencies?: CommandSurfaceDispatchDependencies): Result<CompiledContentPushExecutionPlan, ContentPushExecutionReport>;
27
- export declare function preflightContentPushExecutionPlan(steps: readonly CompiledContentPushExecutionStep[], input: CommandSurfaceDispatchInput, dependencies?: CommandSurfaceDispatchDependencies): ContentPushExecutionReport;
28
- export declare function contentPushExecutionReportHasFailures(report: ContentPushExecutionReport): boolean;
29
- export declare function executeCommandSurfaceAsReport(surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput): Promise<CommandSurfaceExecutionReport>;
30
- export declare function preflightCommandSurfaceAsReport(surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput): CommandSurfaceExecutionReport;
31
- export declare function skippedRemainingCommandReports(steps: readonly CompiledContentPushExecutionStep[]): CommandSurfaceExecutionReport[];
32
- export declare function commandSurfaceReportToSyncResult(report: CommandSurfaceExecutionReport): SyncResult;
@@ -1,53 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import type { ManagementClient } from '../../client/management/types';
3
- import type { LocalEvent, LocalEventCategory, LocalVenue } from '../content/reader';
4
- import type { EnvTarget } from '../helpers';
5
- import type { PushScopeResult } from '../commands/push/scopes/types';
6
- import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError } from './commandRuntime';
7
- export type CliDatedOfferingCommandBatchSource = 'push_venues' | 'push_event_categories' | 'push_events' | 'push_all_dated_offerings';
8
- export type DatedOfferingSiteCommandType = 'upsertVenue' | 'deleteVenue' | 'upsertEventCategory' | 'deleteEventCategory' | 'upsertEventSeries' | 'deleteEventSeries';
9
- type DatedOfferingCounter = 'created' | 'updated' | 'deleted';
10
- export type DatedOfferingReportSubject = Readonly<{
11
- scopeCommand: 'venues' | 'event-categories' | 'events';
12
- scopeName: string;
13
- itemLabelSingular: string;
14
- identifier: string;
15
- counter: DatedOfferingCounter;
16
- }>;
17
- export type CliDatedOfferingCommandCompileError = Readonly<{
18
- code: 'unsupported_local_shape';
19
- identifier: string;
20
- message: string;
21
- }> | CliCommandValidationCompileError;
22
- export type CliDatedOfferingCommandCompileInput = Readonly<{
23
- source: CliDatedOfferingCommandBatchSource;
24
- siteId: SiteId;
25
- targetEnv: EnvTarget;
26
- venues?: DatedOfferingUpsertInput<LocalVenue>;
27
- eventCategories?: DatedOfferingUpsertInput<LocalEventCategory>;
28
- events?: DatedOfferingUpsertInput<LocalEvent>;
29
- delete?: DatedOfferingDeleteInput;
30
- }>;
31
- export type DatedOfferingUpsertInput<TItem> = Readonly<{
32
- items: readonly DatedOfferingUpsertItem<TItem>[];
33
- }>;
34
- export type DatedOfferingUpsertItem<TItem> = Readonly<{
35
- item: TItem;
36
- exists: boolean;
37
- }>;
38
- export type DatedOfferingDeleteInput = Readonly<{
39
- venues?: readonly string[];
40
- eventCategories?: readonly string[];
41
- events?: readonly string[];
42
- }>;
43
- export type CliDatedOfferingCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<DatedOfferingSiteCommandType, DatedOfferingReportSubject>;
44
- export declare const datedOfferingSiteCommandTypes: readonly ["upsertVenue", "deleteVenue", "upsertEventCategory", "deleteEventCategory", "upsertEventSeries", "deleteEventSeries"];
45
- export declare function compileDatedOfferingPushCommands(input: CliDatedOfferingCommandCompileInput): Result<CliDatedOfferingCommandCompileSuccess, CliDatedOfferingCommandCompileError>;
46
- export declare function executeDatedOfferingCommandPlanAsPushScopeResult(input: Readonly<{
47
- client: Pick<ManagementClient, 'venues' | 'eventCategories' | 'events'>;
48
- compiledPlan: CliDatedOfferingCommandCompileSuccess;
49
- scopeCommand: DatedOfferingReportSubject['scopeCommand'];
50
- scopeName: string;
51
- }>): Promise<PushScopeResult>;
52
- export declare function syncResultForDatedOfferingCommandCompileError(error: CliDatedOfferingCommandCompileError, scopeCommand: DatedOfferingReportSubject['scopeCommand'], scopeName: string): PushScopeResult;
53
- export {};
@@ -1,65 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import { type AllowedRuntime, type SiteCommandOf } from '../../../../site-commands/src/index';
3
- import type { ManagementClient } from '../../client/management/types';
4
- import type { LocalContent } from '../content/reader';
5
- import type { EnvTarget } from '../helpers';
6
- import type { ContentDiff } from '../sync/diff';
7
- import type { SyncResult } from '../sync';
8
- import { type CliContentTypeKey, type CliEntryIdentifier } from './commandKeys';
9
- import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult } from './commandRuntime';
10
- export type CliEntryCommandBatchSource = 'push_entries' | 'merge_remote_entries';
11
- export type CliCommandCompileError = Readonly<{
12
- code: 'missing_local_entry';
13
- contentType: CliContentTypeKey;
14
- identifier: CliEntryIdentifier;
15
- message: string;
16
- }> | CliCommandValidationCompileError;
17
- export type CliEntryCommandCompileInput = Readonly<{
18
- source: CliEntryCommandBatchSource;
19
- siteId: SiteId;
20
- targetEnv: EnvTarget;
21
- diff: Pick<ContentDiff, 'entries'>;
22
- local: Pick<LocalContent, 'entries'>;
23
- }>;
24
- export type CliEntryCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<EntrySiteCommandType, EntryCommandReportSubject>;
25
- export type CliEntryCommandExecutionError = CliCommandExecutionError<EntrySiteCommandType>;
26
- export type CliEntryCommandExecutionResult = CliCommandExecutionResult<EntrySiteCommandType>;
27
- export type CliEntryCommandSyncInput = Readonly<{
28
- client: Pick<ManagementClient, 'entries'>;
29
- compiledPlan: EntryCommandCompiledPlan;
30
- onBeforeExecute?: (commandCount: number) => void;
31
- }>;
32
- export type EntrySiteCommandType = 'upsertContentEntry' | 'publishContentEntry' | 'unpublishContentEntry' | 'deleteContentEntry';
33
- export type EntrySiteCommand = SiteCommandOf<EntrySiteCommandType>;
34
- export type EntrySiteCommandPlan = CliEntryCommandCompileSuccess['plan'];
35
- export declare const entrySiteCommandTypes: readonly ["upsertContentEntry", "publishContentEntry", "unpublishContentEntry", "deleteContentEntry"];
36
- export type EntryCommandSyncCounter = 'created' | 'updated' | 'deleted' | 'published' | 'unpublished';
37
- export type EntryCommandReportSubject = Readonly<{
38
- contentType: CliContentTypeKey;
39
- identifier: CliEntryIdentifier;
40
- counter: EntryCommandSyncCounter;
41
- }>;
42
- export type EntryCommandExecutionReport = CliCommandExecutionReport<EntryCommandReportSubject>;
43
- type EntryCommandCompiledPlan = Pick<CliEntryCommandCompileSuccess, 'plan' | 'reportedCommands'>;
44
- export declare function compileEntryPushCommands(input: CliEntryCommandCompileInput): Result<CliEntryCommandCompileSuccess, CliCommandCompileError>;
45
- /** SDK push only distinguishes local development and remote production targets today. */
46
- export declare function runtimeForCliTarget(targetEnv: EnvTarget): AllowedRuntime;
47
- export declare function executeEntryCommandPlan(input: Readonly<{
48
- client: Pick<ManagementClient, 'entries'>;
49
- plan: Pick<EntrySiteCommandPlan, 'commands'>;
50
- }>): Promise<CliEntryCommandExecutionResult>;
51
- export declare function executeEntryCommandPlanAsSyncResult(input: CliEntryCommandSyncInput): Promise<SyncResult>;
52
- export declare function executeEntryCommandPlanAsReport(input: CliEntryCommandSyncInput): Promise<EntryCommandExecutionReport>;
53
- export declare function syncResultForEntryCommandCompileError(error: CliCommandCompileError): SyncResult;
54
- export declare function entryCommandCompileErrorToReport(error: CliCommandCompileError): EntryCommandExecutionReport;
55
- export declare function entryCommandExecutionToSyncResult(input: Readonly<{
56
- execution: CliEntryCommandExecutionResult;
57
- compiledPlan: EntryCommandCompiledPlan;
58
- }>): SyncResult;
59
- export declare function entryCommandExecutionToReport(input: Readonly<{
60
- execution: CliEntryCommandExecutionResult;
61
- compiledPlan: EntryCommandCompiledPlan;
62
- }>): EntryCommandExecutionReport;
63
- export declare function entryCommandReportToSyncResult(report: EntryCommandExecutionReport): SyncResult;
64
- export declare function titleFromEntryData(data: Record<string, unknown>): string | undefined;
65
- export {};
@@ -1,24 +0,0 @@
1
- import { type Result } from '../../../../core/src/index';
2
- import type { SiteCommandOf } from '../../../../site-commands/src/index';
3
- import type { EventSeriesUpsertInput } from '../../client/management/types';
4
- type EventOccurrenceCompileInput = Readonly<{
5
- startsAt: string;
6
- endsAt: string;
7
- timeZone: string;
8
- }>;
9
- type EventScheduleCompileInput = Readonly<{
10
- identifier: string;
11
- occurrences: ReadonlyArray<EventOccurrenceCompileInput>;
12
- }>;
13
- type ScheduleCompileError = Readonly<{
14
- code: 'unsupported_local_shape';
15
- identifier: string;
16
- message: string;
17
- }>;
18
- export declare function compileExplicitEventSchedule(event: EventScheduleCompileInput): Result<Readonly<{
19
- timeZone: string;
20
- occurrences: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'];
21
- }>, ScheduleCompileError>;
22
- export declare function scheduleFromExplicitEventOccurrence(occurrence: EventOccurrenceCompileInput): EventSeriesUpsertInput['schedule'];
23
- export declare function scheduleFromCommandOccurrence(occurrence: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'][number], timeZone: SiteCommandOf<'upsertEventSeries'>['input']['timezone']): EventSeriesUpsertInput['schedule'];
24
- export {};
@@ -1,68 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import { type SiteCommandOf } from '../../../../site-commands/src/index';
3
- import type { ManagementClient, ManagementFooterContent } from '../../client/management/types';
4
- import type { LocalFooterContent } from '../content/reader';
5
- import type { EnvTarget } from '../helpers';
6
- import type { FooterDiff } from '../sync/diff';
7
- import type { SyncResult } from '../sync';
8
- import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
9
- export type CliFooterCommandBatchSource = 'push_footer';
10
- export type CliFooterCommandCompileError = CliCommandValidationCompileError;
11
- export type CliFooterCommandCompileInput = Readonly<{
12
- source: CliFooterCommandBatchSource;
13
- siteId: SiteId;
14
- targetEnv: EnvTarget;
15
- diff: FooterDiff;
16
- local: LocalFooterContent;
17
- }>;
18
- export type CliFooterCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<FooterSiteCommandType, FooterCommandReportSubject>;
19
- export type FooterSiteCommandType = 'upsertFooterContent';
20
- export type FooterSiteCommand = SiteCommandOf<FooterSiteCommandType>;
21
- export type FooterSiteCommandPlan = CliFooterCommandCompileSuccess['plan'];
22
- export type CliFooterCommandExecutionError = CliCommandExecutionError<FooterSiteCommandType>;
23
- export type CliFooterCommandApplication = Readonly<{
24
- kind: 'not-applied';
25
- }> | Readonly<{
26
- kind: 'applied';
27
- authoritativeFooter: ManagementFooterContent | null;
28
- }>;
29
- export type CliFooterCommandExecutionResult = Readonly<{
30
- execution: CliCommandExecutionResult<FooterSiteCommandType>;
31
- application: CliFooterCommandApplication;
32
- }>;
33
- export declare const footerSiteCommandTypes: readonly ["upsertFooterContent"];
34
- export type FooterCommandReportSubject = Readonly<{
35
- identifier: 'footer';
36
- }>;
37
- export type FooterCommandExecutionReport = CliCommandExecutionReport<FooterCommandReportSubject>;
38
- type FooterCommandCompiledPlan = Pick<CliFooterCommandCompileSuccess, 'plan' | 'reportedCommands'>;
39
- export declare function compileFooterPushCommands(input: CliFooterCommandCompileInput): Result<CliFooterCommandCompileSuccess, CliFooterCommandCompileError>;
40
- export declare function executeFooterCommandPlan(input: Readonly<{
41
- client: Pick<ManagementClient, 'footer'>;
42
- plan: Pick<FooterSiteCommandPlan, 'commands'>;
43
- }>): Promise<CliFooterCommandExecutionResult>;
44
- export declare function executeFooterCommandPlanAsSyncResult(input: Readonly<{
45
- client: Pick<ManagementClient, 'footer'>;
46
- compiledPlan: FooterCommandCompiledPlan;
47
- onBeforeExecute?: (commandCount: number) => void;
48
- }>): Promise<Readonly<{
49
- syncResult: SyncResult;
50
- application: CliFooterCommandApplication;
51
- }>>;
52
- export declare function executeFooterCommandPlanAsReport(input: Readonly<{
53
- client: Pick<ManagementClient, 'footer'>;
54
- compiledPlan: FooterCommandCompiledPlan;
55
- onBeforeExecute?: (commandCount: number) => void;
56
- }>): Promise<FooterCommandExecutionReport>;
57
- export declare function syncResultForFooterCommandCompileError(error: CliFooterCommandCompileError): SyncResult;
58
- export declare function footerCommandCompileErrorToReport(error: CliFooterCommandCompileError): FooterCommandExecutionReport;
59
- export declare function footerCommandExecutionToSyncResult(input: Readonly<{
60
- execution: CliFooterCommandExecutionResult;
61
- compiledPlan: FooterCommandCompiledPlan;
62
- }>): SyncResult;
63
- export declare function footerCommandExecutionToReport(input: Readonly<{
64
- execution: CliFooterCommandExecutionResult;
65
- compiledPlan: FooterCommandCompiledPlan;
66
- }>): FooterCommandExecutionReport;
67
- export declare function footerCommandReportToSyncResult(report: FooterCommandExecutionReport): SyncResult;
68
- export {};
@@ -1,53 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import { type SiteCommandOf } from '../../../../site-commands/src/index';
3
- import type { ManagementClient } from '../../client/management/types';
4
- import type { LocalContent } from '../content/reader';
5
- import type { EnvTarget } from '../helpers';
6
- import type { ContentDiff } from '../sync/diff';
7
- import type { SyncResult } from '../sync';
8
- import { type CliFormSlug } from './commandKeys';
9
- import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
10
- export type CliFormCommandBatchSource = 'push_forms';
11
- export type CliFormCommandCompileError = Readonly<{
12
- code: 'missing_local_form';
13
- slug: CliFormSlug;
14
- message: string;
15
- }> | CliCommandValidationCompileError;
16
- export type CliFormCommandCompileInput = Readonly<{
17
- source: CliFormCommandBatchSource;
18
- siteId: SiteId;
19
- targetEnv: EnvTarget;
20
- diff: Pick<ContentDiff, 'forms'>;
21
- local: Pick<LocalContent, 'forms'>;
22
- }>;
23
- export type CliFormCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<FormSiteCommandType, FormCommandReportSubject>;
24
- export type FormSiteCommandType = 'upsertForm';
25
- export type FormSiteCommand = SiteCommandOf<FormSiteCommandType>;
26
- export type FormSiteCommandPlan = CliFormCommandCompileSuccess['plan'];
27
- export type CliFormCommandExecutionError = CliCommandExecutionError<FormSiteCommandType>;
28
- export type CliFormCommandExecutionResult = CliCommandExecutionResult<FormSiteCommandType>;
29
- export declare const formSiteCommandTypes: readonly ["upsertForm"];
30
- export type FormCommandSyncCounter = 'created' | 'updated';
31
- export type FormCommandReportSubject = Readonly<{
32
- slug: CliFormSlug;
33
- counter: FormCommandSyncCounter;
34
- }>;
35
- export type FormCommandExecutionReport = CliCommandExecutionReport<FormCommandReportSubject>;
36
- type FormCommandCompiledPlan = Pick<CliFormCommandCompileSuccess, 'plan' | 'reportedCommands'>;
37
- export declare function compileFormPushCommands(input: CliFormCommandCompileInput): Result<CliFormCommandCompileSuccess, CliFormCommandCompileError>;
38
- export declare function executeFormCommandPlan(input: Readonly<{
39
- client: Pick<ManagementClient, 'forms'>;
40
- plan: Pick<FormSiteCommandPlan, 'commands'>;
41
- }>): Promise<CliFormCommandExecutionResult>;
42
- export declare function executeFormCommandPlanAsReport(input: Readonly<{
43
- client: Pick<ManagementClient, 'forms'>;
44
- compiledPlan: FormCommandCompiledPlan;
45
- onBeforeExecute?: (commandCount: number) => void;
46
- }>): Promise<FormCommandExecutionReport>;
47
- export declare function formCommandCompileErrorToReport(error: CliFormCommandCompileError): FormCommandExecutionReport;
48
- export declare function formCommandExecutionToReport(input: Readonly<{
49
- execution: CliFormCommandExecutionResult;
50
- compiledPlan: FormCommandCompiledPlan;
51
- }>): FormCommandExecutionReport;
52
- export declare function formCommandReportToSyncResult(report: FormCommandExecutionReport): SyncResult;
53
- export {};
@@ -1,8 +0,0 @@
1
- export * from './commandRuntime';
2
- export * from './datedOfferingCommands';
3
- export * from './entryCommands';
4
- export * from './formCommands';
5
- export * from './footerCommands';
6
- export * from './navigationCommands';
7
- export * from './pageCommands';
8
- export * from './pushExecution';
@@ -1,31 +0,0 @@
1
- import type { BlockFieldExtensionsMap, FieldDefinition, SdkCustomBlock } from '../../config/types';
2
- export type LocalBlockManifest = Readonly<{
3
- name: string;
4
- fields: readonly FieldDefinition[];
5
- }> & Record<string, unknown>;
6
- export type LocalBlockManifestResolution = Readonly<{
7
- kind: 'builtin_found';
8
- manifest: LocalBlockManifest;
9
- extensionFields: readonly FieldDefinition[];
10
- }> | Readonly<{
11
- kind: 'custom_found';
12
- manifest: LocalBlockManifest;
13
- extensionFields: readonly FieldDefinition[];
14
- }> | Readonly<{
15
- kind: 'extension_only_custom_found';
16
- manifest: LocalBlockManifest;
17
- }> | Readonly<{
18
- kind: 'unknown_builtin';
19
- }> | Readonly<{
20
- kind: 'unknown_custom';
21
- }>;
22
- export type ResolveLocalBlockManifestInput = Readonly<{
23
- kind: string;
24
- customBlocks?: readonly SdkCustomBlock[];
25
- blockFieldExtensions?: BlockFieldExtensionsMap;
26
- }>;
27
- export type ResolveLocalBlockManifestFromSourcesInput = ResolveLocalBlockManifestInput & Readonly<{
28
- builtInManifest?: LocalBlockManifest;
29
- }>;
30
- export declare function resolveLocalBlockManifest(input: ResolveLocalBlockManifestInput): LocalBlockManifestResolution;
31
- export declare function resolveLocalBlockManifestFromSources(input: ResolveLocalBlockManifestFromSourcesInput): LocalBlockManifestResolution;
@@ -1,57 +0,0 @@
1
- import { type Result, type SiteId } from '../../../../core/src/index';
2
- import { type SiteCommandOf } from '../../../../site-commands/src/index';
3
- import type { ManagementClient } from '../../client/management/types';
4
- import type { LocalContent } from '../content/reader';
5
- import type { EnvTarget } from '../helpers';
6
- import type { NavigationDiff } from '../sync/diff';
7
- import type { SyncResult } from '../sync';
8
- import { type CliNavigationMenuName } from './commandKeys';
9
- import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
10
- export type CliNavigationCommandBatchSource = 'push_navigation';
11
- export type CliNavigationCommandCompileError = Readonly<{
12
- code: 'missing_local_navigation_menu';
13
- name: CliNavigationMenuName;
14
- message: string;
15
- }> | Readonly<{
16
- code: 'duplicate_navigation_identity';
17
- identity: string;
18
- message: string;
19
- }> | CliCommandValidationCompileError;
20
- export type CliNavigationCommandCompileInput = Readonly<{
21
- source: CliNavigationCommandBatchSource;
22
- siteId: SiteId;
23
- targetEnv: EnvTarget;
24
- diff: readonly NavigationDiff[];
25
- local: Pick<LocalContent, 'navigation'>;
26
- }>;
27
- export type CliNavigationCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<NavigationSiteCommandType, NavigationCommandReportSubject>;
28
- export type CliNavigationCommandExecutionError = CliCommandExecutionError<NavigationSiteCommandType>;
29
- export type CliNavigationCommandExecutionResult = CliCommandExecutionResult<NavigationSiteCommandType>;
30
- export type NavigationSiteCommandType = 'upsertNavigationMenu';
31
- export type NavigationSiteCommand = SiteCommandOf<NavigationSiteCommandType>;
32
- export type NavigationSiteCommandPlan = CliNavigationCommandCompileSuccess['plan'];
33
- export declare const navigationSiteCommandTypes: readonly ["upsertNavigationMenu"];
34
- export type NavigationCommandSyncCounter = 'created' | 'updated';
35
- export type NavigationCommandReportSubject = Readonly<{
36
- name: CliNavigationMenuName;
37
- counter: NavigationCommandSyncCounter;
38
- }>;
39
- export type NavigationCommandExecutionReport = CliCommandExecutionReport<NavigationCommandReportSubject>;
40
- type NavigationCommandCompiledPlan = Pick<CliNavigationCommandCompileSuccess, 'plan' | 'reportedCommands'>;
41
- export declare function compileNavigationPushCommands(input: CliNavigationCommandCompileInput): Result<CliNavigationCommandCompileSuccess, CliNavigationCommandCompileError>;
42
- export declare function executeNavigationCommandPlan(input: Readonly<{
43
- client: Pick<ManagementClient, 'navigation'>;
44
- plan: Pick<NavigationSiteCommandPlan, 'commands'>;
45
- }>): Promise<CliNavigationCommandExecutionResult>;
46
- export declare function executeNavigationCommandPlanAsReport(input: Readonly<{
47
- client: Pick<ManagementClient, 'navigation'>;
48
- compiledPlan: NavigationCommandCompiledPlan;
49
- onBeforeExecute?: (commandCount: number) => void;
50
- }>): Promise<NavigationCommandExecutionReport>;
51
- export declare function navigationCommandCompileErrorToReport(error: CliNavigationCommandCompileError): NavigationCommandExecutionReport;
52
- export declare function navigationCommandExecutionToReport(input: Readonly<{
53
- execution: CliNavigationCommandExecutionResult;
54
- compiledPlan: NavigationCommandCompiledPlan;
55
- }>): NavigationCommandExecutionReport;
56
- export declare function navigationCommandReportToSyncResult(report: NavigationCommandExecutionReport): SyncResult;
57
- export {};