@loczer/storefront-sdk 0.192.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/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 +121 -9
- package/dist/index.js +5 -5
- 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/ContractSaleDocumentPage.d.ts +21 -9
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/storefront.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -126,16 +126,24 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
126
126
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
128
128
|
}, z.core.$strip>>;
|
|
129
|
-
|
|
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
|
+
}>;
|
|
130
136
|
title: z.ZodString;
|
|
131
137
|
articles: z.ZodArray<z.ZodObject<{
|
|
132
138
|
id: z.ZodString;
|
|
133
139
|
title: z.ZodString;
|
|
134
140
|
body: z.ZodString;
|
|
141
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
135
142
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
136
143
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
144
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
137
145
|
}, z.core.$strip>>;
|
|
138
|
-
}, z.core.$strip
|
|
146
|
+
}, z.core.$strip>>>;
|
|
139
147
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
140
148
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
141
149
|
none: "none";
|
|
@@ -145,6 +153,14 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
145
153
|
notes: z.ZodOptional<z.ZodString>;
|
|
146
154
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
147
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>>;
|
|
148
164
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
149
165
|
mode: z.ZodLiteral<"acceptance">;
|
|
150
166
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -996,7 +1012,7 @@ export declare function ContactSection({ storeSlug }: {
|
|
|
996
1012
|
storeSlug: string;
|
|
997
1013
|
}): JSX.Element;
|
|
998
1014
|
|
|
999
|
-
export declare function ContractSaleDocument({ data: initialData,
|
|
1015
|
+
export declare function ContractSaleDocument({ data: initialData, showAppendices, withEnglishTranslation, heightMode, renderMode, publicDocumentUrl, onAccept, }: ContractSaleDocumentProps): JSX.Element;
|
|
1000
1016
|
|
|
1001
1017
|
export declare type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
|
|
1002
1018
|
|
|
@@ -1146,16 +1162,24 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
1146
1162
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1147
1163
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1148
1164
|
}, z.core.$strip>>;
|
|
1149
|
-
|
|
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
|
+
}>;
|
|
1150
1172
|
title: z.ZodString;
|
|
1151
1173
|
articles: z.ZodArray<z.ZodObject<{
|
|
1152
1174
|
id: z.ZodString;
|
|
1153
1175
|
title: z.ZodString;
|
|
1154
1176
|
body: z.ZodString;
|
|
1177
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1155
1178
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1156
1179
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1157
1181
|
}, z.core.$strip>>;
|
|
1158
|
-
}, z.core.$strip
|
|
1182
|
+
}, z.core.$strip>>>;
|
|
1159
1183
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1160
1184
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
1161
1185
|
none: "none";
|
|
@@ -1165,6 +1189,14 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
1165
1189
|
notes: z.ZodOptional<z.ZodString>;
|
|
1166
1190
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1167
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>>;
|
|
1168
1200
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1169
1201
|
mode: z.ZodLiteral<"acceptance">;
|
|
1170
1202
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -1187,6 +1219,35 @@ export declare const contractSaleDocumentApiSignatureSchema: z.ZodObject<{
|
|
|
1187
1219
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1188
1220
|
}, z.core.$strip>;
|
|
1189
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
|
+
|
|
1190
1251
|
export declare type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
|
|
1191
1252
|
|
|
1192
1253
|
export declare const contractSaleDocumentContactSchema: z.ZodObject<{
|
|
@@ -1261,7 +1322,7 @@ export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
|
|
|
1261
1322
|
|
|
1262
1323
|
export declare type ContractSaleDocumentProps = {
|
|
1263
1324
|
data: ContractSaleDocumentData;
|
|
1264
|
-
|
|
1325
|
+
showAppendices?: boolean;
|
|
1265
1326
|
withEnglishTranslation?: boolean;
|
|
1266
1327
|
heightMode?: "parent" | "viewport";
|
|
1267
1328
|
renderMode?: "interactive" | "pdf";
|
|
@@ -1288,6 +1349,17 @@ export declare const contractSaleDocumentReferenceTypeSchema: z.ZodEnum<{
|
|
|
1288
1349
|
sale: "sale";
|
|
1289
1350
|
}>;
|
|
1290
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
|
+
|
|
1291
1363
|
export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
1292
1364
|
id: z.ZodString;
|
|
1293
1365
|
kind: z.ZodEnum<{
|
|
@@ -1369,15 +1441,31 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
|
1369
1441
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1370
1442
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1371
1443
|
}, z.core.$strip>>;
|
|
1372
|
-
|
|
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
|
+
}>;
|
|
1373
1451
|
title: z.ZodString;
|
|
1374
1452
|
articles: z.ZodArray<z.ZodObject<{
|
|
1375
1453
|
id: z.ZodString;
|
|
1376
1454
|
title: z.ZodString;
|
|
1377
1455
|
body: z.ZodString;
|
|
1456
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1378
1457
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1379
1458
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1380
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>;
|
|
1381
1469
|
}, z.core.$strip>>;
|
|
1382
1470
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1383
1471
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1825,16 +1913,24 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
1825
1913
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1826
1914
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1827
1915
|
}, z.core.$strip>>;
|
|
1828
|
-
|
|
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
|
+
}>;
|
|
1829
1923
|
title: z.ZodString;
|
|
1830
1924
|
articles: z.ZodArray<z.ZodObject<{
|
|
1831
1925
|
id: z.ZodString;
|
|
1832
1926
|
title: z.ZodString;
|
|
1833
1927
|
body: z.ZodString;
|
|
1928
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1834
1929
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1835
1930
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1836
1932
|
}, z.core.$strip>>;
|
|
1837
|
-
}, z.core.$strip
|
|
1933
|
+
}, z.core.$strip>>>;
|
|
1838
1934
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1839
1935
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
1840
1936
|
none: "none";
|
|
@@ -1844,6 +1940,14 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
1844
1940
|
notes: z.ZodOptional<z.ZodString>;
|
|
1845
1941
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1846
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>>;
|
|
1847
1951
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1848
1952
|
mode: z.ZodLiteral<"acceptance">;
|
|
1849
1953
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -3911,6 +4015,10 @@ export declare const storefrontEn: {
|
|
|
3911
4015
|
docs_contract_sale_due_date_label: string;
|
|
3912
4016
|
docs_contract_sale_invoice_recipient_label: string;
|
|
3913
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;
|
|
3914
4022
|
docs_contract_sale_description_label: string;
|
|
3915
4023
|
docs_contract_sale_quantity_label: string;
|
|
3916
4024
|
docs_contract_sale_unit_price_label: string;
|
|
@@ -4397,6 +4505,10 @@ export declare const storefrontFr: {
|
|
|
4397
4505
|
docs_contract_sale_due_date_label: string;
|
|
4398
4506
|
docs_contract_sale_invoice_recipient_label: string;
|
|
4399
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;
|
|
4400
4512
|
docs_contract_sale_description_label: string;
|
|
4401
4513
|
docs_contract_sale_quantity_label: string;
|
|
4402
4514
|
docs_contract_sale_unit_price_label: string;
|
package/dist/index.js
CHANGED
|
@@ -75,8 +75,8 @@ import "./pages/CheckoutSuccessPage.js";
|
|
|
75
75
|
import "./pages/NotFoundPage.js";
|
|
76
76
|
import { accessories as kr } from "./data/accessories.js";
|
|
77
77
|
import Ar from "./data/bikes.js";
|
|
78
|
-
import { contractSaleDocumentAcceptanceLevelSchema as jr, contractSaleDocumentAcceptanceRecordSchema as Mr, contractSaleDocumentAcceptanceSchema as Nr, contractSaleDocumentAddressSchema as Pr,
|
|
79
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
80
|
-
import
|
|
81
|
-
import { Select as
|
|
82
|
-
export {
|
|
78
|
+
import { contractSaleDocumentAcceptanceLevelSchema as jr, contractSaleDocumentAcceptanceRecordSchema as Mr, contractSaleDocumentAcceptanceSchema as Nr, contractSaleDocumentAddressSchema as Pr, contractSaleDocumentAppendixKindSchema as Fr, contractSaleDocumentAppendixSchema as Ir, contractSaleDocumentContactSchema as Lr, contractSaleDocumentKindSchema as Rr, contractSaleDocumentLanguageCodeSchema as zr, contractSaleDocumentLanguageSchema as Br, contractSaleDocumentLineItemSchema as Vr, contractSaleDocumentRentalSchema as Hr, contractSaleDocumentSchema as Ur, contractSaleDocumentSignatureSchema as Wr } from "./lib/contractSaleDocument.js";
|
|
79
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Gr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Kr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as qr, acceptContractSaleDocumentRequestSchema as Jr, acceptContractSaleDocumentResponseSchema as Yr, contractSaleDocumentAcceptanceInputSchema as Xr, contractSaleDocumentAcceptanceRecordInputSchema as Zr, contractSaleDocumentApiAcceptanceRecordSchema as Qr, contractSaleDocumentApiAcceptanceSchema as $r, contractSaleDocumentApiSchema as ei, contractSaleDocumentApiSignatureSchema as ti, contractSaleDocumentReferenceSchema as ni, contractSaleDocumentReferenceTypeSchema as ri, contractSaleDocumentSignatureInputSchema as ii, downloadContractSaleDocumentPdfRequestSchema as ai, getContractSaleDocumentRequestSchema as oi, getContractSaleDocumentResponseSchema as si } from "./lib/contractSaleDocumentApi.js";
|
|
80
|
+
import ci from "./routes.js";
|
|
81
|
+
import { Select as li, SelectContent as ui, SelectGroup as di, SelectIcon as fi, SelectItem as pi, SelectItemIndicator as mi, SelectItemText as hi, SelectLabel as gi, SelectScrollDownButton as _i, SelectScrollUpButton as vi, SelectSeparator as yi, SelectTrigger as bi, SelectValue as xi } from "./ui/select.js";
|
|
82
|
+
export { Gr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, mr as AboutSection, je as BOOKING_SEARCH_KEYS, Cn as Badge, Hn as BookingEndDateField, Un as BookingEndTimeField, qn as BookingFlowSteps, Gn as BookingMobileDateDrawer, Ln as BookingPeriodProvider, Kn as BookingPeriodSelector, Bn as BookingStartDateField, Vn as BookingStartTimeField, Wn as BookingTimeSlotsStatus, Tn as Button, Xe as CATALOG_PRODUCT_BASE_RATE_UNSET, gr as Card, _r as CardAction, vr as CardContent, yr as CardDescription, br as CardFooter, xr as CardHeader, Sr as CardTitle, fr as ContactSection, Er as ContractSaleDocument, J as DEFAULT_BOOKING_DELIVERY_OPTION, z as DEFAULT_CANCELLATION_POLICY, B as DEFAULT_PAYMENT_POLICIES, Kr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Fn as DelayedPlaceholder, In as DelayedReveal, Yn as DeliveryAddressSelector, Sn as Footer, rr as Form, ir as FormControl, ar as FormDescription, or as FormField, sr as FormItem, cr as FormLabel, lr as FormMessage, qr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, Dn as Header, Jn as Input, zn as Label, Pn as Layout, p as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, m as PRODUCT_VARIANT_CODE_MAX_LENGTH, jn as PlatformFooter, An as PoweredByLoczerBadge, Tr as ProductPriceBadge, Cr as ProductWarningNotice, Ot as ROUTE, Dr as RadioGroup, Or as RadioGroupItem, en as STOREFRONT_AVAILABILITY_ROUTE, Lt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, me as STOREFRONT_HERO_MODES, mn as STOREFRONT_IMAGE_ROUTE, Ut as STOREFRONT_PRODUCTS_ROUTE, _n as STOREFRONT_TIME_SLOTS_ROUTE, li as Select, ui as SelectContent, di as SelectGroup, fi as SelectIcon, pi as SelectItem, mi as SelectItemIndicator, hi as SelectItemText, gi as SelectLabel, _i as SelectScrollDownButton, vi as SelectScrollUpButton, yi as SelectSeparator, bi as SelectTrigger, xi as SelectValue, hr as StepSectionTitle, wr as StorefrontCartPanel, mt as StorefrontCartProvider, Me as TIME_OPTIONS, pr as TestimonialsSection, dr as Textarea, Nn as WhatsAppFloatingButton, Jr as acceptContractSaleDocumentRequestSchema, Yr as acceptContractSaleDocumentResponseSchema, kr as accessories, h as accessoryProductSchema, Ne as applyBookingParamsToSearch, wn as badgeVariants, le as baseAssetSchema, ue as baseAssetStatusSchema, de as baseBookingItemSchema, fe as baseBookingSchema, pe as baseBookingStateSchema, g as bikeProductSchema, Ar as bikes, Y as bookingCustomerInputSchema, X as bookingDeliveryOptionSchema, re as bookingInsuranceConsentSourceSchema, ie as bookingInsuranceItemSnapshotSchema, ae as bookingInsuranceSnapshotSchema, Z as bookingScheduleInputSchema, oe as buildBookingInsuranceSnapshot, xt as buildDailyPriceRows, St as buildPriceTierLabels, tn as buildStorefrontAvailabilityKey, Dt as buildStorefrontCartSummary, hn as buildStorefrontImageUrl, Ze as buildStorefrontProductSlug, Qe as buildVariantStorefrontProductId, Pt as buildWhatsAppHref, En as buttonVariants, Ct as calculateDailyPriceForQuantity, se as calculateInsuranceCalendarDays, V as cancellationPolicySchema, H as cancellationPolicyTierSchema, Q as cartItemInputSchema, _t as cn, $e as compareCatalogProducts, et as compareStorefrontAccessoryProducts, tt as compareStorefrontBikeProducts, Xr as contractSaleDocumentAcceptanceInputSchema, jr as contractSaleDocumentAcceptanceLevelSchema, Zr as contractSaleDocumentAcceptanceRecordInputSchema, Mr as contractSaleDocumentAcceptanceRecordSchema, Nr as contractSaleDocumentAcceptanceSchema, Pr as contractSaleDocumentAddressSchema, Qr as contractSaleDocumentApiAcceptanceRecordSchema, $r as contractSaleDocumentApiAcceptanceSchema, ei as contractSaleDocumentApiSchema, ti as contractSaleDocumentApiSignatureSchema, Fr as contractSaleDocumentAppendixKindSchema, Ir as contractSaleDocumentAppendixSchema, Lr as contractSaleDocumentContactSchema, Rr as contractSaleDocumentKindSchema, zr as contractSaleDocumentLanguageCodeSchema, Br as contractSaleDocumentLanguageSchema, Vr as contractSaleDocumentLineItemSchema, ni as contractSaleDocumentReferenceSchema, ri as contractSaleDocumentReferenceTypeSchema, Hr as contractSaleDocumentRentalSchema, Ur as contractSaleDocumentSchema, ii as contractSaleDocumentSignatureInputSchema, Wr as contractSaleDocumentSignatureSchema, $ as createBookingInputBaseSchema, ee as createBookingInputSchema, Pe as createBookingPeriodConfigFromBookingEngineConfiguration, Fe as createBookingPeriodConfigFromShopConfiguration, Ie as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, nn as doesStorefrontAvailabilityDisplaySoldOut, ai as downloadContractSaleDocumentPdfRequestSchema, _ as eBikeProductSchema, nt as findStorefrontProduct, rt as findStorefrontProductBySlug, vt as formatPriceMinor, jt as formatStorefrontPhoneDisplay, wt as formatStorefrontPriceMinor, W as fulfillmentModeSchema, yt as getAvailabilityVariant, Le as getBookingDurationLabel, Re as getBookingDurationMinutes, ze as getBookingParamsFromSearch, Be as getBookingSessionStorageKey, it as getCatalogProductBaseRateMinor, at as getCatalogProductPaginationSort, ot as getCatalogProductSortFieldForPriceUnit, oi as getContractSaleDocumentRequestSchema, si as getContractSaleDocumentResponseSchema, Ve as getDefaultBookingParams, He as getDefaultBookingParamsForStorefrontConfiguration, Tt as getLocalizedEntry, t as getLocalizedStringValue, Et as getLocalizedValue, bt as getMinDayPriceMinor, rn as getStorefrontAvailabilityIssue, an as getStorefrontAvailabilityStatus, st as getStorefrontBaseDailyRateMinor, ct as getStorefrontCheckoutProductId, lt as getStorefrontRepresentedVariantId, ce as insuranceProviderSchema, v as isProductVariantCodeIdentifierKind, on as isStorefrontAvailabilityInsufficient, A as isoDateSchema, Xn as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, U as paymentPoliciesSchema, Ue as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, y as productInsuranceSchema, b as productKindSchema, x as productSchema, S as productStorefrontDisplayModeSchema, C as productVariantAttributeSchema, w as productVariantCodeSchema, T as productVariantIdentifierSchema, E as productVariantSchema, sn as publicAvailabilityDisplayModeSchema, G as publicBookingEngineConfigurationSchema, K as publicCheckoutConfigurationSchema, q as publicCheckoutDynamicOptionsSchema, We as readBookingSearchParamsFromSessionStorage, Ge as readBookingSearchParamsFromStorage, kt as requestSchema, te as resolveBookingDeliveryOption, Ke as resolveBookingSearchParams, qe as resolveBookingSearchParamsFromSessionStorage, ht as resolveStorefrontCartItemProduct, Mt as resolveStorefrontMapsHref, Nt as resolveStorefrontPhoneContact, Ft as resolveStorefrontWhatsAppContact, It as resolveStorefrontWhatsAppHref, At as responseSchema, D as richTextJsonDocSchema, O as richTextSchema, k as richTextVersionSchema, j as shopConfigurationSchema, M as shopExtraTimeSlotRuleSchema, N as shopOpeningDayIndexSchema, P as shopOpeningDaySchema, F as shopOpeningHoursOverrideSchema, I as shopOpeningHoursPeriodSchema, L as shopOpeningSlotSchema, un as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, dn as storefrontAvailabilityProductSchema, cn as storefrontAvailabilityRequestSchema, ln as storefrontAvailabilityResponseSchema, fn as storefrontAvailabilityScheduleSchema, he as storefrontCheckoutModeSchema, Bt as storefrontCheckoutSubmitDeliveryRefinement, zt as storefrontCheckoutSubmitItemSchema, Rt as storefrontCheckoutSubmitRequestBaseSchema, Vt as storefrontCheckoutSubmitRequestSchema, Ht as storefrontCheckoutSubmitResponseSchema, ge as storefrontConfigurationSchema, _e as storefrontContentSchema, On as storefrontEn, ve as storefrontFaqItemSchema, ye as storefrontFaqSchema, kn as storefrontFr, be as storefrontFulfillmentModeSchema, xe as storefrontHeroModeSchema, gn as storefrontImageRequestSchema, Se as storefrontLocalizedRichTextSchema, Ce as storefrontModalMessageSchema, we as storefrontModulesSchema, Wt as storefrontProductsRequestSchema, Gt as storefrontProductsResponseSchema, Kt as storefrontPublicAccessoryProductSchema, pn as storefrontPublicAvailabilityRecordSchema, qt as storefrontPublicBikeAvailabilityStatusSchema, Jt as storefrontPublicBikeProductSchema, Yt as storefrontPublicProductDisplayModeSchema, Xt as storefrontPublicProductPriceSchema, Zt as storefrontPublicProductVariantAttributeSchema, Qt as storefrontPublicProductVariantIdentifierSchema, $t as storefrontPublicProductVariantSchema, Te as storefrontReviewsModuleSchema, Ee as storefrontRichTextSchema, ci as storefrontRoutes, De as storefrontSettingsSchema, Oe as storefrontShopSchema, ke as storefrontStatusSchema, xn as storefrontTimeSlotJourneySchema, bn as storefrontTimeSlotSchema, vn as storefrontTimeSlotsRequestSchema, yn as storefrontTimeSlotsResponseSchema, Ae as storefrontWorkspaceSchema, R as timeOfDaySchema, ut as toStorefrontAccessoryProducts, dt as toStorefrontBikeProducts, ft as toStorefrontBookingProducts, pt as toStorefrontBookingProductsCollections, Rn as useBookingPeriod, ur as useFormField, Zn as useOptionalStorefront, Qn as useStorefront, $n as useStorefrontBookingProducts, gt as useStorefrontCart, er as useStorefrontConfig, tr as useStorefrontProducts, nr as useStorefrontWorkspaceLanguage, Mn as useWhatsAppFloatingButton, ne as validateBookingDeliveryAddress, Je as writeBookingSearchParamsToSessionStorage, Ye as writeBookingSearchParamsToStorage };
|
|
@@ -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":[],"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().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,6BAA6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