@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.
- 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/DocumentAcceptanceSection.d.ts +10 -0
- package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +104 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts +2 -2
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/Invoice.js +157 -110
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +132 -155
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +0 -2
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +32 -37
- package/dist/i18n/en.d.ts +15 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +15 -0
- package/dist/i18n/fr.d.ts +15 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +15 -0
- package/dist/index.d.ts +314 -12
- 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 +48 -3
- package/dist/lib/contractSaleDocument.d.ts.map +1 -1
- package/dist/lib/contractSaleDocument.js +36 -18
- package/dist/lib/contractSaleDocumentApi.d.ts +60 -6
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
- package/dist/lib/contractSaleDocumentApi.js +41 -37
- 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 +23 -9
- 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
|
@@ -114,17 +114,27 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
114
114
|
description: z.ZodString;
|
|
115
115
|
quantity: z.ZodNumber;
|
|
116
116
|
unitPrice: z.ZodNumber;
|
|
117
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
117
119
|
}, z.core.$strip>>;
|
|
118
|
-
|
|
120
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
kind: z.ZodEnum<{
|
|
123
|
+
rental_contract: "rental_contract";
|
|
124
|
+
rental_terms: "rental_terms";
|
|
125
|
+
sale_terms: "sale_terms";
|
|
126
|
+
}>;
|
|
119
127
|
title: z.ZodString;
|
|
120
128
|
articles: z.ZodArray<z.ZodObject<{
|
|
121
129
|
id: z.ZodString;
|
|
122
130
|
title: z.ZodString;
|
|
123
131
|
body: z.ZodString;
|
|
132
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
124
133
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
125
134
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
135
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
126
136
|
}, z.core.$strip>>;
|
|
127
|
-
}, z.core.$strip
|
|
137
|
+
}, z.core.$strip>>>;
|
|
128
138
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
129
139
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
130
140
|
none: "none";
|
|
@@ -134,6 +144,14 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
134
144
|
notes: z.ZodOptional<z.ZodString>;
|
|
135
145
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
136
146
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
147
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
bookingNumber: z.ZodString;
|
|
149
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
150
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
151
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
152
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
153
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
137
155
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
156
|
mode: z.ZodLiteral<"acceptance">;
|
|
139
157
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -268,17 +286,27 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
268
286
|
description: z.ZodString;
|
|
269
287
|
quantity: z.ZodNumber;
|
|
270
288
|
unitPrice: z.ZodNumber;
|
|
289
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
271
291
|
}, z.core.$strip>>;
|
|
272
|
-
|
|
292
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
kind: z.ZodEnum<{
|
|
295
|
+
rental_contract: "rental_contract";
|
|
296
|
+
rental_terms: "rental_terms";
|
|
297
|
+
sale_terms: "sale_terms";
|
|
298
|
+
}>;
|
|
273
299
|
title: z.ZodString;
|
|
274
300
|
articles: z.ZodArray<z.ZodObject<{
|
|
275
301
|
id: z.ZodString;
|
|
276
302
|
title: z.ZodString;
|
|
277
303
|
body: z.ZodString;
|
|
304
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
278
305
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
279
306
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
307
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
280
308
|
}, z.core.$strip>>;
|
|
281
|
-
}, z.core.$strip
|
|
309
|
+
}, z.core.$strip>>>;
|
|
282
310
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
283
311
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
284
312
|
none: "none";
|
|
@@ -288,6 +316,14 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
288
316
|
notes: z.ZodOptional<z.ZodString>;
|
|
289
317
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
290
318
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
319
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
320
|
+
bookingNumber: z.ZodString;
|
|
321
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
322
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
323
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
324
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
325
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
326
|
+
}, z.core.$strip>>;
|
|
291
327
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
292
328
|
mode: z.ZodLiteral<"acceptance">;
|
|
293
329
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -407,17 +443,27 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
407
443
|
description: z.ZodString;
|
|
408
444
|
quantity: z.ZodNumber;
|
|
409
445
|
unitPrice: z.ZodNumber;
|
|
446
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
410
448
|
}, z.core.$strip>>;
|
|
411
|
-
|
|
449
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
kind: z.ZodEnum<{
|
|
452
|
+
rental_contract: "rental_contract";
|
|
453
|
+
rental_terms: "rental_terms";
|
|
454
|
+
sale_terms: "sale_terms";
|
|
455
|
+
}>;
|
|
412
456
|
title: z.ZodString;
|
|
413
457
|
articles: z.ZodArray<z.ZodObject<{
|
|
414
458
|
id: z.ZodString;
|
|
415
459
|
title: z.ZodString;
|
|
416
460
|
body: z.ZodString;
|
|
461
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
417
462
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
418
463
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
464
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
419
465
|
}, z.core.$strip>>;
|
|
420
|
-
}, z.core.$strip
|
|
466
|
+
}, z.core.$strip>>>;
|
|
421
467
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
422
468
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
423
469
|
none: "none";
|
|
@@ -427,6 +473,14 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
427
473
|
notes: z.ZodOptional<z.ZodString>;
|
|
428
474
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
429
475
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
476
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
bookingNumber: z.ZodString;
|
|
478
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
479
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
480
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
481
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
482
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
483
|
+
}, z.core.$strip>>;
|
|
430
484
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
431
485
|
mode: z.ZodLiteral<"acceptance">;
|
|
432
486
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSaleDocumentApi.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocumentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"contractSaleDocumentApi.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocumentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,uCAAuC;;;EAA8B,CAAA;AAClF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,mCAAmC;;;;;;;;iBAK9C,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAE/F,eAAO,MAAM,uCAAuC;;;iBAElD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,sCAAsC;;;;;;iBAEjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,6CAA6C;;;;;;;;;2BAGxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAA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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA"}
|
|
@@ -1,48 +1,52 @@
|
|
|
1
|
-
import { contractSaleDocumentAcceptanceSchema as e, contractSaleDocumentLanguageCodeSchema as t,
|
|
2
|
-
import { z as
|
|
1
|
+
import { contractSaleDocumentAcceptanceSchema as e, contractSaleDocumentLanguageCodeSchema as t, contractSaleDocumentRentalSchema as n, contractSaleDocumentSchema as r, contractSaleDocumentSignatureSchema as i } from "./contractSaleDocument.js";
|
|
2
|
+
import { z as a } from "zod";
|
|
3
3
|
//#region src/lib/contractSaleDocumentApi.ts
|
|
4
|
-
var
|
|
4
|
+
var o = a.preprocess((e) => {
|
|
5
5
|
if (e instanceof Date) return e;
|
|
6
6
|
if (typeof e == "string" || typeof e == "number") {
|
|
7
7
|
let t = new Date(e);
|
|
8
8
|
if (!Number.isNaN(t.getTime())) return t;
|
|
9
9
|
}
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
12
|
-
referenceType:
|
|
13
|
-
referenceId:
|
|
14
|
-
saleId:
|
|
15
|
-
saleDocumentId:
|
|
16
|
-
}),
|
|
17
|
-
date:
|
|
18
|
-
dueDate:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
}, a.date()), s = a.enum(["booking", "sale"]), c = a.object({
|
|
12
|
+
referenceType: s,
|
|
13
|
+
referenceId: a.string().trim().min(1),
|
|
14
|
+
saleId: a.string().trim().min(1),
|
|
15
|
+
saleDocumentId: a.string().trim().min(1)
|
|
16
|
+
}), l = e.extend({ date: o }), u = i.extend({ date: o }), d = a.discriminatedUnion("mode", [l, u]), f = r.extend({
|
|
17
|
+
date: o,
|
|
18
|
+
dueDate: o,
|
|
19
|
+
rental: n.extend({
|
|
20
|
+
start: o,
|
|
21
|
+
end: o
|
|
22
|
+
}).optional(),
|
|
23
|
+
acceptance: d.optional()
|
|
24
|
+
}), p = a.object({ mode: a.literal("acceptance") }), m = a.object({
|
|
25
|
+
mode: a.literal("signature"),
|
|
26
|
+
name: a.string().trim().min(1),
|
|
27
|
+
phone: a.string().trim().min(1),
|
|
28
|
+
signature: a.string().trim().min(1)
|
|
29
|
+
}), h = a.discriminatedUnion("mode", [p, m]), g = "/api/public/storefront/docs/contract-sale", _ = "/api/public/storefront/docs/contract-sale/accept", v = "/api/public/storefront/docs/contract-sale/pdf", y = a.object({
|
|
30
|
+
storeSlug: a.string().trim().min(1).toLowerCase(),
|
|
31
|
+
referenceId: a.string().trim().min(1),
|
|
32
|
+
saleDocumentId: a.string().trim().min(1),
|
|
29
33
|
lang: t.optional()
|
|
30
|
-
}),
|
|
31
|
-
success:
|
|
32
|
-
message:
|
|
33
|
-
document:
|
|
34
|
-
reference:
|
|
35
|
-
}),
|
|
36
|
-
storeSlug:
|
|
37
|
-
referenceId:
|
|
38
|
-
saleDocumentId:
|
|
34
|
+
}), b = y, x = a.object({
|
|
35
|
+
success: a.boolean(),
|
|
36
|
+
message: a.string().optional(),
|
|
37
|
+
document: f.optional(),
|
|
38
|
+
reference: c.optional()
|
|
39
|
+
}), S = a.object({
|
|
40
|
+
storeSlug: a.string().trim().min(1).toLowerCase(),
|
|
41
|
+
referenceId: a.string().trim().min(1),
|
|
42
|
+
saleDocumentId: a.string().trim().min(1),
|
|
39
43
|
lang: t.optional(),
|
|
40
|
-
acceptance:
|
|
41
|
-
}),
|
|
42
|
-
success:
|
|
43
|
-
message:
|
|
44
|
-
document:
|
|
45
|
-
reference:
|
|
44
|
+
acceptance: h
|
|
45
|
+
}), C = a.object({
|
|
46
|
+
success: a.boolean(),
|
|
47
|
+
message: a.string().optional(),
|
|
48
|
+
document: f.optional(),
|
|
49
|
+
reference: c.optional()
|
|
46
50
|
});
|
|
47
51
|
//#endregion
|
|
48
|
-
export {
|
|
52
|
+
export { _ as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, v as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, g as GET_CONTRACT_SALE_DOCUMENT_ROUTE, S as acceptContractSaleDocumentRequestSchema, C as acceptContractSaleDocumentResponseSchema, p as contractSaleDocumentAcceptanceInputSchema, h as contractSaleDocumentAcceptanceRecordInputSchema, d as contractSaleDocumentApiAcceptanceRecordSchema, l as contractSaleDocumentApiAcceptanceSchema, f as contractSaleDocumentApiSchema, u as contractSaleDocumentApiSignatureSchema, c as contractSaleDocumentReferenceSchema, s as contractSaleDocumentReferenceTypeSchema, m as contractSaleDocumentSignatureInputSchema, b as downloadContractSaleDocumentPdfRequestSchema, y as getContractSaleDocumentRequestSchema, x as getContractSaleDocumentResponseSchema };
|
|
@@ -16,6 +16,7 @@ export declare const storefrontPublicProductInsuranceSchema: z.ZodObject<{
|
|
|
16
16
|
enabled: z.ZodBoolean;
|
|
17
17
|
pricePerDayMinor: z.ZodNumber;
|
|
18
18
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
export type StorefrontPublicProductInsurance = z.infer<typeof storefrontPublicProductInsuranceSchema>;
|
|
21
22
|
export declare const storefrontPublicProductVariantIdentifierSchema: z.ZodObject<{
|
|
@@ -124,6 +125,7 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
124
125
|
enabled: z.ZodBoolean;
|
|
125
126
|
pricePerDayMinor: z.ZodNumber;
|
|
126
127
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
127
129
|
}, z.core.$strip>>;
|
|
128
130
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
129
131
|
value: z.ZodString;
|
|
@@ -283,6 +285,7 @@ export declare const responseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
283
285
|
enabled: z.ZodBoolean;
|
|
284
286
|
pricePerDayMinor: z.ZodNumber;
|
|
285
287
|
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
288
|
+
insuredValueMinor: z.ZodDefault<z.ZodNumber>;
|
|
286
289
|
}, z.core.$strip>>;
|
|
287
290
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
288
291
|
value: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAA;AACF,MAAM,MA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AAE3F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,KAAK,oCAAoC,CAAA;AAEtD,eAAO,MAAM,aAAa;;iBAExB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAYzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAA"}
|
|
@@ -18,7 +18,8 @@ var t = e.object({
|
|
|
18
18
|
}), o = e.object({
|
|
19
19
|
enabled: e.boolean(),
|
|
20
20
|
pricePerDayMinor: e.number().int().min(0),
|
|
21
|
-
deductibleAmountMinor: e.number().int().min(0).default(0)
|
|
21
|
+
deductibleAmountMinor: e.number().int().min(0).default(0),
|
|
22
|
+
insuredValueMinor: e.number().int().min(0).default(0)
|
|
22
23
|
}), s = e.object({
|
|
23
24
|
kind: e.string().trim().min(1),
|
|
24
25
|
value: e.string().trim().min(1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAyGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAoqBnC"}
|