@riverbankcms/sdk 0.180.0 → 0.182.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.
- package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
- package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +83 -52
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
- package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +106 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
- package/dist/client/portal/client.mjs +12202 -7166
- package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
- package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-CeMywaiD.mjs +1485 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +10 -9
- package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
- package/dist/server/theme-bridge.mjs +34 -8
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1098 -1885
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- 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: [{
|
|
@@ -19208,7 +19211,6 @@ type Database = {
|
|
|
19208
19211
|
archived_at: string | null;
|
|
19209
19212
|
archived_by: string | null;
|
|
19210
19213
|
avatar_asset_id: string | null;
|
|
19211
|
-
bio: string | null;
|
|
19212
19214
|
calendar_sync_enabled: boolean;
|
|
19213
19215
|
color_hex: string | null;
|
|
19214
19216
|
content_entry_id: string | null;
|
|
@@ -19227,7 +19229,6 @@ type Database = {
|
|
|
19227
19229
|
archived_at?: string | null;
|
|
19228
19230
|
archived_by?: string | null;
|
|
19229
19231
|
avatar_asset_id?: string | null;
|
|
19230
|
-
bio?: string | null;
|
|
19231
19232
|
calendar_sync_enabled?: boolean;
|
|
19232
19233
|
color_hex?: string | null;
|
|
19233
19234
|
content_entry_id?: string | null;
|
|
@@ -19246,7 +19247,6 @@ type Database = {
|
|
|
19246
19247
|
archived_at?: string | null;
|
|
19247
19248
|
archived_by?: string | null;
|
|
19248
19249
|
avatar_asset_id?: string | null;
|
|
19249
|
-
bio?: string | null;
|
|
19250
19250
|
calendar_sync_enabled?: boolean;
|
|
19251
19251
|
color_hex?: string | null;
|
|
19252
19252
|
content_entry_id?: string | null;
|
|
@@ -23023,6 +23023,16 @@ type Database = {
|
|
|
23023
23023
|
};
|
|
23024
23024
|
Returns: string;
|
|
23025
23025
|
};
|
|
23026
|
+
change_gifting_instrument_expiry_v1: {
|
|
23027
|
+
Args: {
|
|
23028
|
+
p_actor_user_id: string;
|
|
23029
|
+
p_expected_expires_at: string;
|
|
23030
|
+
p_instrument_id: string;
|
|
23031
|
+
p_new_expires_at: string;
|
|
23032
|
+
p_site_id: string;
|
|
23033
|
+
};
|
|
23034
|
+
Returns: string;
|
|
23035
|
+
};
|
|
23026
23036
|
check_site_invitation_registration_code: {
|
|
23027
23037
|
Args: {
|
|
23028
23038
|
p_code_hash: string;
|
|
@@ -27613,6 +27623,16 @@ type Database = {
|
|
|
27613
27623
|
locked_until: string;
|
|
27614
27624
|
}[];
|
|
27615
27625
|
};
|
|
27626
|
+
reopen_event_attendee_after_non_payment_v1: {
|
|
27627
|
+
Args: {
|
|
27628
|
+
p_attendee_id: string;
|
|
27629
|
+
p_site_id: string;
|
|
27630
|
+
};
|
|
27631
|
+
Returns: {
|
|
27632
|
+
attendee_id: string;
|
|
27633
|
+
replayed: boolean;
|
|
27634
|
+
}[];
|
|
27635
|
+
};
|
|
27616
27636
|
reopen_order_flexible_balance: {
|
|
27617
27637
|
Args: {
|
|
27618
27638
|
p_detected_at: string;
|
|
@@ -31061,6 +31081,10 @@ type EditLeaseToken = Brand<string, 'EditLeaseToken'>;
|
|
|
31061
31081
|
type EditorSessionGeneration = Brand<string, 'EditorSessionGeneration'>;
|
|
31062
31082
|
type SiteFontId = Brand<string, 'SiteFontId'>;
|
|
31063
31083
|
//#endregion
|
|
31084
|
+
//#region .cache/declarations/core/src/branded/orders.d.ts
|
|
31085
|
+
type OrderId = Brand<string, 'OrderId'>;
|
|
31086
|
+
type OrderPaymentReceiptId = Brand<string, 'OrderPaymentReceiptId'>;
|
|
31087
|
+
//#endregion
|
|
31064
31088
|
//#region .cache/declarations/core/src/branded/products.d.ts
|
|
31065
31089
|
type ProductId = Brand<string, 'ProductId'>;
|
|
31066
31090
|
//#endregion
|
|
@@ -31068,7 +31092,11 @@ type ProductId = Brand<string, 'ProductId'>;
|
|
|
31068
31092
|
type MediaAssetId = Brand<string, 'MediaAssetId'>;
|
|
31069
31093
|
type SiteScopedStoragePath = Brand<string, 'SiteScopedStoragePath'>;
|
|
31070
31094
|
//#endregion
|
|
31095
|
+
//#region .cache/declarations/core/src/branded/bookings.d.ts
|
|
31096
|
+
type WaitlistEntryId = Brand<string, 'WaitlistEntryId'>;
|
|
31097
|
+
//#endregion
|
|
31071
31098
|
//#region .cache/declarations/core/src/branded/entitlements.d.ts
|
|
31099
|
+
type EntitlementId = Brand<string, 'EntitlementId'>;
|
|
31072
31100
|
type PassId = Brand<string, 'PassId'>;
|
|
31073
31101
|
type CustomerPassId = Brand<string, 'CustomerPassId'>;
|
|
31074
31102
|
//#endregion
|
|
@@ -31083,6 +31111,7 @@ type AppointmentId = Brand<string, 'AppointmentId'>;
|
|
|
31083
31111
|
type AppointmentServiceId = Brand<string, 'AppointmentServiceId'>;
|
|
31084
31112
|
type AppointmentResourceId = Brand<string, 'AppointmentResourceId'>;
|
|
31085
31113
|
type StaffMemberId = Brand<string, 'StaffMemberId'>;
|
|
31114
|
+
type ClientArrangementId = Brand<string, 'ClientArrangementId'>;
|
|
31086
31115
|
//#endregion
|
|
31087
31116
|
//#region .cache/declarations/core/src/branded/content.d.ts
|
|
31088
31117
|
type ContentEntryId = Brand<string, 'ContentEntryId'>;
|
|
@@ -31533,6 +31562,19 @@ type RefundFundingLine = Readonly<{
|
|
|
31533
31562
|
destination: RefundDestination;
|
|
31534
31563
|
remainingCents: number;
|
|
31535
31564
|
}>;
|
|
31565
|
+
/**
|
|
31566
|
+
* Where money goes back, as a customer is told it: to the card (or other
|
|
31567
|
+
* payment) it came from, as credit on their account with the business, or
|
|
31568
|
+
* split between the two. Money handed back directly counts as going back to
|
|
31569
|
+
* the payment.
|
|
31570
|
+
*/
|
|
31571
|
+
type RefundDestinationKind = 'card' | 'site_credit' | 'card_and_site_credit';
|
|
31572
|
+
/**
|
|
31573
|
+
* Who a refund reaches: the customer cancelling, or whoever originally paid.
|
|
31574
|
+
* A booking given to someone else still refunds against the order that paid
|
|
31575
|
+
* for it, so its money goes back to the original buyer.
|
|
31576
|
+
*/
|
|
31577
|
+
type RefundRecipient = 'you' | 'original_buyer';
|
|
31536
31578
|
type CancellationMoney = Readonly<{
|
|
31537
31579
|
amountCents: number;
|
|
31538
31580
|
currency: string;
|
|
@@ -31545,18 +31587,22 @@ type CancellationKeepReason = Readonly<{
|
|
|
31545
31587
|
kind: 'never_refunded';
|
|
31546
31588
|
}> | Readonly<{
|
|
31547
31589
|
kind: 'non_refundable_deposit';
|
|
31590
|
+
}> /** Cancelled once it has started (a course's first session, say): the refund window has gone with it. */ | Readonly<{
|
|
31591
|
+
kind: 'already_started';
|
|
31548
31592
|
}>;
|
|
31549
31593
|
/** What happens to the client's money or credit if they cancel, as the cancellation plan decided it. */
|
|
31550
31594
|
type CancellationMoneyOutcome = /** Nothing was paid, or it has all gone back already. */Readonly<{
|
|
31551
31595
|
kind: 'nothing_to_return';
|
|
31552
|
-
}> | Readonly<{
|
|
31596
|
+
}> /** `until` is when cancelling stops giving it back, when the refund policy has such a point. */ | Readonly<{
|
|
31553
31597
|
kind: 'refund';
|
|
31554
31598
|
money: CancellationMoney;
|
|
31555
|
-
to:
|
|
31599
|
+
to: RefundDestinationKind;
|
|
31556
31600
|
keptDeposit?: CancellationMoney;
|
|
31601
|
+
until?: string;
|
|
31557
31602
|
}> | Readonly<{
|
|
31558
31603
|
kind: 'credit_back';
|
|
31559
31604
|
credits: number;
|
|
31605
|
+
until?: string;
|
|
31560
31606
|
}> | Readonly<{
|
|
31561
31607
|
kind: 'keep_money';
|
|
31562
31608
|
money: CancellationMoney;
|
|
@@ -31569,6 +31615,23 @@ type CancellationMoneyOutcome = /** Nothing was paid, or it has all gone back al
|
|
|
31569
31615
|
kind: 'contact_business';
|
|
31570
31616
|
money: CancellationMoney;
|
|
31571
31617
|
}>;
|
|
31618
|
+
/**
|
|
31619
|
+
* What a cancellation did with the customer's money, decided by the server
|
|
31620
|
+
* once it has happened. `to` is read from where the refund's money actually
|
|
31621
|
+
* went, and `amount` is null when the refund didn't report one.
|
|
31622
|
+
*/
|
|
31623
|
+
type CancelledMoney = /** Money is going back: to the card it was paid with, to credit with the business, or split between them. */Readonly<{
|
|
31624
|
+
kind: 'refunded';
|
|
31625
|
+
amount: CancellationMoney | null;
|
|
31626
|
+
to: RefundDestinationKind;
|
|
31627
|
+
recipient: RefundRecipient;
|
|
31628
|
+
}> /** A pass or package session was given back. */ | Readonly<{
|
|
31629
|
+
kind: 'credit_restored';
|
|
31630
|
+
}> /** The booking is cancelled but the refund didn't go through; the business has to sort it out. */ | Readonly<{
|
|
31631
|
+
kind: 'refund_failed';
|
|
31632
|
+
}> | Readonly<{
|
|
31633
|
+
kind: 'none';
|
|
31634
|
+
}>;
|
|
31572
31635
|
type ScheduleBookingChoice = 'move' | 'cancel';
|
|
31573
31636
|
/** Closed refusal and reconciliation reasons shared by stored reviews and receipts. */
|
|
31574
31637
|
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 +33761,7 @@ type JournalRevisionReceipt<Revision> = Readonly<{
|
|
|
33698
33761
|
type JournalCommitReceipt<Target, Value, Revision> = Readonly<Target> & JournalInverse<Value> & JournalRevisionReceipt<Revision>;
|
|
33699
33762
|
//#endregion
|
|
33700
33763
|
//#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';
|
|
33764
|
+
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
33765
|
type BookingActionAvailability<Reason extends BookingActionReason = BookingActionReason> = Readonly<{
|
|
33703
33766
|
kind: 'available';
|
|
33704
33767
|
until: string | null;
|
|
@@ -33710,6 +33773,25 @@ type BookingActionAvailability<Reason extends BookingActionReason = BookingActio
|
|
|
33710
33773
|
reason: Reason;
|
|
33711
33774
|
}>;
|
|
33712
33775
|
//#endregion
|
|
33776
|
+
//#region .cache/declarations/core/src/booking-context-ref.d.ts
|
|
33777
|
+
/**
|
|
33778
|
+
* Identifies one booking: an appointment, a place on a dated event (its
|
|
33779
|
+
* attendee row) or a course registration. Requirements use it for routing,
|
|
33780
|
+
* review and reminder lookup, and the customer portal addresses bookings by
|
|
33781
|
+
* it. Participant-specific task identity lives separately on
|
|
33782
|
+
* `BookingRequirementSubject`.
|
|
33783
|
+
*/
|
|
33784
|
+
type BookingContextRef = Readonly<{
|
|
33785
|
+
tag: 'appointment';
|
|
33786
|
+
appointmentId: AppointmentId;
|
|
33787
|
+
}> | Readonly<{
|
|
33788
|
+
tag: 'event_attendee';
|
|
33789
|
+
attendeeId: AttendeeId;
|
|
33790
|
+
}> | Readonly<{
|
|
33791
|
+
tag: 'event_series_registration';
|
|
33792
|
+
registrationId: EventSeriesRegistrationId;
|
|
33793
|
+
}>;
|
|
33794
|
+
//#endregion
|
|
33713
33795
|
//#region .cache/declarations/core/src/offline-payment-method.d.ts
|
|
33714
33796
|
/** How money was received outside the online card checkout. */
|
|
33715
33797
|
declare const OFFLINE_PAYMENT_METHODS: readonly ['cash', 'bank_transfer', 'card_machine', 'other'];
|
|
@@ -39711,6 +39793,77 @@ type SiteOnlinePayments = Readonly<{
|
|
|
39711
39793
|
organiserContact?: SiteOrganiserContact;
|
|
39712
39794
|
}>;
|
|
39713
39795
|
//#endregion
|
|
39796
|
+
//#region .cache/declarations/site-contracts/src/siteData/eventSelectionPayment.d.ts
|
|
39797
|
+
/**
|
|
39798
|
+
* How a selection of dates or runs can be paid, as the server's selection
|
|
39799
|
+
* payment owner decided it. The block formats this and offers nothing else, so
|
|
39800
|
+
* an option the page offers is one checkout accepts.
|
|
39801
|
+
*/
|
|
39802
|
+
/** How a way to pay collects its money. Several bookings only ever pay in full or directly. */
|
|
39803
|
+
type EventSelectionCollectionKind = 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
39804
|
+
/** One booking's own share when several are paid directly: each owes its own amount. */
|
|
39805
|
+
type EventSelectionBookingAmount = Readonly<{
|
|
39806
|
+
itemId: string;
|
|
39807
|
+
amountCents: number;
|
|
39808
|
+
}>;
|
|
39809
|
+
type EventSelectionCollection = Readonly<{
|
|
39810
|
+
kind: EventSelectionCollectionKind; /** What this way to pay charges, before any code. */
|
|
39811
|
+
amountCents: number;
|
|
39812
|
+
currency: string;
|
|
39813
|
+
/**
|
|
39814
|
+
* Each booking's own amount when several are paid this way and each owes its
|
|
39815
|
+
* own price. Absent for one booking, or when a combination price makes the
|
|
39816
|
+
* order's total something other than their prices added up.
|
|
39817
|
+
*/
|
|
39818
|
+
bookings?: readonly EventSelectionBookingAmount[];
|
|
39819
|
+
}>;
|
|
39820
|
+
type EventSelectionPaymentCollect = Readonly<{
|
|
39821
|
+
kind: 'nothing';
|
|
39822
|
+
}> | Readonly<{
|
|
39823
|
+
kind: 'money';
|
|
39824
|
+
collections: readonly [EventSelectionCollection, ...EventSelectionCollection[]];
|
|
39825
|
+
}>;
|
|
39826
|
+
/** One way to fund the selection (money, or a pass or membership) and how its money is collected. */
|
|
39827
|
+
type EventSelectionPaymentOption = Readonly<{
|
|
39828
|
+
funding: EventSelectionFundingPick;
|
|
39829
|
+
collect: EventSelectionPaymentCollect;
|
|
39830
|
+
}>;
|
|
39831
|
+
type EventSelectionPayment = Readonly<{
|
|
39832
|
+
kind: 'bookable';
|
|
39833
|
+
options: readonly [EventSelectionPaymentOption, ...EventSelectionPaymentOption[]];
|
|
39834
|
+
}> /** These items' ways to pay each cover one booking. A page shouldn't offer this selection; it's the stale-page answer. */ | Readonly<{
|
|
39835
|
+
kind: 'bookSeparately';
|
|
39836
|
+
}> /** Money is due and the site can't take it online. */ | Readonly<{
|
|
39837
|
+
kind: 'cannotBookOnline';
|
|
39838
|
+
organiserContact: SiteOrganiserContact | null;
|
|
39839
|
+
}> /** One item with no way to pay set up. */ | Readonly<{
|
|
39840
|
+
kind: 'noPaymentOption';
|
|
39841
|
+
}>;
|
|
39842
|
+
/** Each run of one course and the places chosen on it. */
|
|
39843
|
+
type EventRunsSelectionRun = Readonly<{
|
|
39844
|
+
eventSeriesId: string;
|
|
39845
|
+
selections: readonly Readonly<{
|
|
39846
|
+
pricingOptionId: string | null;
|
|
39847
|
+
quantity: number;
|
|
39848
|
+
}>[];
|
|
39849
|
+
selectedSlidingAmount?: number;
|
|
39850
|
+
}>;
|
|
39851
|
+
/** How several runs of one course (or one run) can be paid for. */
|
|
39852
|
+
type EventRunsSelectionPaymentRequest = Readonly<{
|
|
39853
|
+
subject: Readonly<{
|
|
39854
|
+
kind: 'runs';
|
|
39855
|
+
runs: readonly [EventRunsSelectionRun, ...EventRunsSelectionRun[]];
|
|
39856
|
+
attendanceMode?: 'in_person' | 'online';
|
|
39857
|
+
}>;
|
|
39858
|
+
}>;
|
|
39859
|
+
type EventRunsSelectionPaymentResponse = Readonly<{
|
|
39860
|
+
subject: Readonly<{
|
|
39861
|
+
kind: 'runs';
|
|
39862
|
+
eventSeriesIds: readonly [string, ...string[]];
|
|
39863
|
+
}>;
|
|
39864
|
+
payment: EventSelectionPayment;
|
|
39865
|
+
}>;
|
|
39866
|
+
//#endregion
|
|
39714
39867
|
//#region .cache/declarations/commerce/src/purchase/checkoutPresentation.d.ts
|
|
39715
39868
|
/** Browser-safe Checkout contracts shared by payment owners. */
|
|
39716
39869
|
type CheckoutPresentationFields = {
|
|
@@ -40106,7 +40259,8 @@ type EventSelectionFundingResponse = Readonly<{
|
|
|
40106
40259
|
kind: 'dates';
|
|
40107
40260
|
occurrenceIds: readonly [string, ...string[]];
|
|
40108
40261
|
}>;
|
|
40109
|
-
funding: EventSelectionFunding;
|
|
40262
|
+
funding: EventSelectionFunding; /** How each way to fund the dates collects its money. Older servers don't send it. */
|
|
40263
|
+
payment?: EventSelectionPayment;
|
|
40110
40264
|
}>;
|
|
40111
40265
|
type EventRegistrationOrganiserContact = SiteOrganiserContact;
|
|
40112
40266
|
type EventRegistrationOptionsResponse = Readonly<{
|
|
@@ -40240,6 +40394,815 @@ type EventRegistrationMembershipProduct = Readonly<{
|
|
|
40240
40394
|
interval: 'month' | 'year';
|
|
40241
40395
|
}>;
|
|
40242
40396
|
//#endregion
|
|
40397
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalAccounts.d.ts
|
|
40398
|
+
/**
|
|
40399
|
+
* Customer profile data from /api/portal/me
|
|
40400
|
+
*/
|
|
40401
|
+
interface CustomerProfile {
|
|
40402
|
+
id: string;
|
|
40403
|
+
email: string;
|
|
40404
|
+
name: string;
|
|
40405
|
+
phone: string | null;
|
|
40406
|
+
}
|
|
40407
|
+
/**
|
|
40408
|
+
* Enabled modules for the site from /api/portal/me
|
|
40409
|
+
*/
|
|
40410
|
+
interface EnabledModules {
|
|
40411
|
+
appointments: boolean;
|
|
40412
|
+
events: boolean;
|
|
40413
|
+
}
|
|
40414
|
+
interface EventTicketBreakdownLine {
|
|
40415
|
+
pricingOptionId: string | null;
|
|
40416
|
+
label: string;
|
|
40417
|
+
quantity: number;
|
|
40418
|
+
}
|
|
40419
|
+
/**
|
|
40420
|
+
* Customer event registration data from /api/portal/events
|
|
40421
|
+
* Note: status uses British spelling 'cancelled'
|
|
40422
|
+
*/
|
|
40423
|
+
/** How to join an upcoming online booking, for the client who holds it. */
|
|
40424
|
+
interface PortalJoiningDetails {
|
|
40425
|
+
joinUrl: string;
|
|
40426
|
+
accessCode: string | null;
|
|
40427
|
+
notes: string | null;
|
|
40428
|
+
}
|
|
40429
|
+
/** Guest details for event registration. */
|
|
40430
|
+
interface EventGuest {
|
|
40431
|
+
id: string;
|
|
40432
|
+
name: string;
|
|
40433
|
+
phone: string | null;
|
|
40434
|
+
guestIndex: number;
|
|
40435
|
+
}
|
|
40436
|
+
//#endregion
|
|
40437
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalCredits.d.ts
|
|
40438
|
+
/**
|
|
40439
|
+
* Customer pass data from /api/portal/passes
|
|
40440
|
+
*/
|
|
40441
|
+
interface CustomerPassCreditHistoryEntry {
|
|
40442
|
+
id: string;
|
|
40443
|
+
kind: 'redemption' | 'restoration';
|
|
40444
|
+
credits: number;
|
|
40445
|
+
subjectKind: 'event_attendee' | 'appointment';
|
|
40446
|
+
subjectId: string;
|
|
40447
|
+
occurredAt: string;
|
|
40448
|
+
bookingStartsAt: string | null;
|
|
40449
|
+
actorKind: 'customer' | 'admin' | 'system' | null;
|
|
40450
|
+
reason: string | null;
|
|
40451
|
+
/**
|
|
40452
|
+
* On a redemption: what became of that use. `forfeited` is a booking cancelled
|
|
40453
|
+
* without the credit coming back (late, or under a no-refunds policy). Absent
|
|
40454
|
+
* on restorations, and from older servers.
|
|
40455
|
+
*/
|
|
40456
|
+
useState?: 'consumed' | 'restored' | 'forfeited';
|
|
40457
|
+
}
|
|
40458
|
+
interface CustomerPass {
|
|
40459
|
+
id: string;
|
|
40460
|
+
heldWithStaffMemberId: string | null;
|
|
40461
|
+
passId: string;
|
|
40462
|
+
productUseCase: 'event_pass' | 'appointment_package';
|
|
40463
|
+
passName: string;
|
|
40464
|
+
passDescription: string | null;
|
|
40465
|
+
creditsHeld: number;
|
|
40466
|
+
creditsRemaining: number;
|
|
40467
|
+
creditsTotal: number;
|
|
40468
|
+
purchasedAt: string;
|
|
40469
|
+
expiresAt: string | null;
|
|
40470
|
+
status: 'active' | 'exhausted' | 'expired' | 'refunded';
|
|
40471
|
+
creditHistory: readonly CustomerPassCreditHistoryEntry[];
|
|
40472
|
+
}
|
|
40473
|
+
/**
|
|
40474
|
+
* Customer membership data from /api/portal/memberships
|
|
40475
|
+
*/
|
|
40476
|
+
interface CustomerMembership {
|
|
40477
|
+
id: string;
|
|
40478
|
+
membershipId: string;
|
|
40479
|
+
membershipName: string;
|
|
40480
|
+
membershipDescription: string | null;
|
|
40481
|
+
billingInterval: 'month' | 'year';
|
|
40482
|
+
status: 'active' | 'paused' | 'canceled' | 'past_due' | 'trialing';
|
|
40483
|
+
currentPeriodStart: string | null;
|
|
40484
|
+
currentPeriodEnd: string | null;
|
|
40485
|
+
cancelAtPeriodEnd: boolean;
|
|
40486
|
+
pausedAt: string | null;
|
|
40487
|
+
canceledAt: string | null;
|
|
40488
|
+
/**
|
|
40489
|
+
* It will renew: a subscription that isn't set to end. False for one the
|
|
40490
|
+
* business added by hand (it runs for a set period) and for one set to end.
|
|
40491
|
+
* The dashboard's `renews` means the same.
|
|
40492
|
+
*/
|
|
40493
|
+
renews: boolean;
|
|
40494
|
+
/** Whether the customer can cancel it from the portal (only a renewing one not already ending). */
|
|
40495
|
+
canCancel: boolean;
|
|
40496
|
+
/** Whether the customer can undo a scheduled end while the period runs. */
|
|
40497
|
+
canResume: boolean;
|
|
40498
|
+
/**
|
|
40499
|
+
* When it stopped covering classes (exclusive), once it has ended: when it
|
|
40500
|
+
* actually ended, which can be before the period it was billed for. Null
|
|
40501
|
+
* while it's live.
|
|
40502
|
+
*/
|
|
40503
|
+
endedAt: string | null;
|
|
40504
|
+
}
|
|
40505
|
+
/**
|
|
40506
|
+
* Site credit summary data from /api/portal/credit
|
|
40507
|
+
*/
|
|
40508
|
+
interface PortalCreditSummary {
|
|
40509
|
+
currency: string;
|
|
40510
|
+
balanceCents: number;
|
|
40511
|
+
reservedCents: number;
|
|
40512
|
+
availableCents: number;
|
|
40513
|
+
}
|
|
40514
|
+
interface PortalCreditTransaction {
|
|
40515
|
+
id: string;
|
|
40516
|
+
amountCents: number;
|
|
40517
|
+
currency: string;
|
|
40518
|
+
type: string;
|
|
40519
|
+
createdAt: string;
|
|
40520
|
+
reason: string | null;
|
|
40521
|
+
}
|
|
40522
|
+
interface PortalCredit {
|
|
40523
|
+
summary: PortalCreditSummary;
|
|
40524
|
+
transactions: PortalCreditTransaction[];
|
|
40525
|
+
}
|
|
40526
|
+
//#endregion
|
|
40527
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalMoney.d.ts
|
|
40528
|
+
/**
|
|
40529
|
+
* Money facts the portal's pages share, decided once by the money owner and
|
|
40530
|
+
* served as they are: amounts, what an order asks of the customer now, what
|
|
40531
|
+
* an order came to line by line, and how an order is named.
|
|
40532
|
+
*/
|
|
40533
|
+
type PortalMoney = Readonly<{
|
|
40534
|
+
amountCents: number;
|
|
40535
|
+
currency: string;
|
|
40536
|
+
}>;
|
|
40537
|
+
/** When something is due: no date, a date still ahead, or one that's passed. */
|
|
40538
|
+
type PortalDeadline = Readonly<{
|
|
40539
|
+
kind: 'none';
|
|
40540
|
+
}> | Readonly<{
|
|
40541
|
+
kind: 'due';
|
|
40542
|
+
at: string;
|
|
40543
|
+
}> | Readonly<{
|
|
40544
|
+
kind: 'overdue';
|
|
40545
|
+
at: string;
|
|
40546
|
+
}>;
|
|
40547
|
+
/**
|
|
40548
|
+
* How what's asked can be paid: `available` with what the button pays (and,
|
|
40549
|
+
* for a balance paid in parts, the range of other amounts the business
|
|
40550
|
+
* allows), `in_progress` when a payment's already on its way, `not_offered`
|
|
40551
|
+
* when it can't be paid online (they get in touch instead), and `unchecked`
|
|
40552
|
+
* when we couldn't tell whether the business takes card payments just now.
|
|
40553
|
+
*/
|
|
40554
|
+
type PortalPayOnline = Readonly<{
|
|
40555
|
+
kind: 'available';
|
|
40556
|
+
amount: PortalMoney;
|
|
40557
|
+
custom: Readonly<{
|
|
40558
|
+
min: PortalMoney;
|
|
40559
|
+
max: PortalMoney;
|
|
40560
|
+
}> | null;
|
|
40561
|
+
}> | Readonly<{
|
|
40562
|
+
kind: 'in_progress';
|
|
40563
|
+
}> | Readonly<{
|
|
40564
|
+
kind: 'not_offered';
|
|
40565
|
+
}> | Readonly<{
|
|
40566
|
+
kind: 'unchecked';
|
|
40567
|
+
}>;
|
|
40568
|
+
/**
|
|
40569
|
+
* What an order asks of the customer now, decided by the money owner from the
|
|
40570
|
+
* same standing the order's money line is worded from. Every page reads this
|
|
40571
|
+
* and decides nothing more:
|
|
40572
|
+
*
|
|
40573
|
+
* - `checking`: the business is still working out what's left to pay.
|
|
40574
|
+
* - `plan_running`: an instalment plan collecting by itself. Nothing is asked;
|
|
40575
|
+
* `next` is the next payment it'll take (`passed` once its date has gone by
|
|
40576
|
+
* and it hasn't been taken yet), `rest` everything still to come, and
|
|
40577
|
+
* `online` whether they could pay the rest now instead.
|
|
40578
|
+
* - `pay`: money to pay, by `deadline` when the terms set one.
|
|
40579
|
+
* - `instalment_failed`: one of a plan's payments failed, so the rest is
|
|
40580
|
+
* theirs to pay.
|
|
40581
|
+
* - `finish_paying`: they started paying and left the checkout open, so
|
|
40582
|
+
* Continue to payment takes them back into it. `amount` is what that
|
|
40583
|
+
* checkout takes: what's left on the order, or a plan's first payment when
|
|
40584
|
+
* `firstPayment`.
|
|
40585
|
+
* - `payment_underway`: a payment has started that isn't theirs to finish, so
|
|
40586
|
+
* nothing's asked while it lands; `amount` is what's left on the order.
|
|
40587
|
+
*/
|
|
40588
|
+
type PortalPaymentToDo = Readonly<{
|
|
40589
|
+
kind: 'nothing';
|
|
40590
|
+
}> | Readonly<{
|
|
40591
|
+
kind: 'checking';
|
|
40592
|
+
}> | Readonly<{
|
|
40593
|
+
kind: 'plan_running';
|
|
40594
|
+
rest: PortalMoney;
|
|
40595
|
+
next: Readonly<{
|
|
40596
|
+
amount: PortalMoney;
|
|
40597
|
+
dueAt: string;
|
|
40598
|
+
passed: boolean;
|
|
40599
|
+
}> | null;
|
|
40600
|
+
online: PortalPayOnline;
|
|
40601
|
+
}> | Readonly<{
|
|
40602
|
+
kind: 'pay';
|
|
40603
|
+
amount: PortalMoney;
|
|
40604
|
+
deadline: PortalDeadline;
|
|
40605
|
+
online: PortalPayOnline;
|
|
40606
|
+
}> | Readonly<{
|
|
40607
|
+
kind: 'instalment_failed';
|
|
40608
|
+
amount: PortalMoney;
|
|
40609
|
+
online: PortalPayOnline;
|
|
40610
|
+
}> | Readonly<{
|
|
40611
|
+
kind: 'finish_paying';
|
|
40612
|
+
amount: PortalMoney;
|
|
40613
|
+
deadline: PortalDeadline;
|
|
40614
|
+
firstPayment: boolean;
|
|
40615
|
+
}> | Readonly<{
|
|
40616
|
+
kind: 'payment_underway';
|
|
40617
|
+
amount: PortalMoney;
|
|
40618
|
+
}>;
|
|
40619
|
+
/** The to-dos about money still owed: what a pay task carries. */
|
|
40620
|
+
type PortalPaymentDue = Extract<PortalPaymentToDo, {
|
|
40621
|
+
kind: 'pay' | 'instalment_failed' | 'finish_paying' | 'payment_underway';
|
|
40622
|
+
}>;
|
|
40623
|
+
/** An order as the customer would recognise it: its number, its first item, and how many more there are. */
|
|
40624
|
+
type PortalOrderName = Readonly<{
|
|
40625
|
+
orderId: string;
|
|
40626
|
+
orderNumber: string;
|
|
40627
|
+
firstItem: string | null;
|
|
40628
|
+
otherItems: number;
|
|
40629
|
+
}>;
|
|
40630
|
+
/** One thing on an order, at the price it was sold at (`amount` is `unitPrice` × `quantity`). */
|
|
40631
|
+
type PortalOrderLine = Readonly<{
|
|
40632
|
+
key: string;
|
|
40633
|
+
label: string;
|
|
40634
|
+
quantity: number;
|
|
40635
|
+
unitPrice: PortalMoney;
|
|
40636
|
+
amount: PortalMoney; /** How much of it has been sent back; null when none. */
|
|
40637
|
+
refunded: PortalMoney | null;
|
|
40638
|
+
}>;
|
|
40639
|
+
/**
|
|
40640
|
+
* A row between the lines and the total: a discount taken off, postage or tax
|
|
40641
|
+
* added on top, or a `price_change` the lines don't explain (an item repriced
|
|
40642
|
+
* after booking, say). `effect` says which way it goes; `amount` is never negative.
|
|
40643
|
+
*/
|
|
40644
|
+
type PortalOrderAdjustment = Readonly<{
|
|
40645
|
+
kind: 'discount' | 'postage' | 'tax' | 'price_change';
|
|
40646
|
+
amount: PortalMoney;
|
|
40647
|
+
effect: 'adds' | 'takes_off';
|
|
40648
|
+
}>;
|
|
40649
|
+
/**
|
|
40650
|
+
* What an order came to, from the money owner, so the rows always add up:
|
|
40651
|
+
* the lines, then each adjustment, come to `total`. Tax already inside the
|
|
40652
|
+
* prices is `taxIncluded`, never a row. `credit` is how much of the total was
|
|
40653
|
+
* paid with site credit (the rest is money paid), never a row that reduces it.
|
|
40654
|
+
*/
|
|
40655
|
+
type PortalOrderBreakdown = Readonly<{
|
|
40656
|
+
lines: readonly PortalOrderLine[];
|
|
40657
|
+
adjustments: readonly PortalOrderAdjustment[];
|
|
40658
|
+
total: PortalMoney;
|
|
40659
|
+
taxIncluded: PortalMoney | null;
|
|
40660
|
+
credit: PortalMoney | null;
|
|
40661
|
+
}>;
|
|
40662
|
+
//#endregion
|
|
40663
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalOrders.d.ts
|
|
40664
|
+
type CustomerOrderFilter = 'all' | 'products' | 'bookings' | 'passes' | 'memberships';
|
|
40665
|
+
interface CustomerOrderItem {
|
|
40666
|
+
id: string;
|
|
40667
|
+
kind: 'product' | 'event_ticket' | 'event_series_registration' | 'pass' | 'membership' | 'appointment';
|
|
40668
|
+
displayName: string;
|
|
40669
|
+
quantity: number;
|
|
40670
|
+
unitPriceCents: number;
|
|
40671
|
+
totalCents: number;
|
|
40672
|
+
refundedCents: number;
|
|
40673
|
+
refundableRemainingCents: number;
|
|
40674
|
+
}
|
|
40675
|
+
interface CustomerOrderRefund {
|
|
40676
|
+
id: string;
|
|
40677
|
+
status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
|
|
40678
|
+
amountCents: number;
|
|
40679
|
+
createdAt: string;
|
|
40680
|
+
}
|
|
40681
|
+
type CustomerOrderInstalmentPlan = OrderInstalmentSummary;
|
|
40682
|
+
type CustomerOrderPaymentState = {
|
|
40683
|
+
kind: 'not_required';
|
|
40684
|
+
reason: 'free' | 'waived' | 'pass' | 'membership';
|
|
40685
|
+
collectedCents: number;
|
|
40686
|
+
refundedCents: number;
|
|
40687
|
+
outstandingCents: number;
|
|
40688
|
+
} | {
|
|
40689
|
+
kind: 'unpaid' | 'partially_paid' | 'collection_failed';
|
|
40690
|
+
collectedCents: number;
|
|
40691
|
+
refundedCents: number;
|
|
40692
|
+
outstandingCents: number;
|
|
40693
|
+
} | {
|
|
40694
|
+
kind: 'waived';
|
|
40695
|
+
collectedCents: number;
|
|
40696
|
+
waivedCents: number;
|
|
40697
|
+
refundedCents: number;
|
|
40698
|
+
outstandingCents: 0;
|
|
40699
|
+
} | {
|
|
40700
|
+
kind: 'paid';
|
|
40701
|
+
collectedCents: number;
|
|
40702
|
+
refundedCents: number;
|
|
40703
|
+
outstandingCents: 0;
|
|
40704
|
+
settledVia: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual';
|
|
40705
|
+
} | {
|
|
40706
|
+
kind: 'refunded';
|
|
40707
|
+
collectedCents: number;
|
|
40708
|
+
refundedCents: number;
|
|
40709
|
+
outstandingCents: number;
|
|
40710
|
+
} | {
|
|
40711
|
+
kind: 'cancelled';
|
|
40712
|
+
collectedCents: number;
|
|
40713
|
+
refundedCents: number;
|
|
40714
|
+
outstandingCents: number;
|
|
40715
|
+
};
|
|
40716
|
+
/** Server-decided wording for this order, already in the customer's terms. */
|
|
40717
|
+
interface CustomerOrderPaymentLabels {
|
|
40718
|
+
/** What happened to the booking; null when it's simply booked. */
|
|
40719
|
+
booking: string | null;
|
|
40720
|
+
/** Where the money stands. */
|
|
40721
|
+
money: string;
|
|
40722
|
+
tone: 'success' | 'attention' | 'problem' | 'neutral';
|
|
40723
|
+
}
|
|
40724
|
+
interface CustomerOrderFlexibleBalance {
|
|
40725
|
+
paymentEligibility?: FlexibleBalancePaymentEligibility;
|
|
40726
|
+
status: BookingFlexibleBalanceContractStatus;
|
|
40727
|
+
dueAt: string;
|
|
40728
|
+
remainingBalanceCents: number;
|
|
40729
|
+
upfrontAmountCents: number;
|
|
40730
|
+
}
|
|
40731
|
+
interface CustomerOrder {
|
|
40732
|
+
id: string;
|
|
40733
|
+
siteId: string;
|
|
40734
|
+
customerId: string;
|
|
40735
|
+
orderNumber: string;
|
|
40736
|
+
createdAt: string;
|
|
40737
|
+
status: 'pending' | 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'cancelled';
|
|
40738
|
+
paymentMethod: 'stripe' | 'store_credit' | 'mixed' | 'pass_redemption' | 'membership_access' | 'free' | 'manual' | 'waived';
|
|
40739
|
+
currency: string;
|
|
40740
|
+
subtotalCents: number;
|
|
40741
|
+
discountCents: number;
|
|
40742
|
+
creditCents: number;
|
|
40743
|
+
taxCents: number;
|
|
40744
|
+
shippingCents: number;
|
|
40745
|
+
paidCents: number;
|
|
40746
|
+
refundedCents: number;
|
|
40747
|
+
grandTotalCents: number;
|
|
40748
|
+
balanceDueCents: number;
|
|
40749
|
+
paymentState: CustomerOrderPaymentState;
|
|
40750
|
+
paymentLabels: CustomerOrderPaymentLabels;
|
|
40751
|
+
/** What the order asks of the customer now, decided by the money owner next to `paymentLabels`. */
|
|
40752
|
+
toDo: PortalPaymentToDo;
|
|
40753
|
+
instalmentPlan: CustomerOrderInstalmentPlan | null;
|
|
40754
|
+
flexibleBalance: CustomerOrderFlexibleBalance | null;
|
|
40755
|
+
filters: CustomerOrderFilter[];
|
|
40756
|
+
items: CustomerOrderItem[];
|
|
40757
|
+
refunds: CustomerOrderRefund[];
|
|
40758
|
+
}
|
|
40759
|
+
//#endregion
|
|
40760
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalRegularSessions.d.ts
|
|
40761
|
+
/** A client's regular sessions, from GET /api/portal/appointments/regular-sessions. */
|
|
40762
|
+
type PortalRegularSessionWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
40763
|
+
type PortalRegularSessionCadence = Readonly<{
|
|
40764
|
+
kind: 'weekly';
|
|
40765
|
+
everyWeeks: 1 | 2;
|
|
40766
|
+
weekday: PortalRegularSessionWeekday;
|
|
40767
|
+
}> | Readonly<{
|
|
40768
|
+
kind: 'monthly';
|
|
40769
|
+
weekday: PortalRegularSessionWeekday;
|
|
40770
|
+
nth: 1 | 2 | 3 | 4 | 'last';
|
|
40771
|
+
}>;
|
|
40772
|
+
type PortalRegularSessionDate = Readonly<{
|
|
40773
|
+
state: 'booked';
|
|
40774
|
+
occurrence: string;
|
|
40775
|
+
appointmentId: AppointmentId;
|
|
40776
|
+
startAt: string;
|
|
40777
|
+
endAt: string;
|
|
40778
|
+
}> | Readonly<{
|
|
40779
|
+
state: 'held' | 'open' | 'trainer_away';
|
|
40780
|
+
occurrence: string;
|
|
40781
|
+
startAt: string;
|
|
40782
|
+
endAt: string;
|
|
40783
|
+
}> | Readonly<{
|
|
40784
|
+
state: 'away';
|
|
40785
|
+
occurrence: string;
|
|
40786
|
+
}>;
|
|
40787
|
+
type PortalRegularSessionPayment = Readonly<{
|
|
40788
|
+
kind: 'package';
|
|
40789
|
+
name: string | null;
|
|
40790
|
+
sessionsLeft: number;
|
|
40791
|
+
}> | Readonly<{
|
|
40792
|
+
kind: 'owed' | 'payment_link';
|
|
40793
|
+
}>;
|
|
40794
|
+
type PortalRegularSession = Readonly<{
|
|
40795
|
+
/** The arrangement's own id, stable across reloads and schedule changes. */arrangementId: ClientArrangementId;
|
|
40796
|
+
timezone: string;
|
|
40797
|
+
schedule: Readonly<{
|
|
40798
|
+
effectiveFrom: string;
|
|
40799
|
+
cadence: PortalRegularSessionCadence;
|
|
40800
|
+
localStart: string;
|
|
40801
|
+
}>;
|
|
40802
|
+
trainerName: string | null;
|
|
40803
|
+
serviceName: string | null;
|
|
40804
|
+
holdsTime: boolean;
|
|
40805
|
+
payment: PortalRegularSessionPayment;
|
|
40806
|
+
dates: readonly PortalRegularSessionDate[];
|
|
40807
|
+
}>;
|
|
40808
|
+
type PortalRegularSessionsResponse = Readonly<{
|
|
40809
|
+
arrangements: readonly PortalRegularSession[];
|
|
40810
|
+
}>;
|
|
40811
|
+
//#endregion
|
|
40812
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalWaitlists.d.ts
|
|
40813
|
+
type CustomerPortalWaitlistSubject = {
|
|
40814
|
+
kind: 'occurrence';
|
|
40815
|
+
occurrenceId: string;
|
|
40816
|
+
eventSeriesId: string;
|
|
40817
|
+
startsAt: string;
|
|
40818
|
+
endsAt: string;
|
|
40819
|
+
timeZone: string;
|
|
40820
|
+
deliveryMode: 'in_person' | 'online' | 'hybrid'; /** Kept for released SDK clients, which read it: whether deliveryMode isn't in_person. */
|
|
40821
|
+
isOnline: boolean;
|
|
40822
|
+
} | {
|
|
40823
|
+
kind: 'wholeSeries';
|
|
40824
|
+
timeZone: string;
|
|
40825
|
+
deliveryMode: 'in_person' | 'online' | 'hybrid'; /** Kept for released SDK clients, which read it: whether deliveryMode isn't in_person. */
|
|
40826
|
+
isOnline: boolean;
|
|
40827
|
+
eventSeriesId: string;
|
|
40828
|
+
scheduleSummary: string | null;
|
|
40829
|
+
};
|
|
40830
|
+
/**
|
|
40831
|
+
* What taking an offered place costs, decided by the same pricing the booking
|
|
40832
|
+
* uses, for every place the entry asked for. `chosen_at_booking` when there's a
|
|
40833
|
+
* choice still to make (ticket types, a sliding scale), so no one price applies;
|
|
40834
|
+
* `not_known` when the price couldn't be worked out just now.
|
|
40835
|
+
*
|
|
40836
|
+
* An extensible point: a kind a newer server adds decodes to `not_known`, so
|
|
40837
|
+
* a pinned client still lists the offer, without a price.
|
|
40838
|
+
*/
|
|
40839
|
+
type PortalWaitlistOfferPrice = Readonly<{
|
|
40840
|
+
kind: 'total';
|
|
40841
|
+
amount: Readonly<{
|
|
40842
|
+
amountCents: number;
|
|
40843
|
+
currency: string;
|
|
40844
|
+
}>;
|
|
40845
|
+
}> | Readonly<{
|
|
40846
|
+
kind: 'free';
|
|
40847
|
+
}> | Readonly<{
|
|
40848
|
+
kind: 'chosen_at_booking';
|
|
40849
|
+
}> | Readonly<{
|
|
40850
|
+
kind: 'not_known';
|
|
40851
|
+
}>;
|
|
40852
|
+
type CustomerPortalWaitlistEntryBase = {
|
|
40853
|
+
id: string;
|
|
40854
|
+
subject: CustomerPortalWaitlistSubject;
|
|
40855
|
+
eventTitle: string;
|
|
40856
|
+
eventPath: string | null; /** Where it happens in person, by the venue's name; null when it has no venue (online, or none given). */
|
|
40857
|
+
venueName: string | null;
|
|
40858
|
+
requestedPlaces: number;
|
|
40859
|
+
joinedAt: string;
|
|
40860
|
+
};
|
|
40861
|
+
type CustomerPortalWaitlistEntry = (CustomerPortalWaitlistEntryBase & {
|
|
40862
|
+
status: 'waiting';
|
|
40863
|
+
queuePosition: number | null;
|
|
40864
|
+
canLeave: true;
|
|
40865
|
+
}) | (CustomerPortalWaitlistEntryBase & {
|
|
40866
|
+
status: 'placeAvailable';
|
|
40867
|
+
claimExpiresAt: string;
|
|
40868
|
+
claimPath: string | null;
|
|
40869
|
+
offerPrice: PortalWaitlistOfferPrice;
|
|
40870
|
+
canLeave: true;
|
|
40871
|
+
}) | (CustomerPortalWaitlistEntryBase & {
|
|
40872
|
+
status: 'offerExpired';
|
|
40873
|
+
claimExpiredAt: string;
|
|
40874
|
+
canLeave: false;
|
|
40875
|
+
});
|
|
40876
|
+
//#endregion
|
|
40877
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalBookings.d.ts
|
|
40878
|
+
type RefOfTag<T extends BookingContextRef['tag']> = Extract<BookingContextRef, {
|
|
40879
|
+
tag: T;
|
|
40880
|
+
}>;
|
|
40881
|
+
/** A booking's place in the portal's URLs: its kind word and its id. */
|
|
40882
|
+
/** When it happens, in the zone it happens in. `endsAt` is null when nobody set an end. */
|
|
40883
|
+
type PortalBookingWhen = Readonly<{
|
|
40884
|
+
startsAt: string;
|
|
40885
|
+
endsAt: string | null;
|
|
40886
|
+
timeZone: string;
|
|
40887
|
+
}>;
|
|
40888
|
+
/**
|
|
40889
|
+
* A venue's address as this booking may see it. The server decides which
|
|
40890
|
+
* location a booking sees (the arrival address once it's confirmed, the
|
|
40891
|
+
* public one before), so the portal never chooses what to disclose.
|
|
40892
|
+
*/
|
|
40893
|
+
type PortalVenueAddress =
|
|
40894
|
+
/**
|
|
40895
|
+
* The address and how to find the door, kept apart. `directions` is a maps
|
|
40896
|
+
* link the server built from the arrival pin, or from the address without one.
|
|
40897
|
+
*/
|
|
40898
|
+
Readonly<{
|
|
40899
|
+
kind: 'shown';
|
|
40900
|
+
address: string | null;
|
|
40901
|
+
doorNote: string | null;
|
|
40902
|
+
directions: string | null;
|
|
40903
|
+
}> /** The business shares the address once the booking is confirmed; `area` is the public hint. */ | Readonly<{
|
|
40904
|
+
kind: 'after_booking';
|
|
40905
|
+
area: string | null;
|
|
40906
|
+
}> | Readonly<{
|
|
40907
|
+
kind: 'not_given';
|
|
40908
|
+
}>;
|
|
40909
|
+
type PortalBookingVenue = Readonly<{
|
|
40910
|
+
name: string | null;
|
|
40911
|
+
address: PortalVenueAddress;
|
|
40912
|
+
}>;
|
|
40913
|
+
type PortalBookingWhere = Readonly<{
|
|
40914
|
+
kind: 'venue';
|
|
40915
|
+
venue: PortalBookingVenue;
|
|
40916
|
+
}> /** `joining` is null until the joining details are shown (close to the start, to the person booked). */ | Readonly<{
|
|
40917
|
+
kind: 'online';
|
|
40918
|
+
joining: PortalJoiningDetails | null;
|
|
40919
|
+
}> /** In person at the venue, or online: the customer chooses on the day. */ | Readonly<{
|
|
40920
|
+
kind: 'hybrid';
|
|
40921
|
+
venue: PortalBookingVenue;
|
|
40922
|
+
joining: PortalJoiningDetails | null;
|
|
40923
|
+
}> | Readonly<{
|
|
40924
|
+
kind: 'not_given';
|
|
40925
|
+
}>;
|
|
40926
|
+
/** Where the booking stands, in the customer's terms. Whether it's over is `timing`. */
|
|
40927
|
+
type PortalBookingStanding = Readonly<{
|
|
40928
|
+
kind: 'booked';
|
|
40929
|
+
}> /** Started booking, but the payment didn't finish, so the place isn't confirmed. */ | Readonly<{
|
|
40930
|
+
kind: 'awaiting_payment';
|
|
40931
|
+
}> /** An appointment request the business hasn't answered yet. */ | Readonly<{
|
|
40932
|
+
kind: 'requested';
|
|
40933
|
+
}> | Readonly<{
|
|
40934
|
+
kind: 'waitlisted';
|
|
40935
|
+
position: number | null;
|
|
40936
|
+
}> | Readonly<{
|
|
40937
|
+
kind: 'cancelled';
|
|
40938
|
+
}> /** An appointment request that didn't go ahead; nothing was booked. */ | Readonly<{
|
|
40939
|
+
kind: 'request_not_accepted';
|
|
40940
|
+
outcome: Exclude<AppointmentRequestOutcome, 'approved'>;
|
|
40941
|
+
}> | Readonly<{
|
|
40942
|
+
kind: 'missed';
|
|
40943
|
+
}> /** They gave the booking to someone else; `detail.transfer` says who and when. */ | Readonly<{
|
|
40944
|
+
kind: 'given_away';
|
|
40945
|
+
}>;
|
|
40946
|
+
/**
|
|
40947
|
+
* Whether the booking is still to come, decided once on the server: over once
|
|
40948
|
+
* its last moment has gone (a course once every session has). An undated
|
|
40949
|
+
* booking is never over.
|
|
40950
|
+
*/
|
|
40951
|
+
type PortalBookingTiming = 'upcoming' | 'over';
|
|
40952
|
+
/** Someone booked alongside the customer. The customer themselves isn't listed. */
|
|
40953
|
+
type PortalBookingGuest = Readonly<{
|
|
40954
|
+
/** Their guest number on the booking, from 1 (the customer themselves isn't counted). */place: number;
|
|
40955
|
+
name: string | null;
|
|
40956
|
+
email: string | null;
|
|
40957
|
+
phone: string | null;
|
|
40958
|
+
}>;
|
|
40959
|
+
type PortalBookingPeople = Readonly<{
|
|
40960
|
+
/** Every place on the booking, the customer's included. */places: number;
|
|
40961
|
+
guests: readonly PortalBookingGuest[]; /** Guest places nobody has named yet. */
|
|
40962
|
+
namesMissing: number;
|
|
40963
|
+
}>;
|
|
40964
|
+
type PortalBookingTicketLine = Readonly<{
|
|
40965
|
+
label: string;
|
|
40966
|
+
quantity: number; /** Null on archived bookings, which kept the ticket names but not their prices. */
|
|
40967
|
+
unitPrice: PortalMoney | null;
|
|
40968
|
+
}>;
|
|
40969
|
+
/** The order that paid (or is paying) for a booking, as the customer's orders list shows it. */
|
|
40970
|
+
type PortalBookingOrder = Readonly<{
|
|
40971
|
+
orderId: string;
|
|
40972
|
+
orderNumber: string; /** What the order comes to, as the order owner priced it (discounts and fees included, before any credit). */
|
|
40973
|
+
total: PortalMoney; /** How much of the total their site credit paid; null when none did. The order page shows the same line. */
|
|
40974
|
+
paidWithCredit: PortalMoney | null; /** Money paid towards it so far (by card or by hand), apart from credit, as the order page says it. */
|
|
40975
|
+
paidSoFar: PortalMoney; /** Server wording for where the money stands. */
|
|
40976
|
+
paymentLabels: CustomerOrderPaymentLabels; /** What the order asks of the customer now, the same to-do the order itself carries. */
|
|
40977
|
+
toDo: PortalPaymentToDo;
|
|
40978
|
+
/**
|
|
40979
|
+
* How many bookings the order paid for, this one among them. When it's more
|
|
40980
|
+
* than one, the order's money and state are the order's, not this booking's.
|
|
40981
|
+
*/
|
|
40982
|
+
bookingCount: number;
|
|
40983
|
+
}>;
|
|
40984
|
+
type PortalBookingPassUsed = Readonly<{
|
|
40985
|
+
customerPassId: string;
|
|
40986
|
+
name: string;
|
|
40987
|
+
useCase: CustomerPass['productUseCase'];
|
|
40988
|
+
creditsRemaining: number;
|
|
40989
|
+
expiresAt: string | null;
|
|
40990
|
+
}>;
|
|
40991
|
+
type PortalBookingMembershipUsed = Readonly<{
|
|
40992
|
+
customerMembershipId: string;
|
|
40993
|
+
name: string;
|
|
40994
|
+
status: CustomerMembership['status'];
|
|
40995
|
+
}>;
|
|
40996
|
+
/** How the booking is paid for, from its funding and the owner of that money. */
|
|
40997
|
+
type PortalBookingPayment = Readonly<{
|
|
40998
|
+
kind: 'free';
|
|
40999
|
+
}> /** A request or a waitlist place: nothing is settled until it's confirmed. */ | Readonly<{
|
|
41000
|
+
kind: 'not_decided';
|
|
41001
|
+
}> /** `pass` is null while a pass bought with the booking is still being set up. */ | Readonly<{
|
|
41002
|
+
kind: 'pass';
|
|
41003
|
+
pass: PortalBookingPassUsed | null;
|
|
41004
|
+
}> | Readonly<{
|
|
41005
|
+
kind: 'membership';
|
|
41006
|
+
membership: PortalBookingMembershipUsed | null;
|
|
41007
|
+
}> /** The order's own payment position says what's paid and what's still due. */ | Readonly<{
|
|
41008
|
+
kind: 'order';
|
|
41009
|
+
order: PortalBookingOrder;
|
|
41010
|
+
}>
|
|
41011
|
+
/**
|
|
41012
|
+
* Still owed against the booking itself, with no order yet (a pay-later
|
|
41013
|
+
* ticket or an accepted price). Only a booking the customer holds and hasn't
|
|
41014
|
+
* cancelled owes this. `amount` is the booking's own lines, when they're priced.
|
|
41015
|
+
*/
|
|
41016
|
+
| Readonly<{
|
|
41017
|
+
kind: 'owed';
|
|
41018
|
+
amount: PortalMoney | null;
|
|
41019
|
+
}>
|
|
41020
|
+
/**
|
|
41021
|
+
* Nothing to say about the money: an archived booking, an order the customer
|
|
41022
|
+
* can't see, or a booking that no longer owes anything. The page says the same
|
|
41023
|
+
* (nothing) for each.
|
|
41024
|
+
*/
|
|
41025
|
+
| Readonly<{
|
|
41026
|
+
kind: 'unavailable';
|
|
41027
|
+
}>;
|
|
41028
|
+
/**
|
|
41029
|
+
* Whether the customer may do something now. `explanation` is the server's
|
|
41030
|
+
* sentence for why not, ready to show; null means there's nothing worth
|
|
41031
|
+
* saying, and the page leaves the action out.
|
|
41032
|
+
*/
|
|
41033
|
+
type PortalBookingAction = Readonly<{
|
|
41034
|
+
kind: 'available';
|
|
41035
|
+
until: string | null;
|
|
41036
|
+
}> | Readonly<{
|
|
41037
|
+
kind: 'closed';
|
|
41038
|
+
closedAt: string;
|
|
41039
|
+
}> | Readonly<{
|
|
41040
|
+
kind: 'not_offered';
|
|
41041
|
+
explanation: string | null;
|
|
41042
|
+
}>;
|
|
41043
|
+
/**
|
|
41044
|
+
* Moving an event booking to another date: an ordinary action, or
|
|
41045
|
+
* `single_run` when the booking's class has no other date still to come, so
|
|
41046
|
+
* there's nowhere to move to and nothing worth saying about it.
|
|
41047
|
+
*/
|
|
41048
|
+
type PortalRescheduleAction = PortalBookingAction | Readonly<{
|
|
41049
|
+
kind: 'single_run';
|
|
41050
|
+
}>;
|
|
41051
|
+
/** What cancelling would do to their money, or `not_known` when that can't be said beforehand. */
|
|
41052
|
+
type PortalCancelMoney = CancellationMoneyOutcome | Readonly<{
|
|
41053
|
+
kind: 'not_known';
|
|
41054
|
+
}>;
|
|
41055
|
+
/**
|
|
41056
|
+
* Cancel, with everything a cancel page needs to say before anyone presses
|
|
41057
|
+
* anything: the money (a refund carries its own cut-off, so the outcome and
|
|
41058
|
+
* its deadline are one decision) and whether the terms apply. Money only
|
|
41059
|
+
* exists while cancel is open.
|
|
41060
|
+
*/
|
|
41061
|
+
type PortalCancelAction = Readonly<{
|
|
41062
|
+
kind: 'available';
|
|
41063
|
+
until: string | null;
|
|
41064
|
+
money: PortalCancelMoney;
|
|
41065
|
+
/**
|
|
41066
|
+
* Who any refund reaches: the customer, or (for an event booking given
|
|
41067
|
+
* to them) the person who paid for it. Decided by the server.
|
|
41068
|
+
*/
|
|
41069
|
+
recipient: RefundRecipient; /** The business's terms say what happens when they cancel. */
|
|
41070
|
+
termsApply: boolean;
|
|
41071
|
+
}> | Readonly<{
|
|
41072
|
+
kind: 'closed';
|
|
41073
|
+
closedAt: string;
|
|
41074
|
+
}> | Readonly<{
|
|
41075
|
+
kind: 'not_offered';
|
|
41076
|
+
explanation: string | null;
|
|
41077
|
+
}>;
|
|
41078
|
+
/**
|
|
41079
|
+
* What each kind of booking can have done to it. Every booking can be
|
|
41080
|
+
* cancelled, booked again, have its guests named and show a ticket; an event
|
|
41081
|
+
* booking can also be given to someone else or moved to another date, and an
|
|
41082
|
+
* appointment moved to another time. A course does neither, so it carries
|
|
41083
|
+
* neither.
|
|
41084
|
+
*/
|
|
41085
|
+
type SharedActions<A, C> = Readonly<{
|
|
41086
|
+
cancel: C;
|
|
41087
|
+
rebook: A;
|
|
41088
|
+
editGuests: A;
|
|
41089
|
+
showTicket: A;
|
|
41090
|
+
}>;
|
|
41091
|
+
type ActionsOf<A, C, R> = Readonly<{
|
|
41092
|
+
event: SharedActions<A, C> & Readonly<{
|
|
41093
|
+
transfer: A;
|
|
41094
|
+
reschedule: R;
|
|
41095
|
+
}>;
|
|
41096
|
+
course: SharedActions<A, C>;
|
|
41097
|
+
appointment: SharedActions<A, C> & Readonly<{
|
|
41098
|
+
reschedule: A;
|
|
41099
|
+
}>;
|
|
41100
|
+
}>;
|
|
41101
|
+
type WireActions = ActionsOf<PortalBookingAction, PortalCancelAction, PortalRescheduleAction>;
|
|
41102
|
+
type PortalEventBookingActions = WireActions['event'];
|
|
41103
|
+
type PortalCourseBookingActions = WireActions['course'];
|
|
41104
|
+
type PortalAppointmentBookingActions = WireActions['appointment'];
|
|
41105
|
+
type PortalBookingBase = Readonly<{
|
|
41106
|
+
title: string;
|
|
41107
|
+
timing: PortalBookingTiming;
|
|
41108
|
+
where: PortalBookingWhere;
|
|
41109
|
+
standing: PortalBookingStanding; /** Null on a course place that isn't confirmed yet. */
|
|
41110
|
+
bookedAt: string | null;
|
|
41111
|
+
people: PortalBookingPeople;
|
|
41112
|
+
questions: PortalBeforeYouComeTask | null;
|
|
41113
|
+
payment: PortalBookingPayment;
|
|
41114
|
+
}>;
|
|
41115
|
+
type PortalBookingTransfer = Readonly<{
|
|
41116
|
+
kind: 'none';
|
|
41117
|
+
}> /** `from` is the giver's name, null when they didn't leave one. */ | Readonly<{
|
|
41118
|
+
kind: 'received';
|
|
41119
|
+
from: string | null;
|
|
41120
|
+
at: string | null;
|
|
41121
|
+
}> | Readonly<{
|
|
41122
|
+
kind: 'given';
|
|
41123
|
+
to: string | null;
|
|
41124
|
+
at: string | null;
|
|
41125
|
+
}>;
|
|
41126
|
+
/** A room the customer's people are in on a residential event. */
|
|
41127
|
+
type PortalBookingRoom = Readonly<{
|
|
41128
|
+
name: string;
|
|
41129
|
+
sleeps: number;
|
|
41130
|
+
bookedAs: 'private' | 'shared'; /** Who on this booking is in it, by name. */
|
|
41131
|
+
people: readonly string[];
|
|
41132
|
+
}>;
|
|
41133
|
+
type PortalEventBookingDetail = Readonly<{
|
|
41134
|
+
/** The date this booking is for, as the reschedule request names its source. */occurrenceId: string;
|
|
41135
|
+
seriesName: string | null;
|
|
41136
|
+
eventPath: string | null;
|
|
41137
|
+
occurrencePath: string | null;
|
|
41138
|
+
ticketLines: readonly PortalBookingTicketLine[];
|
|
41139
|
+
transfer: PortalBookingTransfer; /** Only on a booking the customer holds; empty once it's given away. */
|
|
41140
|
+
rooms: readonly PortalBookingRoom[]; /** The business asks for the name of everyone coming (the event's guest-details choice). */
|
|
41141
|
+
guestNamesRequired: boolean;
|
|
41142
|
+
}>;
|
|
41143
|
+
type PortalCourseBookingDetail = Readonly<{
|
|
41144
|
+
eventPath: string | null;
|
|
41145
|
+
sessions: readonly PortalBookingWhen[]; /** The next session still to come; null once they've all started. */
|
|
41146
|
+
nextSessionAt: string | null;
|
|
41147
|
+
ticketLines: readonly PortalBookingTicketLine[];
|
|
41148
|
+
}>;
|
|
41149
|
+
type PortalAppointmentBookingDetail = Readonly<{
|
|
41150
|
+
serviceName: string; /** The service and the person it was with, for booking the same again. */
|
|
41151
|
+
serviceId: string;
|
|
41152
|
+
resourceId: string | null; /** Who it's with: the practitioner or room booked. */
|
|
41153
|
+
withName: string | null; /** Set when it began as a request. How it was answered is in `standing`. */
|
|
41154
|
+
request: Readonly<{
|
|
41155
|
+
requestedAt: string | null;
|
|
41156
|
+
decidedAt: string | null;
|
|
41157
|
+
}> | null; /** Set when this date is one of their regular sessions. */
|
|
41158
|
+
regularSession: Readonly<{
|
|
41159
|
+
cadence: PortalRegularSessionCadence;
|
|
41160
|
+
localStart: string;
|
|
41161
|
+
}> | null;
|
|
41162
|
+
}>;
|
|
41163
|
+
type PortalEventBooking = PortalBookingBase & Readonly<{
|
|
41164
|
+
kind: 'event';
|
|
41165
|
+
ref: RefOfTag<'event_attendee'>;
|
|
41166
|
+
when: PortalBookingWhen;
|
|
41167
|
+
actions: PortalEventBookingActions;
|
|
41168
|
+
detail: PortalEventBookingDetail;
|
|
41169
|
+
}>;
|
|
41170
|
+
type PortalCourseBooking = PortalBookingBase & Readonly<{
|
|
41171
|
+
kind: 'course';
|
|
41172
|
+
ref: RefOfTag<'event_series_registration'>; /** Null while the course's dates aren't set yet. */
|
|
41173
|
+
when: PortalBookingWhen | null;
|
|
41174
|
+
actions: PortalCourseBookingActions;
|
|
41175
|
+
detail: PortalCourseBookingDetail;
|
|
41176
|
+
}>;
|
|
41177
|
+
type PortalAppointmentBooking = PortalBookingBase & Readonly<{
|
|
41178
|
+
kind: 'appointment';
|
|
41179
|
+
ref: RefOfTag<'appointment'>;
|
|
41180
|
+
when: PortalBookingWhen;
|
|
41181
|
+
actions: PortalAppointmentBookingActions;
|
|
41182
|
+
detail: PortalAppointmentBookingDetail;
|
|
41183
|
+
}>;
|
|
41184
|
+
type PortalBooking = PortalEventBooking | PortalCourseBooking | PortalAppointmentBooking;
|
|
41185
|
+
/**
|
|
41186
|
+
* The customer's bookings, grouped and ordered by the server. Waitlist entries
|
|
41187
|
+
* come first (places offered before places waited for). Coming up runs soonest
|
|
41188
|
+
* first, waitlisted bookings and undated courses included. Cancelled holds
|
|
41189
|
+
* cancellations, given-away bookings and requests that didn't go ahead whose
|
|
41190
|
+
* dates are still to come. Past runs latest first and is paged: pass
|
|
41191
|
+
* `nextPastCursor` back as `pastCursor` for the next page. The cursor marks
|
|
41192
|
+
* the last booking sent, so a booking finishing between pages is neither
|
|
41193
|
+
* repeated nor skipped.
|
|
41194
|
+
*/
|
|
41195
|
+
type PortalBookingsResponse = Readonly<{
|
|
41196
|
+
waitlist: readonly CustomerPortalWaitlistEntry[];
|
|
41197
|
+
comingUp: readonly PortalBooking[];
|
|
41198
|
+
cancelled: readonly PortalBooking[];
|
|
41199
|
+
past: readonly PortalBooking[];
|
|
41200
|
+
nextPastCursor: string | null;
|
|
41201
|
+
}>;
|
|
41202
|
+
type PortalBookingResponse = Readonly<{
|
|
41203
|
+
booking: PortalBooking;
|
|
41204
|
+
}>;
|
|
41205
|
+
//#endregion
|
|
40243
41206
|
//#region .cache/declarations/site-contracts/src/siteData/portalQuestions.d.ts
|
|
40244
41207
|
type BookingQuestionsAnswerValue = string | number | boolean | null | string[] | BookingQuestionsDocumentAnswerValue;
|
|
40245
41208
|
interface BookingQuestionsDocumentAnswerValue {
|
|
@@ -40306,6 +41269,19 @@ type CapturedBookingQuestionAnswer = Readonly<{
|
|
|
40306
41269
|
fileName: string;
|
|
40307
41270
|
bytes: number;
|
|
40308
41271
|
}>);
|
|
41272
|
+
/**
|
|
41273
|
+
* Whether the questions can still be answered in the portal (D4), decided by
|
|
41274
|
+
* the server: open (late once the due date has passed, but still taken), or
|
|
41275
|
+
* sent, with the line saying how to change what was sent. A named extensible
|
|
41276
|
+
* point, so a later state (an edit window, say) is a server change.
|
|
41277
|
+
*/
|
|
41278
|
+
type BookingQuestionsAnswering = Readonly<{
|
|
41279
|
+
kind: 'open';
|
|
41280
|
+
late: boolean;
|
|
41281
|
+
}> | Readonly<{
|
|
41282
|
+
kind: 'sent';
|
|
41283
|
+
changeNote: string;
|
|
41284
|
+
}>;
|
|
40309
41285
|
interface BookingQuestionsTaskDetail {
|
|
40310
41286
|
/** Completed evidence, projected with its captured question and choice labels. */
|
|
40311
41287
|
completedAnswers?: readonly CapturedBookingQuestionAnswer[];
|
|
@@ -40320,6 +41296,7 @@ interface BookingQuestionsTaskDetail {
|
|
|
40320
41296
|
dueAt: string;
|
|
40321
41297
|
completedAt: string | null;
|
|
40322
41298
|
prefillAvailable: boolean;
|
|
41299
|
+
answering: BookingQuestionsAnswering;
|
|
40323
41300
|
answers: Record<string, BookingQuestionsAnswerValue>;
|
|
40324
41301
|
sections: readonly BookingQuestionsSection[];
|
|
40325
41302
|
}
|
|
@@ -41202,6 +42179,15 @@ type PublicEventDestination = Readonly<{
|
|
|
41202
42179
|
kind: 'external';
|
|
41203
42180
|
url: string;
|
|
41204
42181
|
label: string;
|
|
42182
|
+
/**
|
|
42183
|
+
* The event's own page on the site, when it has one: its title and image
|
|
42184
|
+
* open it, and the booking button still goes out to `url`. Absent means
|
|
42185
|
+
* there is no page and every link goes out.
|
|
42186
|
+
*/
|
|
42187
|
+
page?: Readonly<{
|
|
42188
|
+
mode: 'cms-managed' | 'system-managed';
|
|
42189
|
+
path: string;
|
|
42190
|
+
}>;
|
|
41205
42191
|
}>;
|
|
41206
42192
|
type PublicEventRecurrenceWeekday = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU';
|
|
41207
42193
|
type PublicEventRecurrence = Readonly<{
|
|
@@ -41407,7 +42393,8 @@ type OrdinaryPublicEvent = Extract<PublicEvent$1, {
|
|
|
41407
42393
|
type OrdinaryDateChoice = readonly [OrdinaryPublicEvent, OrdinaryPublicEvent, ...OrdinaryPublicEvent[]];
|
|
41408
42394
|
type SystemEventPageSelection = Readonly<{
|
|
41409
42395
|
kind: 'occurrence';
|
|
41410
|
-
event: OrdinaryPublicEvent;
|
|
42396
|
+
event: OrdinaryPublicEvent; /** Other dates from the series page's chooser; the page subject stays event. */
|
|
42397
|
+
additionalDates?: readonly OrdinaryPublicEvent[];
|
|
41411
42398
|
}> | Readonly<{
|
|
41412
42399
|
/**
|
|
41413
42400
|
* A series' own page, reached without a date, while more than one of its
|
|
@@ -44048,321 +45035,6 @@ type EventCheckoutReturnResponse = z$1.infer<typeof eventCheckoutReturnResponseS
|
|
|
44048
45035
|
/** Every option kind can be requested at checkout. */
|
|
44049
45036
|
type DirectCheckoutCollectionOptionKind = BookingPaymentCollectionOptionKind;
|
|
44050
45037
|
//#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
45038
|
//#region .cache/declarations/site-contracts/src/siteData/portalDigitalProducts.d.ts
|
|
44367
45039
|
type JsonPrimitive$2 = string | number | boolean | null;
|
|
44368
45040
|
type JsonValue$2 = JsonPrimitive$2 | JsonValue$2[] | {
|
|
@@ -44398,44 +45070,731 @@ interface PortalFileDownloadDigitalProduct extends PortalDigitalProductBase {
|
|
|
44398
45070
|
files: PortalDigitalProductFile[];
|
|
44399
45071
|
}
|
|
44400
45072
|
//#endregion
|
|
44401
|
-
//#region .cache/declarations/site-contracts/src/siteData/
|
|
44402
|
-
|
|
44403
|
-
|
|
44404
|
-
|
|
44405
|
-
|
|
45073
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalHome.d.ts
|
|
45074
|
+
/**
|
|
45075
|
+
* The portal's home, from GET /api/portal/home: what's waiting on the
|
|
45076
|
+
* customer (Things to do), their next few bookings, and a line about each
|
|
45077
|
+
* section of their account. The server decides every task, when it's due and
|
|
45078
|
+
* whether it's urgent; the portal only words them.
|
|
45079
|
+
*
|
|
45080
|
+
* Each part is read on its own, so one that couldn't be read says so
|
|
45081
|
+
* (`not_checked`) while the others still show. "Nothing to do" is only said
|
|
45082
|
+
* when every source of tasks was checked.
|
|
45083
|
+
*
|
|
45084
|
+
* Wire evolution (pinned SDK clients): a task kind a newer server adds decodes
|
|
45085
|
+
* to `unsupported`, which still shows (so the list never claims there's
|
|
45086
|
+
* nothing to do when there's something), without a button. So do the values
|
|
45087
|
+
* inside known tasks that a newer server can add to: a booking reference of a
|
|
45088
|
+
* kind this build doesn't know, and what a payment is for. A known variant
|
|
45089
|
+
* that's malformed is still an error.
|
|
45090
|
+
*/
|
|
45091
|
+
type EventAttendeeRef$1 = Extract<BookingContextRef, {
|
|
45092
|
+
tag: 'event_attendee';
|
|
45093
|
+
}>;
|
|
45094
|
+
/** When a task is due: no date, a date still ahead, or one that's passed. */
|
|
45095
|
+
type PortalTaskDeadline = PortalDeadline;
|
|
45096
|
+
/** What a payment task is for, as the customer would recognise it. */
|
|
45097
|
+
type PortalPaymentFor = Readonly<{
|
|
45098
|
+
kind: 'booking';
|
|
45099
|
+
ref: BookingContextRef;
|
|
45100
|
+
title: string;
|
|
45101
|
+
}> /** An order with no booking it pays for: named as the customer would recognise it. */ | Readonly<{
|
|
45102
|
+
kind: 'order';
|
|
45103
|
+
order: PortalOrderName;
|
|
45104
|
+
}>;
|
|
45105
|
+
type TaskBase = Readonly<{
|
|
45106
|
+
/** Stable across reads, for lists to key on. */key: string; /** Decided by the server: overdue, or something that went wrong. */
|
|
45107
|
+
urgent: boolean;
|
|
45108
|
+
}>;
|
|
45109
|
+
type PortalTask = TaskBase & (/** Their own questions before a booking, still to answer. Due by the same rule the reminder email uses. */Readonly<{
|
|
45110
|
+
kind: 'answer_questions';
|
|
45111
|
+
ref: BookingContextRef;
|
|
45112
|
+
bookingTitle: string;
|
|
45113
|
+
deadline: PortalTaskDeadline;
|
|
45114
|
+
}> /** Guests on an event booking still unnamed, where the business asks for everyone's name. */ | Readonly<{
|
|
45115
|
+
kind: 'add_guest_names';
|
|
45116
|
+
ref: EventAttendeeRef$1;
|
|
45117
|
+
bookingTitle: string;
|
|
44406
45118
|
startsAt: string;
|
|
44407
|
-
endsAt: string;
|
|
44408
|
-
timeZone: string;
|
|
44409
|
-
isOnline: boolean;
|
|
44410
|
-
} | {
|
|
44411
|
-
kind: 'wholeSeries';
|
|
44412
45119
|
timeZone: string;
|
|
44413
|
-
|
|
44414
|
-
|
|
44415
|
-
|
|
44416
|
-
|
|
44417
|
-
type CustomerPortalWaitlistEntryBase = {
|
|
44418
|
-
id: string;
|
|
44419
|
-
subject: CustomerPortalWaitlistSubject;
|
|
45120
|
+
namesMissing: number;
|
|
45121
|
+
}> /** A place offered from a waitlist, to take before the offer lapses. */ | Readonly<{
|
|
45122
|
+
kind: 'take_waitlist_place';
|
|
45123
|
+
entryId: string;
|
|
44420
45124
|
eventTitle: string;
|
|
44421
|
-
eventPath: string | null;
|
|
44422
45125
|
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
45126
|
claimExpiresAt: string;
|
|
44432
45127
|
claimPath: string | null;
|
|
44433
|
-
|
|
44434
|
-
}
|
|
44435
|
-
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
|
|
45128
|
+
offerPrice: PortalWaitlistOfferPrice;
|
|
45129
|
+
}>
|
|
45130
|
+
/**
|
|
45131
|
+
* Money the customer has to pay: a balance, an unpaid order or a booking
|
|
45132
|
+
* not yet paid for, or a plan's payment that failed. `due` is the order's
|
|
45133
|
+
* own to-do, so the task, the order page and the booking can't disagree;
|
|
45134
|
+
* `moneyLine` is the order's sentence for where its money stands.
|
|
45135
|
+
*/
|
|
45136
|
+
| Readonly<{
|
|
45137
|
+
kind: 'pay';
|
|
45138
|
+
orderId: string; /** The order's number and when it was placed, so two tasks for the same thing can be told apart. */
|
|
45139
|
+
orderNumber: string;
|
|
45140
|
+
placedAt: string;
|
|
45141
|
+
for: PortalPaymentFor;
|
|
45142
|
+
due: PortalPaymentDue;
|
|
45143
|
+
moneyLine: string;
|
|
45144
|
+
}>
|
|
45145
|
+
/**
|
|
45146
|
+
* A membership whose last payment didn't go through: how much, since when
|
|
45147
|
+
* it's been recorded as unpaid (not an attempt date), and when the payment
|
|
45148
|
+
* provider will try again (null when it won't). Updating the card here
|
|
45149
|
+
* comes later (#1825).
|
|
45150
|
+
*/
|
|
45151
|
+
| Readonly<{
|
|
45152
|
+
kind: 'membership_payment_failed';
|
|
45153
|
+
customerMembershipId: string;
|
|
45154
|
+
membershipName: string;
|
|
45155
|
+
failed: PortalMoney | null;
|
|
45156
|
+
overdueSince: string | null;
|
|
45157
|
+
nextAttemptAt: string | null;
|
|
45158
|
+
}>);
|
|
45159
|
+
/** Where tasks are read from, so the page can say which couldn't be checked. */
|
|
45160
|
+
type PortalTaskSource = 'bookings' | 'questions' | 'payments' | 'memberships';
|
|
45161
|
+
/**
|
|
45162
|
+
* The customer's tasks, most pressing first. `partly_checked` when some source
|
|
45163
|
+
* couldn't be read: the tasks shown are real, but there may be more.
|
|
45164
|
+
*/
|
|
45165
|
+
type PortalTaskList = Readonly<{
|
|
45166
|
+
kind: 'checked';
|
|
45167
|
+
tasks: readonly PortalTask[];
|
|
45168
|
+
}> | Readonly<{
|
|
45169
|
+
kind: 'partly_checked';
|
|
45170
|
+
tasks: readonly PortalTask[];
|
|
45171
|
+
unchecked: readonly PortalTaskSource[];
|
|
45172
|
+
}>;
|
|
45173
|
+
/** A part of a read (home, payments, passes): shown, or couldn't be read just now. */
|
|
45174
|
+
type PortalPart<T> = (Readonly<{
|
|
45175
|
+
kind: 'shown';
|
|
45176
|
+
}> & T) | Readonly<{
|
|
45177
|
+
kind: 'not_checked';
|
|
45178
|
+
}>;
|
|
45179
|
+
/** The next bookings that hold a place, soonest first, and how many there are in all. */
|
|
45180
|
+
type PortalHomeComingUp = PortalPart<Readonly<{
|
|
45181
|
+
next: readonly PortalBooking[];
|
|
45182
|
+
total: number;
|
|
45183
|
+
}>>;
|
|
45184
|
+
type PortalHomePassSummary = Readonly<{
|
|
45185
|
+
name: string;
|
|
45186
|
+
useCase: CustomerPass['productUseCase'];
|
|
45187
|
+
creditsRemaining: number;
|
|
45188
|
+
}>;
|
|
45189
|
+
type PortalHomeMembershipSummary = Readonly<{
|
|
45190
|
+
name: string;
|
|
45191
|
+
paymentFailed: boolean;
|
|
45192
|
+
}>;
|
|
45193
|
+
type PortalHomeSummaries = Readonly<{
|
|
45194
|
+
bookings: PortalPart<Readonly<{
|
|
45195
|
+
comingUp: number;
|
|
45196
|
+
placesOffered: number;
|
|
45197
|
+
}>>; /** Passes with uses left and memberships still running. */
|
|
45198
|
+
passes: PortalPart<Readonly<{
|
|
45199
|
+
passes: readonly PortalHomePassSummary[];
|
|
45200
|
+
memberships: readonly PortalHomeMembershipSummary[];
|
|
45201
|
+
}>>;
|
|
45202
|
+
/**
|
|
45203
|
+
* Payments to make, and the server's line for the most pressing one.
|
|
45204
|
+
* `checking`: orders whose money the business is still working out, so home
|
|
45205
|
+
* doesn't say there's nothing to pay while any are.
|
|
45206
|
+
*/
|
|
45207
|
+
payments: PortalPart<Readonly<{
|
|
45208
|
+
toPay: number;
|
|
45209
|
+
first: string | null;
|
|
45210
|
+
checking: number;
|
|
45211
|
+
}>>; /** What they can open or download, by title; empty when there's nothing, and then home shows no row. */
|
|
45212
|
+
downloads: PortalPart<Readonly<{
|
|
45213
|
+
titles: readonly string[];
|
|
45214
|
+
}>>;
|
|
45215
|
+
}>;
|
|
45216
|
+
/**
|
|
45217
|
+
* How to reach the business, as its published contact details allow. Both
|
|
45218
|
+
* null when it publishes neither, and the page names the business instead.
|
|
45219
|
+
*/
|
|
45220
|
+
type PortalBusinessContact = Readonly<{
|
|
45221
|
+
email: string | null;
|
|
45222
|
+
phone: string | null;
|
|
45223
|
+
}>;
|
|
45224
|
+
type PortalHomeResponse = Readonly<{
|
|
45225
|
+
tasks: PortalTaskList;
|
|
45226
|
+
comingUp: PortalHomeComingUp;
|
|
45227
|
+
summaries: PortalHomeSummaries;
|
|
45228
|
+
contact: PortalBusinessContact;
|
|
45229
|
+
}>;
|
|
45230
|
+
//#endregion
|
|
45231
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalHoldings.d.ts
|
|
45232
|
+
/**
|
|
45233
|
+
* The passes page, from GET /api/portal/holdings: the customer's memberships
|
|
45234
|
+
* (ended ones too), their passes and packages (used up and expired ones too)
|
|
45235
|
+
* and their site credit. The server decides where each one stands, what it
|
|
45236
|
+
* cost, what each use was for and why credit came or went; the portal only
|
|
45237
|
+
* words it.
|
|
45238
|
+
*
|
|
45239
|
+
* Each part is read on its own, so one that couldn't be read says so
|
|
45240
|
+
* (`not_checked`) while the others still show.
|
|
45241
|
+
*
|
|
45242
|
+
* Wire evolution (pinned SDK clients): a membership's standing, a pass use and
|
|
45243
|
+
* a credit reason are extensible points. A kind a newer server adds decodes to
|
|
45244
|
+
* `unsupported`: the membership or entry still shows, with nothing to act on.
|
|
45245
|
+
*/
|
|
45246
|
+
/**
|
|
45247
|
+
* Where a membership stands, as its owner decides it now. Every date here is
|
|
45248
|
+
* an exclusive boundary (the first moment it no longer covers), except
|
|
45249
|
+
* `nextPaymentAt`, which is when the next payment is taken.
|
|
45250
|
+
*/
|
|
45251
|
+
type PortalMembershipStanding = /** It renews by itself; the next payment is due at the end of this period. */Readonly<{
|
|
45252
|
+
kind: 'renewing';
|
|
45253
|
+
nextPaymentAt: string | null;
|
|
45254
|
+
}> /** Set to stop at the end of this period. */ | Readonly<{
|
|
45255
|
+
kind: 'ending';
|
|
45256
|
+
endsAt: string | null;
|
|
45257
|
+
}> /** Added by the business for a set time, so it doesn't renew. */ | Readonly<{
|
|
45258
|
+
kind: 'set_period';
|
|
45259
|
+
endsAt: string | null;
|
|
45260
|
+
}> | Readonly<{
|
|
45261
|
+
kind: 'paused';
|
|
45262
|
+
}> /** It no longer covers anything: the last day it could be used, when known. */ | Readonly<{
|
|
45263
|
+
kind: 'ended';
|
|
45264
|
+
endedAt: string | null;
|
|
45265
|
+
}>;
|
|
45266
|
+
/**
|
|
45267
|
+
* A payment that didn't go through, alongside where the membership stands (a
|
|
45268
|
+
* membership can be overdue and set to end at once). `overdueSince` is when it
|
|
45269
|
+
* was first recorded as unpaid, not when the provider tried: we don't store
|
|
45270
|
+
* attempt dates. `nextAttemptAt` is when the provider will try again (null when
|
|
45271
|
+
* it won't).
|
|
45272
|
+
*/
|
|
45273
|
+
type PortalMembershipPaymentTrouble = Readonly<{
|
|
45274
|
+
failed: PortalMoney | null;
|
|
45275
|
+
overdueSince: string | null;
|
|
45276
|
+
nextAttemptAt: string | null;
|
|
45277
|
+
}>;
|
|
45278
|
+
type PortalMembership = Readonly<{
|
|
45279
|
+
/** The customer's membership (not the product). */id: string;
|
|
45280
|
+
name: string;
|
|
45281
|
+
description: string | null;
|
|
45282
|
+
/**
|
|
45283
|
+
* What it costs each period, at the price it was sold at (a later change to
|
|
45284
|
+
* the product's price doesn't reach a running membership). Null when the
|
|
45285
|
+
* business added it without selling it.
|
|
45286
|
+
*/
|
|
45287
|
+
price: PortalMoney | null;
|
|
45288
|
+
interval: 'month' | 'year'; /** When they joined. */
|
|
45289
|
+
since: string;
|
|
45290
|
+
standing: PortalMembershipStanding; /** Null when its payments are up to date. */
|
|
45291
|
+
paymentTrouble: PortalMembershipPaymentTrouble | null; /** What the customer can do here, as the membership's owner allows. */
|
|
45292
|
+
actions: Readonly<{
|
|
45293
|
+
cancel: boolean;
|
|
45294
|
+
keep: boolean;
|
|
45295
|
+
}>;
|
|
45296
|
+
}>;
|
|
45297
|
+
/** What a pass can be used for: classes and events, or 1:1 sessions (with one person, when it's tied to them). */
|
|
45298
|
+
type PortalPassUseCase = Readonly<{
|
|
45299
|
+
kind: 'event_pass';
|
|
45300
|
+
}> | Readonly<{
|
|
45301
|
+
kind: 'appointment_package';
|
|
45302
|
+
with: string | null;
|
|
45303
|
+
}>;
|
|
45304
|
+
/** A booking a pass paid for, as the customer's bookings show it. */
|
|
45305
|
+
type PortalPassUseBooking = Readonly<{
|
|
45306
|
+
ref: BookingContextRef;
|
|
45307
|
+
title: string;
|
|
45308
|
+
startsAt: string | null;
|
|
45309
|
+
timeZone: string | null;
|
|
45310
|
+
}>;
|
|
45311
|
+
/**
|
|
45312
|
+
* The booking a use paid for: found in the customer's account, no longer in it
|
|
45313
|
+
* (someone else's now, or removed), or not looked up this time (the read
|
|
45314
|
+
* failed, so it says nothing either way).
|
|
45315
|
+
*/
|
|
45316
|
+
type PortalPassUseBookingRead = Readonly<{
|
|
45317
|
+
kind: 'found';
|
|
45318
|
+
booking: PortalPassUseBooking;
|
|
45319
|
+
}> | Readonly<{
|
|
45320
|
+
kind: 'not_in_account';
|
|
45321
|
+
}> | Readonly<{
|
|
45322
|
+
kind: 'not_checked';
|
|
45323
|
+
}>;
|
|
45324
|
+
type PassUseBase = Readonly<{
|
|
45325
|
+
key: string;
|
|
45326
|
+
credits: number;
|
|
45327
|
+
at: string;
|
|
45328
|
+
booking: PortalPassUseBookingRead;
|
|
45329
|
+
}>;
|
|
45330
|
+
/** Who gave a use back: the customer cancelling, the business, or the system (an event called off, a booking left unpaid). */
|
|
45331
|
+
type PortalPassGivenBackBy = 'you' | 'business' | 'automatically';
|
|
45332
|
+
/**
|
|
45333
|
+
* What became of a use whose booking was cancelled: its credit came back
|
|
45334
|
+
* (listed again as `given_back`), or it was kept (a late cancel, or a business
|
|
45335
|
+
* that doesn't refund). Absent while the booking stands, and from older servers.
|
|
45336
|
+
*/
|
|
45337
|
+
type PortalPassUseCancelled = 'given_back' | 'kept';
|
|
45338
|
+
type PortalPassUse = PassUseBase & (Readonly<{
|
|
45339
|
+
kind: 'used';
|
|
45340
|
+
cancelled?: PortalPassUseCancelled;
|
|
45341
|
+
}> | Readonly<{
|
|
45342
|
+
kind: 'given_back';
|
|
45343
|
+
by: PortalPassGivenBackBy;
|
|
45344
|
+
}>);
|
|
45345
|
+
type PortalPassStanding = 'active' | 'used_up' | 'expired' | 'refunded';
|
|
45346
|
+
type PortalPass = Readonly<{
|
|
45347
|
+
/** The customer's pass (not the product). */id: string;
|
|
45348
|
+
name: string;
|
|
45349
|
+
description: string | null;
|
|
45350
|
+
useCase: PortalPassUseCase; /** What they paid for it; null when the business gave it without selling it. */
|
|
45351
|
+
price: PortalMoney | null;
|
|
45352
|
+
boughtAt: string;
|
|
45353
|
+
expiresAt: string | null; /** `held` are set aside for bookings still being paid for. */
|
|
45354
|
+
credits: Readonly<{
|
|
45355
|
+
remaining: number;
|
|
45356
|
+
total: number;
|
|
45357
|
+
held: number;
|
|
45358
|
+
}>;
|
|
45359
|
+
standing: PortalPassStanding; /** Newest first. */
|
|
45360
|
+
uses: readonly PortalPassUse[];
|
|
45361
|
+
}>;
|
|
45362
|
+
/** Why credit came or went. `order` is null when the order isn't one they can see. */
|
|
45363
|
+
type PortalCreditReason = /** Spent on an order. */Readonly<{
|
|
45364
|
+
kind: 'spent';
|
|
45365
|
+
order: PortalOrderName | null;
|
|
45366
|
+
}> /** A refund paid as credit instead of back to the card. */ | Readonly<{
|
|
45367
|
+
kind: 'refunded_as_credit';
|
|
45368
|
+
order: PortalOrderName | null;
|
|
45369
|
+
}> /** Credit spent on an order that was cancelled or not paid, given back. */ | Readonly<{
|
|
45370
|
+
kind: 'given_back';
|
|
45371
|
+
order: PortalOrderName | null;
|
|
45372
|
+
}> /** A gift card they redeemed. */ | Readonly<{
|
|
45373
|
+
kind: 'gift_card';
|
|
45374
|
+
}> /** The business cancelled a booking and gave credit for it. */ | Readonly<{
|
|
45375
|
+
kind: 'business_cancelled';
|
|
45376
|
+
}> | Readonly<{
|
|
45377
|
+
kind: 'added_by_business';
|
|
45378
|
+
}> | Readonly<{
|
|
45379
|
+
kind: 'taken_off_by_business';
|
|
45380
|
+
}> /** Credit turned back into money and refunded to them. */ | Readonly<{
|
|
45381
|
+
kind: 'paid_out';
|
|
45382
|
+
}>;
|
|
45383
|
+
type PortalCreditEntry = Readonly<{
|
|
45384
|
+
key: string; /** Positive when credit came in, negative when it went out. */
|
|
45385
|
+
amount: PortalMoney;
|
|
45386
|
+
at: string;
|
|
45387
|
+
reason: PortalCreditReason;
|
|
45388
|
+
}>;
|
|
45389
|
+
type PortalCreditAccount = Readonly<{
|
|
45390
|
+
/** What they can spend now. */available: PortalMoney; /** Set aside for a payment that's still going through. */
|
|
45391
|
+
setAside: PortalMoney; /** The most recent entries, newest first. */
|
|
45392
|
+
history: readonly PortalCreditEntry[];
|
|
45393
|
+
}>;
|
|
45394
|
+
type PortalHoldingsResponse = Readonly<{
|
|
45395
|
+
memberships: PortalPart<Readonly<{
|
|
45396
|
+
memberships: readonly PortalMembership[];
|
|
45397
|
+
}>>;
|
|
45398
|
+
passes: PortalPart<Readonly<{
|
|
45399
|
+
passes: readonly PortalPass[];
|
|
45400
|
+
}>>; /** `account` is null for a customer who has never held credit. */
|
|
45401
|
+
credit: PortalPart<Readonly<{
|
|
45402
|
+
account: PortalCreditAccount | null;
|
|
45403
|
+
}>>;
|
|
45404
|
+
contact: PortalBusinessContact;
|
|
45405
|
+
}>;
|
|
45406
|
+
//#endregion
|
|
45407
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalPayments.d.ts
|
|
45408
|
+
/**
|
|
45409
|
+
* Payments & receipts, from three reads:
|
|
45410
|
+
*
|
|
45411
|
+
* - GET /api/portal/payments: what's to pay (the same tasks home shows for
|
|
45412
|
+
* money), instalment plans still running, and the customer's own payments
|
|
45413
|
+
* and refunds, newest first, a page at a time.
|
|
45414
|
+
* - GET /api/portal/payments/receipts/{receiptId}: one payment as a receipt.
|
|
45415
|
+
* - GET /api/portal/orders/{orderId}: one order, what's been paid towards it,
|
|
45416
|
+
* what's been sent back, and where any parcel is.
|
|
45417
|
+
*
|
|
45418
|
+
* Payments are money the customer paid (card or in person). Site credit spent
|
|
45419
|
+
* on an order isn't a payment: it shows on the order and in the credit history
|
|
45420
|
+
* on the passes page, never as a payment here. Refunds say whether they've
|
|
45421
|
+
* been sent and when, never that the money has reached anyone's account.
|
|
45422
|
+
*
|
|
45423
|
+
* Wire evolution (pinned SDK clients): a history entry's kind is an extensible
|
|
45424
|
+
* point. A kind a newer server adds decodes to `unsupported`, which still shows
|
|
45425
|
+
* as a row with nothing to open.
|
|
45426
|
+
*/
|
|
45427
|
+
/** What a payment was, as its receipt recorded it. */
|
|
45428
|
+
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';
|
|
45429
|
+
/** How the customer paid: online by card, or in person (recorded by the business, with how when it said). */
|
|
45430
|
+
type PortalPaidHow = Readonly<{
|
|
45431
|
+
kind: 'card';
|
|
45432
|
+
}> | Readonly<{
|
|
45433
|
+
kind: 'in_person';
|
|
45434
|
+
method: OfflinePaymentMethod | null;
|
|
45435
|
+
}>;
|
|
45436
|
+
/**
|
|
45437
|
+
* Where a refund goes: back to the card that paid (with its last four digits
|
|
45438
|
+
* when the payment provider gave them), to site credit, or paid back by the
|
|
45439
|
+
* business itself for a payment made in person.
|
|
45440
|
+
*/
|
|
45441
|
+
type PortalRefundTo = Readonly<{
|
|
45442
|
+
kind: 'card';
|
|
45443
|
+
last4: string | null;
|
|
45444
|
+
}> | Readonly<{
|
|
45445
|
+
kind: 'site_credit';
|
|
45446
|
+
}> | Readonly<{
|
|
45447
|
+
kind: 'business';
|
|
45448
|
+
}>;
|
|
45449
|
+
/**
|
|
45450
|
+
* Where a refund has got to: `sent` (with the date it went), `sending` (asked
|
|
45451
|
+
* for, not yet confirmed), `failed`, or `checking` while the business works out
|
|
45452
|
+
* what happened. Nothing here says when the money reaches an account.
|
|
45453
|
+
*/
|
|
45454
|
+
type PortalRefundStanding = 'sent' | 'sending' | 'failed' | 'checking';
|
|
45455
|
+
type PortalRefund = Readonly<{
|
|
45456
|
+
refundId: string; /** When it was asked for. */
|
|
45457
|
+
at: string;
|
|
45458
|
+
amount: PortalMoney;
|
|
45459
|
+
to: PortalRefundTo;
|
|
45460
|
+
standing: PortalRefundStanding; /** When it was sent; null until it's `sent`. */
|
|
45461
|
+
sentAt: string | null;
|
|
45462
|
+
}>;
|
|
45463
|
+
type PortalPaymentEntry = Readonly<{
|
|
45464
|
+
kind: 'payment';
|
|
45465
|
+
key: string;
|
|
45466
|
+
receiptId: string;
|
|
45467
|
+
at: string;
|
|
45468
|
+
amount: PortalMoney;
|
|
45469
|
+
order: PortalOrderName;
|
|
45470
|
+
purpose: PortalPaymentPurpose;
|
|
45471
|
+
how: PortalPaidHow; /** How much of it has been sent back so far; null when none. */
|
|
45472
|
+
refunded: PortalMoney | null; /** The business is still matching this payment to the order. */
|
|
45473
|
+
checking: boolean;
|
|
45474
|
+
}> | (Readonly<{
|
|
45475
|
+
kind: 'refund';
|
|
45476
|
+
key: string;
|
|
45477
|
+
order: PortalOrderName;
|
|
45478
|
+
paymentReceiptId: string | null;
|
|
45479
|
+
}> & PortalRefund);
|
|
45480
|
+
/**
|
|
45481
|
+
* How a plan's payment stands. `not_taken_yet`: its date has passed and it
|
|
45482
|
+
* hasn't been taken (nor failed). `paid_early`: covered when the rest was paid
|
|
45483
|
+
* off in one go.
|
|
45484
|
+
*/
|
|
45485
|
+
type PortalInstalmentStanding = 'paid' | 'paid_early' | 'to_come' | 'not_taken_yet' | 'failed' | 'waived' | 'cancelled';
|
|
45486
|
+
type PortalInstalment = Readonly<{
|
|
45487
|
+
key: string;
|
|
45488
|
+
dueAt: string;
|
|
45489
|
+
amount: PortalMoney;
|
|
45490
|
+
standing: PortalInstalmentStanding; /** The receipt for a paid one, when it can be found. */
|
|
45491
|
+
receiptId: string | null;
|
|
45492
|
+
}>;
|
|
45493
|
+
/** A payment plan still collecting: what's paid, what's to come, and the order's own line about it. */
|
|
45494
|
+
type PortalInstalmentPlan = Readonly<{
|
|
45495
|
+
orderId: string;
|
|
45496
|
+
orderNumber: string;
|
|
45497
|
+
for: PortalPaymentFor;
|
|
45498
|
+
total: PortalMoney;
|
|
45499
|
+
paid: PortalMoney; /** The server's sentence for where the order stands, the same one the order shows. */
|
|
45500
|
+
moneyLine: string;
|
|
45501
|
+
instalments: readonly PortalInstalment[]; /** The order's own to-do: what's asked now, and whether the rest can be paid early. */
|
|
45502
|
+
toDo: PortalPaymentToDo;
|
|
45503
|
+
}>;
|
|
45504
|
+
type PortalPaymentHistory = PortalPart<Readonly<{
|
|
45505
|
+
entries: readonly PortalPaymentEntry[];
|
|
45506
|
+
nextCursor: string | null;
|
|
45507
|
+
}>>;
|
|
45508
|
+
/**
|
|
45509
|
+
* An order the payments history can't show, because no money was paid
|
|
45510
|
+
* towards it (it was free, paid with credit or nothing was due) or only a
|
|
45511
|
+
* retained copy of it is kept. Listed so every order stays findable.
|
|
45512
|
+
*/
|
|
45513
|
+
type PortalOtherOrder = Readonly<{
|
|
45514
|
+
order: PortalOrderName;
|
|
45515
|
+
at: string;
|
|
45516
|
+
total: PortalMoney; /** The order's own sentence for where its money stands. */
|
|
45517
|
+
moneyLine: string;
|
|
45518
|
+
}>;
|
|
45519
|
+
type PortalPaymentsResponse = Readonly<{
|
|
45520
|
+
/** 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. */
|
|
45521
|
+
checking: number;
|
|
45522
|
+
plans: PortalPart<Readonly<{
|
|
45523
|
+
plans: readonly PortalInstalmentPlan[];
|
|
45524
|
+
}>>;
|
|
45525
|
+
history: PortalPaymentHistory; /** Orders with no payments to list, newest first; more than this many are left to the bookings and passes pages. */
|
|
45526
|
+
otherOrders: PortalPart<Readonly<{
|
|
45527
|
+
orders: readonly PortalOtherOrder[];
|
|
45528
|
+
}>>;
|
|
45529
|
+
contact: PortalBusinessContact;
|
|
45530
|
+
}>;
|
|
45531
|
+
/** Who sold it, as the business publishes itself. The address is left out when the business keeps it private. */
|
|
45532
|
+
type PortalSeller = Readonly<{
|
|
45533
|
+
name: string;
|
|
45534
|
+
address: string | null;
|
|
45535
|
+
email: string | null;
|
|
45536
|
+
phone: string | null;
|
|
45537
|
+
}>;
|
|
45538
|
+
type PortalReceipt = Readonly<{
|
|
45539
|
+
/** The stable id of this payment; there's no separate receipt number. */receiptId: string;
|
|
45540
|
+
paidAt: string;
|
|
45541
|
+
amount: PortalMoney;
|
|
45542
|
+
purpose: PortalPaymentPurpose;
|
|
45543
|
+
how: PortalPaidHow; /** The tax recorded as part of this payment when it was taken; null when none was. */
|
|
45544
|
+
tax: PortalMoney | null;
|
|
45545
|
+
seller: PortalSeller;
|
|
45546
|
+
paidBy: Readonly<{
|
|
45547
|
+
name: string | null;
|
|
45548
|
+
email: string;
|
|
45549
|
+
}>;
|
|
45550
|
+
order: Readonly<{
|
|
45551
|
+
orderId: string;
|
|
45552
|
+
orderNumber: string; /** What the order came to, line by line, from the money owner; credit is how part of it was paid. */
|
|
45553
|
+
breakdown: PortalOrderBreakdown; /** What the order asks of the customer now: what's left to pay, and when. */
|
|
45554
|
+
toDo: PortalPaymentToDo;
|
|
45555
|
+
}>; /** Refunds of this payment. */
|
|
45556
|
+
refunds: readonly PortalRefund[];
|
|
45557
|
+
checking: boolean;
|
|
45558
|
+
}>;
|
|
45559
|
+
type PortalReceiptResponse = Readonly<{
|
|
45560
|
+
receipt: PortalReceipt;
|
|
45561
|
+
}>;
|
|
45562
|
+
type PortalShipment = Readonly<{
|
|
45563
|
+
key: string;
|
|
45564
|
+
sentAt: string;
|
|
45565
|
+
carrier: string | null; /** Only a web address (http or https) the business gave. */
|
|
45566
|
+
trackingUrl: string | null;
|
|
45567
|
+
items: readonly Readonly<{
|
|
45568
|
+
label: string;
|
|
45569
|
+
quantity: number;
|
|
45570
|
+
}>[];
|
|
45571
|
+
}>;
|
|
45572
|
+
/** Whether anything in the order is posted, and where it's got to. */
|
|
45573
|
+
type PortalOrderPostage = Readonly<{
|
|
45574
|
+
kind: 'nothing_to_post';
|
|
45575
|
+
}> | Readonly<{
|
|
45576
|
+
kind: 'posted';
|
|
45577
|
+
standing: 'not_sent' | 'partly_sent' | 'sent';
|
|
45578
|
+
shipments: readonly PortalShipment[];
|
|
45579
|
+
}>;
|
|
45580
|
+
type PortalOrderPayment = Readonly<{
|
|
45581
|
+
receiptId: string;
|
|
45582
|
+
at: string;
|
|
45583
|
+
amount: PortalMoney;
|
|
45584
|
+
purpose: PortalPaymentPurpose;
|
|
45585
|
+
how: PortalPaidHow;
|
|
45586
|
+
}>;
|
|
45587
|
+
/** One order. What it asks of the customer now is `order.toDo`. */
|
|
45588
|
+
type PortalOrderPage = Readonly<{
|
|
45589
|
+
order: CustomerOrder; /** What the order came to, line by line, from the money owner. */
|
|
45590
|
+
breakdown: PortalOrderBreakdown; /** Its instalment plan, the same one the payments page shows; null when it has none. */
|
|
45591
|
+
plan: PortalInstalmentPlan | null;
|
|
45592
|
+
payments: readonly PortalOrderPayment[];
|
|
45593
|
+
refunds: readonly PortalRefund[];
|
|
45594
|
+
postage: PortalOrderPostage;
|
|
45595
|
+
contact: PortalBusinessContact;
|
|
45596
|
+
}>;
|
|
45597
|
+
type PortalOrderResponse = Readonly<{
|
|
45598
|
+
order: PortalOrderPage;
|
|
45599
|
+
}>;
|
|
45600
|
+
//#endregion
|
|
45601
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalDetails.d.ts
|
|
45602
|
+
/**
|
|
45603
|
+
* The "Your details" page: who they are, the booking terms they last agreed
|
|
45604
|
+
* to, the business's newsletter as it stands for the email they sign in with,
|
|
45605
|
+
* and how to reach the business about their data. Terms and the newsletter are
|
|
45606
|
+
* each read on their own, so one that couldn't be read says so while the rest
|
|
45607
|
+
* shows.
|
|
45608
|
+
*/
|
|
45609
|
+
/**
|
|
45610
|
+
* The booking terms the customer last ticked: which version, when, and where
|
|
45611
|
+
* that version can be read (null when the business no longer publishes it
|
|
45612
|
+
* anywhere we can link to).
|
|
45613
|
+
*/
|
|
45614
|
+
type PortalTermsAgreement = Readonly<{
|
|
45615
|
+
versionNumber: number;
|
|
45616
|
+
agreedAt: string;
|
|
45617
|
+
href: string | null;
|
|
45618
|
+
}>;
|
|
45619
|
+
/** One of the business's newsletter topics, and whether this email gets it. */
|
|
45620
|
+
type PortalNewsletterTopic = Readonly<{
|
|
45621
|
+
id: string;
|
|
45622
|
+
name: string;
|
|
45623
|
+
description: string | null;
|
|
45624
|
+
selected: boolean;
|
|
45625
|
+
}>;
|
|
45626
|
+
/**
|
|
45627
|
+
* The business's newsletter for the signed-in email. An extensible point:
|
|
45628
|
+
* a kind this build doesn't know decodes to `unsupported`, shown without a way
|
|
45629
|
+
* to change anything.
|
|
45630
|
+
*
|
|
45631
|
+
* - `not_offered`: the business has no mailing list here.
|
|
45632
|
+
* - `elsewhere`: it runs its list with another service, so we can't see or change it.
|
|
45633
|
+
* - `not_subscribed`: this email isn't on the list.
|
|
45634
|
+
* - `awaiting_confirmation`: they signed up but haven't opened the confirmation email yet.
|
|
45635
|
+
* - `cannot_send`: emails to this address bounced or were reported, so none are sent.
|
|
45636
|
+
* - `choices`: on the list, confirmed. `general` is the main list; nothing
|
|
45637
|
+
* chosen means they've unsubscribed. Saving these choices is allowed.
|
|
45638
|
+
*/
|
|
45639
|
+
type PortalNewsletter = Readonly<{
|
|
45640
|
+
kind: 'not_offered' | 'elsewhere' | 'not_subscribed' | 'awaiting_confirmation' | 'cannot_send';
|
|
45641
|
+
}> | Readonly<{
|
|
45642
|
+
kind: 'choices';
|
|
45643
|
+
general: boolean;
|
|
45644
|
+
topics: readonly PortalNewsletterTopic[];
|
|
45645
|
+
}>;
|
|
45646
|
+
type PortalDetailsResponse = Readonly<{
|
|
45647
|
+
profile: CustomerProfile; /** `agreement` is null when they've never ticked the business's booking terms. */
|
|
45648
|
+
terms: PortalPart<Readonly<{
|
|
45649
|
+
agreement: PortalTermsAgreement | null;
|
|
45650
|
+
}>>;
|
|
45651
|
+
newsletter: PortalPart<Readonly<{
|
|
45652
|
+
newsletter: PortalNewsletter;
|
|
45653
|
+
}>>;
|
|
45654
|
+
contact: PortalBusinessContact;
|
|
45655
|
+
}>;
|
|
45656
|
+
/** What the newsletter choices are saved as. Nothing chosen unsubscribes. */
|
|
45657
|
+
type PortalNewsletterUpdateRequest = Readonly<{
|
|
45658
|
+
general: boolean;
|
|
45659
|
+
topicIds: readonly string[];
|
|
45660
|
+
}>;
|
|
45661
|
+
/** The newsletter as it stands after saving. */
|
|
45662
|
+
type PortalNewsletterUpdateResponse = Readonly<{
|
|
45663
|
+
newsletter: PortalNewsletter;
|
|
45664
|
+
}>;
|
|
45665
|
+
//#endregion
|
|
45666
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalOccurrenceBookings.d.ts
|
|
45667
|
+
/**
|
|
45668
|
+
* The signed-in customer's own confirmed bookings for one event date, for the
|
|
45669
|
+
* booking form's "you're already booked" reminder. Bookings they gave away,
|
|
45670
|
+
* cancelled ones and waitlist places aren't included (a waitlist place has its
|
|
45671
|
+
* own notice through admission).
|
|
45672
|
+
*/
|
|
45673
|
+
type PortalOccurrenceBooking = Readonly<{
|
|
45674
|
+
id: string;
|
|
45675
|
+
occurrenceId: string;
|
|
45676
|
+
ticketsCount: number; /** "2 x Adult, 1 x Child", or null when the booking has no ticket lines to name. */
|
|
45677
|
+
ticketBreakdown: string | null;
|
|
45678
|
+
}>;
|
|
45679
|
+
type PortalOccurrenceBookingsResponse = Readonly<{
|
|
45680
|
+
bookings: readonly PortalOccurrenceBooking[];
|
|
45681
|
+
}>;
|
|
45682
|
+
//#endregion
|
|
45683
|
+
//#region .cache/declarations/site-contracts/src/siteData/portalRoutes.d.ts
|
|
45684
|
+
/**
|
|
45685
|
+
* The customer portal's addresses. One catch-all page serves every path under
|
|
45686
|
+
* `/portal`; this module is the only place that turns a page into a path
|
|
45687
|
+
* (`portalPath`) or a URL back into a page (`parsePortalLocation`). Emails,
|
|
45688
|
+
* the client, the SDK and the hosts all link through it.
|
|
45689
|
+
*
|
|
45690
|
+
* Old links live in issued emails for months, so every shape the portal has
|
|
45691
|
+
* ever emitted (`portal_tab`, `portal_task`, `portal_order`, `order=…`,
|
|
45692
|
+
* `/portal/tickets/…`, `/portal/digital-products/…`) keeps parsing to a page,
|
|
45693
|
+
* permanently. Parsing needs no session: the portal page reads the location
|
|
45694
|
+
* after sign-in exactly as before it.
|
|
45695
|
+
*/
|
|
45696
|
+
type EventAttendeeRef = Extract<BookingContextRef, {
|
|
45697
|
+
tag: 'event_attendee';
|
|
45698
|
+
}>;
|
|
45699
|
+
type AppointmentRef = Extract<BookingContextRef, {
|
|
45700
|
+
tag: 'appointment';
|
|
45701
|
+
}>;
|
|
45702
|
+
/** Every page a link can point at. */
|
|
45703
|
+
type PortalTarget = Readonly<{
|
|
45704
|
+
page: 'home';
|
|
45705
|
+
}> | Readonly<{
|
|
45706
|
+
page: 'bookings';
|
|
45707
|
+
}> | Readonly<{
|
|
45708
|
+
page: 'booking';
|
|
45709
|
+
ref: BookingContextRef;
|
|
45710
|
+
}> | Readonly<{
|
|
45711
|
+
page: 'booking_questions';
|
|
45712
|
+
ref: BookingContextRef;
|
|
45713
|
+
}> | Readonly<{
|
|
45714
|
+
page: 'booking_cancel';
|
|
45715
|
+
ref: BookingContextRef;
|
|
45716
|
+
}> /** Whole-booking transfer; only dated events support it. */ | Readonly<{
|
|
45717
|
+
page: 'booking_transfer';
|
|
45718
|
+
ref: EventAttendeeRef;
|
|
45719
|
+
}> | Readonly<{
|
|
45720
|
+
page: 'booking_reschedule';
|
|
45721
|
+
ref: EventAttendeeRef | AppointmentRef;
|
|
45722
|
+
}> /** One ticket for the booking (D5). */ | Readonly<{
|
|
45723
|
+
page: 'ticket';
|
|
45724
|
+
ref: EventAttendeeRef;
|
|
45725
|
+
}> /** A place offered from a waitlist; shown with the other bookings. */ | Readonly<{
|
|
45726
|
+
page: 'waitlist_offer';
|
|
45727
|
+
entryId: WaitlistEntryId;
|
|
45728
|
+
}> /** Passes, memberships and site credit. */ | Readonly<{
|
|
45729
|
+
page: 'passes';
|
|
45730
|
+
}> | Readonly<{
|
|
45731
|
+
page: 'payments';
|
|
45732
|
+
}> /** One order, including an unpaid one a payment-link email points at. */ | Readonly<{
|
|
45733
|
+
page: 'order';
|
|
45734
|
+
orderId: OrderId;
|
|
45735
|
+
}> | Readonly<{
|
|
45736
|
+
page: 'receipt';
|
|
45737
|
+
receiptId: OrderPaymentReceiptId;
|
|
45738
|
+
}> | Readonly<{
|
|
45739
|
+
page: 'downloads';
|
|
45740
|
+
}> | Readonly<{
|
|
45741
|
+
page: 'download';
|
|
45742
|
+
entitlementId: EntitlementId;
|
|
45743
|
+
}> /** Sends the browser on to the file itself. */ | Readonly<{
|
|
45744
|
+
page: 'download_file';
|
|
45745
|
+
entitlementId: EntitlementId;
|
|
45746
|
+
assetId: MediaAssetId;
|
|
45747
|
+
}> | Readonly<{
|
|
45748
|
+
page: 'details';
|
|
45749
|
+
}> | Readonly<{
|
|
45750
|
+
page: 'sign_in';
|
|
45751
|
+
}> /** Where an emailed sign-in link lands before Continue is pressed. */ | Readonly<{
|
|
45752
|
+
page: 'continue';
|
|
45753
|
+
reason: PortalEntryReason;
|
|
45754
|
+
}>;
|
|
45755
|
+
/**
|
|
45756
|
+
* Why someone is on the Continue page, as the callback sent them there: they
|
|
45757
|
+
* opened a link, pressed Continue on a page another tab's link had replaced,
|
|
45758
|
+
* or asked for a new link and this is the answer. `none` is the page reached
|
|
45759
|
+
* any other way.
|
|
45760
|
+
*/
|
|
45761
|
+
type PortalEntryReason = 'none' | 'opened' | 'stale' | 'link_sent' | 'link_limited' | 'demo_refused';
|
|
45762
|
+
/**
|
|
45763
|
+
* Pages the server renders on its own: Continue (before any session), tickets
|
|
45764
|
+
* and downloads. Every other page is the client portal's. The hosts' renderer
|
|
45765
|
+
* and the client's navigation both read this split, so neither can disagree
|
|
45766
|
+
* about who draws a page.
|
|
45767
|
+
*/
|
|
45768
|
+
declare const SERVER_PORTAL_PAGES: readonly ['continue', 'ticket', 'download', 'download_file'];
|
|
45769
|
+
type ServerPortalPage = (typeof SERVER_PORTAL_PAGES)[number];
|
|
45770
|
+
type ClientPortalTarget = Exclude<PortalTarget, Readonly<{
|
|
45771
|
+
page: ServerPortalPage;
|
|
45772
|
+
}>>;
|
|
45773
|
+
/** What a URL under the portal shows: one of its pages, or nothing. */
|
|
45774
|
+
type PortalRoute = PortalTarget | Readonly<{
|
|
45775
|
+
page: 'not_found';
|
|
45776
|
+
}>;
|
|
45777
|
+
/**
|
|
45778
|
+
* An outcome the URL itself carries, read once on arrival. Signing in and
|
|
45779
|
+
* coming back from checkout are separate facts, so one URL can carry both.
|
|
45780
|
+
*/
|
|
45781
|
+
type PortalArrival = 'signed_in' | 'order_paid' | 'order_checkout_left';
|
|
45782
|
+
type PortalLocation = Readonly<{
|
|
45783
|
+
route: PortalRoute; /** Sign-in first, then the checkout outcome; each at most once. */
|
|
45784
|
+
arrivals: readonly PortalArrival[];
|
|
45785
|
+
/**
|
|
45786
|
+
* The address to show instead of the one visited, when it was an old shape
|
|
45787
|
+
* or carried a one-off outcome; null when it's already right. Unknown query
|
|
45788
|
+
* parameters are kept.
|
|
45789
|
+
*/
|
|
45790
|
+
rewrite: string | null;
|
|
45791
|
+
}>;
|
|
45792
|
+
/** The portal's root on every site; nothing else defines it. */
|
|
45793
|
+
/** A location on a page the client portal draws: what the host hands the client. */
|
|
45794
|
+
type ClientPortalLocation = Omit<PortalLocation, 'route'> & Readonly<{
|
|
45795
|
+
route: ClientPortalTarget;
|
|
45796
|
+
}>;
|
|
45797
|
+
declare const CUSTOMER_PORTAL_PATH = "/portal";
|
|
44439
45798
|
//#endregion
|
|
44440
45799
|
//#region .cache/declarations/site-contracts/src/siteData/portalActions.d.ts
|
|
44441
45800
|
/**
|
|
@@ -44446,6 +45805,8 @@ interface PortalMeResponse {
|
|
|
44446
45805
|
profile: CustomerProfile;
|
|
44447
45806
|
modules: EnabledModules;
|
|
44448
45807
|
}
|
|
45808
|
+
/** What PATCH /api/portal/me answers with. */
|
|
45809
|
+
type PortalMeUpdateResponse = Omit<PortalMeResponse, 'siteTermsAcceptance'>;
|
|
44449
45810
|
interface PortalMeUpdateRequest {
|
|
44450
45811
|
name?: string;
|
|
44451
45812
|
phone?: string | null;
|
|
@@ -44481,9 +45842,6 @@ type MagicLinkResponse = {
|
|
|
44481
45842
|
} | {
|
|
44482
45843
|
demoSignInUrl: string;
|
|
44483
45844
|
};
|
|
44484
|
-
interface PortalCreditResponse {
|
|
44485
|
-
credit: PortalCredit | null;
|
|
44486
|
-
}
|
|
44487
45845
|
interface PortalOrderCheckoutRequest {
|
|
44488
45846
|
successUrl: string;
|
|
44489
45847
|
cancelUrl: string;
|
|
@@ -44557,8 +45915,22 @@ interface PortalCancelWholeSeriesRegistrationResult {
|
|
|
44557
45915
|
refunded: boolean;
|
|
44558
45916
|
refund?: PortalRefundInfo;
|
|
44559
45917
|
requiresCancelWithoutRefundConfirmation?: boolean;
|
|
45918
|
+
/** What happened to the customer's money, as the server decided it. */
|
|
45919
|
+
money: PortalCancelledMoney;
|
|
45920
|
+
/**
|
|
45921
|
+
* The server's sentence for something other than the money that still
|
|
45922
|
+
* needs attention once the booking is cancelled (remaining payments on a
|
|
45923
|
+
* plan still going through, or not checked); null when there's nothing.
|
|
45924
|
+
*/
|
|
45925
|
+
followUp: string | null;
|
|
44560
45926
|
message: string;
|
|
44561
45927
|
}
|
|
45928
|
+
/**
|
|
45929
|
+
* What a cancellation did with the customer's money, decided by the server so
|
|
45930
|
+
* a page only words it (core's `cancelledMoneySentence`). An extensible
|
|
45931
|
+
* point: a kind a newer server adds reads as `unsupported`.
|
|
45932
|
+
*/
|
|
45933
|
+
type PortalCancelledMoney = CancelledMoney;
|
|
44562
45934
|
interface PortalRefundInfo {
|
|
44563
45935
|
status: "succeeded" | "failed" | "skipped";
|
|
44564
45936
|
amountCents: number | null;
|
|
@@ -44682,6 +46054,13 @@ interface PortalCancelEventRegistrationResult {
|
|
|
44682
46054
|
refunded: boolean;
|
|
44683
46055
|
refund?: PortalRefundInfo;
|
|
44684
46056
|
requiresCancelWithoutRefundConfirmation?: boolean;
|
|
46057
|
+
money: PortalCancelledMoney;
|
|
46058
|
+
/**
|
|
46059
|
+
* The server's sentence for something other than the money that still
|
|
46060
|
+
* needs attention once the booking is cancelled (remaining payments on a
|
|
46061
|
+
* plan still going through, or not checked); null when there's nothing.
|
|
46062
|
+
*/
|
|
46063
|
+
followUp: string | null;
|
|
44685
46064
|
message: string;
|
|
44686
46065
|
}
|
|
44687
46066
|
interface PortalCancelAppointmentResult {
|
|
@@ -44689,7 +46068,13 @@ interface PortalCancelAppointmentResult {
|
|
|
44689
46068
|
refunded: boolean;
|
|
44690
46069
|
refund?: PortalRefundInfo;
|
|
44691
46070
|
requiresCancelWithoutRefundConfirmation?: boolean;
|
|
44692
|
-
|
|
46071
|
+
money: PortalCancelledMoney;
|
|
46072
|
+
/**
|
|
46073
|
+
* The server's sentence for something other than the money that still
|
|
46074
|
+
* needs attention once the booking is cancelled (remaining payments on a
|
|
46075
|
+
* plan still going through, or not checked); null when there's nothing.
|
|
46076
|
+
*/
|
|
46077
|
+
followUp: string | null;
|
|
44693
46078
|
message: string;
|
|
44694
46079
|
}
|
|
44695
46080
|
interface PortalTransferEventRegistrationRequest {
|
|
@@ -44701,9 +46086,23 @@ interface PortalTransferEventRegistrationResult {
|
|
|
44701
46086
|
message: string;
|
|
44702
46087
|
transferId?: string;
|
|
44703
46088
|
}
|
|
46089
|
+
/** Why a membership change left it as it was. */
|
|
46090
|
+
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';
|
|
46091
|
+
/** How a cancel or keep went, as the membership's owner decided it. */
|
|
46092
|
+
type PortalMembershipChangeOutcome = Readonly<{
|
|
46093
|
+
kind: 'changed';
|
|
46094
|
+
}> | Readonly<{
|
|
46095
|
+
kind: 'unchanged';
|
|
46096
|
+
reason: PortalMembershipUnchangedReason;
|
|
46097
|
+
}> /** The payment provider hasn't confirmed it yet; it finishes by itself. */ | Readonly<{
|
|
46098
|
+
kind: 'settling';
|
|
46099
|
+
}>;
|
|
44704
46100
|
interface PortalCancelMembershipAtPeriodEndResult {
|
|
46101
|
+
/** Whether it's set to end now (the old portal reads this; the new one reads `outcome`). */
|
|
44705
46102
|
cancelled: boolean;
|
|
46103
|
+
/** The customer's words for what happened, including bookings it cancelled or still has to. */
|
|
44706
46104
|
message: string;
|
|
46105
|
+
outcome: PortalMembershipChangeOutcome;
|
|
44707
46106
|
}
|
|
44708
46107
|
//#endregion
|
|
44709
46108
|
//#region .cache/declarations/site-contracts/src/siteData/giftClaims.d.ts
|
|
@@ -61474,59 +62873,6 @@ declare const headerInteractionPaletteSchema: z$1.ZodEnum<{
|
|
|
61474
62873
|
type HeaderInteractionPalette = z$1.infer<typeof headerInteractionPaletteSchema>;
|
|
61475
62874
|
type HeaderInteractionPalettePreference = 'recommended' | HeaderInteractionPalette;
|
|
61476
62875
|
//#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
62876
|
//#region .cache/declarations/site-contracts/src/theme/logoFacts.d.ts
|
|
61531
62877
|
type LogoTextConfidence = 'low' | 'medium' | 'high';
|
|
61532
62878
|
type LogoContainsText = Readonly<{
|
|
@@ -62477,6 +63823,17 @@ type EditorRenderablePageOutline = Omit<PageOutline, 'blocks' | 'aside'> & Reado
|
|
|
62477
63823
|
}>)[];
|
|
62478
63824
|
}>;
|
|
62479
63825
|
//#endregion
|
|
63826
|
+
//#region .cache/declarations/theme-core/src/site-styles/sectionGround.d.ts
|
|
63827
|
+
/**
|
|
63828
|
+
* What a platform section declares about its ground: the theme token it
|
|
63829
|
+
* paints when its content sets no colour. `styledSection` owns it and hands
|
|
63830
|
+
* the same value to its background layer, so the paint and the page's join
|
|
63831
|
+
* composition read one declaration.
|
|
63832
|
+
*/
|
|
63833
|
+
type SectionGround = Readonly<{
|
|
63834
|
+
fallback: ThemeColorToken;
|
|
63835
|
+
}>;
|
|
63836
|
+
//#endregion
|
|
62480
63837
|
//#region .cache/declarations/blocks/src/contracts/runtime.d.ts
|
|
62481
63838
|
type DecodeIssue = Readonly<{
|
|
62482
63839
|
path: readonly (string | number)[];
|
|
@@ -62594,125 +63951,6 @@ type BlockSiteTerms = Readonly<{
|
|
|
62594
63951
|
href: string | null;
|
|
62595
63952
|
}>;
|
|
62596
63953
|
//#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
63954
|
//#region .cache/declarations/blocks/src/system/runtime/shared/navigation/pageNavigation.d.ts
|
|
62717
63955
|
declare const pageNavigationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
62718
63956
|
kind: z$1.ZodLiteral<"page">;
|
|
@@ -62771,6 +64009,70 @@ interface BlockApiConfig {
|
|
|
62771
64009
|
/** Bound hosted browsing authority; legacy SDK auth/stage fields cannot override it. */
|
|
62772
64010
|
readAuthority?: BrowserReadAuthority;
|
|
62773
64011
|
}
|
|
64012
|
+
/**
|
|
64013
|
+
* Field-level validation detail carried on an error envelope.
|
|
64014
|
+
*
|
|
64015
|
+
* The same shape as `FieldError` in `@riverbankcms/api` and
|
|
64016
|
+
* `RiverbankApiError['fieldErrors']` in the SDK. Blocks does not depend on
|
|
64017
|
+
* `@riverbankcms/api`, so the shape is restated here rather than imported.
|
|
64018
|
+
*/
|
|
64019
|
+
interface ApiFieldError {
|
|
64020
|
+
field: string;
|
|
64021
|
+
code: string;
|
|
64022
|
+
message: string;
|
|
64023
|
+
}
|
|
64024
|
+
//#endregion
|
|
64025
|
+
//#region .cache/declarations/blocks/src/portal/api/portalApiError.d.ts
|
|
64026
|
+
/**
|
|
64027
|
+
* Every way a portal call can fail, closed so a page decides once what each
|
|
64028
|
+
* one looks like. Messages are the server's when it sent one, and safe to show.
|
|
64029
|
+
*/
|
|
64030
|
+
type PortalApiError = /** No session, or it expired: the page offers sign-in again. */Readonly<{
|
|
64031
|
+
kind: 'signed_out';
|
|
64032
|
+
}> | Readonly<{
|
|
64033
|
+
kind: 'not_found';
|
|
64034
|
+
message: string;
|
|
64035
|
+
}> /** The booking or record changed under them (already cancelled, offer closed). */ | Readonly<{
|
|
64036
|
+
kind: 'conflict';
|
|
64037
|
+
code: string | null;
|
|
64038
|
+
message: string;
|
|
64039
|
+
}>
|
|
64040
|
+
/** The server refused this request: validation, a rule, or not theirs to change. */
|
|
64041
|
+
/** `retryAfterSeconds` is the server's Retry-After, when it limited how often this can be asked. */
|
|
64042
|
+
| Readonly<{
|
|
64043
|
+
kind: 'rejected';
|
|
64044
|
+
status: number;
|
|
64045
|
+
code: string | null;
|
|
64046
|
+
message: string;
|
|
64047
|
+
fieldErrors: readonly ApiFieldError[];
|
|
64048
|
+
retryAfterSeconds: number | null;
|
|
64049
|
+
}> | Readonly<{
|
|
64050
|
+
kind: 'unavailable';
|
|
64051
|
+
status: number;
|
|
64052
|
+
message: string;
|
|
64053
|
+
}> /** The request never got an answer. */ | Readonly<{
|
|
64054
|
+
kind: 'network';
|
|
64055
|
+
message: string;
|
|
64056
|
+
}> /** The answer wasn't what the contract says; `issues` are for logs, not customers. */ | Readonly<{
|
|
64057
|
+
kind: 'unreadable';
|
|
64058
|
+
endpoint: string;
|
|
64059
|
+
issues: readonly string[];
|
|
64060
|
+
}>;
|
|
64061
|
+
//#endregion
|
|
64062
|
+
//#region .cache/declarations/blocks/src/portal/api/portalTransport.d.ts
|
|
64063
|
+
type PortalResult<T> = Promise<Result<T, PortalApiError>>;
|
|
64064
|
+
//#endregion
|
|
64065
|
+
//#region .cache/declarations/blocks/src/portal/api/portalVisitor.d.ts
|
|
64066
|
+
/**
|
|
64067
|
+
* What a public page, such as a booking form, may read about the customer
|
|
64068
|
+
* signed in to the portal: who they are, and which bookings they already hold
|
|
64069
|
+
* for a date. Each answer is decoded once and a failure is a value, so a page
|
|
64070
|
+
* can tell "couldn't check" from "nothing there".
|
|
64071
|
+
*/
|
|
64072
|
+
type PortalVisitorApi = Readonly<{
|
|
64073
|
+
profile(): PortalResult<PortalMeResponse>; /** The customer's own confirmed bookings for this event date. */
|
|
64074
|
+
occurrenceBookings(occurrenceId: string): PortalResult<readonly PortalOccurrenceBooking[]>;
|
|
64075
|
+
}>;
|
|
62774
64076
|
//#endregion
|
|
62775
64077
|
//#region .cache/declarations/altcha/src/protection.d.ts
|
|
62776
64078
|
/** Authorization is issued only by the live verification owner, never from a caller's string. */
|
|
@@ -64958,7 +66260,7 @@ declare const API_ENDPOINTS: {
|
|
|
64958
66260
|
method: "DELETE";
|
|
64959
66261
|
auth: "user";
|
|
64960
66262
|
responseKind: "json";
|
|
64961
|
-
errors: ("resource:not_found" | "server:internal_error")[];
|
|
66263
|
+
errors: ("resource:conflict" | "resource:not_found" | "server:internal_error")[];
|
|
64962
66264
|
};
|
|
64963
66265
|
readonly getAppointmentSetup: {
|
|
64964
66266
|
path: "/sites/{siteId}/bookings/appointment-setup";
|
|
@@ -66435,6 +67737,21 @@ declare const API_ENDPOINTS: {
|
|
|
66435
67737
|
responseKind: "json";
|
|
66436
67738
|
errors: ("auth:forbidden" | "resource:conflict" | "resource:not_found" | "server:internal_error" | "validation:invalid_input")[];
|
|
66437
67739
|
};
|
|
67740
|
+
readonly changeGiftExpiry: {
|
|
67741
|
+
path: "/sites/{siteId}/gifting/gifts/{giftId}/expiry";
|
|
67742
|
+
method: "POST";
|
|
67743
|
+
tags: ("gifting-gifts-{siteId}" | "site-{siteId}")[];
|
|
67744
|
+
auth: "user";
|
|
67745
|
+
demoMutation: {
|
|
67746
|
+
classification: "allowed";
|
|
67747
|
+
publicMessage: "";
|
|
67748
|
+
} | {
|
|
67749
|
+
classification: ApiDemoMutationBlockingClassification;
|
|
67750
|
+
publicMessage: string;
|
|
67751
|
+
};
|
|
67752
|
+
responseKind: "json";
|
|
67753
|
+
errors: ("auth:forbidden" | "resource:conflict" | "resource:not_found" | "server:internal_error" | "validation:invalid_input")[];
|
|
67754
|
+
};
|
|
66438
67755
|
readonly updateGiftingSettings: {
|
|
66439
67756
|
path: "/sites/{siteId}/gifting/settings";
|
|
66440
67757
|
method: "PATCH";
|
|
@@ -69122,7 +70439,7 @@ declare const API_ENDPOINTS: {
|
|
|
69122
70439
|
readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:site:{siteId}:redirects", "riverbank:site:{siteId}:route-outcomes"];
|
|
69123
70440
|
readonly auth: 'public';
|
|
69124
70441
|
readonly responseKind: 'json';
|
|
69125
|
-
readonly errors: readonly ["
|
|
70442
|
+
readonly errors: readonly ["server:internal_error"];
|
|
69126
70443
|
};
|
|
69127
70444
|
readonly resolveRouteDecision: {
|
|
69128
70445
|
readonly path: '/sites/{siteId}/route-decision';
|
|
@@ -69130,7 +70447,7 @@ declare const API_ENDPOINTS: {
|
|
|
69130
70447
|
readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:site:{siteId}:redirects", "riverbank:site:{siteId}:route-outcomes"];
|
|
69131
70448
|
readonly auth: 'public';
|
|
69132
70449
|
readonly responseKind: 'json';
|
|
69133
|
-
readonly errors: readonly ["
|
|
70450
|
+
readonly errors: readonly ["server:internal_error"];
|
|
69134
70451
|
};
|
|
69135
70452
|
readonly getPageByPath: {
|
|
69136
70453
|
readonly path: '/sites/{siteId}/pages';
|
|
@@ -69639,7 +70956,7 @@ declare const API_ENDPOINTS: {
|
|
|
69639
70956
|
readonly tags: ["backup"];
|
|
69640
70957
|
readonly auth: 'user';
|
|
69641
70958
|
readonly responseKind: 'json';
|
|
69642
|
-
readonly errors: readonly ["
|
|
70959
|
+
readonly errors: readonly ["server:internal_error"];
|
|
69643
70960
|
};
|
|
69644
70961
|
readonly deleteBackupUpload: {
|
|
69645
70962
|
readonly path: '/backup/upload';
|
|
@@ -70057,7 +71374,7 @@ declare const API_ENDPOINTS: {
|
|
|
70057
71374
|
readonly auth: 'user';
|
|
70058
71375
|
readonly responseKind: 'json';
|
|
70059
71376
|
readonly demoMutation: ApiDemoMutationPolicy;
|
|
70060
|
-
readonly errors: readonly ["
|
|
71377
|
+
readonly errors: readonly ["server:internal_error"];
|
|
70061
71378
|
};
|
|
70062
71379
|
readonly getBookingPass: {
|
|
70063
71380
|
readonly path: '/sites/{siteId}/bookings/passes/{passId}';
|
|
@@ -70113,7 +71430,7 @@ declare const API_ENDPOINTS: {
|
|
|
70113
71430
|
readonly auth: 'user';
|
|
70114
71431
|
readonly responseKind: 'json';
|
|
70115
71432
|
readonly demoMutation: ApiDemoMutationPolicy;
|
|
70116
|
-
readonly errors: readonly ["
|
|
71433
|
+
readonly errors: readonly ["server:internal_error"];
|
|
70117
71434
|
};
|
|
70118
71435
|
readonly getBookingMembership: {
|
|
70119
71436
|
readonly path: '/sites/{siteId}/bookings/memberships/{membershipId}';
|
|
@@ -71124,18 +72441,19 @@ declare const API_ENDPOINTS: {
|
|
|
71124
72441
|
readonly auth: 'public';
|
|
71125
72442
|
readonly responseKind: 'json';
|
|
71126
72443
|
};
|
|
71127
|
-
readonly
|
|
71128
|
-
readonly path: '/portal/
|
|
72444
|
+
readonly portalGetDetails: {
|
|
72445
|
+
readonly path: '/portal/details';
|
|
71129
72446
|
readonly method: 'GET';
|
|
71130
72447
|
readonly auth: 'public';
|
|
71131
72448
|
readonly responseKind: 'json';
|
|
72449
|
+
readonly errors: readonly ["server:internal_error"];
|
|
71132
72450
|
};
|
|
71133
|
-
readonly
|
|
71134
|
-
readonly path: '/portal/
|
|
71135
|
-
readonly method: '
|
|
71136
|
-
readonly errors: readonly [];
|
|
72451
|
+
readonly portalUpdateNewsletter: {
|
|
72452
|
+
readonly path: '/portal/details/newsletter';
|
|
72453
|
+
readonly method: 'PATCH';
|
|
71137
72454
|
readonly auth: 'public';
|
|
71138
72455
|
readonly responseKind: 'json';
|
|
72456
|
+
readonly errors: readonly ["validation:invalid_input", "resource:conflict", "server:internal_error"];
|
|
71139
72457
|
};
|
|
71140
72458
|
readonly portalCreateOrderCheckout: {
|
|
71141
72459
|
readonly path: '/portal/orders/{orderId}/checkout';
|
|
@@ -71172,42 +72490,74 @@ declare const API_ENDPOINTS: {
|
|
|
71172
72490
|
readonly auth: 'public';
|
|
71173
72491
|
readonly responseKind: 'json';
|
|
71174
72492
|
};
|
|
71175
|
-
readonly
|
|
71176
|
-
readonly path: '/portal/
|
|
72493
|
+
readonly portalGetEventTicket: {
|
|
72494
|
+
readonly path: '/portal/events/{registrationId}/ticket';
|
|
71177
72495
|
readonly method: 'GET';
|
|
71178
72496
|
readonly auth: 'public';
|
|
71179
72497
|
readonly responseKind: 'json';
|
|
71180
72498
|
};
|
|
71181
|
-
readonly
|
|
71182
|
-
readonly path: '/portal/
|
|
72499
|
+
readonly portalGetRegularSessions: {
|
|
72500
|
+
readonly path: '/portal/appointments/regular-sessions';
|
|
71183
72501
|
readonly method: 'GET';
|
|
71184
72502
|
readonly auth: 'public';
|
|
71185
72503
|
readonly responseKind: 'json';
|
|
72504
|
+
readonly errors: readonly ["server:internal_error"];
|
|
71186
72505
|
};
|
|
71187
|
-
readonly
|
|
71188
|
-
readonly path: '/portal/
|
|
72506
|
+
readonly portalGetBookings: {
|
|
72507
|
+
readonly path: '/portal/bookings';
|
|
71189
72508
|
readonly method: 'GET';
|
|
71190
72509
|
readonly auth: 'public';
|
|
71191
72510
|
readonly responseKind: 'json';
|
|
72511
|
+
readonly errors: readonly ["server:internal_error"];
|
|
71192
72512
|
};
|
|
71193
|
-
readonly
|
|
71194
|
-
readonly path: '/portal/
|
|
72513
|
+
readonly portalGetHome: {
|
|
72514
|
+
readonly path: '/portal/home';
|
|
71195
72515
|
readonly method: 'GET';
|
|
71196
72516
|
readonly auth: 'public';
|
|
71197
72517
|
readonly responseKind: 'json';
|
|
72518
|
+
readonly errors: readonly ["server:internal_error"];
|
|
71198
72519
|
};
|
|
71199
|
-
readonly
|
|
71200
|
-
readonly path: '/portal/
|
|
72520
|
+
readonly portalGetOccurrenceBookings: {
|
|
72521
|
+
readonly path: '/portal/occurrences/{occurrenceId}/bookings';
|
|
71201
72522
|
readonly method: 'GET';
|
|
71202
72523
|
readonly auth: 'public';
|
|
71203
72524
|
readonly responseKind: 'json';
|
|
71204
72525
|
readonly errors: readonly ["server:internal_error"];
|
|
71205
72526
|
};
|
|
71206
|
-
readonly
|
|
71207
|
-
readonly path: '/portal/
|
|
72527
|
+
readonly portalGetHoldings: {
|
|
72528
|
+
readonly path: '/portal/holdings';
|
|
71208
72529
|
readonly method: 'GET';
|
|
71209
72530
|
readonly auth: 'public';
|
|
71210
72531
|
readonly responseKind: 'json';
|
|
72532
|
+
readonly errors: readonly ["server:internal_error"];
|
|
72533
|
+
};
|
|
72534
|
+
readonly portalGetPayments: {
|
|
72535
|
+
readonly path: '/portal/payments';
|
|
72536
|
+
readonly method: 'GET';
|
|
72537
|
+
readonly auth: 'public';
|
|
72538
|
+
readonly responseKind: 'json';
|
|
72539
|
+
readonly errors: readonly ["server:internal_error"];
|
|
72540
|
+
};
|
|
72541
|
+
readonly portalGetReceipt: {
|
|
72542
|
+
readonly path: '/portal/payments/receipts/{receiptId}';
|
|
72543
|
+
readonly method: 'GET';
|
|
72544
|
+
readonly auth: 'public';
|
|
72545
|
+
readonly responseKind: 'json';
|
|
72546
|
+
readonly errors: readonly ["resource:not_found", "server:internal_error"];
|
|
72547
|
+
};
|
|
72548
|
+
readonly portalGetOrder: {
|
|
72549
|
+
readonly path: '/portal/orders/{orderId}';
|
|
72550
|
+
readonly method: 'GET';
|
|
72551
|
+
readonly auth: 'public';
|
|
72552
|
+
readonly responseKind: 'json';
|
|
72553
|
+
readonly errors: readonly ["resource:not_found", "resource:gone", "server:internal_error"];
|
|
72554
|
+
};
|
|
72555
|
+
readonly portalGetBooking: {
|
|
72556
|
+
readonly path: '/portal/bookings/{kind}/{bookingId}';
|
|
72557
|
+
readonly method: 'GET';
|
|
72558
|
+
readonly auth: 'public';
|
|
72559
|
+
readonly responseKind: 'json';
|
|
72560
|
+
readonly errors: readonly ["resource:not_found", "server:internal_error"];
|
|
71211
72561
|
};
|
|
71212
72562
|
readonly portalGetAppointmentBookingQuestions: {
|
|
71213
72563
|
readonly path: '/portal/appointments/{appointmentId}/booking-questions';
|
|
@@ -71278,13 +72628,6 @@ declare const API_ENDPOINTS: {
|
|
|
71278
72628
|
readonly responseKind: 'json';
|
|
71279
72629
|
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "auth:forbidden", "resource:conflict", "server:internal_error"];
|
|
71280
72630
|
};
|
|
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
72631
|
readonly portalGetWholeSeriesBookingQuestions: {
|
|
71289
72632
|
readonly path: '/portal/dated-offerings/whole-series/{registrationId}/booking-questions';
|
|
71290
72633
|
readonly method: 'GET';
|
|
@@ -71664,6 +73007,18 @@ declare const websiteOperationRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
71664
73007
|
}, z$1.core.$strict>>>;
|
|
71665
73008
|
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
73009
|
}, z$1.core.$strict>>;
|
|
73010
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
73011
|
+
operation: z$1.ZodLiteral<"edit_team_member_profile">;
|
|
73012
|
+
siteId: z$1.ZodString;
|
|
73013
|
+
profiles: z$1.ZodArray<z$1.ZodObject<{
|
|
73014
|
+
staffMemberId: z$1.ZodString;
|
|
73015
|
+
optimisticHash: z$1.ZodString;
|
|
73016
|
+
bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
73017
|
+
type: z$1.ZodLiteral<"doc">;
|
|
73018
|
+
content: z$1.ZodArray<z$1.ZodUnknown>;
|
|
73019
|
+
}, z$1.core.$strict>>>;
|
|
73020
|
+
facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
73021
|
+
}, z$1.core.$strict>>;
|
|
71667
73022
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
71668
73023
|
operation: z$1.ZodLiteral<"prepare_page_section_changes">;
|
|
71669
73024
|
siteId: z$1.ZodString;
|
|
@@ -71857,6 +73212,7 @@ declare const websiteReceiptSchema: z$1.ZodObject<{
|
|
|
71857
73212
|
change_opening_hours: "change_opening_hours";
|
|
71858
73213
|
change_public_contact: "change_public_contact";
|
|
71859
73214
|
edit_event_page_content: "edit_event_page_content";
|
|
73215
|
+
edit_team_member_profile: "edit_team_member_profile";
|
|
71860
73216
|
prepare_page_section_changes: "prepare_page_section_changes";
|
|
71861
73217
|
}>;
|
|
71862
73218
|
targetId: z$1.ZodString;
|
|
@@ -71889,6 +73245,21 @@ declare const websiteReceiptSchema: z$1.ZodObject<{
|
|
|
71889
73245
|
live: "live";
|
|
71890
73246
|
}>>;
|
|
71891
73247
|
}, z$1.core.$strict>>>;
|
|
73248
|
+
profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
73249
|
+
staffMemberId: z$1.ZodString;
|
|
73250
|
+
name: z$1.ZodString;
|
|
73251
|
+
status: z$1.ZodEnum<{
|
|
73252
|
+
fact_conflict: "fact_conflict";
|
|
73253
|
+
failed: "failed";
|
|
73254
|
+
invalid: "invalid";
|
|
73255
|
+
lease_held: "lease_held";
|
|
73256
|
+
not_saved: "not_saved";
|
|
73257
|
+
saved: "saved";
|
|
73258
|
+
stale: "stale";
|
|
73259
|
+
unchanged: "unchanged";
|
|
73260
|
+
}>;
|
|
73261
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
73262
|
+
}, z$1.core.$strict>>>;
|
|
71892
73263
|
effect: z$1.ZodEnum<{
|
|
71893
73264
|
"already-set": "already-set";
|
|
71894
73265
|
unchanged: "unchanged";
|
|
@@ -72222,6 +73593,57 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
|
|
|
72222
73593
|
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
73594
|
}, z$1.core.$strict>>;
|
|
72224
73595
|
}, z$1.core.$strict>;
|
|
73596
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
73597
|
+
kind: z$1.ZodLiteral<"preview">;
|
|
73598
|
+
confirmation: z$1.ZodString;
|
|
73599
|
+
mentions: z$1.ZodOptional<z$1.ZodObject<{
|
|
73600
|
+
pages: z$1.ZodArray<z$1.ZodObject<{
|
|
73601
|
+
pageId: z$1.ZodString;
|
|
73602
|
+
title: z$1.ZodNullable<z$1.ZodString>;
|
|
73603
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
73604
|
+
snippet: z$1.ZodObject<{
|
|
73605
|
+
before: z$1.ZodString;
|
|
73606
|
+
match: z$1.ZodString;
|
|
73607
|
+
after: z$1.ZodString;
|
|
73608
|
+
}, z$1.core.$strict>;
|
|
73609
|
+
stage: z$1.ZodEnum<{
|
|
73610
|
+
both: "both";
|
|
73611
|
+
draft: "draft";
|
|
73612
|
+
published: "published";
|
|
73613
|
+
}>;
|
|
73614
|
+
}, z$1.core.$strict>>;
|
|
73615
|
+
scanned: z$1.ZodNumber;
|
|
73616
|
+
matchedPages: z$1.ZodNumber;
|
|
73617
|
+
}, z$1.core.$strict>>;
|
|
73618
|
+
subject: z$1.ZodString;
|
|
73619
|
+
rows: z$1.ZodArray<z$1.ZodObject<{
|
|
73620
|
+
label: z$1.ZodString;
|
|
73621
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
73622
|
+
saveMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
73623
|
+
draft: "draft";
|
|
73624
|
+
liveWhenOnline: "liveWhenOnline";
|
|
73625
|
+
}>>;
|
|
73626
|
+
before: z$1.ZodNullable<z$1.ZodString>;
|
|
73627
|
+
after: z$1.ZodNullable<z$1.ZodString>;
|
|
73628
|
+
}, z$1.core.$strict>>;
|
|
73629
|
+
changes: z$1.ZodArray<z$1.ZodNever>;
|
|
73630
|
+
consequences: z$1.ZodArray<z$1.ZodNever>;
|
|
73631
|
+
choices: z$1.ZodArray<z$1.ZodNever>;
|
|
73632
|
+
operation: z$1.ZodLiteral<"edit_team_member_profile">;
|
|
73633
|
+
request: z$1.ZodObject<{
|
|
73634
|
+
operation: z$1.ZodLiteral<"edit_team_member_profile">;
|
|
73635
|
+
siteId: z$1.ZodString;
|
|
73636
|
+
profiles: z$1.ZodArray<z$1.ZodObject<{
|
|
73637
|
+
staffMemberId: z$1.ZodString;
|
|
73638
|
+
optimisticHash: z$1.ZodString;
|
|
73639
|
+
bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
73640
|
+
type: z$1.ZodLiteral<"doc">;
|
|
73641
|
+
content: z$1.ZodArray<z$1.ZodUnknown>;
|
|
73642
|
+
}, z$1.core.$strict>>>;
|
|
73643
|
+
facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
73644
|
+
}, z$1.core.$strict>>;
|
|
73645
|
+
}, z$1.core.$strict>;
|
|
73646
|
+
savedProfileCount: z$1.ZodNumber;
|
|
72225
73647
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
72226
73648
|
kind: z$1.ZodLiteral<"preview">;
|
|
72227
73649
|
confirmation: z$1.ZodString;
|
|
@@ -72424,6 +73846,7 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
|
|
|
72424
73846
|
change_opening_hours: "change_opening_hours";
|
|
72425
73847
|
change_public_contact: "change_public_contact";
|
|
72426
73848
|
edit_event_page_content: "edit_event_page_content";
|
|
73849
|
+
edit_team_member_profile: "edit_team_member_profile";
|
|
72427
73850
|
prepare_page_section_changes: "prepare_page_section_changes";
|
|
72428
73851
|
}>;
|
|
72429
73852
|
targetId: z$1.ZodString;
|
|
@@ -72456,6 +73879,21 @@ declare const websitePreviewResponseSchema: z$1.ZodUnion<readonly [z$1.ZodDiscri
|
|
|
72456
73879
|
live: "live";
|
|
72457
73880
|
}>>;
|
|
72458
73881
|
}, z$1.core.$strict>>>;
|
|
73882
|
+
profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
73883
|
+
staffMemberId: z$1.ZodString;
|
|
73884
|
+
name: z$1.ZodString;
|
|
73885
|
+
status: z$1.ZodEnum<{
|
|
73886
|
+
fact_conflict: "fact_conflict";
|
|
73887
|
+
failed: "failed";
|
|
73888
|
+
invalid: "invalid";
|
|
73889
|
+
lease_held: "lease_held";
|
|
73890
|
+
not_saved: "not_saved";
|
|
73891
|
+
saved: "saved";
|
|
73892
|
+
stale: "stale";
|
|
73893
|
+
unchanged: "unchanged";
|
|
73894
|
+
}>;
|
|
73895
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
73896
|
+
}, z$1.core.$strict>>>;
|
|
72459
73897
|
effect: z$1.ZodEnum<{
|
|
72460
73898
|
"already-set": "already-set";
|
|
72461
73899
|
unchanged: "unchanged";
|
|
@@ -72923,6 +74361,57 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
|
|
|
72923
74361
|
sections: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.core.$ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
72924
74362
|
}, z$1.core.$strict>>;
|
|
72925
74363
|
}, z$1.core.$strict>;
|
|
74364
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
74365
|
+
kind: z$1.ZodLiteral<"preview">;
|
|
74366
|
+
confirmation: z$1.ZodString;
|
|
74367
|
+
mentions: z$1.ZodOptional<z$1.ZodObject<{
|
|
74368
|
+
pages: z$1.ZodArray<z$1.ZodObject<{
|
|
74369
|
+
pageId: z$1.ZodString;
|
|
74370
|
+
title: z$1.ZodNullable<z$1.ZodString>;
|
|
74371
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
74372
|
+
snippet: z$1.ZodObject<{
|
|
74373
|
+
before: z$1.ZodString;
|
|
74374
|
+
match: z$1.ZodString;
|
|
74375
|
+
after: z$1.ZodString;
|
|
74376
|
+
}, z$1.core.$strict>;
|
|
74377
|
+
stage: z$1.ZodEnum<{
|
|
74378
|
+
both: "both";
|
|
74379
|
+
draft: "draft";
|
|
74380
|
+
published: "published";
|
|
74381
|
+
}>;
|
|
74382
|
+
}, z$1.core.$strict>>;
|
|
74383
|
+
scanned: z$1.ZodNumber;
|
|
74384
|
+
matchedPages: z$1.ZodNumber;
|
|
74385
|
+
}, z$1.core.$strict>>;
|
|
74386
|
+
subject: z$1.ZodString;
|
|
74387
|
+
rows: z$1.ZodArray<z$1.ZodObject<{
|
|
74388
|
+
label: z$1.ZodString;
|
|
74389
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
74390
|
+
saveMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
74391
|
+
draft: "draft";
|
|
74392
|
+
liveWhenOnline: "liveWhenOnline";
|
|
74393
|
+
}>>;
|
|
74394
|
+
before: z$1.ZodNullable<z$1.ZodString>;
|
|
74395
|
+
after: z$1.ZodNullable<z$1.ZodString>;
|
|
74396
|
+
}, z$1.core.$strict>>;
|
|
74397
|
+
changes: z$1.ZodArray<z$1.ZodNever>;
|
|
74398
|
+
consequences: z$1.ZodArray<z$1.ZodNever>;
|
|
74399
|
+
choices: z$1.ZodArray<z$1.ZodNever>;
|
|
74400
|
+
operation: z$1.ZodLiteral<"edit_team_member_profile">;
|
|
74401
|
+
request: z$1.ZodObject<{
|
|
74402
|
+
operation: z$1.ZodLiteral<"edit_team_member_profile">;
|
|
74403
|
+
siteId: z$1.ZodString;
|
|
74404
|
+
profiles: z$1.ZodArray<z$1.ZodObject<{
|
|
74405
|
+
staffMemberId: z$1.ZodString;
|
|
74406
|
+
optimisticHash: z$1.ZodString;
|
|
74407
|
+
bio: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
74408
|
+
type: z$1.ZodLiteral<"doc">;
|
|
74409
|
+
content: z$1.ZodArray<z$1.ZodUnknown>;
|
|
74410
|
+
}, z$1.core.$strict>>>;
|
|
74411
|
+
facts: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
74412
|
+
}, z$1.core.$strict>>;
|
|
74413
|
+
}, z$1.core.$strict>;
|
|
74414
|
+
savedProfileCount: z$1.ZodNumber;
|
|
72926
74415
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
72927
74416
|
kind: z$1.ZodLiteral<"preview">;
|
|
72928
74417
|
confirmation: z$1.ZodString;
|
|
@@ -73125,6 +74614,7 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
|
|
|
73125
74614
|
change_opening_hours: "change_opening_hours";
|
|
73126
74615
|
change_public_contact: "change_public_contact";
|
|
73127
74616
|
edit_event_page_content: "edit_event_page_content";
|
|
74617
|
+
edit_team_member_profile: "edit_team_member_profile";
|
|
73128
74618
|
prepare_page_section_changes: "prepare_page_section_changes";
|
|
73129
74619
|
}>;
|
|
73130
74620
|
targetId: z$1.ZodString;
|
|
@@ -73157,6 +74647,21 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
|
|
|
73157
74647
|
live: "live";
|
|
73158
74648
|
}>>;
|
|
73159
74649
|
}, z$1.core.$strict>>>;
|
|
74650
|
+
profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
74651
|
+
staffMemberId: z$1.ZodString;
|
|
74652
|
+
name: z$1.ZodString;
|
|
74653
|
+
status: z$1.ZodEnum<{
|
|
74654
|
+
fact_conflict: "fact_conflict";
|
|
74655
|
+
failed: "failed";
|
|
74656
|
+
invalid: "invalid";
|
|
74657
|
+
lease_held: "lease_held";
|
|
74658
|
+
not_saved: "not_saved";
|
|
74659
|
+
saved: "saved";
|
|
74660
|
+
stale: "stale";
|
|
74661
|
+
unchanged: "unchanged";
|
|
74662
|
+
}>;
|
|
74663
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
74664
|
+
}, z$1.core.$strict>>>;
|
|
73160
74665
|
effect: z$1.ZodEnum<{
|
|
73161
74666
|
"already-set": "already-set";
|
|
73162
74667
|
unchanged: "unchanged";
|
|
@@ -73180,6 +74685,7 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
|
|
|
73180
74685
|
change_opening_hours: "change_opening_hours";
|
|
73181
74686
|
change_public_contact: "change_public_contact";
|
|
73182
74687
|
edit_event_page_content: "edit_event_page_content";
|
|
74688
|
+
edit_team_member_profile: "edit_team_member_profile";
|
|
73183
74689
|
prepare_page_section_changes: "prepare_page_section_changes";
|
|
73184
74690
|
}>;
|
|
73185
74691
|
targetId: z$1.ZodString;
|
|
@@ -73212,6 +74718,21 @@ declare const websiteConfirmResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodOb
|
|
|
73212
74718
|
live: "live";
|
|
73213
74719
|
}>>;
|
|
73214
74720
|
}, z$1.core.$strict>>>;
|
|
74721
|
+
profileDrafts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
74722
|
+
staffMemberId: z$1.ZodString;
|
|
74723
|
+
name: z$1.ZodString;
|
|
74724
|
+
status: z$1.ZodEnum<{
|
|
74725
|
+
fact_conflict: "fact_conflict";
|
|
74726
|
+
failed: "failed";
|
|
74727
|
+
invalid: "invalid";
|
|
74728
|
+
lease_held: "lease_held";
|
|
74729
|
+
not_saved: "not_saved";
|
|
74730
|
+
saved: "saved";
|
|
74731
|
+
stale: "stale";
|
|
74732
|
+
unchanged: "unchanged";
|
|
74733
|
+
}>;
|
|
74734
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
74735
|
+
}, z$1.core.$strict>>>;
|
|
73215
74736
|
effect: z$1.ZodEnum<{
|
|
73216
74737
|
"already-set": "already-set";
|
|
73217
74738
|
unchanged: "unchanged";
|
|
@@ -73434,12 +74955,25 @@ type AdminBookingCancellationPreview = {
|
|
|
73434
74955
|
};
|
|
73435
74956
|
//#endregion
|
|
73436
74957
|
//#region .cache/declarations/api/src/event-listing-destination.d.ts
|
|
74958
|
+
/**
|
|
74959
|
+
* Whether an event booked on another website has its own page on the site.
|
|
74960
|
+
* `own`: the page is served and its booking button goes out. `none`: nothing
|
|
74961
|
+
* is served and every link goes out. Events stored before this choice existed
|
|
74962
|
+
* read as `none`, which is how they have always behaved.
|
|
74963
|
+
*/
|
|
74964
|
+
type ExternalEventPage = "own" | "none";
|
|
74965
|
+
/**
|
|
74966
|
+
* What a writer sends. An omitted `page` means "not given": creation applies
|
|
74967
|
+
* the default (`own`), and an update keeps what is stored
|
|
74968
|
+
* (`resolveEventListingDestinationUpdate`).
|
|
74969
|
+
*/
|
|
73437
74970
|
type EventListingDestinationInput = Readonly<{
|
|
73438
74971
|
kind: "native";
|
|
73439
74972
|
}> | Readonly<{
|
|
73440
74973
|
kind: "external";
|
|
73441
74974
|
url?: string | null;
|
|
73442
74975
|
label?: string | null;
|
|
74976
|
+
page?: ExternalEventPage;
|
|
73443
74977
|
}>;
|
|
73444
74978
|
//#endregion
|
|
73445
74979
|
//#region .cache/declarations/api/src/event-destination-policy.d.ts
|
|
@@ -76501,6 +78035,11 @@ type BookingDetailOwed = {
|
|
|
76501
78035
|
outstandingCents: number; /** Already paid towards it, by any means. */
|
|
76502
78036
|
collectedCents: number;
|
|
76503
78037
|
};
|
|
78038
|
+
/** The rest of a deposit or instalment booking before it's owed, and when it's due. */
|
|
78039
|
+
type BookingDetailScheduledBalance = {
|
|
78040
|
+
outstandingCents: number;
|
|
78041
|
+
dueAt: string | null;
|
|
78042
|
+
};
|
|
76504
78043
|
/**
|
|
76505
78044
|
* How the booking was paid for. `hidden` when the viewer isn't allowed to see
|
|
76506
78045
|
* money (the person page's rule: editors and above).
|
|
@@ -76529,7 +78068,8 @@ type BookingDetailPayment = {
|
|
|
76529
78068
|
currency: string;
|
|
76530
78069
|
paidAt: string | null; /** For the "View payment" link. */
|
|
76531
78070
|
stripeCheckoutSessionId: string | null; /** Null once nothing is left to pay. */
|
|
76532
|
-
owed: BookingDetailOwed | null; /**
|
|
78071
|
+
owed: BookingDetailOwed | null; /** Set only while nothing is owed yet: a deposit's balance or the rest of an instalment plan. */
|
|
78072
|
+
scheduledBalance: BookingDetailScheduledBalance | null; /** Kept above what this booking now costs, after a move to a cheaper room. */
|
|
76533
78073
|
overCents: number; /** Oldest first. Empty when every payment went through Macadamia. */
|
|
76534
78074
|
refundFunding?: readonly RefundFundingLine[];
|
|
76535
78075
|
recordedPayments: BookingDetailRecordedPayment[];
|
|
@@ -76947,39 +78487,6 @@ type ArrangementTimeOffResponse = Readonly<{
|
|
|
76947
78487
|
}> | null;
|
|
76948
78488
|
}>[];
|
|
76949
78489
|
}>;
|
|
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
78490
|
type PreviewClientArrangementRequest = z$1.output<typeof previewClientArrangementSchema>;
|
|
76984
78491
|
type ArrangementCancellationActorApi = Readonly<{
|
|
76985
78492
|
kind: 'staff';
|
|
@@ -77828,17 +79335,24 @@ type MoneyPaymentAccountNavigation = {
|
|
|
77828
79335
|
* hidden, Refund still shows.
|
|
77829
79336
|
*/
|
|
77830
79337
|
type MoneyPaymentBookingStatus = 'active' | 'cancelled';
|
|
77831
|
-
|
|
79338
|
+
/** This payment's money on one thing it covered: what went to it, and how much of that can still go back. */
|
|
79339
|
+
type MoneyPaymentItemMoney = {
|
|
79340
|
+
amountPaidCents: number;
|
|
79341
|
+
refundableCents: number;
|
|
79342
|
+
};
|
|
79343
|
+
type MoneyPaymentAllocationItem = MoneyPaymentItemMoney & ({
|
|
77832
79344
|
kind: 'appointment';
|
|
77833
79345
|
sourceLabel: string;
|
|
77834
79346
|
appointmentId: string;
|
|
79347
|
+
startsAt?: string | null;
|
|
77835
79348
|
} | {
|
|
77836
79349
|
kind: 'event';
|
|
77837
79350
|
eventId: string | null;
|
|
77838
79351
|
sourceLabel: string;
|
|
77839
79352
|
eventAttendeeId: string;
|
|
77840
79353
|
eventSeriesId?: string | null;
|
|
77841
|
-
occurrenceId?: string | null;
|
|
79354
|
+
occurrenceId?: string | null; /** When the booked date starts; it tells two dates of the same class apart. */
|
|
79355
|
+
startsAt?: string | null;
|
|
77842
79356
|
bookingStatus: MoneyPaymentBookingStatus | null;
|
|
77843
79357
|
} | {
|
|
77844
79358
|
kind: 'event_series_registration';
|
|
@@ -77858,6 +79372,25 @@ type MoneyPaymentAllocationItem = {
|
|
|
77858
79372
|
} | {
|
|
77859
79373
|
kind: 'product';
|
|
77860
79374
|
sourceLabel: string;
|
|
79375
|
+
});
|
|
79376
|
+
/** Whether one thing a payment covered can be refunded from Payments. */
|
|
79377
|
+
type MoneyPaymentItemRefundAccess = {
|
|
79378
|
+
kind: 'entity';
|
|
79379
|
+
target: Exclude<MoneyPaymentAllocationItem, {
|
|
79380
|
+
kind: 'product';
|
|
79381
|
+
}>;
|
|
79382
|
+
} | {
|
|
79383
|
+
kind: 'unavailable';
|
|
79384
|
+
reason: 'product';
|
|
79385
|
+
item: Extract<MoneyPaymentAllocationItem, {
|
|
79386
|
+
kind: 'product';
|
|
79387
|
+
}>;
|
|
79388
|
+
} | {
|
|
79389
|
+
kind: 'unavailable';
|
|
79390
|
+
reason: 'appointment_access_denied';
|
|
79391
|
+
item: Extract<MoneyPaymentAllocationItem, {
|
|
79392
|
+
kind: 'appointment';
|
|
79393
|
+
}>;
|
|
77861
79394
|
};
|
|
77862
79395
|
type MoneyPaymentListItem = {
|
|
77863
79396
|
id: string;
|
|
@@ -77875,25 +79408,23 @@ type MoneyPaymentListItem = {
|
|
|
77875
79408
|
kind: 'unresolved';
|
|
77876
79409
|
itemKinds: readonly MoneyItemKind[];
|
|
77877
79410
|
sourceLabels: readonly string[];
|
|
77878
|
-
};
|
|
79411
|
+
}; /** Refunds are opened one item at a time; a payment for one thing has one item. */
|
|
77879
79412
|
refundAccess: {
|
|
77880
79413
|
kind: 'unavailable';
|
|
77881
79414
|
reason: 'payment_disputed';
|
|
77882
79415
|
message: string;
|
|
77883
79416
|
} | {
|
|
77884
|
-
kind: '
|
|
77885
|
-
|
|
77886
|
-
|
|
77887
|
-
|
|
79417
|
+
kind: 'unavailable';
|
|
79418
|
+
reason: 'unresolved_allocation';
|
|
79419
|
+
} | {
|
|
79420
|
+
kind: 'items';
|
|
79421
|
+
items: readonly MoneyPaymentItemRefundAccess[];
|
|
77888
79422
|
onlineAction: {
|
|
77889
79423
|
kind: 'available';
|
|
77890
79424
|
} | {
|
|
77891
79425
|
kind: 'unavailable';
|
|
77892
79426
|
reason: 'manual_receipt' | 'provider_target_mismatch' | 'fully_refunded' | 'payment_reconciliation_pending';
|
|
77893
79427
|
};
|
|
77894
|
-
} | {
|
|
77895
|
-
kind: 'unavailable';
|
|
77896
|
-
reason: 'multiple_allocations' | 'unresolved_allocation' | 'product' | 'appointment_access_denied';
|
|
77897
79428
|
};
|
|
77898
79429
|
status: 'paid' | 'partially_refunded' | 'refunded' | 'payment_reconciliation_pending';
|
|
77899
79430
|
initialPaymentKind?: 'deposit' | 'full';
|
|
@@ -78973,12 +80504,6 @@ type AdminBookingAppointmentWithDetails = Omit<BookingAppointmentWithDetails, 'c
|
|
|
78973
80504
|
type EventSeriesRegistrationCancellationPreviewResponse = {
|
|
78974
80505
|
cancellation: AdminBookingCancellationPreview;
|
|
78975
80506
|
};
|
|
78976
|
-
type AppointmentBookingQuestionsTask = {
|
|
78977
|
-
status: 'complete' | 'incomplete' | 'overdue';
|
|
78978
|
-
dueAt: string;
|
|
78979
|
-
completedAt: string | null;
|
|
78980
|
-
prefillAvailable: boolean;
|
|
78981
|
-
};
|
|
78982
80507
|
type BookingSessionListAppointmentsResponse = {
|
|
78983
80508
|
appointments: BookingAppointmentWithDetails[];
|
|
78984
80509
|
pagination: {
|
|
@@ -79687,7 +81212,23 @@ type BookingOwedAmount = {
|
|
|
79687
81212
|
outstandingCents: number;
|
|
79688
81213
|
currency: string;
|
|
79689
81214
|
};
|
|
81215
|
+
/**
|
|
81216
|
+
* The booking a roster row stands for, decided by the server. A course
|
|
81217
|
+
* session's row stands for its course booking, so cancelling or refunding from
|
|
81218
|
+
* that row acts on the whole course place.
|
|
81219
|
+
*/
|
|
81220
|
+
type BookingEventSeriesAttendeeBooking = {
|
|
81221
|
+
kind: 'event';
|
|
81222
|
+
attendeeId: string;
|
|
81223
|
+
} /** `status` is the course booking's own; the row's `status` stays the attendance at this date. */ | {
|
|
81224
|
+
kind: 'course';
|
|
81225
|
+
registrationId: string;
|
|
81226
|
+
runId: string;
|
|
81227
|
+
runTitle: string;
|
|
81228
|
+
status: EventSeriesRegistrationStatus;
|
|
81229
|
+
};
|
|
79690
81230
|
type BookingEventSeriesAttendee = {
|
|
81231
|
+
booking: BookingEventSeriesAttendeeBooking;
|
|
79691
81232
|
checkedInCount?: number; /** When an owner marked this booking, or this course session, as a no-show. Only a record. */
|
|
79692
81233
|
noShowAt?: string | null; /** When the date ends, which is when it can first be marked. */
|
|
79693
81234
|
eventEndsAt?: string;
|
|
@@ -80373,7 +81914,8 @@ type DiscountCodeRecord = {
|
|
|
80373
81914
|
discountType: DiscountCodeType;
|
|
80374
81915
|
discountPercent: number | null;
|
|
80375
81916
|
discountAmountCents: number | null;
|
|
80376
|
-
perEmailLimit: DiscountPerEmailLimit;
|
|
81917
|
+
perEmailLimit: DiscountPerEmailLimit; /** Most uses the code can have across everyone; null means no total limit. */
|
|
81918
|
+
totalUseLimit: number | null;
|
|
80377
81919
|
membershipDiscountDuration: DiscountMembershipDuration;
|
|
80378
81920
|
appliesToEvents: boolean;
|
|
80379
81921
|
combinesWithCombinationPrices: boolean;
|
|
@@ -80404,24 +81946,23 @@ type DiscountCodeScopeIds = {
|
|
|
80404
81946
|
type DiscountCodeDetails = DiscountCodeRecord & {
|
|
80405
81947
|
scopes: DiscountCodeScopeIds;
|
|
80406
81948
|
};
|
|
80407
|
-
|
|
80408
|
-
|
|
80409
|
-
discountPercent: number;
|
|
80410
|
-
discountAmountCents?: never;
|
|
81949
|
+
/** What a discount code write carries whichever kind of discount it gives. */
|
|
81950
|
+
type DiscountCodeRequestFields = Omit<DiscountCodeRecord, 'id' | 'siteId' | 'codeNormalized' | 'autoApply' | 'discountPercent' | 'discountAmountCents' | 'combinesWithCombinationPrices' | 'eventMinTicketsEnabled' | 'eventMinTickets' | 'totalUseLimit' | 'stripeCouponId' | 'createdAt' | 'updatedAt'> & {
|
|
80411
81951
|
autoApply?: boolean;
|
|
80412
81952
|
combinesWithCombinationPrices?: boolean;
|
|
80413
81953
|
eventMinTicketsEnabled?: boolean;
|
|
80414
81954
|
eventMinTickets?: number | null;
|
|
81955
|
+
totalUseLimit?: number | null;
|
|
80415
81956
|
scopeIds?: Partial<DiscountCodeScopeIds>;
|
|
80416
|
-
}
|
|
81957
|
+
};
|
|
81958
|
+
type CreateDiscountCodeRequest = (DiscountCodeRequestFields & {
|
|
81959
|
+
discountType: 'percent';
|
|
81960
|
+
discountPercent: number;
|
|
81961
|
+
discountAmountCents?: never;
|
|
81962
|
+
}) | (DiscountCodeRequestFields & {
|
|
80417
81963
|
discountType: 'fixed';
|
|
80418
81964
|
discountAmountCents: number;
|
|
80419
81965
|
discountPercent?: never;
|
|
80420
|
-
autoApply?: boolean;
|
|
80421
|
-
combinesWithCombinationPrices?: boolean;
|
|
80422
|
-
eventMinTicketsEnabled?: boolean;
|
|
80423
|
-
eventMinTickets?: number | null;
|
|
80424
|
-
scopeIds?: Partial<DiscountCodeScopeIds>;
|
|
80425
81966
|
});
|
|
80426
81967
|
type UpdateDiscountCodeRequest = CreateDiscountCodeRequest;
|
|
80427
81968
|
type ListDiscountCodesResponse = {
|
|
@@ -82922,10 +84463,6 @@ declare const SITE_BILLING_ARRANGEMENT_CHANGE_ORIGINS: readonly ['native_arrange
|
|
|
82922
84463
|
type SiteBillingArrangementChangeOrigin = (typeof SITE_BILLING_ARRANGEMENT_CHANGE_ORIGINS)[number];
|
|
82923
84464
|
//#endregion
|
|
82924
84465
|
//#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
84466
|
/**
|
|
82930
84467
|
* Site Operations Contracts
|
|
82931
84468
|
*
|
|
@@ -82944,53 +84481,6 @@ type AuthStatusResponse = {
|
|
|
82944
84481
|
keyId: string;
|
|
82945
84482
|
keyPrefix: string;
|
|
82946
84483
|
};
|
|
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
84484
|
/** "How did you find Macadamia?", asked once in the dashboard: an answer, or "No thanks". */
|
|
82995
84485
|
type AccountAnswerHeardFromBody = {
|
|
82996
84486
|
kind: "answered";
|
|
@@ -88139,6 +89629,10 @@ type PreviewConsequence = Readonly<{
|
|
|
88139
89629
|
}> | Readonly<{
|
|
88140
89630
|
kind: 'course_attendance_added';
|
|
88141
89631
|
attendanceCount: number;
|
|
89632
|
+
}> | Readonly<{
|
|
89633
|
+
kind: 'owed_balance_cleared';
|
|
89634
|
+
amountCents: number;
|
|
89635
|
+
currency: string;
|
|
88142
89636
|
}> | Readonly<{
|
|
88143
89637
|
kind: 'future_payments_stopped';
|
|
88144
89638
|
}> | Readonly<{
|
|
@@ -90813,11 +92307,6 @@ type SiteRuntimeBusinessDetails = {
|
|
|
90813
92307
|
transform?: PersistableMedia['transform'] | null;
|
|
90814
92308
|
} | null;
|
|
90815
92309
|
};
|
|
90816
|
-
type SiteRuntimeBookingAttribution = Readonly<{
|
|
90817
|
-
kind: 'macadamia';
|
|
90818
|
-
}> | Readonly<{
|
|
90819
|
-
kind: 'none';
|
|
90820
|
-
}>;
|
|
90821
92310
|
type SiteFooterBlocksEditorBlock = {
|
|
90822
92311
|
id: string;
|
|
90823
92312
|
kind: string;
|
|
@@ -90903,6 +92392,23 @@ type MaintenanceSettingsResponse = {
|
|
|
90903
92392
|
settings: MaintenanceSettingsPayload;
|
|
90904
92393
|
};
|
|
90905
92394
|
//#endregion
|
|
92395
|
+
//#region .cache/declarations/api/src/navigation/siteLegalLinks.d.ts
|
|
92396
|
+
/**
|
|
92397
|
+
* The legal pages the platform publishes for a site: our generated privacy
|
|
92398
|
+
* policy and the site's booking terms. Each href is null until that page is
|
|
92399
|
+
* published. SDK sites have neither, so their callers pass `noPlatformLegalPages`.
|
|
92400
|
+
*/
|
|
92401
|
+
type PlatformLegalPages = Readonly<{
|
|
92402
|
+
privacyPolicyHref: string | null;
|
|
92403
|
+
bookingTermsHref: string | null;
|
|
92404
|
+
/**
|
|
92405
|
+
* Hostnames the site is served on (its live domain, its platform address),
|
|
92406
|
+
* so an owner's absolute link to one of its own pages matches the
|
|
92407
|
+
* generated path.
|
|
92408
|
+
*/
|
|
92409
|
+
siteHosts: readonly string[];
|
|
92410
|
+
}>;
|
|
92411
|
+
//#endregion
|
|
90906
92412
|
//#region .cache/declarations/api/src/footerCompositionContracts.d.ts
|
|
90907
92413
|
type FooterCompositionSnapshot = Readonly<{
|
|
90908
92414
|
kind: 'ready';
|
|
@@ -90936,7 +92442,8 @@ type FooterCreditSetting = Readonly<{
|
|
|
90936
92442
|
*/
|
|
90937
92443
|
type FooterCompositionRead = FooterCompositionSnapshot & Readonly<{
|
|
90938
92444
|
credit: FooterCreditSetting;
|
|
90939
|
-
businessAddress: string | null;
|
|
92445
|
+
businessAddress: string | null; /** Published platform legal pages, which the footer's legal links include. */
|
|
92446
|
+
platformLegalPages: PlatformLegalPages;
|
|
90940
92447
|
}>;
|
|
90941
92448
|
type FooterCreditUpdateRequest = Readonly<{
|
|
90942
92449
|
hidden: boolean;
|
|
@@ -92638,9 +94145,9 @@ type PublicEventAPIEndpoints = {
|
|
|
92638
94145
|
getBeforeBookingQuestions: APIEndpoint<BeforeBookingQuestionsRequest, {
|
|
92639
94146
|
siteId: string;
|
|
92640
94147
|
}, BeforeBookingQuestionsPresentation>;
|
|
92641
|
-
getPublicEventRegistrationOptions: APIEndpoint<PublicEventRegistrationOptionsRequest | PublicEventSelectionFundingRequest, {
|
|
94148
|
+
getPublicEventRegistrationOptions: APIEndpoint<PublicEventRegistrationOptionsRequest | PublicEventSelectionFundingRequest | PublicEventRunsSelectionPaymentRequest, {
|
|
92642
94149
|
siteId: string;
|
|
92643
|
-
}, PublicEventRegistrationOptionsResponse | PublicEventSelectionFundingResponse>;
|
|
94150
|
+
}, PublicEventRegistrationOptionsResponse | PublicEventSelectionFundingResponse | PublicEventRunsSelectionPaymentResponse>;
|
|
92644
94151
|
checkPublicEventRegistrationNextStep: APIEndpoint<EventRegistrationNextStepRequest, {
|
|
92645
94152
|
siteId: string;
|
|
92646
94153
|
}, EventRegistrationNextStepResponse>;
|
|
@@ -92681,6 +94188,9 @@ type PublicEventRegistrationOptionsResponse = EventRegistrationOptionsResponse;
|
|
|
92681
94188
|
/** The same endpoint answers a dates subject with how those dates can be paid. */
|
|
92682
94189
|
type PublicEventSelectionFundingRequest = EventSelectionFundingRequest;
|
|
92683
94190
|
type PublicEventSelectionFundingResponse = EventSelectionFundingResponse;
|
|
94191
|
+
/** And a runs subject with how those runs of one course can be paid. */
|
|
94192
|
+
type PublicEventRunsSelectionPaymentRequest = EventRunsSelectionPaymentRequest;
|
|
94193
|
+
type PublicEventRunsSelectionPaymentResponse = EventRunsSelectionPaymentResponse;
|
|
92684
94194
|
//#endregion
|
|
92685
94195
|
//#region .cache/declarations/api/src/publicExperience/newsletterEndpoints.d.ts
|
|
92686
94196
|
type PublicNewsletterAPIEndpoints = {
|
|
@@ -93486,6 +94996,16 @@ type CorrectGiftEmailAndResendResponse = {
|
|
|
93486
94996
|
giftId: string;
|
|
93487
94997
|
recipientEmail: string;
|
|
93488
94998
|
};
|
|
94999
|
+
type ChangeGiftExpiryRequest = {
|
|
95000
|
+
/** `YYYY-MM-DD` in the site timezone. The gift lasts until the end of that day. */expiresOnDate: string; /** The stored expiry the owner was looking at, so a stale page can't overwrite a newer change. */
|
|
95001
|
+
expectedExpiresAt: string; /** Email the gift to the recipient again, showing the new date. */
|
|
95002
|
+
emailRecipient: boolean;
|
|
95003
|
+
};
|
|
95004
|
+
type ChangeGiftExpiryResponse = {
|
|
95005
|
+
giftId: string;
|
|
95006
|
+
expiresAt: string; /** False when an email was asked for but the gift couldn't be resent. */
|
|
95007
|
+
emailed: boolean;
|
|
95008
|
+
};
|
|
93489
95009
|
type GiftingSettings = GiftingSettings$1;
|
|
93490
95010
|
type UpdateGiftingSettingsRequest = {
|
|
93491
95011
|
expiryDays: number;
|
|
@@ -93698,7 +95218,13 @@ type PractitionerReport = Readonly<{
|
|
|
93698
95218
|
cents: number;
|
|
93699
95219
|
sessions: number;
|
|
93700
95220
|
}>;
|
|
93701
|
-
|
|
95221
|
+
/**
|
|
95222
|
+
* Sessions paid for and not used yet: unused sessions on passes that haven't
|
|
95223
|
+
* expired, plus future classes, appointments and course sessions paid for
|
|
95224
|
+
* directly. It's the shown rows' stillOwedCents added up, with a session
|
|
95225
|
+
* shared between teachers counted once.
|
|
95226
|
+
*/
|
|
95227
|
+
paidInAdvance: Readonly<{
|
|
93702
95228
|
cents: number;
|
|
93703
95229
|
sessions: number;
|
|
93704
95230
|
}>;
|
|
@@ -94256,6 +95782,8 @@ type PublicProductCategorySelector = Readonly<{
|
|
|
94256
95782
|
interface BlockApiClient {
|
|
94257
95783
|
getSiteTerms(): Promise<BlockSiteTerms>;
|
|
94258
95784
|
readonly config: BlockApiConfig;
|
|
95785
|
+
/** The customer signed in to the portal, as a public page may read them; null when this client carries no portal session. */
|
|
95786
|
+
readonly portalVisitor: PortalVisitorApi | null;
|
|
94259
95787
|
submitForm(data: FormSubmitRequest): Promise<FormSubmitResponse>;
|
|
94260
95788
|
getForm(formId: string, siteId?: string): Promise<FormConfigResponse>;
|
|
94261
95789
|
submitBooking(data: BookingSubmitRequest): Promise<BookingSubmitResponse>;
|
|
@@ -94289,6 +95817,8 @@ interface BlockApiClient {
|
|
|
94289
95817
|
getRegistrationOptions(data: Omit<RegistrationOptionsRequest, 'siteId'>): Promise<RegistrationOptionsResponse>;
|
|
94290
95818
|
/** How several dates can be paid: money, or each pass or membership with the dates it covers. */
|
|
94291
95819
|
getSelectionFunding(data: EventSelectionFundingRequest): Promise<EventSelectionFundingResponse>;
|
|
95820
|
+
/** How one or more runs of one course can be paid, as checkout will accept them. */
|
|
95821
|
+
getRunsSelectionPayment(data: EventRunsSelectionPaymentRequest): Promise<EventRunsSelectionPaymentResponse>;
|
|
94292
95822
|
checkRegistrationNextStep(data: EventRegistrationNextStepSubmission): Promise<EventRegistrationNextStepResponse>;
|
|
94293
95823
|
getEventRegistrationStatus(params: WithoutSiteId<EventRegistrationStatusRequest>): Promise<EventRegistrationStatusResponse>;
|
|
94294
95824
|
resolveEventCheckoutReturn(data: EventCheckoutReturnRequest): Promise<EventCheckoutReturnResponse>;
|
|
@@ -94307,64 +95837,6 @@ interface BlockApiClient {
|
|
|
94307
95837
|
token: string;
|
|
94308
95838
|
}): Promise<PreviewGiftCardClaimResponse>;
|
|
94309
95839
|
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
95840
|
sendMagicLink(data: Omit<MagicLinkRequest, 'siteId'>): Promise<MagicLinkResponse>;
|
|
94369
95841
|
logout(): Promise<void>;
|
|
94370
95842
|
}
|
|
@@ -94471,6 +95943,74 @@ type BookingOfferingPresetSummary = Readonly<{
|
|
|
94471
95943
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts
|
|
94472
95944
|
type TicketSelectionPurpose = 'book' | 'waitlist';
|
|
94473
95945
|
//#endregion
|
|
95946
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts
|
|
95947
|
+
type RegistrationAdmission = Readonly<{
|
|
95948
|
+
kind: 'checking';
|
|
95949
|
+
}> | Readonly<{
|
|
95950
|
+
kind: 'open' | 'resume';
|
|
95951
|
+
}>
|
|
95952
|
+
/** `detailsCheck`: whether completing details asks the server, by email, if this
|
|
95953
|
+
* guest has an unfinished booking to pay for instead of joining the waitlist. */
|
|
95954
|
+
| Readonly<{
|
|
95955
|
+
kind: 'waitlist';
|
|
95956
|
+
detailsCheck: 'byEmail' | 'none';
|
|
95957
|
+
}>
|
|
95958
|
+
/** Always blocked at this size. `placesLeft` > 0 means fewer places than asked
|
|
95959
|
+
* for are left: choosing that many is the way forward (issue 1581). */
|
|
95960
|
+
| Readonly<{
|
|
95961
|
+
kind: 'fullyBooked';
|
|
95962
|
+
placesLeft: number;
|
|
95963
|
+
}> /** `bookingsClosed`: the server says the event has stopped taking bookings, which no retry changes. */ | Readonly<{
|
|
95964
|
+
kind: 'closed';
|
|
95965
|
+
reason: 'unavailable' | 'bookingsClosed' | 'optionsUnavailable' | 'alreadyWaitlisted';
|
|
95966
|
+
message: string; /** How to reach the business, when the site can't take this booking online. */
|
|
95967
|
+
contact?: SiteOrganiserContact;
|
|
95968
|
+
}>;
|
|
95969
|
+
type RegistrationTicketContinuation = Readonly<{
|
|
95970
|
+
kind: 'advance';
|
|
95971
|
+
label: string;
|
|
95972
|
+
pending: false;
|
|
95973
|
+
}> | Readonly<{
|
|
95974
|
+
kind: 'blocked';
|
|
95975
|
+
message: string;
|
|
95976
|
+
label: string;
|
|
95977
|
+
pending: boolean;
|
|
95978
|
+
}>;
|
|
95979
|
+
//#endregion
|
|
95980
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts
|
|
95981
|
+
/** The steps that can be counted in the visitor's route through the wizard. */
|
|
95982
|
+
type RegistrationRouteStep = Extract<RegistrationStep, 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment' | 'payment'>;
|
|
95983
|
+
/** The ordered steps the visitor is on course to take, as far as we know now. */
|
|
95984
|
+
type RegistrationRoute = readonly RegistrationRouteStep[];
|
|
95985
|
+
type RegistrationProgress = Readonly<{
|
|
95986
|
+
steps: RegistrationRoute; /** 1-based position of the current step in `steps`. */
|
|
95987
|
+
current: number;
|
|
95988
|
+
}>;
|
|
95989
|
+
type RegistrationScreen = 'processing' | 'confirmed' | 'waitlisted' | 'error' | 'verifying' | 'verifyingTimeout' | 'paymentStatus' | 'paymentFailed';
|
|
95990
|
+
/**
|
|
95991
|
+
* What the booking surface renders: the step layout (with progress only when
|
|
95992
|
+
* the step is part of the route), or one whole-panel screen. Never both.
|
|
95993
|
+
*/
|
|
95994
|
+
type RegistrationPresentation = Readonly<{
|
|
95995
|
+
layout: 'steps';
|
|
95996
|
+
progress: RegistrationProgress | null;
|
|
95997
|
+
}> | Readonly<{
|
|
95998
|
+
layout: 'whole';
|
|
95999
|
+
screen: Exclude<RegistrationScreen, 'confirmed' | 'waitlisted'>;
|
|
96000
|
+
}> | Readonly<{
|
|
96001
|
+
layout: 'whole';
|
|
96002
|
+
screen: 'confirmed';
|
|
96003
|
+
result: Extract<RegistrationResult, {
|
|
96004
|
+
status: 'confirmed';
|
|
96005
|
+
}>;
|
|
96006
|
+
}> | Readonly<{
|
|
96007
|
+
layout: 'whole';
|
|
96008
|
+
screen: 'waitlisted';
|
|
96009
|
+
result: Extract<RegistrationResult, {
|
|
96010
|
+
status: 'waitlist';
|
|
96011
|
+
}>;
|
|
96012
|
+
}>;
|
|
96013
|
+
//#endregion
|
|
94474
96014
|
//#region .cache/declarations/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts
|
|
94475
96015
|
type WaitlistClaimCredential = Readonly<{
|
|
94476
96016
|
kind: 'emailedToken';
|
|
@@ -94653,7 +96193,7 @@ type RegistrationSelection = readonly RegistrationEvent[];
|
|
|
94653
96193
|
/**
|
|
94654
96194
|
* Whether the visitor may tick several items. Several dates belong to one
|
|
94655
96195
|
* series and several runs to one course, and every one of them must allow it.
|
|
94656
|
-
*
|
|
96196
|
+
* Whether a page that names one date offers the others is `decideRegistrationEntry`'s call.
|
|
94657
96197
|
*/
|
|
94658
96198
|
type RegistrationSelectionMode = Readonly<{
|
|
94659
96199
|
kind: 'single';
|
|
@@ -94698,88 +96238,6 @@ type SelectionPaymentSummary = Readonly<{
|
|
|
94698
96238
|
reductions: readonly PaymentSummaryReduction[];
|
|
94699
96239
|
totalCents: number;
|
|
94700
96240
|
}> | 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
96241
|
//#endregion
|
|
94784
96242
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts
|
|
94785
96243
|
declare const unsupportedEventRegistrationPageSurfaceSubjectReasons: readonly ['unsupportedSubject', 'invalidAppointmentServiceId', 'invalidEventSeriesId', 'invalidEventSeriesBookingScope', 'invalidEventOfferingId', 'invalidEventOfferingBookingScope', 'invalidEventOfferingCatalogue'];
|
|
@@ -95122,13 +96580,16 @@ type EligibilityLookupState = {
|
|
|
95122
96580
|
eligibility: EligibilityData;
|
|
95123
96581
|
settledRequestKey: string;
|
|
95124
96582
|
error: null;
|
|
95125
|
-
} | {
|
|
96583
|
+
} /** `closed`: the server said this event has stopped taking bookings, so loading again won't help. */ | {
|
|
95126
96584
|
tag: 'failed';
|
|
95127
96585
|
eligibility: null;
|
|
95128
96586
|
settledRequestKey: string;
|
|
95129
96587
|
error: string;
|
|
96588
|
+
closed: boolean;
|
|
95130
96589
|
};
|
|
95131
|
-
|
|
96590
|
+
/** The signed-in customer's own confirmed bookings for the date being booked. */
|
|
96591
|
+
type ExistingBookings = readonly PortalOccurrenceBooking[];
|
|
96592
|
+
/** `failed`: we couldn't check, which is not the same as having no booking. */
|
|
95132
96593
|
type ExistingRegistrationLookupState = {
|
|
95133
96594
|
tag: 'idle';
|
|
95134
96595
|
registrations: ExistingBookings;
|
|
@@ -95138,6 +96599,9 @@ type ExistingRegistrationLookupState = {
|
|
|
95138
96599
|
} | {
|
|
95139
96600
|
tag: 'resolved';
|
|
95140
96601
|
registrations: ExistingBookings;
|
|
96602
|
+
} | {
|
|
96603
|
+
tag: 'failed';
|
|
96604
|
+
registrations: ExistingBookings;
|
|
95141
96605
|
};
|
|
95142
96606
|
//#endregion
|
|
95143
96607
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts
|
|
@@ -95171,13 +96635,48 @@ type SignInReturn = Readonly<{
|
|
|
95171
96635
|
endSignInReturn: () => void;
|
|
95172
96636
|
}>;
|
|
95173
96637
|
//#endregion
|
|
96638
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationEntry.d.ts
|
|
96639
|
+
/**
|
|
96640
|
+
* What a date's own page offers besides its date. The booking block lists the
|
|
96641
|
+
* class's other upcoming dates after the page's; a headless flow books the
|
|
96642
|
+
* events its caller passes, as it always has.
|
|
96643
|
+
*/
|
|
96644
|
+
type DatePageOffer = 'addMoreDates' | 'eventsAsGiven';
|
|
96645
|
+
/**
|
|
96646
|
+
* Where a booking starts and what it can choose from (`choices`).
|
|
96647
|
+
* - `chooseEvent`: nothing is chosen yet, so the visitor starts by choosing.
|
|
96648
|
+
* - `pageDate`: the page is about one date (or there's only one), so booking
|
|
96649
|
+
* starts on Tickets with it chosen. `event` is null while the page's date
|
|
96650
|
+
* isn't among the events.
|
|
96651
|
+
* - `pageDateAndMore`: a date's own page whose class books several dates. The
|
|
96652
|
+
* Dates step lists the page's date first, ticked, then `moreDates`.
|
|
96653
|
+
*/
|
|
96654
|
+
type RegistrationEntry = Readonly<{
|
|
96655
|
+
kind: 'chooseEvent';
|
|
96656
|
+
choices: readonly RegistrationEvent[];
|
|
96657
|
+
}> | Readonly<{
|
|
96658
|
+
kind: 'pageDate';
|
|
96659
|
+
event: RegistrationEvent | null;
|
|
96660
|
+
choices: readonly RegistrationEvent[];
|
|
96661
|
+
}> | Readonly<{
|
|
96662
|
+
kind: 'pageDateAndMore';
|
|
96663
|
+
event: RegistrationEvent;
|
|
96664
|
+
moreDates: readonly [RegistrationEvent, ...RegistrationEvent[]];
|
|
96665
|
+
choices: readonly RegistrationEvent[];
|
|
96666
|
+
}>;
|
|
96667
|
+
//#endregion
|
|
95174
96668
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts
|
|
95175
96669
|
type SelectionSource = 'auto' | 'manual';
|
|
95176
96670
|
type RegistrationDraftState = {
|
|
95177
96671
|
questionFieldErrors: BookingQuestionsSubmissionFailure['questionFieldErrors'];
|
|
95178
96672
|
draft: RegistrationDraftData; /** The place stepper's value; ticket types count their lines instead (`flowTicketsCount`). */
|
|
95179
96673
|
placeCount: number;
|
|
95180
|
-
eligibility: EligibilityData | null;
|
|
96674
|
+
eligibility: EligibilityData | null;
|
|
96675
|
+
/**
|
|
96676
|
+
* How several items can be paid, as the server answered for the current
|
|
96677
|
+
* selection; null for one item, and until the answer arrives.
|
|
96678
|
+
*/
|
|
96679
|
+
selectionPayment: EventSelectionPayment | null; /** The last room facts the booking options gave. They outlast the options; see `selectRoomOffer`. */
|
|
95181
96680
|
roomFacts: PublicEventRooms | null;
|
|
95182
96681
|
paymentSelection: PaymentSelection;
|
|
95183
96682
|
selectionSource: SelectionSource;
|
|
@@ -95778,6 +97277,18 @@ type SystemBlockDefinition<_TContent = Record<string, unknown>, TRuntime extends
|
|
|
95778
97277
|
};
|
|
95779
97278
|
declare function getBlockDefinition(name: string): SystemBlockDefinition<unknown, AnyBlockRuntimeDefinition | undefined> | undefined;
|
|
95780
97279
|
//#endregion
|
|
97280
|
+
//#region .cache/declarations/blocks/src/system/node/fragments/styledSection.d.ts
|
|
97281
|
+
/**
|
|
97282
|
+
* Where a styled section keeps the ground it declares. A symbol, so it is
|
|
97283
|
+
* never read as a prop, and it survives the spread copies node modifiers
|
|
97284
|
+
* (`when`, `props`) make.
|
|
97285
|
+
*/
|
|
97286
|
+
declare const styledSectionGround: unique symbol;
|
|
97287
|
+
/** A layout node built by `styledSection`, carrying the ground it declares. */
|
|
97288
|
+
type StyledSectionNode = NodeDefinition & Readonly<{
|
|
97289
|
+
[styledSectionGround]: SectionGround;
|
|
97290
|
+
}>;
|
|
97291
|
+
//#endregion
|
|
95781
97292
|
//#region .cache/declarations/blocks/src/system/fragments/types.d.ts
|
|
95782
97293
|
declare const fragmentDataSchema: z$1.ZodObject<{
|
|
95783
97294
|
key: z$1.ZodString;
|
|
@@ -96733,12 +98244,12 @@ declare const newsletterSignupManifest: DefinedBlockManifest<BlockContentShapeIn
|
|
|
96733
98244
|
kind: "sdk";
|
|
96734
98245
|
} | undefined;
|
|
96735
98246
|
}];
|
|
96736
|
-
readonly layout:
|
|
98247
|
+
readonly layout: StyledSectionNode;
|
|
96737
98248
|
readonly variants: {
|
|
96738
|
-
arch:
|
|
96739
|
-
stacked:
|
|
96740
|
-
inline:
|
|
96741
|
-
"editorial-split":
|
|
98249
|
+
arch: StyledSectionNode;
|
|
98250
|
+
stacked: StyledSectionNode;
|
|
98251
|
+
inline: StyledSectionNode;
|
|
98252
|
+
"editorial-split": StyledSectionNode;
|
|
96742
98253
|
};
|
|
96743
98254
|
readonly variantMeaning: {
|
|
96744
98255
|
readonly kind: "arrangement";
|
|
@@ -97491,8 +99002,7 @@ type SiteRuntimeIdentity = {
|
|
|
97491
99002
|
/** The appearance subset shared by hosted and SDK runtime readers. */
|
|
97492
99003
|
type SiteRuntimeSelectionPayload = {
|
|
97493
99004
|
selectionJournalState: ThemeJournalState | null;
|
|
97494
|
-
theme: Theme | null;
|
|
97495
|
-
hostedBookingAppearance?: HostedBookingAppearance;
|
|
99005
|
+
theme: Theme | null;
|
|
97496
99006
|
themeId?: string | null;
|
|
97497
99007
|
selectionId?: string | null;
|
|
97498
99008
|
selectionVersion?: number | null;
|
|
@@ -97503,12 +99013,6 @@ type SiteRuntimeSelectionPayload = {
|
|
|
97503
99013
|
selectionFooterPreferences?: FooterPreferences | null;
|
|
97504
99014
|
selectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
97505
99015
|
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
99016
|
};
|
|
97513
99017
|
type SiteBySlugResponse = SiteRuntimeSelectionPayload & {
|
|
97514
99018
|
/** 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 +102637,9 @@ type CommercePortalAPIEndpoints = {
|
|
|
101133
102637
|
reviewId: string;
|
|
101134
102638
|
}, AdminResolveSiteBillingManualReviewResponse>;
|
|
101135
102639
|
portalGetProfile: APIEndpoint<never, never, PortalMeResponse>;
|
|
101136
|
-
portalUpdateProfile: APIEndpoint<PortalMeUpdateRequest, never,
|
|
101137
|
-
|
|
101138
|
-
|
|
101139
|
-
orders: CustomerOrder[];
|
|
101140
|
-
}>;
|
|
102640
|
+
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. */
|
|
102641
|
+
portalGetDetails: APIEndpoint<never, never, PortalDetailsResponse>; /** Saves which newsletters this email gets; nothing chosen unsubscribes. */
|
|
102642
|
+
portalUpdateNewsletter: APIEndpoint<PortalNewsletterUpdateRequest, never, PortalNewsletterUpdateResponse>;
|
|
101141
102643
|
portalCreateOrderCheckout: APIEndpoint<PortalOrderCheckoutRequest, {
|
|
101142
102644
|
orderId: string;
|
|
101143
102645
|
}, PortalOrderCheckoutResponse>;
|
|
@@ -101154,40 +102656,34 @@ type CommercePortalAPIEndpoints = {
|
|
|
101154
102656
|
entitlementId: string;
|
|
101155
102657
|
assetId: string;
|
|
101156
102658
|
}, 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
102659
|
portalCancelWaitlistEntry: APIEndpoint<never, {
|
|
101178
102660
|
entryId: string;
|
|
101179
102661
|
}, {
|
|
101180
102662
|
outcome: 'cancelled';
|
|
101181
102663
|
}>;
|
|
101182
|
-
portalGetRegularSessions: APIEndpoint<never, never, PortalRegularSessionsResponse>;
|
|
101183
|
-
|
|
101184
|
-
|
|
101185
|
-
|
|
101186
|
-
|
|
101187
|
-
|
|
101188
|
-
|
|
101189
|
-
|
|
101190
|
-
}>;
|
|
102664
|
+
portalGetRegularSessions: APIEndpoint<never, never, PortalRegularSessionsResponse>; /** Every booking the customer holds, merged across kinds, grouped and ordered by the server. */
|
|
102665
|
+
portalGetBookings: APIEndpoint<never, {
|
|
102666
|
+
pastCursor?: string;
|
|
102667
|
+
pastLimit?: string;
|
|
102668
|
+
}, PortalBookingsResponse>; /** The portal's home: Things to do, the next bookings and a line per section. */
|
|
102669
|
+
portalGetHome: APIEndpoint<never, never, PortalHomeResponse>; /** The customer's own confirmed bookings for one event date, for the booking form's reminder. */
|
|
102670
|
+
portalGetOccurrenceBookings: APIEndpoint<never, {
|
|
102671
|
+
occurrenceId: string;
|
|
102672
|
+
}, PortalOccurrenceBookingsResponse>; /** The passes page: memberships, passes and site credit, each part read on its own. */
|
|
102673
|
+
portalGetHoldings: APIEndpoint<never, never, PortalHoldingsResponse>; /** Payments & receipts (a page of payments at a time), one payment as a receipt, and one order. */
|
|
102674
|
+
portalGetPayments: APIEndpoint<never, {
|
|
102675
|
+
before?: string;
|
|
102676
|
+
}, PortalPaymentsResponse>;
|
|
102677
|
+
portalGetReceipt: APIEndpoint<never, {
|
|
102678
|
+
receiptId: string;
|
|
102679
|
+
}, PortalReceiptResponse>;
|
|
102680
|
+
portalGetOrder: APIEndpoint<never, {
|
|
102681
|
+
orderId: string;
|
|
102682
|
+
}, PortalOrderResponse>; /** One booking, addressed by its portal kind and id. */
|
|
102683
|
+
portalGetBooking: APIEndpoint<never, {
|
|
102684
|
+
kind: string;
|
|
102685
|
+
bookingId: string;
|
|
102686
|
+
}, PortalBookingResponse>;
|
|
101191
102687
|
portalGetAppointmentBookingQuestions: APIEndpoint<never, {
|
|
101192
102688
|
appointmentId: string;
|
|
101193
102689
|
}, {
|
|
@@ -101262,14 +102758,6 @@ type CommercePortalAPIEndpoints = {
|
|
|
101262
102758
|
portalRescheduleAppointment: APIEndpoint<PortalRescheduleAppointmentRequest, {
|
|
101263
102759
|
appointmentId: string;
|
|
101264
102760
|
}, PortalRescheduleAppointmentResponse>;
|
|
101265
|
-
portalGetWholeSeriesRegistrations: APIEndpoint<never, {
|
|
101266
|
-
upcoming?: string;
|
|
101267
|
-
status?: string;
|
|
101268
|
-
limit?: string;
|
|
101269
|
-
offset?: string;
|
|
101270
|
-
}, {
|
|
101271
|
-
enrollments: CustomerEventSeriesRegistration[];
|
|
101272
|
-
}>;
|
|
101273
102761
|
portalGetWholeSeriesBookingQuestions: APIEndpoint<never, {
|
|
101274
102762
|
registrationId: string;
|
|
101275
102763
|
}, PortalWholeSeriesBookingQuestionsResponse>;
|
|
@@ -101496,6 +102984,10 @@ type CommercePortalAPIEndpoints = {
|
|
|
101496
102984
|
siteId: string;
|
|
101497
102985
|
giftId: string;
|
|
101498
102986
|
}, CorrectGiftEmailAndResendResponse>;
|
|
102987
|
+
changeGiftExpiry: APIEndpoint<ChangeGiftExpiryRequest, {
|
|
102988
|
+
siteId: string;
|
|
102989
|
+
giftId: string;
|
|
102990
|
+
}, ChangeGiftExpiryResponse>;
|
|
101499
102991
|
updateGiftingSettings: APIEndpoint<UpdateGiftingSettingsRequest, {
|
|
101500
102992
|
siteId: string;
|
|
101501
102993
|
}, UpdateGiftingSettingsResponse>;
|
|
@@ -101616,4 +103108,4 @@ type ApiClient<Allowed extends keyof APIEndpoints = keyof APIEndpoints, M extend
|
|
|
101616
103108
|
readonly [apiClientRepresentation]?: M;
|
|
101617
103109
|
};
|
|
101618
103110
|
//#endregion
|
|
101619
|
-
export {
|
|
103111
|
+
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 };
|