@riverbankcms/sdk 0.148.0 → 0.150.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/README.md +1 -1
- package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Shared portal wire/domain types used by the portal API surface and frontend
|
|
5
5
|
* route. Status values use British spelling ('cancelled') to match the backend.
|
|
6
6
|
*/
|
|
7
|
-
import type { OrderInstalmentSummary, OrderInstalmentSummaryRow, OrderInstalmentPlanStatus, OrderInstalmentStatus } from '../../../core/src/index';
|
|
7
|
+
import type { BookingFlexibleBalanceContractStatus, OrderInstalmentSummary, OrderInstalmentSummaryRow, OrderInstalmentPlanStatus, OrderInstalmentStatus } from '../../../core/src/index';
|
|
8
8
|
export { formatDate, formatDateTime } from './dateFormatting';
|
|
9
9
|
type JsonPrimitive = string | number | boolean | null;
|
|
10
10
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
@@ -101,7 +101,7 @@ export interface CustomerEventRegistration {
|
|
|
101
101
|
createdAt: string;
|
|
102
102
|
/** Guest details for additional attendees (optional - only present if guests exist) */
|
|
103
103
|
guests?: EventGuest[];
|
|
104
|
-
beforeYouCome:
|
|
104
|
+
beforeYouCome: PortalBeforeYouComeTask | null;
|
|
105
105
|
transferState: 'none' | 'transferred_in' | 'transferred_out';
|
|
106
106
|
actions: {
|
|
107
107
|
canCancel: boolean;
|
|
@@ -148,7 +148,7 @@ export interface CustomerEventSeriesRegistration {
|
|
|
148
148
|
displayName: string | null;
|
|
149
149
|
isBooker: boolean;
|
|
150
150
|
}>[];
|
|
151
|
-
beforeYouCome:
|
|
151
|
+
beforeYouCome: PortalBeforeYouComeTask | null;
|
|
152
152
|
/** Venue information */
|
|
153
153
|
venue: {
|
|
154
154
|
name: string;
|
|
@@ -170,7 +170,7 @@ export interface CustomerAppointment {
|
|
|
170
170
|
status: 'scheduled' | 'pending' | 'confirmed' | 'completed' | 'cancelled' | 'no_show';
|
|
171
171
|
notes: string | null;
|
|
172
172
|
createdAt: string;
|
|
173
|
-
beforeYouCome:
|
|
173
|
+
beforeYouCome: PortalBeforeYouComeTask | null;
|
|
174
174
|
cancellation: {
|
|
175
175
|
canCancel: boolean;
|
|
176
176
|
canAutoRefundOnCancel: boolean;
|
|
@@ -241,6 +241,9 @@ export interface BeforeYouComeTaskSummary {
|
|
|
241
241
|
completedAt: string | null;
|
|
242
242
|
prefillAvailable: boolean;
|
|
243
243
|
}
|
|
244
|
+
export type PortalBeforeYouComeTask = BeforeYouComeTaskSummary | Readonly<{
|
|
245
|
+
kind: 'unavailable';
|
|
246
|
+
}>;
|
|
244
247
|
export interface BookingQuestionsTaskDetail {
|
|
245
248
|
requirementId: string;
|
|
246
249
|
title: string;
|
|
@@ -336,7 +339,7 @@ export interface CustomerOrderActions {
|
|
|
336
339
|
payOnlineInProgress: boolean;
|
|
337
340
|
}
|
|
338
341
|
export interface CustomerOrderFlexibleBalance {
|
|
339
|
-
status:
|
|
342
|
+
status: BookingFlexibleBalanceContractStatus;
|
|
340
343
|
dueAt: string;
|
|
341
344
|
remainingBalanceCents: number;
|
|
342
345
|
upfrontAmountCents: number;
|
|
@@ -427,7 +430,7 @@ export declare function getEventBadgeVariant(status: CustomerEventRegistration['
|
|
|
427
430
|
* Get badge variant for appointment status
|
|
428
431
|
*/
|
|
429
432
|
export declare function getAppointmentBadgeVariant(status: CustomerAppointment['status']): BadgeVariant;
|
|
430
|
-
export declare function getBeforeYouComeBadgeVariant(status:
|
|
433
|
+
export declare function getBeforeYouComeBadgeVariant(status: BeforeYouComeTaskSummary['status']): BadgeVariant;
|
|
431
434
|
export declare function orderFilterLabel(filter: CustomerOrderFilter): string;
|
|
432
435
|
export declare function getOrderStatusBadgeVariant(status: CustomerOrder['status']): BadgeVariant;
|
|
433
436
|
export declare function getOrderPaymentStateBadgeVariant(paymentState: CustomerOrder['paymentState']): BadgeVariant;
|
|
@@ -4,5 +4,5 @@ export { makeDefaultBlockComponent, renderBlock } from '../system/componentFacto
|
|
|
4
4
|
export { getDefaultComponentRegistry } from '../system/runtime/components';
|
|
5
5
|
export { siteHeaderManifest } from '../system/blocks/site-header';
|
|
6
6
|
export { siteFooterManifest } from '../system/blocks/site-footer';
|
|
7
|
-
export { buildFooterRuntimeViewModel, type FooterRuntimeModule, type FooterResolvedEngagement, type FooterRuntimeEngagement, type FooterRuntimeViewModel, } from '../system/blocks/site-footer-runtime';
|
|
7
|
+
export { buildFooterRuntimeViewModel, resolveFooterLayoutHints, withFooterAttribution, type FooterAttribution, type FooterRuntimeModule, type FooterResolvedEngagement, type FooterRuntimeEngagement, type FooterRuntimeViewModel, } from '../system/blocks/site-footer-runtime';
|
|
8
8
|
export { resolveFooterRenderPlan } from '../../../theme-core/src/footer/mode';
|
|
@@ -603,13 +603,13 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
603
603
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
604
604
|
pricing: z.ZodType<PublicEventPricing, unknown, z.core.$ZodTypeInternals<PublicEventPricing, unknown>>;
|
|
605
605
|
paymentTerms: z.ZodObject<{
|
|
606
|
-
allowedOptions: z.ZodArray<z.
|
|
606
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
607
607
|
kind: z.ZodLiteral<"upfront">;
|
|
608
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
609
609
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
610
610
|
}, z.core.$strip>, z.ZodObject<{
|
|
611
611
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
612
|
-
plan: z.
|
|
612
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
613
613
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
614
614
|
depositAmountCents: z.ZodNumber;
|
|
615
615
|
depositRefundability: z.ZodEnum<{
|
|
@@ -645,24 +645,24 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
645
645
|
week: "week";
|
|
646
646
|
month: "month";
|
|
647
647
|
}>;
|
|
648
|
-
}, z.core.$strip>]>;
|
|
648
|
+
}, z.core.$strip>], "kind">;
|
|
649
649
|
}, z.core.$strip>, z.ZodObject<{
|
|
650
650
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
651
651
|
config: z.ZodObject<{
|
|
652
652
|
upfrontAmountCents: z.ZodNumber;
|
|
653
|
-
dueDateRule: z.
|
|
653
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
654
654
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
655
655
|
daysBeforeStart: z.ZodNumber;
|
|
656
656
|
}, z.core.$strip>, z.ZodObject<{
|
|
657
657
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
658
658
|
dueAt: z.ZodString;
|
|
659
|
-
}, z.core.$strip>]>;
|
|
659
|
+
}, z.core.$strip>], "kind">;
|
|
660
660
|
depositRefundability: z.ZodEnum<{
|
|
661
661
|
refundable: "refundable";
|
|
662
662
|
non_refundable: "non_refundable";
|
|
663
663
|
}>;
|
|
664
664
|
}, z.core.$strip>;
|
|
665
|
-
}, z.core.$strip>]>>;
|
|
665
|
+
}, z.core.$strip>], "kind">>;
|
|
666
666
|
}, z.core.$strip>;
|
|
667
667
|
cancellationPolicy: z.ZodObject<{
|
|
668
668
|
refunds: z.ZodObject<{
|
|
@@ -1092,13 +1092,13 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1092
1092
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1093
1093
|
pricing: z.ZodType<PublicEventPricing, unknown, z.core.$ZodTypeInternals<PublicEventPricing, unknown>>;
|
|
1094
1094
|
paymentTerms: z.ZodObject<{
|
|
1095
|
-
allowedOptions: z.ZodArray<z.
|
|
1095
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1096
1096
|
kind: z.ZodLiteral<"upfront">;
|
|
1097
1097
|
}, z.core.$strip>, z.ZodObject<{
|
|
1098
1098
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1099
1099
|
}, z.core.$strip>, z.ZodObject<{
|
|
1100
1100
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1101
|
-
plan: z.
|
|
1101
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1102
1102
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1103
1103
|
depositAmountCents: z.ZodNumber;
|
|
1104
1104
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1134,24 +1134,24 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1134
1134
|
week: "week";
|
|
1135
1135
|
month: "month";
|
|
1136
1136
|
}>;
|
|
1137
|
-
}, z.core.$strip>]>;
|
|
1137
|
+
}, z.core.$strip>], "kind">;
|
|
1138
1138
|
}, z.core.$strip>, z.ZodObject<{
|
|
1139
1139
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1140
1140
|
config: z.ZodObject<{
|
|
1141
1141
|
upfrontAmountCents: z.ZodNumber;
|
|
1142
|
-
dueDateRule: z.
|
|
1142
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1143
1143
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1144
1144
|
daysBeforeStart: z.ZodNumber;
|
|
1145
1145
|
}, z.core.$strip>, z.ZodObject<{
|
|
1146
1146
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1147
1147
|
dueAt: z.ZodString;
|
|
1148
|
-
}, z.core.$strip>]>;
|
|
1148
|
+
}, z.core.$strip>], "kind">;
|
|
1149
1149
|
depositRefundability: z.ZodEnum<{
|
|
1150
1150
|
refundable: "refundable";
|
|
1151
1151
|
non_refundable: "non_refundable";
|
|
1152
1152
|
}>;
|
|
1153
1153
|
}, z.core.$strip>;
|
|
1154
|
-
}, z.core.$strip>]>>;
|
|
1154
|
+
}, z.core.$strip>], "kind">>;
|
|
1155
1155
|
}, z.core.$strip>;
|
|
1156
1156
|
cancellationPolicy: z.ZodObject<{
|
|
1157
1157
|
refunds: z.ZodObject<{
|
|
@@ -1606,13 +1606,13 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1606
1606
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
1607
1607
|
pricing: z.ZodType<PublicEventPricing, unknown, z.core.$ZodTypeInternals<PublicEventPricing, unknown>>;
|
|
1608
1608
|
paymentTerms: z.ZodObject<{
|
|
1609
|
-
allowedOptions: z.ZodArray<z.
|
|
1609
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1610
1610
|
kind: z.ZodLiteral<"upfront">;
|
|
1611
1611
|
}, z.core.$strip>, z.ZodObject<{
|
|
1612
1612
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
1613
1613
|
}, z.core.$strip>, z.ZodObject<{
|
|
1614
1614
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
1615
|
-
plan: z.
|
|
1615
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1616
1616
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
1617
1617
|
depositAmountCents: z.ZodNumber;
|
|
1618
1618
|
depositRefundability: z.ZodEnum<{
|
|
@@ -1648,24 +1648,24 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1648
1648
|
week: "week";
|
|
1649
1649
|
month: "month";
|
|
1650
1650
|
}>;
|
|
1651
|
-
}, z.core.$strip>]>;
|
|
1651
|
+
}, z.core.$strip>], "kind">;
|
|
1652
1652
|
}, z.core.$strip>, z.ZodObject<{
|
|
1653
1653
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
1654
1654
|
config: z.ZodObject<{
|
|
1655
1655
|
upfrontAmountCents: z.ZodNumber;
|
|
1656
|
-
dueDateRule: z.
|
|
1656
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1657
1657
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
1658
1658
|
daysBeforeStart: z.ZodNumber;
|
|
1659
1659
|
}, z.core.$strip>, z.ZodObject<{
|
|
1660
1660
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
1661
1661
|
dueAt: z.ZodString;
|
|
1662
|
-
}, z.core.$strip>]>;
|
|
1662
|
+
}, z.core.$strip>], "kind">;
|
|
1663
1663
|
depositRefundability: z.ZodEnum<{
|
|
1664
1664
|
refundable: "refundable";
|
|
1665
1665
|
non_refundable: "non_refundable";
|
|
1666
1666
|
}>;
|
|
1667
1667
|
}, z.core.$strip>;
|
|
1668
|
-
}, z.core.$strip>]>>;
|
|
1668
|
+
}, z.core.$strip>], "kind">>;
|
|
1669
1669
|
}, z.core.$strip>;
|
|
1670
1670
|
cancellationPolicy: z.ZodObject<{
|
|
1671
1671
|
refunds: z.ZodObject<{
|
|
@@ -2095,13 +2095,13 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
2095
2095
|
siteTimeZone: z.ZodOptional<z.ZodString>;
|
|
2096
2096
|
pricing: z.ZodType<PublicEventPricing, unknown, z.core.$ZodTypeInternals<PublicEventPricing, unknown>>;
|
|
2097
2097
|
paymentTerms: z.ZodObject<{
|
|
2098
|
-
allowedOptions: z.ZodArray<z.
|
|
2098
|
+
allowedOptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2099
2099
|
kind: z.ZodLiteral<"upfront">;
|
|
2100
2100
|
}, z.core.$strip>, z.ZodObject<{
|
|
2101
2101
|
kind: z.ZodLiteral<"deferred_manual">;
|
|
2102
2102
|
}, z.core.$strip>, z.ZodObject<{
|
|
2103
2103
|
kind: z.ZodLiteral<"instalment_plan">;
|
|
2104
|
-
plan: z.
|
|
2104
|
+
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2105
2105
|
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
2106
2106
|
depositAmountCents: z.ZodNumber;
|
|
2107
2107
|
depositRefundability: z.ZodEnum<{
|
|
@@ -2137,24 +2137,24 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
2137
2137
|
week: "week";
|
|
2138
2138
|
month: "month";
|
|
2139
2139
|
}>;
|
|
2140
|
-
}, z.core.$strip>]>;
|
|
2140
|
+
}, z.core.$strip>], "kind">;
|
|
2141
2141
|
}, z.core.$strip>, z.ZodObject<{
|
|
2142
2142
|
kind: z.ZodLiteral<"flexible_balance">;
|
|
2143
2143
|
config: z.ZodObject<{
|
|
2144
2144
|
upfrontAmountCents: z.ZodNumber;
|
|
2145
|
-
dueDateRule: z.
|
|
2145
|
+
dueDateRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2146
2146
|
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
2147
2147
|
daysBeforeStart: z.ZodNumber;
|
|
2148
2148
|
}, z.core.$strip>, z.ZodObject<{
|
|
2149
2149
|
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
2150
2150
|
dueAt: z.ZodString;
|
|
2151
|
-
}, z.core.$strip>]>;
|
|
2151
|
+
}, z.core.$strip>], "kind">;
|
|
2152
2152
|
depositRefundability: z.ZodEnum<{
|
|
2153
2153
|
refundable: "refundable";
|
|
2154
2154
|
non_refundable: "non_refundable";
|
|
2155
2155
|
}>;
|
|
2156
2156
|
}, z.core.$strip>;
|
|
2157
|
-
}, z.core.$strip>]>>;
|
|
2157
|
+
}, z.core.$strip>], "kind">>;
|
|
2158
2158
|
}, z.core.$strip>;
|
|
2159
2159
|
cancellationPolicy: z.ZodObject<{
|
|
2160
2160
|
refunds: z.ZodObject<{
|
|
@@ -164,7 +164,7 @@ export type PublicEventBase = {
|
|
|
164
164
|
/** Whether waitlist registration is available when the event is full. */
|
|
165
165
|
waitlistEnabled: boolean;
|
|
166
166
|
venue: EventVenue | null;
|
|
167
|
-
/** Event category for filtering
|
|
167
|
+
/** Parent Event category for filtering. */
|
|
168
168
|
eventCategory: EventCategory | null;
|
|
169
169
|
teamMembers?: PublicTeamMemberSummary[];
|
|
170
170
|
/** Event series status: 'active' events accept registrations, 'draft' events only in preview mode */
|
|
@@ -1,205 +1,129 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type BlockBookingFlexibleBalanceConfig = BookingFlexibleBalanceConfig;
|
|
5
|
-
export type BlockBookingFlexibleBalanceDueDateRule = BookingFlexibleBalanceDueDateRule;
|
|
6
|
-
export type BlockBookingDepositRefundPolicy = BookingDepositRefundPolicy;
|
|
7
|
-
export type { BookingDepositRefundPolicy, BookingFlexibleBalanceConfig, BookingFlexibleBalanceDueDateRule, BookingInstalmentPlanConfig, };
|
|
8
|
-
export type BlockBookingPaymentCollectionOption = {
|
|
9
|
-
kind: "upfront";
|
|
10
|
-
} | {
|
|
11
|
-
kind: "deferred_manual";
|
|
12
|
-
} | {
|
|
13
|
-
kind: "instalment_plan";
|
|
14
|
-
plan: BlockBookingInstalmentPlan;
|
|
15
|
-
} | {
|
|
16
|
-
kind: "flexible_balance";
|
|
17
|
-
config: BlockBookingFlexibleBalanceConfig;
|
|
18
|
-
};
|
|
1
|
+
import type { BookingPaymentCollectionOption } from "../../../../../core/src/index";
|
|
2
|
+
/** Core's payment option, under the name the blocks runtime uses. */
|
|
3
|
+
export type BlockBookingPaymentCollectionOption = BookingPaymentCollectionOption;
|
|
19
4
|
export type BlockBookingPaymentTerms = {
|
|
20
5
|
allowedOptions: BlockBookingPaymentCollectionOption[];
|
|
21
6
|
};
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
remainderDueCount: z.ZodNumber;
|
|
34
|
-
intervalUnit: z.ZodEnum<{
|
|
35
|
-
day: "day";
|
|
36
|
-
week: "week";
|
|
37
|
-
month: "month";
|
|
38
|
-
}>;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
41
|
-
depositAmountCents: z.ZodNumber;
|
|
42
|
-
depositRefundability: z.ZodEnum<{
|
|
43
|
-
refundable: "refundable";
|
|
44
|
-
non_refundable: "non_refundable";
|
|
45
|
-
}>;
|
|
46
|
-
instalmentCount: z.ZodNumber;
|
|
47
|
-
intervalCount: z.ZodNumber;
|
|
48
|
-
intervalUnit: z.ZodEnum<{
|
|
49
|
-
day: "day";
|
|
50
|
-
week: "week";
|
|
51
|
-
month: "month";
|
|
52
|
-
}>;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
55
|
-
instalmentCount: z.ZodNumber;
|
|
56
|
-
intervalCount: z.ZodNumber;
|
|
57
|
-
intervalUnit: z.ZodEnum<{
|
|
58
|
-
day: "day";
|
|
59
|
-
week: "week";
|
|
60
|
-
month: "month";
|
|
61
|
-
}>;
|
|
62
|
-
}, z.core.$strip>]>;
|
|
63
|
-
export declare const bookingFlexibleBalanceDueDateRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
64
|
-
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
65
|
-
daysBeforeStart: z.ZodNumber;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
68
|
-
dueAt: z.ZodString;
|
|
69
|
-
}, z.core.$strip>]>;
|
|
70
|
-
export declare const bookingFlexibleBalanceConfigSchema: z.ZodObject<{
|
|
71
|
-
upfrontAmountCents: z.ZodNumber;
|
|
72
|
-
dueDateRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
73
|
-
kind: z.ZodLiteral<"relative_to_start_date">;
|
|
74
|
-
daysBeforeStart: z.ZodNumber;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
kind: z.ZodLiteral<"fixed_calendar_date">;
|
|
77
|
-
dueAt: z.ZodString;
|
|
78
|
-
}, z.core.$strip>]>;
|
|
79
|
-
depositRefundability: z.ZodEnum<{
|
|
80
|
-
refundable: "refundable";
|
|
81
|
-
non_refundable: "non_refundable";
|
|
82
|
-
}>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
export declare const blockBookingPaymentCollectionOptionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
85
|
-
kind: z.ZodLiteral<"upfront">;
|
|
86
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
-
kind: z.ZodLiteral<"deferred_manual">;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
kind: z.ZodLiteral<"instalment_plan">;
|
|
90
|
-
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
91
|
-
kind: z.ZodLiteral<"deposit_plus_one_remainder">;
|
|
92
|
-
depositAmountCents: z.ZodNumber;
|
|
93
|
-
depositRefundability: z.ZodEnum<{
|
|
7
|
+
export { bookingDepositRefundPolicySchema, bookingFlexibleBalanceConfigSchema, bookingFlexibleBalanceDueDateRuleSchema, bookingInstalmentPlanSchema, } from "../../../../../core/src/booking-payment-schemas";
|
|
8
|
+
export declare const blockBookingPaymentCollectionOptionSchema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
9
|
+
kind: import("zod").ZodLiteral<"upfront">;
|
|
10
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
11
|
+
kind: import("zod").ZodLiteral<"deferred_manual">;
|
|
12
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
13
|
+
kind: import("zod").ZodLiteral<"instalment_plan">;
|
|
14
|
+
plan: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
15
|
+
kind: import("zod").ZodLiteral<"deposit_plus_one_remainder">;
|
|
16
|
+
depositAmountCents: import("zod").ZodNumber;
|
|
17
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
94
18
|
refundable: "refundable";
|
|
95
19
|
non_refundable: "non_refundable";
|
|
96
20
|
}>;
|
|
97
|
-
remainderDueCount:
|
|
98
|
-
intervalUnit:
|
|
21
|
+
remainderDueCount: import("zod").ZodNumber;
|
|
22
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
99
23
|
day: "day";
|
|
100
24
|
week: "week";
|
|
101
25
|
month: "month";
|
|
102
26
|
}>;
|
|
103
|
-
},
|
|
104
|
-
kind:
|
|
105
|
-
depositAmountCents:
|
|
106
|
-
depositRefundability:
|
|
27
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
28
|
+
kind: import("zod").ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
29
|
+
depositAmountCents: import("zod").ZodNumber;
|
|
30
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
107
31
|
refundable: "refundable";
|
|
108
32
|
non_refundable: "non_refundable";
|
|
109
33
|
}>;
|
|
110
|
-
instalmentCount:
|
|
111
|
-
intervalCount:
|
|
112
|
-
intervalUnit:
|
|
34
|
+
instalmentCount: import("zod").ZodNumber;
|
|
35
|
+
intervalCount: import("zod").ZodNumber;
|
|
36
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
113
37
|
day: "day";
|
|
114
38
|
week: "week";
|
|
115
39
|
month: "month";
|
|
116
40
|
}>;
|
|
117
|
-
},
|
|
118
|
-
kind:
|
|
119
|
-
instalmentCount:
|
|
120
|
-
intervalCount:
|
|
121
|
-
intervalUnit:
|
|
41
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
42
|
+
kind: import("zod").ZodLiteral<"equal_scheduled_instalments">;
|
|
43
|
+
instalmentCount: import("zod").ZodNumber;
|
|
44
|
+
intervalCount: import("zod").ZodNumber;
|
|
45
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
122
46
|
day: "day";
|
|
123
47
|
week: "week";
|
|
124
48
|
month: "month";
|
|
125
49
|
}>;
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
kind:
|
|
129
|
-
config:
|
|
130
|
-
upfrontAmountCents:
|
|
131
|
-
dueDateRule:
|
|
132
|
-
kind:
|
|
133
|
-
daysBeforeStart:
|
|
134
|
-
},
|
|
135
|
-
kind:
|
|
136
|
-
dueAt:
|
|
137
|
-
},
|
|
138
|
-
depositRefundability:
|
|
50
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
51
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
52
|
+
kind: import("zod").ZodLiteral<"flexible_balance">;
|
|
53
|
+
config: import("zod").ZodObject<{
|
|
54
|
+
upfrontAmountCents: import("zod").ZodNumber;
|
|
55
|
+
dueDateRule: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
56
|
+
kind: import("zod").ZodLiteral<"relative_to_start_date">;
|
|
57
|
+
daysBeforeStart: import("zod").ZodNumber;
|
|
58
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
59
|
+
kind: import("zod").ZodLiteral<"fixed_calendar_date">;
|
|
60
|
+
dueAt: import("zod").ZodString;
|
|
61
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
62
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
139
63
|
refundable: "refundable";
|
|
140
64
|
non_refundable: "non_refundable";
|
|
141
65
|
}>;
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
export declare const blockBookingPaymentTermsSchema:
|
|
145
|
-
allowedOptions:
|
|
146
|
-
kind:
|
|
147
|
-
},
|
|
148
|
-
kind:
|
|
149
|
-
},
|
|
150
|
-
kind:
|
|
151
|
-
plan:
|
|
152
|
-
kind:
|
|
153
|
-
depositAmountCents:
|
|
154
|
-
depositRefundability:
|
|
66
|
+
}, import("zod/v4/core").$strip>;
|
|
67
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
68
|
+
export declare const blockBookingPaymentTermsSchema: import("zod").ZodObject<{
|
|
69
|
+
allowedOptions: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
70
|
+
kind: import("zod").ZodLiteral<"upfront">;
|
|
71
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
72
|
+
kind: import("zod").ZodLiteral<"deferred_manual">;
|
|
73
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
74
|
+
kind: import("zod").ZodLiteral<"instalment_plan">;
|
|
75
|
+
plan: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
76
|
+
kind: import("zod").ZodLiteral<"deposit_plus_one_remainder">;
|
|
77
|
+
depositAmountCents: import("zod").ZodNumber;
|
|
78
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
155
79
|
refundable: "refundable";
|
|
156
80
|
non_refundable: "non_refundable";
|
|
157
81
|
}>;
|
|
158
|
-
remainderDueCount:
|
|
159
|
-
intervalUnit:
|
|
82
|
+
remainderDueCount: import("zod").ZodNumber;
|
|
83
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
160
84
|
day: "day";
|
|
161
85
|
week: "week";
|
|
162
86
|
month: "month";
|
|
163
87
|
}>;
|
|
164
|
-
},
|
|
165
|
-
kind:
|
|
166
|
-
depositAmountCents:
|
|
167
|
-
depositRefundability:
|
|
88
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
89
|
+
kind: import("zod").ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
90
|
+
depositAmountCents: import("zod").ZodNumber;
|
|
91
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
168
92
|
refundable: "refundable";
|
|
169
93
|
non_refundable: "non_refundable";
|
|
170
94
|
}>;
|
|
171
|
-
instalmentCount:
|
|
172
|
-
intervalCount:
|
|
173
|
-
intervalUnit:
|
|
95
|
+
instalmentCount: import("zod").ZodNumber;
|
|
96
|
+
intervalCount: import("zod").ZodNumber;
|
|
97
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
174
98
|
day: "day";
|
|
175
99
|
week: "week";
|
|
176
100
|
month: "month";
|
|
177
101
|
}>;
|
|
178
|
-
},
|
|
179
|
-
kind:
|
|
180
|
-
instalmentCount:
|
|
181
|
-
intervalCount:
|
|
182
|
-
intervalUnit:
|
|
102
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
103
|
+
kind: import("zod").ZodLiteral<"equal_scheduled_instalments">;
|
|
104
|
+
instalmentCount: import("zod").ZodNumber;
|
|
105
|
+
intervalCount: import("zod").ZodNumber;
|
|
106
|
+
intervalUnit: import("zod").ZodEnum<{
|
|
183
107
|
day: "day";
|
|
184
108
|
week: "week";
|
|
185
109
|
month: "month";
|
|
186
110
|
}>;
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
kind:
|
|
190
|
-
config:
|
|
191
|
-
upfrontAmountCents:
|
|
192
|
-
dueDateRule:
|
|
193
|
-
kind:
|
|
194
|
-
daysBeforeStart:
|
|
195
|
-
},
|
|
196
|
-
kind:
|
|
197
|
-
dueAt:
|
|
198
|
-
},
|
|
199
|
-
depositRefundability:
|
|
111
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
112
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
113
|
+
kind: import("zod").ZodLiteral<"flexible_balance">;
|
|
114
|
+
config: import("zod").ZodObject<{
|
|
115
|
+
upfrontAmountCents: import("zod").ZodNumber;
|
|
116
|
+
dueDateRule: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
117
|
+
kind: import("zod").ZodLiteral<"relative_to_start_date">;
|
|
118
|
+
daysBeforeStart: import("zod").ZodNumber;
|
|
119
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
120
|
+
kind: import("zod").ZodLiteral<"fixed_calendar_date">;
|
|
121
|
+
dueAt: import("zod").ZodString;
|
|
122
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
123
|
+
depositRefundability: import("zod").ZodEnum<{
|
|
200
124
|
refundable: "refundable";
|
|
201
125
|
non_refundable: "non_refundable";
|
|
202
126
|
}>;
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
},
|
|
127
|
+
}, import("zod/v4/core").$strip>;
|
|
128
|
+
}, import("zod/v4/core").$strip>], "kind">>;
|
|
129
|
+
}, import("zod/v4/core").$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../registry";
|
|
2
2
|
import { type SectionStylesContent } from "../fields/boxStyles";
|
|
3
|
-
import { publicMembershipProductSchema, publicPassProductSchema, publicMembershipProductCollectionSchema, publicPassProductCollectionSchema, type PublicMembershipProductCollection, type PublicMembershipProduct, type PublicPassProductCollection, type PublicPassProduct, type PurchasablePublicPassProduct } from "./shop.shared";
|
|
3
|
+
import { publicMembershipProductSchema, publicPassProductSchema, publicMembershipProductCollectionSchema, publicPassProductCollectionSchema, type PublicMembershipProductCollection, type PublicMembershipProduct, type PublicPassProductCollection, type PublicPassProduct, type PurchasablePublicMembershipProduct, type PurchasablePublicPassProduct } from "./shop.shared";
|
|
4
4
|
import { shopBlockRuntime } from "../runtime/nodes/shop.interactive";
|
|
5
5
|
import type { BlockManifest } from "../manifest/schema";
|
|
6
6
|
import type { BlockButtonRole } from "../constants/buttonRoles";
|
|
@@ -39,5 +39,5 @@ export type ShopContent = {
|
|
|
39
39
|
_sectionStyles?: SectionStylesContent;
|
|
40
40
|
};
|
|
41
41
|
export { publicMembershipProductCollectionSchema, publicMembershipProductSchema, publicPassProductCollectionSchema, publicPassProductSchema, };
|
|
42
|
-
export type { PublicMembershipProductCollection, PublicMembershipProduct, PublicPassProductCollection, PublicPassProduct, PurchasablePublicPassProduct, };
|
|
42
|
+
export type { PublicMembershipProductCollection, PublicMembershipProduct, PublicPassProductCollection, PublicPassProduct, PurchasablePublicMembershipProduct, PurchasablePublicPassProduct, };
|
|
43
43
|
export declare const shopBlockDefinition: SystemBlockDefinition<ShopContent, typeof shopBlockRuntime>;
|
|
@@ -56,10 +56,8 @@ export type PublicPassProductCollection = Readonly<{
|
|
|
56
56
|
passes: readonly PublicPassProduct[];
|
|
57
57
|
}>;
|
|
58
58
|
export declare const publicPassProductCollectionSchema: z.ZodType<PublicPassProductCollection>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
export declare const publicMembershipProductSchema: z.ZodObject<{
|
|
59
|
+
export declare const purchasablePublicMembershipProductSchema: z.ZodObject<{
|
|
60
|
+
purchaseAvailability: z.ZodLiteral<"purchasable">;
|
|
63
61
|
id: z.ZodString;
|
|
64
62
|
name: z.ZodString;
|
|
65
63
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -72,7 +70,36 @@ export declare const publicMembershipProductSchema: z.ZodObject<{
|
|
|
72
70
|
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
73
71
|
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
74
72
|
}, z.core.$strip>;
|
|
73
|
+
export declare const publicMembershipProductSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
+
purchaseAvailability: z.ZodLiteral<"purchasable">;
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
description: z.ZodNullable<z.ZodString>;
|
|
78
|
+
price: z.ZodNumber;
|
|
79
|
+
currency: z.ZodString;
|
|
80
|
+
billingInterval: z.ZodEnum<{
|
|
81
|
+
month: "month";
|
|
82
|
+
year: "year";
|
|
83
|
+
}>;
|
|
84
|
+
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
85
|
+
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
purchaseAvailability: z.ZodLiteral<"display_only">;
|
|
88
|
+
unavailabilityReason: z.ZodLiteral<"online_payments_unavailable">;
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
description: z.ZodNullable<z.ZodString>;
|
|
92
|
+
price: z.ZodNumber;
|
|
93
|
+
currency: z.ZodString;
|
|
94
|
+
billingInterval: z.ZodEnum<{
|
|
95
|
+
month: "month";
|
|
96
|
+
year: "year";
|
|
97
|
+
}>;
|
|
98
|
+
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
99
|
+
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>], "purchaseAvailability">;
|
|
75
101
|
export type PublicMembershipProduct = z.infer<typeof publicMembershipProductSchema>;
|
|
102
|
+
export type PurchasablePublicMembershipProduct = z.infer<typeof purchasablePublicMembershipProductSchema>;
|
|
76
103
|
export type PublicMembershipProductCollection = Readonly<{
|
|
77
104
|
memberships: readonly PublicMembershipProduct[];
|
|
78
105
|
}>;
|