@loczer/storefront-sdk 0.191.0 → 0.192.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 +9 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-IYOeC3N7.js → Product.shared-cjcvMCMa.js} +4 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-zsUj5_3O.js → base-asset-CsOe0vXi.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-TzCge_mR.js → base-booking-Sjsqh31e.js} +28 -23
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-DvFFzAcg.js → base-product-C_ATjuc6.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-B0HpcFe5.js → cart-inputs-D1_Wmkca.js} +11 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/insurance-B01h642r.js +67 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +14 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/Invoice.js +106 -106
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +33 -24
- package/dist/i18n/en.d.ts +11 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +11 -0
- package/dist/i18n/fr.d.ts +11 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +11 -0
- package/dist/index.d.ts +193 -3
- package/dist/index.js +66 -65
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.d.ts +8 -2
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +13 -4
- package/dist/lib/checkoutVerifyCoupon.d.ts +3 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -1
- package/dist/lib/checkoutVerifyCoupon.js +4 -1
- package/dist/lib/contractSaleDocument.d.ts +4 -0
- package/dist/lib/contractSaleDocument.d.ts.map +1 -1
- package/dist/lib/contractSaleDocument.js +3 -1
- package/dist/lib/contractSaleDocumentApi.d.ts +6 -0
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
- package/dist/lib/storefrontProducts.d.ts +3 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -1
- package/dist/lib/storefrontProducts.js +2 -1
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +264 -237
- package/dist/pages/ContractSaleDocumentPage.d.ts +2 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -3
- package/dist/pages/checkout/components/CheckoutInsuranceCard.d.ts +12 -0
- package/dist/pages/checkout/components/CheckoutInsuranceCard.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutInsuranceCard.js +53 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +2 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +47 -30
- package/dist/pages/checkout/types.d.ts +2 -1
- package/dist/pages/checkout/types.d.ts.map +1 -1
- package/dist/pages/checkout/types.js +2 -1
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +6 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +5 -2
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-BNUzqsci.js +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
123
123
|
description: z.ZodString;
|
|
124
124
|
quantity: z.ZodNumber;
|
|
125
125
|
unitPrice: z.ZodNumber;
|
|
126
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
126
128
|
}, z.core.$strip>>;
|
|
127
129
|
terms: z.ZodOptional<z.ZodObject<{
|
|
128
130
|
title: z.ZodString;
|
|
@@ -194,6 +196,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
|
|
|
194
196
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
195
197
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
196
198
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
199
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
197
200
|
}, z.core.$strip>>;
|
|
198
201
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
199
202
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -312,6 +315,8 @@ export declare const baseBookingSchema: z.ZodObject<{
|
|
|
312
315
|
}>;
|
|
313
316
|
shopId: z.ZodString;
|
|
314
317
|
customer: z.ZodObject<{
|
|
318
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
319
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
315
320
|
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
316
321
|
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
317
322
|
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
@@ -346,6 +351,36 @@ export declare const baseBookingSchema: z.ZodObject<{
|
|
|
346
351
|
couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
|
|
347
352
|
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
348
353
|
couponPriceRuleId: z.ZodOptional<z.ZodString>;
|
|
354
|
+
lateReturnSurchargeUnits: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
accepted: z.ZodLiteral<true>;
|
|
357
|
+
acceptedAt: z.ZodString;
|
|
358
|
+
consentSource: z.ZodEnum<{
|
|
359
|
+
staff: "staff";
|
|
360
|
+
storefront: "storefront";
|
|
361
|
+
}>;
|
|
362
|
+
provider: z.ZodEnum<{
|
|
363
|
+
morio: "morio";
|
|
364
|
+
sharelock: "sharelock";
|
|
365
|
+
}>;
|
|
366
|
+
billableDays: z.ZodNumber;
|
|
367
|
+
subtotalMinor: z.ZodNumber;
|
|
368
|
+
items: z.ZodArray<z.ZodObject<{
|
|
369
|
+
bookingItemId: z.ZodString;
|
|
370
|
+
productId: z.ZodString;
|
|
371
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
372
|
+
kind: z.ZodEnum<{
|
|
373
|
+
accessory: "accessory";
|
|
374
|
+
bike: "bike";
|
|
375
|
+
"e-bike": "e-bike";
|
|
376
|
+
}>;
|
|
377
|
+
qty: z.ZodNumber;
|
|
378
|
+
pricePerDayMinor: z.ZodNumber;
|
|
379
|
+
deductibleAmountMinor: z.ZodNumber;
|
|
380
|
+
insuredValueMinor: z.ZodNumber;
|
|
381
|
+
totalMinor: z.ZodNumber;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
349
384
|
totalPriceUnits: z.ZodOptional<z.ZodNumber>;
|
|
350
385
|
cancellationPolicySnapshot: z.ZodOptional<z.ZodObject<{
|
|
351
386
|
tiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -417,6 +452,7 @@ export declare const bikeProductSchema: z.ZodObject<{
|
|
|
417
452
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
418
453
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
419
454
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
455
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
420
456
|
}, z.core.$strip>>;
|
|
421
457
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
422
458
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -551,6 +587,8 @@ export declare const BOOKING_SEARCH_KEYS: readonly ["fulfillment", "start_date",
|
|
|
551
587
|
export declare type BookingCustomerInput = z.infer<typeof bookingCustomerInputSchema>;
|
|
552
588
|
|
|
553
589
|
export declare const bookingCustomerInputSchema: z.ZodObject<{
|
|
590
|
+
firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
591
|
+
lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
554
592
|
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
555
593
|
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
556
594
|
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
@@ -589,6 +627,63 @@ declare type BookingFlowStepsProps = {
|
|
|
589
627
|
|
|
590
628
|
export declare type BookingFulfillment = "pickup" | "delivery";
|
|
591
629
|
|
|
630
|
+
export declare type BookingInsuranceConsentSource = z.infer<typeof bookingInsuranceConsentSourceSchema>;
|
|
631
|
+
|
|
632
|
+
export declare const bookingInsuranceConsentSourceSchema: z.ZodEnum<{
|
|
633
|
+
staff: "staff";
|
|
634
|
+
storefront: "storefront";
|
|
635
|
+
}>;
|
|
636
|
+
|
|
637
|
+
export declare type BookingInsuranceItemSnapshot = z.infer<typeof bookingInsuranceItemSnapshotSchema>;
|
|
638
|
+
|
|
639
|
+
export declare const bookingInsuranceItemSnapshotSchema: z.ZodObject<{
|
|
640
|
+
bookingItemId: z.ZodString;
|
|
641
|
+
productId: z.ZodString;
|
|
642
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
643
|
+
kind: z.ZodEnum<{
|
|
644
|
+
accessory: "accessory";
|
|
645
|
+
bike: "bike";
|
|
646
|
+
"e-bike": "e-bike";
|
|
647
|
+
}>;
|
|
648
|
+
qty: z.ZodNumber;
|
|
649
|
+
pricePerDayMinor: z.ZodNumber;
|
|
650
|
+
deductibleAmountMinor: z.ZodNumber;
|
|
651
|
+
insuredValueMinor: z.ZodNumber;
|
|
652
|
+
totalMinor: z.ZodNumber;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
|
|
655
|
+
export declare type BookingInsuranceSnapshot = z.infer<typeof bookingInsuranceSnapshotSchema>;
|
|
656
|
+
|
|
657
|
+
export declare const bookingInsuranceSnapshotSchema: z.ZodObject<{
|
|
658
|
+
accepted: z.ZodLiteral<true>;
|
|
659
|
+
acceptedAt: z.ZodString;
|
|
660
|
+
consentSource: z.ZodEnum<{
|
|
661
|
+
staff: "staff";
|
|
662
|
+
storefront: "storefront";
|
|
663
|
+
}>;
|
|
664
|
+
provider: z.ZodEnum<{
|
|
665
|
+
morio: "morio";
|
|
666
|
+
sharelock: "sharelock";
|
|
667
|
+
}>;
|
|
668
|
+
billableDays: z.ZodNumber;
|
|
669
|
+
subtotalMinor: z.ZodNumber;
|
|
670
|
+
items: z.ZodArray<z.ZodObject<{
|
|
671
|
+
bookingItemId: z.ZodString;
|
|
672
|
+
productId: z.ZodString;
|
|
673
|
+
productVariantId: z.ZodOptional<z.ZodString>;
|
|
674
|
+
kind: z.ZodEnum<{
|
|
675
|
+
accessory: "accessory";
|
|
676
|
+
bike: "bike";
|
|
677
|
+
"e-bike": "e-bike";
|
|
678
|
+
}>;
|
|
679
|
+
qty: z.ZodNumber;
|
|
680
|
+
pricePerDayMinor: z.ZodNumber;
|
|
681
|
+
deductibleAmountMinor: z.ZodNumber;
|
|
682
|
+
insuredValueMinor: z.ZodNumber;
|
|
683
|
+
totalMinor: z.ZodNumber;
|
|
684
|
+
}, z.core.$strip>>;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
|
|
592
687
|
export declare const BookingMobileDateDrawer: () => JSX.Element | null;
|
|
593
688
|
|
|
594
689
|
export declare type BookingPeriodChangeMeta = {
|
|
@@ -787,6 +882,14 @@ declare type BookingTimingConfig = {
|
|
|
787
882
|
minBufferMinutes: number;
|
|
788
883
|
};
|
|
789
884
|
|
|
885
|
+
export declare function buildBookingInsuranceSnapshot(input: {
|
|
886
|
+
acceptedAt: string;
|
|
887
|
+
consentSource: BookingInsuranceConsentSource;
|
|
888
|
+
provider: InsuranceProvider;
|
|
889
|
+
billableDays: number;
|
|
890
|
+
items: InsuranceQuoteItemInput[];
|
|
891
|
+
}): BookingInsuranceSnapshot;
|
|
892
|
+
|
|
790
893
|
export declare function buildDailyPriceRows(prices: StorefrontPublicProductPrice[] | undefined, locale: string): DailyPriceRow[];
|
|
791
894
|
|
|
792
895
|
export declare function buildPriceTierLabels(prices: StorefrontPublicProductPrice[] | undefined, locale: string, t: TFunction): string[];
|
|
@@ -826,6 +929,8 @@ export declare const buttonVariants: (props?: ({
|
|
|
826
929
|
|
|
827
930
|
export declare function calculateDailyPriceForQuantity(prices: StorefrontPublicProductPrice[] | undefined, dayCount: number): number | null;
|
|
828
931
|
|
|
932
|
+
export declare function calculateInsuranceCalendarDays(start: Date, end: Date, timeZone?: string): number;
|
|
933
|
+
|
|
829
934
|
export declare type CancellationPolicy = z.infer<typeof cancellationPolicySchema>;
|
|
830
935
|
|
|
831
936
|
export declare const cancellationPolicySchema: z.ZodObject<{
|
|
@@ -1038,6 +1143,8 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
1038
1143
|
description: z.ZodString;
|
|
1039
1144
|
quantity: z.ZodNumber;
|
|
1040
1145
|
unitPrice: z.ZodNumber;
|
|
1146
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1147
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1041
1148
|
}, z.core.$strip>>;
|
|
1042
1149
|
terms: z.ZodOptional<z.ZodObject<{
|
|
1043
1150
|
title: z.ZodString;
|
|
@@ -1148,6 +1255,8 @@ export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
|
|
|
1148
1255
|
description: z.ZodString;
|
|
1149
1256
|
quantity: z.ZodNumber;
|
|
1150
1257
|
unitPrice: z.ZodNumber;
|
|
1258
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1259
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1151
1260
|
}, z.core.$strip>;
|
|
1152
1261
|
|
|
1153
1262
|
export declare type ContractSaleDocumentProps = {
|
|
@@ -1257,6 +1366,8 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
|
1257
1366
|
description: z.ZodString;
|
|
1258
1367
|
quantity: z.ZodNumber;
|
|
1259
1368
|
unitPrice: z.ZodNumber;
|
|
1369
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1260
1371
|
}, z.core.$strip>>;
|
|
1261
1372
|
terms: z.ZodOptional<z.ZodObject<{
|
|
1262
1373
|
title: z.ZodString;
|
|
@@ -1306,10 +1417,12 @@ export declare const contractSaleDocumentSignatureSchema: z.ZodObject<{
|
|
|
1306
1417
|
date: z.ZodDate;
|
|
1307
1418
|
}, z.core.$strip>;
|
|
1308
1419
|
|
|
1309
|
-
export declare type CreateBookingInput = z.
|
|
1420
|
+
export declare type CreateBookingInput = z.input<typeof createBookingInputSchema>;
|
|
1310
1421
|
|
|
1311
1422
|
export declare const createBookingInputBaseSchema: z.ZodObject<{
|
|
1312
1423
|
customer: z.ZodObject<{
|
|
1424
|
+
firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1425
|
+
lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1313
1426
|
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1314
1427
|
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1315
1428
|
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
@@ -1338,6 +1451,7 @@ export declare const createBookingInputBaseSchema: z.ZodObject<{
|
|
|
1338
1451
|
couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
|
|
1339
1452
|
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
1340
1453
|
couponPriceRuleId: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
insuranceAccepted: z.ZodDefault<z.ZodBoolean>;
|
|
1341
1455
|
deliveryOption: z.ZodOptional<z.ZodEnum<{
|
|
1342
1456
|
delivery: "delivery";
|
|
1343
1457
|
pickup: "pickup";
|
|
@@ -1348,6 +1462,8 @@ export declare const createBookingInputBaseSchema: z.ZodObject<{
|
|
|
1348
1462
|
|
|
1349
1463
|
export declare const createBookingInputSchema: z.ZodObject<{
|
|
1350
1464
|
customer: z.ZodObject<{
|
|
1465
|
+
firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1466
|
+
lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1351
1467
|
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1352
1468
|
email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1353
1469
|
phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
@@ -1376,6 +1492,7 @@ export declare const createBookingInputSchema: z.ZodObject<{
|
|
|
1376
1492
|
couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
|
|
1377
1493
|
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
1378
1494
|
couponPriceRuleId: z.ZodOptional<z.ZodString>;
|
|
1495
|
+
insuranceAccepted: z.ZodDefault<z.ZodBoolean>;
|
|
1379
1496
|
deliveryOption: z.ZodOptional<z.ZodEnum<{
|
|
1380
1497
|
delivery: "delivery";
|
|
1381
1498
|
pickup: "pickup";
|
|
@@ -1509,6 +1626,7 @@ export declare const eBikeProductSchema: z.ZodObject<{
|
|
|
1509
1626
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1510
1627
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
1511
1628
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
1629
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
1512
1630
|
}, z.core.$strip>>;
|
|
1513
1631
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
1514
1632
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1704,6 +1822,8 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
1704
1822
|
description: z.ZodString;
|
|
1705
1823
|
quantity: z.ZodNumber;
|
|
1706
1824
|
unitPrice: z.ZodNumber;
|
|
1825
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1826
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1707
1827
|
}, z.core.$strip>>;
|
|
1708
1828
|
terms: z.ZodOptional<z.ZodObject<{
|
|
1709
1829
|
title: z.ZodString;
|
|
@@ -1781,6 +1901,27 @@ declare type HeaderProps = {
|
|
|
1781
1901
|
|
|
1782
1902
|
export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1783
1903
|
|
|
1904
|
+
export declare type InsuranceProvider = z.infer<typeof insuranceProviderSchema>;
|
|
1905
|
+
|
|
1906
|
+
export declare const insuranceProviderSchema: z.ZodEnum<{
|
|
1907
|
+
morio: "morio";
|
|
1908
|
+
sharelock: "sharelock";
|
|
1909
|
+
}>;
|
|
1910
|
+
|
|
1911
|
+
export declare type InsuranceQuoteItemInput = {
|
|
1912
|
+
bookingItemId: string;
|
|
1913
|
+
productId: string;
|
|
1914
|
+
productVariantId?: string;
|
|
1915
|
+
kind: "bike" | "e-bike" | "accessory";
|
|
1916
|
+
qty: number;
|
|
1917
|
+
insurance?: {
|
|
1918
|
+
enabled?: boolean;
|
|
1919
|
+
pricePerDayMinor?: number;
|
|
1920
|
+
deductibleAmountMinor?: number;
|
|
1921
|
+
insuredValueMinor?: number;
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
|
|
1784
1925
|
export declare type IsoDate = z.infer<typeof isoDateSchema>;
|
|
1785
1926
|
|
|
1786
1927
|
export declare const isoDateSchema: z.ZodString;
|
|
@@ -2024,6 +2165,9 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2024
2165
|
enabled: boolean;
|
|
2025
2166
|
showRecentReviewsOnStorefront: boolean;
|
|
2026
2167
|
} | undefined;
|
|
2168
|
+
insurance?: {
|
|
2169
|
+
enabled: boolean;
|
|
2170
|
+
} | undefined;
|
|
2027
2171
|
} | undefined;
|
|
2028
2172
|
};
|
|
2029
2173
|
bikes: BikeProduct[];
|
|
@@ -2145,6 +2289,7 @@ export declare const productInsuranceSchema: z.ZodObject<{
|
|
|
2145
2289
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2146
2290
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2147
2291
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2292
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
2148
2293
|
}, z.core.$strip>;
|
|
2149
2294
|
|
|
2150
2295
|
export declare type ProductKind = z.infer<typeof productKindSchema>;
|
|
@@ -2197,6 +2342,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2197
2342
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2198
2343
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2199
2344
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2345
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
2200
2346
|
}, z.core.$strip>>;
|
|
2201
2347
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2202
2348
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2259,6 +2405,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2259
2405
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2260
2406
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2261
2407
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2408
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
2262
2409
|
}, z.core.$strip>>;
|
|
2263
2410
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2264
2411
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2310,6 +2457,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2310
2457
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2311
2458
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2312
2459
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2460
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
2313
2461
|
}, z.core.$strip>>;
|
|
2314
2462
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2315
2463
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3015,8 +3163,11 @@ export declare const storefrontCheckoutSubmitRequestBaseSchema: z.ZodObject<{
|
|
|
3015
3163
|
endAddress: z.ZodOptional<z.ZodString>;
|
|
3016
3164
|
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
3017
3165
|
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
3166
|
+
insuranceAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
3018
3167
|
customer: z.ZodObject<{
|
|
3019
|
-
|
|
3168
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
3169
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
3170
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3020
3171
|
email: z.ZodString;
|
|
3021
3172
|
phone: z.ZodString;
|
|
3022
3173
|
notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
@@ -3048,8 +3199,11 @@ export declare const storefrontCheckoutSubmitRequestSchema: z.ZodObject<{
|
|
|
3048
3199
|
endAddress: z.ZodOptional<z.ZodString>;
|
|
3049
3200
|
couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
3050
3201
|
couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
|
|
3202
|
+
insuranceAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
3051
3203
|
customer: z.ZodObject<{
|
|
3052
|
-
|
|
3204
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
3206
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3053
3207
|
email: z.ZodString;
|
|
3054
3208
|
phone: z.ZodString;
|
|
3055
3209
|
notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
@@ -3387,6 +3541,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
3387
3541
|
enabled: z.ZodBoolean;
|
|
3388
3542
|
showRecentReviewsOnStorefront: z.ZodBoolean;
|
|
3389
3543
|
}, z.core.$strip>>;
|
|
3544
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
3545
|
+
enabled: z.ZodBoolean;
|
|
3546
|
+
}, z.core.$strip>>;
|
|
3390
3547
|
}, z.core.$strip>>;
|
|
3391
3548
|
}, z.core.$strip>;
|
|
3392
3549
|
|
|
@@ -3664,6 +3821,10 @@ export declare const storefrontEn: {
|
|
|
3664
3821
|
checkout_estimated_total: string;
|
|
3665
3822
|
checkout_form_title: string;
|
|
3666
3823
|
checkout_form_description: string;
|
|
3824
|
+
checkout_first_name_label: string;
|
|
3825
|
+
checkout_first_name_placeholder: string;
|
|
3826
|
+
checkout_last_name_label: string;
|
|
3827
|
+
checkout_last_name_placeholder: string;
|
|
3667
3828
|
checkout_full_name_label: string;
|
|
3668
3829
|
checkout_full_name_placeholder: string;
|
|
3669
3830
|
checkout_email_label: string;
|
|
@@ -3685,6 +3846,13 @@ export declare const storefrontEn: {
|
|
|
3685
3846
|
checkout_payment_total_excluding_tax: string;
|
|
3686
3847
|
checkout_payment_vat: string;
|
|
3687
3848
|
checkout_payment_deposit_amount: string;
|
|
3849
|
+
checkout_insurance_title: string;
|
|
3850
|
+
checkout_insurance_description: string;
|
|
3851
|
+
checkout_insurance_deductible: string;
|
|
3852
|
+
checkout_insurance_total_one: string;
|
|
3853
|
+
checkout_insurance_total_other: string;
|
|
3854
|
+
checkout_insurance_exempt_line: string;
|
|
3855
|
+
checkout_insurance_tax_notice: string;
|
|
3688
3856
|
checkout_coupon_title: string;
|
|
3689
3857
|
checkout_coupon_label: string;
|
|
3690
3858
|
checkout_coupon_placeholder: string;
|
|
@@ -4139,6 +4307,10 @@ export declare const storefrontFr: {
|
|
|
4139
4307
|
checkout_estimated_total: string;
|
|
4140
4308
|
checkout_form_title: string;
|
|
4141
4309
|
checkout_form_description: string;
|
|
4310
|
+
checkout_first_name_label: string;
|
|
4311
|
+
checkout_first_name_placeholder: string;
|
|
4312
|
+
checkout_last_name_label: string;
|
|
4313
|
+
checkout_last_name_placeholder: string;
|
|
4142
4314
|
checkout_full_name_label: string;
|
|
4143
4315
|
checkout_full_name_placeholder: string;
|
|
4144
4316
|
checkout_email_label: string;
|
|
@@ -4160,6 +4332,13 @@ export declare const storefrontFr: {
|
|
|
4160
4332
|
checkout_payment_total_excluding_tax: string;
|
|
4161
4333
|
checkout_payment_vat: string;
|
|
4162
4334
|
checkout_payment_deposit_amount: string;
|
|
4335
|
+
checkout_insurance_title: string;
|
|
4336
|
+
checkout_insurance_description: string;
|
|
4337
|
+
checkout_insurance_deductible: string;
|
|
4338
|
+
checkout_insurance_total_one: string;
|
|
4339
|
+
checkout_insurance_total_other: string;
|
|
4340
|
+
checkout_insurance_exempt_line: string;
|
|
4341
|
+
checkout_insurance_tax_notice: string;
|
|
4163
4342
|
checkout_coupon_title: string;
|
|
4164
4343
|
checkout_coupon_label: string;
|
|
4165
4344
|
checkout_coupon_placeholder: string;
|
|
@@ -4461,6 +4640,9 @@ export declare const storefrontModulesSchema: z.ZodObject<{
|
|
|
4461
4640
|
enabled: z.ZodBoolean;
|
|
4462
4641
|
showRecentReviewsOnStorefront: z.ZodBoolean;
|
|
4463
4642
|
}, z.core.$strip>>;
|
|
4643
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
4644
|
+
enabled: z.ZodBoolean;
|
|
4645
|
+
}, z.core.$strip>>;
|
|
4464
4646
|
}, z.core.$strip>;
|
|
4465
4647
|
|
|
4466
4648
|
export declare type StorefrontProduct = BikeProduct | AccessoryProduct;
|
|
@@ -4533,6 +4715,7 @@ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[
|
|
|
4533
4715
|
enabled: z.ZodBoolean;
|
|
4534
4716
|
pricePerDayMinor: z.ZodNumber;
|
|
4535
4717
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
4718
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
4536
4719
|
}, z.core.$strip>>;
|
|
4537
4720
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4538
4721
|
value: z.ZodString;
|
|
@@ -4786,6 +4969,7 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
4786
4969
|
enabled: z.ZodBoolean;
|
|
4787
4970
|
pricePerDayMinor: z.ZodNumber;
|
|
4788
4971
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
4972
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
4789
4973
|
}, z.core.$strip>>;
|
|
4790
4974
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4791
4975
|
value: z.ZodString;
|
|
@@ -5313,6 +5497,9 @@ export declare function useStorefrontConfig(): {
|
|
|
5313
5497
|
enabled: boolean;
|
|
5314
5498
|
showRecentReviewsOnStorefront: boolean;
|
|
5315
5499
|
} | undefined;
|
|
5500
|
+
insurance?: {
|
|
5501
|
+
enabled: boolean;
|
|
5502
|
+
} | undefined;
|
|
5316
5503
|
} | undefined;
|
|
5317
5504
|
};
|
|
5318
5505
|
storefrontConfiguration: {
|
|
@@ -5537,6 +5724,9 @@ export declare function useStorefrontConfig(): {
|
|
|
5537
5724
|
enabled: boolean;
|
|
5538
5725
|
showRecentReviewsOnStorefront: boolean;
|
|
5539
5726
|
} | undefined;
|
|
5727
|
+
insurance?: {
|
|
5728
|
+
enabled: boolean;
|
|
5729
|
+
} | undefined;
|
|
5540
5730
|
} | undefined;
|
|
5541
5731
|
};
|
|
5542
5732
|
};
|