@voyantjs/storefront 0.3.1 → 0.4.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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/routes-public.d.ts +365 -6
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +50 -1
- package/dist/service-departures.d.ts +177 -0
- package/dist/service-departures.d.ts.map +1 -0
- package/dist/service-departures.js +779 -0
- package/dist/service.d.ts +196 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +23 -0
- package/dist/validation.d.ts +452 -35
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +194 -0
- package/package.json +10 -3
package/dist/validation.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const storefrontPaymentMethodCodeSchema: z.ZodEnum<{
|
|
3
|
+
voucher: "voucher";
|
|
3
4
|
card: "card";
|
|
4
5
|
bank_transfer: "bank_transfer";
|
|
5
6
|
cash: "cash";
|
|
6
|
-
voucher: "voucher";
|
|
7
7
|
invoice: "invoice";
|
|
8
8
|
}>;
|
|
9
9
|
export declare const storefrontFormFieldTypeSchema: z.ZodEnum<{
|
|
10
|
-
|
|
10
|
+
date: "date";
|
|
11
|
+
select: "select";
|
|
11
12
|
email: "email";
|
|
13
|
+
country: "country";
|
|
14
|
+
text: "text";
|
|
12
15
|
tel: "tel";
|
|
13
16
|
textarea: "textarea";
|
|
14
|
-
select: "select";
|
|
15
17
|
checkbox: "checkbox";
|
|
16
|
-
date: "date";
|
|
17
|
-
country: "country";
|
|
18
18
|
}>;
|
|
19
19
|
export declare const storefrontFormFieldOptionSchema: z.ZodObject<{
|
|
20
20
|
value: z.ZodString;
|
|
@@ -24,14 +24,14 @@ export declare const storefrontFormFieldInputSchema: z.ZodObject<{
|
|
|
24
24
|
key: z.ZodString;
|
|
25
25
|
label: z.ZodString;
|
|
26
26
|
type: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
|
|
27
|
+
date: "date";
|
|
28
|
+
select: "select";
|
|
28
29
|
email: "email";
|
|
30
|
+
country: "country";
|
|
31
|
+
text: "text";
|
|
29
32
|
tel: "tel";
|
|
30
33
|
textarea: "textarea";
|
|
31
|
-
select: "select";
|
|
32
34
|
checkbox: "checkbox";
|
|
33
|
-
date: "date";
|
|
34
|
-
country: "country";
|
|
35
35
|
}>>;
|
|
36
36
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
37
37
|
placeholder: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -46,14 +46,14 @@ export declare const storefrontFormFieldSchema: z.ZodObject<{
|
|
|
46
46
|
key: z.ZodString;
|
|
47
47
|
label: z.ZodString;
|
|
48
48
|
type: z.ZodEnum<{
|
|
49
|
-
|
|
49
|
+
date: "date";
|
|
50
|
+
select: "select";
|
|
50
51
|
email: "email";
|
|
52
|
+
country: "country";
|
|
53
|
+
text: "text";
|
|
51
54
|
tel: "tel";
|
|
52
55
|
textarea: "textarea";
|
|
53
|
-
select: "select";
|
|
54
56
|
checkbox: "checkbox";
|
|
55
|
-
date: "date";
|
|
56
|
-
country: "country";
|
|
57
57
|
}>;
|
|
58
58
|
required: z.ZodBoolean;
|
|
59
59
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -66,10 +66,10 @@ export declare const storefrontFormFieldSchema: z.ZodObject<{
|
|
|
66
66
|
}, z.core.$strip>;
|
|
67
67
|
export declare const storefrontPaymentMethodInputSchema: z.ZodObject<{
|
|
68
68
|
code: z.ZodEnum<{
|
|
69
|
+
voucher: "voucher";
|
|
69
70
|
card: "card";
|
|
70
71
|
bank_transfer: "bank_transfer";
|
|
71
72
|
cash: "cash";
|
|
72
|
-
voucher: "voucher";
|
|
73
73
|
invoice: "invoice";
|
|
74
74
|
}>;
|
|
75
75
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -78,10 +78,10 @@ export declare const storefrontPaymentMethodInputSchema: z.ZodObject<{
|
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
export declare const storefrontPaymentMethodSchema: z.ZodObject<{
|
|
80
80
|
code: z.ZodEnum<{
|
|
81
|
+
voucher: "voucher";
|
|
81
82
|
card: "card";
|
|
82
83
|
bank_transfer: "bank_transfer";
|
|
83
84
|
cash: "cash";
|
|
84
|
-
voucher: "voucher";
|
|
85
85
|
invoice: "invoice";
|
|
86
86
|
}>;
|
|
87
87
|
label: z.ZodString;
|
|
@@ -108,14 +108,14 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
|
|
|
108
108
|
key: z.ZodString;
|
|
109
109
|
label: z.ZodString;
|
|
110
110
|
type: z.ZodDefault<z.ZodEnum<{
|
|
111
|
-
|
|
111
|
+
date: "date";
|
|
112
|
+
select: "select";
|
|
112
113
|
email: "email";
|
|
114
|
+
country: "country";
|
|
115
|
+
text: "text";
|
|
113
116
|
tel: "tel";
|
|
114
117
|
textarea: "textarea";
|
|
115
|
-
select: "select";
|
|
116
118
|
checkbox: "checkbox";
|
|
117
|
-
date: "date";
|
|
118
|
-
country: "country";
|
|
119
119
|
}>>;
|
|
120
120
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
121
121
|
placeholder: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -132,14 +132,14 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
|
|
|
132
132
|
key: z.ZodString;
|
|
133
133
|
label: z.ZodString;
|
|
134
134
|
type: z.ZodDefault<z.ZodEnum<{
|
|
135
|
-
|
|
135
|
+
date: "date";
|
|
136
|
+
select: "select";
|
|
136
137
|
email: "email";
|
|
138
|
+
country: "country";
|
|
139
|
+
text: "text";
|
|
137
140
|
tel: "tel";
|
|
138
141
|
textarea: "textarea";
|
|
139
|
-
select: "select";
|
|
140
142
|
checkbox: "checkbox";
|
|
141
|
-
date: "date";
|
|
142
|
-
country: "country";
|
|
143
143
|
}>>;
|
|
144
144
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
145
145
|
placeholder: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -154,18 +154,18 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
|
|
|
154
154
|
}, z.core.$strip>>;
|
|
155
155
|
payment: z.ZodOptional<z.ZodObject<{
|
|
156
156
|
defaultMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
voucher: "voucher";
|
|
157
158
|
card: "card";
|
|
158
159
|
bank_transfer: "bank_transfer";
|
|
159
160
|
cash: "cash";
|
|
160
|
-
voucher: "voucher";
|
|
161
161
|
invoice: "invoice";
|
|
162
162
|
}>>>;
|
|
163
163
|
methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
164
|
code: z.ZodEnum<{
|
|
165
|
+
voucher: "voucher";
|
|
165
166
|
card: "card";
|
|
166
167
|
bank_transfer: "bank_transfer";
|
|
167
168
|
cash: "cash";
|
|
168
|
-
voucher: "voucher";
|
|
169
169
|
invoice: "invoice";
|
|
170
170
|
}>;
|
|
171
171
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -194,14 +194,14 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
|
|
|
194
194
|
key: z.ZodString;
|
|
195
195
|
label: z.ZodString;
|
|
196
196
|
type: z.ZodEnum<{
|
|
197
|
-
|
|
197
|
+
date: "date";
|
|
198
|
+
select: "select";
|
|
198
199
|
email: "email";
|
|
200
|
+
country: "country";
|
|
201
|
+
text: "text";
|
|
199
202
|
tel: "tel";
|
|
200
203
|
textarea: "textarea";
|
|
201
|
-
select: "select";
|
|
202
204
|
checkbox: "checkbox";
|
|
203
|
-
date: "date";
|
|
204
|
-
country: "country";
|
|
205
205
|
}>;
|
|
206
206
|
required: z.ZodBoolean;
|
|
207
207
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -218,14 +218,14 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
|
|
|
218
218
|
key: z.ZodString;
|
|
219
219
|
label: z.ZodString;
|
|
220
220
|
type: z.ZodEnum<{
|
|
221
|
-
|
|
221
|
+
date: "date";
|
|
222
|
+
select: "select";
|
|
222
223
|
email: "email";
|
|
224
|
+
country: "country";
|
|
225
|
+
text: "text";
|
|
223
226
|
tel: "tel";
|
|
224
227
|
textarea: "textarea";
|
|
225
|
-
select: "select";
|
|
226
228
|
checkbox: "checkbox";
|
|
227
|
-
date: "date";
|
|
228
|
-
country: "country";
|
|
229
229
|
}>;
|
|
230
230
|
required: z.ZodBoolean;
|
|
231
231
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -240,18 +240,18 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>;
|
|
241
241
|
payment: z.ZodObject<{
|
|
242
242
|
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
243
|
+
voucher: "voucher";
|
|
243
244
|
card: "card";
|
|
244
245
|
bank_transfer: "bank_transfer";
|
|
245
246
|
cash: "cash";
|
|
246
|
-
voucher: "voucher";
|
|
247
247
|
invoice: "invoice";
|
|
248
248
|
}>>;
|
|
249
249
|
methods: z.ZodArray<z.ZodObject<{
|
|
250
250
|
code: z.ZodEnum<{
|
|
251
|
+
voucher: "voucher";
|
|
251
252
|
card: "card";
|
|
252
253
|
bank_transfer: "bank_transfer";
|
|
253
254
|
cash: "cash";
|
|
254
|
-
voucher: "voucher";
|
|
255
255
|
invoice: "invoice";
|
|
256
256
|
}>;
|
|
257
257
|
label: z.ZodString;
|
|
@@ -260,6 +260,420 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
|
|
|
260
260
|
}, z.core.$strip>>;
|
|
261
261
|
}, z.core.$strip>;
|
|
262
262
|
}, z.core.$strip>;
|
|
263
|
+
export declare const storefrontDepartureStatusSchema: z.ZodEnum<{
|
|
264
|
+
open: "open";
|
|
265
|
+
closed: "closed";
|
|
266
|
+
sold_out: "sold_out";
|
|
267
|
+
cancelled: "cancelled";
|
|
268
|
+
on_request: "on_request";
|
|
269
|
+
}>;
|
|
270
|
+
export declare const storefrontDepartureRoomOccupancySchema: z.ZodObject<{
|
|
271
|
+
adultsMin: z.ZodNumber;
|
|
272
|
+
adultsMax: z.ZodNumber;
|
|
273
|
+
childrenMax: z.ZodNumber;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
export declare const storefrontDepartureRoomPriceSchema: z.ZodObject<{
|
|
276
|
+
amount: z.ZodNumber;
|
|
277
|
+
currencyCode: z.ZodString;
|
|
278
|
+
roomType: z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
occupancy: z.ZodObject<{
|
|
282
|
+
adultsMin: z.ZodNumber;
|
|
283
|
+
adultsMax: z.ZodNumber;
|
|
284
|
+
childrenMax: z.ZodNumber;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
export declare const storefrontDepartureRatePlanSchema: z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
active: z.ZodBoolean;
|
|
291
|
+
name: z.ZodString;
|
|
292
|
+
pricingModel: z.ZodString;
|
|
293
|
+
basePrices: z.ZodArray<z.ZodObject<{
|
|
294
|
+
amount: z.ZodNumber;
|
|
295
|
+
currencyCode: z.ZodString;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
roomPrices: z.ZodArray<z.ZodObject<{
|
|
298
|
+
amount: z.ZodNumber;
|
|
299
|
+
currencyCode: z.ZodString;
|
|
300
|
+
roomType: z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
occupancy: z.ZodObject<{
|
|
304
|
+
adultsMin: z.ZodNumber;
|
|
305
|
+
adultsMax: z.ZodNumber;
|
|
306
|
+
childrenMax: z.ZodNumber;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export declare const storefrontDepartureStartTimeSchema: z.ZodObject<{
|
|
312
|
+
id: z.ZodString;
|
|
313
|
+
label: z.ZodNullable<z.ZodString>;
|
|
314
|
+
startTimeLocal: z.ZodString;
|
|
315
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
export declare const storefrontDepartureSchema: z.ZodObject<{
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
productId: z.ZodString;
|
|
320
|
+
itineraryId: z.ZodString;
|
|
321
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
322
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
323
|
+
startAt: z.ZodNullable<z.ZodString>;
|
|
324
|
+
endAt: z.ZodNullable<z.ZodString>;
|
|
325
|
+
timezone: z.ZodString;
|
|
326
|
+
startTime: z.ZodNullable<z.ZodObject<{
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
label: z.ZodNullable<z.ZodString>;
|
|
329
|
+
startTimeLocal: z.ZodString;
|
|
330
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
meetingPoint: z.ZodNullable<z.ZodString>;
|
|
333
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
334
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
335
|
+
departureStatus: z.ZodEnum<{
|
|
336
|
+
open: "open";
|
|
337
|
+
closed: "closed";
|
|
338
|
+
sold_out: "sold_out";
|
|
339
|
+
cancelled: "cancelled";
|
|
340
|
+
on_request: "on_request";
|
|
341
|
+
}>;
|
|
342
|
+
nights: z.ZodNullable<z.ZodNumber>;
|
|
343
|
+
days: z.ZodNullable<z.ZodNumber>;
|
|
344
|
+
ratePlans: z.ZodArray<z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
active: z.ZodBoolean;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
pricingModel: z.ZodString;
|
|
349
|
+
basePrices: z.ZodArray<z.ZodObject<{
|
|
350
|
+
amount: z.ZodNumber;
|
|
351
|
+
currencyCode: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>;
|
|
353
|
+
roomPrices: z.ZodArray<z.ZodObject<{
|
|
354
|
+
amount: z.ZodNumber;
|
|
355
|
+
currencyCode: z.ZodString;
|
|
356
|
+
roomType: z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
occupancy: z.ZodObject<{
|
|
360
|
+
adultsMin: z.ZodNumber;
|
|
361
|
+
adultsMax: z.ZodNumber;
|
|
362
|
+
childrenMax: z.ZodNumber;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
export declare const storefrontDepartureListQuerySchema: z.ZodObject<{
|
|
369
|
+
optionId: z.ZodOptional<z.ZodString>;
|
|
370
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
open: "open";
|
|
372
|
+
closed: "closed";
|
|
373
|
+
sold_out: "sold_out";
|
|
374
|
+
cancelled: "cancelled";
|
|
375
|
+
}>>;
|
|
376
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
377
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
378
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
379
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
export declare const storefrontDepartureListResponseSchema: z.ZodObject<{
|
|
382
|
+
data: z.ZodArray<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
productId: z.ZodString;
|
|
385
|
+
itineraryId: z.ZodString;
|
|
386
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
387
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
388
|
+
startAt: z.ZodNullable<z.ZodString>;
|
|
389
|
+
endAt: z.ZodNullable<z.ZodString>;
|
|
390
|
+
timezone: z.ZodString;
|
|
391
|
+
startTime: z.ZodNullable<z.ZodObject<{
|
|
392
|
+
id: z.ZodString;
|
|
393
|
+
label: z.ZodNullable<z.ZodString>;
|
|
394
|
+
startTimeLocal: z.ZodString;
|
|
395
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
meetingPoint: z.ZodNullable<z.ZodString>;
|
|
398
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
399
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
400
|
+
departureStatus: z.ZodEnum<{
|
|
401
|
+
open: "open";
|
|
402
|
+
closed: "closed";
|
|
403
|
+
sold_out: "sold_out";
|
|
404
|
+
cancelled: "cancelled";
|
|
405
|
+
on_request: "on_request";
|
|
406
|
+
}>;
|
|
407
|
+
nights: z.ZodNullable<z.ZodNumber>;
|
|
408
|
+
days: z.ZodNullable<z.ZodNumber>;
|
|
409
|
+
ratePlans: z.ZodArray<z.ZodObject<{
|
|
410
|
+
id: z.ZodString;
|
|
411
|
+
active: z.ZodBoolean;
|
|
412
|
+
name: z.ZodString;
|
|
413
|
+
pricingModel: z.ZodString;
|
|
414
|
+
basePrices: z.ZodArray<z.ZodObject<{
|
|
415
|
+
amount: z.ZodNumber;
|
|
416
|
+
currencyCode: z.ZodString;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
roomPrices: z.ZodArray<z.ZodObject<{
|
|
419
|
+
amount: z.ZodNumber;
|
|
420
|
+
currencyCode: z.ZodString;
|
|
421
|
+
roomType: z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
occupancy: z.ZodObject<{
|
|
425
|
+
adultsMin: z.ZodNumber;
|
|
426
|
+
adultsMax: z.ZodNumber;
|
|
427
|
+
childrenMax: z.ZodNumber;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
total: z.ZodNumber;
|
|
434
|
+
limit: z.ZodNumber;
|
|
435
|
+
offset: z.ZodNumber;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
export declare const storefrontDeparturePricePreviewInputSchema: z.ZodObject<{
|
|
438
|
+
pax: z.ZodDefault<z.ZodObject<{
|
|
439
|
+
adults: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
440
|
+
children: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
441
|
+
infants: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
442
|
+
}, z.core.$strip>>;
|
|
443
|
+
currencyCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
444
|
+
rooms: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
445
|
+
unitId: z.ZodString;
|
|
446
|
+
occupancy: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
447
|
+
quantity: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
448
|
+
}, z.core.$strip>>>;
|
|
449
|
+
extras: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
450
|
+
extraId: z.ZodString;
|
|
451
|
+
quantity: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
452
|
+
}, z.core.$strip>>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export declare const storefrontDeparturePriceLineItemSchema: z.ZodObject<{
|
|
455
|
+
name: z.ZodString;
|
|
456
|
+
total: z.ZodNumber;
|
|
457
|
+
quantity: z.ZodNumber;
|
|
458
|
+
unitPrice: z.ZodNumber;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
export declare const storefrontDeparturePricePreviewSchema: z.ZodObject<{
|
|
461
|
+
departureId: z.ZodString;
|
|
462
|
+
productId: z.ZodString;
|
|
463
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
464
|
+
currencyCode: z.ZodString;
|
|
465
|
+
basePrice: z.ZodNumber;
|
|
466
|
+
taxAmount: z.ZodNumber;
|
|
467
|
+
total: z.ZodNumber;
|
|
468
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
469
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
470
|
+
name: z.ZodString;
|
|
471
|
+
total: z.ZodNumber;
|
|
472
|
+
quantity: z.ZodNumber;
|
|
473
|
+
unitPrice: z.ZodNumber;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
}, z.core.$strip>;
|
|
476
|
+
export declare const storefrontProductExtensionsQuerySchema: z.ZodObject<{
|
|
477
|
+
optionId: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
export declare const storefrontProductExtensionMediaSchema: z.ZodObject<{
|
|
480
|
+
url: z.ZodString;
|
|
481
|
+
alt: z.ZodNullable<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
export declare const storefrontProductExtensionDetailSchema: z.ZodObject<{
|
|
484
|
+
description: z.ZodNullable<z.ZodString>;
|
|
485
|
+
media: z.ZodArray<z.ZodObject<{
|
|
486
|
+
url: z.ZodString;
|
|
487
|
+
alt: z.ZodNullable<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>>;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
export declare const storefrontProductExtensionSchema: z.ZodObject<{
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
name: z.ZodString;
|
|
493
|
+
label: z.ZodString;
|
|
494
|
+
required: z.ZodBoolean;
|
|
495
|
+
selectable: z.ZodBoolean;
|
|
496
|
+
hasOptions: z.ZodBoolean;
|
|
497
|
+
refProductId: z.ZodNullable<z.ZodString>;
|
|
498
|
+
thumb: z.ZodNullable<z.ZodString>;
|
|
499
|
+
pricePerPerson: z.ZodNullable<z.ZodNumber>;
|
|
500
|
+
currencyCode: z.ZodString;
|
|
501
|
+
pricingMode: z.ZodEnum<{
|
|
502
|
+
included: "included";
|
|
503
|
+
per_person: "per_person";
|
|
504
|
+
per_booking: "per_booking";
|
|
505
|
+
quantity_based: "quantity_based";
|
|
506
|
+
on_request: "on_request";
|
|
507
|
+
free: "free";
|
|
508
|
+
}>;
|
|
509
|
+
defaultQuantity: z.ZodNullable<z.ZodNumber>;
|
|
510
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
511
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
512
|
+
}, z.core.$strip>;
|
|
513
|
+
export declare const storefrontProductExtensionsResponseSchema: z.ZodObject<{
|
|
514
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
515
|
+
id: z.ZodString;
|
|
516
|
+
name: z.ZodString;
|
|
517
|
+
label: z.ZodString;
|
|
518
|
+
required: z.ZodBoolean;
|
|
519
|
+
selectable: z.ZodBoolean;
|
|
520
|
+
hasOptions: z.ZodBoolean;
|
|
521
|
+
refProductId: z.ZodNullable<z.ZodString>;
|
|
522
|
+
thumb: z.ZodNullable<z.ZodString>;
|
|
523
|
+
pricePerPerson: z.ZodNullable<z.ZodNumber>;
|
|
524
|
+
currencyCode: z.ZodString;
|
|
525
|
+
pricingMode: z.ZodEnum<{
|
|
526
|
+
included: "included";
|
|
527
|
+
per_person: "per_person";
|
|
528
|
+
per_booking: "per_booking";
|
|
529
|
+
quantity_based: "quantity_based";
|
|
530
|
+
on_request: "on_request";
|
|
531
|
+
free: "free";
|
|
532
|
+
}>;
|
|
533
|
+
defaultQuantity: z.ZodNullable<z.ZodNumber>;
|
|
534
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
535
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
items: z.ZodArray<z.ZodObject<{
|
|
538
|
+
id: z.ZodString;
|
|
539
|
+
name: z.ZodString;
|
|
540
|
+
label: z.ZodString;
|
|
541
|
+
required: z.ZodBoolean;
|
|
542
|
+
selectable: z.ZodBoolean;
|
|
543
|
+
hasOptions: z.ZodBoolean;
|
|
544
|
+
refProductId: z.ZodNullable<z.ZodString>;
|
|
545
|
+
thumb: z.ZodNullable<z.ZodString>;
|
|
546
|
+
pricePerPerson: z.ZodNullable<z.ZodNumber>;
|
|
547
|
+
currencyCode: z.ZodString;
|
|
548
|
+
pricingMode: z.ZodEnum<{
|
|
549
|
+
included: "included";
|
|
550
|
+
per_person: "per_person";
|
|
551
|
+
per_booking: "per_booking";
|
|
552
|
+
quantity_based: "quantity_based";
|
|
553
|
+
on_request: "on_request";
|
|
554
|
+
free: "free";
|
|
555
|
+
}>;
|
|
556
|
+
defaultQuantity: z.ZodNullable<z.ZodNumber>;
|
|
557
|
+
minQuantity: z.ZodNullable<z.ZodNumber>;
|
|
558
|
+
maxQuantity: z.ZodNullable<z.ZodNumber>;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
details: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
561
|
+
description: z.ZodNullable<z.ZodString>;
|
|
562
|
+
media: z.ZodArray<z.ZodObject<{
|
|
563
|
+
url: z.ZodString;
|
|
564
|
+
alt: z.ZodNullable<z.ZodString>;
|
|
565
|
+
}, z.core.$strip>>;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
currencyCode: z.ZodString;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
export declare const storefrontDepartureItinerarySegmentSchema: z.ZodObject<{
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
title: z.ZodString;
|
|
572
|
+
description: z.ZodNullable<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
export declare const storefrontDepartureItineraryDaySchema: z.ZodObject<{
|
|
575
|
+
id: z.ZodString;
|
|
576
|
+
title: z.ZodString;
|
|
577
|
+
description: z.ZodNullable<z.ZodString>;
|
|
578
|
+
thumbnail: z.ZodNullable<z.ZodObject<{
|
|
579
|
+
url: z.ZodString;
|
|
580
|
+
}, z.core.$strip>>;
|
|
581
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
title: z.ZodString;
|
|
584
|
+
description: z.ZodNullable<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
export declare const storefrontDepartureItinerarySchema: z.ZodObject<{
|
|
588
|
+
id: z.ZodString;
|
|
589
|
+
days: z.ZodArray<z.ZodObject<{
|
|
590
|
+
id: z.ZodString;
|
|
591
|
+
title: z.ZodString;
|
|
592
|
+
description: z.ZodNullable<z.ZodString>;
|
|
593
|
+
thumbnail: z.ZodNullable<z.ZodObject<{
|
|
594
|
+
url: z.ZodString;
|
|
595
|
+
}, z.core.$strip>>;
|
|
596
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
597
|
+
id: z.ZodString;
|
|
598
|
+
title: z.ZodString;
|
|
599
|
+
description: z.ZodNullable<z.ZodString>;
|
|
600
|
+
}, z.core.$strip>>;
|
|
601
|
+
}, z.core.$strip>>;
|
|
602
|
+
}, z.core.$strip>;
|
|
603
|
+
export declare const storefrontPromotionalOfferSchema: z.ZodObject<{
|
|
604
|
+
id: z.ZodString;
|
|
605
|
+
name: z.ZodString;
|
|
606
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
607
|
+
description: z.ZodNullable<z.ZodString>;
|
|
608
|
+
discountType: z.ZodEnum<{
|
|
609
|
+
percentage: "percentage";
|
|
610
|
+
fixed_amount: "fixed_amount";
|
|
611
|
+
}>;
|
|
612
|
+
discountValue: z.ZodString;
|
|
613
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
614
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
615
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
616
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
617
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
618
|
+
minPassengers: z.ZodNullable<z.ZodNumber>;
|
|
619
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
620
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
621
|
+
stackable: z.ZodBoolean;
|
|
622
|
+
createdAt: z.ZodString;
|
|
623
|
+
updatedAt: z.ZodString;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
export declare const storefrontPromotionalOfferListQuerySchema: z.ZodObject<{
|
|
626
|
+
departureId: z.ZodOptional<z.ZodString>;
|
|
627
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
export declare const storefrontPromotionalOfferListResponseSchema: z.ZodObject<{
|
|
630
|
+
data: z.ZodArray<z.ZodObject<{
|
|
631
|
+
id: z.ZodString;
|
|
632
|
+
name: z.ZodString;
|
|
633
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
634
|
+
description: z.ZodNullable<z.ZodString>;
|
|
635
|
+
discountType: z.ZodEnum<{
|
|
636
|
+
percentage: "percentage";
|
|
637
|
+
fixed_amount: "fixed_amount";
|
|
638
|
+
}>;
|
|
639
|
+
discountValue: z.ZodString;
|
|
640
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
641
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
642
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
643
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
644
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
645
|
+
minPassengers: z.ZodNullable<z.ZodNumber>;
|
|
646
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
647
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
648
|
+
stackable: z.ZodBoolean;
|
|
649
|
+
createdAt: z.ZodString;
|
|
650
|
+
updatedAt: z.ZodString;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
export declare const storefrontPromotionalOfferResponseSchema: z.ZodObject<{
|
|
654
|
+
data: z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
name: z.ZodString;
|
|
657
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
658
|
+
description: z.ZodNullable<z.ZodString>;
|
|
659
|
+
discountType: z.ZodEnum<{
|
|
660
|
+
percentage: "percentage";
|
|
661
|
+
fixed_amount: "fixed_amount";
|
|
662
|
+
}>;
|
|
663
|
+
discountValue: z.ZodString;
|
|
664
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
665
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
666
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
667
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
668
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
669
|
+
minPassengers: z.ZodNullable<z.ZodNumber>;
|
|
670
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
671
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
672
|
+
stackable: z.ZodBoolean;
|
|
673
|
+
createdAt: z.ZodString;
|
|
674
|
+
updatedAt: z.ZodString;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
}, z.core.$strip>;
|
|
263
677
|
export type StorefrontFormFieldInput = z.infer<typeof storefrontFormFieldInputSchema>;
|
|
264
678
|
export type StorefrontFormField = z.infer<typeof storefrontFormFieldSchema>;
|
|
265
679
|
export type StorefrontPaymentMethodInput = z.infer<typeof storefrontPaymentMethodInputSchema>;
|
|
@@ -267,4 +681,7 @@ export type StorefrontPaymentMethod = z.infer<typeof storefrontPaymentMethodSche
|
|
|
267
681
|
export type StorefrontPaymentMethodCode = z.infer<typeof storefrontPaymentMethodCodeSchema>;
|
|
268
682
|
export type StorefrontSettingsInput = z.infer<typeof storefrontSettingsInputSchema>;
|
|
269
683
|
export type StorefrontSettings = z.infer<typeof storefrontSettingsSchema>;
|
|
684
|
+
export type StorefrontDepartureListQuery = z.infer<typeof storefrontDepartureListQuerySchema>;
|
|
685
|
+
export type StorefrontDeparturePricePreviewInput = z.infer<typeof storefrontDeparturePricePreviewInputSchema>;
|
|
686
|
+
export type StorefrontPromotionalOffer = z.infer<typeof storefrontPromotionalOfferSchema>;
|
|
270
687
|
//# sourceMappingURL=validation.d.ts.map
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"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"}
|