@loczer/storefront-sdk 0.152.0 → 0.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StorefrontProvider.d.ts +677 -1139
- package/dist/StorefrontProvider.d.ts.map +1 -0
- package/dist/components/AboutSection/index.d.ts.map +1 -0
- package/dist/components/AboutSection/index.js +6 -6
- package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -0
- package/dist/components/BikeProductCard/index.d.ts.map +1 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +12 -2
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -0
- package/dist/components/BookingFlowSteps/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts +9 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts +2 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts +24 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +22 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +102 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -0
- package/dist/components/ContactSection/index.d.ts.map +1 -0
- package/dist/components/ContactSection/index.js +5 -5
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts +8 -0
- package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts +13 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +18 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/Page.d.ts +8 -0
- package/dist/components/ContractSaleDocument/Page.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts +11 -0
- package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts +9 -0
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +12 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts +12 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/index.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/language.d.ts +7 -0
- package/dist/components/ContractSaleDocument/language.d.ts.map +1 -0
- package/dist/components/DelayedReveal/index.d.ts.map +1 -0
- package/dist/components/DeliveryAddressSelector/index.d.ts.map +1 -0
- package/dist/components/Footer/BusinessHours.d.ts +17 -0
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +14 -0
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursUtils.js +16 -16
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/FulfillmentSection/index.d.ts.map +1 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Map/createMarkerElement.d.ts +2 -0
- package/dist/components/Map/createMarkerElement.d.ts.map +1 -0
- package/dist/components/Map/index.d.ts +101 -1
- package/dist/components/Map/index.d.ts.map +1 -0
- package/dist/components/Map/index.js +4 -3
- package/dist/components/PlatformFooter/index.d.ts.map +1 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -0
- package/dist/components/PoweredByLoczerBadge/index.d.ts.map +1 -0
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -0
- package/dist/components/ProductWarningNotice/index.d.ts.map +1 -0
- package/dist/components/StepSectionTitle/index.d.ts.map +1 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -0
- package/dist/components/StorefrontCartPanel/index.js +68 -63
- package/dist/components/StorefrontPopupMessages/index.d.ts.map +1 -0
- package/dist/components/TestimonialsSection/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +5 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/index.d.ts.map +1 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +11 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts +11 -0
- package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts +16 -0
- package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -0
- package/dist/components/payment/index.d.ts.map +1 -0
- package/dist/data/accessories.d.ts.map +1 -0
- package/dist/data/bikes.d.ts.map +1 -0
- package/dist/data/config.d.ts.map +1 -0
- package/dist/i18n/I18nProvider.d.ts.map +1 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/fr.d.ts.map +1 -0
- package/dist/i18n/fr.js +1 -0
- package/dist/index.d.ts +5228 -0
- package/dist/index.js +103 -100
- package/dist/lib/apiCall.d.ts.map +1 -0
- package/dist/lib/booking-period-time-slots.d.ts.map +1 -0
- package/dist/lib/booking-period.d.ts.map +1 -0
- package/dist/lib/booking.d.ts.map +1 -0
- package/dist/lib/cart.d.ts.map +1 -0
- package/dist/lib/cartSummary.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -0
- package/dist/lib/checkoutPaymentSession.d.ts.map +1 -0
- package/dist/lib/checkoutSubmit.d.ts.map +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -0
- package/dist/lib/checkoutVerifyCoupon.js +1 -0
- package/dist/lib/contactForm.d.ts.map +1 -0
- package/dist/lib/contractSaleDocument.d.ts.map +1 -0
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -0
- package/dist/lib/isAutomationRuntime.d.ts.map +1 -0
- package/dist/lib/mollieComponentStyles.d.ts.map +1 -0
- package/dist/lib/playgroundDevSettings.d.ts.map +1 -0
- package/dist/lib/pricing.d.ts.map +1 -0
- package/dist/lib/productImageStyles.d.ts.map +1 -0
- package/dist/lib/productVariants.d.ts.map +1 -0
- package/dist/lib/products.d.ts.map +1 -0
- package/dist/lib/richAddress.d.ts.map +1 -0
- package/dist/lib/securePaymentLink.d.ts.map +1 -0
- package/dist/lib/storefrontAvailability.d.ts.map +1 -0
- package/dist/lib/storefrontImage.d.ts.map +1 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -0
- package/dist/lib/storefrontReviews.d.ts.map +1 -0
- package/dist/lib/storefrontTimeSlots.d.ts.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/whatsapp.d.ts.map +1 -0
- package/dist/localization.d.ts +9 -13
- package/dist/localization.d.ts.map +1 -0
- package/dist/pages/BookingPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/pages/CheckoutPage.js +56 -51
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -0
- package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -0
- package/dist/pages/ErrorPage.d.ts.map +1 -0
- package/dist/pages/HomePage.d.ts.map +1 -0
- package/dist/pages/NotFoundPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkPage.d.ts.map +1 -0
- package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -0
- package/dist/pages/ProductPage.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts +15 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +9 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts +22 -0
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +23 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +7 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +16 -14
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts +9 -0
- package/dist/pages/checkout/components/MollieCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts +8 -0
- package/dist/pages/checkout/components/StripeCheckoutForm.d.ts.map +1 -0
- package/dist/pages/checkout/types.d.ts +14 -0
- package/dist/pages/checkout/types.d.ts.map +1 -0
- package/dist/routes.d.ts +3 -6
- package/dist/routes.d.ts.map +1 -0
- package/dist/static/strings.d.ts +2 -0
- package/dist/static/strings.d.ts.map +1 -0
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +565 -596
- package/dist/storefrontSchemas.d.ts.map +1 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +17 -17
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +8 -11
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +52 -86
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/radio-group.d.ts +10 -7
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +63 -45
- package/dist/ui/select.d.ts +29 -15
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +158 -232
- package/dist/ui/slot.d.ts +3 -7
- package/dist/ui/slot.d.ts.map +1 -0
- package/dist/ui/slot.js +47 -27
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/theme.d.ts +9 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +24 -0
- package/dist/ui/tooltip.d.ts +30 -13
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +89 -60
- package/package.json +4 -2
- package/dist/BookingPage.d.ts +0 -6
- package/dist/CheckoutPage.d.ts +0 -6
- package/dist/CheckoutPaymentPage.d.ts +0 -6
- package/dist/CheckoutSuccessPage.d.ts +0 -6
- package/dist/ContractSaleDocumentPage.d.ts +0 -116
- package/dist/ErrorPage.d.ts +0 -6
- package/dist/HomePage.d.ts +0 -6
- package/dist/I18nProvider.d.ts +0 -23
- package/dist/NotFoundPage.d.ts +0 -6
- package/dist/PaymentLinkPage.d.ts +0 -40
- package/dist/PaymentLinkSuccessPage.d.ts +0 -40
- package/dist/ProductPage.d.ts +0 -6
- package/dist/accessories.d.ts +0 -42
- package/dist/apiCall.d.ts +0 -7
- package/dist/badge.d.ts +0 -14
- package/dist/bikes.d.ts +0 -107
- package/dist/booking-period-time-slots.d.ts +0 -264
- package/dist/booking-period.d.ts +0 -193
- package/dist/booking.d.ts +0 -402
- package/dist/button.d.ts +0 -16
- package/dist/card.d.ts +0 -18
- package/dist/cart.d.ts +0 -30
- package/dist/cartSummary.d.ts +0 -205
- package/dist/checkoutPaymentDecision.d.ts +0 -48
- package/dist/checkoutPaymentSession.d.ts +0 -65
- package/dist/checkoutSubmit.d.ts +0 -97
- package/dist/checkoutVerifyCoupon.d.ts +0 -45
- package/dist/config.d.ts +0 -19
- package/dist/contactForm.d.ts +0 -22
- package/dist/contractSaleDocument.d.ts +0 -242
- package/dist/contractSaleDocumentApi.d.ts +0 -481
- package/dist/en.d.ts +0 -369
- package/dist/form.d.ts +0 -44
- package/dist/fr.d.ts +0 -369
- package/dist/input.d.ts +0 -5
- package/dist/isAutomationRuntime.d.ts +0 -3
- package/dist/label.d.ts +0 -7
- package/dist/mollieComponentStyles.d.ts +0 -3
- package/dist/playgroundDevSettings.d.ts +0 -19
- package/dist/pricing.d.ts +0 -35
- package/dist/productImageStyles.d.ts +0 -25
- package/dist/productVariants.d.ts +0 -16
- package/dist/products.d.ts +0 -224
- package/dist/radio-group.d.ts +0 -14
- package/dist/richAddress.d.ts +0 -24
- package/dist/securePaymentLink.d.ts +0 -125
- package/dist/select.d.ts +0 -41
- package/dist/slot.d.ts +0 -15
- package/dist/storefrontAvailability.d.ts +0 -107
- package/dist/storefrontImage.d.ts +0 -16
- package/dist/storefrontProducts.d.ts +0 -400
- package/dist/storefrontReviews.d.ts +0 -84
- package/dist/storefrontTimeSlots.d.ts +0 -53
- package/dist/textarea.d.ts +0 -5
- package/dist/tooltip.d.ts +0 -43
- package/dist/utils.d.ts +0 -23
- package/dist/whatsapp.d.ts +0 -326
package/dist/booking.d.ts
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare const applyBookingParamsToSearch: (searchParams: URLSearchParams, booking: Partial<StorefrontBookingParams>) => URLSearchParams;
|
|
4
|
-
|
|
5
|
-
export declare const BOOKING_SEARCH_KEYS: readonly ["fulfillment", "start_date", "start_time", "end_date", "end_time", "start_address", "end_address"];
|
|
6
|
-
|
|
7
|
-
export declare type BookingFulfillment = "pickup" | "delivery";
|
|
8
|
-
|
|
9
|
-
declare type BookingPeriodConfig = {
|
|
10
|
-
timing: BookingTimingConfig;
|
|
11
|
-
openingHours: StoreOpeningHours;
|
|
12
|
-
openingHoursOverrides: StoreOpeningOverride[];
|
|
13
|
-
timeZone: string;
|
|
14
|
-
extraTimeSlots?: BookingPeriodExtraTimeSlotRule[];
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
declare type BookingPeriodExtraTimeSlotRule = {
|
|
18
|
-
minutesAfterClose: number;
|
|
19
|
-
extraAmount: number;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
declare type BookingSearchStorage = Pick<Storage, "getItem" | "removeItem" | "setItem"> | null | undefined;
|
|
23
|
-
|
|
24
|
-
declare type BookingTimingConfig = {
|
|
25
|
-
slotIntervalMinutes: number;
|
|
26
|
-
autoFillCutoffMinutes: number;
|
|
27
|
-
pastToleranceMinutes: number;
|
|
28
|
-
minBufferMinutes: number;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export declare const createBookingPeriodConfigFromBookingEngineConfiguration: (bookingEngine: StorefrontConfiguration["bookingEngine"], options?: {
|
|
32
|
-
sameDayCutoff?: string;
|
|
33
|
-
}) => BookingPeriodConfig;
|
|
34
|
-
|
|
35
|
-
export declare const createBookingPeriodConfigFromStorefrontConfiguration: (storefrontConfiguration: StorefrontConfiguration) => BookingPeriodConfig;
|
|
36
|
-
|
|
37
|
-
export declare const getBookingDurationLabel: (booking: StorefrontBookingParams) => {
|
|
38
|
-
hours: number;
|
|
39
|
-
minutes: number;
|
|
40
|
-
label: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export declare const getBookingDurationMinutes: (booking: StorefrontBookingParams) => number;
|
|
44
|
-
|
|
45
|
-
export declare const getBookingParamsFromSearch: (searchParams: URLSearchParams, fallback?: Partial<StorefrontBookingParams>) => StorefrontBookingParams;
|
|
46
|
-
|
|
47
|
-
export declare const getBookingSessionStorageKey: (storeSlug?: string) => string;
|
|
48
|
-
|
|
49
|
-
export declare const getDefaultBookingParams: (now?: Date) => StorefrontBookingParams;
|
|
50
|
-
|
|
51
|
-
export declare const getDefaultBookingParamsForStorefrontConfiguration: (storefrontConfiguration: StorefrontConfiguration, now?: Date) => StorefrontBookingParams;
|
|
52
|
-
|
|
53
|
-
export declare const pickBookingSearchParams: (searchParams: URLSearchParams) => URLSearchParams;
|
|
54
|
-
|
|
55
|
-
export declare const readBookingSearchParamsFromSessionStorage: (storeSlug?: string) => URLSearchParams;
|
|
56
|
-
|
|
57
|
-
export declare const readBookingSearchParamsFromStorage: (storage: BookingSearchStorage, storeSlug?: string) => URLSearchParams;
|
|
58
|
-
|
|
59
|
-
export declare const resolveBookingSearchParams: (searchParams: URLSearchParams, options?: {
|
|
60
|
-
storage?: BookingSearchStorage;
|
|
61
|
-
storeSlug?: string;
|
|
62
|
-
}) => URLSearchParams;
|
|
63
|
-
|
|
64
|
-
export declare const resolveBookingSearchParamsFromSessionStorage: (searchParams: URLSearchParams, storeSlug?: string) => URLSearchParams;
|
|
65
|
-
|
|
66
|
-
export declare type StorefrontBookingParams = {
|
|
67
|
-
fulfillment: BookingFulfillment;
|
|
68
|
-
start_date: string;
|
|
69
|
-
start_time: string;
|
|
70
|
-
end_date: string;
|
|
71
|
-
end_time: string;
|
|
72
|
-
start_address: string;
|
|
73
|
-
end_address: string;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare type StorefrontConfiguration = z.infer<typeof storefrontConfigurationSchema>;
|
|
77
|
-
|
|
78
|
-
declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
79
|
-
storeSlug: z.ZodString;
|
|
80
|
-
workspace: z.ZodOptional<z.ZodObject<{
|
|
81
|
-
name: z.ZodOptional<z.ZodString>;
|
|
82
|
-
workspaceLanguage: z.ZodOptional<z.ZodEnum<{
|
|
83
|
-
fr: "fr";
|
|
84
|
-
en: "en";
|
|
85
|
-
}>>;
|
|
86
|
-
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
shop: z.ZodObject<{
|
|
89
|
-
id: z.ZodString;
|
|
90
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
timeZone: z.ZodOptional<z.ZodString>;
|
|
93
|
-
url: z.ZodOptional<z.ZodString>;
|
|
94
|
-
googleMapsLink: z.ZodOptional<z.ZodString>;
|
|
95
|
-
googleRequestReviewsLink: z.ZodOptional<z.ZodString>;
|
|
96
|
-
emailAddress: z.ZodOptional<z.ZodString>;
|
|
97
|
-
contactPhone1: z.ZodOptional<z.ZodString>;
|
|
98
|
-
contactPhone2: z.ZodOptional<z.ZodString>;
|
|
99
|
-
address: z.ZodOptional<z.ZodString>;
|
|
100
|
-
city: z.ZodOptional<z.ZodString>;
|
|
101
|
-
country: z.ZodOptional<z.ZodString>;
|
|
102
|
-
gpsCoordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
settings: z.ZodObject<{
|
|
105
|
-
status: z.ZodEnum<{
|
|
106
|
-
unpublished: "unpublished";
|
|
107
|
-
published: "published";
|
|
108
|
-
}>;
|
|
109
|
-
checkoutMode: z.ZodEnum<{
|
|
110
|
-
auto_approve_when_possible: "auto_approve_when_possible";
|
|
111
|
-
manual_approval_required: "manual_approval_required";
|
|
112
|
-
}>;
|
|
113
|
-
availabilityDisplay: z.ZodObject<{
|
|
114
|
-
defaultMode: z.ZodEnum<{
|
|
115
|
-
soldOutOnly: "soldOutOnly";
|
|
116
|
-
soldOutAndFewRemaining: "soldOutAndFewRemaining";
|
|
117
|
-
fewRemaining: "fewRemaining";
|
|
118
|
-
fewRemainingCounts: "fewRemainingCounts";
|
|
119
|
-
remainingCounts: "remainingCounts";
|
|
120
|
-
}>;
|
|
121
|
-
defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
enabled: z.ZodBoolean;
|
|
124
|
-
fulfillmentModes: z.ZodArray<z.ZodEnum<{
|
|
125
|
-
pickup: "pickup";
|
|
126
|
-
delivery: "delivery";
|
|
127
|
-
}>>;
|
|
128
|
-
deliveryDisabledReason: z.ZodDefault<z.ZodString>;
|
|
129
|
-
sameDayCutoff: z.ZodString;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
bookingEngine: z.ZodType<{
|
|
132
|
-
availabilityDisplay: {
|
|
133
|
-
defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
|
|
134
|
-
defaultFewRemainingThreshold?: number | undefined;
|
|
135
|
-
};
|
|
136
|
-
holdSettings: {
|
|
137
|
-
enabled: boolean;
|
|
138
|
-
defaultTtlMinutes: number;
|
|
139
|
-
};
|
|
140
|
-
pricing: {
|
|
141
|
-
baseUnit: "hour" | "half_day" | "day" | "week" | "month";
|
|
142
|
-
rentalUnits: {
|
|
143
|
-
unit: "hour" | "half_day" | "day" | "week" | "month";
|
|
144
|
-
durationHours: number;
|
|
145
|
-
label?: Record<string, {
|
|
146
|
-
[x: string]: unknown;
|
|
147
|
-
value: string;
|
|
148
|
-
updatedAt: Date;
|
|
149
|
-
autoTranslated?: boolean | undefined;
|
|
150
|
-
}> | undefined;
|
|
151
|
-
}[];
|
|
152
|
-
halfDay?: {
|
|
153
|
-
enabled: boolean;
|
|
154
|
-
boundaryHour: number;
|
|
155
|
-
} | undefined;
|
|
156
|
-
};
|
|
157
|
-
bookingDeposit: {
|
|
158
|
-
enabled: boolean;
|
|
159
|
-
percentage: number;
|
|
160
|
-
optimizeDepositAmount: boolean;
|
|
161
|
-
};
|
|
162
|
-
securityDeposit: {
|
|
163
|
-
mode: "optional" | "required" | "disabled";
|
|
164
|
-
};
|
|
165
|
-
shop: {
|
|
166
|
-
timeZone: string;
|
|
167
|
-
openingHours: {
|
|
168
|
-
name: string;
|
|
169
|
-
startDate: string;
|
|
170
|
-
endDate: string;
|
|
171
|
-
openingHours: {
|
|
172
|
-
day: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
173
|
-
openingSlots: {
|
|
174
|
-
start: string;
|
|
175
|
-
end: string;
|
|
176
|
-
}[];
|
|
177
|
-
}[];
|
|
178
|
-
}[];
|
|
179
|
-
openingHoursOverrides?: {
|
|
180
|
-
date: string;
|
|
181
|
-
openingSlots: {
|
|
182
|
-
start: string;
|
|
183
|
-
end: string;
|
|
184
|
-
}[];
|
|
185
|
-
}[] | undefined;
|
|
186
|
-
extraTimeSlots?: {
|
|
187
|
-
minutesAfterClose: number;
|
|
188
|
-
extraAmount: number;
|
|
189
|
-
}[] | undefined;
|
|
190
|
-
};
|
|
191
|
-
currency: "EUR" | "USD" | "GBP" | "CHF";
|
|
192
|
-
checkout: {
|
|
193
|
-
mode: "auto_approve_when_possible" | "manual_approval_required";
|
|
194
|
-
dynamicOptions?: {
|
|
195
|
-
fulfillmentModes?: ("pickup" | "delivery")[] | undefined;
|
|
196
|
-
sameDayCutoff?: string | undefined;
|
|
197
|
-
} | undefined;
|
|
198
|
-
};
|
|
199
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
200
|
-
availabilityDisplay: {
|
|
201
|
-
defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
|
|
202
|
-
defaultFewRemainingThreshold?: number | undefined;
|
|
203
|
-
};
|
|
204
|
-
holdSettings: {
|
|
205
|
-
enabled: boolean;
|
|
206
|
-
defaultTtlMinutes: number;
|
|
207
|
-
};
|
|
208
|
-
pricing: {
|
|
209
|
-
baseUnit: "hour" | "half_day" | "day" | "week" | "month";
|
|
210
|
-
rentalUnits: {
|
|
211
|
-
unit: "hour" | "half_day" | "day" | "week" | "month";
|
|
212
|
-
durationHours: number;
|
|
213
|
-
label?: Record<string, {
|
|
214
|
-
[x: string]: unknown;
|
|
215
|
-
value: string;
|
|
216
|
-
updatedAt: Date;
|
|
217
|
-
autoTranslated?: boolean | undefined;
|
|
218
|
-
}> | undefined;
|
|
219
|
-
}[];
|
|
220
|
-
halfDay?: {
|
|
221
|
-
enabled: boolean;
|
|
222
|
-
boundaryHour: number;
|
|
223
|
-
} | undefined;
|
|
224
|
-
};
|
|
225
|
-
bookingDeposit: {
|
|
226
|
-
enabled: boolean;
|
|
227
|
-
percentage: number;
|
|
228
|
-
optimizeDepositAmount: boolean;
|
|
229
|
-
};
|
|
230
|
-
securityDeposit: {
|
|
231
|
-
mode: "optional" | "required" | "disabled";
|
|
232
|
-
};
|
|
233
|
-
shop: {
|
|
234
|
-
timeZone: string;
|
|
235
|
-
openingHours: {
|
|
236
|
-
name: string;
|
|
237
|
-
startDate: string;
|
|
238
|
-
endDate: string;
|
|
239
|
-
openingHours: {
|
|
240
|
-
day: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
241
|
-
openingSlots: {
|
|
242
|
-
start: string;
|
|
243
|
-
end: string;
|
|
244
|
-
}[];
|
|
245
|
-
}[];
|
|
246
|
-
}[];
|
|
247
|
-
openingHoursOverrides?: {
|
|
248
|
-
date: string;
|
|
249
|
-
openingSlots: {
|
|
250
|
-
start: string;
|
|
251
|
-
end: string;
|
|
252
|
-
}[];
|
|
253
|
-
}[] | undefined;
|
|
254
|
-
extraTimeSlots?: {
|
|
255
|
-
minutesAfterClose: number;
|
|
256
|
-
extraAmount: number;
|
|
257
|
-
}[] | undefined;
|
|
258
|
-
};
|
|
259
|
-
currency: "EUR" | "USD" | "GBP" | "CHF";
|
|
260
|
-
checkout: {
|
|
261
|
-
mode: "auto_approve_when_possible" | "manual_approval_required";
|
|
262
|
-
dynamicOptions?: {
|
|
263
|
-
fulfillmentModes?: ("pickup" | "delivery")[] | undefined;
|
|
264
|
-
sameDayCutoff?: string | undefined;
|
|
265
|
-
} | undefined;
|
|
266
|
-
};
|
|
267
|
-
}, unknown>>;
|
|
268
|
-
content: z.ZodOptional<z.ZodObject<{
|
|
269
|
-
tagline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
270
|
-
value: z.ZodString;
|
|
271
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
272
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
}, z.core.$loose>>>;
|
|
274
|
-
logoSquareImageId: z.ZodOptional<z.ZodString>;
|
|
275
|
-
logoWideImageId: z.ZodOptional<z.ZodString>;
|
|
276
|
-
galleryImageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
277
|
-
topBannerMessage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
278
|
-
value: z.ZodString;
|
|
279
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
280
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
-
}, z.core.$loose>>>;
|
|
282
|
-
about: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
283
|
-
version: z.ZodLiteral<1>;
|
|
284
|
-
json: z.ZodString;
|
|
285
|
-
html: z.ZodString;
|
|
286
|
-
text: z.ZodString;
|
|
287
|
-
}, z.core.$strict>>>;
|
|
288
|
-
whatsappPhone1Enabled: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
-
whatsappPhone2Enabled: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
-
whatsappMessage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
291
|
-
value: z.ZodString;
|
|
292
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
293
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
-
}, z.core.$loose>>>;
|
|
295
|
-
showWhatsappFloatingButton: z.ZodDefault<z.ZodBoolean>;
|
|
296
|
-
modalMessages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
297
|
-
id: z.ZodString;
|
|
298
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
299
|
-
showOnEachVisit: z.ZodDefault<z.ZodBoolean>;
|
|
300
|
-
startDate: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
endDate: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
302
|
-
title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
303
|
-
value: z.ZodString;
|
|
304
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
305
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
}, z.core.$loose>>>;
|
|
307
|
-
subtitle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
308
|
-
value: z.ZodString;
|
|
309
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
310
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
-
}, z.core.$loose>>>;
|
|
312
|
-
message: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
313
|
-
version: z.ZodLiteral<1>;
|
|
314
|
-
json: z.ZodString;
|
|
315
|
-
html: z.ZodString;
|
|
316
|
-
text: z.ZodString;
|
|
317
|
-
}, z.core.$strict>>>>;
|
|
318
|
-
imageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
319
|
-
}, z.core.$strip>>>;
|
|
320
|
-
faq: z.ZodDefault<z.ZodObject<{
|
|
321
|
-
general: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
322
|
-
id: z.ZodString;
|
|
323
|
-
question: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
324
|
-
value: z.ZodString;
|
|
325
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
326
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
327
|
-
}, z.core.$loose>>;
|
|
328
|
-
answer: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
329
|
-
value: z.ZodString;
|
|
330
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
331
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
-
}, z.core.$loose>>;
|
|
333
|
-
}, z.core.$strip>>>;
|
|
334
|
-
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
335
|
-
id: z.ZodString;
|
|
336
|
-
question: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
337
|
-
value: z.ZodString;
|
|
338
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
339
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
-
}, z.core.$loose>>;
|
|
341
|
-
answer: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
342
|
-
value: z.ZodString;
|
|
343
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
344
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
-
}, z.core.$loose>>;
|
|
346
|
-
}, z.core.$strip>>>;
|
|
347
|
-
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
348
|
-
id: z.ZodString;
|
|
349
|
-
question: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
350
|
-
value: z.ZodString;
|
|
351
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
352
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
-
}, z.core.$loose>>;
|
|
354
|
-
answer: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
355
|
-
value: z.ZodString;
|
|
356
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
357
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
-
}, z.core.$loose>>;
|
|
359
|
-
}, z.core.$strip>>>;
|
|
360
|
-
}, z.core.$strip>>;
|
|
361
|
-
}, z.core.$strip>>;
|
|
362
|
-
modules: z.ZodOptional<z.ZodObject<{
|
|
363
|
-
reviews: z.ZodOptional<z.ZodObject<{
|
|
364
|
-
enabled: z.ZodBoolean;
|
|
365
|
-
showRecentReviewsOnStorefront: z.ZodBoolean;
|
|
366
|
-
}, z.core.$strip>>;
|
|
367
|
-
}, z.core.$strip>>;
|
|
368
|
-
}, z.core.$strip>;
|
|
369
|
-
|
|
370
|
-
declare type StoreOpeningDay = {
|
|
371
|
-
day: Weekday;
|
|
372
|
-
openingSlots: StoreOpeningSlot[];
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
declare type StoreOpeningHours = StoreOpeningSeason[];
|
|
376
|
-
|
|
377
|
-
declare type StoreOpeningOverride = {
|
|
378
|
-
date: string;
|
|
379
|
-
openingSlots: StoreOpeningSlot[];
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
declare type StoreOpeningSeason = {
|
|
383
|
-
name?: string;
|
|
384
|
-
startDate: string;
|
|
385
|
-
endDate: string;
|
|
386
|
-
openingHours: StoreOpeningDay[];
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
declare type StoreOpeningSlot = {
|
|
390
|
-
start: string;
|
|
391
|
-
end: string;
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
export declare const TIME_OPTIONS: string[];
|
|
395
|
-
|
|
396
|
-
declare type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
397
|
-
|
|
398
|
-
export declare const writeBookingSearchParamsToSessionStorage: (storeSlug: string | undefined, booking: Partial<StorefrontBookingParams> | URLSearchParams) => void;
|
|
399
|
-
|
|
400
|
-
export declare const writeBookingSearchParamsToStorage: (storage: BookingSearchStorage, storeSlug: string | undefined, booking: Partial<StorefrontBookingParams> | URLSearchParams) => void;
|
|
401
|
-
|
|
402
|
-
export { }
|
package/dist/button.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
-
import * as React_2 from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
|
|
7
|
-
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare const buttonVariants: (props?: ({
|
|
12
|
-
variant?: "default" | "link" | "secondary" | "outline" | "destructive" | "ghost" | null | undefined;
|
|
13
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
14
|
-
} & ClassProp) | undefined) => string;
|
|
15
|
-
|
|
16
|
-
export { }
|
package/dist/card.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import * as React_2 from 'react';
|
|
3
|
-
|
|
4
|
-
export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
5
|
-
|
|
6
|
-
export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
7
|
-
|
|
8
|
-
export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
9
|
-
|
|
10
|
-
export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
13
|
-
|
|
14
|
-
export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
15
|
-
|
|
16
|
-
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { }
|
package/dist/cart.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
declare type StorefrontCartContextValue = {
|
|
5
|
-
items: StorefrontCartItem[];
|
|
6
|
-
itemCount: number;
|
|
7
|
-
addItem: (item: Omit<StorefrontCartItem, "key"> & {
|
|
8
|
-
key?: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
setQuantity: (key: string, quantity: number) => void;
|
|
11
|
-
removeItem: (key: string) => void;
|
|
12
|
-
clear: () => void;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export declare type StorefrontCartItem = {
|
|
16
|
-
key: string;
|
|
17
|
-
kind: "bike" | "e-bike" | "accessory";
|
|
18
|
-
productId: string;
|
|
19
|
-
productVariantId?: string;
|
|
20
|
-
quantity: number;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export declare function StorefrontCartProvider({ storeSlug, children }: {
|
|
24
|
-
storeSlug: string;
|
|
25
|
-
children: ReactNode;
|
|
26
|
-
}): JSX.Element;
|
|
27
|
-
|
|
28
|
-
export declare const useStorefrontCart: () => StorefrontCartContextValue;
|
|
29
|
-
|
|
30
|
-
export { }
|
package/dist/cartSummary.d.ts
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare type AccessoryProduct = StorefrontPublicAccessoryProduct & {
|
|
4
|
-
kind: "accessory";
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
declare type BikeProduct = Omit<StorefrontPublicBikeProduct, "kind"> & {
|
|
8
|
-
kind: "bike" | "e-bike";
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export declare const buildStorefrontCartSummary: (params: {
|
|
12
|
-
items: StorefrontCartItem[];
|
|
13
|
-
language: string;
|
|
14
|
-
fallbackLanguage?: string;
|
|
15
|
-
products: StorefrontProductsCollections;
|
|
16
|
-
estimatedDays?: number;
|
|
17
|
-
}) => StorefrontCartSummary;
|
|
18
|
-
|
|
19
|
-
declare type StorefrontAvailabilityIssue = "unavailable" | "quantity_unavailable";
|
|
20
|
-
|
|
21
|
-
declare type StorefrontCartItem = {
|
|
22
|
-
key: string;
|
|
23
|
-
kind: "bike" | "e-bike" | "accessory";
|
|
24
|
-
productId: string;
|
|
25
|
-
productVariantId?: string;
|
|
26
|
-
quantity: number;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export declare type StorefrontCartSummary = {
|
|
30
|
-
lines: StorefrontCartSummaryLine[];
|
|
31
|
-
totalPerDayMinor: number;
|
|
32
|
-
estimatedDays?: number;
|
|
33
|
-
estimatedTotalMinor?: number;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export declare type StorefrontCartSummaryLine = StorefrontCartItem & {
|
|
37
|
-
checkoutProductId: string;
|
|
38
|
-
productName: string;
|
|
39
|
-
productWarning?: string;
|
|
40
|
-
productVariantLabel?: string;
|
|
41
|
-
productVariantDescription?: string;
|
|
42
|
-
productVariantIsSize: boolean;
|
|
43
|
-
unitPriceMinor: number;
|
|
44
|
-
lineTotalMinor: number;
|
|
45
|
-
estimatedLineTotalMinor?: number;
|
|
46
|
-
availabilityStatus?: "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
47
|
-
insufficientCapacity?: boolean;
|
|
48
|
-
availabilityIssue?: StorefrontAvailabilityIssue;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
declare type StorefrontProductsCollections = {
|
|
52
|
-
bikes: BikeProduct[];
|
|
53
|
-
accessories: AccessoryProduct[];
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
|
|
57
|
-
|
|
58
|
-
declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
|
|
59
|
-
id: z.ZodString;
|
|
60
|
-
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
61
|
-
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
slug: z.ZodString;
|
|
63
|
-
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
64
|
-
value: z.ZodString;
|
|
65
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
66
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
}, z.core.$loose>>;
|
|
68
|
-
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
|
-
value: z.ZodString;
|
|
70
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
71
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
}, z.core.$loose>>>;
|
|
73
|
-
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
|
-
value: z.ZodString;
|
|
75
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
76
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
}, z.core.$loose>>>;
|
|
78
|
-
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
-
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
bgMode: z.ZodEnum<{
|
|
81
|
-
transparent: "transparent";
|
|
82
|
-
solid: "solid";
|
|
83
|
-
complex: "complex";
|
|
84
|
-
}>;
|
|
85
|
-
bgColor: z.ZodOptional<z.ZodString>;
|
|
86
|
-
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
88
|
-
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
}, z.core.$strip>>;
|
|
90
|
-
prices: z.ZodArray<z.ZodObject<{
|
|
91
|
-
value: z.ZodNumber;
|
|
92
|
-
unit: z.ZodEnum<{
|
|
93
|
-
hour: "hour";
|
|
94
|
-
half_day: "half_day";
|
|
95
|
-
day: "day";
|
|
96
|
-
week: "week";
|
|
97
|
-
month: "month";
|
|
98
|
-
}>;
|
|
99
|
-
quantity: z.ZodNumber;
|
|
100
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>>;
|
|
102
|
-
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
103
|
-
value: z.ZodString;
|
|
104
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
105
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
}, z.core.$loose>>>>;
|
|
107
|
-
productVariants: z.ZodArray<z.ZodObject<{
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
computedName: z.ZodString;
|
|
110
|
-
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
111
|
-
key: z.ZodString;
|
|
112
|
-
label: z.ZodOptional<z.ZodString>;
|
|
113
|
-
value: z.ZodString;
|
|
114
|
-
}, z.core.$strip>>>;
|
|
115
|
-
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
116
|
-
kind: z.ZodString;
|
|
117
|
-
value: z.ZodString;
|
|
118
|
-
}, z.core.$strip>>>;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
|
-
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
121
|
-
variant_selector: "variant_selector";
|
|
122
|
-
variants_as_products: "variants_as_products";
|
|
123
|
-
}>>;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
|
|
126
|
-
declare type StorefrontPublicBikeProduct = z.infer<typeof storefrontPublicBikeProductSchema>;
|
|
127
|
-
|
|
128
|
-
declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
129
|
-
id: z.ZodString;
|
|
130
|
-
checkoutProductId: z.ZodOptional<z.ZodString>;
|
|
131
|
-
representedVariantId: z.ZodOptional<z.ZodString>;
|
|
132
|
-
slug: z.ZodString;
|
|
133
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
bike: "bike";
|
|
135
|
-
"e-bike": "e-bike";
|
|
136
|
-
}>>;
|
|
137
|
-
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
138
|
-
value: z.ZodString;
|
|
139
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
140
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
}, z.core.$loose>>;
|
|
142
|
-
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
143
|
-
value: z.ZodString;
|
|
144
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
145
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
}, z.core.$loose>>>;
|
|
147
|
-
warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
148
|
-
value: z.ZodString;
|
|
149
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
150
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
-
}, z.core.$loose>>>;
|
|
152
|
-
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
-
primaryImageStyle: z.ZodOptional<z.ZodObject<{
|
|
154
|
-
bgMode: z.ZodEnum<{
|
|
155
|
-
transparent: "transparent";
|
|
156
|
-
solid: "solid";
|
|
157
|
-
complex: "complex";
|
|
158
|
-
}>;
|
|
159
|
-
bgColor: z.ZodOptional<z.ZodString>;
|
|
160
|
-
needsLightBorder: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
162
|
-
analyzerVersion: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
}, z.core.$strip>>;
|
|
164
|
-
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
-
value: z.ZodNumber;
|
|
166
|
-
unit: z.ZodEnum<{
|
|
167
|
-
hour: "hour";
|
|
168
|
-
half_day: "half_day";
|
|
169
|
-
day: "day";
|
|
170
|
-
week: "week";
|
|
171
|
-
month: "month";
|
|
172
|
-
}>;
|
|
173
|
-
quantity: z.ZodNumber;
|
|
174
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>>>;
|
|
176
|
-
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
177
|
-
value: z.ZodString;
|
|
178
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
179
|
-
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
-
}, z.core.$loose>>>>;
|
|
181
|
-
productVariants: z.ZodArray<z.ZodObject<{
|
|
182
|
-
id: z.ZodString;
|
|
183
|
-
computedName: z.ZodString;
|
|
184
|
-
attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
185
|
-
key: z.ZodString;
|
|
186
|
-
label: z.ZodOptional<z.ZodString>;
|
|
187
|
-
value: z.ZodString;
|
|
188
|
-
}, z.core.$strip>>>;
|
|
189
|
-
identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
-
kind: z.ZodString;
|
|
191
|
-
value: z.ZodString;
|
|
192
|
-
}, z.core.$strip>>>;
|
|
193
|
-
}, z.core.$strip>>;
|
|
194
|
-
storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
|
|
195
|
-
variant_selector: "variant_selector";
|
|
196
|
-
variants_as_products: "variants_as_products";
|
|
197
|
-
}>>;
|
|
198
|
-
availabilityStatus: z.ZodOptional<z.ZodEnum<{
|
|
199
|
-
AVAILABLE: "AVAILABLE";
|
|
200
|
-
LOW_STOCK: "LOW_STOCK";
|
|
201
|
-
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
202
|
-
}>>;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
|
|
205
|
-
export { }
|