@riverbankcms/sdk 0.134.0 → 0.135.1

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 (258) hide show
  1. package/CHANGELOG.md +4 -3
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +4 -4
  4. package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-D0cRoTX1.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +5 -5
  7. package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +4105 -8035
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +15 -15
  10. package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
  11. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
  12. package/dist/_dts/api/src/bookingOperations.d.ts +111 -161
  13. package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
  14. package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
  15. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
  16. package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
  17. package/dist/_dts/api/src/bookings.d.ts +5 -9
  18. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
  19. package/dist/_dts/api/src/communications.d.ts +1 -1
  20. package/dist/_dts/api/src/endpoints.d.ts +29 -109
  21. package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
  22. package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
  23. package/dist/_dts/api/src/index.d.ts +3 -4
  24. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  25. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  26. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
  27. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
  28. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +85 -5
  29. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
  30. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -100
  31. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
  32. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
  33. package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
  34. package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
  35. package/dist/_dts/api/src/siteOperations.d.ts +2 -2
  36. package/dist/_dts/api/src/types.d.ts +1 -1
  37. package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
  38. package/dist/_dts/blocks/src/client.d.ts +0 -5
  39. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  40. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +5 -94
  41. package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
  42. package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
  43. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
  44. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +35 -10
  45. package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
  46. package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
  47. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -3
  48. package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
  49. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  50. package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
  51. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
  52. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
  53. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  54. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +99 -59
  56. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
  57. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
  58. package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
  59. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
  60. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
  61. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
  62. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  63. package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
  64. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
  67. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -0
  68. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
  69. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
  70. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
  71. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
  72. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
  73. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
  74. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
  75. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
  76. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +5 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
  79. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
  80. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
  81. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
  82. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
  83. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +20 -5
  84. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
  85. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
  86. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
  88. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
  89. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +16 -6
  90. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  91. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
  92. package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
  93. package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
  95. package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
  96. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
  97. package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -1
  98. package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
  99. package/dist/_dts/commerce/src/index.d.ts +16 -0
  100. package/dist/_dts/commerce/src/money.d.ts +122 -0
  101. package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
  102. package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
  103. package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
  104. package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
  105. package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
  106. package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
  107. package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
  108. package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
  109. package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
  110. package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
  111. package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
  112. package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
  113. package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
  114. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
  115. package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
  116. package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
  117. package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
  118. package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
  119. package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
  120. package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
  121. package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
  122. package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
  123. package/dist/_dts/commerce/src/types/json.d.ts +3 -0
  124. package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
  125. package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
  126. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
  127. package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
  128. package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
  129. package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
  130. package/dist/_dts/core/src/branded.d.ts +3 -3
  131. package/dist/_dts/core/src/event-pricing.d.ts +6 -6
  132. package/dist/_dts/core/src/participants.d.ts +17 -17
  133. package/dist/_dts/core/src/rectification.d.ts +1 -1
  134. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +890 -2154
  135. package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
  136. package/dist/_dts/sdk/src/bookings/types.d.ts +34 -4
  137. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
  138. package/dist/_dts/sdk/src/version.d.ts +1 -1
  139. package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
  140. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
  142. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
  143. package/dist/client/{usePolling-UN4WKnaM.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +180 -4
  144. package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +13 -27
  145. package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-BKB0ZxRR.mjs} +3 -3
  146. package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
  147. package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
  148. package/dist/client/{accordion-DFXpLvwg.mjs → accordion-KIDsKTwS.mjs} +1 -1
  149. package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-D96Rmp-5.mjs} +6 -7
  150. package/dist/client/bookings.mjs +913 -1906
  151. package/dist/client/{carousel-wjyWTZCh.mjs → carousel-YwUgyL66.mjs} +1 -1
  152. package/dist/client/{cart-DCwdpA4i.mjs → cart-BbwuNrUT.mjs} +3 -3
  153. package/dist/client/{checkout-DTDW3l0R.mjs → checkout-hp1ucmEY.mjs} +3 -3
  154. package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
  155. package/dist/client/client.mjs +5109 -9333
  156. package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
  157. package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-DU4iNLpo.mjs} +5 -5
  158. package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-CZuupW8m.mjs} +3 -3
  159. package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-DPQWwCIi.mjs} +8 -8
  160. package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-C7oMidwS.mjs} +3 -3
  161. package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-zEiunlUs.mjs} +4522 -3690
  162. package/dist/client/{form-CUXfsABE.mjs → form-D2KIyCVJ.mjs} +2 -2
  163. package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-CK5uChUK.mjs} +2 -2
  164. package/dist/client/hooks.mjs +459 -714
  165. package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DLQNH1ln.mjs} +2 -2
  166. package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-ZuhIG7fZ.mjs} +2 -2
  167. package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-7hIcGeae.mjs} +3 -3
  168. package/dist/client/{productList-CttYcS_S.mjs → productList-T4Cii1ot.mjs} +3 -3
  169. package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-mB0aC_Fi.mjs} +4702 -4458
  170. package/dist/client/rendering/client.mjs +59617 -62260
  171. package/dist/client/rendering/islands.mjs +17 -19
  172. package/dist/client/rendering.mjs +5389 -9707
  173. package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-Du5mHgvL.mjs} +2 -2
  174. package/dist/client/{shop-DXQtMo2O.mjs → shop-B5zAcKZn.mjs} +6 -6
  175. package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-BKBZB6l5.mjs} +6 -6
  176. package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
  177. package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-DYGzEs9D.mjs} +3 -3
  178. package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-Bphkda8m.mjs} +3 -3
  179. package/dist/preview-next/before-render.mjs +40 -161
  180. package/dist/preview-next/client/runtime.mjs +4 -4
  181. package/dist/preview-next/keepAlive.mjs +40 -161
  182. package/dist/preview-next/middleware.mjs +40 -161
  183. package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
  184. package/dist/{sdk-runtime-Ca5RD78X.mjs → sdk-runtime-BbIC8G4J.mjs} +2 -2
  185. package/dist/{separator-CMhj6BTi.mjs → separator-CadhAtI7.mjs} +1 -1
  186. package/dist/server/components.mjs +558 -2962
  187. package/dist/server/config-validation.mjs +459 -714
  188. package/dist/server/config.mjs +459 -714
  189. package/dist/server/data.mjs +459 -714
  190. package/dist/server/index.mjs +41 -162
  191. package/dist/server/next.mjs +572 -2976
  192. package/dist/server/page-converter.mjs +360 -582
  193. package/dist/server/prebuild.mjs +1 -1
  194. package/dist/server/rendering/server.mjs +569 -2879
  195. package/dist/server/rendering.mjs +558 -2962
  196. package/dist/server/routing.mjs +603 -1087
  197. package/dist/server/server.mjs +473 -728
  198. package/dist/server/theme-bridge.mjs +41 -1524
  199. package/dist/styles/index.css +41 -1348
  200. package/package.json +1 -1
  201. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
  202. package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
  203. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
  204. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
  205. package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
  206. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
  207. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
  208. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
  209. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -135
  210. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
  211. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
  212. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
  213. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
  214. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
  215. package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
  216. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
  217. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
  218. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
  219. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
  220. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
  221. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
  222. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
  223. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
  224. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
  225. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
  226. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
  227. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
  228. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
  229. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
  230. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
  231. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
  232. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
  233. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
  234. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -46
  235. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
  236. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
  237. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
  238. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
  239. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
  240. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
  241. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
  242. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
  243. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
  244. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
  245. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
  246. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
  247. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -325
  248. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
  249. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
  250. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
  251. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
  252. package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
  253. package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
  254. package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
  255. package/dist/client/BookingConsentAgreement-BxgpGEFD.mjs +0 -160
  256. package/dist/client/WholeSeriesRegistrationWizard-DwtC7bCs.mjs +0 -2546
  257. package/dist/client/courseRegistration-A-Tg7qw_.mjs +0 -52
  258. package/dist/client/pricing-Caa0QWzh.mjs +0 -195
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riverbankcms/sdk",
3
- "version": "0.134.0",
3
+ "version": "0.135.1",
4
4
  "description": "Riverbank CMS SDK for headless content consumption",
5
5
  "main": "./dist/server/index.mjs",
6
6
  "module": "./dist/server/index.mjs",
@@ -1,99 +0,0 @@
1
- export declare const COURSE_ENDPOINT_DEFINITIONS: {
2
- listCourses: {
3
- path: "/sites/{siteId}/bookings/courses";
4
- method: "GET";
5
- auth: "user";
6
- responseKind: "json";
7
- };
8
- exportCoursesCsv: {
9
- path: "/sites/{siteId}/bookings/courses/export.csv";
10
- method: "GET";
11
- tags: ("bookings" | "site-{siteId}" | "courses-{siteId}")[];
12
- errors: never[];
13
- auth: "user";
14
- responseKind: "blob";
15
- };
16
- createCourse: {
17
- path: "/sites/{siteId}/bookings/courses";
18
- method: "POST";
19
- auth: "user";
20
- responseKind: "json";
21
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:already_exists" | "resource:conflict" | "server:internal_error")[];
22
- };
23
- getCourse: {
24
- path: "/sites/{siteId}/bookings/courses/{courseId}";
25
- method: "GET";
26
- auth: "user";
27
- responseKind: "json";
28
- };
29
- updateCourse: {
30
- path: "/sites/{siteId}/bookings/courses/{courseId}";
31
- method: "PATCH";
32
- auth: "user";
33
- responseKind: "json";
34
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
35
- };
36
- deleteCourse: {
37
- path: "/sites/{siteId}/bookings/courses/{courseId}";
38
- method: "DELETE";
39
- auth: "user";
40
- responseKind: "json";
41
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
42
- };
43
- deleteEventOffering: {
44
- path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}";
45
- method: "DELETE";
46
- auth: "user";
47
- responseKind: "json";
48
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
49
- };
50
- duplicateCourse: {
51
- path: "/sites/{siteId}/bookings/courses/{courseId}/duplicate";
52
- method: "POST";
53
- auth: "user";
54
- responseKind: "json";
55
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:already_exists" | "server:internal_error")[];
56
- };
57
- changeCourseContentOwnership: {
58
- path: "/sites/{siteId}/bookings/courses/{courseId}/content-ownership";
59
- method: "POST";
60
- auth: "user";
61
- responseKind: "json";
62
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
63
- };
64
- addCourseEnrollment: {
65
- path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments";
66
- method: "POST";
67
- auth: "user";
68
- responseKind: "json";
69
- errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
70
- };
71
- listCourseEnrollments: {
72
- path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments";
73
- method: "GET";
74
- auth: "user";
75
- responseKind: "json";
76
- };
77
- exportCourseEnrollmentsCsv: {
78
- path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments/export.csv";
79
- method: "GET";
80
- auth: "user";
81
- errors: never[];
82
- responseKind: "blob";
83
- };
84
- exportCourseWaitlistCsv: {
85
- path: "/sites/{siteId}/bookings/courses/{courseId}/waitlist/export.csv";
86
- method: "GET";
87
- tags: ("bookings" | "site-{siteId}" | "courses-{courseId}")[];
88
- auth: "user";
89
- responseKind: "blob";
90
- errors: never[];
91
- };
92
- updateCourseEnrollment: {
93
- path: "/sites/{siteId}/bookings/courses/{courseId}/enrollments/{enrollmentId}";
94
- method: "PATCH";
95
- auth: "user";
96
- responseKind: "json";
97
- errors: ("validation:invalid_input" | "resource:not_found" | "server:internal_error")[];
98
- };
99
- };
@@ -1,5 +0,0 @@
1
- export { BlockApiProvider, type BlockApiConfig } from '../system/runtime/api';
2
- export { CourseRegistrationIslandClient, type CourseRegistrationIslandClientProps, } from '../system/runtime/nodes/course-registration.client';
3
- export { HeadlessWholeSeriesRegistrationProvider, createWholeSeriesRegistrationBlockApiConfig, useHeadlessWholeSeriesRegistrationFlow, } from '../system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow';
4
- export { AltchaWidget as HeadlessWholeSeriesRegistrationAltchaWidget } from '../../../altcha/src/client';
5
- export type { HeadlessWholeSeriesRegistrationFlow, HeadlessWholeSeriesRegistrationFlowOptions, HeadlessWholeSeriesRegistrationProviderProps, WholeSeriesRegistrationAvailabilityModel, WholeSeriesRegistrationFlowActionResult, WholeSeriesRegistrationFlowActions, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowStepId, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentModel, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingInput, WholeSeriesRegistrationPricingModel, WholeSeriesRegistrationPricingOptionInput, WholeSeriesRegistrationRun, WholeSeriesRegistrationRunInput, WholeSeriesRegistrationRunsModel, WholeSeriesRegistrationSpamProtectionModel, WholeSeriesRegistrationWaitlistClaimModel, } from '../system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow';
@@ -1,134 +0,0 @@
1
- import type { SystemBlockDefinition } from "../registry";
2
- import type { SectionStylesContent } from "../fields/boxStyles";
3
- /**
4
- * Course Details Block
5
- *
6
- * Displays logistics for a course:
7
- * - Sessions (date/time list)
8
- * - Venue
9
- * - Price + capacity + enrollment status
10
- *
11
- * Intended for use on course templates, but can also be placed on standalone pages.
12
- */
13
- export declare const courseDetailsManifest: import("..").DefinedBlockManifest<{
14
- readonly additionalFields: readonly [{
15
- readonly id: "heading";
16
- readonly type: "text";
17
- readonly label: "Heading";
18
- readonly description: "Optional heading shown above course details";
19
- readonly required: false;
20
- readonly multiline: false;
21
- readonly defaultValue: "Course details";
22
- }, {
23
- readonly id: "showTitle";
24
- readonly type: "boolean";
25
- readonly label: "Show course title";
26
- readonly required: false;
27
- readonly defaultValue: false;
28
- readonly ui: {
29
- readonly intent: "display";
30
- };
31
- }, {
32
- readonly id: "showDescription";
33
- readonly type: "boolean";
34
- readonly label: "Show course description";
35
- readonly description: "Render the course description from the bookings course record";
36
- readonly required: false;
37
- readonly defaultValue: false;
38
- readonly ui: {
39
- readonly intent: "display";
40
- };
41
- }, {
42
- readonly id: "showSessions";
43
- readonly type: "boolean";
44
- readonly label: "Show sessions";
45
- readonly required: false;
46
- readonly defaultValue: true;
47
- readonly ui: {
48
- readonly intent: "display";
49
- };
50
- }, {
51
- readonly id: "sessionsLimit";
52
- readonly type: "select";
53
- readonly label: "Sessions limit";
54
- readonly required: false;
55
- readonly multiple: false;
56
- readonly defaultValue: "10";
57
- readonly options: [{
58
- readonly value: "3";
59
- readonly label: "3 sessions";
60
- }, {
61
- readonly value: "5";
62
- readonly label: "5 sessions";
63
- }, {
64
- readonly value: "10";
65
- readonly label: "10 sessions";
66
- }, {
67
- readonly value: "all";
68
- readonly label: "All sessions";
69
- }];
70
- readonly ui: {
71
- readonly intent: "display";
72
- };
73
- }, {
74
- readonly id: "showVenue";
75
- readonly type: "boolean";
76
- readonly label: "Show venue";
77
- readonly required: false;
78
- readonly defaultValue: true;
79
- readonly ui: {
80
- readonly intent: "display";
81
- };
82
- }, {
83
- readonly id: "showPrice";
84
- readonly type: "boolean";
85
- readonly label: "Show price";
86
- readonly required: false;
87
- readonly defaultValue: true;
88
- readonly ui: {
89
- readonly intent: "display";
90
- };
91
- }, {
92
- readonly id: "showCapacity";
93
- readonly type: "boolean";
94
- readonly label: "Show capacity";
95
- readonly required: false;
96
- readonly defaultValue: true;
97
- readonly ui: {
98
- readonly intent: "display";
99
- };
100
- }, {
101
- readonly id: "showEnrollmentStatus";
102
- readonly type: "boolean";
103
- readonly label: "Show enrollment status";
104
- readonly required: false;
105
- readonly defaultValue: true;
106
- readonly ui: {
107
- readonly intent: "display";
108
- };
109
- }, {
110
- readonly id: "showMembershipNote";
111
- readonly type: "boolean";
112
- readonly label: "Show membership note";
113
- readonly description: "Indicate when memberships can be used for free enrollment";
114
- readonly required: false;
115
- readonly defaultValue: true;
116
- readonly ui: {
117
- readonly intent: "display";
118
- };
119
- }];
120
- }>;
121
- export type CourseDetailsContent = {
122
- heading?: string | null;
123
- showTitle?: boolean | null;
124
- showDescription?: boolean | null;
125
- showSessions?: boolean | null;
126
- sessionsLimit?: "3" | "5" | "10" | "all" | null;
127
- showVenue?: boolean | null;
128
- showPrice?: boolean | null;
129
- showCapacity?: boolean | null;
130
- showEnrollmentStatus?: boolean | null;
131
- showMembershipNote?: boolean | null;
132
- _sectionStyles?: SectionStylesContent;
133
- };
134
- export declare const courseDetailsBlockDefinition: SystemBlockDefinition<CourseDetailsContent>;
@@ -1,130 +0,0 @@
1
- import type { SystemBlockDefinition } from "../registry";
2
- import type { SectionStylesContent } from "../fields/boxStyles";
3
- import { courseRegistrationBlockRuntime } from "../runtime/nodes/course-registration.interactive";
4
- import type { BlockButtonRole } from "../constants/buttonRoles";
5
- export { type PublicCourse, type PublicWholeSeriesOffering, type CourseSession, type CourseVenue, type CourseStatus, } from "./courses/shared";
6
- /**
7
- * Course Registration Block
8
- *
9
- * Registration form for multi-session courses. Customers enroll once
10
- * and are automatically added to all course sessions.
11
- *
12
- * Key differences from Event Registration:
13
- * - No occurrence selection (all sessions included)
14
- * - No ticket quantity (enrollment is binary)
15
- * - No pass payment option (passes not valid for courses)
16
- * - Shows all session dates upfront
17
- * - Membership-based payment if course accepts memberships
18
- *
19
- * Context:
20
- * - The canonical event-offering/event-series page subject scopes the
21
- * available run or runs.
22
- */
23
- export declare const courseRegistrationManifest: import("..").DefinedBlockManifest<{
24
- readonly additionalFields: readonly [{
25
- readonly id: "heading";
26
- readonly type: "text";
27
- readonly label: "Heading";
28
- readonly description: "Main heading for the registration form";
29
- readonly required: false;
30
- readonly multiline: false;
31
- readonly defaultValue: "Sign up";
32
- }, {
33
- readonly id: "description";
34
- readonly type: "richText";
35
- readonly label: "Description";
36
- readonly description: "Optional introductory text";
37
- readonly required: false;
38
- }, {
39
- readonly id: "showSessions";
40
- readonly type: "boolean";
41
- readonly label: "Show sessions";
42
- readonly description: "Display the list of course sessions";
43
- readonly required: false;
44
- readonly defaultValue: true;
45
- readonly ui: {
46
- readonly intent: "display";
47
- };
48
- }, {
49
- readonly id: "showPrice";
50
- readonly type: "boolean";
51
- readonly label: "Show price";
52
- readonly description: "Display the course price";
53
- readonly required: false;
54
- readonly defaultValue: true;
55
- readonly ui: {
56
- readonly intent: "display";
57
- };
58
- }, {
59
- readonly id: "showCapacity";
60
- readonly type: "boolean";
61
- readonly label: "Show available spots";
62
- readonly description: "Display remaining enrollment capacity";
63
- readonly required: false;
64
- readonly defaultValue: true;
65
- readonly ui: {
66
- readonly intent: "display";
67
- };
68
- }, {
69
- readonly id: "showVenue";
70
- readonly type: "boolean";
71
- readonly label: "Show venue";
72
- readonly description: "Display venue information";
73
- readonly required: false;
74
- readonly defaultValue: true;
75
- readonly ui: {
76
- readonly intent: "display";
77
- };
78
- }, {
79
- readonly id: "successMessage";
80
- readonly type: "text";
81
- readonly label: "Success message";
82
- readonly description: "Message shown after successful enrollment";
83
- readonly required: false;
84
- readonly multiline: true;
85
- readonly defaultValue: "You're enrolled! Check your email for confirmation and session details.";
86
- readonly maxLength: 500;
87
- }, {
88
- readonly id: "waitlistMessage";
89
- readonly type: "text";
90
- readonly label: "Waitlist message";
91
- readonly description: "Message when added to waitlist";
92
- readonly required: false;
93
- readonly multiline: true;
94
- readonly defaultValue: "You've been added to the waitlist. We'll email you a claim link if a spot opens up.";
95
- readonly maxLength: 500;
96
- }, {
97
- readonly id: "membershipMessage";
98
- readonly type: "text";
99
- readonly label: "Membership enrollment message";
100
- readonly description: "Message when enrolled using a membership";
101
- readonly required: false;
102
- readonly multiline: true;
103
- readonly defaultValue: "Enrolled using your membership! Check your email for session details.";
104
- readonly maxLength: 500;
105
- }, {
106
- readonly id: "buttonText";
107
- readonly type: "text";
108
- readonly label: "Submit button text";
109
- readonly description: "Text for the enrollment submit button";
110
- readonly required: false;
111
- readonly multiline: false;
112
- readonly defaultValue: "Sign up";
113
- readonly maxLength: 40;
114
- }, import("../../../../block-form/src/backend/index").FieldDefinition];
115
- }>;
116
- export type CourseRegistrationContent = {
117
- heading?: string | null;
118
- description?: unknown;
119
- showSessions?: boolean | null;
120
- showPrice?: boolean | null;
121
- showCapacity?: boolean | null;
122
- showVenue?: boolean | null;
123
- successMessage?: string | null;
124
- waitlistMessage?: string | null;
125
- membershipMessage?: string | null;
126
- buttonText?: string | null;
127
- buttonVariant?: BlockButtonRole | null;
128
- _sectionStyles?: SectionStylesContent;
129
- };
130
- export declare const courseRegistrationBlockDefinition: SystemBlockDefinition<CourseRegistrationContent, typeof courseRegistrationBlockRuntime>;
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './schemas';
3
- export * from './pricing';
@@ -1,2 +0,0 @@
1
- export type { WholeSeriesPriceDisplay as CoursePriceDisplay, ResolvedWholeSeriesPricingState as ResolvedCoursePricingState, } from '../../events/whole-series/pricing';
2
- export { getSelectableWholeSeriesPricingOptions as getSelectableCoursePricingOptions, resolveWholeSeriesPricingState as resolveCoursePricingState, formatWholeSeriesCurrencyAmount as formatCourseCurrencyAmount, formatWholeSeriesPriceAmount as formatCoursePriceAmount, formatWholeSeriesPriceDisplay as formatCoursePriceDisplay, } from '../../events/whole-series/pricing';
@@ -1 +0,0 @@
1
- export { wholeSeriesVenueSchema as courseVenueSchema, wholeSeriesSessionSchema as courseSessionSchema, wholeSeriesTeamMemberSummarySchema as courseTeamMemberSummarySchema, wholeSeriesPricingOptionSchema as coursePricingOptionSchema, wholeSeriesPricingSchema as coursePricingSchema, publicWholeSeriesOfferingSchema, publicWholeSeriesOfferingSchema as publicCourseSchema, publicWholeSeriesOfferingsArraySchema, publicWholeSeriesOfferingsArraySchema as publicCoursesArraySchema, } from '../../events/whole-series/schemas';
@@ -1 +0,0 @@
1
- export type { WholeSeriesOfferingStatus as CourseStatus, WholeSeriesVenue as CourseVenue, WholeSeriesSession as CourseSession, WholeSeriesPricingOption as CoursePricingOption, WholeSeriesPricing as CoursePricing, PublicWholeSeriesOffering, PublicWholeSeriesOffering as PublicCourse, ButtonVariant, } from '../../events/whole-series/types';
@@ -1,135 +0,0 @@
1
- /**
2
- * Course enrolment, eligibility and checkout types
3
- *
4
- * Part of the block API client type surface; re-exported from `../types`.
5
- */
6
- import type { PaymentStatus } from "./events";
7
- export type CoursePaymentMethod = "free" | "membership" | "stripe";
8
- export interface WholeSeriesRegistrationRequest {
9
- siteId: string;
10
- eventSeriesId: string;
11
- pricingOptionId?: string;
12
- selectedSlidingAmount?: number;
13
- email: string;
14
- name: string;
15
- phone?: string;
16
- formData?: Record<string, unknown>;
17
- consentAccepted?: boolean;
18
- altchaSolution?: string | null;
19
- paymentMethod?: Exclude<CoursePaymentMethod, "stripe">;
20
- customerMembershipId?: string;
21
- claimToken?: string;
22
- }
23
- interface WholeSeriesRegistrationBaseResponse {
24
- waitlistPosition?: number | null;
25
- courseTitle: string;
26
- sessionsCount: number;
27
- message: string;
28
- }
29
- export interface WholeSeriesRegistrationSuccessResponse extends WholeSeriesRegistrationBaseResponse {
30
- status: "enrolled";
31
- enrollmentId: string;
32
- paymentMethod: CoursePaymentMethod;
33
- pendingPayment: boolean;
34
- }
35
- export interface WholeSeriesWaitlistResponse extends WholeSeriesRegistrationBaseResponse {
36
- status: "waitlist";
37
- paymentMethod: "free";
38
- pendingPayment: false;
39
- }
40
- export type WholeSeriesRegistrationResponse = WholeSeriesRegistrationSuccessResponse | WholeSeriesWaitlistResponse;
41
- export interface WholeSeriesEligibilityRequest {
42
- siteId: string;
43
- eventSeriesId: string;
44
- }
45
- export interface WholeSeriesEligibilityResponse {
46
- eventSeriesId: string;
47
- canEnroll: boolean;
48
- canJoinWaitlist: boolean;
49
- reason?: string;
50
- availableSpots: number | null;
51
- isFull: boolean;
52
- isOnWaitlist: boolean;
53
- waitlistEnabled: boolean;
54
- price: {
55
- cents: number | null;
56
- currency: string;
57
- };
58
- paymentOptions: {
59
- free: boolean;
60
- membership: boolean;
61
- stripe: boolean;
62
- };
63
- eligibleMemberships?: Array<{
64
- customerMembershipId: string;
65
- membershipName: string;
66
- }>;
67
- }
68
- export interface WholeSeriesCheckoutRequest {
69
- siteId: string;
70
- eventSeriesId: string;
71
- pricingOptionId?: string;
72
- selectedSlidingAmount?: number;
73
- email: string;
74
- name: string;
75
- phone?: string;
76
- formData?: Record<string, unknown>;
77
- consentAccepted?: boolean;
78
- altchaSolution?: string | null;
79
- /** Optional booking discount code (applies only to Stripe/card flows) */
80
- discountCode?: string;
81
- successUrl: string;
82
- cancelUrl: string;
83
- claimToken?: string;
84
- }
85
- export type WaitlistClaimSubject = {
86
- kind: "event_occurrence";
87
- occurrenceId: string;
88
- attendanceMode: 'in_person' | 'online';
89
- } | {
90
- kind: "whole_series";
91
- eventSeriesId: string;
92
- };
93
- export interface ResolveWaitlistClaimRequest {
94
- siteId: string;
95
- claimToken: string;
96
- }
97
- export interface ResolveWaitlistClaimResponse {
98
- subject: WaitlistClaimSubject;
99
- expiresAt: string;
100
- customer: {
101
- email: string;
102
- name: string;
103
- phone: string | null;
104
- };
105
- prefill: {
106
- email: string;
107
- name: string;
108
- phone: string | null;
109
- notes: string | null;
110
- guests: Array<{
111
- name: string;
112
- email?: string | null;
113
- phone: string | null;
114
- }>;
115
- };
116
- }
117
- export interface WholeSeriesCheckoutResponse {
118
- checkoutUrl: string | null;
119
- sessionId: string | null;
120
- enrollmentId: string;
121
- bypassed: boolean;
122
- }
123
- export interface WholeSeriesRegistrationStatusRequest {
124
- siteId: string;
125
- sessionId: string;
126
- }
127
- export interface WholeSeriesRegistrationStatusResponse {
128
- enrollmentId: string;
129
- eventSeriesId: string;
130
- courseTitle: string;
131
- status: "pending_payment" | "enrolled" | "waitlist" | "cancelled" | "completed";
132
- paymentMethod: CoursePaymentMethod | null;
133
- paymentStatus: PaymentStatus | null;
134
- }
135
- export {};
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { type BlockApiConfig } from '../api';
3
- import type { WholeSeriesRegistrationClientProps } from '../nodes/event-registration/whole-series/types';
4
- import { useWholeSeriesRegistrationWizard } from '../nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard';
5
- import type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationRunInput } from '../nodes/event-registration/whole-series/whole-series-registration.headless.contract';
6
- export type { BlockApiConfig };
7
- export type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationAvailabilityModel, WholeSeriesRegistrationFlowActionResult, WholeSeriesRegistrationFlowActions, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowStepId, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentModel, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingInput, WholeSeriesRegistrationPricingModel, WholeSeriesRegistrationPricingOptionInput, WholeSeriesRegistrationRun, WholeSeriesRegistrationRunInput, WholeSeriesRegistrationRunsModel, WholeSeriesRegistrationSpamProtectionModel, WholeSeriesRegistrationWaitlistClaimModel, } from '../nodes/event-registration/whole-series/whole-series-registration.headless.contract';
8
- export type HeadlessWholeSeriesRegistrationFlowOptions = Readonly<{
9
- runs?: readonly WholeSeriesRegistrationRunInput[];
10
- subject?: WholeSeriesRegistrationClientProps['subject'];
11
- }>;
12
- export type HeadlessWholeSeriesRegistrationProviderProps = Readonly<{
13
- config: BlockApiConfig;
14
- children?: React.ReactNode;
15
- }>;
16
- export type WholeSeriesRegistrationControllerDeps = Readonly<{
17
- useWholeSeriesRegistrationWizard: typeof useWholeSeriesRegistrationWizard;
18
- }>;
19
- export declare function createWholeSeriesRegistrationBlockApiConfig(input: Readonly<{
20
- siteId: string;
21
- apiBaseUrl: string;
22
- portalToken?: string | null;
23
- previewToken?: string | null;
24
- stage?: 'preview' | 'published';
25
- }>): BlockApiConfig;
26
- export declare function HeadlessWholeSeriesRegistrationProvider({ config, children, }: HeadlessWholeSeriesRegistrationProviderProps): React.ReactElement;
27
- export declare function useHeadlessWholeSeriesRegistrationFlow(options: HeadlessWholeSeriesRegistrationFlowOptions): HeadlessWholeSeriesRegistrationFlow;
28
- export declare function useWholeSeriesRegistrationControllerWithDeps(options: HeadlessWholeSeriesRegistrationFlowOptions, deps: WholeSeriesRegistrationControllerDeps): HeadlessWholeSeriesRegistrationFlow;
@@ -1,11 +0,0 @@
1
- import type { PublicCourse } from '../../../blocks/courses/shared/types';
2
- export type CourseDetailsSelection = {
3
- mode: 'pageSurfaceSubject' | 'unsupportedPageSurfaceSubject';
4
- selected: PublicCourse | null;
5
- scoped: PublicCourse[];
6
- };
7
- export declare function selectCourseDetails(args: {
8
- courses: PublicCourse[] | null | undefined;
9
- subject?: unknown;
10
- }): CourseDetailsSelection;
11
- export declare function sortCourseSessions(course: PublicCourse): PublicCourse['sessions'];
@@ -1,10 +0,0 @@
1
- import type { PublicCourse } from '../../../blocks/courses/shared/types';
2
- export type CourseDateRange = {
3
- start: Date | null;
4
- end: Date | null;
5
- startIso: string | null;
6
- endIso: string | null;
7
- timeZone: string | null;
8
- };
9
- export declare function getCourseDateRange(course: PublicCourse): CourseDateRange;
10
- export declare function formatCourseDateRange(range: CourseDateRange): string;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { PublicCourse } from '../../../blocks/courses/shared/types';
3
- export declare function CourseDetailsView(props: {
4
- course: PublicCourse | null;
5
- showTitle?: boolean;
6
- showDescription?: boolean;
7
- showSessions?: boolean;
8
- sessionsLimit?: string | number | null;
9
- showVenue?: boolean;
10
- showPrice?: boolean;
11
- showCapacity?: boolean;
12
- showEnrollmentStatus?: boolean;
13
- showMembershipNote?: boolean;
14
- emptyMessage?: string;
15
- }): React.JSX.Element;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { PublicCourse } from '../../blocks/courses/shared/types';
3
- type CourseDetailsProps = {
4
- blockId?: string | null;
5
- subject?: unknown;
6
- courses?: PublicCourse[] | null;
7
- showTitle?: boolean;
8
- showDescription?: boolean;
9
- showSessions?: boolean;
10
- sessionsLimit?: string | number | null;
11
- showVenue?: boolean;
12
- showPrice?: boolean;
13
- showCapacity?: boolean;
14
- showEnrollmentStatus?: boolean;
15
- showMembershipNote?: boolean;
16
- className?: string | null;
17
- children?: React.ReactNode;
18
- };
19
- export declare function CourseDetailsSSR({ courses, subject, showTitle, showDescription, showSessions, sessionsLimit, showVenue, showPrice, showCapacity, showEnrollmentStatus, showMembershipNote, className, children, }: CourseDetailsProps): React.JSX.Element;
20
- export default CourseDetailsSSR;
@@ -1,14 +0,0 @@
1
- import type { EventPageSurfaceSubject, EventPageSurfaceSubjectParseError } from '../../../../../core/src/index';
2
- import type { PublicCourse } from '../../blocks/courses/shared/types';
3
- export type CoursePageSurfaceScope = Readonly<{
4
- kind: 'absent';
5
- }> | Readonly<{
6
- kind: 'scoped';
7
- subject: EventPageSurfaceSubject;
8
- courses: readonly PublicCourse[];
9
- }> | Readonly<{
10
- kind: 'unsupported';
11
- reason: EventPageSurfaceSubjectParseError['kind'];
12
- }>;
13
- /** Temporary Course-block adapter over canonical Event run scoping. */
14
- export declare function resolveCoursePageSurfaceScope(courses: readonly PublicCourse[], subjectValue: unknown): CoursePageSurfaceScope;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { WholeSeriesRegistrationClientProps } from './event-registration/whole-series';
3
- import type { CourseRegistrationInteractiveIslandProps } from './course-registration.interactive';
4
- export type CourseRegistrationClientProps = Omit<WholeSeriesRegistrationClientProps, 'runs'> & Readonly<{
5
- courses?: WholeSeriesRegistrationClientProps['runs'];
6
- }>;
7
- export type CourseRegistrationIslandClientProps = CourseRegistrationInteractiveIslandProps;
8
- export declare function CourseRegistrationClient(props: CourseRegistrationClientProps): React.JSX.Element;
9
- export declare function CourseRegistrationIslandClient(props: CourseRegistrationIslandClientProps): React.JSX.Element;
10
- export default CourseRegistrationClient;