@loczer/storefront-sdk 0.192.0 → 0.194.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/models/{Product.shared-cjcvMCMa.js → Product.shared-iVSHRdn4.js} +21 -21
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CsOe0vXi.js → base-asset-BRQVuIes.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-Sjsqh31e.js → base-booking-Bhy2Kww1.js} +2 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-C_ATjuc6.js → base-product-BJHQLX8t.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B01h642r.js → insurance-CPeHsTss.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js +14 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +29 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +11 -2
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +3 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +114 -110
- 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 +182 -135
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +106 -138
- 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 +4 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +4 -0
- package/dist/i18n/fr.d.ts +4 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +4 -0
- package/dist/index.d.ts +126 -9
- package/dist/index.js +70 -70
- package/dist/lib/booking.js +1 -1
- package/dist/lib/checkoutSubmit.js +2 -2
- package/dist/lib/contractSaleDocument.d.ts +44 -3
- package/dist/lib/contractSaleDocument.d.ts.map +1 -1
- package/dist/lib/contractSaleDocument.js +33 -17
- package/dist/lib/contractSaleDocumentApi.d.ts +54 -6
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
- package/dist/lib/contractSaleDocumentApi.js +41 -37
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +180 -152
- package/dist/pages/ContractSaleDocumentPage.d.ts +21 -9
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +263 -257
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +0 -14
|
@@ -36,19 +36,42 @@ export declare const contractSaleDocumentTermArticleSchema: z.ZodObject<{
|
|
|
36
36
|
id: z.ZodString;
|
|
37
37
|
title: z.ZodString;
|
|
38
38
|
body: z.ZodString;
|
|
39
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
39
40
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
40
41
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
42
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
41
43
|
}, z.core.$strip>;
|
|
42
|
-
export declare const
|
|
44
|
+
export declare const contractSaleDocumentAppendixKindSchema: z.ZodEnum<{
|
|
45
|
+
rental_contract: "rental_contract";
|
|
46
|
+
rental_terms: "rental_terms";
|
|
47
|
+
sale_terms: "sale_terms";
|
|
48
|
+
}>;
|
|
49
|
+
export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
kind: z.ZodEnum<{
|
|
52
|
+
rental_contract: "rental_contract";
|
|
53
|
+
rental_terms: "rental_terms";
|
|
54
|
+
sale_terms: "sale_terms";
|
|
55
|
+
}>;
|
|
43
56
|
title: z.ZodString;
|
|
44
57
|
articles: z.ZodArray<z.ZodObject<{
|
|
45
58
|
id: z.ZodString;
|
|
46
59
|
title: z.ZodString;
|
|
47
60
|
body: z.ZodString;
|
|
61
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
48
62
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
49
63
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
64
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
50
65
|
}, z.core.$strip>>;
|
|
51
66
|
}, z.core.$strip>;
|
|
67
|
+
export declare const contractSaleDocumentRentalSchema: z.ZodObject<{
|
|
68
|
+
bookingNumber: z.ZodString;
|
|
69
|
+
start: z.ZodDate;
|
|
70
|
+
end: z.ZodDate;
|
|
71
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
72
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
73
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
52
75
|
export declare const contractSaleDocumentAcceptanceLevelSchema: z.ZodEnum<{
|
|
53
76
|
none: "none";
|
|
54
77
|
acceptance: "acceptance";
|
|
@@ -179,15 +202,31 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
|
179
202
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
180
203
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
181
204
|
}, z.core.$strip>>;
|
|
182
|
-
|
|
205
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
206
|
+
id: z.ZodString;
|
|
207
|
+
kind: z.ZodEnum<{
|
|
208
|
+
rental_contract: "rental_contract";
|
|
209
|
+
rental_terms: "rental_terms";
|
|
210
|
+
sale_terms: "sale_terms";
|
|
211
|
+
}>;
|
|
183
212
|
title: z.ZodString;
|
|
184
213
|
articles: z.ZodArray<z.ZodObject<{
|
|
185
214
|
id: z.ZodString;
|
|
186
215
|
title: z.ZodString;
|
|
187
216
|
body: z.ZodString;
|
|
217
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
188
218
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
189
219
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
220
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
190
221
|
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$strip>>>;
|
|
223
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
bookingNumber: z.ZodString;
|
|
225
|
+
start: z.ZodDate;
|
|
226
|
+
end: z.ZodDate;
|
|
227
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
228
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
229
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
191
230
|
}, z.core.$strip>>;
|
|
192
231
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
193
232
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
@@ -211,7 +250,9 @@ export type ContractSaleDocument = z.infer<typeof contractSaleDocumentSchema>;
|
|
|
211
250
|
export type ContractSaleDocumentLineItem = z.infer<typeof contractSaleDocumentLineItemSchema>;
|
|
212
251
|
export type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
|
|
213
252
|
export type ContractSaleDocumentTermArticle = z.infer<typeof contractSaleDocumentTermArticleSchema>;
|
|
214
|
-
export type
|
|
253
|
+
export type ContractSaleDocumentAppendixKind = z.infer<typeof contractSaleDocumentAppendixKindSchema>;
|
|
254
|
+
export type ContractSaleDocumentAppendix = z.infer<typeof contractSaleDocumentAppendixSchema>;
|
|
255
|
+
export type ContractSaleDocumentRental = z.infer<typeof contractSaleDocumentRentalSchema>;
|
|
215
256
|
export type ContractSaleDocumentAcceptanceLevel = z.infer<typeof contractSaleDocumentAcceptanceLevelSchema>;
|
|
216
257
|
export type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
|
|
217
258
|
export type ContractSaleDocumentSignature = z.infer<typeof contractSaleDocumentSignatureSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractSaleDocument.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,iCAAiC,aAA2B,CAAA;AAEzE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;iBAM5C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;iBAO7C,CAAA;AAEF,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"contractSaleDocument.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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CAAC,CAAA;AACnG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AACrG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAA;AAC3G,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AACjG,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAA;AAC7G,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AACrG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA"}
|
|
@@ -18,36 +18,51 @@ var n = t.string().trim().min(1), r = t.object({
|
|
|
18
18
|
id: t.string(),
|
|
19
19
|
title: t.string(),
|
|
20
20
|
body: t.string(),
|
|
21
|
+
bodyHtml: t.string().optional(),
|
|
21
22
|
translationTitle: t.string().optional(),
|
|
22
|
-
translationBody: t.string().optional()
|
|
23
|
-
|
|
23
|
+
translationBody: t.string().optional(),
|
|
24
|
+
translationBodyHtml: t.string().optional()
|
|
25
|
+
}), o = t.enum([
|
|
26
|
+
"rental_contract",
|
|
27
|
+
"rental_terms",
|
|
28
|
+
"sale_terms"
|
|
29
|
+
]), s = t.object({
|
|
30
|
+
id: t.string().trim().min(1),
|
|
31
|
+
kind: o,
|
|
24
32
|
title: t.string(),
|
|
25
33
|
articles: t.array(a).min(1)
|
|
26
|
-
}),
|
|
34
|
+
}), c = t.object({
|
|
35
|
+
bookingNumber: t.string().trim().min(1),
|
|
36
|
+
start: t.date(),
|
|
37
|
+
end: t.date(),
|
|
38
|
+
pickupAddress: t.string().trim().min(1).optional(),
|
|
39
|
+
returnAddress: t.string().trim().min(1).optional(),
|
|
40
|
+
timeZone: t.string().trim().min(1).optional()
|
|
41
|
+
}), l = t.enum([
|
|
27
42
|
"none",
|
|
28
43
|
"acceptance",
|
|
29
44
|
"signature"
|
|
30
|
-
]),
|
|
45
|
+
]), u = t.object({
|
|
31
46
|
mode: t.literal("acceptance"),
|
|
32
47
|
date: t.date()
|
|
33
|
-
}),
|
|
48
|
+
}), d = t.object({
|
|
34
49
|
mode: t.literal("signature"),
|
|
35
50
|
name: t.string().min(1, "Name is required"),
|
|
36
51
|
phone: t.string().min(1, "Phone number is required"),
|
|
37
52
|
signature: t.string().min(1, "Signature is required"),
|
|
38
53
|
date: t.date()
|
|
39
|
-
}),
|
|
54
|
+
}), f = t.discriminatedUnion("mode", [u, d]), p = t.enum([
|
|
40
55
|
"quote",
|
|
41
56
|
"invoice",
|
|
42
57
|
"credit_note"
|
|
43
|
-
]),
|
|
44
|
-
legal:
|
|
45
|
-
customer:
|
|
46
|
-
translation:
|
|
47
|
-
}),
|
|
58
|
+
]), m = t.enum(["fr", "en"]), h = t.object({
|
|
59
|
+
legal: m,
|
|
60
|
+
customer: m,
|
|
61
|
+
translation: m.optional()
|
|
62
|
+
}), g = t.object({
|
|
48
63
|
id: t.string(),
|
|
49
|
-
kind:
|
|
50
|
-
language:
|
|
64
|
+
kind: p,
|
|
65
|
+
language: h.optional(),
|
|
51
66
|
saleDocumentNumber: t.string().trim().min(1),
|
|
52
67
|
currency: t.string().trim().min(1).transform((e) => e.toUpperCase()),
|
|
53
68
|
date: t.date(),
|
|
@@ -55,11 +70,12 @@ var n = t.string().trim().min(1), r = t.object({
|
|
|
55
70
|
issuer: r,
|
|
56
71
|
recipient: r,
|
|
57
72
|
items: t.array(i),
|
|
58
|
-
|
|
73
|
+
appendices: t.array(s).default([]),
|
|
74
|
+
rental: c.optional(),
|
|
59
75
|
taxRate: t.number().min(0).max(1).optional(),
|
|
60
|
-
acceptanceLevel:
|
|
61
|
-
acceptance:
|
|
76
|
+
acceptanceLevel: l.default("none"),
|
|
77
|
+
acceptance: f.optional(),
|
|
62
78
|
notes: t.string().optional()
|
|
63
79
|
});
|
|
64
80
|
//#endregion
|
|
65
|
-
export {
|
|
81
|
+
export { l as contractSaleDocumentAcceptanceLevelSchema, f as contractSaleDocumentAcceptanceRecordSchema, u as contractSaleDocumentAcceptanceSchema, n as contractSaleDocumentAddressSchema, o as contractSaleDocumentAppendixKindSchema, s as contractSaleDocumentAppendixSchema, r as contractSaleDocumentContactSchema, p as contractSaleDocumentKindSchema, m as contractSaleDocumentLanguageCodeSchema, h as contractSaleDocumentLanguageSchema, i as contractSaleDocumentLineItemSchema, c as contractSaleDocumentRentalSchema, g as contractSaleDocumentSchema, d as contractSaleDocumentSignatureSchema, a as contractSaleDocumentTermArticleSchema };
|
|
@@ -117,16 +117,24 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
117
117
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
118
118
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
119
119
|
}, z.core.$strip>>;
|
|
120
|
-
|
|
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
|
+
}>;
|
|
121
127
|
title: z.ZodString;
|
|
122
128
|
articles: z.ZodArray<z.ZodObject<{
|
|
123
129
|
id: z.ZodString;
|
|
124
130
|
title: z.ZodString;
|
|
125
131
|
body: z.ZodString;
|
|
132
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
126
133
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
127
134
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
135
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
128
136
|
}, z.core.$strip>>;
|
|
129
|
-
}, z.core.$strip
|
|
137
|
+
}, z.core.$strip>>>;
|
|
130
138
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
131
139
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
132
140
|
none: "none";
|
|
@@ -136,6 +144,14 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
136
144
|
notes: z.ZodOptional<z.ZodString>;
|
|
137
145
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
138
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>>;
|
|
139
155
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
156
|
mode: z.ZodLiteral<"acceptance">;
|
|
141
157
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -273,16 +289,24 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
273
289
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
274
290
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
275
291
|
}, z.core.$strip>>;
|
|
276
|
-
|
|
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
|
+
}>;
|
|
277
299
|
title: z.ZodString;
|
|
278
300
|
articles: z.ZodArray<z.ZodObject<{
|
|
279
301
|
id: z.ZodString;
|
|
280
302
|
title: z.ZodString;
|
|
281
303
|
body: z.ZodString;
|
|
304
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
282
305
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
283
306
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
307
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
284
308
|
}, z.core.$strip>>;
|
|
285
|
-
}, z.core.$strip
|
|
309
|
+
}, z.core.$strip>>>;
|
|
286
310
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
287
311
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
288
312
|
none: "none";
|
|
@@ -292,6 +316,14 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
292
316
|
notes: z.ZodOptional<z.ZodString>;
|
|
293
317
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
294
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>>;
|
|
295
327
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
296
328
|
mode: z.ZodLiteral<"acceptance">;
|
|
297
329
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -414,16 +446,24 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
414
446
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
415
447
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
416
448
|
}, z.core.$strip>>;
|
|
417
|
-
|
|
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
|
+
}>;
|
|
418
456
|
title: z.ZodString;
|
|
419
457
|
articles: z.ZodArray<z.ZodObject<{
|
|
420
458
|
id: z.ZodString;
|
|
421
459
|
title: z.ZodString;
|
|
422
460
|
body: z.ZodString;
|
|
461
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
423
462
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
424
463
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
464
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
425
465
|
}, z.core.$strip>>;
|
|
426
|
-
}, z.core.$strip
|
|
466
|
+
}, z.core.$strip>>>;
|
|
427
467
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
428
468
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
429
469
|
none: "none";
|
|
@@ -433,6 +473,14 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
433
473
|
notes: z.ZodOptional<z.ZodString>;
|
|
434
474
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
435
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>>;
|
|
436
484
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
437
485
|
mode: z.ZodLiteral<"acceptance">;
|
|
438
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;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhD,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA;AAEnG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;iBAMlD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA4QA,MAAM,CAAC,OAAO,UAAU,WAAW,
|
|
1
|
+
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA4QA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAsoBlC"}
|