@riverbankcms/sdk 0.123.0 → 0.124.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 (259) hide show
  1. package/README.md +14 -9
  2. package/dist/{PreviewEditorSidebar-DvJFmC29.mjs → PreviewEditorSidebar-DBmAJJkQ.mjs} +22 -39
  3. package/dist/{PreviewEditorUI-DVHP4bCo.mjs → PreviewEditorUI-CfGaz9cY.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-07EE4uWL.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BE5eFayo.mjs → SdkPreviewModeRuntime-BW9Z8j8T.mjs} +1020 -1234
  6. package/dist/{SiteChromeCustomizeContext-4hn4A0HX.mjs → SiteChromeCustomizeContext-2z8moxYf.mjs} +1900 -1959
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1236 -4152
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +435 -0
  9. package/dist/_dts/api/src/bookingClosures.d.ts +3 -3
  10. package/dist/_dts/api/src/bookingConfig.d.ts +72 -73
  11. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +26 -35
  12. package/dist/_dts/api/src/bookingRecords.d.ts +4 -15
  13. package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +746 -0
  14. package/dist/_dts/api/src/bookingVerticalPreset.d.ts +38 -0
  15. package/dist/_dts/api/src/bookingVerticals.d.ts +11 -652
  16. package/dist/_dts/api/src/bookings.d.ts +11 -9
  17. package/dist/_dts/api/src/cache-tags.d.ts +2 -2
  18. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +10 -10
  19. package/dist/_dts/api/src/common/envelope.d.ts +2 -0
  20. package/dist/_dts/api/src/contentRuntime.d.ts +0 -17
  21. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +99 -0
  22. package/dist/_dts/api/src/courses.d.ts +22 -33
  23. package/dist/_dts/api/src/defineEndpointDefinitions.d.ts +14 -0
  24. package/dist/_dts/api/src/demoMutationPolicies.d.ts +4 -0
  25. package/dist/_dts/api/src/endpoints.d.ts +3740 -3733
  26. package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
  27. package/dist/_dts/api/src/event-presentation.d.ts +4 -9
  28. package/dist/_dts/api/src/index.d.ts +9 -11
  29. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +376 -0
  30. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  31. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  32. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +272 -0
  33. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +274 -0
  34. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +31 -0
  35. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +152 -0
  36. package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +95 -0
  37. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +154 -0
  38. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -962
  39. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +52 -0
  40. package/dist/_dts/api/src/sdkContracts.d.ts +0 -51
  41. package/dist/_dts/api/src/sdkEntryReadEndpoints.d.ts +23 -0
  42. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -38
  43. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -4
  44. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -15
  45. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  46. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +0 -16
  47. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -222
  48. package/dist/_dts/blocks/src/portal/types.d.ts +3 -3
  49. package/dist/_dts/blocks/src/subroutes/fold.d.ts +1 -14
  50. package/dist/_dts/blocks/src/subroutes/index.d.ts +1 -1
  51. package/dist/_dts/blocks/src/subroutes/kinds.d.ts +3 -3
  52. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -11
  53. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -4
  54. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +401 -12
  56. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +9 -10
  57. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -13
  58. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +1 -2
  59. package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -4
  60. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +19 -18
  61. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +9 -11
  62. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -2
  63. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +10 -10
  65. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -10
  66. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +162 -0
  68. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +59 -0
  69. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +134 -0
  70. package/dist/_dts/blocks/src/system/runtime/api/types/discounts.d.ts +85 -0
  71. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +241 -0
  72. package/dist/_dts/blocks/src/system/runtime/api/types/forms.d.ts +53 -0
  73. package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +32 -0
  74. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +220 -0
  75. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +176 -0
  76. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +12 -1121
  77. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +19 -583
  78. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -276
  79. package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +1 -12
  80. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  81. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -1
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +2 -3
  83. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +1 -18
  84. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -2
  85. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +1 -5
  86. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/courseRegistrationViewState.d.ts +21 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/index.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +14 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +0 -25
  90. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseEligibility.d.ts +24 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +9 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +35 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationPortal.d.ts +7 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +31 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +80 -55
  96. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseWaitlistSelection.d.ts +14 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +4 -5
  98. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -38
  99. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
  100. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +1 -2
  101. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +0 -1
  102. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +12 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +0 -4
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -9
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +0 -5
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +0 -11
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +13 -0
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -21
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  110. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +24 -433
  111. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -2
  112. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +52 -266
  113. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -15
  114. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventFilters.d.ts +0 -8
  115. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1573 -0
  116. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +1 -3
  117. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -3
  118. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
  119. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -5
  120. package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -5
  121. package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -3
  122. package/dist/_dts/core/src/editor-state.d.ts +1 -13
  123. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1580 -120
  124. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +6 -6
  125. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +6 -1
  126. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +27 -4
  127. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -2
  128. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +1 -1
  129. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +4 -6
  130. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
  131. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +1 -1
  132. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -1
  133. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +1 -1
  134. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +23 -0
  135. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +25 -0
  136. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -52
  137. package/dist/_dts/sdk/src/cli/content/writer.d.ts +3 -81
  138. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +6 -9
  139. package/dist/_dts/sdk/src/client/contentReadOperations.d.ts +40 -0
  140. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -3
  141. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -91
  142. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +72 -0
  143. package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +10 -75
  144. package/dist/_dts/sdk/src/client/types.d.ts +7 -33
  145. package/dist/_dts/sdk/src/components.d.ts +1 -1
  146. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  147. package/dist/_dts/sdk/src/config/validation.d.ts +3 -6
  148. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  149. package/dist/_dts/sdk/src/contracts/page.d.ts +0 -8
  150. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -34
  151. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +4 -3
  152. package/dist/_dts/sdk/src/next/catch-all-utils.d.ts +0 -11
  153. package/dist/_dts/sdk/src/next/catch-all.d.ts +1 -76
  154. package/dist/_dts/sdk/src/next/types.d.ts +0 -19
  155. package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -207
  156. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  157. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
  158. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
  159. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +0 -7
  160. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +81 -0
  161. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  162. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -51
  163. package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -1
  164. package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +6 -6
  165. package/dist/_dts/sdk/src/routing/index.d.ts +0 -2
  166. package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +3 -3
  167. package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +10 -39
  168. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  169. package/dist/_dts/sdk/src/version.d.ts +1 -1
  170. package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
  171. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +100 -0
  172. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
  173. package/dist/_dts/site-commands/src/commandContract.d.ts +1242 -0
  174. package/dist/_dts/site-commands/src/commandDomain.d.ts +20 -0
  175. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +7 -0
  176. package/dist/_dts/site-commands/src/commandValidation.d.ts +10 -0
  177. package/dist/_dts/site-commands/src/commands.d.ts +729 -2659
  178. package/dist/_dts/site-commands/src/domain.d.ts +1 -1
  179. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +11 -0
  180. package/dist/_dts/site-commands/src/exposure.d.ts +1 -1
  181. package/dist/_dts/site-commands/src/index.d.ts +6 -0
  182. package/dist/_dts/site-commands/src/metadata.d.ts +1 -27
  183. package/dist/_dts/site-commands/src/planner.d.ts +1 -1
  184. package/dist/_dts/site-commands/src/refContributions.d.ts +1 -1
  185. package/dist/_dts/site-commands/src/refs.d.ts +1 -4
  186. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +378 -0
  187. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +46 -0
  188. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +2 -2
  189. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +21 -0
  190. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +58 -0
  191. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +1 -0
  192. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  193. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +47 -24
  194. package/dist/cli/index.mjs +7250 -8478
  195. package/dist/cli/init-docs/content/cli-reference.md +5 -21
  196. package/dist/cli/init-docs/content/content-management.md +4 -5
  197. package/dist/client/{DiscountCodeDisclosure-DIWj-P9v.mjs → DiscountCodeDisclosure-DxvjKvck.mjs} +2 -2
  198. package/dist/client/{EventCombined.client-De8YWBSr.mjs → EventCombined.client-BydMGc4c.mjs} +5 -16
  199. package/dist/client/{EventListing.client-seHTjimY.mjs → EventListing.client-vpzhhysN.mjs} +3 -10
  200. package/dist/client/{LeafletStaticMap-BmQxFcJW.mjs → LeafletStaticMap-CB07rpf8.mjs} +1 -1
  201. package/dist/client/{MagicLinkForm-OoJAIUIj.mjs → MagicLinkForm-BzyRJ8VF.mjs} +2 -2
  202. package/dist/client/{StepIndicator-CiZ8kdPk.mjs → StepIndicator-CTcGf8Be.mjs} +2 -2
  203. package/dist/client/{accordion-6lnN__XJ.mjs → accordion-B-DUDLRD.mjs} +1 -1
  204. package/dist/client/{bookingForm-5uyqhONU.mjs → bookingForm-DSbClLcZ.mjs} +6 -6
  205. package/dist/client/bookings.mjs +753 -818
  206. package/dist/client/{carousel-Dtnifil_.mjs → carousel-B6Ccdx8M.mjs} +1 -1
  207. package/dist/client/{cart-5Tc5S7NV.mjs → cart-BZh8G8wM.mjs} +3 -3
  208. package/dist/client/{checkout-CYKKN5Hr.mjs → checkout-o6zaC-kM.mjs} +3 -3
  209. package/dist/client/client.mjs +6859 -7149
  210. package/dist/client/{context-BGZNlGXB.mjs → context-CJz1Vlsz.mjs} +40 -43
  211. package/dist/client/{courseRegistration-CxCBybB4.mjs → courseRegistration-Cf11pNDs.mjs} +606 -621
  212. package/dist/client/{eventCalendar-Xj2jZS9X.mjs → eventCalendar-BeXrdsSE.mjs} +5 -13
  213. package/dist/client/{eventCombined-CgcMoOgM.mjs → eventCombined-DA76PZgG.mjs} +3 -3
  214. package/dist/client/{eventDetails-CEAH8Edc.mjs → eventDetails-BLxg0rok.mjs} +140 -116
  215. package/dist/client/{eventListing-qyPVQ0wP.mjs → eventListing-tO9LheBX.mjs} +3 -3
  216. package/dist/client/{eventRegistration-DDu79CtL.mjs → eventRegistration-Cnene9D9.mjs} +165 -68
  217. package/dist/client/{form-Bc7JKI7I.mjs → form-DZf72CHB.mjs} +2 -2
  218. package/dist/client/{headerSection-vTku_LEl.mjs → headerSection-Hioja5Cr.mjs} +2 -2
  219. package/dist/client/hooks.mjs +3452 -2365
  220. package/dist/client/{locationMap-Bg7X4Jna.mjs → locationMap-DwhUXEix.mjs} +2 -2
  221. package/dist/client/{newsletterForm-lpylVdp5.mjs → newsletterForm-C350bEQf.mjs} +2 -2
  222. package/dist/client/{pricing-DE8fjJiT.mjs → pricing-BYWN_ATa.mjs} +3 -19
  223. package/dist/client/{productDetail-D7Bo2RMH.mjs → productDetail-CCqCyXgU.mjs} +3 -3
  224. package/dist/client/{productList-VjnZqiqN.mjs → productList-BAiNJrOU.mjs} +3 -3
  225. package/dist/client/{propsDecoder-DreFXjNP.mjs → propsDecoder-DeunRj6m.mjs} +210 -378
  226. package/dist/client/rendering/client.mjs +2541 -2813
  227. package/dist/client/rendering/islands.mjs +18 -18
  228. package/dist/client/rendering.mjs +5622 -4734
  229. package/dist/client/{shop-IRsHHbf7.mjs → shop-DUmCdBtw.mjs} +6 -6
  230. package/dist/client/{shop-commerce-gnI8PieZ.mjs → shop-commerce-CY27mEUr.mjs} +5 -5
  231. package/dist/client/{shop-commerce-store-BTbrhObn.mjs → shop-commerce-store-ChXPbWfa.mjs} +1 -1
  232. package/dist/client/{shopShared-D6KS2_qk.mjs → shopShared-q0kin1cv.mjs} +3 -3
  233. package/dist/client/{useDiscountCodeUi-DCccGCxV.mjs → useDiscountCodeUi-I-92-x2V.mjs} +2 -2
  234. package/dist/client/{useEventFilters-eGs3rPZQ.mjs → useEventFilters-DlcVluZh.mjs} +59 -124
  235. package/dist/client/{usePolling-CvSU2sur.mjs → usePolling-Bz7GFV_a.mjs} +2 -2
  236. package/dist/preview-next/before-render.mjs +1115 -1044
  237. package/dist/preview-next/client/runtime.mjs +4 -4
  238. package/dist/preview-next/middleware.mjs +1118 -1047
  239. package/dist/{previewAuthStore-ShY26RNz.mjs → previewAuthStore-CJX21dGi.mjs} +1121 -1047
  240. package/dist/{sdk-runtime-CJxkFq2B.mjs → sdk-runtime-OnPM8Z69.mjs} +2 -2
  241. package/dist/{separator-CoFmo8uA.mjs → separator-CPtfzHqA.mjs} +1 -1
  242. package/dist/server/components.mjs +4560 -3672
  243. package/dist/server/config-validation.mjs +3454 -2356
  244. package/dist/server/config.mjs +3454 -2356
  245. package/dist/server/data.mjs +3452 -2367
  246. package/dist/server/index.mjs +1501 -1491
  247. package/dist/server/next.mjs +7524 -8067
  248. package/dist/server/page-converter.mjs +1898 -2040
  249. package/dist/server/prebuild.mjs +1 -1
  250. package/dist/server/rendering/server.mjs +4258 -3373
  251. package/dist/server/rendering.mjs +6228 -5393
  252. package/dist/server/routing.mjs +3614 -2509
  253. package/dist/server/server.mjs +3298 -3479
  254. package/package.json +1 -1
  255. package/dist/_dts/api/src/previewContentContract.d.ts +0 -4
  256. package/dist/_dts/sdk/src/cli/commands/course.d.ts +0 -6
  257. package/dist/_dts/sdk/src/cli/commands/push/scopes/courses.d.ts +0 -4
  258. package/dist/_dts/sdk/src/client/management/courses.d.ts +0 -10
  259. package/dist/_dts/sdk/src/routing/resolveEntrySubroute.d.ts +0 -36
@@ -1,9 +1,6 @@
1
1
  import type { Theme } from '../../../../blocks/src/index';
2
- import type { BrandDisplayMode, HeaderSelectionContext, LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
3
- export type HeaderBrandPreferences = Readonly<{
4
- brandDisplay: BrandDisplayMode;
5
- logoSize: LogoSizePolicy;
6
- }>;
2
+ import type { BrandDisplayMode, HeaderBrandPreferences, HeaderSelectionContext, LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
3
+ export type { HeaderBrandPreferences } from '../../../../theme-core/src/site-styles/index';
7
4
  export type HeaderBrandDisplayOption = Readonly<{
8
5
  value: BrandDisplayMode;
9
6
  label: string;
@@ -24,7 +21,10 @@ export type HeaderBrandControlState = Readonly<{
24
21
  brandDisplayOptions: readonly HeaderBrandDisplayOption[];
25
22
  logoSizeOptions: readonly HeaderLogoSizeOption[];
26
23
  }>;
27
- export declare const DEFAULT_HEADER_BRAND_PREFERENCES: HeaderBrandPreferences;
24
+ export declare const DEFAULT_HEADER_BRAND_PREFERENCES: Readonly<{
25
+ brandDisplay: BrandDisplayMode;
26
+ logoSize: LogoSizePolicy;
27
+ }>;
28
28
  export declare const HEADER_LOGO_SIZE_OPTIONS: readonly HeaderLogoSizeOption[];
29
29
  export declare function createHeaderBrandControlState({ theme, headerSelectionContext, }: {
30
30
  theme: Theme | null;
@@ -14,6 +14,11 @@ export type SiteChromeSavePlan = Readonly<{
14
14
  }>;
15
15
  export type BuildSiteChromeSavePlanInput = Readonly<{
16
16
  surface: SiteChromeEditableSurfaceKind;
17
+ selectionPersistence: Readonly<{
18
+ kind: 'preserve';
19
+ }> | Readonly<{
20
+ kind: 'write';
21
+ }>;
17
22
  siteStyle: CuratedSiteStyle;
18
23
  selection: SelectionSnapshot;
19
24
  baseTheme: Theme | null | undefined;
@@ -25,6 +30,6 @@ export type BuildSiteChromeSavePlanInput = Readonly<{
25
30
  selectionId: string | null;
26
31
  baseSelectionUpdatedAt: string | null;
27
32
  }>;
28
- export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection, baseTheme, headerSelectionContext, headerBrandPreferences, headerNavPreferences, backgroundPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
33
+ export declare function buildSiteChromeSavePlan({ surface, selectionPersistence, siteStyle, selection, baseTheme, headerSelectionContext, headerBrandPreferences, headerNavPreferences, backgroundPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
29
34
  export declare function siteChromeSavePlanBodyForBaseRevision(plan: SiteChromeSavePlan, baseSelectionUpdatedAt: string | null): SaveSiteChromeLookSelectionBody;
30
35
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Theme } from '../../../../blocks/src/index';
2
2
  import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
3
3
  import { type CompleteResolvedPaletteSelection } from '../../../../theme-core/src/palette/index';
4
- import type { FooterLookId, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId } from '../../../../theme-core/src/site-styles/index';
4
+ import type { FooterLookId, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
5
5
  import { compileSiteThemeFromSelections, type CuratedSiteStyle, type SelectionFallbackWarning, type SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
6
6
  import type { PaletteSelectionSnapshot } from './StyleConfigurator.state';
7
7
  export type SiteStylePreviewSelection = Readonly<{
@@ -20,15 +20,38 @@ export type SiteStyleChromePreviewSelection = Readonly<{
20
20
  }>;
21
21
  export type SiteStylePreviewPlan = Readonly<{
22
22
  themeOverlay: Theme;
23
- resolvedSelections: ReturnType<typeof compileSiteThemeFromSelections>['resolvedSelections'];
23
+ resolvedSelections: ReturnType<typeof compileSiteThemeFromSelections>['resolvedSelections'] & Readonly<{
24
+ headerLayoutId: HeaderLayoutId;
25
+ headerStyleId: HeaderStyleId;
26
+ }>;
24
27
  chromeSelection: SiteStyleChromePreviewSelection;
25
28
  warnings: ReadonlyArray<SelectionFallbackWarning>;
26
29
  }>;
27
- export type SiteStylePreviewPlanInput = Readonly<{
30
+ type SiteStylePreviewPlanCommonInput = Readonly<{
28
31
  siteStyle: CuratedSiteStyle;
29
32
  selection: SiteStylePreviewSelection;
30
- baseTheme?: Theme | null;
31
33
  headerSelectionContext?: Partial<HeaderSelectionContext>;
32
34
  }>;
35
+ export type SiteStylePreviewPlanInput = SiteStylePreviewPlanCommonInput & (Readonly<{
36
+ compilation: Readonly<{
37
+ kind: 'replace-site-style';
38
+ }>;
39
+ }> | Readonly<{
40
+ compilation: Readonly<{
41
+ kind: 'derive-update';
42
+ baseTheme: Theme | null | undefined;
43
+ baseSelection: SiteStylePreviewSelection;
44
+ }>;
45
+ }> | Readonly<{
46
+ compilation: Readonly<{
47
+ kind: 'edit-chrome';
48
+ baseTheme: Theme | null | undefined;
49
+ surface: SiteChromeSurface;
50
+ }>;
51
+ }>);
52
+ export declare function deriveSiteStylePreviewUpdate(baseTheme: Theme | null | undefined, baseSelection: SiteStylePreviewSelection): Extract<SiteStylePreviewPlanInput['compilation'], {
53
+ kind: 'derive-update';
54
+ }>;
33
55
  export declare function planSiteStylePreviewChange(input: SiteStylePreviewPlanInput): SiteStylePreviewPlan;
34
56
  export declare function resolvedPaletteForPreview(palette: PaletteSelectionSnapshot, siteStyle: CuratedSiteStyle): CompleteResolvedPaletteSelection;
57
+ export {};
@@ -17,7 +17,7 @@
17
17
  * riverbankcms audit --json
18
18
  */
19
19
  import { Command } from 'commander';
20
- import { type LocalCourse, type LocalEvent, type LocalNavigation } from '../content/reader';
20
+ import { type LocalEvent, type LocalNavigation } from '../content/reader';
21
21
  import { type MediaGuardDiagnostic } from '../media/write-guard';
22
22
  export interface AuditIssue {
23
23
  severity: 'error' | 'warning';
@@ -98,5 +98,4 @@ export declare function auditOrphanedEntries(ctx: Pick<AuditContext, 'localEntry
98
98
  */
99
99
  export declare function auditContentTypes(localContentTypes: Set<string>, validContentTypes: Set<string>): AuditIssue[];
100
100
  export declare function auditEventReferences(events: LocalEvent[], ctx: Pick<AuditContext, 'localVenueRefs' | 'remoteVenueRefs' | 'localCategoryRefs' | 'remoteCategoryRefs' | 'localFormRefs' | 'remoteFormRefs'>): AuditIssue[];
101
- export declare function auditCourseReferences(courses: LocalCourse[], ctx: Pick<AuditContext, 'localVenueRefs' | 'remoteVenueRefs' | 'localCategoryRefs' | 'remoteCategoryRefs' | 'localFormRefs' | 'remoteFormRefs'>): AuditIssue[];
102
101
  export declare const createAuditCommand: () => Command;
@@ -1,5 +1,5 @@
1
1
  import type { OutputContext } from '../output';
2
- export type DatedOfferingPullScope = 'venues' | 'event-categories' | 'events' | 'courses';
2
+ export type DatedOfferingPullScope = 'venues' | 'event-categories' | 'events';
3
3
  export declare function isDatedOfferingPullScope(scope: string): scope is DatedOfferingPullScope;
4
4
  export declare function filterPullItemsByIdentifier<TItem>(items: readonly TItem[], identifier: string | undefined, getIdentifier: (item: TItem) => string): TItem[];
5
5
  export declare function reportMissingScopedPullItem(input: Readonly<{
@@ -1,5 +1,5 @@
1
- import type { ManagementFooterContent, PulledCourses, PulledEventCategories, PulledEvents, PulledVenues } from '../../client/management/types';
2
- import type { LocalCourse, LocalEvent, LocalEventCategory, LocalFooterContent, LocalTheme, LocalVenue } from '../content/reader';
1
+ import type { ManagementFooterContent, PulledEventCategories, PulledEvents, PulledVenues } from '../../client/management/types';
2
+ import type { LocalEvent, LocalEventCategory, LocalFooterContent, LocalTheme, LocalVenue } from '../content/reader';
3
3
  export type DryRunDiffType = 'create' | 'update' | 'unchanged';
4
4
  export interface DryRunDiffSummary {
5
5
  create: number;
@@ -66,7 +66,5 @@ export declare function mapRemoteVenueToLocalComparable(v: PulledVenues['venues'
66
66
  export declare function mapLocalVenueToComparable(v: LocalVenue): Record<string, unknown>;
67
67
  export declare function mapRemoteEventCategoryToLocalComparable(c: PulledEventCategories['eventCategories'][number]): Record<string, unknown>;
68
68
  export declare function mapLocalEventCategoryToComparable(c: LocalEventCategory): Record<string, unknown>;
69
- export declare function mapRemoteEventToLocalComparable(e: PulledEvents['events'][number]): Record<string, unknown>;
70
- export declare function mapLocalEventToComparable(e: LocalEvent): Record<string, unknown>;
71
- export declare function mapRemoteCourseToLocalComparable(course: PulledCourses['courses'][number]): Record<string, unknown>;
72
- export declare function mapLocalCourseToComparable(course: LocalCourse): 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,3 +1,3 @@
1
- export declare const VALID_PUSH_SCOPES: readonly ["entries", "pages", "navigation", "forms", "settings", "theme", "footer", "venues", "event-categories", "events", "courses", "all"];
1
+ export declare const VALID_PUSH_SCOPES: readonly ["entries", "pages", "navigation", "forms", "settings", "theme", "footer", "venues", "event-categories", "events", "all"];
2
2
  export type PushScope = (typeof VALID_PUSH_SCOPES)[number];
3
3
  export declare function isValidPushScope(scope: string): scope is PushScope;
@@ -15,7 +15,7 @@ export interface PushOptions {
15
15
  overwriteMedia?: boolean;
16
16
  /** @deprecated Use deleteOrphaned instead */
17
17
  deleteMissing?: boolean;
18
- /** Delete remote items not present in local files (entries, events, courses, venues, event-categories) */
18
+ /** Delete remote items not present in local files (entries, events, venues, event-categories) */
19
19
  deleteOrphaned?: boolean;
20
20
  /** Automatically pull stale content and retry push instead of aborting */
21
21
  autoPullStale?: boolean;
@@ -12,7 +12,6 @@ export interface PushAllExtraChanges {
12
12
  venues: PushAllEntityChanges;
13
13
  eventCategories: PushAllEntityChanges;
14
14
  events: PushAllEntityChanges;
15
- courses: PushAllEntityChanges;
16
15
  hasChanges: boolean;
17
16
  }
18
17
  export declare function calculatePushAllExtraChanges(local: LocalContent, remote: PulledContent, options?: {
@@ -35,7 +35,7 @@ export type PushVerificationDeps = Readonly<{
35
35
  pushScope: PushScope;
36
36
  }) => Promise<readonly PushVerificationDirtyScope[]>;
37
37
  verifyDatedOffering: (input: PushVerificationInput & {
38
- pushScope: 'venues' | 'event-categories' | 'events' | 'courses';
38
+ pushScope: 'venues' | 'event-categories' | 'events';
39
39
  }) => Promise<readonly PushVerificationDirtyScope[]>;
40
40
  }>;
41
41
  export declare function collectDatedOfferingVerificationOrphans<TLocal, TRemote>(input: Readonly<{
@@ -0,0 +1,23 @@
1
+ import type { PulledEventCategories, PulledEvents, PulledForms, PulledVenues } from '../../client/management/types';
2
+ import { type ContentMetadataTarget } from './metadataStore';
3
+ type CollectionWriterOptions = Readonly<{
4
+ skipMeta?: boolean;
5
+ metadataTarget?: ContentMetadataTarget;
6
+ }>;
7
+ export declare function writeForms(contentDir: string, pulledForms: PulledForms, options?: CollectionWriterOptions): Promise<{
8
+ filePaths: string[];
9
+ metaPath: string;
10
+ }>;
11
+ export declare function writeVenues(contentDir: string, pulledVenues: PulledVenues, options?: CollectionWriterOptions): Promise<{
12
+ filePaths: string[];
13
+ metaPath: string;
14
+ }>;
15
+ export declare function writeEventCategories(contentDir: string, pulledCategories: PulledEventCategories, options?: CollectionWriterOptions): Promise<{
16
+ filePaths: string[];
17
+ metaPath: string;
18
+ }>;
19
+ export declare function writeEvents(contentDir: string, pulledEvents: PulledEvents, options?: CollectionWriterOptions): Promise<{
20
+ filePaths: string[];
21
+ metaPath: string;
22
+ }>;
23
+ export {};
@@ -0,0 +1,25 @@
1
+ import { type ContentMetadataTarget } from './metadataStore';
2
+ type TimestampedRecord = Readonly<{
3
+ createdAt?: string;
4
+ updatedAt?: string;
5
+ }>;
6
+ type RemoteContentAfterPush = Readonly<{
7
+ entries: Readonly<Record<string, readonly (TimestampedRecord & {
8
+ identifier: string;
9
+ })[]>>;
10
+ pages: readonly (TimestampedRecord & {
11
+ identifier: string;
12
+ })[];
13
+ navigation: readonly (TimestampedRecord & {
14
+ name: string;
15
+ })[];
16
+ settingsUpdatedAt?: string | null;
17
+ forms?: readonly (TimestampedRecord & {
18
+ slug: string;
19
+ })[];
20
+ }>;
21
+ type MetadataAfterPushOptions = Readonly<{
22
+ metadataTarget?: ContentMetadataTarget;
23
+ }>;
24
+ export declare function updateMetadataAfterPush(contentDir: string, remoteContent: RemoteContentAfterPush, options?: MetadataAfterPushOptions): Promise<void>;
25
+ export {};
@@ -193,32 +193,6 @@ export interface LocalEvent {
193
193
  export type LocalEventWithFilePath = LocalEvent & Readonly<{
194
194
  filePath: string;
195
195
  }>;
196
- export interface LocalCourseSession {
197
- startsAt: string;
198
- endsAt: string;
199
- }
200
- export interface LocalCourseProgram {
201
- identifier?: string | null;
202
- data: Record<string, unknown>;
203
- }
204
- export interface LocalCourse {
205
- identifier: string;
206
- title: string;
207
- slug: string;
208
- status?: 'draft' | 'active' | 'cancelled' | 'completed';
209
- visibility?: 'private' | 'public' | 'unlisted';
210
- venueRef?: string | null;
211
- categoryRef?: string | null;
212
- formRef?: string | null;
213
- capacity?: number | null;
214
- enrollmentCapacity?: number | null;
215
- acceptsMemberships?: boolean;
216
- priceCents?: number | null;
217
- currency?: string;
218
- sessions: LocalCourseSession[];
219
- programRef?: string | null;
220
- program?: LocalCourseProgram | null;
221
- }
222
196
  /**
223
197
  * Check if old format entry files exist (for migration warning)
224
198
  *
@@ -303,15 +277,6 @@ export declare function readEventCategories(contentDir: string): Promise<LocalEv
303
277
  */
304
278
  export declare function readEvents(contentDir: string): Promise<LocalEvent[]>;
305
279
  export declare function readEventsWithFilePaths(contentDir: string): Promise<LocalEventWithFilePath[]>;
306
- /**
307
- * Read courses from content directory
308
- *
309
- * Format: content/courses/{identifier}.json
310
- *
311
- * @param contentDir - Base content directory
312
- * @returns Array of local courses
313
- */
314
- export declare function readCourses(contentDir: string): Promise<LocalCourse[]>;
315
280
  /**
316
281
  * Read a single theme by name from content directory
317
282
  *
@@ -353,7 +318,6 @@ export interface LocalContent {
353
318
  venues: LocalVenue[];
354
319
  eventCategories: LocalEventCategory[];
355
320
  events: LocalEvent[];
356
- courses: LocalCourse[];
357
321
  }
358
322
  export declare function readAllContent(contentDir: string, metadataTarget?: ContentMetadataTarget): Promise<LocalContent>;
359
323
  /**
@@ -380,8 +344,6 @@ export interface ContentSummary {
380
344
  eventCategoryCount: number;
381
345
  hasEvents: boolean;
382
346
  eventCount: number;
383
- hasCourses: boolean;
384
- courseCount: number;
385
347
  }
386
348
  export declare function getContentSummary(contentDir: string): Promise<ContentSummary>;
387
349
  export interface EntryMetadata {
@@ -513,13 +475,6 @@ export interface EventsMetadata {
513
475
  updatedAt?: string;
514
476
  }>;
515
477
  }
516
- export interface CoursesMetadata {
517
- pulledAt: string;
518
- courses: Record<string, {
519
- createdAt?: string;
520
- updatedAt?: string;
521
- }>;
522
- }
523
478
  /**
524
479
  * Read events metadata from .meta/events.json
525
480
  *
@@ -527,13 +482,6 @@ export interface CoursesMetadata {
527
482
  * @returns Events metadata or null if not found
528
483
  */
529
484
  export declare function readEventsMeta(contentDir: string, metadataTarget?: ContentMetadataTarget): Promise<EventsMetadata | null>;
530
- /**
531
- * Read courses metadata from .meta/courses.json
532
- *
533
- * @param contentDir - Base content directory
534
- * @returns Courses metadata or null if not found
535
- */
536
- export declare function readCoursesMeta(contentDir: string, metadataTarget?: ContentMetadataTarget): Promise<CoursesMetadata | null>;
537
485
  export interface FooterMetadata {
538
486
  pulledAt: string;
539
487
  updatedAt?: string;
@@ -3,12 +3,14 @@
3
3
  *
4
4
  * Writes pulled content to the file system in the appropriate JSON format.
5
5
  */
6
- import type { PulledEntries, PulledPages, PulledNavigation, PulledSettings, PulledForms, PulledTheme, PulledFooter, PulledVenues, PulledEventCategories, PulledEvents, PulledCourses } from '../../client/management/types';
6
+ import type { PulledEntries, PulledPages, PulledNavigation, PulledSettings, PulledForms, PulledTheme, PulledFooter } from '../../client/management/types';
7
7
  import type { Theme } from '../../contracts';
8
8
  import { type EntryForOutput } from '../helpers';
9
9
  import type { EntryBaseSnapshotTarget } from '../merge-remote/entrySnapshots';
10
10
  import type { PageBaseSnapshotTarget } from '../merge-remote/pageSnapshots';
11
11
  import { type ContentMetadataTarget } from './metadataStore';
12
+ export { writeEventCategories, writeEvents, writeForms, writeVenues, } from './collectionWriters';
13
+ export { updateMetadataAfterPush } from './metadataAfterPush';
12
14
  export interface WriterOptions {
13
15
  skipMeta?: boolean;
14
16
  cleanupMissing?: boolean;
@@ -59,16 +61,6 @@ export declare function writeNavigation(contentDir: string, pulledNavigation: Pu
59
61
  * Format: content/settings.json
60
62
  */
61
63
  export declare function writeSettings(contentDir: string, pulledSettings: PulledSettings, options?: WriterOptions): Promise<string>;
62
- /**
63
- * Write forms to content directory
64
- *
65
- * Format: content/forms/{slug}.json
66
- * Meta: content/.meta/forms.json
67
- */
68
- export declare function writeForms(contentDir: string, pulledForms: PulledForms, options?: WriterOptions): Promise<{
69
- filePaths: string[];
70
- metaPath: string;
71
- }>;
72
64
  /**
73
65
  * Write a theme to content directory
74
66
  *
@@ -107,46 +99,6 @@ export declare function writePulledTheme(contentDir: string, pulledTheme: Pulled
107
99
  filePath: string;
108
100
  metaPath: string;
109
101
  }>;
110
- /**
111
- * Write venues to content directory
112
- *
113
- * Format: content/venues/{slug}.json
114
- * Meta: content/.meta/venues.json
115
- */
116
- export declare function writeVenues(contentDir: string, pulledVenues: PulledVenues, options?: WriterOptions): Promise<{
117
- filePaths: string[];
118
- metaPath: string;
119
- }>;
120
- /**
121
- * Write event categories to content directory
122
- *
123
- * Format: content/event-categories/{identifier}.json
124
- * Meta: content/.meta/event-categories.json
125
- */
126
- export declare function writeEventCategories(contentDir: string, pulledCategories: PulledEventCategories, options?: WriterOptions): Promise<{
127
- filePaths: string[];
128
- metaPath: string;
129
- }>;
130
- /**
131
- * Write events to content directory
132
- *
133
- * Format: content/events/{identifier}.json
134
- * Meta: content/.meta/events.json
135
- */
136
- export declare function writeEvents(contentDir: string, pulledEvents: PulledEvents, options?: WriterOptions): Promise<{
137
- filePaths: string[];
138
- metaPath: string;
139
- }>;
140
- /**
141
- * Write courses to content directory
142
- *
143
- * Format: content/courses/{identifier}.json
144
- * Meta: content/.meta/courses.json
145
- */
146
- export declare function writeCourses(contentDir: string, pulledCourses: PulledCourses, options?: WriterOptions): Promise<{
147
- filePaths: string[];
148
- metaPath: string;
149
- }>;
150
102
  /**
151
103
  * Write footer content to content directory
152
104
  *
@@ -181,35 +133,6 @@ export interface WriteAllResult {
181
133
  metaPath: string;
182
134
  };
183
135
  }
184
- /**
185
- * Update only the metadata files after a successful push.
186
- * This prevents false stale warnings on consecutive pushes.
187
- *
188
- * Unlike writeAllContent, this only updates .meta/ files, not content files.
189
- */
190
- export declare function updateMetadataAfterPush(contentDir: string, remoteContent: {
191
- entries: Record<string, Array<{
192
- identifier: string;
193
- updatedAt: string;
194
- createdAt?: string;
195
- }>>;
196
- pages: Array<{
197
- identifier: string;
198
- updatedAt: string;
199
- createdAt?: string;
200
- }>;
201
- navigation: Array<{
202
- name: string;
203
- updatedAt: string;
204
- createdAt?: string;
205
- }>;
206
- settingsUpdatedAt?: string | null;
207
- forms?: Array<{
208
- slug: string;
209
- updatedAt: string;
210
- createdAt?: string;
211
- }>;
212
- }, options?: Pick<WriterOptions, 'metadataTarget'>): Promise<void>;
213
136
  export declare function writeAllContent(contentDir: string, content: {
214
137
  entries: Record<string, PulledEntries['entries']>;
215
138
  pages: PulledPages;
@@ -217,4 +140,3 @@ export declare function writeAllContent(contentDir: string, content: {
217
140
  settings: PulledSettings;
218
141
  forms?: PulledForms;
219
142
  }): Promise<WriteAllResult>;
220
- export {};
@@ -1,14 +1,14 @@
1
1
  import { type Result, type SiteId } from '../../../../core/src/index';
2
2
  import type { ManagementClient } from '../../client/management/types';
3
- import type { LocalCourse, LocalEvent, LocalEventCategory, LocalVenue } from '../content/reader';
3
+ import type { LocalEvent, LocalEventCategory, LocalVenue } from '../content/reader';
4
4
  import type { EnvTarget } from '../helpers';
5
5
  import type { PushScopeResult } from '../commands/push/scopes/types';
6
6
  import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError } from './commandRuntime';
7
- export type CliDatedOfferingCommandBatchSource = 'push_venues' | 'push_event_categories' | 'push_events' | 'push_courses' | 'push_all_dated_offerings';
8
- export type DatedOfferingSiteCommandType = 'upsertVenue' | 'deleteVenue' | 'upsertEventCategory' | 'deleteEventCategory' | 'upsertEventSeries' | 'deleteEventSeries' | 'upsertCourse' | 'deleteCourse';
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
9
  type DatedOfferingCounter = 'created' | 'updated' | 'deleted';
10
10
  export type DatedOfferingReportSubject = Readonly<{
11
- scopeCommand: 'venues' | 'event-categories' | 'events' | 'courses';
11
+ scopeCommand: 'venues' | 'event-categories' | 'events';
12
12
  scopeName: string;
13
13
  itemLabelSingular: string;
14
14
  identifier: string;
@@ -26,7 +26,6 @@ export type CliDatedOfferingCommandCompileInput = Readonly<{
26
26
  venues?: DatedOfferingUpsertInput<LocalVenue>;
27
27
  eventCategories?: DatedOfferingUpsertInput<LocalEventCategory>;
28
28
  events?: DatedOfferingUpsertInput<LocalEvent>;
29
- courses?: DatedOfferingUpsertInput<LocalCourse>;
30
29
  delete?: DatedOfferingDeleteInput;
31
30
  }>;
32
31
  export type DatedOfferingUpsertInput<TItem> = Readonly<{
@@ -40,17 +39,15 @@ export type DatedOfferingDeleteInput = Readonly<{
40
39
  venues?: readonly string[];
41
40
  eventCategories?: readonly string[];
42
41
  events?: readonly string[];
43
- courses?: readonly string[];
44
42
  }>;
45
43
  export type CliDatedOfferingCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<DatedOfferingSiteCommandType, DatedOfferingReportSubject>;
46
- export declare const datedOfferingSiteCommandTypes: readonly ["upsertVenue", "deleteVenue", "upsertEventCategory", "deleteEventCategory", "upsertEventSeries", "deleteEventSeries", "upsertCourse", "deleteCourse"];
44
+ export declare const datedOfferingSiteCommandTypes: readonly ["upsertVenue", "deleteVenue", "upsertEventCategory", "deleteEventCategory", "upsertEventSeries", "deleteEventSeries"];
47
45
  export declare function compileDatedOfferingPushCommands(input: CliDatedOfferingCommandCompileInput): Result<CliDatedOfferingCommandCompileSuccess, CliDatedOfferingCommandCompileError>;
48
46
  export declare function executeDatedOfferingCommandPlanAsPushScopeResult(input: Readonly<{
49
- client: Pick<ManagementClient, 'venues' | 'eventCategories' | 'events' | 'courses'>;
47
+ client: Pick<ManagementClient, 'venues' | 'eventCategories' | 'events'>;
50
48
  compiledPlan: CliDatedOfferingCommandCompileSuccess;
51
49
  scopeCommand: DatedOfferingReportSubject['scopeCommand'];
52
50
  scopeName: string;
53
51
  }>): Promise<PushScopeResult>;
54
52
  export declare function syncResultForDatedOfferingCommandCompileError(error: CliDatedOfferingCommandCompileError, scopeCommand: DatedOfferingReportSubject['scopeCommand'], scopeName: string): PushScopeResult;
55
- export declare function courseSessionConflictMessage(error: unknown): string;
56
53
  export {};
@@ -0,0 +1,40 @@
1
+ import type { ApiClient, ApiResult } from '../../../api/src/public/index';
2
+ import type { GetPageParams, GetSiteParams, PageResponse, ResilientData, SiteResponse } from './types';
3
+ import { type DerivePublishedRuntimeCacheKeyInput, type PublishedRuntimeCacheKey, type PublishedRuntimeCacheKeyEndpoint, type PublishedRuntimeNormalizedParams } from './runtimeCachePolicy';
4
+ export type PublishedRuntimeCachePlan = Readonly<{
5
+ cacheKey: PublishedRuntimeCacheKey;
6
+ endpoint: PublishedRuntimeCacheKeyEndpoint;
7
+ normalizedParams: PublishedRuntimeNormalizedParams;
8
+ freshTtlSec: number;
9
+ staleTtlSec: number;
10
+ siteId?: string | null;
11
+ }>;
12
+ type PrebuildResult<T> = Readonly<{
13
+ data: T;
14
+ prebuildAgeSec: number;
15
+ }>;
16
+ type ContentReadPrebuildLoader = Readonly<{
17
+ loadSite: (siteId: string) => PrebuildResult<SiteResponse> | null;
18
+ loadPage: (siteId: string, path: string) => PrebuildResult<PageResponse> | null;
19
+ }>;
20
+ type ResilientFetchOptions<T> = Readonly<{
21
+ preview?: boolean;
22
+ force?: boolean;
23
+ signal?: AbortSignal;
24
+ publishedRuntimeCache?: PublishedRuntimeCachePlan | null;
25
+ prebuildFallback?: () => PrebuildResult<T> | null;
26
+ }>;
27
+ type ResilientFetch = <T>(cacheKey: string, fetcher: (signal: AbortSignal) => Promise<ApiResult<T>>, options: ResilientFetchOptions<T>) => Promise<ResilientData<T>>;
28
+ export type ContentReadOperations = Readonly<{
29
+ getSiteWithResilience: (params: GetSiteParams) => Promise<ResilientData<SiteResponse>>;
30
+ getPageWithResilience: (params: GetPageParams) => Promise<ResilientData<PageResponse>>;
31
+ }>;
32
+ export declare function planPublishedRuntimeCache(input: DerivePublishedRuntimeCacheKeyInput & Readonly<{
33
+ siteId?: string | null;
34
+ }>): PublishedRuntimeCachePlan | null;
35
+ export declare function createContentReadOperations(input: {
36
+ apiClient: ApiClient;
37
+ resilientFetch: ResilientFetch;
38
+ prebuildLoader: ContentReadPrebuildLoader | null;
39
+ }): ContentReadOperations;
40
+ export {};
@@ -28,7 +28,6 @@
28
28
  * ```
29
29
  */
30
30
  import type { ManagementClient, ManagementClientConfig } from './types';
31
- import { CourseSessionConflictError } from './courses';
32
31
  /**
33
32
  * Create a management client for SDK operations
34
33
  *
@@ -36,8 +35,7 @@ import { CourseSessionConflictError } from './courses';
36
35
  * @returns ManagementClient instance
37
36
  */
38
37
  export declare function createManagementClient(config: ManagementClientConfig): ManagementClient;
39
- export type { ManagementClient, ManagementClientConfig, ManagementEntry, ManagementPage, ManagementBlock, ManagementNavigationMenu, ManagementNavigationItem, ManagementSettings, ManagementForm, ManagementFormField, ManagementFormSchema, ManagementFormSettings, ManagementVenue, VenueAddress, VenueLocation, VenueUpsertInput, ManagementEventCategory, EventCategoryUpsertInput, ManagementEventSeries, ManagementEventOccurrence, EventOccurrenceScheduleInput, AddEventOccurrenceInput, EventOccurrenceCapacityIntent, EventSchedule, EventScheduleUpsertInput, EventStartDurationSchedule, EventStartEndSchedule, EventPricing, EventPaymentTerms, EventPaymentTermsInput, EventContent, EventSeriesUpsertInput, ManagementCourseRun, CourseRunUpsertInput, CourseSession, CourseProgramContent, CourseSessionConflict, EntryUpsertInput, EntryPublishUpsertResult, UpsertedManagementEntry, PageUpsertInput, PagePublishUpsertResult, BlockUpsertInput, NavigationMenuUpsertInput, NavigationItemInput, FormUpsertInput, SiteStyleSelectionApplyCommand, SiteStyleSelectionApplyCommandInput, ThemeUpsertInitializeInput, ThemeUpsertInput, ThemeUpsertResult, ThemeUpsertUpdateInput, ThemeStyleSelectionApplyInput, ThemeStyleSelectionApplyResult, FooterContent, ManagementFooterContent, FooterContentUpsertInput, FooterOperations, PulledFooter, PulledEntries, PulledPages, PulledDrafts, PulledNavigation, PulledSettings, PulledForms, PulledTheme, PulledVenues, PulledEventCategories, PulledEvents, PulledCourses, PulledSiteInfo, PulledContentType, PulledContentTypes, PulledContent, PaginationOptions, PaginatedResult, EntryOperations, PageOperations, BlockOperations, NavigationOperations, SettingsOperations, SettingsUpdateInput, WebhookOperations, SetupRevalidationWebhookInput, SetupRevalidationWebhookResult, ManagementWebhookEndpoint, RevalidationWebhookPlannedEndpoint, FormOperations, ThemeOperations, VenueOperations, EventCategoryOperations, EventOperations, EventOccurrenceOperations, CourseOperations, PullOperations, CatalogOperations, PulledCatalogTheme, PulledCatalogBlocks, PulledCatalogContentTypes, Capabilities, DemoContent, IdentifiersOperations, BackfillResult, BackfillPageResult, BackfillBlockResult, BackfillEntryResult, MediaOperations, MediaUploadResult, } from './types';
38
+ export type { ManagementClient, ManagementClientConfig, ManagementEntry, ManagementPage, ManagementBlock, ManagementNavigationMenu, ManagementNavigationItem, ManagementSettings, ManagementForm, ManagementFormField, ManagementFormSchema, ManagementFormSettings, ManagementVenue, VenueAddress, VenueLocation, VenueUpsertInput, ManagementEventCategory, EventCategoryUpsertInput, ManagementEventSeries, ManagementEventOccurrence, EventOccurrenceScheduleInput, AddEventOccurrenceInput, EventOccurrenceCapacityIntent, EventSchedule, EventScheduleUpsertInput, EventStartDurationSchedule, EventStartEndSchedule, EventPricing, EventPaymentTerms, EventPaymentTermsInput, EventContent, EventSeriesUpsertInput, EntryUpsertInput, EntryPublishUpsertResult, UpsertedManagementEntry, PageUpsertInput, PagePublishUpsertResult, BlockUpsertInput, NavigationMenuUpsertInput, NavigationItemInput, FormUpsertInput, SiteStyleSelectionApplyCommand, SiteStyleSelectionApplyCommandInput, ThemeUpsertInitializeInput, ThemeUpsertInput, ThemeUpsertResult, ThemeUpsertUpdateInput, ThemeStyleSelectionApplyInput, ThemeStyleSelectionApplyResult, FooterContent, ManagementFooterContent, FooterContentUpsertInput, FooterOperations, PulledFooter, PulledEntries, PulledPages, PulledDrafts, PulledNavigation, PulledSettings, PulledForms, PulledTheme, PulledVenues, PulledEventCategories, PulledEvents, PulledSiteInfo, PulledContentType, PulledContentTypes, PulledContent, PaginationOptions, PaginatedResult, EntryOperations, PageOperations, BlockOperations, NavigationOperations, SettingsOperations, SettingsUpdateInput, WebhookOperations, SetupRevalidationWebhookInput, SetupRevalidationWebhookResult, ManagementWebhookEndpoint, RevalidationWebhookPlannedEndpoint, FormOperations, ThemeOperations, VenueOperations, EventCategoryOperations, EventOperations, EventOccurrenceOperations, PullOperations, CatalogOperations, PulledCatalogTheme, PulledCatalogBlocks, PulledCatalogContentTypes, Capabilities, DemoContent, IdentifiersOperations, BackfillResult, BackfillPageResult, BackfillBlockResult, BackfillEntryResult, MediaOperations, MediaUploadResult, } from './types';
40
39
  export { ManagementApiError, type ManagementApiErrorRequest } from './http';
41
40
  export { BlockPatchStaleContentError, isBlockPatchStaleContentError, } from './blocks';
42
41
  export { applySiteStyleSelectionBodyFromCommand, buildApplySiteStyleSelectionCommand, } from './theme';
43
- export { CourseSessionConflictError };