@riverbankcms/sdk 0.180.0 → 0.181.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-Chr9pNVW.d.ts} +58 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-kjccgopX.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-BodaiS00.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-Brl6_I2j.d.ts} +1 -2
  9. package/dist/_dts/{index-CB5Csefo.d.ts → index-CJkefwYh.d.ts} +2 -2
  10. package/dist/_dts/{index-DQBGwBPx.d.ts → index-D1WpKwQe.d.ts} +1 -1
  11. package/dist/_dts/{index-DQr358-m.d.ts → index-DG0OvBs0.d.ts} +8 -8
  12. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Diqt0PvG.d.ts} +1 -1
  13. package/dist/_dts/{index-DCcxLa8p.d.ts → index-Dy50xUMK.d.ts} +2 -2
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-CA0izds5.d.ts} +2498 -1108
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-BvGyvblj.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +6 -6
  54. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-CQrsP1x_.d.ts} +3 -3
  55. package/dist/_dts/{types-DpEAnP4F.d.ts → types-CgS3xLk8.d.ts} +2 -2
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-R65DKjPn.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-6LTIbuBA.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-uWfR2kaG.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-CyNIKw6k.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-CwzrjcRw.mjs} +6 -6
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DZ0qMFF4.mjs} +6 -6
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +700 -514
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-C7mygH_f.mjs} +389 -248
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-atfDU82W.mjs} +21 -13
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-CsW8U3ff.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-cBWM392H.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DgySpp6C.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-DJoleFV3.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-EO5o6uPH.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-D_gPw45z.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-NVfZW0kR.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
  93. package/dist/client/client.mjs +87 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-CoOkvw__.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-CRhn9qzS.mjs} +732 -370
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-D7YYKySQ.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-B3KIZNfY.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DM8Zbxbv.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-e2z_Tlgk.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-Ctljy1a3.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-DWIsqQru.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DAkRkwb-.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-RuM86VAv.mjs} +23 -24
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-Dl4mZ-rr.mjs} +167 -49
  119. package/dist/client/portal/client.mjs +13040 -8190
  120. package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
  121. package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-pOAryevt.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CcUpUiud.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-BZJCfqat.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-CiRs3mNb.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-CDNNd8wC.mjs} +247 -203
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-Rx_gEMK8.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-ZSqRK3dD.mjs} +228 -90
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-BQJrSK0K.mjs} +9 -78
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-Dm3lKJKR.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-CC_yQLSA.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-BliJOzEX.mjs} +953 -279
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BhL0uADo.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +5 -5
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-BS32G4V9.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-RL0WfZXD.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +29 -5
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-CQyS8pcq.mjs} +5011 -2074
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlmbvbLN.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-R3PcMmax.mjs} +71 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-CniF9tSu.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BQWsnGT6.mjs} +126 -120
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DxojjtK3.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-CDndhbYO.mjs} +86 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-VyF5nEhL.mjs +1474 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-BKstMBmX.mjs} +5 -4
  181. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-IgNnZaqr.mjs} +3 -3
  182. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-TFjgNG61.mjs} +38 -18
  183. package/dist/server/manifest.mjs +36 -25
  184. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  185. package/dist/server/media-BRmYrnzb.mjs +31 -0
  186. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  187. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
  188. package/dist/server/navigation.mjs +1 -1
  189. package/dist/server/next.mjs +134 -81
  190. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +3 -3
  192. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-B7iULvKe.mjs} +8 -7
  193. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-BytMroxn.mjs} +5 -5
  194. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-Dcs_XTIO.mjs} +243 -323
  195. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
  196. package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
  197. package/dist/server/portal.mjs +3 -3
  198. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  199. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-agaH-vZV.mjs} +1 -1
  200. package/dist/server/prebuild.mjs +1 -1
  201. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-DwpRjqw4.mjs} +4 -3
  202. package/dist/server/{registry-CvhFwbXJ.mjs → registry-DM9dHfDC.mjs} +345 -449
  203. package/dist/server/rendering/components/pageShared.mjs +1 -1
  204. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  205. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  206. package/dist/server/rendering/server.mjs +4 -4
  207. package/dist/server/rendering.mjs +10 -9
  208. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-CinHGf8l.mjs} +2 -2
  209. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BBBhOtdE.mjs} +21 -20
  214. package/dist/server/theme-bridge.mjs +3 -2
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-DG5jX3jH.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-CipbxPHL.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1013 -1840
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -8319,6 +8319,7 @@ type Database = {
8319
8319
  site_id: string;
8320
8320
  starts_at: string | null;
8321
8321
  stripe_coupon_id: string | null;
8322
+ total_use_limit: number | null;
8322
8323
  updated_at: string;
8323
8324
  };
8324
8325
  Insert: {
@@ -8353,6 +8354,7 @@ type Database = {
8353
8354
  site_id: string;
8354
8355
  starts_at?: string | null;
8355
8356
  stripe_coupon_id?: string | null;
8357
+ total_use_limit?: number | null;
8356
8358
  updated_at?: string;
8357
8359
  };
8358
8360
  Update: {
@@ -8387,6 +8389,7 @@ type Database = {
8387
8389
  site_id?: string;
8388
8390
  starts_at?: string | null;
8389
8391
  stripe_coupon_id?: string | null;
8392
+ total_use_limit?: number | null;
8390
8393
  updated_at?: string;
8391
8394
  };
8392
8395
  Relationships: [{
@@ -27613,6 +27616,16 @@ type Database = {
27613
27616
  locked_until: string;
27614
27617
  }[];
27615
27618
  };
27619
+ reopen_event_attendee_after_non_payment_v1: {
27620
+ Args: {
27621
+ p_attendee_id: string;
27622
+ p_site_id: string;
27623
+ };
27624
+ Returns: {
27625
+ attendee_id: string;
27626
+ replayed: boolean;
27627
+ }[];
27628
+ };
27616
27629
  reopen_order_flexible_balance: {
27617
27630
  Args: {
27618
27631
  p_detected_at: string;
@@ -31061,6 +31074,10 @@ type EditLeaseToken = Brand<string, 'EditLeaseToken'>;
31061
31074
  type EditorSessionGeneration = Brand<string, 'EditorSessionGeneration'>;
31062
31075
  type SiteFontId = Brand<string, 'SiteFontId'>;
31063
31076
  //#endregion
31077
+ //#region .cache/declarations/core/src/branded/orders.d.ts
31078
+ type OrderId = Brand<string, 'OrderId'>;
31079
+ type OrderPaymentReceiptId = Brand<string, 'OrderPaymentReceiptId'>;
31080
+ //#endregion
31064
31081
  //#region .cache/declarations/core/src/branded/products.d.ts
31065
31082
  type ProductId = Brand<string, 'ProductId'>;
31066
31083
  //#endregion
@@ -31068,7 +31085,11 @@ type ProductId = Brand<string, 'ProductId'>;
31068
31085
  type MediaAssetId = Brand<string, 'MediaAssetId'>;
31069
31086
  type SiteScopedStoragePath = Brand<string, 'SiteScopedStoragePath'>;
31070
31087
  //#endregion
31088
+ //#region .cache/declarations/core/src/branded/bookings.d.ts
31089
+ type WaitlistEntryId = Brand<string, 'WaitlistEntryId'>;
31090
+ //#endregion
31071
31091
  //#region .cache/declarations/core/src/branded/entitlements.d.ts
31092
+ type EntitlementId = Brand<string, 'EntitlementId'>;
31072
31093
  type PassId = Brand<string, 'PassId'>;
31073
31094
  type CustomerPassId = Brand<string, 'CustomerPassId'>;
31074
31095
  //#endregion
@@ -31083,6 +31104,7 @@ type AppointmentId = Brand<string, 'AppointmentId'>;
31083
31104
  type AppointmentServiceId = Brand<string, 'AppointmentServiceId'>;
31084
31105
  type AppointmentResourceId = Brand<string, 'AppointmentResourceId'>;
31085
31106
  type StaffMemberId = Brand<string, 'StaffMemberId'>;
31107
+ type ClientArrangementId = Brand<string, 'ClientArrangementId'>;
31086
31108
  //#endregion
31087
31109
  //#region .cache/declarations/core/src/branded/content.d.ts
31088
31110
  type ContentEntryId = Brand<string, 'ContentEntryId'>;
@@ -31533,6 +31555,19 @@ type RefundFundingLine = Readonly<{
31533
31555
  destination: RefundDestination;
31534
31556
  remainingCents: number;
31535
31557
  }>;
31558
+ /**
31559
+ * Where money goes back, as a customer is told it: to the card (or other
31560
+ * payment) it came from, as credit on their account with the business, or
31561
+ * split between the two. Money handed back directly counts as going back to
31562
+ * the payment.
31563
+ */
31564
+ type RefundDestinationKind = 'card' | 'site_credit' | 'card_and_site_credit';
31565
+ /**
31566
+ * Who a refund reaches: the customer cancelling, or whoever originally paid.
31567
+ * A booking given to someone else still refunds against the order that paid
31568
+ * for it, so its money goes back to the original buyer.
31569
+ */
31570
+ type RefundRecipient = 'you' | 'original_buyer';
31536
31571
  type CancellationMoney = Readonly<{
31537
31572
  amountCents: number;
31538
31573
  currency: string;
@@ -31545,18 +31580,22 @@ type CancellationKeepReason = Readonly<{
31545
31580
  kind: 'never_refunded';
31546
31581
  }> | Readonly<{
31547
31582
  kind: 'non_refundable_deposit';
31583
+ }> /** Cancelled once it has started (a course's first session, say): the refund window has gone with it. */ | Readonly<{
31584
+ kind: 'already_started';
31548
31585
  }>;
31549
31586
  /** What happens to the client's money or credit if they cancel, as the cancellation plan decided it. */
31550
31587
  type CancellationMoneyOutcome = /** Nothing was paid, or it has all gone back already. */Readonly<{
31551
31588
  kind: 'nothing_to_return';
31552
- }> | Readonly<{
31589
+ }> /** `until` is when cancelling stops giving it back, when the refund policy has such a point. */ | Readonly<{
31553
31590
  kind: 'refund';
31554
31591
  money: CancellationMoney;
31555
- to: 'card' | 'site_credit' | 'card_and_site_credit';
31592
+ to: RefundDestinationKind;
31556
31593
  keptDeposit?: CancellationMoney;
31594
+ until?: string;
31557
31595
  }> | Readonly<{
31558
31596
  kind: 'credit_back';
31559
31597
  credits: number;
31598
+ until?: string;
31560
31599
  }> | Readonly<{
31561
31600
  kind: 'keep_money';
31562
31601
  money: CancellationMoney;
@@ -31569,6 +31608,23 @@ type CancellationMoneyOutcome = /** Nothing was paid, or it has all gone back al
31569
31608
  kind: 'contact_business';
31570
31609
  money: CancellationMoney;
31571
31610
  }>;
31611
+ /**
31612
+ * What a cancellation did with the customer's money, decided by the server
31613
+ * once it has happened. `to` is read from where the refund's money actually
31614
+ * went, and `amount` is null when the refund didn't report one.
31615
+ */
31616
+ type CancelledMoney = /** Money is going back: to the card it was paid with, to credit with the business, or split between them. */Readonly<{
31617
+ kind: 'refunded';
31618
+ amount: CancellationMoney | null;
31619
+ to: RefundDestinationKind;
31620
+ recipient: RefundRecipient;
31621
+ }> /** A pass or package session was given back. */ | Readonly<{
31622
+ kind: 'credit_restored';
31623
+ }> /** The booking is cancelled but the refund didn't go through; the business has to sort it out. */ | Readonly<{
31624
+ kind: 'refund_failed';
31625
+ }> | Readonly<{
31626
+ kind: 'none';
31627
+ }>;
31572
31628
  type ScheduleBookingChoice = 'move' | 'cancel';
31573
31629
  /** Closed refusal and reconciliation reasons shared by stored reviews and receipts. */
31574
31630
  declare const scheduleBookingReasonCodes: readonly ['closed', 'switched_off', 'course_booking', 'checked_in', 'cancelled', 'waitlisted', 'past', 'date_missing', 'payment_pending', 'not_owner', 'full', 'not_enough_room', 'needs_ticket_choice', 'ticket_not_usable', 'tickets_collide', 'pass_not_accepted', 'already_booked', 'not_bookable', 'not_found', 'source_changed', 'source_unavailable', 'target_full', 'target_not_bookable', 'target_changed', 'already_booked_on_target', 'has_room', 'no_replacement_in_week', 'changed_after_review', 'added_after_review', 'cancellation_chosen', 'move_refused'];
@@ -33698,7 +33754,7 @@ type JournalRevisionReceipt<Revision> = Readonly<{
33698
33754
  type JournalCommitReceipt<Target, Value, Revision> = Readonly<Target> & JournalInverse<Value> & JournalRevisionReceipt<Revision>;
33699
33755
  //#endregion
33700
33756
  //#region .cache/declarations/core/src/bookingActionAvailability.d.ts
33701
- type BookingActionReason = 'not_wired' | 'course_booking' | 'storage_convergence' | 'switched_off' | 'checked_in' | 'cancelled' | 'waitlisted' | 'past' | 'date_missing' | 'payment_pending' | 'not_owner' | 'not_authorized' | 'pass_or_membership_backed' | 'already_cancelled' | 'already_started' | 'payment_in_progress' | 'invalid_start_time' | 'not_cancelled' | 'completed' | 'hand_added' | 'self_serve_refund' | 'no_refund_link' | 'check_in_unavailable' | 'refunded' | 'refund_pending' | 'order_cancelled' | 'order_cancelling' | 'already_booked' | 'has_room' | 'no_ticket_choice';
33757
+ type BookingActionReason = 'not_wired' | 'course_booking' | 'storage_convergence' | 'switched_off' | 'checked_in' | 'cancelled' | 'waitlisted' | 'past' | 'date_missing' | 'payment_pending' | 'not_owner' | 'not_authorized' | 'pass_or_membership_backed' | 'already_cancelled' | 'already_started' | 'payment_in_progress' | 'invalid_start_time' | 'not_cancelled' | 'completed' | 'hand_added' | 'self_serve_refund' | 'no_refund_link' | 'check_in_unavailable' | 'refunded' | 'refund_pending' | 'order_cancelled' | 'order_cancelling' | 'already_booked' | 'has_room' | 'no_ticket_choice' | 'single_place';
33702
33758
  type BookingActionAvailability<Reason extends BookingActionReason = BookingActionReason> = Readonly<{
33703
33759
  kind: 'available';
33704
33760
  until: string | null;
@@ -33710,6 +33766,25 @@ type BookingActionAvailability<Reason extends BookingActionReason = BookingActio
33710
33766
  reason: Reason;
33711
33767
  }>;
33712
33768
  //#endregion
33769
+ //#region .cache/declarations/core/src/booking-context-ref.d.ts
33770
+ /**
33771
+ * Identifies one booking: an appointment, a place on a dated event (its
33772
+ * attendee row) or a course registration. Requirements use it for routing,
33773
+ * review and reminder lookup, and the customer portal addresses bookings by
33774
+ * it. Participant-specific task identity lives separately on
33775
+ * `BookingRequirementSubject`.
33776
+ */
33777
+ type BookingContextRef = Readonly<{
33778
+ tag: 'appointment';
33779
+ appointmentId: AppointmentId;
33780
+ }> | Readonly<{
33781
+ tag: 'event_attendee';
33782
+ attendeeId: AttendeeId;
33783
+ }> | Readonly<{
33784
+ tag: 'event_series_registration';
33785
+ registrationId: EventSeriesRegistrationId;
33786
+ }>;
33787
+ //#endregion
33713
33788
  //#region .cache/declarations/core/src/offline-payment-method.d.ts
33714
33789
  /** How money was received outside the online card checkout. */
33715
33790
  declare const OFFLINE_PAYMENT_METHODS: readonly ['cash', 'bank_transfer', 'card_machine', 'other'];
@@ -39711,6 +39786,77 @@ type SiteOnlinePayments = Readonly<{
39711
39786
  organiserContact?: SiteOrganiserContact;
39712
39787
  }>;
39713
39788
  //#endregion
39789
+ //#region .cache/declarations/site-contracts/src/siteData/eventSelectionPayment.d.ts
39790
+ /**
39791
+ * How a selection of dates or runs can be paid, as the server's selection
39792
+ * payment owner decided it. The block formats this and offers nothing else, so
39793
+ * an option the page offers is one checkout accepts.
39794
+ */
39795
+ /** How a way to pay collects its money. Several bookings only ever pay in full or directly. */
39796
+ type EventSelectionCollectionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
39797
+ /** One booking's own share when several are paid directly: each owes its own amount. */
39798
+ type EventSelectionBookingAmount = Readonly<{
39799
+ itemId: string;
39800
+ amountCents: number;
39801
+ }>;
39802
+ type EventSelectionCollection = Readonly<{
39803
+ kind: EventSelectionCollectionKind; /** What this way to pay charges, before any code. */
39804
+ amountCents: number;
39805
+ currency: string;
39806
+ /**
39807
+ * Each booking's own amount when several are paid this way and each owes its
39808
+ * own price. Absent for one booking, or when a combination price makes the
39809
+ * order's total something other than their prices added up.
39810
+ */
39811
+ bookings?: readonly EventSelectionBookingAmount[];
39812
+ }>;
39813
+ type EventSelectionPaymentCollect = Readonly<{
39814
+ kind: 'nothing';
39815
+ }> | Readonly<{
39816
+ kind: 'money';
39817
+ collections: readonly [EventSelectionCollection, ...EventSelectionCollection[]];
39818
+ }>;
39819
+ /** One way to fund the selection (money, or a pass or membership) and how its money is collected. */
39820
+ type EventSelectionPaymentOption = Readonly<{
39821
+ funding: EventSelectionFundingPick;
39822
+ collect: EventSelectionPaymentCollect;
39823
+ }>;
39824
+ type EventSelectionPayment = Readonly<{
39825
+ kind: 'bookable';
39826
+ options: readonly [EventSelectionPaymentOption, ...EventSelectionPaymentOption[]];
39827
+ }> /** These items' ways to pay each cover one booking. A page shouldn't offer this selection; it's the stale-page answer. */ | Readonly<{
39828
+ kind: 'bookSeparately';
39829
+ }> /** Money is due and the site can't take it online. */ | Readonly<{
39830
+ kind: 'cannotBookOnline';
39831
+ organiserContact: SiteOrganiserContact | null;
39832
+ }> /** One item with no way to pay set up. */ | Readonly<{
39833
+ kind: 'noPaymentOption';
39834
+ }>;
39835
+ /** Each run of one course and the places chosen on it. */
39836
+ type EventRunsSelectionRun = Readonly<{
39837
+ eventSeriesId: string;
39838
+ selections: readonly Readonly<{
39839
+ pricingOptionId: string | null;
39840
+ quantity: number;
39841
+ }>[];
39842
+ selectedSlidingAmount?: number;
39843
+ }>;
39844
+ /** How several runs of one course (or one run) can be paid for. */
39845
+ type EventRunsSelectionPaymentRequest = Readonly<{
39846
+ subject: Readonly<{
39847
+ kind: 'runs';
39848
+ runs: readonly [EventRunsSelectionRun, ...EventRunsSelectionRun[]];
39849
+ attendanceMode?: 'in_person' | 'online';
39850
+ }>;
39851
+ }>;
39852
+ type EventRunsSelectionPaymentResponse = Readonly<{
39853
+ subject: Readonly<{
39854
+ kind: 'runs';
39855
+ eventSeriesIds: readonly [string, ...string[]];
39856
+ }>;
39857
+ payment: EventSelectionPayment;
39858
+ }>;
39859
+ //#endregion
39714
39860
  //#region .cache/declarations/commerce/src/purchase/checkoutPresentation.d.ts
39715
39861
  /** Browser-safe Checkout contracts shared by payment owners. */
39716
39862
  type CheckoutPresentationFields = {
@@ -40106,7 +40252,8 @@ type EventSelectionFundingResponse = Readonly<{
40106
40252
  kind: 'dates';
40107
40253
  occurrenceIds: readonly [string, ...string[]];
40108
40254
  }>;
40109
- funding: EventSelectionFunding;
40255
+ funding: EventSelectionFunding; /** How each way to fund the dates collects its money. Older servers don't send it. */
40256
+ payment?: EventSelectionPayment;
40110
40257
  }>;
40111
40258
  type EventRegistrationOrganiserContact = SiteOrganiserContact;
40112
40259
  type EventRegistrationOptionsResponse = Readonly<{
@@ -40240,6 +40387,812 @@ type EventRegistrationMembershipProduct = Readonly<{
40240
40387
  interval: 'month' | 'year';
40241
40388
  }>;
40242
40389
  //#endregion
40390
+ //#region .cache/declarations/site-contracts/src/siteData/portalAccounts.d.ts
40391
+ /**
40392
+ * Customer profile data from /api/portal/me
40393
+ */
40394
+ interface CustomerProfile {
40395
+ id: string;
40396
+ email: string;
40397
+ name: string;
40398
+ phone: string | null;
40399
+ }
40400
+ /**
40401
+ * Enabled modules for the site from /api/portal/me
40402
+ */
40403
+ interface EnabledModules {
40404
+ appointments: boolean;
40405
+ events: boolean;
40406
+ }
40407
+ interface EventTicketBreakdownLine {
40408
+ pricingOptionId: string | null;
40409
+ label: string;
40410
+ quantity: number;
40411
+ }
40412
+ /**
40413
+ * Customer event registration data from /api/portal/events
40414
+ * Note: status uses British spelling 'cancelled'
40415
+ */
40416
+ /** How to join an upcoming online booking, for the client who holds it. */
40417
+ interface PortalJoiningDetails {
40418
+ joinUrl: string;
40419
+ accessCode: string | null;
40420
+ notes: string | null;
40421
+ }
40422
+ /** Guest details for event registration. */
40423
+ interface EventGuest {
40424
+ id: string;
40425
+ name: string;
40426
+ phone: string | null;
40427
+ guestIndex: number;
40428
+ }
40429
+ //#endregion
40430
+ //#region .cache/declarations/site-contracts/src/siteData/portalCredits.d.ts
40431
+ /**
40432
+ * Customer pass data from /api/portal/passes
40433
+ */
40434
+ interface CustomerPassCreditHistoryEntry {
40435
+ id: string;
40436
+ kind: 'redemption' | 'restoration';
40437
+ credits: number;
40438
+ subjectKind: 'event_attendee' | 'appointment';
40439
+ subjectId: string;
40440
+ occurredAt: string;
40441
+ bookingStartsAt: string | null;
40442
+ actorKind: 'customer' | 'admin' | 'system' | null;
40443
+ reason: string | null;
40444
+ /**
40445
+ * On a redemption: what became of that use. `forfeited` is a booking cancelled
40446
+ * without the credit coming back (late, or under a no-refunds policy). Absent
40447
+ * on restorations, and from older servers.
40448
+ */
40449
+ useState?: 'consumed' | 'restored' | 'forfeited';
40450
+ }
40451
+ interface CustomerPass {
40452
+ id: string;
40453
+ heldWithStaffMemberId: string | null;
40454
+ passId: string;
40455
+ productUseCase: 'event_pass' | 'appointment_package';
40456
+ passName: string;
40457
+ passDescription: string | null;
40458
+ creditsHeld: number;
40459
+ creditsRemaining: number;
40460
+ creditsTotal: number;
40461
+ purchasedAt: string;
40462
+ expiresAt: string | null;
40463
+ status: 'active' | 'exhausted' | 'expired' | 'refunded';
40464
+ creditHistory: readonly CustomerPassCreditHistoryEntry[];
40465
+ }
40466
+ /**
40467
+ * Customer membership data from /api/portal/memberships
40468
+ */
40469
+ interface CustomerMembership {
40470
+ id: string;
40471
+ membershipId: string;
40472
+ membershipName: string;
40473
+ membershipDescription: string | null;
40474
+ billingInterval: 'month' | 'year';
40475
+ status: 'active' | 'paused' | 'canceled' | 'past_due' | 'trialing';
40476
+ currentPeriodStart: string | null;
40477
+ currentPeriodEnd: string | null;
40478
+ cancelAtPeriodEnd: boolean;
40479
+ pausedAt: string | null;
40480
+ canceledAt: string | null;
40481
+ /**
40482
+ * It will renew: a subscription that isn't set to end. False for one the
40483
+ * business added by hand (it runs for a set period) and for one set to end.
40484
+ * The dashboard's `renews` means the same.
40485
+ */
40486
+ renews: boolean;
40487
+ /** Whether the customer can cancel it from the portal (only a renewing one not already ending). */
40488
+ canCancel: boolean;
40489
+ /** Whether the customer can undo a scheduled end while the period runs. */
40490
+ canResume: boolean;
40491
+ /**
40492
+ * When it stopped covering classes (exclusive), once it has ended: when it
40493
+ * actually ended, which can be before the period it was billed for. Null
40494
+ * while it's live.
40495
+ */
40496
+ endedAt: string | null;
40497
+ }
40498
+ /**
40499
+ * Site credit summary data from /api/portal/credit
40500
+ */
40501
+ interface PortalCreditSummary {
40502
+ currency: string;
40503
+ balanceCents: number;
40504
+ reservedCents: number;
40505
+ availableCents: number;
40506
+ }
40507
+ interface PortalCreditTransaction {
40508
+ id: string;
40509
+ amountCents: number;
40510
+ currency: string;
40511
+ type: string;
40512
+ createdAt: string;
40513
+ reason: string | null;
40514
+ }
40515
+ interface PortalCredit {
40516
+ summary: PortalCreditSummary;
40517
+ transactions: PortalCreditTransaction[];
40518
+ }
40519
+ //#endregion
40520
+ //#region .cache/declarations/site-contracts/src/siteData/portalMoney.d.ts
40521
+ /**
40522
+ * Money facts the portal's pages share, decided once by the money owner and
40523
+ * served as they are: amounts, what an order asks of the customer now, what
40524
+ * an order came to line by line, and how an order is named.
40525
+ */
40526
+ type PortalMoney = Readonly<{
40527
+ amountCents: number;
40528
+ currency: string;
40529
+ }>;
40530
+ /** When something is due: no date, a date still ahead, or one that's passed. */
40531
+ type PortalDeadline = Readonly<{
40532
+ kind: 'none';
40533
+ }> | Readonly<{
40534
+ kind: 'due';
40535
+ at: string;
40536
+ }> | Readonly<{
40537
+ kind: 'overdue';
40538
+ at: string;
40539
+ }>;
40540
+ /**
40541
+ * How what's asked can be paid: `available` with what the button pays (and,
40542
+ * for a balance paid in parts, the range of other amounts the business
40543
+ * allows), `in_progress` when a payment's already on its way, `not_offered`
40544
+ * when it can't be paid online (they get in touch instead), and `unchecked`
40545
+ * when we couldn't tell whether the business takes card payments just now.
40546
+ */
40547
+ type PortalPayOnline = Readonly<{
40548
+ kind: 'available';
40549
+ amount: PortalMoney;
40550
+ custom: Readonly<{
40551
+ min: PortalMoney;
40552
+ max: PortalMoney;
40553
+ }> | null;
40554
+ }> | Readonly<{
40555
+ kind: 'in_progress';
40556
+ }> | Readonly<{
40557
+ kind: 'not_offered';
40558
+ }> | Readonly<{
40559
+ kind: 'unchecked';
40560
+ }>;
40561
+ /**
40562
+ * What an order asks of the customer now, decided by the money owner from the
40563
+ * same standing the order's money line is worded from. Every page reads this
40564
+ * and decides nothing more:
40565
+ *
40566
+ * - `checking`: the business is still working out what's left to pay.
40567
+ * - `plan_running`: an instalment plan collecting by itself. Nothing is asked;
40568
+ * `next` is the next payment it'll take (`passed` once its date has gone by
40569
+ * and it hasn't been taken yet), `rest` everything still to come, and
40570
+ * `online` whether they could pay the rest now instead.
40571
+ * - `pay`: money to pay, by `deadline` when the terms set one.
40572
+ * - `instalment_failed`: one of a plan's payments failed, so the rest is
40573
+ * theirs to pay.
40574
+ * - `finish_paying`: they started paying and left the checkout open, so
40575
+ * Continue to payment takes them back into it. `amount` is what that
40576
+ * checkout takes: what's left on the order, or a plan's first payment when
40577
+ * `firstPayment`.
40578
+ * - `payment_underway`: a payment has started that isn't theirs to finish, so
40579
+ * nothing's asked while it lands; `amount` is what's left on the order.
40580
+ */
40581
+ type PortalPaymentToDo = Readonly<{
40582
+ kind: 'nothing';
40583
+ }> | Readonly<{
40584
+ kind: 'checking';
40585
+ }> | Readonly<{
40586
+ kind: 'plan_running';
40587
+ rest: PortalMoney;
40588
+ next: Readonly<{
40589
+ amount: PortalMoney;
40590
+ dueAt: string;
40591
+ passed: boolean;
40592
+ }> | null;
40593
+ online: PortalPayOnline;
40594
+ }> | Readonly<{
40595
+ kind: 'pay';
40596
+ amount: PortalMoney;
40597
+ deadline: PortalDeadline;
40598
+ online: PortalPayOnline;
40599
+ }> | Readonly<{
40600
+ kind: 'instalment_failed';
40601
+ amount: PortalMoney;
40602
+ online: PortalPayOnline;
40603
+ }> | Readonly<{
40604
+ kind: 'finish_paying';
40605
+ amount: PortalMoney;
40606
+ deadline: PortalDeadline;
40607
+ firstPayment: boolean;
40608
+ }> | Readonly<{
40609
+ kind: 'payment_underway';
40610
+ amount: PortalMoney;
40611
+ }>;
40612
+ /** The to-dos about money still owed: what a pay task carries. */
40613
+ type PortalPaymentDue = Extract<PortalPaymentToDo, {
40614
+ kind: 'pay' | 'instalment_failed' | 'finish_paying' | 'payment_underway';
40615
+ }>;
40616
+ /** An order as the customer would recognise it: its number, its first item, and how many more there are. */
40617
+ type PortalOrderName = Readonly<{
40618
+ orderId: string;
40619
+ orderNumber: string;
40620
+ firstItem: string | null;
40621
+ otherItems: number;
40622
+ }>;
40623
+ /** One thing on an order, at the price it was sold at (`amount` is `unitPrice` × `quantity`). */
40624
+ type PortalOrderLine = Readonly<{
40625
+ key: string;
40626
+ label: string;
40627
+ quantity: number;
40628
+ unitPrice: PortalMoney;
40629
+ amount: PortalMoney; /** How much of it has been sent back; null when none. */
40630
+ refunded: PortalMoney | null;
40631
+ }>;
40632
+ /**
40633
+ * A row between the lines and the total: a discount taken off, postage or tax
40634
+ * added on top, or a `price_change` the lines don't explain (an item repriced
40635
+ * after booking, say). `effect` says which way it goes; `amount` is never negative.
40636
+ */
40637
+ type PortalOrderAdjustment = Readonly<{
40638
+ kind: 'discount' | 'postage' | 'tax' | 'price_change';
40639
+ amount: PortalMoney;
40640
+ effect: 'adds' | 'takes_off';
40641
+ }>;
40642
+ /**
40643
+ * What an order came to, from the money owner, so the rows always add up:
40644
+ * the lines, then each adjustment, come to `total`. Tax already inside the
40645
+ * prices is `taxIncluded`, never a row. `credit` is how much of the total was
40646
+ * paid with site credit (the rest is money paid), never a row that reduces it.
40647
+ */
40648
+ type PortalOrderBreakdown = Readonly<{
40649
+ lines: readonly PortalOrderLine[];
40650
+ adjustments: readonly PortalOrderAdjustment[];
40651
+ total: PortalMoney;
40652
+ taxIncluded: PortalMoney | null;
40653
+ credit: PortalMoney | null;
40654
+ }>;
40655
+ //#endregion
40656
+ //#region .cache/declarations/site-contracts/src/siteData/portalOrders.d.ts
40657
+ type CustomerOrderFilter = 'all' | 'products' | 'bookings' | 'passes' | 'memberships';
40658
+ interface CustomerOrderItem {
40659
+ id: string;
40660
+ kind: 'product' | 'event_ticket' | 'event_series_registration' | 'pass' | 'membership' | 'appointment';
40661
+ displayName: string;
40662
+ quantity: number;
40663
+ unitPriceCents: number;
40664
+ totalCents: number;
40665
+ refundedCents: number;
40666
+ refundableRemainingCents: number;
40667
+ }
40668
+ interface CustomerOrderRefund {
40669
+ id: string;
40670
+ status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
40671
+ amountCents: number;
40672
+ createdAt: string;
40673
+ }
40674
+ type CustomerOrderInstalmentPlan = OrderInstalmentSummary;
40675
+ type CustomerOrderPaymentState = {
40676
+ kind: 'not_required';
40677
+ reason: 'free' | 'waived' | 'pass' | 'membership';
40678
+ collectedCents: number;
40679
+ refundedCents: number;
40680
+ outstandingCents: number;
40681
+ } | {
40682
+ kind: 'unpaid' | 'partially_paid' | 'collection_failed';
40683
+ collectedCents: number;
40684
+ refundedCents: number;
40685
+ outstandingCents: number;
40686
+ } | {
40687
+ kind: 'waived';
40688
+ collectedCents: number;
40689
+ waivedCents: number;
40690
+ refundedCents: number;
40691
+ outstandingCents: 0;
40692
+ } | {
40693
+ kind: 'paid';
40694
+ collectedCents: number;
40695
+ refundedCents: number;
40696
+ outstandingCents: 0;
40697
+ settledVia: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual';
40698
+ } | {
40699
+ kind: 'refunded';
40700
+ collectedCents: number;
40701
+ refundedCents: number;
40702
+ outstandingCents: number;
40703
+ } | {
40704
+ kind: 'cancelled';
40705
+ collectedCents: number;
40706
+ refundedCents: number;
40707
+ outstandingCents: number;
40708
+ };
40709
+ /** Server-decided wording for this order, already in the customer's terms. */
40710
+ interface CustomerOrderPaymentLabels {
40711
+ /** What happened to the booking; null when it's simply booked. */
40712
+ booking: string | null;
40713
+ /** Where the money stands. */
40714
+ money: string;
40715
+ tone: 'success' | 'attention' | 'problem' | 'neutral';
40716
+ }
40717
+ interface CustomerOrderFlexibleBalance {
40718
+ paymentEligibility?: FlexibleBalancePaymentEligibility;
40719
+ status: BookingFlexibleBalanceContractStatus;
40720
+ dueAt: string;
40721
+ remainingBalanceCents: number;
40722
+ upfrontAmountCents: number;
40723
+ }
40724
+ interface CustomerOrder {
40725
+ id: string;
40726
+ siteId: string;
40727
+ customerId: string;
40728
+ orderNumber: string;
40729
+ createdAt: string;
40730
+ status: 'pending' | 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'cancelled';
40731
+ paymentMethod: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual' | 'waived';
40732
+ currency: string;
40733
+ subtotalCents: number;
40734
+ discountCents: number;
40735
+ creditCents: number;
40736
+ taxCents: number;
40737
+ shippingCents: number;
40738
+ paidCents: number;
40739
+ refundedCents: number;
40740
+ grandTotalCents: number;
40741
+ balanceDueCents: number;
40742
+ paymentState: CustomerOrderPaymentState;
40743
+ paymentLabels: CustomerOrderPaymentLabels;
40744
+ /** What the order asks of the customer now, decided by the money owner next to `paymentLabels`. */
40745
+ toDo: PortalPaymentToDo;
40746
+ instalmentPlan: CustomerOrderInstalmentPlan | null;
40747
+ flexibleBalance: CustomerOrderFlexibleBalance | null;
40748
+ filters: CustomerOrderFilter[];
40749
+ items: CustomerOrderItem[];
40750
+ refunds: CustomerOrderRefund[];
40751
+ }
40752
+ //#endregion
40753
+ //#region .cache/declarations/site-contracts/src/siteData/portalRegularSessions.d.ts
40754
+ /** A client's regular sessions, from GET /api/portal/appointments/regular-sessions. */
40755
+ type PortalRegularSessionWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
40756
+ type PortalRegularSessionCadence = Readonly<{
40757
+ kind: 'weekly';
40758
+ everyWeeks: 1 | 2;
40759
+ weekday: PortalRegularSessionWeekday;
40760
+ }> | Readonly<{
40761
+ kind: 'monthly';
40762
+ weekday: PortalRegularSessionWeekday;
40763
+ nth: 1 | 2 | 3 | 4 | 'last';
40764
+ }>;
40765
+ type PortalRegularSessionDate = Readonly<{
40766
+ state: 'booked';
40767
+ occurrence: string;
40768
+ appointmentId: AppointmentId;
40769
+ startAt: string;
40770
+ endAt: string;
40771
+ }> | Readonly<{
40772
+ state: 'held' | 'open' | 'trainer_away';
40773
+ occurrence: string;
40774
+ startAt: string;
40775
+ endAt: string;
40776
+ }> | Readonly<{
40777
+ state: 'away';
40778
+ occurrence: string;
40779
+ }>;
40780
+ type PortalRegularSessionPayment = Readonly<{
40781
+ kind: 'package';
40782
+ name: string | null;
40783
+ sessionsLeft: number;
40784
+ }> | Readonly<{
40785
+ kind: 'owed' | 'payment_link';
40786
+ }>;
40787
+ type PortalRegularSession = Readonly<{
40788
+ /** The arrangement's own id, stable across reloads and schedule changes. */arrangementId: ClientArrangementId;
40789
+ timezone: string;
40790
+ schedule: Readonly<{
40791
+ effectiveFrom: string;
40792
+ cadence: PortalRegularSessionCadence;
40793
+ localStart: string;
40794
+ }>;
40795
+ trainerName: string | null;
40796
+ serviceName: string | null;
40797
+ holdsTime: boolean;
40798
+ payment: PortalRegularSessionPayment;
40799
+ dates: readonly PortalRegularSessionDate[];
40800
+ }>;
40801
+ type PortalRegularSessionsResponse = Readonly<{
40802
+ arrangements: readonly PortalRegularSession[];
40803
+ }>;
40804
+ //#endregion
40805
+ //#region .cache/declarations/site-contracts/src/siteData/portalWaitlists.d.ts
40806
+ type CustomerPortalWaitlistSubject = {
40807
+ kind: 'occurrence';
40808
+ occurrenceId: string;
40809
+ eventSeriesId: string;
40810
+ startsAt: string;
40811
+ endsAt: string;
40812
+ timeZone: string;
40813
+ isOnline: boolean;
40814
+ } | {
40815
+ kind: 'wholeSeries';
40816
+ timeZone: string;
40817
+ isOnline: boolean;
40818
+ eventSeriesId: string;
40819
+ scheduleSummary: string | null;
40820
+ };
40821
+ /**
40822
+ * What taking an offered place costs, decided by the same pricing the booking
40823
+ * uses, for every place the entry asked for. `chosen_at_booking` when there's a
40824
+ * choice still to make (ticket types, a sliding scale), so no one price applies;
40825
+ * `not_known` when the price couldn't be worked out just now.
40826
+ *
40827
+ * An extensible point: a kind a newer server adds decodes to `not_known`, so
40828
+ * a pinned client still lists the offer, without a price.
40829
+ */
40830
+ type PortalWaitlistOfferPrice = Readonly<{
40831
+ kind: 'total';
40832
+ amount: Readonly<{
40833
+ amountCents: number;
40834
+ currency: string;
40835
+ }>;
40836
+ }> | Readonly<{
40837
+ kind: 'free';
40838
+ }> | Readonly<{
40839
+ kind: 'chosen_at_booking';
40840
+ }> | Readonly<{
40841
+ kind: 'not_known';
40842
+ }>;
40843
+ type CustomerPortalWaitlistEntryBase = {
40844
+ id: string;
40845
+ subject: CustomerPortalWaitlistSubject;
40846
+ eventTitle: string;
40847
+ eventPath: string | null;
40848
+ requestedPlaces: number;
40849
+ joinedAt: string;
40850
+ };
40851
+ type CustomerPortalWaitlistEntry = (CustomerPortalWaitlistEntryBase & {
40852
+ status: 'waiting';
40853
+ queuePosition: number | null;
40854
+ canLeave: true;
40855
+ }) | (CustomerPortalWaitlistEntryBase & {
40856
+ status: 'placeAvailable';
40857
+ claimExpiresAt: string;
40858
+ claimPath: string | null;
40859
+ offerPrice: PortalWaitlistOfferPrice;
40860
+ canLeave: true;
40861
+ }) | (CustomerPortalWaitlistEntryBase & {
40862
+ status: 'offerExpired';
40863
+ claimExpiredAt: string;
40864
+ canLeave: false;
40865
+ });
40866
+ //#endregion
40867
+ //#region .cache/declarations/site-contracts/src/siteData/portalBookings.d.ts
40868
+ type RefOfTag<T extends BookingContextRef['tag']> = Extract<BookingContextRef, {
40869
+ tag: T;
40870
+ }>;
40871
+ /** A booking's place in the portal's URLs: its kind word and its id. */
40872
+ /** When it happens, in the zone it happens in. `endsAt` is null when nobody set an end. */
40873
+ type PortalBookingWhen = Readonly<{
40874
+ startsAt: string;
40875
+ endsAt: string | null;
40876
+ timeZone: string;
40877
+ }>;
40878
+ /**
40879
+ * A venue's address as this booking may see it. The server decides which
40880
+ * location a booking sees (the arrival address once it's confirmed, the
40881
+ * public one before), so the portal never chooses what to disclose.
40882
+ */
40883
+ type PortalVenueAddress =
40884
+ /**
40885
+ * The address and how to find the door, kept apart. `directions` is a maps
40886
+ * link the server built from the arrival pin, or from the address without one.
40887
+ */
40888
+ Readonly<{
40889
+ kind: 'shown';
40890
+ address: string | null;
40891
+ doorNote: string | null;
40892
+ directions: string | null;
40893
+ }> /** The business shares the address once the booking is confirmed; `area` is the public hint. */ | Readonly<{
40894
+ kind: 'after_booking';
40895
+ area: string | null;
40896
+ }> | Readonly<{
40897
+ kind: 'not_given';
40898
+ }>;
40899
+ type PortalBookingVenue = Readonly<{
40900
+ name: string | null;
40901
+ address: PortalVenueAddress;
40902
+ }>;
40903
+ type PortalBookingWhere = Readonly<{
40904
+ kind: 'venue';
40905
+ venue: PortalBookingVenue;
40906
+ }> /** `joining` is null until the joining details are shown (close to the start, to the person booked). */ | Readonly<{
40907
+ kind: 'online';
40908
+ joining: PortalJoiningDetails | null;
40909
+ }> /** In person at the venue, or online: the customer chooses on the day. */ | Readonly<{
40910
+ kind: 'hybrid';
40911
+ venue: PortalBookingVenue;
40912
+ joining: PortalJoiningDetails | null;
40913
+ }> | Readonly<{
40914
+ kind: 'not_given';
40915
+ }>;
40916
+ /** Where the booking stands, in the customer's terms. Whether it's over is `timing`. */
40917
+ type PortalBookingStanding = Readonly<{
40918
+ kind: 'booked';
40919
+ }> /** Started booking, but the payment didn't finish, so the place isn't confirmed. */ | Readonly<{
40920
+ kind: 'awaiting_payment';
40921
+ }> /** An appointment request the business hasn't answered yet. */ | Readonly<{
40922
+ kind: 'requested';
40923
+ }> | Readonly<{
40924
+ kind: 'waitlisted';
40925
+ position: number | null;
40926
+ }> | Readonly<{
40927
+ kind: 'cancelled';
40928
+ }> /** An appointment request that didn't go ahead; nothing was booked. */ | Readonly<{
40929
+ kind: 'request_not_accepted';
40930
+ outcome: Exclude<AppointmentRequestOutcome, 'approved'>;
40931
+ }> | Readonly<{
40932
+ kind: 'missed';
40933
+ }> /** They gave the booking to someone else; `detail.transfer` says who and when. */ | Readonly<{
40934
+ kind: 'given_away';
40935
+ }>;
40936
+ /**
40937
+ * Whether the booking is still to come, decided once on the server: over once
40938
+ * its last moment has gone (a course once every session has). An undated
40939
+ * booking is never over.
40940
+ */
40941
+ type PortalBookingTiming = 'upcoming' | 'over';
40942
+ /** Someone booked alongside the customer. The customer themselves isn't listed. */
40943
+ type PortalBookingGuest = Readonly<{
40944
+ /** Their guest number on the booking, from 1 (the customer themselves isn't counted). */place: number;
40945
+ name: string | null;
40946
+ email: string | null;
40947
+ phone: string | null;
40948
+ }>;
40949
+ type PortalBookingPeople = Readonly<{
40950
+ /** Every place on the booking, the customer's included. */places: number;
40951
+ guests: readonly PortalBookingGuest[]; /** Guest places nobody has named yet. */
40952
+ namesMissing: number;
40953
+ }>;
40954
+ type PortalBookingTicketLine = Readonly<{
40955
+ label: string;
40956
+ quantity: number; /** Null on archived bookings, which kept the ticket names but not their prices. */
40957
+ unitPrice: PortalMoney | null;
40958
+ }>;
40959
+ /** The order that paid (or is paying) for a booking, as the customer's orders list shows it. */
40960
+ type PortalBookingOrder = Readonly<{
40961
+ orderId: string;
40962
+ orderNumber: string; /** What the order comes to, as the order owner priced it (discounts and fees included, before any credit). */
40963
+ total: PortalMoney; /** How much of the total their site credit paid; null when none did. The order page shows the same line. */
40964
+ paidWithCredit: PortalMoney | null; /** Money paid towards it so far (by card or by hand), apart from credit, as the order page says it. */
40965
+ paidSoFar: PortalMoney; /** Server wording for where the money stands. */
40966
+ paymentLabels: CustomerOrderPaymentLabels; /** What the order asks of the customer now, the same to-do the order itself carries. */
40967
+ toDo: PortalPaymentToDo;
40968
+ /**
40969
+ * How many bookings the order paid for, this one among them. When it's more
40970
+ * than one, the order's money and state are the order's, not this booking's.
40971
+ */
40972
+ bookingCount: number;
40973
+ }>;
40974
+ type PortalBookingPassUsed = Readonly<{
40975
+ customerPassId: string;
40976
+ name: string;
40977
+ useCase: CustomerPass['productUseCase'];
40978
+ creditsRemaining: number;
40979
+ expiresAt: string | null;
40980
+ }>;
40981
+ type PortalBookingMembershipUsed = Readonly<{
40982
+ customerMembershipId: string;
40983
+ name: string;
40984
+ status: CustomerMembership['status'];
40985
+ }>;
40986
+ /** How the booking is paid for, from its funding and the owner of that money. */
40987
+ type PortalBookingPayment = Readonly<{
40988
+ kind: 'free';
40989
+ }> /** A request or a waitlist place: nothing is settled until it's confirmed. */ | Readonly<{
40990
+ kind: 'not_decided';
40991
+ }> /** `pass` is null while a pass bought with the booking is still being set up. */ | Readonly<{
40992
+ kind: 'pass';
40993
+ pass: PortalBookingPassUsed | null;
40994
+ }> | Readonly<{
40995
+ kind: 'membership';
40996
+ membership: PortalBookingMembershipUsed | null;
40997
+ }> /** The order's own payment position says what's paid and what's still due. */ | Readonly<{
40998
+ kind: 'order';
40999
+ order: PortalBookingOrder;
41000
+ }>
41001
+ /**
41002
+ * Still owed against the booking itself, with no order yet (a pay-later
41003
+ * ticket or an accepted price). Only a booking the customer holds and hasn't
41004
+ * cancelled owes this. `amount` is the booking's own lines, when they're priced.
41005
+ */
41006
+ | Readonly<{
41007
+ kind: 'owed';
41008
+ amount: PortalMoney | null;
41009
+ }>
41010
+ /**
41011
+ * Nothing to say about the money: an archived booking, an order the customer
41012
+ * can't see, or a booking that no longer owes anything. The page says the same
41013
+ * (nothing) for each.
41014
+ */
41015
+ | Readonly<{
41016
+ kind: 'unavailable';
41017
+ }>;
41018
+ /**
41019
+ * Whether the customer may do something now. `explanation` is the server's
41020
+ * sentence for why not, ready to show; null means there's nothing worth
41021
+ * saying, and the page leaves the action out.
41022
+ */
41023
+ type PortalBookingAction = Readonly<{
41024
+ kind: 'available';
41025
+ until: string | null;
41026
+ }> | Readonly<{
41027
+ kind: 'closed';
41028
+ closedAt: string;
41029
+ }> | Readonly<{
41030
+ kind: 'not_offered';
41031
+ explanation: string | null;
41032
+ }>;
41033
+ /**
41034
+ * Moving an event booking to another date: an ordinary action, or
41035
+ * `single_run` when the booking's class has no other date still to come, so
41036
+ * there's nowhere to move to and nothing worth saying about it.
41037
+ */
41038
+ type PortalRescheduleAction = PortalBookingAction | Readonly<{
41039
+ kind: 'single_run';
41040
+ }>;
41041
+ /** What cancelling would do to their money, or `not_known` when that can't be said beforehand. */
41042
+ type PortalCancelMoney = CancellationMoneyOutcome | Readonly<{
41043
+ kind: 'not_known';
41044
+ }>;
41045
+ /**
41046
+ * Cancel, with everything a cancel page needs to say before anyone presses
41047
+ * anything: the money (a refund carries its own cut-off, so the outcome and
41048
+ * its deadline are one decision) and whether the terms apply. Money only
41049
+ * exists while cancel is open.
41050
+ */
41051
+ type PortalCancelAction = Readonly<{
41052
+ kind: 'available';
41053
+ until: string | null;
41054
+ money: PortalCancelMoney;
41055
+ /**
41056
+ * Who any refund reaches: the customer, or (for an event booking given
41057
+ * to them) the person who paid for it. Decided by the server.
41058
+ */
41059
+ recipient: RefundRecipient; /** The business's terms say what happens when they cancel. */
41060
+ termsApply: boolean;
41061
+ }> | Readonly<{
41062
+ kind: 'closed';
41063
+ closedAt: string;
41064
+ }> | Readonly<{
41065
+ kind: 'not_offered';
41066
+ explanation: string | null;
41067
+ }>;
41068
+ /**
41069
+ * What each kind of booking can have done to it. Every booking can be
41070
+ * cancelled, booked again, have its guests named and show a ticket; an event
41071
+ * booking can also be given to someone else or moved to another date, and an
41072
+ * appointment moved to another time. A course does neither, so it carries
41073
+ * neither.
41074
+ */
41075
+ type SharedActions<A, C> = Readonly<{
41076
+ cancel: C;
41077
+ rebook: A;
41078
+ editGuests: A;
41079
+ showTicket: A;
41080
+ }>;
41081
+ type ActionsOf<A, C, R> = Readonly<{
41082
+ event: SharedActions<A, C> & Readonly<{
41083
+ transfer: A;
41084
+ reschedule: R;
41085
+ }>;
41086
+ course: SharedActions<A, C>;
41087
+ appointment: SharedActions<A, C> & Readonly<{
41088
+ reschedule: A;
41089
+ }>;
41090
+ }>;
41091
+ type WireActions = ActionsOf<PortalBookingAction, PortalCancelAction, PortalRescheduleAction>;
41092
+ type PortalEventBookingActions = WireActions['event'];
41093
+ type PortalCourseBookingActions = WireActions['course'];
41094
+ type PortalAppointmentBookingActions = WireActions['appointment'];
41095
+ type PortalBookingBase = Readonly<{
41096
+ title: string;
41097
+ timing: PortalBookingTiming;
41098
+ where: PortalBookingWhere;
41099
+ standing: PortalBookingStanding; /** Null on a course place that isn't confirmed yet. */
41100
+ bookedAt: string | null;
41101
+ people: PortalBookingPeople;
41102
+ questions: PortalBeforeYouComeTask | null;
41103
+ payment: PortalBookingPayment;
41104
+ }>;
41105
+ type PortalBookingTransfer = Readonly<{
41106
+ kind: 'none';
41107
+ }> /** `from` is the giver's name, null when they didn't leave one. */ | Readonly<{
41108
+ kind: 'received';
41109
+ from: string | null;
41110
+ at: string | null;
41111
+ }> | Readonly<{
41112
+ kind: 'given';
41113
+ to: string | null;
41114
+ at: string | null;
41115
+ }>;
41116
+ /** A room the customer's people are in on a residential event. */
41117
+ type PortalBookingRoom = Readonly<{
41118
+ name: string;
41119
+ sleeps: number;
41120
+ bookedAs: 'private' | 'shared'; /** Who on this booking is in it, by name. */
41121
+ people: readonly string[];
41122
+ }>;
41123
+ type PortalEventBookingDetail = Readonly<{
41124
+ /** The date this booking is for, as the reschedule request names its source. */occurrenceId: string;
41125
+ seriesName: string | null;
41126
+ eventPath: string | null;
41127
+ occurrencePath: string | null;
41128
+ ticketLines: readonly PortalBookingTicketLine[];
41129
+ transfer: PortalBookingTransfer; /** Only on a booking the customer holds; empty once it's given away. */
41130
+ rooms: readonly PortalBookingRoom[]; /** The business asks for the name of everyone coming (the event's guest-details choice). */
41131
+ guestNamesRequired: boolean;
41132
+ }>;
41133
+ type PortalCourseBookingDetail = Readonly<{
41134
+ eventPath: string | null;
41135
+ sessions: readonly PortalBookingWhen[]; /** The next session still to come; null once they've all started. */
41136
+ nextSessionAt: string | null;
41137
+ ticketLines: readonly PortalBookingTicketLine[];
41138
+ }>;
41139
+ type PortalAppointmentBookingDetail = Readonly<{
41140
+ serviceName: string; /** The service and the person it was with, for booking the same again. */
41141
+ serviceId: string;
41142
+ resourceId: string | null; /** Who it's with: the practitioner or room booked. */
41143
+ withName: string | null; /** Set when it began as a request. How it was answered is in `standing`. */
41144
+ request: Readonly<{
41145
+ requestedAt: string | null;
41146
+ decidedAt: string | null;
41147
+ }> | null; /** Set when this date is one of their regular sessions. */
41148
+ regularSession: Readonly<{
41149
+ cadence: PortalRegularSessionCadence;
41150
+ localStart: string;
41151
+ }> | null;
41152
+ }>;
41153
+ type PortalEventBooking = PortalBookingBase & Readonly<{
41154
+ kind: 'event';
41155
+ ref: RefOfTag<'event_attendee'>;
41156
+ when: PortalBookingWhen;
41157
+ actions: PortalEventBookingActions;
41158
+ detail: PortalEventBookingDetail;
41159
+ }>;
41160
+ type PortalCourseBooking = PortalBookingBase & Readonly<{
41161
+ kind: 'course';
41162
+ ref: RefOfTag<'event_series_registration'>; /** Null while the course's dates aren't set yet. */
41163
+ when: PortalBookingWhen | null;
41164
+ actions: PortalCourseBookingActions;
41165
+ detail: PortalCourseBookingDetail;
41166
+ }>;
41167
+ type PortalAppointmentBooking = PortalBookingBase & Readonly<{
41168
+ kind: 'appointment';
41169
+ ref: RefOfTag<'appointment'>;
41170
+ when: PortalBookingWhen;
41171
+ actions: PortalAppointmentBookingActions;
41172
+ detail: PortalAppointmentBookingDetail;
41173
+ }>;
41174
+ type PortalBooking = PortalEventBooking | PortalCourseBooking | PortalAppointmentBooking;
41175
+ /**
41176
+ * The customer's bookings, grouped and ordered by the server. Waitlist entries
41177
+ * come first (places offered before places waited for). Coming up runs soonest
41178
+ * first, waitlisted bookings and undated courses included. Cancelled holds
41179
+ * cancellations, given-away bookings and requests that didn't go ahead whose
41180
+ * dates are still to come. Past runs latest first and is paged: pass
41181
+ * `nextPastCursor` back as `pastCursor` for the next page. The cursor marks
41182
+ * the last booking sent, so a booking finishing between pages is neither
41183
+ * repeated nor skipped.
41184
+ */
41185
+ type PortalBookingsResponse = Readonly<{
41186
+ waitlist: readonly CustomerPortalWaitlistEntry[];
41187
+ comingUp: readonly PortalBooking[];
41188
+ cancelled: readonly PortalBooking[];
41189
+ past: readonly PortalBooking[];
41190
+ nextPastCursor: string | null;
41191
+ }>;
41192
+ type PortalBookingResponse = Readonly<{
41193
+ booking: PortalBooking;
41194
+ }>;
41195
+ //#endregion
40243
41196
  //#region .cache/declarations/site-contracts/src/siteData/portalQuestions.d.ts
40244
41197
  type BookingQuestionsAnswerValue = string | number | boolean | null | string[] | BookingQuestionsDocumentAnswerValue;
40245
41198
  interface BookingQuestionsDocumentAnswerValue {
@@ -40306,6 +41259,19 @@ type CapturedBookingQuestionAnswer = Readonly<{
40306
41259
  fileName: string;
40307
41260
  bytes: number;
40308
41261
  }>);
41262
+ /**
41263
+ * Whether the questions can still be answered in the portal (D4), decided by
41264
+ * the server: open (late once the due date has passed, but still taken), or
41265
+ * sent, with the line saying how to change what was sent. A named extensible
41266
+ * point, so a later state (an edit window, say) is a server change.
41267
+ */
41268
+ type BookingQuestionsAnswering = Readonly<{
41269
+ kind: 'open';
41270
+ late: boolean;
41271
+ }> | Readonly<{
41272
+ kind: 'sent';
41273
+ changeNote: string;
41274
+ }>;
40309
41275
  interface BookingQuestionsTaskDetail {
40310
41276
  /** Completed evidence, projected with its captured question and choice labels. */
40311
41277
  completedAnswers?: readonly CapturedBookingQuestionAnswer[];
@@ -40320,6 +41286,7 @@ interface BookingQuestionsTaskDetail {
40320
41286
  dueAt: string;
40321
41287
  completedAt: string | null;
40322
41288
  prefillAvailable: boolean;
41289
+ answering: BookingQuestionsAnswering;
40323
41290
  answers: Record<string, BookingQuestionsAnswerValue>;
40324
41291
  sections: readonly BookingQuestionsSection[];
40325
41292
  }
@@ -43872,6 +44839,14 @@ interface EventRegisterRequestCommon {
43872
44839
  * server can replay a lost response instead of registering twice.
43873
44840
  */
43874
44841
  registrationCommandId: string;
44842
+ /**
44843
+ * The command ids of earlier unfinished bookings this browser made, which this submission takes
44844
+ * over from: the booking whose payment the visitor came back from, and attempts whose outcome the
44845
+ * form can't be sure of. At most `MAX_REPLACED_REGISTRATION_COMMAND_IDS`. The server replaces an
44846
+ * unpaid booking only for a signed-in customer or for the browser that can name it, so a booking
44847
+ * form that leaves this out is told to pay for or cancel the earlier one instead.
44848
+ */
44849
+ replacesRegistrationCommandIds?: readonly string[];
43875
44850
  checkout?: {
43876
44851
  returnUrl: string;
43877
44852
  discountCode?: string;
@@ -44022,6 +44997,12 @@ type EventCheckoutRequest = EventCheckoutRequestCommon & ({
44022
44997
  type EventCheckoutResponse = z$1.infer<typeof eventCheckoutResponseSchema>;
44023
44998
  type EventRegistrationNextStepRequest = EventRegistrationOptionsRequest & {
44024
44999
  email: string;
45000
+ /**
45001
+ * The earlier bookings this browser can name, as a submission would send them
45002
+ * (`EventRegistrationRequest.replacesRegistrationCommandIds`). An unfinished booking found from the
45003
+ * email is offered for payment only when one of these names it.
45004
+ */
45005
+ replacesRegistrationCommandIds?: readonly string[];
44025
45006
  };
44026
45007
  /** Navigation only; the booking submission remains authoritative for admission. */
44027
45008
  type EventRegistrationNextStepResponse = {
@@ -44048,321 +45029,6 @@ type EventCheckoutReturnResponse = z$1.infer<typeof eventCheckoutReturnResponseS
44048
45029
  /** Every option kind can be requested at checkout. */
44049
45030
  type DirectCheckoutCollectionOptionKind = BookingPaymentCollectionOptionKind;
44050
45031
  //#endregion
44051
- //#region .cache/declarations/site-contracts/src/siteData/portalAccounts.d.ts
44052
- /**
44053
- * Customer profile data from /api/portal/me
44054
- */
44055
- interface CustomerProfile {
44056
- id: string;
44057
- email: string;
44058
- name: string;
44059
- phone: string | null;
44060
- }
44061
- /**
44062
- * Enabled modules for the site from /api/portal/me
44063
- */
44064
- interface EnabledModules {
44065
- appointments: boolean;
44066
- events: boolean;
44067
- }
44068
- interface EventTicketBreakdownLine {
44069
- pricingOptionId: string | null;
44070
- label: string;
44071
- quantity: number;
44072
- }
44073
- /**
44074
- * Customer event registration data from /api/portal/events
44075
- * Note: status uses British spelling 'cancelled'
44076
- */
44077
- /** How to join an upcoming online booking, for the client who holds it. */
44078
- interface PortalJoiningDetails {
44079
- joinUrl: string;
44080
- accessCode: string | null;
44081
- notes: string | null;
44082
- }
44083
- interface CustomerEventRegistration {
44084
- id: string;
44085
- instanceId: string;
44086
- occurrenceId: string;
44087
- seriesId: string;
44088
- eventTitle: string;
44089
- seriesName: string | null;
44090
- /** Path to the event series page (published route) when available */
44091
- eventPath?: string | null;
44092
- /** Path to the specific occurrence details page when available */
44093
- eventOccurrencePath?: string | null;
44094
- startsAt: string;
44095
- endsAt: string;
44096
- timeZone: string;
44097
- isOnline: boolean;
44098
- venueName: string | null;
44099
- venueAddress: string | null;
44100
- ticketsCount: number;
44101
- ticketLines: EventTicketBreakdownLine[];
44102
- ticketBreakdown: string | null;
44103
- status: 'confirmed' | 'waitlist' | 'cancelled';
44104
- waitlistPosition: number | null;
44105
- createdAt: string;
44106
- /** Guest details for additional attendees (optional - only present if guests exist) */
44107
- guests?: EventGuest[];
44108
- beforeYouCome: PortalBeforeYouComeTask | null;
44109
- transferState: 'none' | 'transferred_in' | 'transferred_out';
44110
- actions: {
44111
- canCancel: boolean;
44112
- canTransfer: boolean;
44113
- canAutoRefundOnCancel: boolean; /** What happens to their money if they cancel; absent or null means we can't say beforehand. */
44114
- moneyOnCancel?: CancellationMoneyOutcome | null;
44115
- availability?: Readonly<{
44116
- cancel: BookingActionAvailability;
44117
- transfer: BookingActionAvailability;
44118
- reschedule: BookingActionAvailability;
44119
- }>;
44120
- };
44121
- ticketingEnabled: boolean;
44122
- ticketUrl?: string;
44123
- joiningDetails?: PortalJoiningDetails | null;
44124
- }
44125
- /** Guest details for event registration. */
44126
- interface EventGuest {
44127
- id: string;
44128
- name: string;
44129
- phone: string | null;
44130
- guestIndex: number;
44131
- }
44132
- interface CustomerEventSeriesRegistration {
44133
- isOnline: boolean | null;
44134
- joiningDetails?: PortalJoiningDetails | null;
44135
- id: string;
44136
- eventSeriesId: string | null;
44137
- eventTitle: string;
44138
- /** Path to the Event page (published route) when available */
44139
- eventPath?: string | null;
44140
- status: 'pending_payment' | 'enrolled' | 'waitlist' | 'cancelled' | 'completed';
44141
- paymentMethod: 'free' | 'membership' | 'stripe' | null;
44142
- paymentStatus: 'not_required' | 'pending' | 'completed' | 'failed' | 'refunded' | null;
44143
- waitlistPosition: number | null;
44144
- /** When the customer was enrolled; null for pending or waitlisted entries */
44145
- enrolledAt: string | null;
44146
- sessionsCount: number;
44147
- /** First upcoming session date (null if all sessions are past) */
44148
- nextSessionAt: string | null;
44149
- /** All session dates */
44150
- sessions: Array<{
44151
- startsAt: string;
44152
- endsAt: string | null;
44153
- timeZone: string;
44154
- }>;
44155
- participantCount: number;
44156
- ticketSummary: readonly Readonly<{
44157
- label: string;
44158
- quantity: number;
44159
- }>[];
44160
- participants: readonly Readonly<{
44161
- displayName: string | null;
44162
- isBooker: boolean;
44163
- }>[];
44164
- beforeYouCome: PortalBeforeYouComeTask | null;
44165
- /**
44166
- * What the customer may do with this course booking, from the booking action
44167
- * table. Older servers don't send it, and the row falls back to its own check.
44168
- */
44169
- actions?: Readonly<{
44170
- availability: Readonly<{
44171
- cancel: BookingActionAvailability;
44172
- }>;
44173
- moneyOnCancel?: CancellationMoneyOutcome | null;
44174
- }>;
44175
- /** Venue information */
44176
- venue: {
44177
- name: string;
44178
- address: string | null;
44179
- } | null;
44180
- }
44181
- //#endregion
44182
- //#region .cache/declarations/site-contracts/src/siteData/portalCredits.d.ts
44183
- /**
44184
- * Customer pass data from /api/portal/passes
44185
- */
44186
- interface CustomerPassCreditHistoryEntry {
44187
- id: string;
44188
- kind: 'redemption' | 'restoration';
44189
- credits: number;
44190
- subjectKind: 'event_attendee' | 'appointment';
44191
- subjectId: string;
44192
- occurredAt: string;
44193
- bookingStartsAt: string | null;
44194
- actorKind: 'customer' | 'admin' | 'system' | null;
44195
- reason: string | null;
44196
- }
44197
- interface CustomerPass {
44198
- id: string;
44199
- heldWithStaffMemberId: string | null;
44200
- passId: string;
44201
- productUseCase: 'event_pass' | 'appointment_package';
44202
- passName: string;
44203
- passDescription: string | null;
44204
- creditsHeld: number;
44205
- creditsRemaining: number;
44206
- creditsTotal: number;
44207
- purchasedAt: string;
44208
- expiresAt: string | null;
44209
- status: 'active' | 'exhausted' | 'expired' | 'refunded';
44210
- creditHistory: readonly CustomerPassCreditHistoryEntry[];
44211
- }
44212
- /**
44213
- * Customer membership data from /api/portal/memberships
44214
- */
44215
- interface CustomerMembership {
44216
- id: string;
44217
- membershipId: string;
44218
- membershipName: string;
44219
- membershipDescription: string | null;
44220
- billingInterval: 'month' | 'year';
44221
- status: 'active' | 'paused' | 'canceled' | 'past_due' | 'trialing';
44222
- currentPeriodStart: string | null;
44223
- currentPeriodEnd: string | null;
44224
- cancelAtPeriodEnd: boolean;
44225
- pausedAt: string | null;
44226
- canceledAt: string | null;
44227
- /**
44228
- * It will renew: a subscription that isn't set to end. False for one the
44229
- * business added by hand (it runs for a set period) and for one set to end.
44230
- * The dashboard's `renews` means the same.
44231
- */
44232
- renews: boolean;
44233
- /** Whether the customer can cancel it from the portal (only a renewing one not already ending). */
44234
- canCancel: boolean;
44235
- /** Whether the customer can undo a scheduled end while the period runs. Absent from older servers. */
44236
- canResume?: boolean;
44237
- /**
44238
- * When it stopped covering classes (exclusive), once it has ended: when it
44239
- * actually ended, which can be before the period it was billed for. Null
44240
- * while it's live. Absent from older servers.
44241
- */
44242
- endedAt?: string | null;
44243
- }
44244
- /**
44245
- * Site credit summary data from /api/portal/credit
44246
- */
44247
- interface PortalCreditSummary {
44248
- currency: string;
44249
- balanceCents: number;
44250
- reservedCents: number;
44251
- availableCents: number;
44252
- }
44253
- interface PortalCreditTransaction {
44254
- id: string;
44255
- amountCents: number;
44256
- currency: string;
44257
- type: string;
44258
- createdAt: string;
44259
- reason: string | null;
44260
- }
44261
- interface PortalCredit {
44262
- summary: PortalCreditSummary;
44263
- transactions: PortalCreditTransaction[];
44264
- }
44265
- //#endregion
44266
- //#region .cache/declarations/site-contracts/src/siteData/portalOrders.d.ts
44267
- type CustomerOrderFilter = 'all' | 'products' | 'bookings' | 'passes' | 'memberships';
44268
- interface CustomerOrderItem {
44269
- id: string;
44270
- kind: 'product' | 'event_ticket' | 'event_series_registration' | 'pass' | 'membership' | 'appointment';
44271
- displayName: string;
44272
- quantity: number;
44273
- unitPriceCents: number;
44274
- totalCents: number;
44275
- refundedCents: number;
44276
- refundableRemainingCents: number;
44277
- }
44278
- interface CustomerOrderRefund {
44279
- id: string;
44280
- status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
44281
- amountCents: number;
44282
- createdAt: string;
44283
- }
44284
- type CustomerOrderInstalmentPlan = OrderInstalmentSummary;
44285
- type CustomerOrderPaymentState = {
44286
- kind: 'not_required';
44287
- reason: 'free' | 'waived' | 'pass' | 'membership';
44288
- collectedCents: number;
44289
- refundedCents: number;
44290
- outstandingCents: number;
44291
- } | {
44292
- kind: 'unpaid' | 'partially_paid' | 'collection_failed';
44293
- collectedCents: number;
44294
- refundedCents: number;
44295
- outstandingCents: number;
44296
- } | {
44297
- kind: 'waived';
44298
- collectedCents: number;
44299
- waivedCents: number;
44300
- refundedCents: number;
44301
- outstandingCents: 0;
44302
- } | {
44303
- kind: 'paid';
44304
- collectedCents: number;
44305
- refundedCents: number;
44306
- outstandingCents: 0;
44307
- settledVia: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual';
44308
- } | {
44309
- kind: 'refunded';
44310
- collectedCents: number;
44311
- refundedCents: number;
44312
- outstandingCents: number;
44313
- } | {
44314
- kind: 'cancelled';
44315
- collectedCents: number;
44316
- refundedCents: number;
44317
- outstandingCents: number;
44318
- };
44319
- /** Server-decided wording for this order, already in the customer's terms. */
44320
- interface CustomerOrderPaymentLabels {
44321
- /** What happened to the booking; null when it's simply booked. */
44322
- booking: string | null;
44323
- /** Where the money stands. */
44324
- money: string;
44325
- tone: 'success' | 'attention' | 'problem' | 'neutral';
44326
- }
44327
- interface CustomerOrderActions {
44328
- canPayOnline: boolean;
44329
- payOnlineInProgress: boolean;
44330
- }
44331
- interface CustomerOrderFlexibleBalance {
44332
- paymentEligibility?: FlexibleBalancePaymentEligibility;
44333
- status: BookingFlexibleBalanceContractStatus;
44334
- dueAt: string;
44335
- remainingBalanceCents: number;
44336
- upfrontAmountCents: number;
44337
- }
44338
- interface CustomerOrder {
44339
- id: string;
44340
- siteId: string;
44341
- customerId: string;
44342
- orderNumber: string;
44343
- createdAt: string;
44344
- status: 'pending' | 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'cancelled';
44345
- paymentMethod: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual' | 'waived';
44346
- currency: string;
44347
- subtotalCents: number;
44348
- discountCents: number;
44349
- creditCents: number;
44350
- taxCents: number;
44351
- shippingCents: number;
44352
- paidCents: number;
44353
- refundedCents: number;
44354
- grandTotalCents: number;
44355
- balanceDueCents: number;
44356
- paymentState: CustomerOrderPaymentState;
44357
- paymentLabels: CustomerOrderPaymentLabels;
44358
- instalmentPlan: CustomerOrderInstalmentPlan | null;
44359
- flexibleBalance: CustomerOrderFlexibleBalance | null;
44360
- filters: CustomerOrderFilter[];
44361
- items: CustomerOrderItem[];
44362
- refunds: CustomerOrderRefund[];
44363
- actions: CustomerOrderActions;
44364
- }
44365
- //#endregion
44366
45032
  //#region .cache/declarations/site-contracts/src/siteData/portalDigitalProducts.d.ts
44367
45033
  type JsonPrimitive$2 = string | number | boolean | null;
44368
45034
  type JsonValue$2 = JsonPrimitive$2 | JsonValue$2[] | {
@@ -44398,44 +45064,728 @@ interface PortalFileDownloadDigitalProduct extends PortalDigitalProductBase {
44398
45064
  files: PortalDigitalProductFile[];
44399
45065
  }
44400
45066
  //#endregion
44401
- //#region .cache/declarations/site-contracts/src/siteData/portalWaitlists.d.ts
44402
- type CustomerPortalWaitlistSubject = {
44403
- kind: 'occurrence';
44404
- occurrenceId: string;
44405
- eventSeriesId: string;
45067
+ //#region .cache/declarations/site-contracts/src/siteData/portalHome.d.ts
45068
+ /**
45069
+ * The portal's home, from GET /api/portal/home: what's waiting on the
45070
+ * customer (Things to do), their next few bookings, and a line about each
45071
+ * section of their account. The server decides every task, when it's due and
45072
+ * whether it's urgent; the portal only words them.
45073
+ *
45074
+ * Each part is read on its own, so one that couldn't be read says so
45075
+ * (`not_checked`) while the others still show. "Nothing to do" is only said
45076
+ * when every source of tasks was checked.
45077
+ *
45078
+ * Wire evolution (pinned SDK clients): a task kind a newer server adds decodes
45079
+ * to `unsupported`, which still shows (so the list never claims there's
45080
+ * nothing to do when there's something), without a button. So do the values
45081
+ * inside known tasks that a newer server can add to: a booking reference of a
45082
+ * kind this build doesn't know, and what a payment is for. A known variant
45083
+ * that's malformed is still an error.
45084
+ */
45085
+ type EventAttendeeRef$1 = Extract<BookingContextRef, {
45086
+ tag: 'event_attendee';
45087
+ }>;
45088
+ /** When a task is due: no date, a date still ahead, or one that's passed. */
45089
+ type PortalTaskDeadline = PortalDeadline;
45090
+ /** What a payment task is for, as the customer would recognise it. */
45091
+ type PortalPaymentFor = Readonly<{
45092
+ kind: 'booking';
45093
+ ref: BookingContextRef;
45094
+ title: string;
45095
+ }> /** An order with no booking it pays for: named as the customer would recognise it. */ | Readonly<{
45096
+ kind: 'order';
45097
+ order: PortalOrderName;
45098
+ }>;
45099
+ type TaskBase = Readonly<{
45100
+ /** Stable across reads, for lists to key on. */key: string; /** Decided by the server: overdue, or something that went wrong. */
45101
+ urgent: boolean;
45102
+ }>;
45103
+ type PortalTask = TaskBase & (/** Their own questions before a booking, still to answer. Due by the same rule the reminder email uses. */Readonly<{
45104
+ kind: 'answer_questions';
45105
+ ref: BookingContextRef;
45106
+ bookingTitle: string;
45107
+ deadline: PortalTaskDeadline;
45108
+ }> /** Guests on an event booking still unnamed, where the business asks for everyone's name. */ | Readonly<{
45109
+ kind: 'add_guest_names';
45110
+ ref: EventAttendeeRef$1;
45111
+ bookingTitle: string;
44406
45112
  startsAt: string;
44407
- endsAt: string;
44408
- timeZone: string;
44409
- isOnline: boolean;
44410
- } | {
44411
- kind: 'wholeSeries';
44412
45113
  timeZone: string;
44413
- isOnline: boolean;
44414
- eventSeriesId: string;
44415
- scheduleSummary: string | null;
44416
- };
44417
- type CustomerPortalWaitlistEntryBase = {
44418
- id: string;
44419
- subject: CustomerPortalWaitlistSubject;
45114
+ namesMissing: number;
45115
+ }> /** A place offered from a waitlist, to take before the offer lapses. */ | Readonly<{
45116
+ kind: 'take_waitlist_place';
45117
+ entryId: string;
44420
45118
  eventTitle: string;
44421
- eventPath: string | null;
44422
45119
  requestedPlaces: number;
44423
- joinedAt: string;
44424
- };
44425
- type CustomerPortalWaitlistEntry = (CustomerPortalWaitlistEntryBase & {
44426
- status: 'waiting';
44427
- queuePosition: number | null;
44428
- canLeave: true;
44429
- }) | (CustomerPortalWaitlistEntryBase & {
44430
- status: 'placeAvailable';
44431
45120
  claimExpiresAt: string;
44432
45121
  claimPath: string | null;
44433
- canLeave: true;
44434
- }) | (CustomerPortalWaitlistEntryBase & {
44435
- status: 'offerExpired';
44436
- claimExpiredAt: string;
44437
- canLeave: false;
44438
- });
45122
+ offerPrice: PortalWaitlistOfferPrice;
45123
+ }>
45124
+ /**
45125
+ * Money the customer has to pay: a balance, an unpaid order or a booking
45126
+ * not yet paid for, or a plan's payment that failed. `due` is the order's
45127
+ * own to-do, so the task, the order page and the booking can't disagree;
45128
+ * `moneyLine` is the order's sentence for where its money stands.
45129
+ */
45130
+ | Readonly<{
45131
+ kind: 'pay';
45132
+ orderId: string;
45133
+ for: PortalPaymentFor;
45134
+ due: PortalPaymentDue;
45135
+ moneyLine: string;
45136
+ }>
45137
+ /**
45138
+ * A membership whose last payment didn't go through: how much, since when
45139
+ * it's been recorded as unpaid (not an attempt date), and when the payment
45140
+ * provider will try again (null when it won't). Updating the card here
45141
+ * comes later (#1825).
45142
+ */
45143
+ | Readonly<{
45144
+ kind: 'membership_payment_failed';
45145
+ customerMembershipId: string;
45146
+ membershipName: string;
45147
+ failed: PortalMoney | null;
45148
+ overdueSince: string | null;
45149
+ nextAttemptAt: string | null;
45150
+ }>);
45151
+ /** Where tasks are read from, so the page can say which couldn't be checked. */
45152
+ type PortalTaskSource = 'bookings' | 'questions' | 'payments' | 'memberships';
45153
+ /**
45154
+ * The customer's tasks, most pressing first. `partly_checked` when some source
45155
+ * couldn't be read: the tasks shown are real, but there may be more.
45156
+ */
45157
+ type PortalTaskList = Readonly<{
45158
+ kind: 'checked';
45159
+ tasks: readonly PortalTask[];
45160
+ }> | Readonly<{
45161
+ kind: 'partly_checked';
45162
+ tasks: readonly PortalTask[];
45163
+ unchecked: readonly PortalTaskSource[];
45164
+ }>;
45165
+ /** A part of a read (home, payments, passes): shown, or couldn't be read just now. */
45166
+ type PortalPart<T> = (Readonly<{
45167
+ kind: 'shown';
45168
+ }> & T) | Readonly<{
45169
+ kind: 'not_checked';
45170
+ }>;
45171
+ /** The next bookings that hold a place, soonest first, and how many there are in all. */
45172
+ type PortalHomeComingUp = PortalPart<Readonly<{
45173
+ next: readonly PortalBooking[];
45174
+ total: number;
45175
+ }>>;
45176
+ type PortalHomePassSummary = Readonly<{
45177
+ name: string;
45178
+ useCase: CustomerPass['productUseCase'];
45179
+ creditsRemaining: number;
45180
+ }>;
45181
+ type PortalHomeMembershipSummary = Readonly<{
45182
+ name: string;
45183
+ paymentFailed: boolean;
45184
+ }>;
45185
+ type PortalHomeSummaries = Readonly<{
45186
+ bookings: PortalPart<Readonly<{
45187
+ comingUp: number;
45188
+ placesOffered: number;
45189
+ }>>; /** Passes with uses left and memberships still running. */
45190
+ passes: PortalPart<Readonly<{
45191
+ passes: readonly PortalHomePassSummary[];
45192
+ memberships: readonly PortalHomeMembershipSummary[];
45193
+ }>>;
45194
+ /**
45195
+ * Payments to make, and the server's line for the most pressing one.
45196
+ * `checking`: orders whose money the business is still working out, so home
45197
+ * doesn't say there's nothing to pay while any are.
45198
+ */
45199
+ payments: PortalPart<Readonly<{
45200
+ toPay: number;
45201
+ first: string | null;
45202
+ checking: number;
45203
+ }>>; /** What they can open or download, by title; empty when there's nothing, and then home shows no row. */
45204
+ downloads: PortalPart<Readonly<{
45205
+ titles: readonly string[];
45206
+ }>>;
45207
+ }>;
45208
+ /**
45209
+ * How to reach the business, as its published contact details allow. Both
45210
+ * null when it publishes neither, and the page names the business instead.
45211
+ */
45212
+ type PortalBusinessContact = Readonly<{
45213
+ email: string | null;
45214
+ phone: string | null;
45215
+ }>;
45216
+ type PortalHomeResponse = Readonly<{
45217
+ tasks: PortalTaskList;
45218
+ comingUp: PortalHomeComingUp;
45219
+ summaries: PortalHomeSummaries;
45220
+ contact: PortalBusinessContact;
45221
+ }>;
45222
+ //#endregion
45223
+ //#region .cache/declarations/site-contracts/src/siteData/portalHoldings.d.ts
45224
+ /**
45225
+ * The passes page, from GET /api/portal/holdings: the customer's memberships
45226
+ * (ended ones too), their passes and packages (used up and expired ones too)
45227
+ * and their site credit. The server decides where each one stands, what it
45228
+ * cost, what each use was for and why credit came or went; the portal only
45229
+ * words it.
45230
+ *
45231
+ * Each part is read on its own, so one that couldn't be read says so
45232
+ * (`not_checked`) while the others still show.
45233
+ *
45234
+ * Wire evolution (pinned SDK clients): a membership's standing, a pass use and
45235
+ * a credit reason are extensible points. A kind a newer server adds decodes to
45236
+ * `unsupported`: the membership or entry still shows, with nothing to act on.
45237
+ */
45238
+ /**
45239
+ * Where a membership stands, as its owner decides it now. Every date here is
45240
+ * an exclusive boundary (the first moment it no longer covers), except
45241
+ * `nextPaymentAt`, which is when the next payment is taken.
45242
+ */
45243
+ type PortalMembershipStanding = /** It renews by itself; the next payment is due at the end of this period. */Readonly<{
45244
+ kind: 'renewing';
45245
+ nextPaymentAt: string | null;
45246
+ }> /** Set to stop at the end of this period. */ | Readonly<{
45247
+ kind: 'ending';
45248
+ endsAt: string | null;
45249
+ }> /** Added by the business for a set time, so it doesn't renew. */ | Readonly<{
45250
+ kind: 'set_period';
45251
+ endsAt: string | null;
45252
+ }> | Readonly<{
45253
+ kind: 'paused';
45254
+ }> /** It no longer covers anything: the last day it could be used, when known. */ | Readonly<{
45255
+ kind: 'ended';
45256
+ endedAt: string | null;
45257
+ }>;
45258
+ /**
45259
+ * A payment that didn't go through, alongside where the membership stands (a
45260
+ * membership can be overdue and set to end at once). `overdueSince` is when it
45261
+ * was first recorded as unpaid, not when the provider tried: we don't store
45262
+ * attempt dates. `nextAttemptAt` is when the provider will try again (null when
45263
+ * it won't).
45264
+ */
45265
+ type PortalMembershipPaymentTrouble = Readonly<{
45266
+ failed: PortalMoney | null;
45267
+ overdueSince: string | null;
45268
+ nextAttemptAt: string | null;
45269
+ }>;
45270
+ type PortalMembership = Readonly<{
45271
+ /** The customer's membership (not the product). */id: string;
45272
+ name: string;
45273
+ description: string | null;
45274
+ /**
45275
+ * What it costs each period, at the price it was sold at (a later change to
45276
+ * the product's price doesn't reach a running membership). Null when the
45277
+ * business added it without selling it.
45278
+ */
45279
+ price: PortalMoney | null;
45280
+ interval: 'month' | 'year'; /** When they joined. */
45281
+ since: string;
45282
+ standing: PortalMembershipStanding; /** Null when its payments are up to date. */
45283
+ paymentTrouble: PortalMembershipPaymentTrouble | null; /** What the customer can do here, as the membership's owner allows. */
45284
+ actions: Readonly<{
45285
+ cancel: boolean;
45286
+ keep: boolean;
45287
+ }>;
45288
+ }>;
45289
+ /** What a pass can be used for: classes and events, or 1:1 sessions (with one person, when it's tied to them). */
45290
+ type PortalPassUseCase = Readonly<{
45291
+ kind: 'event_pass';
45292
+ }> | Readonly<{
45293
+ kind: 'appointment_package';
45294
+ with: string | null;
45295
+ }>;
45296
+ /** A booking a pass paid for, as the customer's bookings show it. */
45297
+ type PortalPassUseBooking = Readonly<{
45298
+ ref: BookingContextRef;
45299
+ title: string;
45300
+ startsAt: string | null;
45301
+ timeZone: string | null;
45302
+ }>;
45303
+ /**
45304
+ * The booking a use paid for: found in the customer's account, no longer in it
45305
+ * (someone else's now, or removed), or not looked up this time (the read
45306
+ * failed, so it says nothing either way).
45307
+ */
45308
+ type PortalPassUseBookingRead = Readonly<{
45309
+ kind: 'found';
45310
+ booking: PortalPassUseBooking;
45311
+ }> | Readonly<{
45312
+ kind: 'not_in_account';
45313
+ }> | Readonly<{
45314
+ kind: 'not_checked';
45315
+ }>;
45316
+ type PassUseBase = Readonly<{
45317
+ key: string;
45318
+ credits: number;
45319
+ at: string;
45320
+ booking: PortalPassUseBookingRead;
45321
+ }>;
45322
+ /** Who gave a use back: the customer cancelling, the business, or the system (an event called off, a booking left unpaid). */
45323
+ type PortalPassGivenBackBy = 'you' | 'business' | 'automatically';
45324
+ /**
45325
+ * What became of a use whose booking was cancelled: its credit came back
45326
+ * (listed again as `given_back`), or it was kept (a late cancel, or a business
45327
+ * that doesn't refund). Absent while the booking stands, and from older servers.
45328
+ */
45329
+ type PortalPassUseCancelled = 'given_back' | 'kept';
45330
+ type PortalPassUse = PassUseBase & (Readonly<{
45331
+ kind: 'used';
45332
+ cancelled?: PortalPassUseCancelled;
45333
+ }> | Readonly<{
45334
+ kind: 'given_back';
45335
+ by: PortalPassGivenBackBy;
45336
+ }>);
45337
+ type PortalPassStanding = 'active' | 'used_up' | 'expired' | 'refunded';
45338
+ type PortalPass = Readonly<{
45339
+ /** The customer's pass (not the product). */id: string;
45340
+ name: string;
45341
+ description: string | null;
45342
+ useCase: PortalPassUseCase; /** What they paid for it; null when the business gave it without selling it. */
45343
+ price: PortalMoney | null;
45344
+ boughtAt: string;
45345
+ expiresAt: string | null; /** `held` are set aside for bookings still being paid for. */
45346
+ credits: Readonly<{
45347
+ remaining: number;
45348
+ total: number;
45349
+ held: number;
45350
+ }>;
45351
+ standing: PortalPassStanding; /** Newest first. */
45352
+ uses: readonly PortalPassUse[];
45353
+ }>;
45354
+ /** Why credit came or went. `order` is null when the order isn't one they can see. */
45355
+ type PortalCreditReason = /** Spent on an order. */Readonly<{
45356
+ kind: 'spent';
45357
+ order: PortalOrderName | null;
45358
+ }> /** A refund paid as credit instead of back to the card. */ | Readonly<{
45359
+ kind: 'refunded_as_credit';
45360
+ order: PortalOrderName | null;
45361
+ }> /** Credit spent on an order that was cancelled or not paid, given back. */ | Readonly<{
45362
+ kind: 'given_back';
45363
+ order: PortalOrderName | null;
45364
+ }> /** A gift card they redeemed. */ | Readonly<{
45365
+ kind: 'gift_card';
45366
+ }> /** The business cancelled a booking and gave credit for it. */ | Readonly<{
45367
+ kind: 'business_cancelled';
45368
+ }> | Readonly<{
45369
+ kind: 'added_by_business';
45370
+ }> | Readonly<{
45371
+ kind: 'taken_off_by_business';
45372
+ }> /** Credit turned back into money and refunded to them. */ | Readonly<{
45373
+ kind: 'paid_out';
45374
+ }>;
45375
+ type PortalCreditEntry = Readonly<{
45376
+ key: string; /** Positive when credit came in, negative when it went out. */
45377
+ amount: PortalMoney;
45378
+ at: string;
45379
+ reason: PortalCreditReason;
45380
+ }>;
45381
+ type PortalCreditAccount = Readonly<{
45382
+ /** What they can spend now. */available: PortalMoney; /** Set aside for a payment that's still going through. */
45383
+ setAside: PortalMoney; /** The most recent entries, newest first. */
45384
+ history: readonly PortalCreditEntry[];
45385
+ }>;
45386
+ type PortalHoldingsResponse = Readonly<{
45387
+ memberships: PortalPart<Readonly<{
45388
+ memberships: readonly PortalMembership[];
45389
+ }>>;
45390
+ passes: PortalPart<Readonly<{
45391
+ passes: readonly PortalPass[];
45392
+ }>>; /** `account` is null for a customer who has never held credit. */
45393
+ credit: PortalPart<Readonly<{
45394
+ account: PortalCreditAccount | null;
45395
+ }>>;
45396
+ contact: PortalBusinessContact;
45397
+ }>;
45398
+ //#endregion
45399
+ //#region .cache/declarations/site-contracts/src/siteData/portalPayments.d.ts
45400
+ /**
45401
+ * Payments & receipts, from three reads:
45402
+ *
45403
+ * - GET /api/portal/payments: what's to pay (the same tasks home shows for
45404
+ * money), instalment plans still running, and the customer's own payments
45405
+ * and refunds, newest first, a page at a time.
45406
+ * - GET /api/portal/payments/receipts/{receiptId}: one payment as a receipt.
45407
+ * - GET /api/portal/orders/{orderId}: one order, what's been paid towards it,
45408
+ * what's been sent back, and where any parcel is.
45409
+ *
45410
+ * Payments are money the customer paid (card or in person). Site credit spent
45411
+ * on an order isn't a payment: it shows on the order and in the credit history
45412
+ * on the passes page, never as a payment here. Refunds say whether they've
45413
+ * been sent and when, never that the money has reached anyone's account.
45414
+ *
45415
+ * Wire evolution (pinned SDK clients): a history entry's kind is an extensible
45416
+ * point. A kind a newer server adds decodes to `unsupported`, which still shows
45417
+ * as a row with nothing to open.
45418
+ */
45419
+ /** What a payment was, as its receipt recorded it. */
45420
+ type PortalPaymentPurpose = /** Everything owed at the time, paid at checkout. */'paid_in_full' /** The first part of a booking paid in parts (a deposit, or the first of a plan's payments). */ | 'deposit' /** Some or all of what was left after a deposit. */ | 'balance' /** One of a plan's scheduled payments. */ | 'instalment' /** Everything left on a plan, paid early. */ | 'rest_of_plan' /** A membership's regular payment. */ | 'renewal';
45421
+ /** How the customer paid: online by card, or in person (recorded by the business, with how when it said). */
45422
+ type PortalPaidHow = Readonly<{
45423
+ kind: 'card';
45424
+ }> | Readonly<{
45425
+ kind: 'in_person';
45426
+ method: OfflinePaymentMethod | null;
45427
+ }>;
45428
+ /**
45429
+ * Where a refund goes: back to the card that paid (with its last four digits
45430
+ * when the payment provider gave them), to site credit, or paid back by the
45431
+ * business itself for a payment made in person.
45432
+ */
45433
+ type PortalRefundTo = Readonly<{
45434
+ kind: 'card';
45435
+ last4: string | null;
45436
+ }> | Readonly<{
45437
+ kind: 'site_credit';
45438
+ }> | Readonly<{
45439
+ kind: 'business';
45440
+ }>;
45441
+ /**
45442
+ * Where a refund has got to: `sent` (with the date it went), `sending` (asked
45443
+ * for, not yet confirmed), `failed`, or `checking` while the business works out
45444
+ * what happened. Nothing here says when the money reaches an account.
45445
+ */
45446
+ type PortalRefundStanding = 'sent' | 'sending' | 'failed' | 'checking';
45447
+ type PortalRefund = Readonly<{
45448
+ refundId: string; /** When it was asked for. */
45449
+ at: string;
45450
+ amount: PortalMoney;
45451
+ to: PortalRefundTo;
45452
+ standing: PortalRefundStanding; /** When it was sent; null until it's `sent`. */
45453
+ sentAt: string | null;
45454
+ }>;
45455
+ type PortalPaymentEntry = Readonly<{
45456
+ kind: 'payment';
45457
+ key: string;
45458
+ receiptId: string;
45459
+ at: string;
45460
+ amount: PortalMoney;
45461
+ order: PortalOrderName;
45462
+ purpose: PortalPaymentPurpose;
45463
+ how: PortalPaidHow; /** How much of it has been sent back so far; null when none. */
45464
+ refunded: PortalMoney | null; /** The business is still matching this payment to the order. */
45465
+ checking: boolean;
45466
+ }> | (Readonly<{
45467
+ kind: 'refund';
45468
+ key: string;
45469
+ order: PortalOrderName;
45470
+ }> & PortalRefund);
45471
+ /**
45472
+ * How a plan's payment stands. `not_taken_yet`: its date has passed and it
45473
+ * hasn't been taken (nor failed). `paid_early`: covered when the rest was paid
45474
+ * off in one go.
45475
+ */
45476
+ type PortalInstalmentStanding = 'paid' | 'paid_early' | 'to_come' | 'not_taken_yet' | 'failed' | 'waived' | 'cancelled';
45477
+ type PortalInstalment = Readonly<{
45478
+ key: string;
45479
+ dueAt: string;
45480
+ amount: PortalMoney;
45481
+ standing: PortalInstalmentStanding; /** The receipt for a paid one, when it can be found. */
45482
+ receiptId: string | null;
45483
+ }>;
45484
+ /** A payment plan still collecting: what's paid, what's to come, and the order's own line about it. */
45485
+ type PortalInstalmentPlan = Readonly<{
45486
+ orderId: string;
45487
+ orderNumber: string;
45488
+ for: PortalPaymentFor;
45489
+ total: PortalMoney;
45490
+ paid: PortalMoney; /** The server's sentence for where the order stands, the same one the order shows. */
45491
+ moneyLine: string;
45492
+ instalments: readonly PortalInstalment[]; /** The order's own to-do: what's asked now, and whether the rest can be paid early. */
45493
+ toDo: PortalPaymentToDo;
45494
+ }>;
45495
+ type PortalPaymentHistory = PortalPart<Readonly<{
45496
+ entries: readonly PortalPaymentEntry[];
45497
+ nextCursor: string | null;
45498
+ }>>;
45499
+ /**
45500
+ * An order the payments history can't show, because no money was paid
45501
+ * towards it (it was free, paid with credit or nothing was due) or only a
45502
+ * retained copy of it is kept. Listed so every order stays findable.
45503
+ */
45504
+ type PortalOtherOrder = Readonly<{
45505
+ order: PortalOrderName;
45506
+ at: string;
45507
+ total: PortalMoney; /** The order's own sentence for where its money stands. */
45508
+ moneyLine: string;
45509
+ }>;
45510
+ type PortalPaymentsResponse = Readonly<{
45511
+ /** Money to pay and membership payments that failed: the same tasks home lists for money. */toPay: PortalTaskList; /** Orders whose money the business is still working out, so the page doesn't say there's nothing to pay. */
45512
+ checking: number;
45513
+ plans: PortalPart<Readonly<{
45514
+ plans: readonly PortalInstalmentPlan[];
45515
+ }>>;
45516
+ history: PortalPaymentHistory; /** Orders with no payments to list, newest first; more than this many are left to the bookings and passes pages. */
45517
+ otherOrders: PortalPart<Readonly<{
45518
+ orders: readonly PortalOtherOrder[];
45519
+ }>>;
45520
+ contact: PortalBusinessContact;
45521
+ }>;
45522
+ /** Who sold it, as the business publishes itself. The address is left out when the business keeps it private. */
45523
+ type PortalSeller = Readonly<{
45524
+ name: string;
45525
+ address: string | null;
45526
+ email: string | null;
45527
+ phone: string | null;
45528
+ }>;
45529
+ type PortalReceipt = Readonly<{
45530
+ /** The stable id of this payment; there's no separate receipt number. */receiptId: string;
45531
+ paidAt: string;
45532
+ amount: PortalMoney;
45533
+ purpose: PortalPaymentPurpose;
45534
+ how: PortalPaidHow; /** The tax recorded as part of this payment when it was taken; null when none was. */
45535
+ tax: PortalMoney | null;
45536
+ seller: PortalSeller;
45537
+ paidBy: Readonly<{
45538
+ name: string | null;
45539
+ email: string;
45540
+ }>;
45541
+ order: Readonly<{
45542
+ orderId: string;
45543
+ orderNumber: string; /** What the order came to, line by line, from the money owner; credit is how part of it was paid. */
45544
+ breakdown: PortalOrderBreakdown; /** What the order asks of the customer now: what's left to pay, and when. */
45545
+ toDo: PortalPaymentToDo;
45546
+ }>; /** Refunds of this payment. */
45547
+ refunds: readonly PortalRefund[];
45548
+ checking: boolean;
45549
+ }>;
45550
+ type PortalReceiptResponse = Readonly<{
45551
+ receipt: PortalReceipt;
45552
+ }>;
45553
+ type PortalShipment = Readonly<{
45554
+ key: string;
45555
+ sentAt: string;
45556
+ carrier: string | null; /** Only a web address (http or https) the business gave. */
45557
+ trackingUrl: string | null;
45558
+ items: readonly Readonly<{
45559
+ label: string;
45560
+ quantity: number;
45561
+ }>[];
45562
+ }>;
45563
+ /** Whether anything in the order is posted, and where it's got to. */
45564
+ type PortalOrderPostage = Readonly<{
45565
+ kind: 'nothing_to_post';
45566
+ }> | Readonly<{
45567
+ kind: 'posted';
45568
+ standing: 'not_sent' | 'partly_sent' | 'sent';
45569
+ shipments: readonly PortalShipment[];
45570
+ }>;
45571
+ type PortalOrderPayment = Readonly<{
45572
+ receiptId: string;
45573
+ at: string;
45574
+ amount: PortalMoney;
45575
+ purpose: PortalPaymentPurpose;
45576
+ how: PortalPaidHow;
45577
+ }>;
45578
+ /** One order. What it asks of the customer now is `order.toDo`. */
45579
+ type PortalOrderPage = Readonly<{
45580
+ order: CustomerOrder; /** What the order came to, line by line, from the money owner. */
45581
+ breakdown: PortalOrderBreakdown; /** Its instalment plan, the same one the payments page shows; null when it has none. */
45582
+ plan: PortalInstalmentPlan | null;
45583
+ payments: readonly PortalOrderPayment[];
45584
+ refunds: readonly PortalRefund[];
45585
+ postage: PortalOrderPostage;
45586
+ contact: PortalBusinessContact;
45587
+ }>;
45588
+ type PortalOrderResponse = Readonly<{
45589
+ order: PortalOrderPage;
45590
+ }>;
45591
+ //#endregion
45592
+ //#region .cache/declarations/site-contracts/src/siteData/portalDetails.d.ts
45593
+ /**
45594
+ * The "Your details" page: who they are, the booking terms they last agreed
45595
+ * to, the business's newsletter as it stands for the email they sign in with,
45596
+ * and how to reach the business about their data. Terms and the newsletter are
45597
+ * each read on their own, so one that couldn't be read says so while the rest
45598
+ * shows.
45599
+ */
45600
+ /**
45601
+ * The booking terms the customer last ticked: which version, when, and where
45602
+ * that version can be read (null when the business no longer publishes it
45603
+ * anywhere we can link to).
45604
+ */
45605
+ type PortalTermsAgreement = Readonly<{
45606
+ versionNumber: number;
45607
+ agreedAt: string;
45608
+ href: string | null;
45609
+ }>;
45610
+ /** One of the business's newsletter topics, and whether this email gets it. */
45611
+ type PortalNewsletterTopic = Readonly<{
45612
+ id: string;
45613
+ name: string;
45614
+ description: string | null;
45615
+ selected: boolean;
45616
+ }>;
45617
+ /**
45618
+ * The business's newsletter for the signed-in email. An extensible point:
45619
+ * a kind this build doesn't know decodes to `unsupported`, shown without a way
45620
+ * to change anything.
45621
+ *
45622
+ * - `not_offered`: the business has no mailing list here.
45623
+ * - `elsewhere`: it runs its list with another service, so we can't see or change it.
45624
+ * - `not_subscribed`: this email isn't on the list.
45625
+ * - `awaiting_confirmation`: they signed up but haven't opened the confirmation email yet.
45626
+ * - `cannot_send`: emails to this address bounced or were reported, so none are sent.
45627
+ * - `choices`: on the list, confirmed. `general` is the main list; nothing
45628
+ * chosen means they've unsubscribed. Saving these choices is allowed.
45629
+ */
45630
+ type PortalNewsletter = Readonly<{
45631
+ kind: 'not_offered' | 'elsewhere' | 'not_subscribed' | 'awaiting_confirmation' | 'cannot_send';
45632
+ }> | Readonly<{
45633
+ kind: 'choices';
45634
+ general: boolean;
45635
+ topics: readonly PortalNewsletterTopic[];
45636
+ }>;
45637
+ type PortalDetailsResponse = Readonly<{
45638
+ profile: CustomerProfile; /** `agreement` is null when they've never ticked the business's booking terms. */
45639
+ terms: PortalPart<Readonly<{
45640
+ agreement: PortalTermsAgreement | null;
45641
+ }>>;
45642
+ newsletter: PortalPart<Readonly<{
45643
+ newsletter: PortalNewsletter;
45644
+ }>>;
45645
+ contact: PortalBusinessContact;
45646
+ }>;
45647
+ /** What the newsletter choices are saved as. Nothing chosen unsubscribes. */
45648
+ type PortalNewsletterUpdateRequest = Readonly<{
45649
+ general: boolean;
45650
+ topicIds: readonly string[];
45651
+ }>;
45652
+ /** The newsletter as it stands after saving. */
45653
+ type PortalNewsletterUpdateResponse = Readonly<{
45654
+ newsletter: PortalNewsletter;
45655
+ }>;
45656
+ //#endregion
45657
+ //#region .cache/declarations/site-contracts/src/siteData/portalOccurrenceBookings.d.ts
45658
+ /**
45659
+ * The signed-in customer's own confirmed bookings for one event date, for the
45660
+ * booking form's "you're already booked" reminder. Bookings they gave away,
45661
+ * cancelled ones and waitlist places aren't included (a waitlist place has its
45662
+ * own notice through admission).
45663
+ */
45664
+ type PortalOccurrenceBooking = Readonly<{
45665
+ id: string;
45666
+ occurrenceId: string;
45667
+ ticketsCount: number; /** "2 x Adult, 1 x Child", or null when the booking has no ticket lines to name. */
45668
+ ticketBreakdown: string | null;
45669
+ }>;
45670
+ type PortalOccurrenceBookingsResponse = Readonly<{
45671
+ bookings: readonly PortalOccurrenceBooking[];
45672
+ }>;
45673
+ //#endregion
45674
+ //#region .cache/declarations/site-contracts/src/siteData/portalRoutes.d.ts
45675
+ /**
45676
+ * The customer portal's addresses. One catch-all page serves every path under
45677
+ * `/portal`; this module is the only place that turns a page into a path
45678
+ * (`portalPath`) or a URL back into a page (`parsePortalLocation`). Emails,
45679
+ * the client, the SDK and the hosts all link through it.
45680
+ *
45681
+ * Old links live in issued emails for months, so every shape the portal has
45682
+ * ever emitted (`portal_tab`, `portal_task`, `portal_order`, `order=…`,
45683
+ * `/portal/tickets/…`, `/portal/digital-products/…`) keeps parsing to a page,
45684
+ * permanently. Parsing needs no session: the portal page reads the location
45685
+ * after sign-in exactly as before it.
45686
+ */
45687
+ type EventAttendeeRef = Extract<BookingContextRef, {
45688
+ tag: 'event_attendee';
45689
+ }>;
45690
+ type AppointmentRef = Extract<BookingContextRef, {
45691
+ tag: 'appointment';
45692
+ }>;
45693
+ /** Every page a link can point at. */
45694
+ type PortalTarget = Readonly<{
45695
+ page: 'home';
45696
+ }> | Readonly<{
45697
+ page: 'bookings';
45698
+ }> | Readonly<{
45699
+ page: 'booking';
45700
+ ref: BookingContextRef;
45701
+ }> | Readonly<{
45702
+ page: 'booking_questions';
45703
+ ref: BookingContextRef;
45704
+ }> | Readonly<{
45705
+ page: 'booking_cancel';
45706
+ ref: BookingContextRef;
45707
+ }> /** Whole-booking transfer; only dated events support it. */ | Readonly<{
45708
+ page: 'booking_transfer';
45709
+ ref: EventAttendeeRef;
45710
+ }> | Readonly<{
45711
+ page: 'booking_reschedule';
45712
+ ref: EventAttendeeRef | AppointmentRef;
45713
+ }> /** One ticket for the booking (D5). */ | Readonly<{
45714
+ page: 'ticket';
45715
+ ref: EventAttendeeRef;
45716
+ }> /** A place offered from a waitlist; shown with the other bookings. */ | Readonly<{
45717
+ page: 'waitlist_offer';
45718
+ entryId: WaitlistEntryId;
45719
+ }> /** Passes, memberships and site credit. */ | Readonly<{
45720
+ page: 'passes';
45721
+ }> | Readonly<{
45722
+ page: 'payments';
45723
+ }> /** One order, including an unpaid one a payment-link email points at. */ | Readonly<{
45724
+ page: 'order';
45725
+ orderId: OrderId;
45726
+ }> | Readonly<{
45727
+ page: 'receipt';
45728
+ receiptId: OrderPaymentReceiptId;
45729
+ }> | Readonly<{
45730
+ page: 'downloads';
45731
+ }> | Readonly<{
45732
+ page: 'download';
45733
+ entitlementId: EntitlementId;
45734
+ }> /** Sends the browser on to the file itself. */ | Readonly<{
45735
+ page: 'download_file';
45736
+ entitlementId: EntitlementId;
45737
+ assetId: MediaAssetId;
45738
+ }> | Readonly<{
45739
+ page: 'details';
45740
+ }> | Readonly<{
45741
+ page: 'sign_in';
45742
+ }> /** Where an emailed sign-in link lands before Continue is pressed. */ | Readonly<{
45743
+ page: 'continue';
45744
+ reason: PortalEntryReason;
45745
+ }>;
45746
+ /**
45747
+ * Why someone is on the Continue page, as the callback sent them there: they
45748
+ * opened a link, pressed Continue on a page another tab's link had replaced,
45749
+ * or asked for a new link and this is the answer. `none` is the page reached
45750
+ * any other way.
45751
+ */
45752
+ type PortalEntryReason = 'none' | 'opened' | 'stale' | 'link_sent' | 'link_limited' | 'demo_refused';
45753
+ /**
45754
+ * Pages the server renders on its own: Continue (before any session), tickets
45755
+ * and downloads. Every other page is the client portal's. The hosts' renderer
45756
+ * and the client's navigation both read this split, so neither can disagree
45757
+ * about who draws a page.
45758
+ */
45759
+ declare const SERVER_PORTAL_PAGES: readonly ['continue', 'ticket', 'download', 'download_file'];
45760
+ type ServerPortalPage = (typeof SERVER_PORTAL_PAGES)[number];
45761
+ type ClientPortalTarget = Exclude<PortalTarget, Readonly<{
45762
+ page: ServerPortalPage;
45763
+ }>>;
45764
+ /** What a URL under the portal shows: one of its pages, or nothing. */
45765
+ type PortalRoute = PortalTarget | Readonly<{
45766
+ page: 'not_found';
45767
+ }>;
45768
+ /**
45769
+ * An outcome the URL itself carries, read once on arrival. Signing in and
45770
+ * coming back from checkout are separate facts, so one URL can carry both.
45771
+ */
45772
+ type PortalArrival = 'signed_in' | 'order_paid' | 'order_checkout_left';
45773
+ type PortalLocation = Readonly<{
45774
+ route: PortalRoute; /** Sign-in first, then the checkout outcome; each at most once. */
45775
+ arrivals: readonly PortalArrival[];
45776
+ /**
45777
+ * The address to show instead of the one visited, when it was an old shape
45778
+ * or carried a one-off outcome; null when it's already right. Unknown query
45779
+ * parameters are kept.
45780
+ */
45781
+ rewrite: string | null;
45782
+ }>;
45783
+ /** The portal's root on every site; nothing else defines it. */
45784
+ /** A location on a page the client portal draws: what the host hands the client. */
45785
+ type ClientPortalLocation = Omit<PortalLocation, 'route'> & Readonly<{
45786
+ route: ClientPortalTarget;
45787
+ }>;
45788
+ declare const CUSTOMER_PORTAL_PATH = "/portal";
44439
45789
  //#endregion
44440
45790
  //#region .cache/declarations/site-contracts/src/siteData/portalActions.d.ts
44441
45791
  /**
@@ -44446,6 +45796,8 @@ interface PortalMeResponse {
44446
45796
  profile: CustomerProfile;
44447
45797
  modules: EnabledModules;
44448
45798
  }
45799
+ /** What PATCH /api/portal/me answers with. */
45800
+ type PortalMeUpdateResponse = Omit<PortalMeResponse, 'siteTermsAcceptance'>;
44449
45801
  interface PortalMeUpdateRequest {
44450
45802
  name?: string;
44451
45803
  phone?: string | null;
@@ -44481,9 +45833,6 @@ type MagicLinkResponse = {
44481
45833
  } | {
44482
45834
  demoSignInUrl: string;
44483
45835
  };
44484
- interface PortalCreditResponse {
44485
- credit: PortalCredit | null;
44486
- }
44487
45836
  interface PortalOrderCheckoutRequest {
44488
45837
  successUrl: string;
44489
45838
  cancelUrl: string;
@@ -44557,8 +45906,22 @@ interface PortalCancelWholeSeriesRegistrationResult {
44557
45906
  refunded: boolean;
44558
45907
  refund?: PortalRefundInfo;
44559
45908
  requiresCancelWithoutRefundConfirmation?: boolean;
45909
+ /** What happened to the customer's money, as the server decided it. */
45910
+ money: PortalCancelledMoney;
45911
+ /**
45912
+ * The server's sentence for something other than the money that still
45913
+ * needs attention once the booking is cancelled (remaining payments on a
45914
+ * plan still going through, or not checked); null when there's nothing.
45915
+ */
45916
+ followUp: string | null;
44560
45917
  message: string;
44561
45918
  }
45919
+ /**
45920
+ * What a cancellation did with the customer's money, decided by the server so
45921
+ * a page only words it (core's `cancelledMoneySentence`). An extensible
45922
+ * point: a kind a newer server adds reads as `unsupported`.
45923
+ */
45924
+ type PortalCancelledMoney = CancelledMoney;
44562
45925
  interface PortalRefundInfo {
44563
45926
  status: "succeeded" | "failed" | "skipped";
44564
45927
  amountCents: number | null;
@@ -44682,6 +46045,13 @@ interface PortalCancelEventRegistrationResult {
44682
46045
  refunded: boolean;
44683
46046
  refund?: PortalRefundInfo;
44684
46047
  requiresCancelWithoutRefundConfirmation?: boolean;
46048
+ money: PortalCancelledMoney;
46049
+ /**
46050
+ * The server's sentence for something other than the money that still
46051
+ * needs attention once the booking is cancelled (remaining payments on a
46052
+ * plan still going through, or not checked); null when there's nothing.
46053
+ */
46054
+ followUp: string | null;
44685
46055
  message: string;
44686
46056
  }
44687
46057
  interface PortalCancelAppointmentResult {
@@ -44689,7 +46059,13 @@ interface PortalCancelAppointmentResult {
44689
46059
  refunded: boolean;
44690
46060
  refund?: PortalRefundInfo;
44691
46061
  requiresCancelWithoutRefundConfirmation?: boolean;
44692
- failedToRestoreCredit?: boolean;
46062
+ money: PortalCancelledMoney;
46063
+ /**
46064
+ * The server's sentence for something other than the money that still
46065
+ * needs attention once the booking is cancelled (remaining payments on a
46066
+ * plan still going through, or not checked); null when there's nothing.
46067
+ */
46068
+ followUp: string | null;
44693
46069
  message: string;
44694
46070
  }
44695
46071
  interface PortalTransferEventRegistrationRequest {
@@ -44701,9 +46077,23 @@ interface PortalTransferEventRegistrationResult {
44701
46077
  message: string;
44702
46078
  transferId?: string;
44703
46079
  }
46080
+ /** Why a membership change left it as it was. */
46081
+ type PortalMembershipUnchangedReason = /** It was already as asked: already set to end, or not set to end. */'already_so' | 'already_ended' /** Added by the business for a set time, so there's no renewal to stop or restart. */ | 'does_not_renew' /** Online payments aren't connected, so it can't be changed here. */ | 'cannot_change_online';
46082
+ /** How a cancel or keep went, as the membership's owner decided it. */
46083
+ type PortalMembershipChangeOutcome = Readonly<{
46084
+ kind: 'changed';
46085
+ }> | Readonly<{
46086
+ kind: 'unchanged';
46087
+ reason: PortalMembershipUnchangedReason;
46088
+ }> /** The payment provider hasn't confirmed it yet; it finishes by itself. */ | Readonly<{
46089
+ kind: 'settling';
46090
+ }>;
44704
46091
  interface PortalCancelMembershipAtPeriodEndResult {
46092
+ /** Whether it's set to end now (the old portal reads this; the new one reads `outcome`). */
44705
46093
  cancelled: boolean;
46094
+ /** The customer's words for what happened, including bookings it cancelled or still has to. */
44706
46095
  message: string;
46096
+ outcome: PortalMembershipChangeOutcome;
44707
46097
  }
44708
46098
  //#endregion
44709
46099
  //#region .cache/declarations/site-contracts/src/siteData/giftClaims.d.ts
@@ -61474,59 +62864,6 @@ declare const headerInteractionPaletteSchema: z$1.ZodEnum<{
61474
62864
  type HeaderInteractionPalette = z$1.infer<typeof headerInteractionPaletteSchema>;
61475
62865
  type HeaderInteractionPalettePreference = 'recommended' | HeaderInteractionPalette;
61476
62866
  //#endregion
61477
- //#region .cache/declarations/site-contracts/src/theme/hostedBooking.d.ts
61478
- /**
61479
- * The complete appearance contract accepted by the hosted-booking renderer.
61480
- * It deliberately contains only the simplified theme choices: semantic
61481
- * palette, palette mode, two font roles, and the canonical corner shape.
61482
- */
61483
- declare const hostedBookingAppearanceSchema: z$1.ZodObject<{
61484
- palette: z$1.ZodPipe<z$1.ZodObject<{
61485
- primary: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61486
- primaryForeground: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61487
- secondary: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61488
- accent: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61489
- success: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61490
- warning: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61491
- destructive: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61492
- background: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61493
- surface: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61494
- surfaceAlt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61495
- muted: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61496
- text: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61497
- border: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
61498
- }, z$1.core.$strict>, z$1.ZodTransform<Readonly<Record<"accent" | "background" | "border" | "destructive" | "muted" | "primary" | "primaryForeground" | "secondary" | "success" | "surface" | "surfaceAlt" | "text" | "warning", HexColor>>, {
61499
- primary: HexColor;
61500
- primaryForeground: HexColor;
61501
- secondary: HexColor;
61502
- accent: HexColor;
61503
- success: HexColor;
61504
- warning: HexColor;
61505
- destructive: HexColor;
61506
- background: HexColor;
61507
- surface: HexColor;
61508
- surfaceAlt: HexColor;
61509
- muted: HexColor;
61510
- text: HexColor;
61511
- border: HexColor;
61512
- }>>;
61513
- paletteMode: z$1.ZodEnum<{
61514
- dark: "dark";
61515
- light: "light";
61516
- }>;
61517
- typography: z$1.ZodObject<{
61518
- headingFamily: z$1.ZodString;
61519
- bodyFamily: z$1.ZodString;
61520
- }, z$1.core.$strict>;
61521
- corners: z$1.ZodEnum<{
61522
- pill: "pill";
61523
- rounded: "rounded";
61524
- soft: "soft";
61525
- square: "square";
61526
- }>;
61527
- }, z$1.core.$strict>;
61528
- type HostedBookingAppearance = Readonly<z$1.infer<typeof hostedBookingAppearanceSchema>>;
61529
- //#endregion
61530
62867
  //#region .cache/declarations/site-contracts/src/theme/logoFacts.d.ts
61531
62868
  type LogoTextConfidence = 'low' | 'medium' | 'high';
61532
62869
  type LogoContainsText = Readonly<{
@@ -62594,125 +63931,6 @@ type BlockSiteTerms = Readonly<{
62594
63931
  href: string | null;
62595
63932
  }>;
62596
63933
  //#endregion
62597
- //#region .cache/declarations/blocks/src/portal/appointmentTypes.d.ts
62598
- /**
62599
- * Customer appointment data from /api/portal/appointments
62600
- * Note: status uses British spelling 'cancelled'
62601
- */
62602
- interface CustomerAppointment {
62603
- joiningDetails?: PortalJoiningDetails | null;
62604
- timeZone: string;
62605
- isOnline: boolean;
62606
- id: string;
62607
- serviceId: string;
62608
- serviceName: string;
62609
- resourceId: string | null;
62610
- resourceName: string | null;
62611
- startAt: string;
62612
- endAt: string;
62613
- status: 'requested' | 'scheduled' | 'pending' | 'confirmed' | 'completed' | 'cancelled' | 'no_show';
62614
- notes: string | null;
62615
- createdAt: string;
62616
- requestedAt: string | null;
62617
- requestOutcome: AppointmentRequestOutcome | null;
62618
- requestDecidedAt: string | null;
62619
- beforeYouCome: PortalBeforeYouComeTask | null;
62620
- cancellation: {
62621
- canCancel: boolean;
62622
- canAutoRefundOnCancel: boolean;
62623
- refundCutoffAt: string | null;
62624
- moneyOnCancel: CancellationMoneyOutcome; /** Remind them of the site's booking terms before they confirm. */
62625
- termsApplyOnCancel?: boolean;
62626
- };
62627
- reschedule: {
62628
- kind: 'available';
62629
- cutoffAt: string;
62630
- } | {
62631
- kind: 'unavailable';
62632
- reason: 'appointments_disabled' | 'missing_service' | 'request_waiting' | 'not_future' | 'cutoff_passed' | 'policy_disabled';
62633
- cutoffAt: string | null;
62634
- };
62635
- rebook: {
62636
- kind: 'available';
62637
- } | {
62638
- kind: 'unavailable';
62639
- reason: 'appointments_disabled' | 'upcoming' | 'missing_service';
62640
- };
62641
- }
62642
- //#endregion
62643
- //#region .cache/declarations/blocks/src/portal/regularSessionTypes.d.ts
62644
- /**
62645
- * A client's regular sessions, from GET /api/portal/appointments/regular-sessions.
62646
- * Mirrors `PortalRegularSessionsResponse` in `@riverbankcms/api/bookings`; the
62647
- * dashboard's typetest keeps the two in step.
62648
- */
62649
- type PortalRegularSessionWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
62650
- type PortalRegularSessionCadence = Readonly<{
62651
- kind: 'weekly';
62652
- everyWeeks: 1 | 2;
62653
- weekday: PortalRegularSessionWeekday;
62654
- }> | Readonly<{
62655
- kind: 'monthly';
62656
- weekday: PortalRegularSessionWeekday;
62657
- nth: 1 | 2 | 3 | 4 | 'last';
62658
- }>;
62659
- type PortalRegularSessionDate = Readonly<{
62660
- state: 'booked';
62661
- occurrence: string;
62662
- appointmentId: string;
62663
- startAt: string;
62664
- endAt: string;
62665
- }> | Readonly<{
62666
- state: 'held' | 'open' | 'trainer_away';
62667
- occurrence: string;
62668
- startAt: string;
62669
- endAt: string;
62670
- }> | Readonly<{
62671
- state: 'away';
62672
- occurrence: string;
62673
- }>;
62674
- type PortalRegularSessionPayment = Readonly<{
62675
- kind: 'package';
62676
- name: string | null;
62677
- sessionsLeft: number;
62678
- }> | Readonly<{
62679
- kind: 'owed' | 'payment_link';
62680
- }>;
62681
- type PortalRegularSession = Readonly<{
62682
- timezone: string;
62683
- schedule: Readonly<{
62684
- effectiveFrom: string;
62685
- cadence: PortalRegularSessionCadence;
62686
- localStart: string;
62687
- }>;
62688
- trainerName: string | null;
62689
- serviceName: string | null;
62690
- holdsTime: boolean;
62691
- payment: PortalRegularSessionPayment;
62692
- dates: readonly PortalRegularSessionDate[];
62693
- }>;
62694
- //#endregion
62695
- //#region .cache/declarations/blocks/src/system/runtime/api/types/portal.d.ts
62696
- interface PortalUpdateAppointmentBookingQuestionsRequest {
62697
- answers: Record<string, unknown>;
62698
- }
62699
- type PortalEventsResponse = Readonly<{
62700
- registrations: CustomerEventRegistration[];
62701
- waitlists: CustomerPortalWaitlistEntry[];
62702
- }>;
62703
- type PortalBookingQuestionsUploadUrlRequest = Readonly<{
62704
- fieldId: string;
62705
- filename: string;
62706
- bytes: number;
62707
- }>;
62708
- type PortalBookingQuestionsFinalizeUploadRequest = Readonly<{
62709
- fieldId: string;
62710
- uploadId: string;
62711
- }>;
62712
- type PortalWaitlistCancellationResult = Readonly<{
62713
- outcome: 'cancelled' | 'alreadyClosed' | 'notFound';
62714
- }>;
62715
- //#endregion
62716
63934
  //#region .cache/declarations/blocks/src/system/runtime/shared/navigation/pageNavigation.d.ts
62717
63935
  declare const pageNavigationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
62718
63936
  kind: z$1.ZodLiteral<"page">;
@@ -62771,6 +63989,70 @@ interface BlockApiConfig {
62771
63989
  /** Bound hosted browsing authority; legacy SDK auth/stage fields cannot override it. */
62772
63990
  readAuthority?: BrowserReadAuthority;
62773
63991
  }
63992
+ /**
63993
+ * Field-level validation detail carried on an error envelope.
63994
+ *
63995
+ * The same shape as `FieldError` in `@riverbankcms/api` and
63996
+ * `RiverbankApiError['fieldErrors']` in the SDK. Blocks does not depend on
63997
+ * `@riverbankcms/api`, so the shape is restated here rather than imported.
63998
+ */
63999
+ interface ApiFieldError {
64000
+ field: string;
64001
+ code: string;
64002
+ message: string;
64003
+ }
64004
+ //#endregion
64005
+ //#region .cache/declarations/blocks/src/portal/api/portalApiError.d.ts
64006
+ /**
64007
+ * Every way a portal call can fail, closed so a page decides once what each
64008
+ * one looks like. Messages are the server's when it sent one, and safe to show.
64009
+ */
64010
+ type PortalApiError = /** No session, or it expired: the page offers sign-in again. */Readonly<{
64011
+ kind: 'signed_out';
64012
+ }> | Readonly<{
64013
+ kind: 'not_found';
64014
+ message: string;
64015
+ }> /** The booking or record changed under them (already cancelled, offer closed). */ | Readonly<{
64016
+ kind: 'conflict';
64017
+ code: string | null;
64018
+ message: string;
64019
+ }>
64020
+ /** The server refused this request: validation, a rule, or not theirs to change. */
64021
+ /** `retryAfterSeconds` is the server's Retry-After, when it limited how often this can be asked. */
64022
+ | Readonly<{
64023
+ kind: 'rejected';
64024
+ status: number;
64025
+ code: string | null;
64026
+ message: string;
64027
+ fieldErrors: readonly ApiFieldError[];
64028
+ retryAfterSeconds: number | null;
64029
+ }> | Readonly<{
64030
+ kind: 'unavailable';
64031
+ status: number;
64032
+ message: string;
64033
+ }> /** The request never got an answer. */ | Readonly<{
64034
+ kind: 'network';
64035
+ message: string;
64036
+ }> /** The answer wasn't what the contract says; `issues` are for logs, not customers. */ | Readonly<{
64037
+ kind: 'unreadable';
64038
+ endpoint: string;
64039
+ issues: readonly string[];
64040
+ }>;
64041
+ //#endregion
64042
+ //#region .cache/declarations/blocks/src/portal/api/portalTransport.d.ts
64043
+ type PortalResult<T> = Promise<Result<T, PortalApiError>>;
64044
+ //#endregion
64045
+ //#region .cache/declarations/blocks/src/portal/api/portalVisitor.d.ts
64046
+ /**
64047
+ * What a public page, such as a booking form, may read about the customer
64048
+ * signed in to the portal: who they are, and which bookings they already hold
64049
+ * for a date. Each answer is decoded once and a failure is a value, so a page
64050
+ * can tell "couldn't check" from "nothing there".
64051
+ */
64052
+ type PortalVisitorApi = Readonly<{
64053
+ profile(): PortalResult<PortalMeResponse>; /** The customer's own confirmed bookings for this event date. */
64054
+ occurrenceBookings(occurrenceId: string): PortalResult<readonly PortalOccurrenceBooking[]>;
64055
+ }>;
62774
64056
  //#endregion
62775
64057
  //#region .cache/declarations/altcha/src/protection.d.ts
62776
64058
  /** Authorization is issued only by the live verification owner, never from a caller's string. */
@@ -64958,7 +66240,7 @@ declare const API_ENDPOINTS: {
64958
66240
  method: "DELETE";
64959
66241
  auth: "user";
64960
66242
  responseKind: "json";
64961
- errors: ("resource:not_found" | "server:internal_error")[];
66243
+ errors: ("resource:conflict" | "resource:not_found" | "server:internal_error")[];
64962
66244
  };
64963
66245
  readonly getAppointmentSetup: {
64964
66246
  path: "/sites/{siteId}/bookings/appointment-setup";
@@ -69122,7 +70404,7 @@ declare const API_ENDPOINTS: {
69122
70404
  readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:site:{siteId}:redirects", "riverbank:site:{siteId}:route-outcomes"];
69123
70405
  readonly auth: 'public';
69124
70406
  readonly responseKind: 'json';
69125
- readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
70407
+ readonly errors: readonly ["server:internal_error"];
69126
70408
  };
69127
70409
  readonly resolveRouteDecision: {
69128
70410
  readonly path: '/sites/{siteId}/route-decision';
@@ -69130,7 +70412,7 @@ declare const API_ENDPOINTS: {
69130
70412
  readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:site:{siteId}:redirects", "riverbank:site:{siteId}:route-outcomes"];
69131
70413
  readonly auth: 'public';
69132
70414
  readonly responseKind: 'json';
69133
- readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
70415
+ readonly errors: readonly ["server:internal_error"];
69134
70416
  };
69135
70417
  readonly getPageByPath: {
69136
70418
  readonly path: '/sites/{siteId}/pages';
@@ -69639,7 +70921,7 @@ declare const API_ENDPOINTS: {
69639
70921
  readonly tags: ["backup"];
69640
70922
  readonly auth: 'user';
69641
70923
  readonly responseKind: 'json';
69642
- readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
70924
+ readonly errors: readonly ["server:internal_error"];
69643
70925
  };
69644
70926
  readonly deleteBackupUpload: {
69645
70927
  readonly path: '/backup/upload';
@@ -70057,7 +71339,7 @@ declare const API_ENDPOINTS: {
70057
71339
  readonly auth: 'user';
70058
71340
  readonly responseKind: 'json';
70059
71341
  readonly demoMutation: ApiDemoMutationPolicy;
70060
- readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
71342
+ readonly errors: readonly ["server:internal_error"];
70061
71343
  };
70062
71344
  readonly getBookingPass: {
70063
71345
  readonly path: '/sites/{siteId}/bookings/passes/{passId}';
@@ -70113,7 +71395,7 @@ declare const API_ENDPOINTS: {
70113
71395
  readonly auth: 'user';
70114
71396
  readonly responseKind: 'json';
70115
71397
  readonly demoMutation: ApiDemoMutationPolicy;
70116
- readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
71398
+ readonly errors: readonly ["server:internal_error"];
70117
71399
  };
70118
71400
  readonly getBookingMembership: {
70119
71401
  readonly path: '/sites/{siteId}/bookings/memberships/{membershipId}';
@@ -71124,18 +72406,19 @@ declare const API_ENDPOINTS: {
71124
72406
  readonly auth: 'public';
71125
72407
  readonly responseKind: 'json';
71126
72408
  };
71127
- readonly portalGetCredit: {
71128
- readonly path: '/portal/credit';
72409
+ readonly portalGetDetails: {
72410
+ readonly path: '/portal/details';
71129
72411
  readonly method: 'GET';
71130
72412
  readonly auth: 'public';
71131
72413
  readonly responseKind: 'json';
72414
+ readonly errors: readonly ["server:internal_error"];
71132
72415
  };
71133
- readonly portalGetOrders: {
71134
- readonly path: '/portal/orders';
71135
- readonly method: 'GET';
71136
- readonly errors: readonly [];
72416
+ readonly portalUpdateNewsletter: {
72417
+ readonly path: '/portal/details/newsletter';
72418
+ readonly method: 'PATCH';
71137
72419
  readonly auth: 'public';
71138
72420
  readonly responseKind: 'json';
72421
+ readonly errors: readonly ["validation:invalid_input", "resource:conflict", "server:internal_error"];
71139
72422
  };
71140
72423
  readonly portalCreateOrderCheckout: {
71141
72424
  readonly path: '/portal/orders/{orderId}/checkout';
@@ -71172,42 +72455,74 @@ declare const API_ENDPOINTS: {
71172
72455
  readonly auth: 'public';
71173
72456
  readonly responseKind: 'json';
71174
72457
  };
71175
- readonly portalGetPasses: {
71176
- readonly path: '/portal/passes';
72458
+ readonly portalGetEventTicket: {
72459
+ readonly path: '/portal/events/{registrationId}/ticket';
71177
72460
  readonly method: 'GET';
71178
72461
  readonly auth: 'public';
71179
72462
  readonly responseKind: 'json';
71180
72463
  };
71181
- readonly portalGetMemberships: {
71182
- readonly path: '/portal/memberships';
72464
+ readonly portalGetRegularSessions: {
72465
+ readonly path: '/portal/appointments/regular-sessions';
71183
72466
  readonly method: 'GET';
71184
72467
  readonly auth: 'public';
71185
72468
  readonly responseKind: 'json';
72469
+ readonly errors: readonly ["server:internal_error"];
71186
72470
  };
71187
- readonly portalGetEvents: {
71188
- readonly path: '/portal/events';
72471
+ readonly portalGetBookings: {
72472
+ readonly path: '/portal/bookings';
71189
72473
  readonly method: 'GET';
71190
72474
  readonly auth: 'public';
71191
72475
  readonly responseKind: 'json';
72476
+ readonly errors: readonly ["server:internal_error"];
71192
72477
  };
71193
- readonly portalGetEventTicket: {
71194
- readonly path: '/portal/events/{registrationId}/ticket';
72478
+ readonly portalGetHome: {
72479
+ readonly path: '/portal/home';
71195
72480
  readonly method: 'GET';
71196
72481
  readonly auth: 'public';
71197
72482
  readonly responseKind: 'json';
72483
+ readonly errors: readonly ["server:internal_error"];
71198
72484
  };
71199
- readonly portalGetRegularSessions: {
71200
- readonly path: '/portal/appointments/regular-sessions';
72485
+ readonly portalGetOccurrenceBookings: {
72486
+ readonly path: '/portal/occurrences/{occurrenceId}/bookings';
71201
72487
  readonly method: 'GET';
71202
72488
  readonly auth: 'public';
71203
72489
  readonly responseKind: 'json';
71204
72490
  readonly errors: readonly ["server:internal_error"];
71205
72491
  };
71206
- readonly portalGetAppointments: {
71207
- readonly path: '/portal/appointments';
72492
+ readonly portalGetHoldings: {
72493
+ readonly path: '/portal/holdings';
72494
+ readonly method: 'GET';
72495
+ readonly auth: 'public';
72496
+ readonly responseKind: 'json';
72497
+ readonly errors: readonly ["server:internal_error"];
72498
+ };
72499
+ readonly portalGetPayments: {
72500
+ readonly path: '/portal/payments';
72501
+ readonly method: 'GET';
72502
+ readonly auth: 'public';
72503
+ readonly responseKind: 'json';
72504
+ readonly errors: readonly ["server:internal_error"];
72505
+ };
72506
+ readonly portalGetReceipt: {
72507
+ readonly path: '/portal/payments/receipts/{receiptId}';
72508
+ readonly method: 'GET';
72509
+ readonly auth: 'public';
72510
+ readonly responseKind: 'json';
72511
+ readonly errors: readonly ["resource:not_found", "server:internal_error"];
72512
+ };
72513
+ readonly portalGetOrder: {
72514
+ readonly path: '/portal/orders/{orderId}';
72515
+ readonly method: 'GET';
72516
+ readonly auth: 'public';
72517
+ readonly responseKind: 'json';
72518
+ readonly errors: readonly ["resource:not_found", "server:internal_error"];
72519
+ };
72520
+ readonly portalGetBooking: {
72521
+ readonly path: '/portal/bookings/{kind}/{bookingId}';
71208
72522
  readonly method: 'GET';
71209
72523
  readonly auth: 'public';
71210
72524
  readonly responseKind: 'json';
72525
+ readonly errors: readonly ["resource:not_found", "server:internal_error"];
71211
72526
  };
71212
72527
  readonly portalGetAppointmentBookingQuestions: {
71213
72528
  readonly path: '/portal/appointments/{appointmentId}/booking-questions';
@@ -71278,13 +72593,6 @@ declare const API_ENDPOINTS: {
71278
72593
  readonly responseKind: 'json';
71279
72594
  readonly errors: readonly ["validation:invalid_input", "resource:not_found", "auth:forbidden", "resource:conflict", "server:internal_error"];
71280
72595
  };
71281
- readonly portalGetWholeSeriesRegistrations: {
71282
- readonly path: '/portal/dated-offerings/whole-series';
71283
- readonly method: 'GET';
71284
- readonly auth: 'public';
71285
- readonly responseKind: 'json';
71286
- readonly errors: readonly ["server:internal_error"];
71287
- };
71288
72596
  readonly portalGetWholeSeriesBookingQuestions: {
71289
72597
  readonly path: '/portal/dated-offerings/whole-series/{registrationId}/booking-questions';
71290
72598
  readonly method: 'GET';
@@ -71664,6 +72972,18 @@ declare const websiteOperationRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
71664
72972
  }, z$1.core.$strict>>>;
71665
72973
  sections: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.core.$ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
71666
72974
  }, z$1.core.$strict>>;
72975
+ }, z$1.core.$strict>, z$1.ZodObject<{
72976
+ operation: z$1.ZodLiteral<"edit_team_member_profile">;
72977
+ siteId: z$1.ZodString;
72978
+ profiles: z$1.ZodArray<z$1.ZodObject<{
72979
+ staffMemberId: z$1.ZodString;
72980
+ optimisticHash: z$1.ZodString;
72981
+ bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
72982
+ type: z$1.ZodLiteral<"doc">;
72983
+ content: z$1.ZodArray<z$1.ZodUnknown>;
72984
+ }, z$1.core.$strict>>>;
72985
+ facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
72986
+ }, z$1.core.$strict>>;
71667
72987
  }, z$1.core.$strict>, z$1.ZodObject<{
71668
72988
  operation: z$1.ZodLiteral<"prepare_page_section_changes">;
71669
72989
  siteId: z$1.ZodString;
@@ -71857,6 +73177,7 @@ declare const websiteReceiptSchema: z$1.ZodObject<{
71857
73177
  change_opening_hours: "change_opening_hours";
71858
73178
  change_public_contact: "change_public_contact";
71859
73179
  edit_event_page_content: "edit_event_page_content";
73180
+ edit_team_member_profile: "edit_team_member_profile";
71860
73181
  prepare_page_section_changes: "prepare_page_section_changes";
71861
73182
  }>;
71862
73183
  targetId: z$1.ZodString;
@@ -71889,6 +73210,21 @@ declare const websiteReceiptSchema: z$1.ZodObject<{
71889
73210
  live: "live";
71890
73211
  }>>;
71891
73212
  }, z$1.core.$strict>>>;
73213
+ profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
73214
+ staffMemberId: z$1.ZodString;
73215
+ name: z$1.ZodString;
73216
+ status: z$1.ZodEnum<{
73217
+ fact_conflict: "fact_conflict";
73218
+ failed: "failed";
73219
+ invalid: "invalid";
73220
+ lease_held: "lease_held";
73221
+ not_saved: "not_saved";
73222
+ saved: "saved";
73223
+ stale: "stale";
73224
+ unchanged: "unchanged";
73225
+ }>;
73226
+ message: z$1.ZodOptional<z$1.ZodString>;
73227
+ }, z$1.core.$strict>>>;
71892
73228
  effect: z$1.ZodEnum<{
71893
73229
  "already-set": "already-set";
71894
73230
  unchanged: "unchanged";
@@ -72222,6 +73558,57 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
72222
73558
  sections: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.core.$ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
72223
73559
  }, z$1.core.$strict>>;
72224
73560
  }, z$1.core.$strict>;
73561
+ }, z$1.core.$strict>, z$1.ZodObject<{
73562
+ kind: z$1.ZodLiteral<"preview">;
73563
+ confirmation: z$1.ZodString;
73564
+ mentions: z$1.ZodOptional<z$1.ZodObject<{
73565
+ pages: z$1.ZodArray<z$1.ZodObject<{
73566
+ pageId: z$1.ZodString;
73567
+ title: z$1.ZodNullable<z$1.ZodString>;
73568
+ path: z$1.ZodNullable<z$1.ZodString>;
73569
+ snippet: z$1.ZodObject<{
73570
+ before: z$1.ZodString;
73571
+ match: z$1.ZodString;
73572
+ after: z$1.ZodString;
73573
+ }, z$1.core.$strict>;
73574
+ stage: z$1.ZodEnum<{
73575
+ both: "both";
73576
+ draft: "draft";
73577
+ published: "published";
73578
+ }>;
73579
+ }, z$1.core.$strict>>;
73580
+ scanned: z$1.ZodNumber;
73581
+ matchedPages: z$1.ZodNumber;
73582
+ }, z$1.core.$strict>>;
73583
+ subject: z$1.ZodString;
73584
+ rows: z$1.ZodArray<z$1.ZodObject<{
73585
+ label: z$1.ZodString;
73586
+ summary: z$1.ZodOptional<z$1.ZodString>;
73587
+ saveMode: z$1.ZodOptional<z$1.ZodEnum<{
73588
+ draft: "draft";
73589
+ liveWhenOnline: "liveWhenOnline";
73590
+ }>>;
73591
+ before: z$1.ZodNullable<z$1.ZodString>;
73592
+ after: z$1.ZodNullable<z$1.ZodString>;
73593
+ }, z$1.core.$strict>>;
73594
+ changes: z$1.ZodArray<z$1.ZodNever>;
73595
+ consequences: z$1.ZodArray<z$1.ZodNever>;
73596
+ choices: z$1.ZodArray<z$1.ZodNever>;
73597
+ operation: z$1.ZodLiteral<"edit_team_member_profile">;
73598
+ request: z$1.ZodObject<{
73599
+ operation: z$1.ZodLiteral<"edit_team_member_profile">;
73600
+ siteId: z$1.ZodString;
73601
+ profiles: z$1.ZodArray<z$1.ZodObject<{
73602
+ staffMemberId: z$1.ZodString;
73603
+ optimisticHash: z$1.ZodString;
73604
+ bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
73605
+ type: z$1.ZodLiteral<"doc">;
73606
+ content: z$1.ZodArray<z$1.ZodUnknown>;
73607
+ }, z$1.core.$strict>>>;
73608
+ facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
73609
+ }, z$1.core.$strict>>;
73610
+ }, z$1.core.$strict>;
73611
+ savedProfileCount: z$1.ZodNumber;
72225
73612
  }, z$1.core.$strict>, z$1.ZodObject<{
72226
73613
  kind: z$1.ZodLiteral<"preview">;
72227
73614
  confirmation: z$1.ZodString;
@@ -72424,6 +73811,7 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
72424
73811
  change_opening_hours: "change_opening_hours";
72425
73812
  change_public_contact: "change_public_contact";
72426
73813
  edit_event_page_content: "edit_event_page_content";
73814
+ edit_team_member_profile: "edit_team_member_profile";
72427
73815
  prepare_page_section_changes: "prepare_page_section_changes";
72428
73816
  }>;
72429
73817
  targetId: z$1.ZodString;
@@ -72456,6 +73844,21 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
72456
73844
  live: "live";
72457
73845
  }>>;
72458
73846
  }, z$1.core.$strict>>>;
73847
+ profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
73848
+ staffMemberId: z$1.ZodString;
73849
+ name: z$1.ZodString;
73850
+ status: z$1.ZodEnum<{
73851
+ fact_conflict: "fact_conflict";
73852
+ failed: "failed";
73853
+ invalid: "invalid";
73854
+ lease_held: "lease_held";
73855
+ not_saved: "not_saved";
73856
+ saved: "saved";
73857
+ stale: "stale";
73858
+ unchanged: "unchanged";
73859
+ }>;
73860
+ message: z$1.ZodOptional<z$1.ZodString>;
73861
+ }, z$1.core.$strict>>>;
72459
73862
  effect: z$1.ZodEnum<{
72460
73863
  "already-set": "already-set";
72461
73864
  unchanged: "unchanged";
@@ -72639,239 +74042,290 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
72639
74042
  changes: z$1.ZodArray<z$1.ZodNever>;
72640
74043
  consequences: z$1.ZodArray<z$1.ZodNever>;
72641
74044
  choices: z$1.ZodArray<z$1.ZodNever>;
72642
- operation: z$1.ZodLiteral<"prepare_page_section_changes">;
74045
+ operation: z$1.ZodLiteral<"prepare_page_section_changes">;
74046
+ request: z$1.ZodObject<{
74047
+ operation: z$1.ZodLiteral<"prepare_page_section_changes">;
74048
+ siteId: z$1.ZodString;
74049
+ changes: z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
74050
+ kind: z$1.ZodLiteral<"create">;
74051
+ subject: z$1.ZodEnum<{
74052
+ event: "event";
74053
+ service: "service";
74054
+ "team-member": "team-member";
74055
+ }>;
74056
+ label: z$1.ZodString;
74057
+ hint: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodNullable<z$1.ZodString>, z$1.ZodTransform<string | null, string | null>>>;
74058
+ shape: z$1.core.$ZodType<SectionShape, unknown, z$1.core.$ZodTypeInternals<SectionShape, unknown>>;
74059
+ applicability: z$1.core.$ZodType<Applicability, unknown, z$1.core.$ZodTypeInternals<Applicability, unknown>>;
74060
+ }, z$1.core.$strict>, z$1.ZodObject<{
74061
+ kind: z$1.ZodLiteral<"update">;
74062
+ subject: z$1.ZodEnum<{
74063
+ event: "event";
74064
+ service: "service";
74065
+ "team-member": "team-member";
74066
+ }>;
74067
+ sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
74068
+ changes: z$1.ZodObject<{
74069
+ label: z$1.ZodOptional<z$1.ZodString>;
74070
+ hint: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodNullable<z$1.ZodString>, z$1.ZodTransform<string | null, string | null>>>;
74071
+ applicability: z$1.ZodOptional<z$1.core.$ZodType<Applicability, unknown, z$1.core.$ZodTypeInternals<Applicability, unknown>>>;
74072
+ shape: z$1.ZodOptional<z$1.core.$ZodType<SectionShape, unknown, z$1.core.$ZodTypeInternals<SectionShape, unknown>>>;
74073
+ }, z$1.core.$strict>;
74074
+ }, z$1.core.$strict>, z$1.ZodObject<{
74075
+ kind: z$1.ZodLiteral<"reorder">;
74076
+ subject: z$1.ZodEnum<{
74077
+ event: "event";
74078
+ service: "service";
74079
+ "team-member": "team-member";
74080
+ }>;
74081
+ order: z$1.ZodPipe<z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>>, z$1.ZodTransform<NonEmptyReadonlyArray<PageSectionId>, PageSectionId[]>>;
74082
+ }, z$1.core.$strict>, z$1.ZodObject<{
74083
+ kind: z$1.ZodLiteral<"archive">;
74084
+ subject: z$1.ZodEnum<{
74085
+ event: "event";
74086
+ service: "service";
74087
+ "team-member": "team-member";
74088
+ }>;
74089
+ sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
74090
+ }, z$1.core.$strict>, z$1.ZodObject<{
74091
+ kind: z$1.ZodLiteral<"restore">;
74092
+ subject: z$1.ZodEnum<{
74093
+ event: "event";
74094
+ service: "service";
74095
+ "team-member": "team-member";
74096
+ }>;
74097
+ sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
74098
+ }, z$1.core.$strict>], "kind"> & z$1.ZodType<{
74099
+ kind: "create";
74100
+ subject: "event" | "service" | "team-member";
74101
+ label: string;
74102
+ hint: string | null;
74103
+ shape: SectionShape;
74104
+ applicability: Applicability;
74105
+ } | {
74106
+ kind: "update";
74107
+ subject: "event" | "service" | "team-member";
74108
+ sectionId: PageSectionId;
74109
+ changes: {
74110
+ label?: string | undefined;
74111
+ hint?: string | null | undefined;
74112
+ applicability?: Applicability | undefined;
74113
+ shape?: SectionShape | undefined;
74114
+ };
74115
+ } | {
74116
+ kind: "archive";
74117
+ subject: "event" | "service" | "team-member";
74118
+ sectionId: PageSectionId;
74119
+ } | {
74120
+ kind: "restore";
74121
+ subject: "event" | "service" | "team-member";
74122
+ sectionId: PageSectionId;
74123
+ }, {
74124
+ kind: "create";
74125
+ subject: "event" | "service" | "team-member";
74126
+ label: string;
74127
+ hint?: string | null | undefined;
74128
+ shape: unknown;
74129
+ applicability: unknown;
74130
+ } | {
74131
+ kind: "update";
74132
+ subject: "event" | "service" | "team-member";
74133
+ sectionId: string;
74134
+ changes: {
74135
+ label?: string | undefined;
74136
+ hint?: string | null | undefined;
74137
+ applicability?: unknown;
74138
+ shape?: unknown;
74139
+ };
74140
+ } | {
74141
+ kind: "reorder";
74142
+ subject: "event" | "service" | "team-member";
74143
+ order: string[];
74144
+ } | {
74145
+ kind: "archive";
74146
+ subject: "event" | "service" | "team-member";
74147
+ sectionId: string;
74148
+ } | {
74149
+ kind: "restore";
74150
+ subject: "event" | "service" | "team-member";
74151
+ sectionId: string;
74152
+ }, z$1.core.$ZodTypeInternals<{
74153
+ kind: "create";
74154
+ subject: "event" | "service" | "team-member";
74155
+ label: string;
74156
+ hint: string | null;
74157
+ shape: SectionShape;
74158
+ applicability: Applicability;
74159
+ } | {
74160
+ kind: "update";
74161
+ subject: "event" | "service" | "team-member";
74162
+ sectionId: PageSectionId;
74163
+ changes: {
74164
+ label?: string | undefined;
74165
+ hint?: string | null | undefined;
74166
+ applicability?: Applicability | undefined;
74167
+ shape?: SectionShape | undefined;
74168
+ };
74169
+ } | {
74170
+ kind: "archive";
74171
+ subject: "event" | "service" | "team-member";
74172
+ sectionId: PageSectionId;
74173
+ } | {
74174
+ kind: "restore";
74175
+ subject: "event" | "service" | "team-member";
74176
+ sectionId: PageSectionId;
74177
+ }, {
74178
+ kind: "create";
74179
+ subject: "event" | "service" | "team-member";
74180
+ label: string;
74181
+ hint?: string | null | undefined;
74182
+ shape: unknown;
74183
+ applicability: unknown;
74184
+ } | {
74185
+ kind: "update";
74186
+ subject: "event" | "service" | "team-member";
74187
+ sectionId: string;
74188
+ changes: {
74189
+ label?: string | undefined;
74190
+ hint?: string | null | undefined;
74191
+ applicability?: unknown;
74192
+ shape?: unknown;
74193
+ };
74194
+ } | {
74195
+ kind: "reorder";
74196
+ subject: "event" | "service" | "team-member";
74197
+ order: string[];
74198
+ } | {
74199
+ kind: "archive";
74200
+ subject: "event" | "service" | "team-member";
74201
+ sectionId: string;
74202
+ } | {
74203
+ kind: "restore";
74204
+ subject: "event" | "service" | "team-member";
74205
+ sectionId: string;
74206
+ }>>, z$1.ZodObject<{
74207
+ kind: z$1.ZodLiteral<"setLook">;
74208
+ subject: z$1.ZodEnum<{
74209
+ event: "event";
74210
+ service: "service";
74211
+ }>;
74212
+ sectionId: z$1.ZodString;
74213
+ lookId: z$1.ZodNullable<z$1.ZodString>;
74214
+ }, z$1.core.$strict>]>>;
74215
+ selected: z$1.ZodArray<z$1.ZodNumber>;
74216
+ evidence: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
74217
+ index: z$1.ZodNumber;
74218
+ eventIds: z$1.ZodArray<z$1.ZodString>;
74219
+ preset: z$1.ZodOptional<z$1.ZodEnum<{
74220
+ class: "class";
74221
+ course: "course";
74222
+ event: "event";
74223
+ performance: "performance";
74224
+ retreat: "retreat";
74225
+ term: "term";
74226
+ workshop: "workshop";
74227
+ }>>;
74228
+ }, z$1.core.$strict>>>;
74229
+ }, z$1.core.$strict>;
74230
+ sectionChanges: z$1.ZodArray<z$1.ZodObject<{
74231
+ index: z$1.ZodNumber;
74232
+ label: z$1.ZodString;
74233
+ action: z$1.ZodEnum<{
74234
+ archive: "archive";
74235
+ create: "create";
74236
+ restore: "restore";
74237
+ setLook: "setLook";
74238
+ update: "update";
74239
+ }>;
74240
+ before: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
74241
+ after: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
74242
+ pages: z$1.ZodArray<z$1.ZodObject<{
74243
+ owner: z$1.core.$ZodType<SectionOwnerRef, unknown, z$1.core.$ZodTypeInternals<SectionOwnerRef, unknown>>;
74244
+ name: z$1.ZodString;
74245
+ effect: z$1.ZodEnum<{
74246
+ appears: "appears";
74247
+ changes: "changes";
74248
+ disappears: "disappears";
74249
+ }>;
74250
+ }, z$1.core.$strict>>;
74251
+ availability: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
74252
+ kind: z$1.ZodLiteral<"available">;
74253
+ }, z$1.core.$strict>, z$1.ZodObject<{
74254
+ kind: z$1.ZodLiteral<"unavailable">;
74255
+ message: z$1.ZodString;
74256
+ }, z$1.core.$strict>], "kind">;
74257
+ targetLabel: z$1.ZodOptional<z$1.ZodString>;
74258
+ evidence: z$1.ZodOptional<z$1.ZodObject<{
74259
+ events: z$1.ZodArray<z$1.ZodObject<{
74260
+ eventId: z$1.ZodString;
74261
+ name: z$1.ZodString;
74262
+ }, z$1.core.$strict>>;
74263
+ audience: z$1.ZodString;
74264
+ totalEvents: z$1.ZodNumber;
74265
+ }, z$1.core.$strict>>;
74266
+ disclosure: z$1.ZodString;
74267
+ previewHref: z$1.ZodOptional<z$1.ZodString>;
74268
+ looks: z$1.ZodOptional<z$1.ZodObject<{
74269
+ tiles: z$1.ZodArray<z$1.ZodObject<{
74270
+ id: z$1.ZodString;
74271
+ label: z$1.ZodString;
74272
+ isStyleDefault: z$1.ZodBoolean;
74273
+ }, z$1.core.$strict>>;
74274
+ chosen: z$1.ZodNullable<z$1.ZodString>;
74275
+ after: z$1.ZodNullable<z$1.ZodString>;
74276
+ }, z$1.core.$strict>>;
74277
+ }, z$1.core.$strict>>;
74278
+ }, z$1.core.$strict>, z$1.ZodObject<{
74279
+ kind: z$1.ZodLiteral<"preview">;
74280
+ confirmation: z$1.ZodString;
74281
+ mentions: z$1.ZodOptional<z$1.ZodObject<{
74282
+ pages: z$1.ZodArray<z$1.ZodObject<{
74283
+ pageId: z$1.ZodString;
74284
+ title: z$1.ZodNullable<z$1.ZodString>;
74285
+ path: z$1.ZodNullable<z$1.ZodString>;
74286
+ snippet: z$1.ZodObject<{
74287
+ before: z$1.ZodString;
74288
+ match: z$1.ZodString;
74289
+ after: z$1.ZodString;
74290
+ }, z$1.core.$strict>;
74291
+ stage: z$1.ZodEnum<{
74292
+ both: "both";
74293
+ draft: "draft";
74294
+ published: "published";
74295
+ }>;
74296
+ }, z$1.core.$strict>>;
74297
+ scanned: z$1.ZodNumber;
74298
+ matchedPages: z$1.ZodNumber;
74299
+ }, z$1.core.$strict>>;
74300
+ subject: z$1.ZodString;
74301
+ rows: z$1.ZodArray<z$1.ZodObject<{
74302
+ label: z$1.ZodString;
74303
+ summary: z$1.ZodOptional<z$1.ZodString>;
74304
+ saveMode: z$1.ZodOptional<z$1.ZodEnum<{
74305
+ draft: "draft";
74306
+ liveWhenOnline: "liveWhenOnline";
74307
+ }>>;
74308
+ before: z$1.ZodNullable<z$1.ZodString>;
74309
+ after: z$1.ZodNullable<z$1.ZodString>;
74310
+ }, z$1.core.$strict>>;
74311
+ changes: z$1.ZodArray<z$1.ZodNever>;
74312
+ consequences: z$1.ZodArray<z$1.ZodNever>;
74313
+ choices: z$1.ZodArray<z$1.ZodNever>;
74314
+ operation: z$1.ZodLiteral<"edit_event_page_content">;
72643
74315
  request: z$1.ZodObject<{
72644
- operation: z$1.ZodLiteral<"prepare_page_section_changes">;
74316
+ operation: z$1.ZodLiteral<"edit_event_page_content">;
72645
74317
  siteId: z$1.ZodString;
72646
- changes: z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
72647
- kind: z$1.ZodLiteral<"create">;
72648
- subject: z$1.ZodEnum<{
72649
- event: "event";
72650
- service: "service";
72651
- "team-member": "team-member";
72652
- }>;
72653
- label: z$1.ZodString;
72654
- hint: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodNullable<z$1.ZodString>, z$1.ZodTransform<string | null, string | null>>>;
72655
- shape: z$1.core.$ZodType<SectionShape, unknown, z$1.core.$ZodTypeInternals<SectionShape, unknown>>;
72656
- applicability: z$1.core.$ZodType<Applicability, unknown, z$1.core.$ZodTypeInternals<Applicability, unknown>>;
72657
- }, z$1.core.$strict>, z$1.ZodObject<{
72658
- kind: z$1.ZodLiteral<"update">;
72659
- subject: z$1.ZodEnum<{
72660
- event: "event";
72661
- service: "service";
72662
- "team-member": "team-member";
72663
- }>;
72664
- sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
72665
- changes: z$1.ZodObject<{
72666
- label: z$1.ZodOptional<z$1.ZodString>;
72667
- hint: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodNullable<z$1.ZodString>, z$1.ZodTransform<string | null, string | null>>>;
72668
- applicability: z$1.ZodOptional<z$1.core.$ZodType<Applicability, unknown, z$1.core.$ZodTypeInternals<Applicability, unknown>>>;
72669
- shape: z$1.ZodOptional<z$1.core.$ZodType<SectionShape, unknown, z$1.core.$ZodTypeInternals<SectionShape, unknown>>>;
72670
- }, z$1.core.$strict>;
72671
- }, z$1.core.$strict>, z$1.ZodObject<{
72672
- kind: z$1.ZodLiteral<"reorder">;
72673
- subject: z$1.ZodEnum<{
72674
- event: "event";
72675
- service: "service";
72676
- "team-member": "team-member";
72677
- }>;
72678
- order: z$1.ZodPipe<z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>>, z$1.ZodTransform<NonEmptyReadonlyArray<PageSectionId>, PageSectionId[]>>;
72679
- }, z$1.core.$strict>, z$1.ZodObject<{
72680
- kind: z$1.ZodLiteral<"archive">;
72681
- subject: z$1.ZodEnum<{
72682
- event: "event";
72683
- service: "service";
72684
- "team-member": "team-member";
72685
- }>;
72686
- sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
72687
- }, z$1.core.$strict>, z$1.ZodObject<{
72688
- kind: z$1.ZodLiteral<"restore">;
72689
- subject: z$1.ZodEnum<{
72690
- event: "event";
72691
- service: "service";
72692
- "team-member": "team-member";
72693
- }>;
72694
- sectionId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<PageSectionId, string>>;
72695
- }, z$1.core.$strict>], "kind"> & z$1.ZodType<{
72696
- kind: "create";
72697
- subject: "event" | "service" | "team-member";
72698
- label: string;
72699
- hint: string | null;
72700
- shape: SectionShape;
72701
- applicability: Applicability;
72702
- } | {
72703
- kind: "update";
72704
- subject: "event" | "service" | "team-member";
72705
- sectionId: PageSectionId;
72706
- changes: {
72707
- label?: string | undefined;
72708
- hint?: string | null | undefined;
72709
- applicability?: Applicability | undefined;
72710
- shape?: SectionShape | undefined;
72711
- };
72712
- } | {
72713
- kind: "archive";
72714
- subject: "event" | "service" | "team-member";
72715
- sectionId: PageSectionId;
72716
- } | {
72717
- kind: "restore";
72718
- subject: "event" | "service" | "team-member";
72719
- sectionId: PageSectionId;
72720
- }, {
72721
- kind: "create";
72722
- subject: "event" | "service" | "team-member";
72723
- label: string;
72724
- hint?: string | null | undefined;
72725
- shape: unknown;
72726
- applicability: unknown;
72727
- } | {
72728
- kind: "update";
72729
- subject: "event" | "service" | "team-member";
72730
- sectionId: string;
72731
- changes: {
72732
- label?: string | undefined;
72733
- hint?: string | null | undefined;
72734
- applicability?: unknown;
72735
- shape?: unknown;
72736
- };
72737
- } | {
72738
- kind: "reorder";
72739
- subject: "event" | "service" | "team-member";
72740
- order: string[];
72741
- } | {
72742
- kind: "archive";
72743
- subject: "event" | "service" | "team-member";
72744
- sectionId: string;
72745
- } | {
72746
- kind: "restore";
72747
- subject: "event" | "service" | "team-member";
72748
- sectionId: string;
72749
- }, z$1.core.$ZodTypeInternals<{
72750
- kind: "create";
72751
- subject: "event" | "service" | "team-member";
72752
- label: string;
72753
- hint: string | null;
72754
- shape: SectionShape;
72755
- applicability: Applicability;
72756
- } | {
72757
- kind: "update";
72758
- subject: "event" | "service" | "team-member";
72759
- sectionId: PageSectionId;
72760
- changes: {
72761
- label?: string | undefined;
72762
- hint?: string | null | undefined;
72763
- applicability?: Applicability | undefined;
72764
- shape?: SectionShape | undefined;
72765
- };
72766
- } | {
72767
- kind: "archive";
72768
- subject: "event" | "service" | "team-member";
72769
- sectionId: PageSectionId;
72770
- } | {
72771
- kind: "restore";
72772
- subject: "event" | "service" | "team-member";
72773
- sectionId: PageSectionId;
72774
- }, {
72775
- kind: "create";
72776
- subject: "event" | "service" | "team-member";
72777
- label: string;
72778
- hint?: string | null | undefined;
72779
- shape: unknown;
72780
- applicability: unknown;
72781
- } | {
72782
- kind: "update";
72783
- subject: "event" | "service" | "team-member";
72784
- sectionId: string;
72785
- changes: {
72786
- label?: string | undefined;
72787
- hint?: string | null | undefined;
72788
- applicability?: unknown;
72789
- shape?: unknown;
72790
- };
72791
- } | {
72792
- kind: "reorder";
72793
- subject: "event" | "service" | "team-member";
72794
- order: string[];
72795
- } | {
72796
- kind: "archive";
72797
- subject: "event" | "service" | "team-member";
72798
- sectionId: string;
72799
- } | {
72800
- kind: "restore";
72801
- subject: "event" | "service" | "team-member";
72802
- sectionId: string;
72803
- }>>, z$1.ZodObject<{
72804
- kind: z$1.ZodLiteral<"setLook">;
72805
- subject: z$1.ZodEnum<{
72806
- event: "event";
72807
- service: "service";
72808
- }>;
72809
- sectionId: z$1.ZodString;
72810
- lookId: z$1.ZodNullable<z$1.ZodString>;
72811
- }, z$1.core.$strict>]>>;
72812
- selected: z$1.ZodArray<z$1.ZodNumber>;
72813
- evidence: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
72814
- index: z$1.ZodNumber;
72815
- eventIds: z$1.ZodArray<z$1.ZodString>;
72816
- preset: z$1.ZodOptional<z$1.ZodEnum<{
72817
- class: "class";
72818
- course: "course";
72819
- event: "event";
72820
- performance: "performance";
72821
- retreat: "retreat";
72822
- term: "term";
72823
- workshop: "workshop";
72824
- }>>;
72825
- }, z$1.core.$strict>>>;
72826
- }, z$1.core.$strict>;
72827
- sectionChanges: z$1.ZodArray<z$1.ZodObject<{
72828
- index: z$1.ZodNumber;
72829
- label: z$1.ZodString;
72830
- action: z$1.ZodEnum<{
72831
- archive: "archive";
72832
- create: "create";
72833
- restore: "restore";
72834
- setLook: "setLook";
72835
- update: "update";
72836
- }>;
72837
- before: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
72838
- after: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
72839
74318
  pages: z$1.ZodArray<z$1.ZodObject<{
72840
- owner: z$1.core.$ZodType<SectionOwnerRef, unknown, z$1.core.$ZodTypeInternals<SectionOwnerRef, unknown>>;
72841
- name: z$1.ZodString;
72842
- effect: z$1.ZodEnum<{
72843
- appears: "appears";
72844
- changes: "changes";
72845
- disappears: "disappears";
72846
- }>;
72847
- }, z$1.core.$strict>>;
72848
- availability: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
72849
- kind: z$1.ZodLiteral<"available">;
72850
- }, z$1.core.$strict>, z$1.ZodObject<{
72851
- kind: z$1.ZodLiteral<"unavailable">;
72852
- message: z$1.ZodString;
72853
- }, z$1.core.$strict>], "kind">;
72854
- targetLabel: z$1.ZodOptional<z$1.ZodString>;
72855
- evidence: z$1.ZodOptional<z$1.ZodObject<{
72856
- events: z$1.ZodArray<z$1.ZodObject<{
72857
- eventId: z$1.ZodString;
72858
- name: z$1.ZodString;
72859
- }, z$1.core.$strict>>;
72860
- audience: z$1.ZodString;
72861
- totalEvents: z$1.ZodNumber;
72862
- }, z$1.core.$strict>>;
72863
- disclosure: z$1.ZodString;
72864
- previewHref: z$1.ZodOptional<z$1.ZodString>;
72865
- looks: z$1.ZodOptional<z$1.ZodObject<{
72866
- tiles: z$1.ZodArray<z$1.ZodObject<{
72867
- id: z$1.ZodString;
72868
- label: z$1.ZodString;
72869
- isStyleDefault: z$1.ZodBoolean;
72870
- }, z$1.core.$strict>>;
72871
- chosen: z$1.ZodNullable<z$1.ZodString>;
72872
- after: z$1.ZodNullable<z$1.ZodString>;
74319
+ pageSurfaceId: z$1.ZodString;
74320
+ optimisticHash: z$1.ZodString;
74321
+ introduction: z$1.ZodOptional<z$1.ZodString>;
74322
+ description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
74323
+ type: z$1.ZodLiteral<"doc">;
74324
+ content: z$1.ZodArray<z$1.ZodUnknown>;
74325
+ }, z$1.core.$strict>>>;
74326
+ sections: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.core.$ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
72873
74327
  }, z$1.core.$strict>>;
72874
- }, z$1.core.$strict>>;
74328
+ }, z$1.core.$strict>;
72875
74329
  }, z$1.core.$strict>, z$1.ZodObject<{
72876
74330
  kind: z$1.ZodLiteral<"preview">;
72877
74331
  confirmation: z$1.ZodString;
@@ -72908,21 +74362,21 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
72908
74362
  changes: z$1.ZodArray<z$1.ZodNever>;
72909
74363
  consequences: z$1.ZodArray<z$1.ZodNever>;
72910
74364
  choices: z$1.ZodArray<z$1.ZodNever>;
72911
- operation: z$1.ZodLiteral<"edit_event_page_content">;
74365
+ operation: z$1.ZodLiteral<"edit_team_member_profile">;
72912
74366
  request: z$1.ZodObject<{
72913
- operation: z$1.ZodLiteral<"edit_event_page_content">;
74367
+ operation: z$1.ZodLiteral<"edit_team_member_profile">;
72914
74368
  siteId: z$1.ZodString;
72915
- pages: z$1.ZodArray<z$1.ZodObject<{
72916
- pageSurfaceId: z$1.ZodString;
74369
+ profiles: z$1.ZodArray<z$1.ZodObject<{
74370
+ staffMemberId: z$1.ZodString;
72917
74371
  optimisticHash: z$1.ZodString;
72918
- introduction: z$1.ZodOptional<z$1.ZodString>;
72919
- description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
74372
+ bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
72920
74373
  type: z$1.ZodLiteral<"doc">;
72921
74374
  content: z$1.ZodArray<z$1.ZodUnknown>;
72922
74375
  }, z$1.core.$strict>>>;
72923
- sections: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.core.$ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
74376
+ facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
72924
74377
  }, z$1.core.$strict>>;
72925
74378
  }, z$1.core.$strict>;
74379
+ savedProfileCount: z$1.ZodNumber;
72926
74380
  }, z$1.core.$strict>, z$1.ZodObject<{
72927
74381
  kind: z$1.ZodLiteral<"preview">;
72928
74382
  confirmation: z$1.ZodString;
@@ -73125,6 +74579,7 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
73125
74579
  change_opening_hours: "change_opening_hours";
73126
74580
  change_public_contact: "change_public_contact";
73127
74581
  edit_event_page_content: "edit_event_page_content";
74582
+ edit_team_member_profile: "edit_team_member_profile";
73128
74583
  prepare_page_section_changes: "prepare_page_section_changes";
73129
74584
  }>;
73130
74585
  targetId: z$1.ZodString;
@@ -73157,6 +74612,21 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
73157
74612
  live: "live";
73158
74613
  }>>;
73159
74614
  }, z$1.core.$strict>>>;
74615
+ profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
74616
+ staffMemberId: z$1.ZodString;
74617
+ name: z$1.ZodString;
74618
+ status: z$1.ZodEnum<{
74619
+ fact_conflict: "fact_conflict";
74620
+ failed: "failed";
74621
+ invalid: "invalid";
74622
+ lease_held: "lease_held";
74623
+ not_saved: "not_saved";
74624
+ saved: "saved";
74625
+ stale: "stale";
74626
+ unchanged: "unchanged";
74627
+ }>;
74628
+ message: z$1.ZodOptional<z$1.ZodString>;
74629
+ }, z$1.core.$strict>>>;
73160
74630
  effect: z$1.ZodEnum<{
73161
74631
  "already-set": "already-set";
73162
74632
  unchanged: "unchanged";
@@ -73180,6 +74650,7 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
73180
74650
  change_opening_hours: "change_opening_hours";
73181
74651
  change_public_contact: "change_public_contact";
73182
74652
  edit_event_page_content: "edit_event_page_content";
74653
+ edit_team_member_profile: "edit_team_member_profile";
73183
74654
  prepare_page_section_changes: "prepare_page_section_changes";
73184
74655
  }>;
73185
74656
  targetId: z$1.ZodString;
@@ -73212,6 +74683,21 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
73212
74683
  live: "live";
73213
74684
  }>>;
73214
74685
  }, z$1.core.$strict>>>;
74686
+ profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
74687
+ staffMemberId: z$1.ZodString;
74688
+ name: z$1.ZodString;
74689
+ status: z$1.ZodEnum<{
74690
+ fact_conflict: "fact_conflict";
74691
+ failed: "failed";
74692
+ invalid: "invalid";
74693
+ lease_held: "lease_held";
74694
+ not_saved: "not_saved";
74695
+ saved: "saved";
74696
+ stale: "stale";
74697
+ unchanged: "unchanged";
74698
+ }>;
74699
+ message: z$1.ZodOptional<z$1.ZodString>;
74700
+ }, z$1.core.$strict>>>;
73215
74701
  effect: z$1.ZodEnum<{
73216
74702
  "already-set": "already-set";
73217
74703
  unchanged: "unchanged";
@@ -76501,6 +77987,11 @@ type BookingDetailOwed = {
76501
77987
  outstandingCents: number; /** Already paid towards it, by any means. */
76502
77988
  collectedCents: number;
76503
77989
  };
77990
+ /** The rest of a deposit or instalment booking before it's owed, and when it's due. */
77991
+ type BookingDetailScheduledBalance = {
77992
+ outstandingCents: number;
77993
+ dueAt: string | null;
77994
+ };
76504
77995
  /**
76505
77996
  * How the booking was paid for. `hidden` when the viewer isn't allowed to see
76506
77997
  * money (the person page's rule: editors and above).
@@ -76529,7 +78020,8 @@ type BookingDetailPayment = {
76529
78020
  currency: string;
76530
78021
  paidAt: string | null; /** For the "View payment" link. */
76531
78022
  stripeCheckoutSessionId: string | null; /** Null once nothing is left to pay. */
76532
- owed: BookingDetailOwed | null; /** Kept above what this booking now costs, after a move to a cheaper room. */
78023
+ owed: BookingDetailOwed | null; /** Set only while nothing is owed yet: a deposit's balance or the rest of an instalment plan. */
78024
+ scheduledBalance: BookingDetailScheduledBalance | null; /** Kept above what this booking now costs, after a move to a cheaper room. */
76533
78025
  overCents: number; /** Oldest first. Empty when every payment went through Macadamia. */
76534
78026
  refundFunding?: readonly RefundFundingLine[];
76535
78027
  recordedPayments: BookingDetailRecordedPayment[];
@@ -76947,39 +78439,6 @@ type ArrangementTimeOffResponse = Readonly<{
76947
78439
  }> | null;
76948
78440
  }>[];
76949
78441
  }>;
76950
- type PortalRegularSessionDateApi = Readonly<{
76951
- state: 'booked';
76952
- occurrence: string;
76953
- appointmentId: string;
76954
- startAt: string;
76955
- endAt: string;
76956
- }> | Readonly<{
76957
- state: 'held' | 'open' | 'trainer_away';
76958
- occurrence: string;
76959
- startAt: string;
76960
- endAt: string;
76961
- }> | Readonly<{
76962
- state: 'away';
76963
- occurrence: string;
76964
- }>;
76965
- type PortalRegularSessionApi = Readonly<{
76966
- timezone: string;
76967
- schedule: ArrangementScheduleApi;
76968
- trainerName: string | null;
76969
- serviceName: string | null;
76970
- holdsTime: boolean;
76971
- payment: Readonly<{
76972
- kind: 'package';
76973
- name: string | null;
76974
- sessionsLeft: number;
76975
- }> | Readonly<{
76976
- kind: 'owed' | 'payment_link';
76977
- }>;
76978
- dates: readonly PortalRegularSessionDateApi[];
76979
- }>;
76980
- type PortalRegularSessionsResponse = Readonly<{
76981
- arrangements: readonly PortalRegularSessionApi[];
76982
- }>;
76983
78442
  type PreviewClientArrangementRequest = z$1.output<typeof previewClientArrangementSchema>;
76984
78443
  type ArrangementCancellationActorApi = Readonly<{
76985
78444
  kind: 'staff';
@@ -77828,17 +79287,24 @@ type MoneyPaymentAccountNavigation = {
77828
79287
  * hidden, Refund still shows.
77829
79288
  */
77830
79289
  type MoneyPaymentBookingStatus = 'active' | 'cancelled';
77831
- type MoneyPaymentAllocationItem = {
79290
+ /** This payment's money on one thing it covered: what went to it, and how much of that can still go back. */
79291
+ type MoneyPaymentItemMoney = {
79292
+ amountPaidCents: number;
79293
+ refundableCents: number;
79294
+ };
79295
+ type MoneyPaymentAllocationItem = MoneyPaymentItemMoney & ({
77832
79296
  kind: 'appointment';
77833
79297
  sourceLabel: string;
77834
79298
  appointmentId: string;
79299
+ startsAt?: string | null;
77835
79300
  } | {
77836
79301
  kind: 'event';
77837
79302
  eventId: string | null;
77838
79303
  sourceLabel: string;
77839
79304
  eventAttendeeId: string;
77840
79305
  eventSeriesId?: string | null;
77841
- occurrenceId?: string | null;
79306
+ occurrenceId?: string | null; /** When the booked date starts; it tells two dates of the same class apart. */
79307
+ startsAt?: string | null;
77842
79308
  bookingStatus: MoneyPaymentBookingStatus | null;
77843
79309
  } | {
77844
79310
  kind: 'event_series_registration';
@@ -77858,6 +79324,25 @@ type MoneyPaymentAllocationItem = {
77858
79324
  } | {
77859
79325
  kind: 'product';
77860
79326
  sourceLabel: string;
79327
+ });
79328
+ /** Whether one thing a payment covered can be refunded from Payments. */
79329
+ type MoneyPaymentItemRefundAccess = {
79330
+ kind: 'entity';
79331
+ target: Exclude<MoneyPaymentAllocationItem, {
79332
+ kind: 'product';
79333
+ }>;
79334
+ } | {
79335
+ kind: 'unavailable';
79336
+ reason: 'product';
79337
+ item: Extract<MoneyPaymentAllocationItem, {
79338
+ kind: 'product';
79339
+ }>;
79340
+ } | {
79341
+ kind: 'unavailable';
79342
+ reason: 'appointment_access_denied';
79343
+ item: Extract<MoneyPaymentAllocationItem, {
79344
+ kind: 'appointment';
79345
+ }>;
77861
79346
  };
77862
79347
  type MoneyPaymentListItem = {
77863
79348
  id: string;
@@ -77875,25 +79360,23 @@ type MoneyPaymentListItem = {
77875
79360
  kind: 'unresolved';
77876
79361
  itemKinds: readonly MoneyItemKind[];
77877
79362
  sourceLabels: readonly string[];
77878
- };
79363
+ }; /** Refunds are opened one item at a time; a payment for one thing has one item. */
77879
79364
  refundAccess: {
77880
79365
  kind: 'unavailable';
77881
79366
  reason: 'payment_disputed';
77882
79367
  message: string;
77883
79368
  } | {
77884
- kind: 'entity';
77885
- target: Exclude<MoneyPaymentAllocationItem, {
77886
- kind: 'product';
77887
- }>;
79369
+ kind: 'unavailable';
79370
+ reason: 'unresolved_allocation';
79371
+ } | {
79372
+ kind: 'items';
79373
+ items: readonly MoneyPaymentItemRefundAccess[];
77888
79374
  onlineAction: {
77889
79375
  kind: 'available';
77890
79376
  } | {
77891
79377
  kind: 'unavailable';
77892
79378
  reason: 'manual_receipt' | 'provider_target_mismatch' | 'fully_refunded' | 'payment_reconciliation_pending';
77893
79379
  };
77894
- } | {
77895
- kind: 'unavailable';
77896
- reason: 'multiple_allocations' | 'unresolved_allocation' | 'product' | 'appointment_access_denied';
77897
79380
  };
77898
79381
  status: 'paid' | 'partially_refunded' | 'refunded' | 'payment_reconciliation_pending';
77899
79382
  initialPaymentKind?: 'deposit' | 'full';
@@ -78973,12 +80456,6 @@ type AdminBookingAppointmentWithDetails = Omit<BookingAppointmentWithDetails, 'c
78973
80456
  type EventSeriesRegistrationCancellationPreviewResponse = {
78974
80457
  cancellation: AdminBookingCancellationPreview;
78975
80458
  };
78976
- type AppointmentBookingQuestionsTask = {
78977
- status: 'complete' | 'incomplete' | 'overdue';
78978
- dueAt: string;
78979
- completedAt: string | null;
78980
- prefillAvailable: boolean;
78981
- };
78982
80459
  type BookingSessionListAppointmentsResponse = {
78983
80460
  appointments: BookingAppointmentWithDetails[];
78984
80461
  pagination: {
@@ -79687,7 +81164,23 @@ type BookingOwedAmount = {
79687
81164
  outstandingCents: number;
79688
81165
  currency: string;
79689
81166
  };
81167
+ /**
81168
+ * The booking a roster row stands for, decided by the server. A course
81169
+ * session's row stands for its course booking, so cancelling or refunding from
81170
+ * that row acts on the whole course place.
81171
+ */
81172
+ type BookingEventSeriesAttendeeBooking = {
81173
+ kind: 'event';
81174
+ attendeeId: string;
81175
+ } /** `status` is the course booking's own; the row's `status` stays the attendance at this date. */ | {
81176
+ kind: 'course';
81177
+ registrationId: string;
81178
+ runId: string;
81179
+ runTitle: string;
81180
+ status: EventSeriesRegistrationStatus;
81181
+ };
79690
81182
  type BookingEventSeriesAttendee = {
81183
+ booking: BookingEventSeriesAttendeeBooking;
79691
81184
  checkedInCount?: number; /** When an owner marked this booking, or this course session, as a no-show. Only a record. */
79692
81185
  noShowAt?: string | null; /** When the date ends, which is when it can first be marked. */
79693
81186
  eventEndsAt?: string;
@@ -80373,7 +81866,8 @@ type DiscountCodeRecord = {
80373
81866
  discountType: DiscountCodeType;
80374
81867
  discountPercent: number | null;
80375
81868
  discountAmountCents: number | null;
80376
- perEmailLimit: DiscountPerEmailLimit;
81869
+ perEmailLimit: DiscountPerEmailLimit; /** Most uses the code can have across everyone; null means no total limit. */
81870
+ totalUseLimit: number | null;
80377
81871
  membershipDiscountDuration: DiscountMembershipDuration;
80378
81872
  appliesToEvents: boolean;
80379
81873
  combinesWithCombinationPrices: boolean;
@@ -80404,24 +81898,23 @@ type DiscountCodeScopeIds = {
80404
81898
  type DiscountCodeDetails = DiscountCodeRecord & {
80405
81899
  scopes: DiscountCodeScopeIds;
80406
81900
  };
80407
- type CreateDiscountCodeRequest = (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'combinesWithCombinationPrices' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
80408
- discountType: 'percent';
80409
- discountPercent: number;
80410
- discountAmountCents?: never;
81901
+ /** What a discount code write carries whichever kind of discount it gives. */
81902
+ type DiscountCodeRequestFields = Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'combinesWithCombinationPrices' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'totalUseLimit' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
80411
81903
  autoApply?: boolean;
80412
81904
  combinesWithCombinationPrices?: boolean;
80413
81905
  eventMinTicketsEnabled?: boolean;
80414
81906
  eventMinTickets?: number | null;
81907
+ totalUseLimit?: number | null;
80415
81908
  scopeIds?: Partial<DiscountCodeScopeIds>;
80416
- }) | (Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'combinesWithCombinationPrices' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
81909
+ };
81910
+ type CreateDiscountCodeRequest = (DiscountCodeRequestFields & {
81911
+ discountType: 'percent';
81912
+ discountPercent: number;
81913
+ discountAmountCents?: never;
81914
+ }) | (DiscountCodeRequestFields & {
80417
81915
  discountType: 'fixed';
80418
81916
  discountAmountCents: number;
80419
81917
  discountPercent?: never;
80420
- autoApply?: boolean;
80421
- combinesWithCombinationPrices?: boolean;
80422
- eventMinTicketsEnabled?: boolean;
80423
- eventMinTickets?: number | null;
80424
- scopeIds?: Partial<DiscountCodeScopeIds>;
80425
81918
  });
80426
81919
  type UpdateDiscountCodeRequest = CreateDiscountCodeRequest;
80427
81920
  type ListDiscountCodesResponse = {
@@ -82922,10 +84415,6 @@ declare const SITE_BILLING_ARRANGEMENT_CHANGE_ORIGINS: readonly ['native_arrange
82922
84415
  type SiteBillingArrangementChangeOrigin = (typeof SITE_BILLING_ARRANGEMENT_CHANGE_ORIGINS)[number];
82923
84416
  //#endregion
82924
84417
  //#region .cache/declarations/api/src/siteOperations.d.ts
82925
- /** Questions apply to the booking but its task can't be shown right now. */
82926
- type AppointmentBookingQuestionsTaskState = AppointmentBookingQuestionsTask | {
82927
- kind: 'unavailable';
82928
- };
82929
84418
  /**
82930
84419
  * Site Operations Contracts
82931
84420
  *
@@ -82944,53 +84433,6 @@ type AuthStatusResponse = {
82944
84433
  keyId: string;
82945
84434
  keyPrefix: string;
82946
84435
  };
82947
- type PortalAppointmentReschedule = {
82948
- kind: "available";
82949
- cutoffAt: string;
82950
- } | {
82951
- kind: "unavailable";
82952
- reason: "appointments_disabled" | "request_waiting" | "missing_service" | "not_future" | "cutoff_passed" | "policy_disabled";
82953
- cutoffAt: string | null;
82954
- };
82955
- type PortalAppointmentWithDetails = {
82956
- /** How to join, only on the client's own upcoming online booking. */joiningDetails?: {
82957
- joinUrl: string;
82958
- accessCode: string | null;
82959
- notes: string | null;
82960
- } | null;
82961
- requestedAt: string | null;
82962
- requestOutcome: AppointmentRequestOutcome | null;
82963
- requestDecidedAt: string | null;
82964
- timeZone: string;
82965
- isOnline: boolean;
82966
- id: string;
82967
- serviceId: string;
82968
- serviceName: string;
82969
- resourceId: string | null;
82970
- resourceName: string | null;
82971
- customerName: string;
82972
- customerEmail: string;
82973
- startAt: string;
82974
- endAt: string;
82975
- status: AppointmentHistoryStatus;
82976
- notes?: string | null;
82977
- createdAt: string;
82978
- beforeYouCome: AppointmentBookingQuestionsTaskState | null;
82979
- cancellation: {
82980
- canCancel: boolean;
82981
- canAutoRefundOnCancel: boolean;
82982
- refundCutoffAt: string | null; /** What happens to the client's money if they cancel; the portal words this, it doesn't work it out. */
82983
- moneyOnCancel: CancellationMoneyOutcome; /** Remind them of the site's booking terms before they confirm. */
82984
- termsApplyOnCancel?: boolean;
82985
- };
82986
- reschedule: PortalAppointmentReschedule;
82987
- rebook: {
82988
- kind: "available";
82989
- } | {
82990
- kind: "unavailable";
82991
- reason: "appointments_disabled" | "upcoming" | "missing_service";
82992
- };
82993
- };
82994
84436
  /** "How did you find Macadamia?", asked once in the dashboard: an answer, or "No thanks". */
82995
84437
  type AccountAnswerHeardFromBody = {
82996
84438
  kind: "answered";
@@ -90813,11 +92255,6 @@ type SiteRuntimeBusinessDetails = {
90813
92255
  transform?: PersistableMedia['transform'] | null;
90814
92256
  } | null;
90815
92257
  };
90816
- type SiteRuntimeBookingAttribution = Readonly<{
90817
- kind: 'macadamia';
90818
- }> | Readonly<{
90819
- kind: 'none';
90820
- }>;
90821
92258
  type SiteFooterBlocksEditorBlock = {
90822
92259
  id: string;
90823
92260
  kind: string;
@@ -92638,9 +94075,9 @@ type PublicEventAPIEndpoints = {
92638
94075
  getBeforeBookingQuestions: APIEndpoint<BeforeBookingQuestionsRequest, {
92639
94076
  siteId: string;
92640
94077
  }, BeforeBookingQuestionsPresentation>;
92641
- getPublicEventRegistrationOptions: APIEndpoint<PublicEventRegistrationOptionsRequest | PublicEventSelectionFundingRequest, {
94078
+ getPublicEventRegistrationOptions: APIEndpoint<PublicEventRegistrationOptionsRequest | PublicEventSelectionFundingRequest | PublicEventRunsSelectionPaymentRequest, {
92642
94079
  siteId: string;
92643
- }, PublicEventRegistrationOptionsResponse | PublicEventSelectionFundingResponse>;
94080
+ }, PublicEventRegistrationOptionsResponse | PublicEventSelectionFundingResponse | PublicEventRunsSelectionPaymentResponse>;
92644
94081
  checkPublicEventRegistrationNextStep: APIEndpoint<EventRegistrationNextStepRequest, {
92645
94082
  siteId: string;
92646
94083
  }, EventRegistrationNextStepResponse>;
@@ -92681,6 +94118,9 @@ type PublicEventRegistrationOptionsResponse = EventRegistrationOptionsResponse;
92681
94118
  /** The same endpoint answers a dates subject with how those dates can be paid. */
92682
94119
  type PublicEventSelectionFundingRequest = EventSelectionFundingRequest;
92683
94120
  type PublicEventSelectionFundingResponse = EventSelectionFundingResponse;
94121
+ /** And a runs subject with how those runs of one course can be paid. */
94122
+ type PublicEventRunsSelectionPaymentRequest = EventRunsSelectionPaymentRequest;
94123
+ type PublicEventRunsSelectionPaymentResponse = EventRunsSelectionPaymentResponse;
92684
94124
  //#endregion
92685
94125
  //#region .cache/declarations/api/src/publicExperience/newsletterEndpoints.d.ts
92686
94126
  type PublicNewsletterAPIEndpoints = {
@@ -94256,6 +95696,8 @@ type PublicProductCategorySelector = Readonly<{
94256
95696
  interface BlockApiClient {
94257
95697
  getSiteTerms(): Promise<BlockSiteTerms>;
94258
95698
  readonly config: BlockApiConfig;
95699
+ /** The customer signed in to the portal, as a public page may read them; null when this client carries no portal session. */
95700
+ readonly portalVisitor: PortalVisitorApi | null;
94259
95701
  submitForm(data: FormSubmitRequest): Promise<FormSubmitResponse>;
94260
95702
  getForm(formId: string, siteId?: string): Promise<FormConfigResponse>;
94261
95703
  submitBooking(data: BookingSubmitRequest): Promise<BookingSubmitResponse>;
@@ -94289,6 +95731,8 @@ interface BlockApiClient {
94289
95731
  getRegistrationOptions(data: Omit<RegistrationOptionsRequest, 'siteId'>): Promise<RegistrationOptionsResponse>;
94290
95732
  /** How several dates can be paid: money, or each pass or membership with the dates it covers. */
94291
95733
  getSelectionFunding(data: EventSelectionFundingRequest): Promise<EventSelectionFundingResponse>;
95734
+ /** How one or more runs of one course can be paid, as checkout will accept them. */
95735
+ getRunsSelectionPayment(data: EventRunsSelectionPaymentRequest): Promise<EventRunsSelectionPaymentResponse>;
94292
95736
  checkRegistrationNextStep(data: EventRegistrationNextStepSubmission): Promise<EventRegistrationNextStepResponse>;
94293
95737
  getEventRegistrationStatus(params: WithoutSiteId<EventRegistrationStatusRequest>): Promise<EventRegistrationStatusResponse>;
94294
95738
  resolveEventCheckoutReturn(data: EventCheckoutReturnRequest): Promise<EventCheckoutReturnResponse>;
@@ -94307,64 +95751,6 @@ interface BlockApiClient {
94307
95751
  token: string;
94308
95752
  }): Promise<PreviewGiftCardClaimResponse>;
94309
95753
  subscribeNewsletter(data: Omit<NewsletterSubscribeRequest, 'siteId'>): Promise<NewsletterSubscribeResponse>;
94310
- createPortalAppointmentBookingQuestionsUploadUrl(appointmentId: string, data: PortalBookingQuestionsUploadUrlRequest): Promise<{
94311
- uploadId: string;
94312
- signedUrl: string;
94313
- }>;
94314
- finalizePortalAppointmentBookingQuestionsUpload(appointmentId: string, data: PortalBookingQuestionsFinalizeUploadRequest): Promise<BookingQuestionsDocumentAnswerValue>;
94315
- createPortalEventBookingQuestionsUploadUrl(registrationId: string, data: PortalBookingQuestionsUploadUrlRequest): Promise<{
94316
- uploadId: string;
94317
- signedUrl: string;
94318
- }>;
94319
- finalizePortalEventBookingQuestionsUpload(registrationId: string, data: PortalBookingQuestionsFinalizeUploadRequest): Promise<BookingQuestionsDocumentAnswerValue>;
94320
- createPortalWholeSeriesBookingQuestionsUploadUrl(registrationId: string, data: PortalBookingQuestionsUploadUrlRequest): Promise<{
94321
- uploadId: string;
94322
- signedUrl: string;
94323
- }>;
94324
- finalizePortalWholeSeriesBookingQuestionsUpload(registrationId: string, data: PortalBookingQuestionsFinalizeUploadRequest): Promise<BookingQuestionsDocumentAnswerValue>;
94325
- getPortalProfile(): Promise<PortalMeResponse>;
94326
- getPortalCredit(): Promise<PortalCredit | null>;
94327
- getPortalOrders(): Promise<CustomerOrder[]>;
94328
- createPortalOrderCheckout(orderId: string, data: PortalOrderCheckoutRequest): Promise<PortalOrderCheckoutResponse>;
94329
- getPortalDigitalProducts(): Promise<PortalDigitalProductsResponse>;
94330
- getPortalDigitalProduct(entitlementId: string): Promise<PortalDigitalProductAccessResponse>;
94331
- resendPortalDigitalProduct(entitlementId: string): Promise<void>;
94332
- getPortalDigitalProductDownloadUrl(entitlementId: string, assetId: string): Promise<PortalDigitalProductDownloadUrlResponse>;
94333
- updatePortalProfile(data: PortalMeUpdateRequest): Promise<CustomerProfile>;
94334
- getPortalPasses(): Promise<CustomerPass[]>;
94335
- /** `includeInactive` adds paused and ended memberships. */
94336
- getPortalMemberships(params?: {
94337
- includeInactive?: boolean;
94338
- }): Promise<CustomerMembership[]>;
94339
- getPortalEvents(params?: {
94340
- occurrenceId?: string;
94341
- waitlistEntryId?: string;
94342
- }): Promise<PortalEventsResponse>;
94343
- cancelPortalWaitlist(entryId: string): Promise<PortalWaitlistCancellationResult>;
94344
- getPortalEventTicket(registrationId: string): Promise<PortalEventTicket>;
94345
- getPortalAppointments(): Promise<CustomerAppointment[]>;
94346
- getPortalRegularSessions(): Promise<readonly PortalRegularSession[]>;
94347
- getPortalAppointmentBookingQuestions(appointmentId: string): Promise<BookingQuestionsTaskDetail>;
94348
- updatePortalAppointmentBookingQuestions(appointmentId: string, data: PortalUpdateAppointmentBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
94349
- getPortalEventBookingQuestions(registrationId: string): Promise<BookingQuestionsTaskDetail>;
94350
- updatePortalEventBookingQuestions(registrationId: string, data: PortalUpdateEventBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
94351
- getPortalWholeSeriesRegistrations(): Promise<CustomerEventSeriesRegistration[]>;
94352
- getPortalWholeSeriesBookingQuestions(registrationId: string): Promise<BookingQuestionsTaskDetail>;
94353
- updatePortalWholeSeriesBookingQuestions(registrationId: string, data: PortalUpdateWholeSeriesBookingQuestionsRequest): Promise<BookingQuestionsTaskDetail>;
94354
- cancelWholeSeriesRegistration(registrationId: string, options?: PortalCancelWholeSeriesRegistrationRequest): Promise<PortalCancelWholeSeriesRegistrationResult>;
94355
- cancelAppointment(appointmentId: string, options?: PortalCancelAppointmentRequest): Promise<PortalCancelAppointmentResult>;
94356
- rescheduleAppointment(appointmentId: string, data: PortalRescheduleAppointmentRequest): Promise<PortalRescheduleAppointmentResponse>;
94357
- cancelEventRegistration(registrationId: string, options?: PortalCancelEventRegistrationRequest): Promise<PortalCancelEventRegistrationResult>;
94358
- transferEventRegistration(registrationId: string, data: PortalTransferEventRegistrationRequest): Promise<PortalTransferEventRegistrationResult>;
94359
- /** Other dates of the booking's own class, one page at a time, each assessed by the server. */
94360
- listEventRescheduleDates(registrationId: string, query?: PortalEventRescheduleDatesQuery): Promise<PortalEventRescheduleDates>;
94361
- /** Moves the whole booking to another date. Send the same request again to retry; it won't move twice. */
94362
- rescheduleEventRegistration(registrationId: string, data: PortalEventRescheduleRequest): Promise<PortalEventRescheduleResult>;
94363
- getEventGuests(registrationId: string): Promise<EventGuest[]>;
94364
- updateEventGuests(registrationId: string, data: UpdateEventGuestsRequest): Promise<EventGuest[]>;
94365
- cancelMembershipAtPeriodEnd(customerMembershipId: string): Promise<PortalCancelMembershipAtPeriodEndResult>;
94366
- /** Undo a scheduled end. `cancelled: false` means it'll carry on renewing. */
94367
- resumeMembership(customerMembershipId: string): Promise<PortalCancelMembershipAtPeriodEndResult>;
94368
95754
  sendMagicLink(data: Omit<MagicLinkRequest, 'siteId'>): Promise<MagicLinkResponse>;
94369
95755
  logout(): Promise<void>;
94370
95756
  }
@@ -94471,6 +95857,74 @@ type BookingOfferingPresetSummary = Readonly<{
94471
95857
  //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts
94472
95858
  type TicketSelectionPurpose = 'book' | 'waitlist';
94473
95859
  //#endregion
95860
+ //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts
95861
+ type RegistrationAdmission = Readonly<{
95862
+ kind: 'checking';
95863
+ }> | Readonly<{
95864
+ kind: 'open' | 'resume';
95865
+ }>
95866
+ /** `detailsCheck`: whether completing details asks the server, by email, if this
95867
+ * guest has an unfinished booking to pay for instead of joining the waitlist. */
95868
+ | Readonly<{
95869
+ kind: 'waitlist';
95870
+ detailsCheck: 'byEmail' | 'none';
95871
+ }>
95872
+ /** Always blocked at this size. `placesLeft` > 0 means fewer places than asked
95873
+ * for are left: choosing that many is the way forward (issue 1581). */
95874
+ | Readonly<{
95875
+ kind: 'fullyBooked';
95876
+ placesLeft: number;
95877
+ }> /** `bookingsClosed`: the server says the event has stopped taking bookings, which no retry changes. */ | Readonly<{
95878
+ kind: 'closed';
95879
+ reason: 'unavailable' | 'bookingsClosed' | 'optionsUnavailable' | 'alreadyWaitlisted';
95880
+ message: string; /** How to reach the business, when the site can't take this booking online. */
95881
+ contact?: SiteOrganiserContact;
95882
+ }>;
95883
+ type RegistrationTicketContinuation = Readonly<{
95884
+ kind: 'advance';
95885
+ label: string;
95886
+ pending: false;
95887
+ }> | Readonly<{
95888
+ kind: 'blocked';
95889
+ message: string;
95890
+ label: string;
95891
+ pending: boolean;
95892
+ }>;
95893
+ //#endregion
95894
+ //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts
95895
+ /** The steps that can be counted in the visitor's route through the wizard. */
95896
+ type RegistrationRouteStep = Extract<RegistrationStep, 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'payment'>;
95897
+ /** The ordered steps the visitor is on course to take, as far as we know now. */
95898
+ type RegistrationRoute = readonly RegistrationRouteStep[];
95899
+ type RegistrationProgress = Readonly<{
95900
+ steps: RegistrationRoute; /** 1-based position of the current step in `steps`. */
95901
+ current: number;
95902
+ }>;
95903
+ type RegistrationScreen = 'processing' | 'confirmed' | 'waitlisted' | 'error' | 'verifying' | 'verifyingTimeout' | 'paymentStatus' | 'paymentFailed';
95904
+ /**
95905
+ * What the booking surface renders: the step layout (with progress only when
95906
+ * the step is part of the route), or one whole-panel screen. Never both.
95907
+ */
95908
+ type RegistrationPresentation = Readonly<{
95909
+ layout: 'steps';
95910
+ progress: RegistrationProgress | null;
95911
+ }> | Readonly<{
95912
+ layout: 'whole';
95913
+ screen: Exclude<RegistrationScreen, 'confirmed' | 'waitlisted'>;
95914
+ }> | Readonly<{
95915
+ layout: 'whole';
95916
+ screen: 'confirmed';
95917
+ result: Extract<RegistrationResult, {
95918
+ status: 'confirmed';
95919
+ }>;
95920
+ }> | Readonly<{
95921
+ layout: 'whole';
95922
+ screen: 'waitlisted';
95923
+ result: Extract<RegistrationResult, {
95924
+ status: 'waitlist';
95925
+ }>;
95926
+ }>;
95927
+ //#endregion
94474
95928
  //#region .cache/declarations/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts
94475
95929
  type WaitlistClaimCredential = Readonly<{
94476
95930
  kind: 'emailedToken';
@@ -94653,7 +96107,7 @@ type RegistrationSelection = readonly RegistrationEvent[];
94653
96107
  /**
94654
96108
  * Whether the visitor may tick several items. Several dates belong to one
94655
96109
  * series and several runs to one course, and every one of them must allow it.
94656
- * A page that names one date or run always books one.
96110
+ * Whether a page that names one date offers the others is `decideRegistrationEntry`'s call.
94657
96111
  */
94658
96112
  type RegistrationSelectionMode = Readonly<{
94659
96113
  kind: 'single';
@@ -94698,88 +96152,6 @@ type SelectionPaymentSummary = Readonly<{
94698
96152
  reductions: readonly PaymentSummaryReduction[];
94699
96153
  totalCents: number;
94700
96154
  }> | CombinedPaymentSummary;
94701
- /**
94702
- * How the selection is paid, decided once for all of it (issue 1725).
94703
- *
94704
- * One item keeps its own eligibility: free places, passes, memberships,
94705
- * bundles and instalments, exactly as before. Several items are paid up
94706
- * front by card, or book free when the whole selection costs nothing.
94707
- * Nothing else applies to them, and the server refuses anything else.
94708
- */
94709
- type SelectionPayment = Readonly<{
94710
- kind: 'one-item';
94711
- }> | Readonly<{
94712
- kind: 'several';
94713
- due: 'nothing' | 'card';
94714
- }>;
94715
- //#endregion
94716
- //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts
94717
- type RegistrationAdmission = Readonly<{
94718
- kind: 'checking';
94719
- }> | Readonly<{
94720
- kind: 'open' | 'resume';
94721
- }>
94722
- /** `detailsCheck`: whether completing details asks the server, by email, if this
94723
- * guest has an unfinished booking to pay for instead of joining the waitlist. */
94724
- | Readonly<{
94725
- kind: 'waitlist';
94726
- detailsCheck: 'byEmail' | 'none';
94727
- }>
94728
- /** Always blocked at this size. `placesLeft` > 0 means fewer places than asked
94729
- * for are left: choosing that many is the way forward (issue 1581). */
94730
- | Readonly<{
94731
- kind: 'fullyBooked';
94732
- placesLeft: number;
94733
- }> | Readonly<{
94734
- kind: 'closed';
94735
- reason: 'unavailable' | 'optionsUnavailable' | 'alreadyWaitlisted';
94736
- message: string; /** How to reach the business, when the site can't take this booking online. */
94737
- contact?: SiteOrganiserContact;
94738
- }>;
94739
- type RegistrationTicketContinuation = Readonly<{
94740
- kind: 'advance';
94741
- label: string;
94742
- pending: false;
94743
- }> | Readonly<{
94744
- kind: 'blocked';
94745
- message: string;
94746
- label: string;
94747
- pending: boolean;
94748
- }>;
94749
- //#endregion
94750
- //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts
94751
- /** The steps that can be counted in the visitor's route through the wizard. */
94752
- type RegistrationRouteStep = Extract<RegistrationStep, 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'payment'>;
94753
- /** The ordered steps the visitor is on course to take, as far as we know now. */
94754
- type RegistrationRoute = readonly RegistrationRouteStep[];
94755
- type RegistrationProgress = Readonly<{
94756
- steps: RegistrationRoute; /** 1-based position of the current step in `steps`. */
94757
- current: number;
94758
- }>;
94759
- type RegistrationScreen = 'processing' | 'confirmed' | 'waitlisted' | 'error' | 'verifying' | 'verifyingTimeout' | 'paymentStatus' | 'paymentFailed';
94760
- /**
94761
- * What the booking surface renders: the step layout (with progress only when
94762
- * the step is part of the route), or one whole-panel screen. Never both.
94763
- */
94764
- type RegistrationPresentation = Readonly<{
94765
- layout: 'steps';
94766
- progress: RegistrationProgress | null;
94767
- }> | Readonly<{
94768
- layout: 'whole';
94769
- screen: Exclude<RegistrationScreen, 'confirmed' | 'waitlisted'>;
94770
- }> | Readonly<{
94771
- layout: 'whole';
94772
- screen: 'confirmed';
94773
- result: Extract<RegistrationResult, {
94774
- status: 'confirmed';
94775
- }>;
94776
- }> | Readonly<{
94777
- layout: 'whole';
94778
- screen: 'waitlisted';
94779
- result: Extract<RegistrationResult, {
94780
- status: 'waitlist';
94781
- }>;
94782
- }>;
94783
96155
  //#endregion
94784
96156
  //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts
94785
96157
  declare const unsupportedEventRegistrationPageSurfaceSubjectReasons: readonly ['unsupportedSubject', 'invalidAppointmentServiceId', 'invalidEventSeriesId', 'invalidEventSeriesBookingScope', 'invalidEventOfferingId', 'invalidEventOfferingBookingScope', 'invalidEventOfferingCatalogue'];
@@ -95122,13 +96494,16 @@ type EligibilityLookupState = {
95122
96494
  eligibility: EligibilityData;
95123
96495
  settledRequestKey: string;
95124
96496
  error: null;
95125
- } | {
96497
+ } /** `closed`: the server said this event has stopped taking bookings, so loading again won't help. */ | {
95126
96498
  tag: 'failed';
95127
96499
  eligibility: null;
95128
96500
  settledRequestKey: string;
95129
96501
  error: string;
96502
+ closed: boolean;
95130
96503
  };
95131
- type ExistingBookings = readonly CustomerEventRegistration[];
96504
+ /** The signed-in customer's own confirmed bookings for the date being booked. */
96505
+ type ExistingBookings = readonly PortalOccurrenceBooking[];
96506
+ /** `failed`: we couldn't check, which is not the same as having no booking. */
95132
96507
  type ExistingRegistrationLookupState = {
95133
96508
  tag: 'idle';
95134
96509
  registrations: ExistingBookings;
@@ -95138,6 +96513,9 @@ type ExistingRegistrationLookupState = {
95138
96513
  } | {
95139
96514
  tag: 'resolved';
95140
96515
  registrations: ExistingBookings;
96516
+ } | {
96517
+ tag: 'failed';
96518
+ registrations: ExistingBookings;
95141
96519
  };
95142
96520
  //#endregion
95143
96521
  //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts
@@ -95171,13 +96549,48 @@ type SignInReturn = Readonly<{
95171
96549
  endSignInReturn: () => void;
95172
96550
  }>;
95173
96551
  //#endregion
96552
+ //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationEntry.d.ts
96553
+ /**
96554
+ * What a date's own page offers besides its date. The booking block lists the
96555
+ * class's other upcoming dates after the page's; a headless flow books the
96556
+ * events its caller passes, as it always has.
96557
+ */
96558
+ type DatePageOffer = 'addMoreDates' | 'eventsAsGiven';
96559
+ /**
96560
+ * Where a booking starts and what it can choose from (`choices`).
96561
+ * - `chooseEvent`: nothing is chosen yet, so the visitor starts by choosing.
96562
+ * - `pageDate`: the page is about one date (or there's only one), so booking
96563
+ * starts on Tickets with it chosen. `event` is null while the page's date
96564
+ * isn't among the events.
96565
+ * - `pageDateAndMore`: a date's own page whose class books several dates. The
96566
+ * Dates step lists the page's date first, ticked, then `moreDates`.
96567
+ */
96568
+ type RegistrationEntry = Readonly<{
96569
+ kind: 'chooseEvent';
96570
+ choices: readonly RegistrationEvent[];
96571
+ }> | Readonly<{
96572
+ kind: 'pageDate';
96573
+ event: RegistrationEvent | null;
96574
+ choices: readonly RegistrationEvent[];
96575
+ }> | Readonly<{
96576
+ kind: 'pageDateAndMore';
96577
+ event: RegistrationEvent;
96578
+ moreDates: readonly [RegistrationEvent, ...RegistrationEvent[]];
96579
+ choices: readonly RegistrationEvent[];
96580
+ }>;
96581
+ //#endregion
95174
96582
  //#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts
95175
96583
  type SelectionSource = 'auto' | 'manual';
95176
96584
  type RegistrationDraftState = {
95177
96585
  questionFieldErrors: BookingQuestionsSubmissionFailure['questionFieldErrors'];
95178
96586
  draft: RegistrationDraftData; /** The place stepper's value; ticket types count their lines instead (`flowTicketsCount`). */
95179
96587
  placeCount: number;
95180
- eligibility: EligibilityData | null; /** The last room facts the booking options gave. They outlast the options; see `selectRoomOffer`. */
96588
+ eligibility: EligibilityData | null;
96589
+ /**
96590
+ * How several items can be paid, as the server answered for the current
96591
+ * selection; null for one item, and until the answer arrives.
96592
+ */
96593
+ selectionPayment: EventSelectionPayment | null; /** The last room facts the booking options gave. They outlast the options; see `selectRoomOffer`. */
95181
96594
  roomFacts: PublicEventRooms | null;
95182
96595
  paymentSelection: PaymentSelection;
95183
96596
  selectionSource: SelectionSource;
@@ -97491,8 +98904,7 @@ type SiteRuntimeIdentity = {
97491
98904
  /** The appearance subset shared by hosted and SDK runtime readers. */
97492
98905
  type SiteRuntimeSelectionPayload = {
97493
98906
  selectionJournalState: ThemeJournalState | null;
97494
- theme: Theme | null; /** Hosted-only; website payload bytes stay unchanged. */
97495
- hostedBookingAppearance?: HostedBookingAppearance;
98907
+ theme: Theme | null;
97496
98908
  themeId?: string | null;
97497
98909
  selectionId?: string | null;
97498
98910
  selectionVersion?: number | null;
@@ -97503,12 +98915,6 @@ type SiteRuntimeSelectionPayload = {
97503
98915
  selectionFooterPreferences?: FooterPreferences | null;
97504
98916
  selectionHeaderSelection?: HeaderLayoutStyleSelection | null;
97505
98917
  selectionFooterLookId?: string | null;
97506
- /**
97507
- * @deprecated No longer sent. The plan's attribution now arrives inside
97508
- * `layout.footer.footerRuntime`; this optional field is removed with the
97509
- * booking-page contract clean-up.
97510
- */
97511
- bookingAttribution?: SiteRuntimeBookingAttribution;
97512
98918
  };
97513
98919
  type SiteBySlugResponse = SiteRuntimeSelectionPayload & {
97514
98920
  /** Canonical booking-page embed settings; full websites have no embed policy. */bookingEmbed: BookingEmbedSettings | null; /** True when demo booking confirmations are suppressed because no claim is active. */
@@ -101133,11 +102539,9 @@ type CommercePortalAPIEndpoints = {
101133
102539
  reviewId: string;
101134
102540
  }, AdminResolveSiteBillingManualReviewResponse>;
101135
102541
  portalGetProfile: APIEndpoint<never, never, PortalMeResponse>;
101136
- portalUpdateProfile: APIEndpoint<PortalMeUpdateRequest, never, Omit<PortalMeResponse, 'siteTermsAcceptance'>>;
101137
- portalGetCredit: APIEndpoint<never, never, PortalCreditResponse>;
101138
- portalGetOrders: APIEndpoint<never, never, {
101139
- orders: CustomerOrder[];
101140
- }>;
102542
+ portalUpdateProfile: APIEndpoint<PortalMeUpdateRequest, never, PortalMeUpdateResponse>; /** Your details: profile, the booking terms last agreed to, the newsletter for this email, and how to reach the business. */
102543
+ portalGetDetails: APIEndpoint<never, never, PortalDetailsResponse>; /** Saves which newsletters this email gets; nothing chosen unsubscribes. */
102544
+ portalUpdateNewsletter: APIEndpoint<PortalNewsletterUpdateRequest, never, PortalNewsletterUpdateResponse>;
101141
102545
  portalCreateOrderCheckout: APIEndpoint<PortalOrderCheckoutRequest, {
101142
102546
  orderId: string;
101143
102547
  }, PortalOrderCheckoutResponse>;
@@ -101154,40 +102558,34 @@ type CommercePortalAPIEndpoints = {
101154
102558
  entitlementId: string;
101155
102559
  assetId: string;
101156
102560
  }, PortalDigitalProductDownloadUrlResponse>;
101157
- portalGetPasses: APIEndpoint<never, {
101158
- activeOnly?: string;
101159
- }, {
101160
- passes: CustomerPass[];
101161
- }>;
101162
- portalGetMemberships: APIEndpoint<never, {
101163
- includeInactive?: string;
101164
- }, {
101165
- memberships: CustomerMembership[];
101166
- }>;
101167
- portalGetEvents: APIEndpoint<never, {
101168
- upcoming?: string;
101169
- status?: 'confirmed' | 'waitlist' | 'cancelled';
101170
- limit?: string;
101171
- offset?: string;
101172
- waitlistEntryId?: string;
101173
- }, {
101174
- registrations: CustomerEventRegistration[];
101175
- waitlists: CustomerPortalWaitlistEntry[];
101176
- }>;
101177
102561
  portalCancelWaitlistEntry: APIEndpoint<never, {
101178
102562
  entryId: string;
101179
102563
  }, {
101180
102564
  outcome: 'cancelled';
101181
102565
  }>;
101182
- portalGetRegularSessions: APIEndpoint<never, never, PortalRegularSessionsResponse>;
101183
- portalGetAppointments: APIEndpoint<never, {
101184
- upcoming?: string;
101185
- status?: string;
101186
- limit?: string;
101187
- offset?: string;
101188
- }, {
101189
- appointments: PortalAppointmentWithDetails[];
101190
- }>;
102566
+ portalGetRegularSessions: APIEndpoint<never, never, PortalRegularSessionsResponse>; /** Every booking the customer holds, merged across kinds, grouped and ordered by the server. */
102567
+ portalGetBookings: APIEndpoint<never, {
102568
+ pastCursor?: string;
102569
+ pastLimit?: string;
102570
+ }, PortalBookingsResponse>; /** The portal's home: Things to do, the next bookings and a line per section. */
102571
+ portalGetHome: APIEndpoint<never, never, PortalHomeResponse>; /** The customer's own confirmed bookings for one event date, for the booking form's reminder. */
102572
+ portalGetOccurrenceBookings: APIEndpoint<never, {
102573
+ occurrenceId: string;
102574
+ }, PortalOccurrenceBookingsResponse>; /** The passes page: memberships, passes and site credit, each part read on its own. */
102575
+ portalGetHoldings: APIEndpoint<never, never, PortalHoldingsResponse>; /** Payments & receipts (a page of payments at a time), one payment as a receipt, and one order. */
102576
+ portalGetPayments: APIEndpoint<never, {
102577
+ before?: string;
102578
+ }, PortalPaymentsResponse>;
102579
+ portalGetReceipt: APIEndpoint<never, {
102580
+ receiptId: string;
102581
+ }, PortalReceiptResponse>;
102582
+ portalGetOrder: APIEndpoint<never, {
102583
+ orderId: string;
102584
+ }, PortalOrderResponse>; /** One booking, addressed by its portal kind and id. */
102585
+ portalGetBooking: APIEndpoint<never, {
102586
+ kind: string;
102587
+ bookingId: string;
102588
+ }, PortalBookingResponse>;
101191
102589
  portalGetAppointmentBookingQuestions: APIEndpoint<never, {
101192
102590
  appointmentId: string;
101193
102591
  }, {
@@ -101262,14 +102660,6 @@ type CommercePortalAPIEndpoints = {
101262
102660
  portalRescheduleAppointment: APIEndpoint<PortalRescheduleAppointmentRequest, {
101263
102661
  appointmentId: string;
101264
102662
  }, PortalRescheduleAppointmentResponse>;
101265
- portalGetWholeSeriesRegistrations: APIEndpoint<never, {
101266
- upcoming?: string;
101267
- status?: string;
101268
- limit?: string;
101269
- offset?: string;
101270
- }, {
101271
- enrollments: CustomerEventSeriesRegistration[];
101272
- }>;
101273
102663
  portalGetWholeSeriesBookingQuestions: APIEndpoint<never, {
101274
102664
  registrationId: string;
101275
102665
  }, PortalWholeSeriesBookingQuestionsResponse>;
@@ -101616,4 +103006,4 @@ type ApiClient<Allowed extends keyof APIEndpoints = keyof APIEndpoints, M extend
101616
103006
  readonly [apiClientRepresentation]?: M;
101617
103007
  };
101618
103008
  //#endregion
101619
- export { EventRegistrationPaymentMethod as $, RichTextDoc as $i, WeekStart as $n, persistableMediaSchema as $r, SiteRuntimeSiteTerms as $t, BodyTextContent as A, BusinessPersonNoun as Ai, BookingSubmitOptions as An, EventRegistrationPaymentSubject as Ar, StateUpdate as At, BookingPaymentOptionViewModel as B, BookingTimeZone as Bi, getBookingServiceSlidingScale as Bn, RenderableMediaAssetIndex as Br, AutoAppliedDiscountPreview as Bt, NewsletterSignupContent as C, SectionBoundaryTreatment as Ci, BookingFlowStep as Cn, SdkCustomBlock as Cr, RegistrationSelectionMode as Ct, ContactNewsletterContent as D, SectionSubjectFacts as Di, BookingSlotSelection as Dn, CustomerEventRegistration as Dr, SeveralItemsKind as Dt, EventDetailsContent as E, PageSectionDefinition as Ei, BookingResourceView as En, PortalEventTicket as Er, SelectionPaymentSummary as Et, BookingFormInteractiveIslandProps as F, PublishedBlockPlacementRead as Fi, getAppointmentBookingOverrideInput as Fn, PublicWholeSeriesRun as Fr, EventSourceRecovery as Ft, PortalCreditState as G, PageSurfaceSubjectWire as Gi, BlockApiConfig as Gn, AssetMedia as Gr, SdkEditorRevision as Gt, BookingQuestionsModel as H, AppointmentBookingReview as Hi, SpamProtectionPolicy as Hn, RenderableMediaAsset as Hr, PublicPassesResponse as Ht, GiftingInteractiveIslandProps as I, BusinessAddress as Ii, BookingValidationErrors as In, SystemEventPageSelection as Ir, BookingPageKind as It, ExistingRegistrationLookupState as J, EventCategoryId as Ji, CalendarTabViews as Jn, MediaPoster as Jr, ThemeSelectionPreviewProps as Jt, PortalProfile as K, NonNegativeCents as Ki, BrowserReadAuthority as Kn, ExternalMedia as Kr, SdkSiteLayoutConfig as Kt, EventRegistrationDirectPaymentOption as L, BookingConsent as Li, BookingAdmission as Ln, CalendarWindowPage as Lr, BlockApiProvider as Lt, DateRuntimeContext as M, WeeklyOpeningHours as Mi, DerivedBookingFlowSteps as Mn, PublicMapLocationResult as Mr, SelectionRequirementsLayout as Mt, resolveDateRuntimeContext as N, EditLeaseScope as Ni, LoadState as Nn, PublicEvent$1 as Nr, TicketSelectionPurpose as Nt, FormBlockContent as O, BookingEmbedSettings as Oi, BookingSlotView as On, DirectCheckoutCollectionOptionKind as Or, CombinationWorking as Ot, MediaAssetIndexItem as P, EditorBlockVersions as Pi, createBookingBlockApiConfig as Pn, PublicEventBase as Pr, BookingOfferingPresetSummary as Pt, EventRegistrationClientProps as Q, BindingTransformName as Qi, FilterAutoShow as Qn, mediaSchema as Qr, PublicServiceCategorySummary as Qt, EventRegistrationDirectPaymentSelectionState as R, DisplayContext as Ri, BookingFieldValue as Rn, CalendarWindowRequest as Rr, BlockApiClient as Rt, ClassPricesContent as S, pageDesignIntentSchemaVersion as Si, BookingFlowStatus as Sn, FieldDefinition as Sr, RegistrationSelection as St, EventCalendarContent as T, StoredSectionValues as Ti, BookingFlowView as Tn, PortalDigitalProductAccessResponse as Tr, SelectionPayment as Tt, RegistrationFlowState as U, EventOccurrenceContextData as Ui, SubmissionAuthorization as Un, buildRenderableMediaAssetIndex as Ur, NavigationAuthoringLinkInput as Ut, BookingPaymentSelectionViewModel as V, UtcIsoDateTimeString as Vi, ProtectedSubmission as Vn, resolveManagedMediaReference as Vr, DiscountApplyLine as Vt, PortalAuthState as W, EventPageSubrouteContext as Wi, submissionProof as Wn, renderableMediaAssetSchema as Wr, NavigationConfigItemInput as Wt, EligibilityData as X, Brand as Xi, DisplayMode as Xn, RuntimeMedia as Xr, PublicBookingServiceCatalogueItem as Xt, SelectableEventTicketType as Y, VenueId as Yi, ColumnOption as Yn, PersistableMedia as Yr, PublicBookingService as Yt, EventPaymentState as Z, BlockInteractionContext as Zi, EventLayout as Zn, RuntimeMediaOfType as Zr, PublicBookingServicesResponse as Zt, EntrySubrouteContextData as _, SolvedInksPolicy as _i, BookingAppointmentPackagesUnavailableReason as _n, Theme as _r, EventRegistrationPageSurfaceSubject as _t, PublicLoadStage as a, BlockButtonRole as aa, parseMediaIdentifier as ai, BookingFormService as an, BlockManifest as ar, PaymentStepState as at, PrefetchedBlockData as b, PageDesignIntent as bi, BookingFlowActionResult as bn, ReadinessStage as br, RegistrationTicketContinuation as bt, SdkRuntimePageSurfaceSubject as c, DesignBoundaryId as ca, RoomChoice as ci, BookingFormField as cn, ExternalLinkValue as cr, RegistrationResult as ct, SiteRuntimeSelectionPayload as d, EventRegistrationErrorAction as di, BookingPaymentChoice as dn, PageLinkValue as dr, ThemedButtonProps as dt, TipTapMark as ea, runtimeMediaSchema as ei, RoutableContentItem as en, EditorRenderablePageOutline as er, EventTicketSelectionLine as et, PreviewPageAdaptationFacts as f, PriceReductionSummary as fi, BookingPurchasablePackagesModel as fn, ResolvedInternalLinkEntityType as fr, FormData$1 as ft, SdkConfigForBlockPicker as g, SiteFooterContent as gi, BookingAppointmentPackagesModel as gn, LogoFacts as gr, SectionStylesContent as gt, ThemeResponsiveMode as h, EventSelectionFundingPick as hi, AppointmentBookingOverrideInputResult as hn, FooterMode as hr, ContainerStylesContent as ht, AdmittedEventSubroute as i, HexColor as ia, parseCanonicalMediaIdentifier as ii, BookingFormData as in, RenderableManifestContent as ir, PaymentStatusRecoveryState as it, LinkResolverContext as j, MailingListRuntimeContext as ji, DeriveBookingFlowStepsInput as jn, PublicMapLocationParams as jr, WaitlistInvitation as jt, LocationMapContent as k, MapDrawing as ki, BookingSubmitActionResult as kn, EventCheckoutReturnRequest as kr, CopyPart as kt, SiteBookingOfferingPresetSummary as l, PageFlowPresetId as la, RoomOptionChoice as li, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as ln, InternalLinkValue as lr, RegistrationStep as lt, PrefetchBlockDataOptions as m, EventSelectionFundingOption as mi, AppointmentBookingOverrideInput as mn, ContentFrameIntent as mr, CardStylesContent as mt, FrameworkCacheAdapter as n, ContentTypeSchema as na, mediaIdentifierSchema as ni, EventTicketLineSummary as nn, RenderablePageOutline as nr, GuestErrors as nt, PublicPageReadError as o, AppearancePresetId as oa, BookingQuestionsSubmissionFailure as oi, BookingSelectedCollectionOptionKind as on, CustomLinkValue as or, RegistrationAttendanceMode as ot, PreviewRenderingOverride as p, CurrencyCode as pi, AppointmentBookingOverrideData as pn, HeaderLogoContext as pr, OccurrenceContext as pt, EligibilityLookupState as q, PositiveCents as qi, BlockSiteTerms as qn, Media as qr, ThemeJournalState as qt, ApiErrorCode as r, DeepReadonly as ra, MediaIdentifier as ri, BookingFormConfig as rn, CompiledManifestContentContract as rr, PaymentSelection as rt, SdkRuntimeContentByPathResponse as s, DesignBlockId as sa, EventRegistrationPricingOption as si, BookingFormServiceCategory as sn, EntryLinkValue as sr, RegistrationEvent as st, ApiClient as t, TipTapNode as ta, MediaTypeDiscriminant as ti, EventEmbeddedCheckout as tn, RenderablePageBlock as tr, Guest as tt, SiteRuntimeIdentity as u, SiteStyleId as ua, CombinationPricePlan as ui, BookingPaymentAvailability as un, LinkValue as ur, RegistrationSubject as ut, BlockLoaderFailures as v, OpaqueButtonColourToken as vi, BookingAvailabilityQuery as vn, PageBlockRenderAdmissionError as vr, RegistrationPresentation as vt, ImageGalleryContent as w, SurfaceId as wi, BookingFlowStepId as wn, SelectionAttendance as wr, RunPricingChoices as wt, ResolvedBlockData as x, PageDesignUserPinnedChoice as xi, BookingFlowFeedback as xn, Block as xr, BookingSelection as xt, BlockLoaderSnapshot as y, PageRuntimeJoin as yi, BookingFieldView as yn, PageTemplate as yr, RegistrationAdmission as yt, EventRegistrationSiteCreditPreview as z, ZoneLabel as zi, BookingQuestionsPaymentSnapshot as zn, ManagedMediaResolution as zr, BoundBlockApiClient as zt };
103009
+ export { EventPaymentState as $, NonNegativeCents as $i, EventLayout as $n, ExternalMedia as $r, PublicBookingServicesResponse as $t, BodyTextContent as A, SectionBoundaryTreatment as Ai, BookingSlotView as An, ClientPortalLocation as Ar, SelectionRequirementsLayout as At, BookingPaymentOptionViewModel as B, EditLeaseScope as Bi, BookingFieldValue as Bn, PublicEvent$1 as Br, BoundBlockApiClient as Bt, NewsletterSignupContent as C, SiteFooterContent as Ci, BookingFlowFeedback as Cn, Block as Cr, RunPricingChoices as Ct, ContactNewsletterContent as D, PageDesignIntent as Di, BookingFlowView as Dn, PortalDigitalProductAccessResponse as Dr, CopyPart as Dt, EventDetailsContent as E, PageRuntimeJoin as Ei, BookingFlowStepId as En, SelectionAttendance as Er, CombinationWorking as Et, BookingFormInteractiveIslandProps as F, BookingEmbedSettings as Fi, LoadState as Fn, DirectCheckoutCollectionOptionKind as Fr, BookingOfferingPresetSummary as Ft, RegistrationEntry as G, DisplayContext as Gi, SubmissionAuthorization as Gn, CalendarWindowRequest as Gr, NavigationAuthoringLinkInput as Gt, BookingQuestionsModel as H, PublishedBlockPlacementRead as Hi, getBookingServiceSlidingScale as Hn, PublicWholeSeriesRun as Hr, DiscountApplyLine as Ht, GiftingInteractiveIslandProps as I, MapDrawing as Ii, createBookingBlockApiConfig as In, EventCheckoutReturnRequest as Ir, EventSourceRecovery as It, PortalProfile as J, UtcIsoDateTimeString as Ji, BrowserReadAuthority as Jn, resolveManagedMediaReference as Jr, SdkSiteLayoutConfig as Jt, PortalAuthState as K, ZoneLabel as Ki, submissionProof as Kn, ManagedMediaResolution as Kr, NavigationConfigItemInput as Kt, EventRegistrationDirectPaymentOption as L, BusinessPersonNoun as Li, getAppointmentBookingOverrideInput as Ln, EventRegistrationPaymentSubject as Lr, BookingPageKind as Lt, DateRuntimeContext as M, StoredSectionValues as Mi, BookingSubmitOptions as Mn, PortalLocation as Mr, RegistrationAdmission as Mt, resolveDateRuntimeContext as N, PageSectionDefinition as Ni, DeriveBookingFlowStepsInput as Nn, PortalRoute as Nr, RegistrationTicketContinuation as Nt, FormBlockContent as O, PageDesignUserPinnedChoice as Oi, BookingResourceView as On, PortalEventTicket as Or, StateUpdate as Ot, MediaAssetIndexItem as P, SectionSubjectFacts as Pi, DerivedBookingFlowSteps as Pn, PortalTarget as Pr, TicketSelectionPurpose as Pt, EligibilityData as Q, PageSurfaceSubjectWire as Qi, DisplayMode as Qn, AssetMedia as Qr, PublicBookingServiceCatalogueItem as Qt, EventRegistrationDirectPaymentSelectionState as R, MailingListRuntimeContext as Ri, BookingValidationErrors as Rn, PublicMapLocationParams as Rr, BlockApiProvider as Rt, ClassPricesContent as S, EventSelectionFundingPick as Si, BookingFlowActionResult as Sn, ReadinessStage as Sr, RegistrationSelectionMode as St, EventCalendarContent as T, OpaqueButtonColourToken as Ti, BookingFlowStep as Tn, SdkCustomBlock as Tr, SeveralItemsKind as Tt, RegistrationFlowState as U, BusinessAddress as Ui, ProtectedSubmission as Un, SystemEventPageSelection as Ur, DiscountContext as Ut, BookingPaymentSelectionViewModel as V, EditorBlockVersions as Vi, BookingQuestionsPaymentSnapshot as Vn, PublicEventBase as Vr, AutoAppliedDiscountPreview as Vt, DatePageOffer as W, BookingConsent as Wi, SpamProtectionPolicy as Wn, CalendarWindowPage as Wr, PublicPassesResponse as Wt, ExistingRegistrationLookupState as X, EventOccurrenceContextData as Xi, CalendarTabViews as Xn, buildRenderableMediaAssetIndex as Xr, ThemeSelectionPreviewProps as Xt, EligibilityLookupState as Y, AppointmentBookingReview as Yi, BlockSiteTerms as Yn, RenderableMediaAsset as Yr, ThemeJournalState as Yt, SelectableEventTicketType as Z, EventPageSubrouteContext as Zi, ColumnOption as Zn, renderableMediaAssetSchema as Zr, PublicBookingService as Zt, EntrySubrouteContextData as _, SiteStyleId as _a, CombinationPricePlan as _i, AppointmentBookingOverrideInputResult as _n, FooterMode as _r, ContainerStylesContent as _t, PublicLoadStage as a, BindingTransformName as aa, mediaSchema as ai, BookingFormConfig as an, CompiledManifestContentContract as ar, PaymentSelection as at, PrefetchedBlockData as b, CurrencyCode as bi, BookingAvailabilityQuery as bn, PageBlockRenderAdmissionError as br, BookingSelection as bt, SdkRuntimePageSurfaceSubject as c, TipTapNode as ca, MediaTypeDiscriminant as ci, BookingSelectedCollectionOptionKind as cn, CustomLinkValue as cr, RegistrationAttendanceMode as ct, SiteRuntimeSelectionPayload as d, HexColor as da, parseCanonicalMediaIdentifier as di, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as dn, InternalLinkValue as dr, RegistrationStep as dt, PositiveCents as ea, Media as ei, PublicServiceCategorySummary as en, FilterAutoShow as er, EventRegistrationClientProps as et, PreviewPageAdaptationFacts as f, BlockButtonRole as fa, parseMediaIdentifier as fi, BookingPaymentAvailability as fn, LinkValue as fr, RegistrationSubject as ft, SdkConfigForBlockPicker as g, PageFlowPresetId as ga, RoomOptionChoice as gi, AppointmentBookingOverrideInput as gn, ContentFrameIntent as gr, CardStylesContent as gt, ThemeResponsiveMode as h, DesignBoundaryId as ha, RoomChoice as hi, AppointmentBookingOverrideData as hn, HeaderLogoContext as hr, OccurrenceContext as ht, AdmittedEventSubroute as i, BlockInteractionContext as ia, RuntimeMediaOfType as ii, EventTicketLineSummary as in, RenderablePageOutline as ir, GuestErrors as it, LinkResolverContext as j, SurfaceId as ji, BookingSubmitActionResult as jn, PortalEntryReason as jr, RegistrationPresentation as jt, LocationMapContent as k, pageDesignIntentSchemaVersion as ki, BookingSlotSelection as kn, CUSTOMER_PORTAL_PATH as kr, WaitlistInvitation as kt, SiteBookingOfferingPresetSummary as l, ContentTypeSchema as la, mediaIdentifierSchema as li, BookingFormServiceCategory as ln, EntryLinkValue as lr, RegistrationEvent as lt, PrefetchBlockDataOptions as m, DesignBlockId as ma, EventRegistrationPricingOption as mi, BookingPurchasablePackagesModel as mn, ResolvedInternalLinkEntityType as mr, FormData$1 as mt, FrameworkCacheAdapter as n, VenueId as na, PersistableMedia as ni, RoutableContentItem as nn, EditorRenderablePageOutline as nr, EventTicketSelectionLine as nt, PublicPageReadError as o, RichTextDoc as oa, persistableMediaSchema as oi, BookingFormData as on, RenderableManifestContent as or, PaymentStatusRecoveryState as ot, PreviewRenderingOverride as p, AppearancePresetId as pa, BookingQuestionsSubmissionFailure as pi, BookingPaymentChoice as pn, PageLinkValue as pr, ThemedButtonProps as pt, PortalCreditState as q, BookingTimeZone as qi, BlockApiConfig as qn, RenderableMediaAssetIndex as qr, SdkEditorRevision as qt, ApiErrorCode as r, Brand as ra, RuntimeMedia as ri, EventEmbeddedCheckout as rn, RenderablePageBlock as rr, Guest as rt, SdkRuntimeContentByPathResponse as s, TipTapMark as sa, runtimeMediaSchema as si, BookingFormService as sn, BlockManifest as sr, PaymentStepState as st, ApiClient as t, EventCategoryId as ta, MediaPoster as ti, SiteRuntimeSiteTerms as tn, WeekStart as tr, EventRegistrationPaymentMethod as tt, SiteRuntimeIdentity as u, DeepReadonly as ua, MediaIdentifier as ui, BookingFormField as un, ExternalLinkValue as ur, RegistrationResult as ut, BlockLoaderFailures as v, EventRegistrationErrorAction as vi, BookingAppointmentPackagesModel as vn, LogoFacts as vr, SectionStylesContent as vt, ImageGalleryContent as w, SolvedInksPolicy as wi, BookingFlowStatus as wn, FieldDefinition as wr, SelectionPaymentSummary as wt, ResolvedBlockData as x, EventSelectionFundingOption as xi, BookingFieldView as xn, PageTemplate as xr, RegistrationSelection as xt, BlockLoaderSnapshot as y, PriceReductionSummary as yi, BookingAppointmentPackagesUnavailableReason as yn, Theme as yr, EventRegistrationPageSurfaceSubject as yt, EventRegistrationSiteCreditPreview as z, WeeklyOpeningHours as zi, BookingAdmission as zn, PublicMapLocationResult as zr, BlockApiClient as zt };