@loczer/storefront-sdk 0.209.0 → 0.210.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/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/date/index-DAbcklF5.js +1 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/date/mini-CSEBo1ZP.js +60 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/index--u3Qf-qy.js +4 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/tz/index-CEcibV-H.js +1 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/tzOffset/index-COlDDdap.js +22 -0
- package/dist/chunks/pkg/booking-engine/dist/pricing-BJaynUu_.js +3 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/schedule-ssRov9xe.js +39 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/timezone-B6XIbBPz.js +79 -0
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
- package/dist/components/ProductPriceBadge/index.js +86 -80
- package/dist/components/StorefrontCartPanel/index.d.ts +4 -4
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +10 -9
- package/dist/i18n/en.d.ts +11 -6
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +13 -8
- package/dist/i18n/fr.d.ts +11 -6
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +13 -8
- package/dist/index.d.ts +54 -36
- package/dist/index.js +66 -66
- package/dist/lib/booking.d.ts +0 -6
- package/dist/lib/booking.d.ts.map +1 -1
- package/dist/lib/booking.js +51 -65
- package/dist/lib/cartSummary.d.ts +5 -3
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +7 -7
- package/dist/lib/pricing.d.ts +18 -6
- package/dist/lib/pricing.d.ts.map +1 -1
- package/dist/lib/pricing.js +45 -29
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +205 -201
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +277 -274
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +4 -4
- package/package.json +1 -1
package/dist/i18n/en.d.ts
CHANGED
|
@@ -137,12 +137,18 @@ export declare const storefront: {
|
|
|
137
137
|
price_then: string;
|
|
138
138
|
price_details_aria_label: string;
|
|
139
139
|
price_table_title: string;
|
|
140
|
-
|
|
141
|
-
price_table_day_other: string;
|
|
142
|
-
price_table_per_day: string;
|
|
140
|
+
price_table_per_unit: string;
|
|
143
141
|
price_table_contact_prompt: string;
|
|
142
|
+
price_unit_hour_one: string;
|
|
143
|
+
price_unit_hour_other: string;
|
|
144
|
+
price_unit_half_day_one: string;
|
|
145
|
+
price_unit_half_day_other: string;
|
|
144
146
|
price_unit_day_one: string;
|
|
145
147
|
price_unit_day_other: string;
|
|
148
|
+
price_unit_week_one: string;
|
|
149
|
+
price_unit_week_other: string;
|
|
150
|
+
price_unit_month_one: string;
|
|
151
|
+
price_unit_month_other: string;
|
|
146
152
|
products_title: string;
|
|
147
153
|
products_description: string;
|
|
148
154
|
products_page_title: string;
|
|
@@ -162,7 +168,7 @@ export declare const storefront: {
|
|
|
162
168
|
cart_empty_description: string;
|
|
163
169
|
cart_line_meta: string;
|
|
164
170
|
remove_from_cart: string;
|
|
165
|
-
|
|
171
|
+
cart_total_per_unit: string;
|
|
166
172
|
cart_clear: string;
|
|
167
173
|
booking_select_variant_cancel: string;
|
|
168
174
|
close_modal: string;
|
|
@@ -184,8 +190,7 @@ export declare const storefront: {
|
|
|
184
190
|
checkout_subtitle: string;
|
|
185
191
|
checkout_summary_title: string;
|
|
186
192
|
checkout_summary_description: string;
|
|
187
|
-
|
|
188
|
-
checkout_estimated_days_other: string;
|
|
193
|
+
checkout_estimated_duration: string;
|
|
189
194
|
checkout_estimated_total: string;
|
|
190
195
|
checkout_form_title: string;
|
|
191
196
|
checkout_form_description: string;
|
package/dist/i18n/en.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgftB,CAAA"}
|
package/dist/i18n/en.js
CHANGED
|
@@ -134,16 +134,22 @@ var e = {
|
|
|
134
134
|
availability_checking: "Checking availability",
|
|
135
135
|
availability_remaining_count_one: "{{count}} available",
|
|
136
136
|
availability_remaining_count_other: "{{count}} available",
|
|
137
|
-
price_from: "From {{price}} /
|
|
137
|
+
price_from: "From {{price}} / {{unit}}",
|
|
138
138
|
price_then: "then {{price}}",
|
|
139
139
|
price_details_aria_label: "Show pricing details for {{price}}",
|
|
140
140
|
price_table_title: "Rental pricing",
|
|
141
|
-
|
|
142
|
-
price_table_day_other: "{{count}} days",
|
|
143
|
-
price_table_per_day: "{{price}}/d",
|
|
141
|
+
price_table_per_unit: "{{price}}/{{unit}}",
|
|
144
142
|
price_table_contact_prompt: "For a specific booking or a longer rental, feel free to contact us.",
|
|
143
|
+
price_unit_hour_one: "hour",
|
|
144
|
+
price_unit_hour_other: "hours",
|
|
145
|
+
price_unit_half_day_one: "half-day",
|
|
146
|
+
price_unit_half_day_other: "half-days",
|
|
145
147
|
price_unit_day_one: "day",
|
|
146
148
|
price_unit_day_other: "days",
|
|
149
|
+
price_unit_week_one: "week",
|
|
150
|
+
price_unit_week_other: "weeks",
|
|
151
|
+
price_unit_month_one: "month",
|
|
152
|
+
price_unit_month_other: "months",
|
|
147
153
|
products_title: "Our bikes range",
|
|
148
154
|
products_description: "Browse bikes and reserve in a few clicks.",
|
|
149
155
|
products_page_title: "Choose your bikes",
|
|
@@ -161,9 +167,9 @@ var e = {
|
|
|
161
167
|
cart_empty: "Your cart is empty.",
|
|
162
168
|
cart_empty_title: "Your cart is empty",
|
|
163
169
|
cart_empty_description: "Add a bike (and accessories) to continue.",
|
|
164
|
-
cart_line_meta: "Qty {{quantity}} · {{price}} /
|
|
170
|
+
cart_line_meta: "Qty {{quantity}} · {{price}} / {{unit}}",
|
|
165
171
|
remove_from_cart: "Remove from cart",
|
|
166
|
-
|
|
172
|
+
cart_total_per_unit: "Total / {{unit}}",
|
|
167
173
|
cart_clear: "Clear cart",
|
|
168
174
|
booking_select_variant_cancel: "Cancel",
|
|
169
175
|
close_modal: "Close",
|
|
@@ -185,8 +191,7 @@ var e = {
|
|
|
185
191
|
checkout_subtitle: "Confirm your details and payment · {{duration}}",
|
|
186
192
|
checkout_summary_title: "Summary",
|
|
187
193
|
checkout_summary_description: "Cart and pricing recap.",
|
|
188
|
-
|
|
189
|
-
checkout_estimated_days_other: "Estimated duration: {{count}} days",
|
|
194
|
+
checkout_estimated_duration: "Estimated duration",
|
|
190
195
|
checkout_estimated_total: "Booking total",
|
|
191
196
|
checkout_form_title: "Your details",
|
|
192
197
|
checkout_form_description: "Enter your details for this booking, and add any useful information in the notes.",
|
package/dist/i18n/fr.d.ts
CHANGED
|
@@ -137,12 +137,18 @@ export declare const storefront: {
|
|
|
137
137
|
price_then: string;
|
|
138
138
|
price_details_aria_label: string;
|
|
139
139
|
price_table_title: string;
|
|
140
|
-
|
|
141
|
-
price_table_day_other: string;
|
|
142
|
-
price_table_per_day: string;
|
|
140
|
+
price_table_per_unit: string;
|
|
143
141
|
price_table_contact_prompt: string;
|
|
142
|
+
price_unit_hour_one: string;
|
|
143
|
+
price_unit_hour_other: string;
|
|
144
|
+
price_unit_half_day_one: string;
|
|
145
|
+
price_unit_half_day_other: string;
|
|
144
146
|
price_unit_day_one: string;
|
|
145
147
|
price_unit_day_other: string;
|
|
148
|
+
price_unit_week_one: string;
|
|
149
|
+
price_unit_week_other: string;
|
|
150
|
+
price_unit_month_one: string;
|
|
151
|
+
price_unit_month_other: string;
|
|
146
152
|
products_title: string;
|
|
147
153
|
products_description: string;
|
|
148
154
|
products_page_title: string;
|
|
@@ -163,7 +169,7 @@ export declare const storefront: {
|
|
|
163
169
|
cart_empty_description: string;
|
|
164
170
|
cart_line_meta: string;
|
|
165
171
|
remove_from_cart: string;
|
|
166
|
-
|
|
172
|
+
cart_total_per_unit: string;
|
|
167
173
|
cart_clear: string;
|
|
168
174
|
booking_select_variant_cancel: string;
|
|
169
175
|
close_modal: string;
|
|
@@ -185,8 +191,7 @@ export declare const storefront: {
|
|
|
185
191
|
checkout_subtitle: string;
|
|
186
192
|
checkout_summary_title: string;
|
|
187
193
|
checkout_summary_description: string;
|
|
188
|
-
|
|
189
|
-
checkout_estimated_days_other: string;
|
|
194
|
+
checkout_estimated_duration: string;
|
|
190
195
|
checkout_estimated_total: string;
|
|
191
196
|
checkout_form_title: string;
|
|
192
197
|
checkout_form_description: string;
|
package/dist/i18n/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiftB,CAAA"}
|
package/dist/i18n/fr.js
CHANGED
|
@@ -134,16 +134,22 @@ var e = {
|
|
|
134
134
|
availability_checking: "Vérification de la disponibilité",
|
|
135
135
|
availability_remaining_count_one: "{{count}} disponible",
|
|
136
136
|
availability_remaining_count_other: "{{count}} disponibles",
|
|
137
|
-
price_from: "À partir de {{price}} /
|
|
137
|
+
price_from: "À partir de {{price}} / {{unit}}",
|
|
138
138
|
price_then: "puis {{price}}",
|
|
139
139
|
price_details_aria_label: "Voir le détail des tarifs pour {{price}}",
|
|
140
140
|
price_table_title: "Tarifs de location",
|
|
141
|
-
|
|
142
|
-
price_table_day_other: "{{count}} jours",
|
|
143
|
-
price_table_per_day: "{{price}}/j",
|
|
141
|
+
price_table_per_unit: "{{price}}/{{unit}}",
|
|
144
142
|
price_table_contact_prompt: "Pour une réservation spécifique ou une longue durée, n'hésitez pas à nous contacter.",
|
|
143
|
+
price_unit_hour_one: "heure",
|
|
144
|
+
price_unit_hour_other: "heures",
|
|
145
|
+
price_unit_half_day_one: "demi-journée",
|
|
146
|
+
price_unit_half_day_other: "demi-journées",
|
|
145
147
|
price_unit_day_one: "jour",
|
|
146
148
|
price_unit_day_other: "jours",
|
|
149
|
+
price_unit_week_one: "semaine",
|
|
150
|
+
price_unit_week_other: "semaines",
|
|
151
|
+
price_unit_month_one: "mois",
|
|
152
|
+
price_unit_month_other: "mois",
|
|
147
153
|
products_title: "Notre gamme de vélos",
|
|
148
154
|
products_description: "Parcourez les vélos et réservez en quelques clics.",
|
|
149
155
|
products_page_title: "Choisissez vos vélos",
|
|
@@ -162,9 +168,9 @@ var e = {
|
|
|
162
168
|
cart_empty: "Votre panier est vide.",
|
|
163
169
|
cart_empty_title: "Votre panier est vide",
|
|
164
170
|
cart_empty_description: "Ajoutez un vélo (et des accessoires) pour continuer.",
|
|
165
|
-
cart_line_meta: "Qté {{quantity}} · {{price}} /
|
|
171
|
+
cart_line_meta: "Qté {{quantity}} · {{price}} / {{unit}}",
|
|
166
172
|
remove_from_cart: "Retirer du panier",
|
|
167
|
-
|
|
173
|
+
cart_total_per_unit: "Total / {{unit}}",
|
|
168
174
|
cart_clear: "Vider le panier",
|
|
169
175
|
booking_select_variant_cancel: "Annuler",
|
|
170
176
|
close_modal: "Fermer",
|
|
@@ -186,8 +192,7 @@ var e = {
|
|
|
186
192
|
checkout_subtitle: "Confirmez vos informations et le paiement · {{duration}}",
|
|
187
193
|
checkout_summary_title: "Récapitulatif",
|
|
188
194
|
checkout_summary_description: "Panier et récap des montants.",
|
|
189
|
-
|
|
190
|
-
checkout_estimated_days_other: "Durée estimée : {{count}} jours",
|
|
195
|
+
checkout_estimated_duration: "Durée estimée",
|
|
191
196
|
checkout_estimated_total: "Total de la réservation",
|
|
192
197
|
checkout_form_title: "Vos informations",
|
|
193
198
|
checkout_form_description: "Renseignez vos coordonnées pour votre réservation. N'hésitez pas à ajouter toute information utile dans les notes.",
|
package/dist/index.d.ts
CHANGED
|
@@ -871,6 +871,11 @@ export declare type BookingPeriodTimeSlotsStatus = "local" | "loading" | "ready"
|
|
|
871
871
|
|
|
872
872
|
export declare type BookingPeriodTranslator = (key: string, options?: Record<string, unknown>) => string;
|
|
873
873
|
|
|
874
|
+
export declare type BookingRentalUnitSummary = {
|
|
875
|
+
priceUnit: PriceUnit_2;
|
|
876
|
+
billableUnitCount: number;
|
|
877
|
+
};
|
|
878
|
+
|
|
874
879
|
export declare type BookingScheduleInput = z.infer<typeof bookingScheduleInputSchema>;
|
|
875
880
|
|
|
876
881
|
export declare const bookingScheduleInputSchema: z.ZodObject<{
|
|
@@ -908,9 +913,9 @@ export declare function buildBookingInsuranceSnapshot(input: {
|
|
|
908
913
|
items: InsuranceQuoteItemInput[];
|
|
909
914
|
}): BookingInsuranceSnapshot;
|
|
910
915
|
|
|
911
|
-
export declare function
|
|
916
|
+
export declare function buildPriceTierLabels(prices: StorefrontPublicProductPrice[] | undefined, locale: string, t: TFunction, priceUnit?: PriceUnit_2): string[];
|
|
912
917
|
|
|
913
|
-
export declare function
|
|
918
|
+
export declare function buildRentalPriceRows(prices: StorefrontPublicProductPrice[] | undefined, locale: string, priceUnit?: PriceUnit_2): RentalPriceRow[];
|
|
914
919
|
|
|
915
920
|
export declare const buildStorefrontAvailabilityKey: (productId: string, productVariantId?: string | null) => string;
|
|
916
921
|
|
|
@@ -919,7 +924,8 @@ export declare const buildStorefrontCartSummary: (params: {
|
|
|
919
924
|
language: string;
|
|
920
925
|
fallbackLanguage?: string;
|
|
921
926
|
products: StorefrontProductsCollections;
|
|
922
|
-
|
|
927
|
+
priceUnit: StorefrontPublicProductPrice["unit"];
|
|
928
|
+
billableUnitCount?: number;
|
|
923
929
|
}) => StorefrontCartSummary;
|
|
924
930
|
|
|
925
931
|
export declare const buildStorefrontImageUrl: (imageId: string, storeSlug: string, width?: number) => string;
|
|
@@ -945,10 +951,12 @@ export declare const buttonVariants: (props?: ({
|
|
|
945
951
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
946
952
|
} & ClassProp) | undefined) => string;
|
|
947
953
|
|
|
948
|
-
export declare function
|
|
954
|
+
export declare function calculateBookingRentalUnitSummary(booking: StorefrontBookingParams, pricing: PricingConfiguration, timeZone?: string): BookingRentalUnitSummary | null;
|
|
949
955
|
|
|
950
956
|
export declare function calculateInsuranceCalendarDays(start: Date, end: Date, timeZone?: string): number;
|
|
951
957
|
|
|
958
|
+
export declare function calculateRentalPriceForQuantity(prices: StorefrontPublicProductPrice[] | undefined, unitCount: number, priceUnit?: PriceUnit_2): number | null;
|
|
959
|
+
|
|
952
960
|
export declare type CancellationPolicy = z.infer<typeof cancellationPolicySchema>;
|
|
953
961
|
|
|
954
962
|
export declare const cancellationPolicySchema: z.ZodObject<{
|
|
@@ -1617,12 +1625,6 @@ export declare const currencyCodeSchema: z.ZodEnum<{
|
|
|
1617
1625
|
|
|
1618
1626
|
export declare function currencyMinorUnitDigits(_currency: CurrencyCode): number;
|
|
1619
1627
|
|
|
1620
|
-
export declare type DailyPriceRow = {
|
|
1621
|
-
dayCount: number;
|
|
1622
|
-
totalPriceLabel: string;
|
|
1623
|
-
perDayPriceLabel: string;
|
|
1624
|
-
};
|
|
1625
|
-
|
|
1626
1628
|
export declare const DEFAULT_BOOKING_DELIVERY_OPTION: "pickup";
|
|
1627
1629
|
|
|
1628
1630
|
export declare const DEFAULT_CANCELLATION_POLICY: CancellationPolicy;
|
|
@@ -1768,6 +1770,8 @@ export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: stri
|
|
|
1768
1770
|
maximumFractionDigits?: number;
|
|
1769
1771
|
}) => string;
|
|
1770
1772
|
|
|
1773
|
+
export declare function formatRentalUnitQuantity(quantity: number, priceUnit: PriceUnit_2, locale: string, t: TFunction): string;
|
|
1774
|
+
|
|
1771
1775
|
export declare const formatStorefrontPhoneDisplay: (phone: string, country?: string) => string;
|
|
1772
1776
|
|
|
1773
1777
|
export declare const formatStorefrontPriceMinor: (valueMinor: number, locale: string, { currency }?: {
|
|
@@ -1800,14 +1804,6 @@ export declare const getAvailabilityVariant: (status: string | undefined) => {
|
|
|
1800
1804
|
variant: "secondary" | "outline" | "destructive";
|
|
1801
1805
|
};
|
|
1802
1806
|
|
|
1803
|
-
export declare const getBookingDurationLabel: (booking: StorefrontBookingParams) => {
|
|
1804
|
-
hours: number;
|
|
1805
|
-
minutes: number;
|
|
1806
|
-
label: string;
|
|
1807
|
-
};
|
|
1808
|
-
|
|
1809
|
-
export declare const getBookingDurationMinutes: (booking: StorefrontBookingParams) => number;
|
|
1810
|
-
|
|
1811
1807
|
export declare const getBookingParamsFromSearch: (searchParams: URLSearchParams, fallback?: Partial<StorefrontBookingParams>) => StorefrontBookingParams;
|
|
1812
1808
|
|
|
1813
1809
|
export declare const getBookingSessionStorageKey: (storeSlug?: string) => string;
|
|
@@ -1983,6 +1979,8 @@ export declare const getMinDayPriceMinor: (prices: Array<{
|
|
|
1983
1979
|
unit?: string;
|
|
1984
1980
|
}>) => MoneyMinor_2 | null;
|
|
1985
1981
|
|
|
1982
|
+
export declare function getPricingUnitLabel(priceUnit: PriceUnit_2, t: TFunction, count?: number): string;
|
|
1983
|
+
|
|
1986
1984
|
export declare const getStorefrontAvailabilityIssue: (record: StorefrontPublicAvailabilityRecord | undefined) => StorefrontAvailabilityIssue | undefined;
|
|
1987
1985
|
|
|
1988
1986
|
export declare const getStorefrontAvailabilityStatus: (record: StorefrontPublicAvailabilityRecord | undefined) => "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
@@ -2549,6 +2547,8 @@ export declare const priceSchema: z.ZodObject<{
|
|
|
2549
2547
|
|
|
2550
2548
|
export declare type PriceUnit = z.infer<typeof priceUnitSchema>;
|
|
2551
2549
|
|
|
2550
|
+
declare type PriceUnit_2 = StorefrontPublicProductPrice["unit"];
|
|
2551
|
+
|
|
2552
2552
|
export declare const priceUnitSchema: z.ZodEnum<{
|
|
2553
2553
|
day: "day";
|
|
2554
2554
|
half_day: "half_day";
|
|
@@ -2557,6 +2557,8 @@ export declare const priceUnitSchema: z.ZodEnum<{
|
|
|
2557
2557
|
week: "week";
|
|
2558
2558
|
}>;
|
|
2559
2559
|
|
|
2560
|
+
declare type PricingConfiguration = StorefrontConfiguration["bookingEngine"]["pricing"];
|
|
2561
|
+
|
|
2560
2562
|
export declare const PRODUCT_VARIANT_CODE_IDENTIFIER_KIND = "variant_code";
|
|
2561
2563
|
|
|
2562
2564
|
export declare const PRODUCT_VARIANT_CODE_MAX_LENGTH = 3;
|
|
@@ -3003,6 +3005,12 @@ export declare const readBookingSearchParamsFromSessionStorage: (storeSlug?: str
|
|
|
3003
3005
|
|
|
3004
3006
|
export declare const readBookingSearchParamsFromStorage: (storage: BookingSearchStorage, storeSlug?: string) => URLSearchParams;
|
|
3005
3007
|
|
|
3008
|
+
export declare type RentalPriceRow = {
|
|
3009
|
+
unitCount: number;
|
|
3010
|
+
totalPriceLabel: string;
|
|
3011
|
+
perUnitPriceLabel: string;
|
|
3012
|
+
};
|
|
3013
|
+
|
|
3006
3014
|
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
3007
3015
|
|
|
3008
3016
|
export declare const requestSchema: z.ZodObject<{
|
|
@@ -3371,19 +3379,19 @@ export declare type StorefrontCartItem = {
|
|
|
3371
3379
|
quantity: number;
|
|
3372
3380
|
};
|
|
3373
3381
|
|
|
3374
|
-
export declare function StorefrontCartPanel({ lines, itemCount,
|
|
3382
|
+
export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
|
|
3375
3383
|
|
|
3376
3384
|
declare type StorefrontCartPanelProps = {
|
|
3377
3385
|
lines: StorefrontCartSummaryLine[];
|
|
3378
3386
|
itemCount: number;
|
|
3379
|
-
|
|
3380
|
-
|
|
3387
|
+
totalPerBaseUnitMinor: number;
|
|
3388
|
+
baseUnitLabel: string;
|
|
3381
3389
|
estimatedTotalMinor?: number;
|
|
3382
3390
|
discountedEstimatedTotalMinor?: number;
|
|
3383
3391
|
discountAmountMinor?: number;
|
|
3384
3392
|
lateReturnSurchargeMinor?: number;
|
|
3385
3393
|
couponCode?: string;
|
|
3386
|
-
|
|
3394
|
+
durationInBaseUnitLabel?: string;
|
|
3387
3395
|
title?: string;
|
|
3388
3396
|
description?: string;
|
|
3389
3397
|
checkoutPath?: string;
|
|
@@ -3405,8 +3413,8 @@ export declare function StorefrontCartProvider({ storeSlug, products, children,
|
|
|
3405
3413
|
|
|
3406
3414
|
export declare type StorefrontCartSummary = {
|
|
3407
3415
|
lines: StorefrontCartSummaryLine[];
|
|
3408
|
-
|
|
3409
|
-
|
|
3416
|
+
totalPerBaseUnitMinor: number;
|
|
3417
|
+
billableUnitCount?: number;
|
|
3410
3418
|
estimatedTotalMinor?: number;
|
|
3411
3419
|
};
|
|
3412
3420
|
|
|
@@ -4106,12 +4114,18 @@ export declare const storefrontEn: {
|
|
|
4106
4114
|
price_then: string;
|
|
4107
4115
|
price_details_aria_label: string;
|
|
4108
4116
|
price_table_title: string;
|
|
4109
|
-
|
|
4110
|
-
price_table_day_other: string;
|
|
4111
|
-
price_table_per_day: string;
|
|
4117
|
+
price_table_per_unit: string;
|
|
4112
4118
|
price_table_contact_prompt: string;
|
|
4119
|
+
price_unit_hour_one: string;
|
|
4120
|
+
price_unit_hour_other: string;
|
|
4121
|
+
price_unit_half_day_one: string;
|
|
4122
|
+
price_unit_half_day_other: string;
|
|
4113
4123
|
price_unit_day_one: string;
|
|
4114
4124
|
price_unit_day_other: string;
|
|
4125
|
+
price_unit_week_one: string;
|
|
4126
|
+
price_unit_week_other: string;
|
|
4127
|
+
price_unit_month_one: string;
|
|
4128
|
+
price_unit_month_other: string;
|
|
4115
4129
|
products_title: string;
|
|
4116
4130
|
products_description: string;
|
|
4117
4131
|
products_page_title: string;
|
|
@@ -4131,7 +4145,7 @@ export declare const storefrontEn: {
|
|
|
4131
4145
|
cart_empty_description: string;
|
|
4132
4146
|
cart_line_meta: string;
|
|
4133
4147
|
remove_from_cart: string;
|
|
4134
|
-
|
|
4148
|
+
cart_total_per_unit: string;
|
|
4135
4149
|
cart_clear: string;
|
|
4136
4150
|
booking_select_variant_cancel: string;
|
|
4137
4151
|
close_modal: string;
|
|
@@ -4153,8 +4167,7 @@ export declare const storefrontEn: {
|
|
|
4153
4167
|
checkout_subtitle: string;
|
|
4154
4168
|
checkout_summary_title: string;
|
|
4155
4169
|
checkout_summary_description: string;
|
|
4156
|
-
|
|
4157
|
-
checkout_estimated_days_other: string;
|
|
4170
|
+
checkout_estimated_duration: string;
|
|
4158
4171
|
checkout_estimated_total: string;
|
|
4159
4172
|
checkout_form_title: string;
|
|
4160
4173
|
checkout_form_description: string;
|
|
@@ -4630,12 +4643,18 @@ export declare const storefrontFr: {
|
|
|
4630
4643
|
price_then: string;
|
|
4631
4644
|
price_details_aria_label: string;
|
|
4632
4645
|
price_table_title: string;
|
|
4633
|
-
|
|
4634
|
-
price_table_day_other: string;
|
|
4635
|
-
price_table_per_day: string;
|
|
4646
|
+
price_table_per_unit: string;
|
|
4636
4647
|
price_table_contact_prompt: string;
|
|
4648
|
+
price_unit_hour_one: string;
|
|
4649
|
+
price_unit_hour_other: string;
|
|
4650
|
+
price_unit_half_day_one: string;
|
|
4651
|
+
price_unit_half_day_other: string;
|
|
4637
4652
|
price_unit_day_one: string;
|
|
4638
4653
|
price_unit_day_other: string;
|
|
4654
|
+
price_unit_week_one: string;
|
|
4655
|
+
price_unit_week_other: string;
|
|
4656
|
+
price_unit_month_one: string;
|
|
4657
|
+
price_unit_month_other: string;
|
|
4639
4658
|
products_title: string;
|
|
4640
4659
|
products_description: string;
|
|
4641
4660
|
products_page_title: string;
|
|
@@ -4656,7 +4675,7 @@ export declare const storefrontFr: {
|
|
|
4656
4675
|
cart_empty_description: string;
|
|
4657
4676
|
cart_line_meta: string;
|
|
4658
4677
|
remove_from_cart: string;
|
|
4659
|
-
|
|
4678
|
+
cart_total_per_unit: string;
|
|
4660
4679
|
cart_clear: string;
|
|
4661
4680
|
booking_select_variant_cancel: string;
|
|
4662
4681
|
close_modal: string;
|
|
@@ -4678,8 +4697,7 @@ export declare const storefrontFr: {
|
|
|
4678
4697
|
checkout_subtitle: string;
|
|
4679
4698
|
checkout_summary_title: string;
|
|
4680
4699
|
checkout_summary_description: string;
|
|
4681
|
-
|
|
4682
|
-
checkout_estimated_days_other: string;
|
|
4700
|
+
checkout_estimated_duration: string;
|
|
4683
4701
|
checkout_estimated_total: string;
|
|
4684
4702
|
checkout_form_title: string;
|
|
4685
4703
|
checkout_form_description: string;
|