@riverbankcms/sdk 0.148.0 → 0.149.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/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-DBKln68M.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-DpRX4Mum.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +95 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +982 -734
- 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/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/index.d.ts +3 -3
- 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/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/siteOperations.d.ts +6 -2
- 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/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/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/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/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/PaymentSelectionStep.d.ts +2 -0
- 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/useEventRegistrationWizard.d.ts +4 -0
- 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/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/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/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -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 +3 -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/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -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 +3 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +297 -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/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- 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-Cr3EeTP5.mjs} +408 -69
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-BFGB1Fay.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-CjZgHNvv.mjs} +11 -8
- package/dist/client/bookings.mjs +424 -320
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/client.mjs +963 -866
- package/dist/client/{context-eW97E945.mjs → context-DFmaZa-Q.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-BBep1JnF.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-O6ZxHfOb.mjs} +67 -342
- package/dist/client/{form-BvpfbQaT.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +160 -129
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-BES87mrR.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DZd6RJeA.mjs} +155 -77
- package/dist/client/rendering/client.mjs +3356 -3192
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +956 -841
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-CJkuySJ3.mjs → shop-4F2jLQPI.mjs} +12 -13
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-BbfCJjB3.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-COYyL3m7.mjs} +6 -6
- 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-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +167 -131
- package/dist/server/config-validation.mjs +160 -129
- package/dist/server/config.mjs +160 -129
- package/dist/server/data.mjs +160 -129
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +174 -156
- package/dist/server/page-converter.mjs +145 -65
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +169 -131
- package/dist/server/rendering.mjs +167 -131
- package/dist/server/routing.mjs +165 -118
- package/dist/server/server.mjs +167 -154
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- 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
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { AppointmentBookingQuestionsTask } from "./bookingOperations";
|
|
2
2
|
import type { SiteRole } from "./siteMembers";
|
|
3
3
|
import type { AdminManagedSubscriptionActionChoice, ManagedManualBillingReason, SiteBillingArrangement, SiteBillingArrangementChangeOrigin, SiteBillingArrangementKind, SiteBillingArrangementSubscriptionAction, SiteBillingManualReviewPayload, SiteBillingManualReviewResolutionAction, SiteBillingManualReviewStatus } from "../../billing/src/site-arrangements";
|
|
4
|
+
/** Questions apply to the booking but its task can't be shown right now. */
|
|
5
|
+
type AppointmentBookingQuestionsTaskState = AppointmentBookingQuestionsTask | {
|
|
6
|
+
kind: 'unavailable';
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* Site Operations Contracts
|
|
6
10
|
*
|
|
@@ -40,7 +44,7 @@ export type PortalAppointmentWithDetails = {
|
|
|
40
44
|
status: string;
|
|
41
45
|
notes?: string | null;
|
|
42
46
|
createdAt: string;
|
|
43
|
-
beforeYouCome:
|
|
47
|
+
beforeYouCome: AppointmentBookingQuestionsTaskState | null;
|
|
44
48
|
cancellation: {
|
|
45
49
|
canCancel: boolean;
|
|
46
50
|
canAutoRefundOnCancel: boolean;
|
|
@@ -547,7 +551,7 @@ export type ReopenFlexibleBalanceBookingAfterNonPaymentCancellationRequest = {
|
|
|
547
551
|
export type FlexibleBalanceAdminActionResponse = {
|
|
548
552
|
action: "cancelled" | "reopened";
|
|
549
553
|
flexibleBalanceStatus: "cancelled_due_to_non_payment" | "overdue";
|
|
550
|
-
|
|
554
|
+
orderId: string;
|
|
551
555
|
};
|
|
552
556
|
export type CreateShopOrderPaymentLinkResponse = {
|
|
553
557
|
paymentLink: string;
|
|
@@ -6,7 +6,7 @@ export type { CalendarWindowQuery, CalendarWindowRequest, CalendarWindowPage, Ca
|
|
|
6
6
|
export type { AccordionIslandProps, CarouselIslandProps, EventDetailsIslandProps, EventDetailsOccurrenceContext, HeaderSectionIslandProps, LocationMapIslandProps, } from './non-block-islands';
|
|
7
7
|
export type { HeaderChromeRuntimeContract, HeaderScrollRuntime, } from '../system/runtime/header/runtimeContract';
|
|
8
8
|
export type { BookingFormConfig, BookingFormDisplay, BookingFormHydration, BookingFormInteractiveIslandProps, BookingFormService, CartDisplay, CartHydration, CartInteractiveIslandProps, CartLineDisplay, CheckoutDisplay, CheckoutHydration, CheckoutInteractiveIslandProps, EventCalendarDisplay, EventCalendarHydration, EventCalendarInteractiveIslandProps, EventCombinedDisplay, EventCombinedHydration, EventCombinedInteractiveIslandProps, EventRegistrationDisplay, EventRegistrationHydration, EventRegistrationInteractiveIslandProps, EventListingDisplay, EventListingHydration, EventListingInteractiveIslandProps, FormDisplay, FormHydration, FormInteractiveIslandProps, MembershipCardDisplay, NewsletterFormDisplay, NewsletterFormHydration, NewsletterFormInteractiveIslandProps, PassCardDisplay, PassesMembershipsDisplay, PassesMembershipsHydration, ProductCardDisplay, ProductDetailDisplay, ProductDetailInteractiveIslandProps, ProductDetailHydration, ProductListDisplay, ProductListInteractiveIslandProps, ProductListHydration, ProductVariantOptionDisplay, ShopInteractiveIslandProps, } from './proof-block-islands';
|
|
9
|
-
export type { PublicPassProduct, PurchasablePublicPassProduct, } from '../system/blocks/shop.shared';
|
|
9
|
+
export type { PublicMembershipProduct, PublicPassProduct, PurchasablePublicMembershipProduct, PurchasablePublicPassProduct, } from '../system/blocks/shop.shared';
|
|
10
10
|
export { accordionIslandPropsCodec, carouselIslandPropsCodec, eventDetailsIslandPropsCodec, headerSectionIslandPropsCodec, locationMapIslandPropsCodec, } from './non-block-islands';
|
|
11
11
|
export { createZodCodec, decodeFailure, decodeSuccess, defineClientOwnedBlockRuntime, defineProgressiveBlockRuntime, defineStaticBlockRuntime, isDecodeSuccess, } from './runtime';
|
|
12
12
|
export { buildInteractiveIslandProps, createInteractiveIslandCodec, defineInteractiveIslandMetaKeys } from './islands';
|
|
@@ -107,7 +107,7 @@ export declare const eventDetailsIslandPropsCodec: Readonly<{
|
|
|
107
107
|
passes: readonly import(".").PublicPassProduct[];
|
|
108
108
|
}> | null;
|
|
109
109
|
siteMemberships?: Readonly<{
|
|
110
|
-
memberships: readonly import("
|
|
110
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
111
111
|
}> | null;
|
|
112
112
|
autoApplyDiscount?: EventAutoApplyDiscountPreview | null;
|
|
113
113
|
className?: string | null;
|
|
@@ -131,7 +131,7 @@ export declare const eventDetailsIslandPropsCodec: Readonly<{
|
|
|
131
131
|
passes: readonly import(".").PublicPassProduct[];
|
|
132
132
|
}> | null;
|
|
133
133
|
siteMemberships?: Readonly<{
|
|
134
|
-
memberships: readonly import("
|
|
134
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
135
135
|
}> | null;
|
|
136
136
|
autoApplyDiscount?: EventAutoApplyDiscountPreview | null;
|
|
137
137
|
className?: string | null;
|
|
@@ -854,11 +854,18 @@ export declare const proofBlockIslandCodecs: {
|
|
|
854
854
|
description: string | null;
|
|
855
855
|
priceLabel: string;
|
|
856
856
|
intervalLabel: string;
|
|
857
|
-
|
|
857
|
+
action: Readonly<{
|
|
858
|
+
kind: "purchase";
|
|
859
|
+
label: string;
|
|
860
|
+
product: import(".").PurchasablePublicMembershipProduct;
|
|
861
|
+
}> | Readonly<{
|
|
862
|
+
kind: "unavailable";
|
|
863
|
+
label: string;
|
|
864
|
+
}>;
|
|
858
865
|
}>[];
|
|
859
866
|
}>;
|
|
860
867
|
hydration: Readonly<{
|
|
861
|
-
memberships: readonly import("
|
|
868
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
862
869
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
863
870
|
buttonVariant: import("..").BlockButtonRole;
|
|
864
871
|
demoEmailSuppressed?: boolean;
|
|
@@ -907,11 +914,18 @@ export declare const proofBlockIslandCodecs: {
|
|
|
907
914
|
description: string | null;
|
|
908
915
|
priceLabel: string;
|
|
909
916
|
intervalLabel: string;
|
|
910
|
-
|
|
917
|
+
action: Readonly<{
|
|
918
|
+
kind: "purchase";
|
|
919
|
+
label: string;
|
|
920
|
+
product: import(".").PurchasablePublicMembershipProduct;
|
|
921
|
+
}> | Readonly<{
|
|
922
|
+
kind: "unavailable";
|
|
923
|
+
label: string;
|
|
924
|
+
}>;
|
|
911
925
|
}>[];
|
|
912
926
|
}>;
|
|
913
927
|
hydration: Readonly<{
|
|
914
|
-
memberships: readonly import("
|
|
928
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
915
929
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
916
930
|
buttonVariant: import("..").BlockButtonRole;
|
|
917
931
|
demoEmailSuppressed?: boolean;
|
|
@@ -1826,11 +1840,18 @@ export declare const runtimeIslandCodecs: {
|
|
|
1826
1840
|
description: string | null;
|
|
1827
1841
|
priceLabel: string;
|
|
1828
1842
|
intervalLabel: string;
|
|
1829
|
-
|
|
1843
|
+
action: Readonly<{
|
|
1844
|
+
kind: "purchase";
|
|
1845
|
+
label: string;
|
|
1846
|
+
product: import(".").PurchasablePublicMembershipProduct;
|
|
1847
|
+
}> | Readonly<{
|
|
1848
|
+
kind: "unavailable";
|
|
1849
|
+
label: string;
|
|
1850
|
+
}>;
|
|
1830
1851
|
}>[];
|
|
1831
1852
|
}>;
|
|
1832
1853
|
hydration: Readonly<{
|
|
1833
|
-
memberships: readonly import("
|
|
1854
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
1834
1855
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1835
1856
|
buttonVariant: import("..").BlockButtonRole;
|
|
1836
1857
|
demoEmailSuppressed?: boolean;
|
|
@@ -1879,11 +1900,18 @@ export declare const runtimeIslandCodecs: {
|
|
|
1879
1900
|
description: string | null;
|
|
1880
1901
|
priceLabel: string;
|
|
1881
1902
|
intervalLabel: string;
|
|
1882
|
-
|
|
1903
|
+
action: Readonly<{
|
|
1904
|
+
kind: "purchase";
|
|
1905
|
+
label: string;
|
|
1906
|
+
product: import(".").PurchasablePublicMembershipProduct;
|
|
1907
|
+
}> | Readonly<{
|
|
1908
|
+
kind: "unavailable";
|
|
1909
|
+
label: string;
|
|
1910
|
+
}>;
|
|
1883
1911
|
}>[];
|
|
1884
1912
|
}>;
|
|
1885
1913
|
hydration: Readonly<{
|
|
1886
|
-
memberships: readonly import("
|
|
1914
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
1887
1915
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
1888
1916
|
buttonVariant: import("..").BlockButtonRole;
|
|
1889
1917
|
demoEmailSuppressed?: boolean;
|
|
@@ -1952,7 +1980,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1952
1980
|
passes: readonly import(".").PublicPassProduct[];
|
|
1953
1981
|
}> | null;
|
|
1954
1982
|
siteMemberships?: Readonly<{
|
|
1955
|
-
memberships: readonly import("
|
|
1983
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
1956
1984
|
}> | null;
|
|
1957
1985
|
autoApplyDiscount?: import("..").EventAutoApplyDiscountPreview | null;
|
|
1958
1986
|
className?: string | null;
|
|
@@ -1976,7 +2004,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1976
2004
|
passes: readonly import(".").PublicPassProduct[];
|
|
1977
2005
|
}> | null;
|
|
1978
2006
|
siteMemberships?: Readonly<{
|
|
1979
|
-
memberships: readonly import("
|
|
2007
|
+
memberships: readonly import(".").PublicMembershipProduct[];
|
|
1980
2008
|
}> | null;
|
|
1981
2009
|
autoApplyDiscount?: import("..").EventAutoApplyDiscountPreview | null;
|
|
1982
2010
|
className?: string | null;
|
|
@@ -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;
|
|
@@ -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 */
|