@riverbankcms/sdk 0.134.0 → 0.135.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 (258) hide show
  1. package/CHANGELOG.md +4 -3
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-roNY0GVy.mjs} +4 -4
  4. package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-KboDbEh_.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-DBrF7Caa.mjs} +5 -5
  7. package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-DrIEpJKn.mjs} +4070 -8011
  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 +10 -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 +6 -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-BQqwi8Oa.mjs} +180 -4
  144. package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-B97aMo0V.mjs} +13 -27
  145. package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-Bs2Iw9Q6.mjs} +3 -3
  146. package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-C4QUQdmg.mjs} +2 -2
  147. package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CwWRk69M.mjs} +1 -1
  148. package/dist/client/{accordion-DFXpLvwg.mjs → accordion-BA0j8Mpw.mjs} +1 -1
  149. package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-Br2e41H0.mjs} +6 -7
  150. package/dist/client/bookings.mjs +912 -1906
  151. package/dist/client/{carousel-wjyWTZCh.mjs → carousel-B4dmwnpD.mjs} +1 -1
  152. package/dist/client/{cart-DCwdpA4i.mjs → cart-B_ckGW4b.mjs} +3 -3
  153. package/dist/client/{checkout-DTDW3l0R.mjs → checkout-DAyspHdf.mjs} +3 -3
  154. package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
  155. package/dist/client/client.mjs +5074 -9309
  156. package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
  157. package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-pJu3FUod.mjs} +5 -5
  158. package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-B6Kacm9F.mjs} +3 -3
  159. package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-CaX9z1pv.mjs} +8 -8
  160. package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-B9aXPO-I.mjs} +3 -3
  161. package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-CBSovBkg.mjs} +4522 -3690
  162. package/dist/client/{form-CUXfsABE.mjs → form-Cm0tu_7o.mjs} +2 -2
  163. package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-OgRtHeKS.mjs} +2 -2
  164. package/dist/client/hooks.mjs +430 -692
  165. package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DmjcYqNM.mjs} +2 -2
  166. package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-D08OZQAC.mjs} +2 -2
  167. package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-BqZeu2P4.mjs} +3 -3
  168. package/dist/client/{productList-CttYcS_S.mjs → productList-mNyIF9FG.mjs} +3 -3
  169. package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-DwHXRm9X.mjs} +4656 -4419
  170. package/dist/client/rendering/client.mjs +59504 -62158
  171. package/dist/client/rendering/islands.mjs +17 -19
  172. package/dist/client/rendering.mjs +5354 -9683
  173. package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-DtmdM3v-.mjs} +2 -2
  174. package/dist/client/{shop-DXQtMo2O.mjs → shop-CNjZK16F.mjs} +6 -6
  175. package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-DkNNao1J.mjs} +6 -6
  176. package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-9WA--zuW.mjs} +1 -1
  177. package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-CHCVfccY.mjs} +3 -3
  178. package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-DvuaB4ZN.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-3GhW4knb.mjs} +2 -2
  185. package/dist/{separator-CMhj6BTi.mjs → separator-D3bCWYYb.mjs} +1 -1
  186. package/dist/server/components.mjs +535 -2950
  187. package/dist/server/config-validation.mjs +430 -692
  188. package/dist/server/config.mjs +430 -692
  189. package/dist/server/data.mjs +430 -692
  190. package/dist/server/index.mjs +41 -162
  191. package/dist/server/next.mjs +549 -2964
  192. package/dist/server/page-converter.mjs +331 -560
  193. package/dist/server/prebuild.mjs +1 -1
  194. package/dist/server/rendering/server.mjs +534 -2855
  195. package/dist/server/rendering.mjs +535 -2950
  196. package/dist/server/routing.mjs +574 -1065
  197. package/dist/server/server.mjs +444 -706
  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
@@ -1,35 +0,0 @@
1
- import type { PublicWholeSeriesOffering, ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
2
- import type { BlockApiClient } from '../../../api';
3
- import type { WholeSeriesEligibilityResponse } from '../../../api/types';
4
- import type { WholeSeriesRegistrationWizardActionResult, WholeSeriesRegistrationWizardOptions, EnrollmentResult, EnrollmentStep, FormData, PortalAuthState } from './types';
5
- import type { PaymentChoice } from './useWholeSeriesEligibility';
6
- type Membership = Readonly<{
7
- customerMembershipId: string;
8
- membershipName: string;
9
- }>;
10
- type ActionState = Readonly<{
11
- api: BlockApiClient;
12
- selectedRun: PublicWholeSeriesOffering | null;
13
- pricing: ResolvedWholeSeriesPricingState | null;
14
- formData: FormData;
15
- portalAuthState: PortalAuthState;
16
- eligibility: WholeSeriesEligibilityResponse | null;
17
- eligibleMemberships: readonly Membership[];
18
- paymentChoice: PaymentChoice;
19
- selectedMembershipId: string | null;
20
- claimToken: string | null;
21
- hasClaim: boolean;
22
- altchaSolution: string | null;
23
- discountCode: string;
24
- options: WholeSeriesRegistrationWizardOptions;
25
- }>;
26
- export declare function useWholeSeriesRegistrationActions(state: ActionState, setStep: (step: EnrollmentStep) => void): {
27
- errors: Partial<Record<keyof FormData, string>>;
28
- enrollmentResult: EnrollmentResult | null;
29
- errorMessage: string;
30
- reportError: (message: string) => void;
31
- recordEnrollmentResult: (result: EnrollmentResult) => void;
32
- handleSubmit: () => Promise<WholeSeriesRegistrationWizardActionResult>;
33
- handlePaymentContinue: () => Promise<WholeSeriesRegistrationWizardActionResult>;
34
- };
35
- export {};
@@ -1,7 +0,0 @@
1
- import type { BlockApiClient } from '../../../api';
2
- import type { FormData, PortalAuthState } from './types';
3
- export declare function useWholeSeriesRegistrationPortal(api: BlockApiClient): {
4
- formData: FormData;
5
- updateFormData: (updater: FormData | ((current: FormData) => FormData)) => void;
6
- portalAuthState: PortalAuthState;
7
- };
@@ -1,35 +0,0 @@
1
- import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
2
- import type { WholeSeriesRegistrationClientProps, EnrollmentStep } from './types';
3
- export type WholeSeriesRegistrationLocation = Readonly<{
4
- search: string;
5
- hash: string;
6
- }>;
7
- export declare function getWholeSeriesCheckoutSessionId(location?: WholeSeriesRegistrationLocation): string | null;
8
- export declare function useWholeSeriesRegistrationSelection(props: WholeSeriesRegistrationClientProps, location?: WholeSeriesRegistrationLocation): {
9
- scopedRuns: readonly PublicWholeSeriesOffering[];
10
- step: EnrollmentStep;
11
- goToStep: (nextStep: EnrollmentStep) => void;
12
- selectedRun: PublicWholeSeriesOffering | null;
13
- chooseRun: (run: PublicWholeSeriesOffering) => void;
14
- selectedPricingOptionId: string | null;
15
- choosePricingOption: (pricingOptionId: string | null) => void;
16
- selectedSlidingAmountInput: string;
17
- changeSlidingAmount: (amount: string) => void;
18
- selectedRunPricing: Readonly<{
19
- currency: string;
20
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
21
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
22
- requiresSelection: boolean;
23
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
24
- slidingScale: Readonly<{
25
- minAmount: number;
26
- maxAmount: number;
27
- suggestedAmount: number | null;
28
- }> | null;
29
- selectedSlidingAmount: number | null;
30
- selectedPriceAmount: number | null;
31
- selectedRequiresPayment: boolean;
32
- hasPaidSelection: boolean;
33
- hasFreeSelection: boolean;
34
- }> | null;
35
- };
@@ -1,185 +0,0 @@
1
- import { useBlockApi } from '../../../api';
2
- import type { UseWaitlistClaimResult } from '../../../shared/useWaitlistClaim';
3
- import { useDiscountCodeUi } from '../useDiscountCodeUi';
4
- import type { BookingMode, WholeSeriesRegistrationClientProps, WholeSeriesRegistrationWizardOptions } from './types';
5
- import { deriveWholeSeriesRegistrationViewState } from './wholeSeriesRegistrationViewState';
6
- import { useWholeSeriesEligibility } from './useWholeSeriesEligibility';
7
- import { useWholeSeriesRegistrationActions } from './useWholeSeriesRegistrationActions';
8
- import { useWholeSeriesRegistrationPortal } from './useWholeSeriesRegistrationPortal';
9
- import { useWholeSeriesRegistrationSelection } from './useWholeSeriesRegistrationSelection';
10
- import type { WholeSeriesRegistrationLocation } from './useWholeSeriesRegistrationSelection';
11
- export declare function useWholeSeriesRegistrationWizard(props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
12
- handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
13
- handleRetry: () => void;
14
- handleBookingModeChange: (mode: BookingMode) => void;
15
- handleLogout: (() => void) | undefined;
16
- selectedRunPricingPayload: {
17
- pricingOptionId?: string;
18
- selectedSlidingAmount?: number;
19
- };
20
- hasRunPayment: boolean;
21
- canUseMembership: boolean;
22
- hasPreSelectedRun: boolean;
23
- wizardSteps: readonly import("./types").EnrollmentStep[];
24
- currentStepNumber: number;
25
- totalSteps: number;
26
- stepLabels: string[];
27
- showPortalAuthSidebar: boolean;
28
- waitlistClaim: UseWaitlistClaimResult;
29
- bookingMode: BookingMode;
30
- altchaSolution: string | null;
31
- setAltchaSolution: (solution: string | null) => void;
32
- showSpamProtection: boolean;
33
- discountUiOpen: boolean;
34
- setDiscountUiOpen: (isOpen: boolean) => void;
35
- discountCode: string;
36
- setDiscountCode: (code: string) => void;
37
- discountsAvailable: boolean;
38
- manualCodeEntryAllowed: boolean;
39
- discountsAvailableLoading: boolean;
40
- errors: Partial<Record<keyof import("./types").FormData, string>>;
41
- enrollmentResult: import("./types").EnrollmentResult | null;
42
- errorMessage: string;
43
- reportError: (message: string) => void;
44
- recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
45
- handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
46
- handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
47
- eligibilityLoading: boolean;
48
- eligibilityError: string | null;
49
- runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
50
- eligibleMemberships: Readonly<{
51
- customerMembershipId: string;
52
- membershipName: string;
53
- }>[];
54
- paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
55
- choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
56
- selectedMembershipId: string | null;
57
- chooseMembership: (membershipId: string | null) => void;
58
- formData: import("./types").FormData;
59
- updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
60
- portalAuthState: import("./types").PortalAuthState;
61
- scopedRuns: readonly import("../../../..").PublicCourse[];
62
- step: import("./types").EnrollmentStep;
63
- goToStep: (nextStep: import("./types").EnrollmentStep) => void;
64
- selectedRun: import("../../../..").PublicCourse | null;
65
- chooseRun: (run: import("../../../..").PublicCourse) => void;
66
- selectedPricingOptionId: string | null;
67
- choosePricingOption: (pricingOptionId: string | null) => void;
68
- selectedSlidingAmountInput: string;
69
- changeSlidingAmount: (amount: string) => void;
70
- selectedRunPricing: Readonly<{
71
- currency: string;
72
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
73
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
74
- requiresSelection: boolean;
75
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
76
- slidingScale: Readonly<{
77
- minAmount: number;
78
- maxAmount: number;
79
- suggestedAmount: number | null;
80
- }> | null;
81
- selectedSlidingAmount: number | null;
82
- selectedPriceAmount: number | null;
83
- selectedRequiresPayment: boolean;
84
- hasPaidSelection: boolean;
85
- hasFreeSelection: boolean;
86
- }> | null;
87
- api: import("../../../api").BlockApiClient;
88
- };
89
- export type WholeSeriesRegistrationWizardDeps = Readonly<{
90
- readLocation: () => WholeSeriesRegistrationLocation;
91
- }>;
92
- export declare function useWholeSeriesRegistrationWizardWithDeps(deps: WholeSeriesRegistrationWizardDeps, props: WholeSeriesRegistrationClientProps, options?: WholeSeriesRegistrationWizardOptions): {
93
- handleRunSelect: (run: NonNullable<WizardParts["selection"]["selectedRun"]>) => void;
94
- handleRetry: () => void;
95
- handleBookingModeChange: (mode: BookingMode) => void;
96
- handleLogout: (() => void) | undefined;
97
- selectedRunPricingPayload: {
98
- pricingOptionId?: string;
99
- selectedSlidingAmount?: number;
100
- };
101
- hasRunPayment: boolean;
102
- canUseMembership: boolean;
103
- hasPreSelectedRun: boolean;
104
- wizardSteps: readonly import("./types").EnrollmentStep[];
105
- currentStepNumber: number;
106
- totalSteps: number;
107
- stepLabels: string[];
108
- showPortalAuthSidebar: boolean;
109
- waitlistClaim: UseWaitlistClaimResult;
110
- bookingMode: BookingMode;
111
- altchaSolution: string | null;
112
- setAltchaSolution: (solution: string | null) => void;
113
- showSpamProtection: boolean;
114
- discountUiOpen: boolean;
115
- setDiscountUiOpen: (isOpen: boolean) => void;
116
- discountCode: string;
117
- setDiscountCode: (code: string) => void;
118
- discountsAvailable: boolean;
119
- manualCodeEntryAllowed: boolean;
120
- discountsAvailableLoading: boolean;
121
- errors: Partial<Record<keyof import("./types").FormData, string>>;
122
- enrollmentResult: import("./types").EnrollmentResult | null;
123
- errorMessage: string;
124
- reportError: (message: string) => void;
125
- recordEnrollmentResult: (result: import("./types").EnrollmentResult) => void;
126
- handleSubmit: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
127
- handlePaymentContinue: () => Promise<import("./types").WholeSeriesRegistrationWizardActionResult>;
128
- eligibilityLoading: boolean;
129
- eligibilityError: string | null;
130
- runEligibility: import("../../../api/types").WholeSeriesEligibilityResponse | null;
131
- eligibleMemberships: Readonly<{
132
- customerMembershipId: string;
133
- membershipName: string;
134
- }>[];
135
- paymentChoice: import("./useWholeSeriesEligibility").PaymentChoice;
136
- choosePaymentChoice: (choice: import("./useWholeSeriesEligibility").PaymentChoice) => void;
137
- selectedMembershipId: string | null;
138
- chooseMembership: (membershipId: string | null) => void;
139
- formData: import("./types").FormData;
140
- updateFormData: (updater: import("./types").FormData | ((current: import("./types").FormData) => import("./types").FormData)) => void;
141
- portalAuthState: import("./types").PortalAuthState;
142
- scopedRuns: readonly import("../../../..").PublicCourse[];
143
- step: import("./types").EnrollmentStep;
144
- goToStep: (nextStep: import("./types").EnrollmentStep) => void;
145
- selectedRun: import("../../../..").PublicCourse | null;
146
- chooseRun: (run: import("../../../..").PublicCourse) => void;
147
- selectedPricingOptionId: string | null;
148
- choosePricingOption: (pricingOptionId: string | null) => void;
149
- selectedSlidingAmountInput: string;
150
- changeSlidingAmount: (amount: string) => void;
151
- selectedRunPricing: Readonly<{
152
- currency: string;
153
- display: import("../../../../blocks/events/whole-series").WholeSeriesPriceDisplay;
154
- selectableOptions: readonly import("../../../../blocks/events/whole-series").WholeSeriesPricingOption[];
155
- requiresSelection: boolean;
156
- selectedOption: import("../../../../blocks/events/whole-series").WholeSeriesPricingOption | null;
157
- slidingScale: Readonly<{
158
- minAmount: number;
159
- maxAmount: number;
160
- suggestedAmount: number | null;
161
- }> | null;
162
- selectedSlidingAmount: number | null;
163
- selectedPriceAmount: number | null;
164
- selectedRequiresPayment: boolean;
165
- hasPaidSelection: boolean;
166
- hasFreeSelection: boolean;
167
- }> | null;
168
- api: import("../../../api").BlockApiClient;
169
- };
170
- type WizardParts = Readonly<{
171
- api: ReturnType<typeof useBlockApi>;
172
- selection: ReturnType<typeof useWholeSeriesRegistrationSelection>;
173
- portal: ReturnType<typeof useWholeSeriesRegistrationPortal>;
174
- eligibility: ReturnType<typeof useWholeSeriesEligibility>;
175
- actions: ReturnType<typeof useWholeSeriesRegistrationActions>;
176
- discountUi: ReturnType<typeof useDiscountCodeUi>;
177
- waitlistClaim: UseWaitlistClaimResult;
178
- view: ReturnType<typeof deriveWholeSeriesRegistrationViewState>;
179
- bookingMode: BookingMode;
180
- setBookingMode: (mode: BookingMode) => void;
181
- altchaSolution: string | null;
182
- setAltchaSolution: (solution: string | null) => void;
183
- anchorId: 'event-registration' | 'course-registration';
184
- }>;
185
- export {};
@@ -1,14 +0,0 @@
1
- import type { PublicWholeSeriesOffering } from '../../../../blocks/events/whole-series';
2
- import type { EnrollmentStep, FormData } from './types';
3
- import type { useWaitlistClaim } from '../../../shared/useWaitlistClaim';
4
- type WaitlistClaimState = ReturnType<typeof useWaitlistClaim>;
5
- export declare function useWholeSeriesWaitlistSelection(input: Readonly<{
6
- waitlistClaim: WaitlistClaimState;
7
- scopedRuns: readonly PublicWholeSeriesOffering[];
8
- step: EnrollmentStep;
9
- goToStep: (step: EnrollmentStep) => void;
10
- chooseRun: (run: PublicWholeSeriesOffering) => void;
11
- updateFormData: (updater: (current: FormData) => FormData) => void;
12
- reportError: (message: string) => void;
13
- }>): void;
14
- export {};
@@ -1,43 +0,0 @@
1
- /**
2
- * Run Registration Utilities
3
- *
4
- * Formatting and validation helpers for run registration.
5
- */
6
- export { buildCheckoutReturnUrls, formatPrice, validateFormData, } from '../../../shared';
7
- /**
8
- * Format a date string to a localized date.
9
- *
10
- * @param dateString - ISO 8601 date string
11
- * @param locale - Optional locale for formatting (defaults to browser locale)
12
- * @returns Formatted date string (e.g., "Sat, Feb 1, 2026")
13
- */
14
- export declare function formatDate(dateString: string, options?: {
15
- locale?: string;
16
- timeZone?: string | null;
17
- }): string;
18
- /**
19
- * Format a date string to a localized time.
20
- *
21
- * @param dateString - ISO 8601 date string
22
- * @param locale - Optional locale for formatting (defaults to browser locale)
23
- * @returns Formatted time string (e.g., "10:00 AM")
24
- */
25
- export declare function formatTime(dateString: string, options?: {
26
- locale?: string;
27
- timeZone?: string | null;
28
- }): string;
29
- /**
30
- * Format a date and time together.
31
- *
32
- * @param dateString - ISO 8601 date string
33
- * @param locale - Optional locale for formatting
34
- * @returns Formatted date and time string
35
- */
36
- export declare function formatDateTime(dateString: string, options?: {
37
- locale?: string;
38
- timeZone?: string | null;
39
- }): string;
40
- /**
41
- * Anchor ID for the registration block, used for scroll targeting.
42
- */
43
- export declare const WHOLE_SERIES_REGISTRATION_ANCHOR_ID = "event-registration";
@@ -1,325 +0,0 @@
1
- import type { BlockBookingPaymentTerms } from '../../../../blocks/shared/bookingPaymentTerms';
2
- import type { PublicTeamMemberSummary } from '../../../../blocks/shared/teamMembers';
3
- import type { WholeSeriesRegistrationClientProps, EnrollmentResult, FormData } from './types';
4
- import type { BlockBookingConsent } from '../../../../blocks/shared/bookingConsent';
5
- export type WholeSeriesRegistrationPricingOptionInput = Readonly<{
6
- id: string;
7
- name: string;
8
- description: string | null;
9
- priceAmount: number;
10
- isActive: boolean;
11
- sortOrder: number;
12
- capacityLimit: number | null;
13
- saleStartsAt: string | null;
14
- saleEndsAt: string | null;
15
- attendanceScope?: 'in_person' | 'online' | 'both' | null;
16
- }>;
17
- type WholeSeriesRegistrationPricingBase = Readonly<{
18
- currency: string;
19
- paymentTerms: BlockBookingPaymentTerms;
20
- bookingRequirement: 'none' | 'required';
21
- }>;
22
- export type WholeSeriesRegistrationPricingInput = (WholeSeriesRegistrationPricingBase & Readonly<{
23
- pricingStrategy: 'free';
24
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
25
- pricingStrategy: 'single';
26
- amountCents: number;
27
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
28
- pricingStrategy: 'tiered';
29
- options: readonly WholeSeriesRegistrationPricingOptionInput[];
30
- }>) | (WholeSeriesRegistrationPricingBase & Readonly<{
31
- pricingStrategy: 'sliding_scale';
32
- minAmountCents: number;
33
- maxAmountCents: number;
34
- suggestedAmountCents: number | null;
35
- }>);
36
- export type WholeSeriesRegistrationRunInput = Readonly<{
37
- /** Offering identity owning this run in the public run experience. */
38
- eventOfferingId: string;
39
- registrationTarget: Readonly<{
40
- kind: 'event_series_whole_series';
41
- eventSeriesId: string;
42
- }>;
43
- title: string;
44
- slug: string;
45
- description: unknown;
46
- teamMembers?: readonly PublicTeamMemberSummary[];
47
- consent: BlockBookingConsent | null;
48
- registrationOpen: boolean;
49
- pricing: WholeSeriesRegistrationPricingInput;
50
- capacity: number | null;
51
- acceptsMemberships: boolean;
52
- lifecycleStatus: 'active' | 'draft' | 'cancelled';
53
- registeredCount: number;
54
- availableSpots: number | null;
55
- includedDates: readonly Readonly<{
56
- id: string;
57
- startsAt: string;
58
- endsAt: string;
59
- timeZone: string;
60
- capacityOverride?: number | null;
61
- overrides?: Readonly<Record<string, unknown>> | null;
62
- }>[];
63
- venue: Readonly<{
64
- id: string;
65
- name: string;
66
- address: string | null;
67
- }> | null;
68
- }>;
69
- export type WholeSeriesRegistrationRun = Readonly<{
70
- /** Stable dated-offering run identity. */
71
- id: string;
72
- title: string;
73
- slug: string;
74
- description: unknown;
75
- registrationOpen: boolean;
76
- capacity: number | null;
77
- registeredCount: number;
78
- availableSpots: number | null;
79
- includedDates: readonly Readonly<{
80
- id: string;
81
- startsAt: string;
82
- endsAt: string;
83
- timeZone: string;
84
- }>[];
85
- venue: Readonly<{
86
- id: string;
87
- name: string;
88
- address: string | null;
89
- }> | null;
90
- }>;
91
- export type WholeSeriesRegistrationFlowStatus = Readonly<{
92
- tag: 'ready';
93
- }> | Readonly<{
94
- tag: 'submitting';
95
- }> | Readonly<{
96
- tag: 'redirecting';
97
- }> | Readonly<{
98
- tag: 'verifying-payment';
99
- }> | Readonly<{
100
- tag: 'verifying-timeout';
101
- message: string;
102
- }> | Readonly<{
103
- tag: 'payment-failed';
104
- message: string;
105
- }> | Readonly<{
106
- tag: 'success';
107
- result: EnrollmentResult;
108
- }> | Readonly<{
109
- tag: 'waitlist';
110
- result: EnrollmentResult;
111
- }> | Readonly<{
112
- tag: 'error';
113
- message: string;
114
- }>;
115
- export type WholeSeriesRegistrationFlowView = Readonly<{
116
- kind: 'empty';
117
- message: string;
118
- }> | Readonly<{
119
- kind: 'unavailable';
120
- message: string;
121
- }> | Readonly<{
122
- kind: 'form';
123
- }> | Readonly<{
124
- kind: 'verifying';
125
- message: string;
126
- }> | Readonly<{
127
- kind: 'success';
128
- result: EnrollmentResult;
129
- }> | Readonly<{
130
- kind: 'waitlist';
131
- result: EnrollmentResult;
132
- }> | Readonly<{
133
- kind: 'error';
134
- message: string;
135
- }>;
136
- export type WholeSeriesRegistrationFlowStepId = 'select-run' | 'enter-details' | 'select-booking-method' | 'select-payment';
137
- export type WholeSeriesRegistrationFlowStep = Readonly<{
138
- id: WholeSeriesRegistrationFlowStepId;
139
- state: 'complete' | 'active' | 'available' | 'blocked';
140
- index: number;
141
- canEnter: boolean;
142
- }>;
143
- export type WholeSeriesRegistrationFlowActionResult = Readonly<{
144
- ok: true;
145
- outcome: Readonly<{
146
- kind: 'state-updated';
147
- }> | Readonly<{
148
- kind: 'checkout-redirect';
149
- checkoutUrl: string;
150
- }>;
151
- }> | Readonly<{
152
- ok: false;
153
- reason: 'blocked' | 'validation-failed' | 'failed';
154
- message: string;
155
- }>;
156
- export type WholeSeriesRegistrationRunsModel = Readonly<{
157
- items: readonly WholeSeriesRegistrationRun[];
158
- scoped: readonly WholeSeriesRegistrationRun[];
159
- selected: WholeSeriesRegistrationRun | null;
160
- hasPreSelectedRun: boolean;
161
- subject: WholeSeriesRegistrationClientProps['subject'];
162
- }>;
163
- export type WholeSeriesRegistrationPricingModel = Readonly<{
164
- currency: string | null;
165
- display: Readonly<{
166
- kind: 'free';
167
- currency: string;
168
- }> | Readonly<{
169
- kind: 'exact';
170
- amountCents: number;
171
- currency: string;
172
- }> | Readonly<{
173
- kind: 'from';
174
- amountCents: number;
175
- currency: string;
176
- }> | Readonly<{
177
- kind: 'range';
178
- minAmountCents: number;
179
- maxAmountCents: number;
180
- currency: string;
181
- }> | Readonly<{
182
- kind: 'unavailable';
183
- currency: string;
184
- }> | null;
185
- options: readonly Readonly<{
186
- id: string;
187
- name: string;
188
- description: string | null;
189
- amountCents: number;
190
- }>[];
191
- selectedOptionId: string | null;
192
- slidingScale: Readonly<{
193
- minAmountCents: number;
194
- maxAmountCents: number;
195
- suggestedAmountCents: number | null;
196
- }> | null;
197
- selectedAmountCents: number | null;
198
- selectedPriceCents: number | null;
199
- requiresPayment: boolean;
200
- selection: Readonly<{
201
- tag: 'not-required';
202
- }> | Readonly<{
203
- tag: 'required';
204
- }> | Readonly<{
205
- tag: 'valid';
206
- }> | Readonly<{
207
- tag: 'invalid';
208
- message: string;
209
- }> | Readonly<{
210
- tag: 'unavailable';
211
- }>;
212
- }>;
213
- export type WholeSeriesRegistrationPaymentSelection = Readonly<{
214
- method: 'none';
215
- }> | Readonly<{
216
- method: 'card';
217
- }> | Readonly<{
218
- method: 'membership';
219
- membershipId: string | null;
220
- }>;
221
- export type WholeSeriesRegistrationPaymentModel = Readonly<{
222
- required: boolean;
223
- selection: WholeSeriesRegistrationPaymentSelection;
224
- canUseMembership: boolean;
225
- eligibleMemberships: readonly Readonly<{
226
- id: string;
227
- name: string;
228
- }>[];
229
- eligibility: Readonly<{
230
- tag: 'idle';
231
- }> | Readonly<{
232
- tag: 'loading';
233
- }> | Readonly<{
234
- tag: 'loaded';
235
- }> | Readonly<{
236
- tag: 'error';
237
- message: string;
238
- }>;
239
- }>;
240
- export type WholeSeriesRegistrationAvailabilityModel = Readonly<{
241
- enrollmentOpen: boolean;
242
- availableSpots: number | null;
243
- isFull: boolean;
244
- canJoinWaitlist: boolean;
245
- message: string | null;
246
- }>;
247
- export type WholeSeriesRegistrationSpamProtectionModel = Readonly<{
248
- enabled: false;
249
- }> | Readonly<{
250
- enabled: true;
251
- provider: 'altcha';
252
- challenge: Readonly<{
253
- url: string;
254
- auto: 'onfocus';
255
- }>;
256
- solution: string | null;
257
- }>;
258
- export type WholeSeriesRegistrationWaitlistClaimModel = Readonly<{
259
- tag: 'none';
260
- }> | Readonly<{
261
- tag: 'loading';
262
- }> | Readonly<{
263
- tag: 'login-required';
264
- message: string;
265
- }> | Readonly<{
266
- tag: 'ready';
267
- expiresAt: string;
268
- prefill: Readonly<{
269
- email: string;
270
- name: string;
271
- phone: string | null;
272
- notes: string | null;
273
- }>;
274
- }> | Readonly<{
275
- tag: 'error';
276
- message: string;
277
- }>;
278
- export type WholeSeriesRegistrationFlowActions = Readonly<{
279
- selectRun: (runId: string) => void;
280
- updateRegistrant: (values: FormData) => void;
281
- selectPricingOption: (pricingOptionId: string | null) => void;
282
- setSlidingAmountCents: (amount: number | null) => void;
283
- selectPayment: (selection: WholeSeriesRegistrationPaymentSelection) => void;
284
- setDiscountCode: (code: string) => void;
285
- setDiscountOpen: (isOpen: boolean) => void;
286
- setAltchaSolution: (solution: string | null) => void;
287
- continue: () => Promise<WholeSeriesRegistrationFlowActionResult>;
288
- back: () => void;
289
- submit: () => Promise<WholeSeriesRegistrationFlowActionResult>;
290
- retry: () => void;
291
- logout: () => void;
292
- }>;
293
- export type HeadlessWholeSeriesRegistrationFlow = Readonly<{
294
- status: WholeSeriesRegistrationFlowStatus;
295
- view: WholeSeriesRegistrationFlowView;
296
- steps: readonly WholeSeriesRegistrationFlowStep[];
297
- currentStep: WholeSeriesRegistrationFlowStep | null;
298
- runs: WholeSeriesRegistrationRunsModel;
299
- registrant: Readonly<{
300
- values: FormData;
301
- errors: Partial<Record<keyof FormData, string>>;
302
- }>;
303
- pricing: WholeSeriesRegistrationPricingModel;
304
- payment: WholeSeriesRegistrationPaymentModel;
305
- discount: Readonly<{
306
- code: string;
307
- isOpen: boolean;
308
- available: boolean;
309
- manualCodeEntryAllowed: boolean;
310
- loading: boolean;
311
- }>;
312
- availability: WholeSeriesRegistrationAvailabilityModel;
313
- portalAuth: Readonly<{
314
- state: 'checking' | 'authenticated' | 'unauthenticated';
315
- isAuthenticated: boolean;
316
- }>;
317
- waitlistClaim: WholeSeriesRegistrationWaitlistClaimModel;
318
- spamProtection: WholeSeriesRegistrationSpamProtectionModel;
319
- terminal: Readonly<{
320
- result: EnrollmentResult | null;
321
- errorMessage: string;
322
- }>;
323
- actions: WholeSeriesRegistrationFlowActions;
324
- }>;
325
- export {};
@@ -1,27 +0,0 @@
1
- import type { ResolvedWholeSeriesPricingState } from '../../../../blocks/events/whole-series';
2
- import type { EnrollmentStep } from './types';
3
- import type { HeadlessWholeSeriesRegistrationFlow, WholeSeriesRegistrationFlowStatus, WholeSeriesRegistrationFlowStep, WholeSeriesRegistrationFlowView, WholeSeriesRegistrationPaymentSelection, WholeSeriesRegistrationPricingModel } from './whole-series-registration.headless.contract';
4
- export declare function deriveWholeSeriesRegistrationSteps(input: Readonly<{
5
- wizardSteps: readonly EnrollmentStep[];
6
- step: EnrollmentStep;
7
- }>): readonly WholeSeriesRegistrationFlowStep[];
8
- export declare function resolveWholeSeriesRegistrationStatus(wizard: Readonly<{
9
- step: EnrollmentStep;
10
- enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
11
- errorMessage: string;
12
- }>): WholeSeriesRegistrationFlowStatus;
13
- export declare function resolveWholeSeriesRegistrationView(wizard: Readonly<{
14
- step: EnrollmentStep;
15
- scopedRunsCount: number;
16
- selectedRun: Readonly<{
17
- enrollmentOpen: boolean;
18
- }> | null;
19
- enrollmentResult: HeadlessWholeSeriesRegistrationFlow['terminal']['result'];
20
- errorMessage: string;
21
- }>): WholeSeriesRegistrationFlowView;
22
- export declare function resolveWholeSeriesPricingSelection(pricing: ResolvedWholeSeriesPricingState | null): WholeSeriesRegistrationPricingModel['selection'];
23
- export declare function resolveWholeSeriesPaymentSelection(input: Readonly<{
24
- paymentChoice: 'checkout' | 'membership';
25
- selectedMembershipId: string | null;
26
- required: boolean;
27
- }>): WholeSeriesRegistrationPaymentSelection;