@riverbankcms/sdk 0.134.0 → 0.135.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -3
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DfRhJPFQ.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +4 -4
- package/dist/{PreviewEditorUI-Dppxcr_g.mjs → PreviewEditorUI-D0cRoTX1.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D51gQaG3.mjs → PreviewQueryProvider-DcgaESkm.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-8CyGCXir.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +5 -5
- package/dist/{SiteChromeCustomizeContext-DVMTMvqA.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +4105 -8035
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +15 -15
- package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +25 -60
- package/dist/_dts/api/src/bookingOperations.d.ts +111 -161
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +123 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +13 -13
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/bookingSessionSummaryTypes.d.ts +34 -0
- package/dist/_dts/api/src/bookings.d.ts +5 -9
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -7
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +29 -109
- package/dist/_dts/api/src/eventManagementContracts.d.ts +1 -1
- package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +43 -0
- package/dist/_dts/api/src/index.d.ts +3 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +32 -28
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +85 -5
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +9 -100
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -32
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/siteOperations.d.ts +2 -2
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/api/src/{courses.d.ts → wholeSeriesOfferings.d.ts} +43 -95
- package/dist/_dts/blocks/src/client.d.ts +0 -5
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +5 -94
- package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +3 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +17 -20
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +147 -42
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +35 -10
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +3 -3
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/builder.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +9 -12
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +2 -44
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +99 -59
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +19 -16
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -247
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +13 -126
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +7 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +12 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +53 -45
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +10 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +20 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +5 -56
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/waitlistClaimRestoration.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +6 -22
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +16 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +1 -13
- package/dist/_dts/blocks/src/system/runtime/shared/components/LoggedInAsUser.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/checkoutUrls.d.ts +2 -2
- package/dist/_dts/commerce/src/index.d.ts +16 -0
- package/dist/_dts/commerce/src/money.d.ts +122 -0
- package/dist/_dts/commerce/src/moneyContracts.d.ts +178 -0
- package/dist/_dts/commerce/src/moneyDateUtils.d.ts +22 -0
- package/dist/_dts/commerce/src/moneyPayments.d.ts +59 -0
- package/dist/_dts/commerce/src/moneyPlanningTime.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReceiptReadModel.d.ts +68 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +105 -0
- package/dist/_dts/commerce/src/moneyReportBreakdowns.d.ts +3 -0
- package/dist/_dts/commerce/src/moneyReportKindFilter.d.ts +4 -0
- package/dist/_dts/commerce/src/moneyReportPage.d.ts +132 -0
- package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +6 -25
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +11 -11
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +12 -8
- package/dist/_dts/commerce/src/shop/digitalFulfillment.d.ts +111 -0
- package/dist/_dts/commerce/src/shop/fulfillmentStatus.d.ts +10 -0
- package/dist/_dts/commerce/src/shop/inventoryRestore.d.ts +13 -0
- package/dist/_dts/commerce/src/shop/shippingAddress.d.ts +18 -0
- package/dist/_dts/commerce/src/types/json.d.ts +3 -0
- package/dist/_dts/commerce/src/utils/isPlainRecord.d.ts +1 -0
- package/dist/_dts/commerce/src/waitlists.d.ts +172 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -30
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +2 -39
- package/dist/_dts/content-model/src/metadataConfig.d.ts +0 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -68
- package/dist/_dts/core/src/branded.d.ts +3 -3
- package/dist/_dts/core/src/event-pricing.d.ts +6 -6
- package/dist/_dts/core/src/participants.d.ts +17 -17
- package/dist/_dts/core/src/rectification.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +890 -2154
- package/dist/_dts/sdk/src/bookings/index.d.ts +4 -5
- package/dist/_dts/sdk/src/bookings/types.d.ts +34 -4
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +4 -6
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/vars/index.d.ts +0 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/client/{usePolling-UN4WKnaM.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +180 -4
- package/dist/client/{DiscountCodeDisclosure-CfuPOHD0.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +13 -27
- package/dist/client/{EventCombined.client-DB8Qfzi-.mjs → EventCombined.client-BKB0ZxRR.mjs} +3 -3
- package/dist/client/{EventListing.client-DD4X8hp4.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-QhgIBQbv.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
- package/dist/client/{accordion-DFXpLvwg.mjs → accordion-KIDsKTwS.mjs} +1 -1
- package/dist/client/{bookingForm-sI05d3lk.mjs → bookingForm-D96Rmp-5.mjs} +6 -7
- package/dist/client/bookings.mjs +913 -1906
- package/dist/client/{carousel-wjyWTZCh.mjs → carousel-YwUgyL66.mjs} +1 -1
- package/dist/client/{cart-DCwdpA4i.mjs → cart-BbwuNrUT.mjs} +3 -3
- package/dist/client/{checkout-DTDW3l0R.mjs → checkout-hp1ucmEY.mjs} +3 -3
- package/dist/client/{checkoutUrls-DQYC_Br-.mjs → checkoutUrls-BuseL0dw.mjs} +4 -2
- package/dist/client/client.mjs +5109 -9333
- package/dist/client/{context-TSK1CGx8.mjs → context-DljQn8L5.mjs} +15 -69
- package/dist/client/{eventCalendar-B0Zg-i_w.mjs → eventCalendar-DU4iNLpo.mjs} +5 -5
- package/dist/client/{eventCombined-B8Y2wizd.mjs → eventCombined-CZuupW8m.mjs} +3 -3
- package/dist/client/{eventDetails-DPDOwURJ.mjs → eventDetails-DPQWwCIi.mjs} +8 -8
- package/dist/client/{eventListing-CjBcmSLn.mjs → eventListing-C7oMidwS.mjs} +3 -3
- package/dist/client/{eventRegistration-CK30HsAq.mjs → eventRegistration-zEiunlUs.mjs} +4522 -3690
- package/dist/client/{form-CUXfsABE.mjs → form-D2KIyCVJ.mjs} +2 -2
- package/dist/client/{headerSection-N-mN3rjr.mjs → headerSection-CK5uChUK.mjs} +2 -2
- package/dist/client/hooks.mjs +459 -714
- package/dist/client/{locationMap-oiIDQMBt.mjs → locationMap-DLQNH1ln.mjs} +2 -2
- package/dist/client/{newsletterForm-CkQ2tTrM.mjs → newsletterForm-ZuhIG7fZ.mjs} +2 -2
- package/dist/client/{productDetail-CnidyrsN.mjs → productDetail-7hIcGeae.mjs} +3 -3
- package/dist/client/{productList-CttYcS_S.mjs → productList-T4Cii1ot.mjs} +3 -3
- package/dist/client/{propsDecoder-CeUMxI9a.mjs → propsDecoder-mB0aC_Fi.mjs} +4702 -4458
- package/dist/client/rendering/client.mjs +59617 -62260
- package/dist/client/rendering/islands.mjs +17 -19
- package/dist/client/rendering.mjs +5389 -9707
- package/dist/client/{scrollToBlock-lPr1oqxB.mjs → scrollToBlock-Du5mHgvL.mjs} +2 -2
- package/dist/client/{shop-DXQtMo2O.mjs → shop-B5zAcKZn.mjs} +6 -6
- package/dist/client/{shop-commerce-quDL411J.mjs → shop-commerce-BKBZB6l5.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Dnu-8Iub.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
- package/dist/client/{shopShared-BWPUURvG.mjs → shopShared-DYGzEs9D.mjs} +3 -3
- package/dist/client/{useEventFilters-DRhWp2_5.mjs → useEventFilters-Bphkda8m.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +40 -161
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +40 -161
- package/dist/preview-next/middleware.mjs +40 -161
- package/dist/{previewAuthStore-BFKd4LrN.mjs → previewAuthStore-C7ksxt5b.mjs} +40 -161
- package/dist/{sdk-runtime-Ca5RD78X.mjs → sdk-runtime-BbIC8G4J.mjs} +2 -2
- package/dist/{separator-CMhj6BTi.mjs → separator-CadhAtI7.mjs} +1 -1
- package/dist/server/components.mjs +558 -2962
- package/dist/server/config-validation.mjs +459 -714
- package/dist/server/config.mjs +459 -714
- package/dist/server/data.mjs +459 -714
- package/dist/server/index.mjs +41 -162
- package/dist/server/next.mjs +572 -2976
- package/dist/server/page-converter.mjs +360 -582
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +569 -2879
- package/dist/server/rendering.mjs +558 -2962
- package/dist/server/routing.mjs +603 -1087
- package/dist/server/server.mjs +473 -728
- package/dist/server/theme-bridge.mjs +41 -1524
- package/dist/styles/index.css +41 -1348
- package/package.json +1 -1
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +0 -99
- package/dist/_dts/blocks/src/client/course-registration.d.ts +0 -5
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -134
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -130
- package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -135
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +0 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -181
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/BookingModeStep.d.ts +0 -32
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/CheckIcon.d.ts +0 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/ErrorStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/MembershipHero.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PaymentFailedStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/PortalAuthSidebar.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +0 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/SuccessStep.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/VerifyingTimeoutStep.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WaitlistStep.d.ts +0 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts +0 -25
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +0 -46
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/index.d.ts +0 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/types.d.ts +0 -105
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesEligibility.d.ts +0 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +0 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +0 -185
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/utils.d.ts +0 -43
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +0 -325
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.planning.d.ts +0 -27
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wizardSteps.d.ts +0 -30
- package/dist/_dts/sdk/src/rendering/islands/enhancers/courseRegistration.d.ts +0 -3
- package/dist/_dts/theme-core/src/blocks/vars/course-details.d.ts +0 -16
- package/dist/_dts/theme-core/src/blocks/vars/course-registration.d.ts +0 -21
- package/dist/client/BookingConsentAgreement-BxgpGEFD.mjs +0 -160
- package/dist/client/WholeSeriesRegistrationWizard-DwtC7bCs.mjs +0 -2546
- package/dist/client/courseRegistration-A-Tg7qw_.mjs +0 -52
- package/dist/client/pricing-Caa0QWzh.mjs +0 -195
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TimeSlot } from
|
|
2
|
-
import type { BookingPaymentOptionsSource, BookingPaymentTermsConfig, BookingPricing, BookingPricingInput } from
|
|
3
|
-
import type { InviteSiteMemberEmailResult, SiteInvitation, StaffOperationalCapability } from
|
|
4
|
-
import type {
|
|
1
|
+
import type { TimeSlot } from './availability';
|
|
2
|
+
import type { BookingPaymentOptionsSource, BookingPaymentTermsConfig, BookingPricing, BookingPricingInput } from './bookingConfig';
|
|
3
|
+
import type { InviteSiteMemberEmailResult, SiteInvitation, StaffOperationalCapability } from './accessAdmin';
|
|
4
|
+
import type { EventSeriesRegistrationRefundFailedCode, EventAttendeeRefundFailedCode } from './bookingRefundOutcomes';
|
|
5
5
|
/**
|
|
6
6
|
* Booking Operations Contracts
|
|
7
7
|
*
|
|
@@ -32,7 +32,7 @@ export type OpsOccurrenceAttendee = {
|
|
|
32
32
|
customerName: string | null;
|
|
33
33
|
customerEmail: string;
|
|
34
34
|
customerPhone: string | null;
|
|
35
|
-
status:
|
|
35
|
+
status: 'confirmed' | 'waitlist' | 'cancelled';
|
|
36
36
|
ticketsCount: number;
|
|
37
37
|
ticketLines: EventTicketBreakdownLine[];
|
|
38
38
|
ticketBreakdown: string | null;
|
|
@@ -102,16 +102,16 @@ export type OpsEventAttendeeDetailsResponse = {
|
|
|
102
102
|
actions: {
|
|
103
103
|
canCancel: boolean;
|
|
104
104
|
cancelCutoffAt?: string;
|
|
105
|
-
defaultRefund:
|
|
105
|
+
defaultRefund: 'refund' | 'no_refund';
|
|
106
106
|
canOverrideRefund: boolean;
|
|
107
107
|
refundCutoffAt?: string | null;
|
|
108
108
|
remainingRefundableCents: number | null;
|
|
109
109
|
currency: string | null;
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
export type AdminBookingRefundSelection =
|
|
112
|
+
export type AdminBookingRefundSelection = 'follow_policy' | 'force_refund' | 'force_no_refund';
|
|
113
113
|
export type AdminBookingCancellationRequest = {
|
|
114
|
-
cancellation?: import(
|
|
114
|
+
cancellation?: import('./common/cancellation').StaffCancellationContextInput;
|
|
115
115
|
reason?: string | null;
|
|
116
116
|
refundSelection?: AdminBookingRefundSelection;
|
|
117
117
|
refundCommand?: BookingRefundCommandRequest;
|
|
@@ -119,9 +119,9 @@ export type AdminBookingCancellationRequest = {
|
|
|
119
119
|
export type OpsCancelEventAttendeeResult = {
|
|
120
120
|
cancelled: boolean;
|
|
121
121
|
refunded: boolean;
|
|
122
|
-
blockedReason?:
|
|
122
|
+
blockedReason?: 'already_cancelled' | 'already_started' | 'payment_in_progress' | 'invalid_start_time' | 'policy_disallows' | 'no_refundable_payment_link' | 'nothing_remaining_to_refund';
|
|
123
123
|
refund?: {
|
|
124
|
-
status:
|
|
124
|
+
status: 'succeeded' | 'failed' | 'skipped';
|
|
125
125
|
amountCents: number | null;
|
|
126
126
|
currency: string | null;
|
|
127
127
|
paymentLast4: string | null;
|
|
@@ -142,22 +142,22 @@ export type OpsRefundEventAttendeeResponse = {
|
|
|
142
142
|
result: EventAttendeeRefundResult;
|
|
143
143
|
};
|
|
144
144
|
export type BookingRefundAmountRequest = Readonly<{
|
|
145
|
-
kind:
|
|
145
|
+
kind: 'full_remaining';
|
|
146
146
|
}> | Readonly<{
|
|
147
|
-
kind:
|
|
147
|
+
kind: 'partial_amount';
|
|
148
148
|
amountCents: number;
|
|
149
149
|
}>;
|
|
150
|
-
export type BookingRefundProtectedDepositOverride =
|
|
151
|
-
export type BookingRequestedRefundMethod =
|
|
150
|
+
export type BookingRefundProtectedDepositOverride = 'respect_policy' | 'allow_protected_deposit_override';
|
|
151
|
+
export type BookingRequestedRefundMethod = 'original_payment' | 'site_credit';
|
|
152
152
|
export type BookingRefundCommandRequest = Readonly<{
|
|
153
|
-
kind:
|
|
153
|
+
kind: 'refund_only';
|
|
154
154
|
amount: BookingRefundAmountRequest;
|
|
155
155
|
requestedRefundMethod: BookingRequestedRefundMethod;
|
|
156
156
|
protectedDepositOverride: BookingRefundProtectedDepositOverride;
|
|
157
157
|
}> | Readonly<{
|
|
158
|
-
kind:
|
|
158
|
+
kind: 'refund_and_revoke';
|
|
159
159
|
amount: Readonly<{
|
|
160
|
-
kind:
|
|
160
|
+
kind: 'full_remaining';
|
|
161
161
|
}>;
|
|
162
162
|
requestedRefundMethod: BookingRequestedRefundMethod;
|
|
163
163
|
protectedDepositOverride: BookingRefundProtectedDepositOverride;
|
|
@@ -170,7 +170,7 @@ export type RefundEventAttendeeRequest = {
|
|
|
170
170
|
};
|
|
171
171
|
type EventAttendeeRefundBase = {
|
|
172
172
|
refundRecordId: string;
|
|
173
|
-
refundMethod:
|
|
173
|
+
refundMethod: 'cash' | 'credit' | 'mixed' | null;
|
|
174
174
|
amountCents: number | null;
|
|
175
175
|
currency: string | null;
|
|
176
176
|
paymentLast4: string | null;
|
|
@@ -179,9 +179,9 @@ type EventAttendeeRefundBase = {
|
|
|
179
179
|
remainingRefundableCents?: number | null;
|
|
180
180
|
};
|
|
181
181
|
export type EventAttendeeRefundResult = (EventAttendeeRefundBase & {
|
|
182
|
-
status:
|
|
182
|
+
status: 'succeeded';
|
|
183
183
|
}) | (EventAttendeeRefundBase & {
|
|
184
|
-
status:
|
|
184
|
+
status: 'failed';
|
|
185
185
|
errorCode: EventAttendeeRefundFailedCode;
|
|
186
186
|
errorMessage: string;
|
|
187
187
|
});
|
|
@@ -201,15 +201,14 @@ export type EventAttendeeTransferResult = {
|
|
|
201
201
|
export type TransferEventAttendeeResponse = {
|
|
202
202
|
result: EventAttendeeTransferResult;
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
type BookingRefundHistoryItem<TSubject extends object> = TSubject & {
|
|
205
205
|
id: string;
|
|
206
206
|
siteId: string;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
refundMethod: "cash" | "credit" | "mixed";
|
|
207
|
+
sourceType: 'order_refund';
|
|
208
|
+
refundMethod: 'cash' | 'credit' | 'mixed';
|
|
210
209
|
amountCents: number;
|
|
211
210
|
currency: string;
|
|
212
|
-
status:
|
|
211
|
+
status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
|
|
213
212
|
stripeRefundId: string | null;
|
|
214
213
|
paymentReceiptId: string | null;
|
|
215
214
|
stripePaymentIntentId: string | null;
|
|
@@ -217,25 +216,28 @@ export type EventAttendeeRefundHistoryItem = {
|
|
|
217
216
|
failureCode: string | null;
|
|
218
217
|
failureMessage: string | null;
|
|
219
218
|
paymentLast4: string | null;
|
|
220
|
-
initiatedBy:
|
|
219
|
+
initiatedBy: 'customer' | 'admin';
|
|
221
220
|
initiatorCustomerId: string | null;
|
|
222
221
|
initiatorUserId: string | null;
|
|
223
222
|
reason: string | null;
|
|
224
223
|
createdAt: string;
|
|
225
224
|
};
|
|
225
|
+
export type EventAttendeeRefundHistoryItem = BookingRefundHistoryItem<{
|
|
226
|
+
attendeeId: string;
|
|
227
|
+
}>;
|
|
226
228
|
export type ListEventAttendeeRefundsResponse = {
|
|
227
229
|
refunds: EventAttendeeRefundHistoryItem[];
|
|
228
|
-
protectedDepositPolicy:
|
|
230
|
+
protectedDepositPolicy: 'not_applicable' | 'refundable' | 'non_refundable';
|
|
229
231
|
};
|
|
230
|
-
export type
|
|
232
|
+
export type RefundEventSeriesRegistrationRequest = {
|
|
231
233
|
command: BookingRefundCommandRequest;
|
|
232
234
|
paymentReceiptId?: string;
|
|
233
235
|
reason?: string | null;
|
|
234
236
|
idempotencyKey?: string;
|
|
235
237
|
};
|
|
236
|
-
type
|
|
238
|
+
type EventSeriesRegistrationRefundBase = {
|
|
237
239
|
refundRecordId: string;
|
|
238
|
-
refundMethod:
|
|
240
|
+
refundMethod: 'cash' | 'credit' | 'mixed' | null;
|
|
239
241
|
amountCents: number | null;
|
|
240
242
|
currency: string | null;
|
|
241
243
|
paymentLast4: string | null;
|
|
@@ -243,41 +245,22 @@ type CourseEnrollmentRefundBase = {
|
|
|
243
245
|
totalRefundedCents?: number;
|
|
244
246
|
remainingRefundableCents?: number | null;
|
|
245
247
|
};
|
|
246
|
-
export type
|
|
247
|
-
status:
|
|
248
|
-
}) | (
|
|
249
|
-
status:
|
|
250
|
-
errorCode:
|
|
248
|
+
export type EventSeriesRegistrationRefundResult = (EventSeriesRegistrationRefundBase & {
|
|
249
|
+
status: 'succeeded';
|
|
250
|
+
}) | (EventSeriesRegistrationRefundBase & {
|
|
251
|
+
status: 'failed';
|
|
252
|
+
errorCode: EventSeriesRegistrationRefundFailedCode;
|
|
251
253
|
errorMessage: string;
|
|
252
254
|
});
|
|
253
|
-
export type
|
|
254
|
-
result:
|
|
255
|
-
};
|
|
256
|
-
export type CourseEnrollmentRefundHistoryItem = {
|
|
257
|
-
id: string;
|
|
258
|
-
siteId: string;
|
|
259
|
-
enrollmentId: string;
|
|
260
|
-
sourceType: "order_refund";
|
|
261
|
-
refundMethod: "cash" | "credit" | "mixed";
|
|
262
|
-
amountCents: number;
|
|
263
|
-
currency: string;
|
|
264
|
-
status: "pending" | "succeeded" | "failed" | "reconciliation_needed";
|
|
265
|
-
stripeRefundId: string | null;
|
|
266
|
-
paymentReceiptId: string | null;
|
|
267
|
-
stripePaymentIntentId: string | null;
|
|
268
|
-
stripeCheckoutSessionId: string | null;
|
|
269
|
-
failureCode: string | null;
|
|
270
|
-
failureMessage: string | null;
|
|
271
|
-
paymentLast4: string | null;
|
|
272
|
-
initiatedBy: "customer" | "admin";
|
|
273
|
-
initiatorCustomerId: string | null;
|
|
274
|
-
initiatorUserId: string | null;
|
|
275
|
-
reason: string | null;
|
|
276
|
-
createdAt: string;
|
|
255
|
+
export type RefundEventSeriesRegistrationResponse = {
|
|
256
|
+
result: EventSeriesRegistrationRefundResult;
|
|
277
257
|
};
|
|
278
|
-
export type
|
|
279
|
-
|
|
280
|
-
|
|
258
|
+
export type EventSeriesRegistrationRefundHistoryItem = BookingRefundHistoryItem<{
|
|
259
|
+
registrationId: string;
|
|
260
|
+
}>;
|
|
261
|
+
export type ListEventSeriesRegistrationRefundsResponse = {
|
|
262
|
+
refunds: EventSeriesRegistrationRefundHistoryItem[];
|
|
263
|
+
protectedDepositPolicy: 'not_applicable' | 'refundable' | 'non_refundable';
|
|
281
264
|
};
|
|
282
265
|
export type EventAttendeeTransferHistoryItem = {
|
|
283
266
|
id: string;
|
|
@@ -285,7 +268,7 @@ export type EventAttendeeTransferHistoryItem = {
|
|
|
285
268
|
attendeeId: string;
|
|
286
269
|
fromCustomerId: string;
|
|
287
270
|
toCustomerId: string;
|
|
288
|
-
initiatedBy:
|
|
271
|
+
initiatedBy: 'customer' | 'admin';
|
|
289
272
|
initiatorCustomerId: string | null;
|
|
290
273
|
initiatorUserId: string | null;
|
|
291
274
|
createdAt: string;
|
|
@@ -318,25 +301,25 @@ export type CreateAppointmentResourceRequest = {
|
|
|
318
301
|
colorHex?: string | null;
|
|
319
302
|
};
|
|
320
303
|
export type TeamMemberAccountAccessInput = {
|
|
321
|
-
kind:
|
|
304
|
+
kind: 'managed_by_site_admins';
|
|
322
305
|
} | {
|
|
323
|
-
kind:
|
|
306
|
+
kind: 'link_current_user';
|
|
324
307
|
} | {
|
|
325
|
-
kind:
|
|
308
|
+
kind: 'invite_by_email';
|
|
326
309
|
email: string;
|
|
327
310
|
staffCapabilities: StaffOperationalCapability[];
|
|
328
311
|
} | {
|
|
329
|
-
kind:
|
|
312
|
+
kind: 'link_existing_member';
|
|
330
313
|
memberId: string;
|
|
331
314
|
};
|
|
332
315
|
export type TeamMemberPractitionerLinkState = {
|
|
333
|
-
kind:
|
|
316
|
+
kind: 'linked_to_current_user';
|
|
334
317
|
} | {
|
|
335
|
-
kind:
|
|
318
|
+
kind: 'linked_to_another_user';
|
|
336
319
|
} | {
|
|
337
|
-
kind:
|
|
320
|
+
kind: 'pending_invite';
|
|
338
321
|
} | {
|
|
339
|
-
kind:
|
|
322
|
+
kind: 'unlinked';
|
|
340
323
|
};
|
|
341
324
|
export type CreateAppointmentResourceWithAccountAccessRequest = CreateAppointmentResourceRequest & {
|
|
342
325
|
accountAccess: TeamMemberAccountAccessInput;
|
|
@@ -359,11 +342,11 @@ export type CreateTeamMemberProfileResponse = {
|
|
|
359
342
|
contentEntryId: string;
|
|
360
343
|
};
|
|
361
344
|
export type UpdateTeamMemberProfilePolicyRequest = {
|
|
362
|
-
policy: import(
|
|
345
|
+
policy: import('./bookingConfig').TeamMemberProfilePagePolicyMode;
|
|
363
346
|
};
|
|
364
347
|
export type UpdateTeamMemberProfilePolicyResponse = {
|
|
365
348
|
profilePolicy: {
|
|
366
|
-
kind: import(
|
|
349
|
+
kind: import('./bookingConfig').TeamMemberProfilePagePolicyMode;
|
|
367
350
|
};
|
|
368
351
|
};
|
|
369
352
|
export type UpdateTeamMemberProfileContentRequest = {
|
|
@@ -374,21 +357,21 @@ export type UpdateTeamMemberProfileContentRequest = {
|
|
|
374
357
|
value: unknown;
|
|
375
358
|
optimistic_hash?: string | null;
|
|
376
359
|
};
|
|
377
|
-
export type TeamMemberProfileContentResponse = import(
|
|
360
|
+
export type TeamMemberProfileContentResponse = import('./contentRuntime').ContentEntryOrPageResponse;
|
|
378
361
|
export type PublishTeamMemberProfileRequest = Record<string, unknown> | undefined;
|
|
379
|
-
export type PublishTeamMemberProfileResponse = import(
|
|
380
|
-
export type DiscardTeamMemberProfileDraftResponse = import(
|
|
381
|
-
export type UnpublishTeamMemberProfileResponse = import(
|
|
362
|
+
export type PublishTeamMemberProfileResponse = import('./contentRuntime').PublishedContentEntryOrPageResponse;
|
|
363
|
+
export type DiscardTeamMemberProfileDraftResponse = import('./contentRuntime').ContentEntryOrPageResponse;
|
|
364
|
+
export type UnpublishTeamMemberProfileResponse = import('./contentRuntime').ContentEntryOrPageResponse;
|
|
382
365
|
export type ScheduleTeamMemberProfileRequest = {
|
|
383
366
|
publishAt: string;
|
|
384
367
|
};
|
|
385
|
-
export type ScheduleTeamMemberProfileResponse = import(
|
|
386
|
-
export type CancelScheduledTeamMemberProfileResponse = import(
|
|
387
|
-
export type UpdateTeamMemberProfileRouteMetadataRequest = import(
|
|
388
|
-
export type UpdateTeamMemberProfileRouteMetadataResponse = import(
|
|
368
|
+
export type ScheduleTeamMemberProfileResponse = import('./contentRuntime').ScheduledContentEntryOrPageResponse;
|
|
369
|
+
export type CancelScheduledTeamMemberProfileResponse = import('./contentRuntime').ScheduledContentEntryOrPageResponse;
|
|
370
|
+
export type UpdateTeamMemberProfileRouteMetadataRequest = import('./routes').RouteMetadataPayload;
|
|
371
|
+
export type UpdateTeamMemberProfileRouteMetadataResponse = import('./routes').RouteMetadataResponse;
|
|
389
372
|
export type RemoveAppointmentResourceResponse = {
|
|
390
373
|
success: boolean;
|
|
391
|
-
action:
|
|
374
|
+
action: 'deleted' | 'archived';
|
|
392
375
|
};
|
|
393
376
|
export type AppointmentService = {
|
|
394
377
|
id: string;
|
|
@@ -405,14 +388,14 @@ export type AppointmentService = {
|
|
|
405
388
|
cleanupMinutes: number;
|
|
406
389
|
colorHex: string | null;
|
|
407
390
|
isActive: boolean;
|
|
408
|
-
locationType:
|
|
391
|
+
locationType: 'virtual' | 'in_person' | 'hybrid';
|
|
409
392
|
venueId: string | null;
|
|
410
393
|
timezone: string | null;
|
|
411
394
|
onlineDetails: AppointmentServiceOnlineDetails | null;
|
|
412
395
|
formId: string | null;
|
|
413
396
|
cancellationPolicy: {
|
|
414
397
|
refunds: {
|
|
415
|
-
mode:
|
|
398
|
+
mode: 'inherit' | 'never' | 'always' | 'cutoff';
|
|
416
399
|
cutoffHours?: number;
|
|
417
400
|
};
|
|
418
401
|
};
|
|
@@ -442,12 +425,12 @@ export type CreateAppointmentServiceRequest = {
|
|
|
442
425
|
cleanupMinutes?: number;
|
|
443
426
|
colorHex?: string | null;
|
|
444
427
|
isActive?: boolean;
|
|
445
|
-
locationType?:
|
|
428
|
+
locationType?: 'virtual' | 'in_person' | 'hybrid';
|
|
446
429
|
venueId?: string | null;
|
|
447
430
|
timezone?: string | null;
|
|
448
431
|
onlineDetails?: AppointmentServiceOnlineDetailsInput | null;
|
|
449
432
|
formId?: string | null;
|
|
450
|
-
cancellationPolicy?: AppointmentService[
|
|
433
|
+
cancellationPolicy?: AppointmentService['cancellationPolicy'];
|
|
451
434
|
};
|
|
452
435
|
export type UpdateAppointmentServiceRequest = Partial<CreateAppointmentServiceRequest>;
|
|
453
436
|
export type AppointmentServiceResponse = {
|
|
@@ -459,9 +442,9 @@ export type ListAppointmentServicesResponse = {
|
|
|
459
442
|
export declare const APPOINTMENT_RESERVATION_STATUS_VALUES: readonly ["active", "paused", "ended"];
|
|
460
443
|
export type AppointmentReservationStatus = (typeof APPOINTMENT_RESERVATION_STATUS_VALUES)[number];
|
|
461
444
|
export type AppointmentReservationPaymentMode = Readonly<{
|
|
462
|
-
kind:
|
|
445
|
+
kind: 'manual';
|
|
463
446
|
}> | Readonly<{
|
|
464
|
-
kind:
|
|
447
|
+
kind: 'online_request';
|
|
465
448
|
sendOffsetMinutes: number;
|
|
466
449
|
}>;
|
|
467
450
|
export type AppointmentReservation = {
|
|
@@ -509,7 +492,7 @@ export type CreateAppointmentReservationRequest = {
|
|
|
509
492
|
endsOn?: string | null;
|
|
510
493
|
paymentMode?: AppointmentReservationPaymentMode;
|
|
511
494
|
};
|
|
512
|
-
export type UpdateAppointmentReservationRequest = Partial<Omit<CreateAppointmentReservationRequest,
|
|
495
|
+
export type UpdateAppointmentReservationRequest = Partial<Omit<CreateAppointmentReservationRequest, 'paymentMode'>> & {
|
|
513
496
|
expectedUpdatedAt: string;
|
|
514
497
|
paymentMode?: AppointmentReservationPaymentMode;
|
|
515
498
|
};
|
|
@@ -526,11 +509,11 @@ export type ListAppointmentReservationsResponse = {
|
|
|
526
509
|
reservations: AppointmentReservationListItem[];
|
|
527
510
|
};
|
|
528
511
|
export type AppointmentReservationRunPlanningMode = Readonly<{
|
|
529
|
-
kind:
|
|
512
|
+
kind: 'occurrence_count';
|
|
530
513
|
startsOn: string;
|
|
531
514
|
occurrenceCount: number;
|
|
532
515
|
}> | Readonly<{
|
|
533
|
-
kind:
|
|
516
|
+
kind: 'date_range';
|
|
534
517
|
startsOn: string;
|
|
535
518
|
endsOn: string;
|
|
536
519
|
}>;
|
|
@@ -555,49 +538,49 @@ export type AppointmentReservationRunOccurrence = {
|
|
|
555
538
|
occupiedEndAt: string;
|
|
556
539
|
};
|
|
557
540
|
export type AppointmentReservationRunGlobalConflict = Readonly<{
|
|
558
|
-
kind:
|
|
541
|
+
kind: 'archived_customer';
|
|
559
542
|
customerId: string;
|
|
560
543
|
}> | Readonly<{
|
|
561
|
-
kind:
|
|
544
|
+
kind: 'archived_resource';
|
|
562
545
|
resourceId: string;
|
|
563
546
|
}> | Readonly<{
|
|
564
|
-
kind:
|
|
547
|
+
kind: 'archived_service';
|
|
565
548
|
serviceId: string;
|
|
566
549
|
}> | Readonly<{
|
|
567
|
-
kind:
|
|
550
|
+
kind: 'stale_reservation';
|
|
568
551
|
expectedUpdatedAt: string;
|
|
569
552
|
actualUpdatedAt: string;
|
|
570
553
|
}>;
|
|
571
554
|
export type AppointmentReservationRunOccurrenceConflict = Readonly<{
|
|
572
|
-
kind:
|
|
555
|
+
kind: 'appointment';
|
|
573
556
|
appointmentId: string;
|
|
574
557
|
startAt: string;
|
|
575
558
|
endAt: string;
|
|
576
559
|
}> | Readonly<{
|
|
577
|
-
kind:
|
|
560
|
+
kind: 'reservation';
|
|
578
561
|
reservationId: string;
|
|
579
562
|
occurrenceKey: string;
|
|
580
563
|
startAt: string;
|
|
581
564
|
endAt: string;
|
|
582
565
|
}> | Readonly<{
|
|
583
|
-
kind:
|
|
566
|
+
kind: 'blackout';
|
|
584
567
|
blackoutId: string | null;
|
|
585
568
|
startAt: string;
|
|
586
569
|
endAt: string;
|
|
587
570
|
}> | Readonly<{
|
|
588
|
-
kind:
|
|
571
|
+
kind: 'external_busy';
|
|
589
572
|
externalBusyKey: string | null;
|
|
590
573
|
startAt: string;
|
|
591
574
|
endAt: string;
|
|
592
575
|
}>;
|
|
593
576
|
export type AppointmentReservationRunPlannedOccurrence = Readonly<{
|
|
594
|
-
kind:
|
|
577
|
+
kind: 'ready';
|
|
595
578
|
occurrence: AppointmentReservationRunOccurrence;
|
|
596
579
|
}> | Readonly<{
|
|
597
|
-
kind:
|
|
580
|
+
kind: 'skipped';
|
|
598
581
|
occurrence: AppointmentReservationRunOccurrence;
|
|
599
582
|
}> | Readonly<{
|
|
600
|
-
kind:
|
|
583
|
+
kind: 'conflict';
|
|
601
584
|
occurrence: AppointmentReservationRunOccurrence;
|
|
602
585
|
conflicts: AppointmentReservationRunOccurrenceConflict[];
|
|
603
586
|
}>;
|
|
@@ -607,40 +590,40 @@ type AppointmentReservationRunPlanBase = {
|
|
|
607
590
|
selectedOccurrenceKeys: string[];
|
|
608
591
|
occurrences: AppointmentReservationRunPlannedOccurrence[];
|
|
609
592
|
readyOccurrences: Extract<AppointmentReservationRunPlannedOccurrence, {
|
|
610
|
-
kind:
|
|
593
|
+
kind: 'ready';
|
|
611
594
|
}>[];
|
|
612
595
|
skippedOccurrences: Extract<AppointmentReservationRunPlannedOccurrence, {
|
|
613
|
-
kind:
|
|
596
|
+
kind: 'skipped';
|
|
614
597
|
}>[];
|
|
615
598
|
conflictOccurrences: Extract<AppointmentReservationRunPlannedOccurrence, {
|
|
616
|
-
kind:
|
|
599
|
+
kind: 'conflict';
|
|
617
600
|
}>[];
|
|
618
601
|
};
|
|
619
602
|
export type AppointmentReservationRunPlan = (AppointmentReservationRunPlanBase & {
|
|
620
|
-
kind:
|
|
603
|
+
kind: 'empty';
|
|
621
604
|
canConfirm: false;
|
|
622
605
|
conflictOccurrences: [];
|
|
623
606
|
globalConflicts: [];
|
|
624
607
|
}) | (AppointmentReservationRunPlanBase & {
|
|
625
|
-
kind:
|
|
608
|
+
kind: 'incomplete';
|
|
626
609
|
canConfirm: false;
|
|
627
610
|
requestedOccurrenceCount: number;
|
|
628
611
|
conflictOccurrences: [];
|
|
629
612
|
globalConflicts: [];
|
|
630
613
|
}) | (AppointmentReservationRunPlanBase & {
|
|
631
|
-
kind:
|
|
614
|
+
kind: 'ready';
|
|
632
615
|
canConfirm: true;
|
|
633
616
|
conflictOccurrences: [];
|
|
634
617
|
globalConflicts: [];
|
|
635
618
|
}) | (AppointmentReservationRunPlanBase & {
|
|
636
|
-
kind:
|
|
619
|
+
kind: 'has_conflicts';
|
|
637
620
|
canConfirm: false;
|
|
638
621
|
conflictOccurrences: Extract<AppointmentReservationRunPlannedOccurrence, {
|
|
639
|
-
kind:
|
|
622
|
+
kind: 'conflict';
|
|
640
623
|
}>[];
|
|
641
624
|
globalConflicts: [];
|
|
642
625
|
}) | (AppointmentReservationRunPlanBase & {
|
|
643
|
-
kind:
|
|
626
|
+
kind: 'blocked';
|
|
644
627
|
canConfirm: false;
|
|
645
628
|
globalConflicts: AppointmentReservationRunGlobalConflict[];
|
|
646
629
|
});
|
|
@@ -648,13 +631,13 @@ export type PreviewAppointmentReservationRunResponse = {
|
|
|
648
631
|
plan: AppointmentReservationRunPlan;
|
|
649
632
|
};
|
|
650
633
|
export type AppointmentReservationRunEffectStatus = Readonly<{
|
|
651
|
-
kind:
|
|
634
|
+
kind: 'succeeded';
|
|
652
635
|
}> | Readonly<{
|
|
653
|
-
kind:
|
|
654
|
-
reason:
|
|
636
|
+
kind: 'skipped';
|
|
637
|
+
reason: 'calendar_unavailable' | 'manual_payment_mode' | 'missing_appointment_resource' | 'missing_run_appointments' | 'missing_customer_email' | 'missing_site_owner' | 'payment_request_scheduler_deferred' | 'run_reused';
|
|
655
638
|
message?: string;
|
|
656
639
|
}> | Readonly<{
|
|
657
|
-
kind:
|
|
640
|
+
kind: 'failed';
|
|
658
641
|
message: string;
|
|
659
642
|
}>;
|
|
660
643
|
export type AppointmentReservationRunAppointmentEffects = Readonly<{
|
|
@@ -672,7 +655,7 @@ export type CreateAppointmentReservationRunResponse = {
|
|
|
672
655
|
id: string;
|
|
673
656
|
reservationId: string;
|
|
674
657
|
selectedOccurrenceKeys: string[];
|
|
675
|
-
status:
|
|
658
|
+
status: 'committed' | 'completed_with_effect_failures';
|
|
676
659
|
reused: boolean;
|
|
677
660
|
};
|
|
678
661
|
appointmentIds: string[];
|
|
@@ -688,7 +671,7 @@ export type ReferenceOption = {
|
|
|
688
671
|
export type ReferenceOptionsResponse = {
|
|
689
672
|
options: ReferenceOption[];
|
|
690
673
|
};
|
|
691
|
-
export type { PublicBookingService } from
|
|
674
|
+
export type { PublicBookingService } from './publicBookingService';
|
|
692
675
|
export type PublicBookingAvailabilityQuery = {
|
|
693
676
|
siteId: string;
|
|
694
677
|
serviceId: string;
|
|
@@ -741,14 +724,14 @@ export type PublicCreateBookingAppointmentRequest = {
|
|
|
741
724
|
timezone?: string;
|
|
742
725
|
discountCode?: string;
|
|
743
726
|
selectedSlidingAmount?: number;
|
|
744
|
-
selectedCollectionOptionKind?:
|
|
727
|
+
selectedCollectionOptionKind?: 'upfront' | 'deferred_manual' | 'instalment_plan' | 'flexible_balance';
|
|
745
728
|
altchaSolution?: string | null;
|
|
746
729
|
successUrl?: string;
|
|
747
730
|
cancelUrl?: string;
|
|
748
731
|
};
|
|
749
732
|
export type PublicBookingAppointmentSummary = {
|
|
750
733
|
id: string;
|
|
751
|
-
status:
|
|
734
|
+
status: 'confirmed' | 'pending' | 'cancelled';
|
|
752
735
|
startAt: string;
|
|
753
736
|
endAt: string;
|
|
754
737
|
timezone: string;
|
|
@@ -761,13 +744,13 @@ export type PublicBookingCustomerSummary = {
|
|
|
761
744
|
phone: string | null;
|
|
762
745
|
};
|
|
763
746
|
export type PublicCreateBookingAppointmentResponse = {
|
|
764
|
-
type:
|
|
747
|
+
type: 'booked';
|
|
765
748
|
orderId: string;
|
|
766
749
|
orderNumber: string;
|
|
767
750
|
appointment: PublicBookingAppointmentSummary;
|
|
768
751
|
customer: PublicBookingCustomerSummary;
|
|
769
752
|
} | {
|
|
770
|
-
type:
|
|
753
|
+
type: 'checkout_redirect';
|
|
771
754
|
orderId: string;
|
|
772
755
|
orderNumber: string;
|
|
773
756
|
checkoutUrl: string;
|
|
@@ -777,9 +760,9 @@ export type PublicCreateBookingAppointmentResponse = {
|
|
|
777
760
|
};
|
|
778
761
|
export type PublicBookingAppointmentStatusResponse = {
|
|
779
762
|
appointmentId: string;
|
|
780
|
-
appointmentStatus:
|
|
763
|
+
appointmentStatus: 'pending' | 'confirmed' | 'cancelled';
|
|
781
764
|
resourceName: string | null;
|
|
782
|
-
paymentStatus:
|
|
765
|
+
paymentStatus: 'pending' | 'completed' | 'failed' | 'cancelled' | 'refunded' | 'not_required';
|
|
783
766
|
};
|
|
784
767
|
export type BookingSessionMeResponse = {
|
|
785
768
|
customer: {
|
|
@@ -825,7 +808,7 @@ export type BookingAppointmentWithDetails = {
|
|
|
825
808
|
resourceName: string;
|
|
826
809
|
cancellation: {
|
|
827
810
|
canCancel: boolean;
|
|
828
|
-
defaultRefund:
|
|
811
|
+
defaultRefund: 'refund' | 'no_refund';
|
|
829
812
|
canOverrideRefund: boolean;
|
|
830
813
|
refundCutoffAt: string | null;
|
|
831
814
|
remainingRefundableCents: number | null;
|
|
@@ -833,7 +816,7 @@ export type BookingAppointmentWithDetails = {
|
|
|
833
816
|
};
|
|
834
817
|
};
|
|
835
818
|
export type AppointmentBookingQuestionsTask = {
|
|
836
|
-
status:
|
|
819
|
+
status: 'complete' | 'incomplete' | 'overdue';
|
|
837
820
|
dueAt: string;
|
|
838
821
|
completedAt: string | null;
|
|
839
822
|
prefillAvailable: boolean;
|
|
@@ -846,7 +829,7 @@ export type BookingSessionListAppointmentsResponse = {
|
|
|
846
829
|
count: number;
|
|
847
830
|
};
|
|
848
831
|
};
|
|
849
|
-
export type BookingSessionCreateAppointmentRequest = Omit<PublicCreateBookingAppointmentRequest,
|
|
832
|
+
export type BookingSessionCreateAppointmentRequest = Omit<PublicCreateBookingAppointmentRequest, 'altchaSolution' | 'cancelUrl' | 'discountCode' | 'selectedCollectionOptionKind' | 'successUrl'> & {
|
|
850
833
|
customerPassId: string;
|
|
851
834
|
};
|
|
852
835
|
export type BookingSessionCreateAppointmentResponse = PublicCreateBookingAppointmentResponse;
|
|
@@ -873,7 +856,7 @@ export type BookingSessionCancelAppointmentResponse = {
|
|
|
873
856
|
cancelled: boolean;
|
|
874
857
|
refunded: boolean;
|
|
875
858
|
refund?: {
|
|
876
|
-
status:
|
|
859
|
+
status: 'succeeded' | 'failed' | 'skipped';
|
|
877
860
|
amountCents: number | null;
|
|
878
861
|
currency: string | null;
|
|
879
862
|
paymentLast4: string | null;
|
|
@@ -886,37 +869,4 @@ export type BookingSessionCancelAppointmentResponse = {
|
|
|
886
869
|
message: string;
|
|
887
870
|
};
|
|
888
871
|
};
|
|
889
|
-
export type AdminBookingCancellationResult
|
|
890
|
-
cancelled: boolean;
|
|
891
|
-
refunded: boolean;
|
|
892
|
-
refund?: {
|
|
893
|
-
status: "succeeded" | "failed" | "skipped";
|
|
894
|
-
amountCents: number | null;
|
|
895
|
-
currency: string | null;
|
|
896
|
-
paymentLast4: string | null;
|
|
897
|
-
stripeRefundId: string | null;
|
|
898
|
-
errorMessage?: string;
|
|
899
|
-
errorCode?: string;
|
|
900
|
-
totalRefundedCents?: number;
|
|
901
|
-
remainingRefundableCents?: number | null;
|
|
902
|
-
};
|
|
903
|
-
emailSent: boolean;
|
|
904
|
-
message: string;
|
|
905
|
-
};
|
|
906
|
-
export type BookingSessionListEventsResponse = {
|
|
907
|
-
registrations: Array<Record<string, unknown>>;
|
|
908
|
-
pagination: {
|
|
909
|
-
limit: number;
|
|
910
|
-
offset: number;
|
|
911
|
-
count: number;
|
|
912
|
-
};
|
|
913
|
-
};
|
|
914
|
-
export type BookingSessionGetEventResponse = {
|
|
915
|
-
registration: Record<string, unknown>;
|
|
916
|
-
};
|
|
917
|
-
export type BookingSessionListMembershipsResponse = {
|
|
918
|
-
memberships: Array<Record<string, unknown>>;
|
|
919
|
-
};
|
|
920
|
-
export type BookingSessionListPassesResponse = {
|
|
921
|
-
passes: Array<Record<string, unknown>>;
|
|
922
|
-
};
|
|
872
|
+
export type { AdminBookingCancellationResult, BookingSessionGetEventResponse, BookingSessionListEventsResponse, BookingSessionListMembershipsResponse, BookingSessionListPassesResponse, } from './bookingSessionSummaryTypes';
|