@loczer/storefront-sdk 0.191.0 → 0.193.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.
Files changed (65) hide show
  1. package/dist/StorefrontProvider.d.ts +9 -0
  2. package/dist/StorefrontProvider.d.ts.map +1 -1
  3. package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-IYOeC3N7.js → Product.shared-cjcvMCMa.js} +4 -2
  4. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-zsUj5_3O.js → base-asset-CsOe0vXi.js} +1 -1
  5. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-TzCge_mR.js → base-booking-Sjsqh31e.js} +28 -23
  6. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-DvFFzAcg.js → base-product-C_ATjuc6.js} +1 -1
  7. package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-B0HpcFe5.js → cart-inputs-D1_Wmkca.js} +11 -0
  8. package/dist/chunks/pkg/booking-engine/dist/schemas/insurance-B01h642r.js +67 -0
  9. package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +14 -0
  10. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts +10 -0
  11. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts.map +1 -0
  12. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +104 -0
  13. package/dist/components/ContractSaleDocument/Invoice.d.ts +2 -2
  14. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
  15. package/dist/components/ContractSaleDocument/Invoice.js +157 -110
  16. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
  17. package/dist/components/ContractSaleDocument/InvoiceDetails.js +132 -155
  18. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +0 -2
  19. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -1
  20. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +32 -37
  21. package/dist/i18n/en.d.ts +15 -0
  22. package/dist/i18n/en.d.ts.map +1 -1
  23. package/dist/i18n/en.js +15 -0
  24. package/dist/i18n/fr.d.ts +15 -0
  25. package/dist/i18n/fr.d.ts.map +1 -1
  26. package/dist/i18n/fr.js +15 -0
  27. package/dist/index.d.ts +314 -12
  28. package/dist/index.js +66 -65
  29. package/dist/lib/booking.js +2 -2
  30. package/dist/lib/checkoutSubmit.d.ts +8 -2
  31. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  32. package/dist/lib/checkoutSubmit.js +13 -4
  33. package/dist/lib/checkoutVerifyCoupon.d.ts +3 -0
  34. package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -1
  35. package/dist/lib/checkoutVerifyCoupon.js +4 -1
  36. package/dist/lib/contractSaleDocument.d.ts +48 -3
  37. package/dist/lib/contractSaleDocument.d.ts.map +1 -1
  38. package/dist/lib/contractSaleDocument.js +36 -18
  39. package/dist/lib/contractSaleDocumentApi.d.ts +60 -6
  40. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
  41. package/dist/lib/contractSaleDocumentApi.js +41 -37
  42. package/dist/lib/storefrontProducts.d.ts +3 -0
  43. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  44. package/dist/lib/storefrontProducts.js +2 -1
  45. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  46. package/dist/pages/CheckoutPage.js +264 -237
  47. package/dist/pages/ContractSaleDocumentPage.d.ts +23 -9
  48. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  49. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
  50. package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -3
  51. package/dist/pages/checkout/components/CheckoutInsuranceCard.d.ts +12 -0
  52. package/dist/pages/checkout/components/CheckoutInsuranceCard.d.ts.map +1 -0
  53. package/dist/pages/checkout/components/CheckoutInsuranceCard.js +53 -0
  54. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +2 -1
  55. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -1
  56. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +47 -30
  57. package/dist/pages/checkout/types.d.ts +2 -1
  58. package/dist/pages/checkout/types.d.ts.map +1 -1
  59. package/dist/pages/checkout/types.js +2 -1
  60. package/dist/storefront.css +1 -1
  61. package/dist/storefrontSchemas.d.ts +6 -0
  62. package/dist/storefrontSchemas.d.ts.map +1 -1
  63. package/dist/storefrontSchemas.js +5 -2
  64. package/package.json +1 -1
  65. package/dist/chunks/pkg/booking-engine/dist/schemas-BNUzqsci.js +0 -13
package/dist/index.d.ts CHANGED
@@ -123,17 +123,27 @@ 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
- terms: z.ZodOptional<z.ZodObject<{
129
+ appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
130
+ id: z.ZodString;
131
+ kind: z.ZodEnum<{
132
+ rental_contract: "rental_contract";
133
+ rental_terms: "rental_terms";
134
+ sale_terms: "sale_terms";
135
+ }>;
128
136
  title: z.ZodString;
129
137
  articles: z.ZodArray<z.ZodObject<{
130
138
  id: z.ZodString;
131
139
  title: z.ZodString;
132
140
  body: z.ZodString;
141
+ bodyHtml: z.ZodOptional<z.ZodString>;
133
142
  translationTitle: z.ZodOptional<z.ZodString>;
134
143
  translationBody: z.ZodOptional<z.ZodString>;
144
+ translationBodyHtml: z.ZodOptional<z.ZodString>;
135
145
  }, z.core.$strip>>;
136
- }, z.core.$strip>>;
146
+ }, z.core.$strip>>>;
137
147
  taxRate: z.ZodOptional<z.ZodNumber>;
138
148
  acceptanceLevel: z.ZodDefault<z.ZodEnum<{
139
149
  none: "none";
@@ -143,6 +153,14 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
143
153
  notes: z.ZodOptional<z.ZodString>;
144
154
  date: z.ZodPreprocess<z.ZodDate>;
145
155
  dueDate: z.ZodPreprocess<z.ZodDate>;
156
+ rental: z.ZodOptional<z.ZodObject<{
157
+ bookingNumber: z.ZodString;
158
+ pickupAddress: z.ZodOptional<z.ZodString>;
159
+ returnAddress: z.ZodOptional<z.ZodString>;
160
+ timeZone: z.ZodOptional<z.ZodString>;
161
+ start: z.ZodPreprocess<z.ZodDate>;
162
+ end: z.ZodPreprocess<z.ZodDate>;
163
+ }, z.core.$strip>>;
146
164
  acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
147
165
  mode: z.ZodLiteral<"acceptance">;
148
166
  date: z.ZodPreprocess<z.ZodDate>;
@@ -194,6 +212,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
194
212
  enabled: z.ZodDefault<z.ZodBoolean>;
195
213
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
196
214
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
215
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
197
216
  }, z.core.$strip>>;
198
217
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
199
218
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -312,6 +331,8 @@ export declare const baseBookingSchema: z.ZodObject<{
312
331
  }>;
313
332
  shopId: z.ZodString;
314
333
  customer: z.ZodObject<{
334
+ firstName: z.ZodOptional<z.ZodString>;
335
+ lastName: z.ZodOptional<z.ZodString>;
315
336
  name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
316
337
  email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
317
338
  phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
@@ -346,6 +367,36 @@ export declare const baseBookingSchema: z.ZodObject<{
346
367
  couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
347
368
  couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
348
369
  couponPriceRuleId: z.ZodOptional<z.ZodString>;
370
+ lateReturnSurchargeUnits: z.ZodOptional<z.ZodNumber>;
371
+ insurance: z.ZodOptional<z.ZodObject<{
372
+ accepted: z.ZodLiteral<true>;
373
+ acceptedAt: z.ZodString;
374
+ consentSource: z.ZodEnum<{
375
+ staff: "staff";
376
+ storefront: "storefront";
377
+ }>;
378
+ provider: z.ZodEnum<{
379
+ morio: "morio";
380
+ sharelock: "sharelock";
381
+ }>;
382
+ billableDays: z.ZodNumber;
383
+ subtotalMinor: z.ZodNumber;
384
+ items: z.ZodArray<z.ZodObject<{
385
+ bookingItemId: z.ZodString;
386
+ productId: z.ZodString;
387
+ productVariantId: z.ZodOptional<z.ZodString>;
388
+ kind: z.ZodEnum<{
389
+ accessory: "accessory";
390
+ bike: "bike";
391
+ "e-bike": "e-bike";
392
+ }>;
393
+ qty: z.ZodNumber;
394
+ pricePerDayMinor: z.ZodNumber;
395
+ deductibleAmountMinor: z.ZodNumber;
396
+ insuredValueMinor: z.ZodNumber;
397
+ totalMinor: z.ZodNumber;
398
+ }, z.core.$strip>>;
399
+ }, z.core.$strip>>;
349
400
  totalPriceUnits: z.ZodOptional<z.ZodNumber>;
350
401
  cancellationPolicySnapshot: z.ZodOptional<z.ZodObject<{
351
402
  tiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -417,6 +468,7 @@ export declare const bikeProductSchema: z.ZodObject<{
417
468
  enabled: z.ZodDefault<z.ZodBoolean>;
418
469
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
419
470
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
471
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
420
472
  }, z.core.$strip>>;
421
473
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
422
474
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -551,6 +603,8 @@ export declare const BOOKING_SEARCH_KEYS: readonly ["fulfillment", "start_date",
551
603
  export declare type BookingCustomerInput = z.infer<typeof bookingCustomerInputSchema>;
552
604
 
553
605
  export declare const bookingCustomerInputSchema: z.ZodObject<{
606
+ firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
607
+ lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
554
608
  name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
555
609
  email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
556
610
  phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
@@ -589,6 +643,63 @@ declare type BookingFlowStepsProps = {
589
643
 
590
644
  export declare type BookingFulfillment = "pickup" | "delivery";
591
645
 
646
+ export declare type BookingInsuranceConsentSource = z.infer<typeof bookingInsuranceConsentSourceSchema>;
647
+
648
+ export declare const bookingInsuranceConsentSourceSchema: z.ZodEnum<{
649
+ staff: "staff";
650
+ storefront: "storefront";
651
+ }>;
652
+
653
+ export declare type BookingInsuranceItemSnapshot = z.infer<typeof bookingInsuranceItemSnapshotSchema>;
654
+
655
+ export declare const bookingInsuranceItemSnapshotSchema: z.ZodObject<{
656
+ bookingItemId: z.ZodString;
657
+ productId: z.ZodString;
658
+ productVariantId: z.ZodOptional<z.ZodString>;
659
+ kind: z.ZodEnum<{
660
+ accessory: "accessory";
661
+ bike: "bike";
662
+ "e-bike": "e-bike";
663
+ }>;
664
+ qty: z.ZodNumber;
665
+ pricePerDayMinor: z.ZodNumber;
666
+ deductibleAmountMinor: z.ZodNumber;
667
+ insuredValueMinor: z.ZodNumber;
668
+ totalMinor: z.ZodNumber;
669
+ }, z.core.$strip>;
670
+
671
+ export declare type BookingInsuranceSnapshot = z.infer<typeof bookingInsuranceSnapshotSchema>;
672
+
673
+ export declare const bookingInsuranceSnapshotSchema: z.ZodObject<{
674
+ accepted: z.ZodLiteral<true>;
675
+ acceptedAt: z.ZodString;
676
+ consentSource: z.ZodEnum<{
677
+ staff: "staff";
678
+ storefront: "storefront";
679
+ }>;
680
+ provider: z.ZodEnum<{
681
+ morio: "morio";
682
+ sharelock: "sharelock";
683
+ }>;
684
+ billableDays: z.ZodNumber;
685
+ subtotalMinor: z.ZodNumber;
686
+ items: z.ZodArray<z.ZodObject<{
687
+ bookingItemId: z.ZodString;
688
+ productId: z.ZodString;
689
+ productVariantId: z.ZodOptional<z.ZodString>;
690
+ kind: z.ZodEnum<{
691
+ accessory: "accessory";
692
+ bike: "bike";
693
+ "e-bike": "e-bike";
694
+ }>;
695
+ qty: z.ZodNumber;
696
+ pricePerDayMinor: z.ZodNumber;
697
+ deductibleAmountMinor: z.ZodNumber;
698
+ insuredValueMinor: z.ZodNumber;
699
+ totalMinor: z.ZodNumber;
700
+ }, z.core.$strip>>;
701
+ }, z.core.$strip>;
702
+
592
703
  export declare const BookingMobileDateDrawer: () => JSX.Element | null;
593
704
 
594
705
  export declare type BookingPeriodChangeMeta = {
@@ -787,6 +898,14 @@ declare type BookingTimingConfig = {
787
898
  minBufferMinutes: number;
788
899
  };
789
900
 
901
+ export declare function buildBookingInsuranceSnapshot(input: {
902
+ acceptedAt: string;
903
+ consentSource: BookingInsuranceConsentSource;
904
+ provider: InsuranceProvider;
905
+ billableDays: number;
906
+ items: InsuranceQuoteItemInput[];
907
+ }): BookingInsuranceSnapshot;
908
+
790
909
  export declare function buildDailyPriceRows(prices: StorefrontPublicProductPrice[] | undefined, locale: string): DailyPriceRow[];
791
910
 
792
911
  export declare function buildPriceTierLabels(prices: StorefrontPublicProductPrice[] | undefined, locale: string, t: TFunction): string[];
@@ -826,6 +945,8 @@ export declare const buttonVariants: (props?: ({
826
945
 
827
946
  export declare function calculateDailyPriceForQuantity(prices: StorefrontPublicProductPrice[] | undefined, dayCount: number): number | null;
828
947
 
948
+ export declare function calculateInsuranceCalendarDays(start: Date, end: Date, timeZone?: string): number;
949
+
829
950
  export declare type CancellationPolicy = z.infer<typeof cancellationPolicySchema>;
830
951
 
831
952
  export declare const cancellationPolicySchema: z.ZodObject<{
@@ -891,7 +1012,7 @@ export declare function ContactSection({ storeSlug }: {
891
1012
  storeSlug: string;
892
1013
  }): JSX.Element;
893
1014
 
894
- export declare function ContractSaleDocument({ data: initialData, showTermsPage, withEnglishTranslation, heightMode, renderMode, publicDocumentUrl, onAccept, }: ContractSaleDocumentProps): JSX.Element;
1015
+ export declare function ContractSaleDocument({ data: initialData, showAppendices, withEnglishTranslation, heightMode, renderMode, publicDocumentUrl, onAccept, }: ContractSaleDocumentProps): JSX.Element;
895
1016
 
896
1017
  export declare type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
897
1018
 
@@ -1038,17 +1159,27 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1038
1159
  description: z.ZodString;
1039
1160
  quantity: z.ZodNumber;
1040
1161
  unitPrice: z.ZodNumber;
1162
+ taxRate: z.ZodOptional<z.ZodNumber>;
1163
+ taxExemptionReason: z.ZodOptional<z.ZodString>;
1041
1164
  }, z.core.$strip>>;
1042
- terms: z.ZodOptional<z.ZodObject<{
1165
+ appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
1166
+ id: z.ZodString;
1167
+ kind: z.ZodEnum<{
1168
+ rental_contract: "rental_contract";
1169
+ rental_terms: "rental_terms";
1170
+ sale_terms: "sale_terms";
1171
+ }>;
1043
1172
  title: z.ZodString;
1044
1173
  articles: z.ZodArray<z.ZodObject<{
1045
1174
  id: z.ZodString;
1046
1175
  title: z.ZodString;
1047
1176
  body: z.ZodString;
1177
+ bodyHtml: z.ZodOptional<z.ZodString>;
1048
1178
  translationTitle: z.ZodOptional<z.ZodString>;
1049
1179
  translationBody: z.ZodOptional<z.ZodString>;
1180
+ translationBodyHtml: z.ZodOptional<z.ZodString>;
1050
1181
  }, z.core.$strip>>;
1051
- }, z.core.$strip>>;
1182
+ }, z.core.$strip>>>;
1052
1183
  taxRate: z.ZodOptional<z.ZodNumber>;
1053
1184
  acceptanceLevel: z.ZodDefault<z.ZodEnum<{
1054
1185
  none: "none";
@@ -1058,6 +1189,14 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1058
1189
  notes: z.ZodOptional<z.ZodString>;
1059
1190
  date: z.ZodPreprocess<z.ZodDate>;
1060
1191
  dueDate: z.ZodPreprocess<z.ZodDate>;
1192
+ rental: z.ZodOptional<z.ZodObject<{
1193
+ bookingNumber: z.ZodString;
1194
+ pickupAddress: z.ZodOptional<z.ZodString>;
1195
+ returnAddress: z.ZodOptional<z.ZodString>;
1196
+ timeZone: z.ZodOptional<z.ZodString>;
1197
+ start: z.ZodPreprocess<z.ZodDate>;
1198
+ end: z.ZodPreprocess<z.ZodDate>;
1199
+ }, z.core.$strip>>;
1061
1200
  acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1062
1201
  mode: z.ZodLiteral<"acceptance">;
1063
1202
  date: z.ZodPreprocess<z.ZodDate>;
@@ -1080,6 +1219,35 @@ export declare const contractSaleDocumentApiSignatureSchema: z.ZodObject<{
1080
1219
  date: z.ZodPreprocess<z.ZodDate>;
1081
1220
  }, z.core.$strip>;
1082
1221
 
1222
+ export declare type ContractSaleDocumentAppendix = z.infer<typeof contractSaleDocumentAppendixSchema>;
1223
+
1224
+ export declare type ContractSaleDocumentAppendixKind = z.infer<typeof contractSaleDocumentAppendixKindSchema>;
1225
+
1226
+ export declare const contractSaleDocumentAppendixKindSchema: z.ZodEnum<{
1227
+ rental_contract: "rental_contract";
1228
+ rental_terms: "rental_terms";
1229
+ sale_terms: "sale_terms";
1230
+ }>;
1231
+
1232
+ export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
1233
+ id: z.ZodString;
1234
+ kind: z.ZodEnum<{
1235
+ rental_contract: "rental_contract";
1236
+ rental_terms: "rental_terms";
1237
+ sale_terms: "sale_terms";
1238
+ }>;
1239
+ title: z.ZodString;
1240
+ articles: z.ZodArray<z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ title: z.ZodString;
1243
+ body: z.ZodString;
1244
+ bodyHtml: z.ZodOptional<z.ZodString>;
1245
+ translationTitle: z.ZodOptional<z.ZodString>;
1246
+ translationBody: z.ZodOptional<z.ZodString>;
1247
+ translationBodyHtml: z.ZodOptional<z.ZodString>;
1248
+ }, z.core.$strip>>;
1249
+ }, z.core.$strip>;
1250
+
1083
1251
  export declare type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
1084
1252
 
1085
1253
  export declare const contractSaleDocumentContactSchema: z.ZodObject<{
@@ -1148,11 +1316,13 @@ export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
1148
1316
  description: z.ZodString;
1149
1317
  quantity: z.ZodNumber;
1150
1318
  unitPrice: z.ZodNumber;
1319
+ taxRate: z.ZodOptional<z.ZodNumber>;
1320
+ taxExemptionReason: z.ZodOptional<z.ZodString>;
1151
1321
  }, z.core.$strip>;
1152
1322
 
1153
1323
  export declare type ContractSaleDocumentProps = {
1154
1324
  data: ContractSaleDocumentData;
1155
- showTermsPage?: boolean;
1325
+ showAppendices?: boolean;
1156
1326
  withEnglishTranslation?: boolean;
1157
1327
  heightMode?: "parent" | "viewport";
1158
1328
  renderMode?: "interactive" | "pdf";
@@ -1179,6 +1349,17 @@ export declare const contractSaleDocumentReferenceTypeSchema: z.ZodEnum<{
1179
1349
  sale: "sale";
1180
1350
  }>;
1181
1351
 
1352
+ export declare type ContractSaleDocumentRental = z.infer<typeof contractSaleDocumentRentalSchema>;
1353
+
1354
+ export declare const contractSaleDocumentRentalSchema: z.ZodObject<{
1355
+ bookingNumber: z.ZodString;
1356
+ start: z.ZodDate;
1357
+ end: z.ZodDate;
1358
+ pickupAddress: z.ZodOptional<z.ZodString>;
1359
+ returnAddress: z.ZodOptional<z.ZodString>;
1360
+ timeZone: z.ZodOptional<z.ZodString>;
1361
+ }, z.core.$strip>;
1362
+
1182
1363
  export declare const contractSaleDocumentSchema: z.ZodObject<{
1183
1364
  id: z.ZodString;
1184
1365
  kind: z.ZodEnum<{
@@ -1257,16 +1438,34 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
1257
1438
  description: z.ZodString;
1258
1439
  quantity: z.ZodNumber;
1259
1440
  unitPrice: z.ZodNumber;
1441
+ taxRate: z.ZodOptional<z.ZodNumber>;
1442
+ taxExemptionReason: z.ZodOptional<z.ZodString>;
1260
1443
  }, z.core.$strip>>;
1261
- terms: z.ZodOptional<z.ZodObject<{
1444
+ appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
1445
+ id: z.ZodString;
1446
+ kind: z.ZodEnum<{
1447
+ rental_contract: "rental_contract";
1448
+ rental_terms: "rental_terms";
1449
+ sale_terms: "sale_terms";
1450
+ }>;
1262
1451
  title: z.ZodString;
1263
1452
  articles: z.ZodArray<z.ZodObject<{
1264
1453
  id: z.ZodString;
1265
1454
  title: z.ZodString;
1266
1455
  body: z.ZodString;
1456
+ bodyHtml: z.ZodOptional<z.ZodString>;
1267
1457
  translationTitle: z.ZodOptional<z.ZodString>;
1268
1458
  translationBody: z.ZodOptional<z.ZodString>;
1459
+ translationBodyHtml: z.ZodOptional<z.ZodString>;
1269
1460
  }, z.core.$strip>>;
1461
+ }, z.core.$strip>>>;
1462
+ rental: z.ZodOptional<z.ZodObject<{
1463
+ bookingNumber: z.ZodString;
1464
+ start: z.ZodDate;
1465
+ end: z.ZodDate;
1466
+ pickupAddress: z.ZodOptional<z.ZodString>;
1467
+ returnAddress: z.ZodOptional<z.ZodString>;
1468
+ timeZone: z.ZodOptional<z.ZodString>;
1270
1469
  }, z.core.$strip>>;
1271
1470
  taxRate: z.ZodOptional<z.ZodNumber>;
1272
1471
  acceptanceLevel: z.ZodDefault<z.ZodEnum<{
@@ -1306,10 +1505,12 @@ export declare const contractSaleDocumentSignatureSchema: z.ZodObject<{
1306
1505
  date: z.ZodDate;
1307
1506
  }, z.core.$strip>;
1308
1507
 
1309
- export declare type CreateBookingInput = z.infer<typeof createBookingInputSchema>;
1508
+ export declare type CreateBookingInput = z.input<typeof createBookingInputSchema>;
1310
1509
 
1311
1510
  export declare const createBookingInputBaseSchema: z.ZodObject<{
1312
1511
  customer: z.ZodObject<{
1512
+ firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1513
+ lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1313
1514
  name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1314
1515
  email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1315
1516
  phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
@@ -1338,6 +1539,7 @@ export declare const createBookingInputBaseSchema: z.ZodObject<{
1338
1539
  couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
1339
1540
  couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
1340
1541
  couponPriceRuleId: z.ZodOptional<z.ZodString>;
1542
+ insuranceAccepted: z.ZodDefault<z.ZodBoolean>;
1341
1543
  deliveryOption: z.ZodOptional<z.ZodEnum<{
1342
1544
  delivery: "delivery";
1343
1545
  pickup: "pickup";
@@ -1348,6 +1550,8 @@ export declare const createBookingInputBaseSchema: z.ZodObject<{
1348
1550
 
1349
1551
  export declare const createBookingInputSchema: z.ZodObject<{
1350
1552
  customer: z.ZodObject<{
1553
+ firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1554
+ lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1351
1555
  name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1352
1556
  email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
1353
1557
  phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
@@ -1376,6 +1580,7 @@ export declare const createBookingInputSchema: z.ZodObject<{
1376
1580
  couponDiscountAmountUnits: z.ZodOptional<z.ZodNumber>;
1377
1581
  couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
1378
1582
  couponPriceRuleId: z.ZodOptional<z.ZodString>;
1583
+ insuranceAccepted: z.ZodDefault<z.ZodBoolean>;
1379
1584
  deliveryOption: z.ZodOptional<z.ZodEnum<{
1380
1585
  delivery: "delivery";
1381
1586
  pickup: "pickup";
@@ -1509,6 +1714,7 @@ export declare const eBikeProductSchema: z.ZodObject<{
1509
1714
  enabled: z.ZodDefault<z.ZodBoolean>;
1510
1715
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
1511
1716
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
1717
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
1512
1718
  }, z.core.$strip>>;
1513
1719
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
1514
1720
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1704,17 +1910,27 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1704
1910
  description: z.ZodString;
1705
1911
  quantity: z.ZodNumber;
1706
1912
  unitPrice: z.ZodNumber;
1913
+ taxRate: z.ZodOptional<z.ZodNumber>;
1914
+ taxExemptionReason: z.ZodOptional<z.ZodString>;
1707
1915
  }, z.core.$strip>>;
1708
- terms: z.ZodOptional<z.ZodObject<{
1916
+ appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
1917
+ id: z.ZodString;
1918
+ kind: z.ZodEnum<{
1919
+ rental_contract: "rental_contract";
1920
+ rental_terms: "rental_terms";
1921
+ sale_terms: "sale_terms";
1922
+ }>;
1709
1923
  title: z.ZodString;
1710
1924
  articles: z.ZodArray<z.ZodObject<{
1711
1925
  id: z.ZodString;
1712
1926
  title: z.ZodString;
1713
1927
  body: z.ZodString;
1928
+ bodyHtml: z.ZodOptional<z.ZodString>;
1714
1929
  translationTitle: z.ZodOptional<z.ZodString>;
1715
1930
  translationBody: z.ZodOptional<z.ZodString>;
1931
+ translationBodyHtml: z.ZodOptional<z.ZodString>;
1716
1932
  }, z.core.$strip>>;
1717
- }, z.core.$strip>>;
1933
+ }, z.core.$strip>>>;
1718
1934
  taxRate: z.ZodOptional<z.ZodNumber>;
1719
1935
  acceptanceLevel: z.ZodDefault<z.ZodEnum<{
1720
1936
  none: "none";
@@ -1724,6 +1940,14 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1724
1940
  notes: z.ZodOptional<z.ZodString>;
1725
1941
  date: z.ZodPreprocess<z.ZodDate>;
1726
1942
  dueDate: z.ZodPreprocess<z.ZodDate>;
1943
+ rental: z.ZodOptional<z.ZodObject<{
1944
+ bookingNumber: z.ZodString;
1945
+ pickupAddress: z.ZodOptional<z.ZodString>;
1946
+ returnAddress: z.ZodOptional<z.ZodString>;
1947
+ timeZone: z.ZodOptional<z.ZodString>;
1948
+ start: z.ZodPreprocess<z.ZodDate>;
1949
+ end: z.ZodPreprocess<z.ZodDate>;
1950
+ }, z.core.$strip>>;
1727
1951
  acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1728
1952
  mode: z.ZodLiteral<"acceptance">;
1729
1953
  date: z.ZodPreprocess<z.ZodDate>;
@@ -1781,6 +2005,27 @@ declare type HeaderProps = {
1781
2005
 
1782
2006
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
1783
2007
 
2008
+ export declare type InsuranceProvider = z.infer<typeof insuranceProviderSchema>;
2009
+
2010
+ export declare const insuranceProviderSchema: z.ZodEnum<{
2011
+ morio: "morio";
2012
+ sharelock: "sharelock";
2013
+ }>;
2014
+
2015
+ export declare type InsuranceQuoteItemInput = {
2016
+ bookingItemId: string;
2017
+ productId: string;
2018
+ productVariantId?: string;
2019
+ kind: "bike" | "e-bike" | "accessory";
2020
+ qty: number;
2021
+ insurance?: {
2022
+ enabled?: boolean;
2023
+ pricePerDayMinor?: number;
2024
+ deductibleAmountMinor?: number;
2025
+ insuredValueMinor?: number;
2026
+ };
2027
+ };
2028
+
1784
2029
  export declare type IsoDate = z.infer<typeof isoDateSchema>;
1785
2030
 
1786
2031
  export declare const isoDateSchema: z.ZodString;
@@ -2024,6 +2269,9 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
2024
2269
  enabled: boolean;
2025
2270
  showRecentReviewsOnStorefront: boolean;
2026
2271
  } | undefined;
2272
+ insurance?: {
2273
+ enabled: boolean;
2274
+ } | undefined;
2027
2275
  } | undefined;
2028
2276
  };
2029
2277
  bikes: BikeProduct[];
@@ -2145,6 +2393,7 @@ export declare const productInsuranceSchema: z.ZodObject<{
2145
2393
  enabled: z.ZodDefault<z.ZodBoolean>;
2146
2394
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2147
2395
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2396
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
2148
2397
  }, z.core.$strip>;
2149
2398
 
2150
2399
  export declare type ProductKind = z.infer<typeof productKindSchema>;
@@ -2197,6 +2446,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2197
2446
  enabled: z.ZodDefault<z.ZodBoolean>;
2198
2447
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2199
2448
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2449
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
2200
2450
  }, z.core.$strip>>;
2201
2451
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2202
2452
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2259,6 +2509,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2259
2509
  enabled: z.ZodDefault<z.ZodBoolean>;
2260
2510
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2261
2511
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2512
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
2262
2513
  }, z.core.$strip>>;
2263
2514
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2264
2515
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2310,6 +2561,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2310
2561
  enabled: z.ZodDefault<z.ZodBoolean>;
2311
2562
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2312
2563
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2564
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
2313
2565
  }, z.core.$strip>>;
2314
2566
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2315
2567
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -3015,8 +3267,11 @@ export declare const storefrontCheckoutSubmitRequestBaseSchema: z.ZodObject<{
3015
3267
  endAddress: z.ZodOptional<z.ZodString>;
3016
3268
  couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3017
3269
  couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
3270
+ insuranceAccepted: z.ZodOptional<z.ZodBoolean>;
3018
3271
  customer: z.ZodObject<{
3019
- fullName: z.ZodString;
3272
+ firstName: z.ZodOptional<z.ZodString>;
3273
+ lastName: z.ZodOptional<z.ZodString>;
3274
+ fullName: z.ZodOptional<z.ZodString>;
3020
3275
  email: z.ZodString;
3021
3276
  phone: z.ZodString;
3022
3277
  notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
@@ -3048,8 +3303,11 @@ export declare const storefrontCheckoutSubmitRequestSchema: z.ZodObject<{
3048
3303
  endAddress: z.ZodOptional<z.ZodString>;
3049
3304
  couponCode: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3050
3305
  couponAutoApplied: z.ZodOptional<z.ZodBoolean>;
3306
+ insuranceAccepted: z.ZodOptional<z.ZodBoolean>;
3051
3307
  customer: z.ZodObject<{
3052
- fullName: z.ZodString;
3308
+ firstName: z.ZodOptional<z.ZodString>;
3309
+ lastName: z.ZodOptional<z.ZodString>;
3310
+ fullName: z.ZodOptional<z.ZodString>;
3053
3311
  email: z.ZodString;
3054
3312
  phone: z.ZodString;
3055
3313
  notes: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
@@ -3387,6 +3645,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3387
3645
  enabled: z.ZodBoolean;
3388
3646
  showRecentReviewsOnStorefront: z.ZodBoolean;
3389
3647
  }, z.core.$strip>>;
3648
+ insurance: z.ZodOptional<z.ZodObject<{
3649
+ enabled: z.ZodBoolean;
3650
+ }, z.core.$strip>>;
3390
3651
  }, z.core.$strip>>;
3391
3652
  }, z.core.$strip>;
3392
3653
 
@@ -3664,6 +3925,10 @@ export declare const storefrontEn: {
3664
3925
  checkout_estimated_total: string;
3665
3926
  checkout_form_title: string;
3666
3927
  checkout_form_description: string;
3928
+ checkout_first_name_label: string;
3929
+ checkout_first_name_placeholder: string;
3930
+ checkout_last_name_label: string;
3931
+ checkout_last_name_placeholder: string;
3667
3932
  checkout_full_name_label: string;
3668
3933
  checkout_full_name_placeholder: string;
3669
3934
  checkout_email_label: string;
@@ -3685,6 +3950,13 @@ export declare const storefrontEn: {
3685
3950
  checkout_payment_total_excluding_tax: string;
3686
3951
  checkout_payment_vat: string;
3687
3952
  checkout_payment_deposit_amount: string;
3953
+ checkout_insurance_title: string;
3954
+ checkout_insurance_description: string;
3955
+ checkout_insurance_deductible: string;
3956
+ checkout_insurance_total_one: string;
3957
+ checkout_insurance_total_other: string;
3958
+ checkout_insurance_exempt_line: string;
3959
+ checkout_insurance_tax_notice: string;
3688
3960
  checkout_coupon_title: string;
3689
3961
  checkout_coupon_label: string;
3690
3962
  checkout_coupon_placeholder: string;
@@ -3743,6 +4015,10 @@ export declare const storefrontEn: {
3743
4015
  docs_contract_sale_due_date_label: string;
3744
4016
  docs_contract_sale_invoice_recipient_label: string;
3745
4017
  docs_contract_sale_credit_note_recipient_label: string;
4018
+ docs_contract_sale_rental_details_title: string;
4019
+ docs_contract_sale_booking_number_label: string;
4020
+ docs_contract_sale_rental_start_label: string;
4021
+ docs_contract_sale_rental_end_label: string;
3746
4022
  docs_contract_sale_description_label: string;
3747
4023
  docs_contract_sale_quantity_label: string;
3748
4024
  docs_contract_sale_unit_price_label: string;
@@ -4139,6 +4415,10 @@ export declare const storefrontFr: {
4139
4415
  checkout_estimated_total: string;
4140
4416
  checkout_form_title: string;
4141
4417
  checkout_form_description: string;
4418
+ checkout_first_name_label: string;
4419
+ checkout_first_name_placeholder: string;
4420
+ checkout_last_name_label: string;
4421
+ checkout_last_name_placeholder: string;
4142
4422
  checkout_full_name_label: string;
4143
4423
  checkout_full_name_placeholder: string;
4144
4424
  checkout_email_label: string;
@@ -4160,6 +4440,13 @@ export declare const storefrontFr: {
4160
4440
  checkout_payment_total_excluding_tax: string;
4161
4441
  checkout_payment_vat: string;
4162
4442
  checkout_payment_deposit_amount: string;
4443
+ checkout_insurance_title: string;
4444
+ checkout_insurance_description: string;
4445
+ checkout_insurance_deductible: string;
4446
+ checkout_insurance_total_one: string;
4447
+ checkout_insurance_total_other: string;
4448
+ checkout_insurance_exempt_line: string;
4449
+ checkout_insurance_tax_notice: string;
4163
4450
  checkout_coupon_title: string;
4164
4451
  checkout_coupon_label: string;
4165
4452
  checkout_coupon_placeholder: string;
@@ -4218,6 +4505,10 @@ export declare const storefrontFr: {
4218
4505
  docs_contract_sale_due_date_label: string;
4219
4506
  docs_contract_sale_invoice_recipient_label: string;
4220
4507
  docs_contract_sale_credit_note_recipient_label: string;
4508
+ docs_contract_sale_rental_details_title: string;
4509
+ docs_contract_sale_booking_number_label: string;
4510
+ docs_contract_sale_rental_start_label: string;
4511
+ docs_contract_sale_rental_end_label: string;
4221
4512
  docs_contract_sale_description_label: string;
4222
4513
  docs_contract_sale_quantity_label: string;
4223
4514
  docs_contract_sale_unit_price_label: string;
@@ -4461,6 +4752,9 @@ export declare const storefrontModulesSchema: z.ZodObject<{
4461
4752
  enabled: z.ZodBoolean;
4462
4753
  showRecentReviewsOnStorefront: z.ZodBoolean;
4463
4754
  }, z.core.$strip>>;
4755
+ insurance: z.ZodOptional<z.ZodObject<{
4756
+ enabled: z.ZodBoolean;
4757
+ }, z.core.$strip>>;
4464
4758
  }, z.core.$strip>;
4465
4759
 
4466
4760
  export declare type StorefrontProduct = BikeProduct | AccessoryProduct;
@@ -4533,6 +4827,7 @@ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[
4533
4827
  enabled: z.ZodBoolean;
4534
4828
  pricePerDayMinor: z.ZodNumber;
4535
4829
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
4830
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
4536
4831
  }, z.core.$strip>>;
4537
4832
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
4538
4833
  value: z.ZodString;
@@ -4786,6 +5081,7 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
4786
5081
  enabled: z.ZodBoolean;
4787
5082
  pricePerDayMinor: z.ZodNumber;
4788
5083
  deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
5084
+ insuredValueMinor: z.ZodDefault<z.ZodNumber>;
4789
5085
  }, z.core.$strip>>;
4790
5086
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
4791
5087
  value: z.ZodString;
@@ -5313,6 +5609,9 @@ export declare function useStorefrontConfig(): {
5313
5609
  enabled: boolean;
5314
5610
  showRecentReviewsOnStorefront: boolean;
5315
5611
  } | undefined;
5612
+ insurance?: {
5613
+ enabled: boolean;
5614
+ } | undefined;
5316
5615
  } | undefined;
5317
5616
  };
5318
5617
  storefrontConfiguration: {
@@ -5537,6 +5836,9 @@ export declare function useStorefrontConfig(): {
5537
5836
  enabled: boolean;
5538
5837
  showRecentReviewsOnStorefront: boolean;
5539
5838
  } | undefined;
5839
+ insurance?: {
5840
+ enabled: boolean;
5841
+ } | undefined;
5540
5842
  } | undefined;
5541
5843
  };
5542
5844
  };