@voyantjs/transactions 0.6.8 → 0.6.9
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 +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/pii.d.ts +16 -9
- package/dist/pii.d.ts.map +1 -1
- package/dist/pii.js +76 -70
- package/dist/routes-offers.d.ts +462 -28
- package/dist/routes-offers.d.ts.map +1 -1
- package/dist/routes-offers.js +199 -84
- package/dist/routes-orders.d.ts +461 -27
- package/dist/routes-orders.d.ts.map +1 -1
- package/dist/routes-orders.js +199 -84
- package/dist/routes-shared.d.ts +20 -13
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes-shared.js +7 -6
- package/dist/schema/participant-identity.d.ts +43 -6
- package/dist/schema/participant-identity.d.ts.map +1 -1
- package/dist/schema/participant-identity.js +12 -5
- package/dist/schema-audit.d.ts +4 -4
- package/dist/schema-audit.js +3 -3
- package/dist/schema-contacts.d.ts +529 -0
- package/dist/schema-contacts.d.ts.map +1 -0
- package/dist/schema-contacts.js +57 -0
- package/dist/schema-offers.d.ts +177 -3
- package/dist/schema-offers.d.ts.map +1 -1
- package/dist/schema-offers.js +13 -3
- package/dist/schema-orders.d.ts +177 -3
- package/dist/schema-orders.d.ts.map +1 -1
- package/dist/schema-orders.js +13 -3
- package/dist/schema-relations.d.ts +24 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +40 -2
- package/dist/schema-shared.d.ts +3 -1
- package/dist/schema-shared.d.ts.map +1 -1
- package/dist/schema-shared.js +8 -2
- package/dist/schema-staff.d.ts +529 -0
- package/dist/schema-staff.d.ts.map +1 -0
- package/dist/schema-staff.js +57 -0
- package/dist/schema.d.ts +2 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -0
- package/dist/service-offers.d.ts +275 -29
- package/dist/service-offers.d.ts.map +1 -1
- package/dist/service-offers.js +306 -43
- package/dist/service-orders.d.ts +227 -25
- package/dist/service-orders.d.ts.map +1 -1
- package/dist/service-orders.js +127 -22
- package/dist/service-shared.d.ts +144 -22
- package/dist/service-shared.d.ts.map +1 -1
- package/dist/service-shared.js +30 -2
- package/dist/service.d.ts +62 -22
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +42 -2
- package/dist/storefront-offers.d.ts +39 -5
- package/dist/storefront-offers.d.ts.map +1 -1
- package/dist/storefront-offers.js +3 -3
- package/dist/validation.d.ts +674 -36
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +186 -29
- package/package.json +5 -5
package/dist/validation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const storefrontOfferDiscountTypeSchema: z.ZodEnum<{
|
|
|
3
3
|
percentage: "percentage";
|
|
4
4
|
fixed_amount: "fixed_amount";
|
|
5
5
|
}>;
|
|
6
|
-
export declare const storefrontOfferMetadataSchema: z.ZodObject<{
|
|
6
|
+
export declare const storefrontOfferMetadataSchema: z.ZodPipe<z.ZodObject<{
|
|
7
7
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
8
8
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
9
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -18,13 +18,47 @@ export declare const storefrontOfferMetadataSchema: z.ZodObject<{
|
|
|
18
18
|
applicableDepartureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
19
19
|
validFrom: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
20
|
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
minTravelers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
22
|
minPassengers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
23
|
imageMobileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
24
|
imageDesktopUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
25
|
stackable: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
}, z.core.$strip
|
|
26
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
27
|
+
minTravelers: number | null;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
discountType: "percentage" | "fixed_amount";
|
|
30
|
+
discountValue: string;
|
|
31
|
+
applicableProductIds: string[];
|
|
32
|
+
applicableDepartureIds: string[];
|
|
33
|
+
stackable: boolean;
|
|
34
|
+
locale?: string | null | undefined;
|
|
35
|
+
slug?: string | null | undefined;
|
|
36
|
+
description?: string | null | undefined;
|
|
37
|
+
currency?: string | null | undefined;
|
|
38
|
+
validFrom?: string | null | undefined;
|
|
39
|
+
validTo?: string | null | undefined;
|
|
40
|
+
imageMobileUrl?: string | null | undefined;
|
|
41
|
+
imageDesktopUrl?: string | null | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
discountType: "percentage" | "fixed_amount";
|
|
45
|
+
discountValue: string;
|
|
46
|
+
applicableProductIds: string[];
|
|
47
|
+
applicableDepartureIds: string[];
|
|
48
|
+
stackable: boolean;
|
|
49
|
+
locale?: string | null | undefined;
|
|
50
|
+
slug?: string | null | undefined;
|
|
51
|
+
description?: string | null | undefined;
|
|
52
|
+
currency?: string | null | undefined;
|
|
53
|
+
validFrom?: string | null | undefined;
|
|
54
|
+
validTo?: string | null | undefined;
|
|
55
|
+
minTravelers?: number | null | undefined;
|
|
56
|
+
minPassengers?: number | null | undefined;
|
|
57
|
+
imageMobileUrl?: string | null | undefined;
|
|
58
|
+
imageDesktopUrl?: string | null | undefined;
|
|
59
|
+
}>>;
|
|
26
60
|
export declare const offerMetadataSchema: z.ZodObject<{
|
|
27
|
-
storefrontPromotionalOffer: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
storefrontPromotionalOffer: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
28
62
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
29
63
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
64
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -39,11 +73,45 @@ export declare const offerMetadataSchema: z.ZodObject<{
|
|
|
39
73
|
applicableDepartureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
74
|
validFrom: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
75
|
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
minTravelers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
77
|
minPassengers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
78
|
imageMobileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
79
|
imageDesktopUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
80
|
stackable: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
-
}, z.core.$strip
|
|
81
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
82
|
+
minTravelers: number | null;
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
discountType: "percentage" | "fixed_amount";
|
|
85
|
+
discountValue: string;
|
|
86
|
+
applicableProductIds: string[];
|
|
87
|
+
applicableDepartureIds: string[];
|
|
88
|
+
stackable: boolean;
|
|
89
|
+
locale?: string | null | undefined;
|
|
90
|
+
slug?: string | null | undefined;
|
|
91
|
+
description?: string | null | undefined;
|
|
92
|
+
currency?: string | null | undefined;
|
|
93
|
+
validFrom?: string | null | undefined;
|
|
94
|
+
validTo?: string | null | undefined;
|
|
95
|
+
imageMobileUrl?: string | null | undefined;
|
|
96
|
+
imageDesktopUrl?: string | null | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
enabled: boolean;
|
|
99
|
+
discountType: "percentage" | "fixed_amount";
|
|
100
|
+
discountValue: string;
|
|
101
|
+
applicableProductIds: string[];
|
|
102
|
+
applicableDepartureIds: string[];
|
|
103
|
+
stackable: boolean;
|
|
104
|
+
locale?: string | null | undefined;
|
|
105
|
+
slug?: string | null | undefined;
|
|
106
|
+
description?: string | null | undefined;
|
|
107
|
+
currency?: string | null | undefined;
|
|
108
|
+
validFrom?: string | null | undefined;
|
|
109
|
+
validTo?: string | null | undefined;
|
|
110
|
+
minTravelers?: number | null | undefined;
|
|
111
|
+
minPassengers?: number | null | undefined;
|
|
112
|
+
imageMobileUrl?: string | null | undefined;
|
|
113
|
+
imageDesktopUrl?: string | null | undefined;
|
|
114
|
+
}>>>;
|
|
47
115
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
48
116
|
export declare const offerStatusSchema: z.ZodEnum<{
|
|
49
117
|
draft: "draft";
|
|
@@ -66,8 +134,6 @@ export declare const transactionParticipantTypeSchema: z.ZodEnum<{
|
|
|
66
134
|
staff: "staff";
|
|
67
135
|
other: "other";
|
|
68
136
|
traveler: "traveler";
|
|
69
|
-
booker: "booker";
|
|
70
|
-
contact: "contact";
|
|
71
137
|
occupant: "occupant";
|
|
72
138
|
}>;
|
|
73
139
|
export declare const transactionTravelerCategorySchema: z.ZodEnum<{
|
|
@@ -104,6 +170,14 @@ export declare const transactionItemParticipantRoleSchema: z.ZodEnum<{
|
|
|
104
170
|
beneficiary: "beneficiary";
|
|
105
171
|
service_assignee: "service_assignee";
|
|
106
172
|
}>;
|
|
173
|
+
export declare const transactionContactAssignmentRoleSchema: z.ZodEnum<{
|
|
174
|
+
other: "other";
|
|
175
|
+
primary_contact: "primary_contact";
|
|
176
|
+
}>;
|
|
177
|
+
export declare const transactionStaffAssignmentRoleSchema: z.ZodEnum<{
|
|
178
|
+
other: "other";
|
|
179
|
+
service_assignee: "service_assignee";
|
|
180
|
+
}>;
|
|
107
181
|
export declare const orderTermTypeSchema: z.ZodEnum<{
|
|
108
182
|
other: "other";
|
|
109
183
|
terms_and_conditions: "terms_and_conditions";
|
|
@@ -137,6 +211,16 @@ export declare const insertOfferSchema: z.ZodObject<{
|
|
|
137
211
|
quoteId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
212
|
marketId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
213
|
sourceChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
+
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
contactCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
contactRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
|
+
contactCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
contactAddressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
contactPostalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
224
|
currency: z.ZodString;
|
|
141
225
|
baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
226
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -152,7 +236,7 @@ export declare const insertOfferSchema: z.ZodObject<{
|
|
|
152
236
|
convertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
237
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
238
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
155
|
-
storefrontPromotionalOffer: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
storefrontPromotionalOffer: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
156
240
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
157
241
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
158
242
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -167,11 +251,45 @@ export declare const insertOfferSchema: z.ZodObject<{
|
|
|
167
251
|
applicableDepartureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
168
252
|
validFrom: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
169
253
|
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
254
|
+
minTravelers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
170
255
|
minPassengers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
171
256
|
imageMobileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
172
257
|
imageDesktopUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
258
|
stackable: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$strip
|
|
259
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
260
|
+
minTravelers: number | null;
|
|
261
|
+
enabled: boolean;
|
|
262
|
+
discountType: "percentage" | "fixed_amount";
|
|
263
|
+
discountValue: string;
|
|
264
|
+
applicableProductIds: string[];
|
|
265
|
+
applicableDepartureIds: string[];
|
|
266
|
+
stackable: boolean;
|
|
267
|
+
locale?: string | null | undefined;
|
|
268
|
+
slug?: string | null | undefined;
|
|
269
|
+
description?: string | null | undefined;
|
|
270
|
+
currency?: string | null | undefined;
|
|
271
|
+
validFrom?: string | null | undefined;
|
|
272
|
+
validTo?: string | null | undefined;
|
|
273
|
+
imageMobileUrl?: string | null | undefined;
|
|
274
|
+
imageDesktopUrl?: string | null | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
enabled: boolean;
|
|
277
|
+
discountType: "percentage" | "fixed_amount";
|
|
278
|
+
discountValue: string;
|
|
279
|
+
applicableProductIds: string[];
|
|
280
|
+
applicableDepartureIds: string[];
|
|
281
|
+
stackable: boolean;
|
|
282
|
+
locale?: string | null | undefined;
|
|
283
|
+
slug?: string | null | undefined;
|
|
284
|
+
description?: string | null | undefined;
|
|
285
|
+
currency?: string | null | undefined;
|
|
286
|
+
validFrom?: string | null | undefined;
|
|
287
|
+
validTo?: string | null | undefined;
|
|
288
|
+
minTravelers?: number | null | undefined;
|
|
289
|
+
minPassengers?: number | null | undefined;
|
|
290
|
+
imageMobileUrl?: string | null | undefined;
|
|
291
|
+
imageDesktopUrl?: string | null | undefined;
|
|
292
|
+
}>>>;
|
|
175
293
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
176
294
|
}, z.core.$strip>;
|
|
177
295
|
export declare const updateOfferSchema: z.ZodObject<{
|
|
@@ -192,6 +310,16 @@ export declare const updateOfferSchema: z.ZodObject<{
|
|
|
192
310
|
quoteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
193
311
|
marketId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
194
312
|
sourceChannelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
313
|
+
contactFirstName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
314
|
+
contactLastName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
315
|
+
contactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
316
|
+
contactPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
317
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
318
|
+
contactCountry: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
319
|
+
contactRegion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
320
|
+
contactCity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
321
|
+
contactAddressLine1: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
322
|
+
contactPostalCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
195
323
|
currency: z.ZodOptional<z.ZodString>;
|
|
196
324
|
baseCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
197
325
|
fxRateSetId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -207,7 +335,7 @@ export declare const updateOfferSchema: z.ZodObject<{
|
|
|
207
335
|
convertedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
208
336
|
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
209
337
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
210
|
-
storefrontPromotionalOffer: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
storefrontPromotionalOffer: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
211
339
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
212
340
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
213
341
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -222,11 +350,45 @@ export declare const updateOfferSchema: z.ZodObject<{
|
|
|
222
350
|
applicableDepartureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
223
351
|
validFrom: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
224
352
|
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
353
|
+
minTravelers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
225
354
|
minPassengers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
226
355
|
imageMobileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
227
356
|
imageDesktopUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
228
357
|
stackable: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
-
}, z.core.$strip
|
|
358
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
359
|
+
minTravelers: number | null;
|
|
360
|
+
enabled: boolean;
|
|
361
|
+
discountType: "percentage" | "fixed_amount";
|
|
362
|
+
discountValue: string;
|
|
363
|
+
applicableProductIds: string[];
|
|
364
|
+
applicableDepartureIds: string[];
|
|
365
|
+
stackable: boolean;
|
|
366
|
+
locale?: string | null | undefined;
|
|
367
|
+
slug?: string | null | undefined;
|
|
368
|
+
description?: string | null | undefined;
|
|
369
|
+
currency?: string | null | undefined;
|
|
370
|
+
validFrom?: string | null | undefined;
|
|
371
|
+
validTo?: string | null | undefined;
|
|
372
|
+
imageMobileUrl?: string | null | undefined;
|
|
373
|
+
imageDesktopUrl?: string | null | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
enabled: boolean;
|
|
376
|
+
discountType: "percentage" | "fixed_amount";
|
|
377
|
+
discountValue: string;
|
|
378
|
+
applicableProductIds: string[];
|
|
379
|
+
applicableDepartureIds: string[];
|
|
380
|
+
stackable: boolean;
|
|
381
|
+
locale?: string | null | undefined;
|
|
382
|
+
slug?: string | null | undefined;
|
|
383
|
+
description?: string | null | undefined;
|
|
384
|
+
currency?: string | null | undefined;
|
|
385
|
+
validFrom?: string | null | undefined;
|
|
386
|
+
validTo?: string | null | undefined;
|
|
387
|
+
minTravelers?: number | null | undefined;
|
|
388
|
+
minPassengers?: number | null | undefined;
|
|
389
|
+
imageMobileUrl?: string | null | undefined;
|
|
390
|
+
imageDesktopUrl?: string | null | undefined;
|
|
391
|
+
}>>>;
|
|
230
392
|
}, z.core.$catchall<z.ZodUnknown>>>>>;
|
|
231
393
|
}, z.core.$strip>;
|
|
232
394
|
export declare const offerListQuerySchema: z.ZodObject<{
|
|
@@ -248,14 +410,69 @@ export declare const offerListQuerySchema: z.ZodObject<{
|
|
|
248
410
|
marketId: z.ZodOptional<z.ZodString>;
|
|
249
411
|
search: z.ZodOptional<z.ZodString>;
|
|
250
412
|
}, z.core.$strip>;
|
|
413
|
+
export declare const insertOfferTravelerSchema: z.ZodObject<{
|
|
414
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
+
participantType: z.ZodDefault<z.ZodEnum<{
|
|
416
|
+
staff: "staff";
|
|
417
|
+
other: "other";
|
|
418
|
+
traveler: "traveler";
|
|
419
|
+
occupant: "occupant";
|
|
420
|
+
}>>;
|
|
421
|
+
travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
422
|
+
other: "other";
|
|
423
|
+
adult: "adult";
|
|
424
|
+
child: "child";
|
|
425
|
+
infant: "infant";
|
|
426
|
+
senior: "senior";
|
|
427
|
+
}>>>;
|
|
428
|
+
firstName: z.ZodString;
|
|
429
|
+
lastName: z.ZodString;
|
|
430
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
|
+
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
+
nationality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
436
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
+
offerId: z.ZodString;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
export declare const updateOfferTravelerSchema: z.ZodObject<{
|
|
440
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
441
|
+
participantType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
442
|
+
staff: "staff";
|
|
443
|
+
other: "other";
|
|
444
|
+
traveler: "traveler";
|
|
445
|
+
occupant: "occupant";
|
|
446
|
+
}>>>;
|
|
447
|
+
travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
448
|
+
other: "other";
|
|
449
|
+
adult: "adult";
|
|
450
|
+
child: "child";
|
|
451
|
+
infant: "infant";
|
|
452
|
+
senior: "senior";
|
|
453
|
+
}>>>>;
|
|
454
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
455
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
456
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
457
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
458
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
459
|
+
dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
460
|
+
nationality: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
461
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
462
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
export declare const offerTravelerListQuerySchema: z.ZodObject<{
|
|
465
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
466
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
467
|
+
offerId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
469
|
+
}, z.core.$strip>;
|
|
251
470
|
export declare const insertOfferParticipantSchema: z.ZodObject<{
|
|
252
471
|
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
472
|
participantType: z.ZodDefault<z.ZodEnum<{
|
|
254
473
|
staff: "staff";
|
|
255
474
|
other: "other";
|
|
256
475
|
traveler: "traveler";
|
|
257
|
-
booker: "booker";
|
|
258
|
-
contact: "contact";
|
|
259
476
|
occupant: "occupant";
|
|
260
477
|
}>>;
|
|
261
478
|
travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -282,8 +499,6 @@ export declare const updateOfferParticipantSchema: z.ZodObject<{
|
|
|
282
499
|
staff: "staff";
|
|
283
500
|
other: "other";
|
|
284
501
|
traveler: "traveler";
|
|
285
|
-
booker: "booker";
|
|
286
|
-
contact: "contact";
|
|
287
502
|
occupant: "occupant";
|
|
288
503
|
}>>>;
|
|
289
504
|
travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -309,6 +524,94 @@ export declare const offerParticipantListQuerySchema: z.ZodObject<{
|
|
|
309
524
|
offerId: z.ZodOptional<z.ZodString>;
|
|
310
525
|
personId: z.ZodOptional<z.ZodString>;
|
|
311
526
|
}, z.core.$strip>;
|
|
527
|
+
export declare const insertOfferContactAssignmentSchema: z.ZodObject<{
|
|
528
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
529
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
530
|
+
other: "other";
|
|
531
|
+
primary_contact: "primary_contact";
|
|
532
|
+
}>>;
|
|
533
|
+
firstName: z.ZodString;
|
|
534
|
+
lastName: z.ZodString;
|
|
535
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
538
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
539
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
540
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
541
|
+
offerId: z.ZodString;
|
|
542
|
+
offerItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
export declare const updateOfferContactAssignmentSchema: z.ZodObject<{
|
|
545
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
546
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
547
|
+
other: "other";
|
|
548
|
+
primary_contact: "primary_contact";
|
|
549
|
+
}>>>;
|
|
550
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
551
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
552
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
553
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
554
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
555
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
556
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
557
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
558
|
+
offerItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
export declare const offerContactAssignmentListQuerySchema: z.ZodObject<{
|
|
561
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
562
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
563
|
+
offerId: z.ZodOptional<z.ZodString>;
|
|
564
|
+
offerItemId: z.ZodOptional<z.ZodString>;
|
|
565
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
566
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
567
|
+
other: "other";
|
|
568
|
+
primary_contact: "primary_contact";
|
|
569
|
+
}>>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
export declare const insertOfferStaffAssignmentSchema: z.ZodObject<{
|
|
572
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
573
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
574
|
+
other: "other";
|
|
575
|
+
service_assignee: "service_assignee";
|
|
576
|
+
}>>;
|
|
577
|
+
firstName: z.ZodString;
|
|
578
|
+
lastName: z.ZodString;
|
|
579
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
583
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
585
|
+
offerId: z.ZodString;
|
|
586
|
+
offerItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
+
}, z.core.$strip>;
|
|
588
|
+
export declare const updateOfferStaffAssignmentSchema: z.ZodObject<{
|
|
589
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
590
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
591
|
+
other: "other";
|
|
592
|
+
service_assignee: "service_assignee";
|
|
593
|
+
}>>>;
|
|
594
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
595
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
596
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
597
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
598
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
599
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
600
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
601
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
602
|
+
offerItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
export declare const offerStaffAssignmentListQuerySchema: z.ZodObject<{
|
|
605
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
606
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
607
|
+
offerId: z.ZodOptional<z.ZodString>;
|
|
608
|
+
offerItemId: z.ZodOptional<z.ZodString>;
|
|
609
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
610
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
611
|
+
other: "other";
|
|
612
|
+
service_assignee: "service_assignee";
|
|
613
|
+
}>>;
|
|
614
|
+
}, z.core.$strip>;
|
|
312
615
|
export declare const insertOfferItemSchema: z.ZodObject<{
|
|
313
616
|
productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
617
|
optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -408,8 +711,8 @@ export declare const offerItemListQuerySchema: z.ZodObject<{
|
|
|
408
711
|
priced: "priced";
|
|
409
712
|
}>>;
|
|
410
713
|
}, z.core.$strip>;
|
|
411
|
-
export declare const
|
|
412
|
-
|
|
714
|
+
export declare const insertOfferItemTravelerSchema: z.ZodPipe<z.ZodObject<{
|
|
715
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
413
716
|
role: z.ZodDefault<z.ZodEnum<{
|
|
414
717
|
other: "other";
|
|
415
718
|
traveler: "traveler";
|
|
@@ -420,9 +723,19 @@ export declare const insertOfferItemParticipantSchema: z.ZodObject<{
|
|
|
420
723
|
}>>;
|
|
421
724
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
422
725
|
offerItemId: z.ZodString;
|
|
423
|
-
}, z.core.$strip
|
|
424
|
-
|
|
425
|
-
|
|
726
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
727
|
+
travelerId: string;
|
|
728
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
729
|
+
isPrimary: boolean;
|
|
730
|
+
offerItemId: string;
|
|
731
|
+
}, {
|
|
732
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
733
|
+
isPrimary: boolean;
|
|
734
|
+
offerItemId: string;
|
|
735
|
+
travelerId?: string | undefined;
|
|
736
|
+
}>>;
|
|
737
|
+
export declare const updateOfferItemTravelerSchema: z.ZodPipe<z.ZodObject<{
|
|
738
|
+
travelerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
426
739
|
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
427
740
|
other: "other";
|
|
428
741
|
traveler: "traveler";
|
|
@@ -432,13 +745,90 @@ export declare const updateOfferItemParticipantSchema: z.ZodObject<{
|
|
|
432
745
|
service_assignee: "service_assignee";
|
|
433
746
|
}>>>;
|
|
434
747
|
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
435
|
-
}, z.core.$strip
|
|
436
|
-
|
|
748
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
749
|
+
travelerId: string | undefined;
|
|
750
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
751
|
+
isPrimary?: boolean | undefined;
|
|
752
|
+
}, {
|
|
753
|
+
travelerId?: string | undefined;
|
|
754
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
755
|
+
isPrimary?: boolean | undefined;
|
|
756
|
+
}>>;
|
|
757
|
+
export declare const offerItemTravelerListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
437
758
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
438
759
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
439
760
|
offerItemId: z.ZodOptional<z.ZodString>;
|
|
440
|
-
|
|
441
|
-
}, z.core.$strip
|
|
761
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
763
|
+
travelerId: string | undefined;
|
|
764
|
+
limit: number;
|
|
765
|
+
offset: number;
|
|
766
|
+
offerItemId?: string | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
limit: number;
|
|
769
|
+
offset: number;
|
|
770
|
+
offerItemId?: string | undefined;
|
|
771
|
+
travelerId?: string | undefined;
|
|
772
|
+
}>>;
|
|
773
|
+
export declare const insertOfferItemParticipantSchema: z.ZodPipe<z.ZodObject<{
|
|
774
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
775
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
776
|
+
other: "other";
|
|
777
|
+
traveler: "traveler";
|
|
778
|
+
occupant: "occupant";
|
|
779
|
+
primary_contact: "primary_contact";
|
|
780
|
+
beneficiary: "beneficiary";
|
|
781
|
+
service_assignee: "service_assignee";
|
|
782
|
+
}>>;
|
|
783
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
784
|
+
offerItemId: z.ZodString;
|
|
785
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
786
|
+
travelerId: string;
|
|
787
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
788
|
+
isPrimary: boolean;
|
|
789
|
+
offerItemId: string;
|
|
790
|
+
}, {
|
|
791
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
792
|
+
isPrimary: boolean;
|
|
793
|
+
offerItemId: string;
|
|
794
|
+
travelerId?: string | undefined;
|
|
795
|
+
}>>;
|
|
796
|
+
export declare const updateOfferItemParticipantSchema: z.ZodPipe<z.ZodObject<{
|
|
797
|
+
travelerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
798
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
799
|
+
other: "other";
|
|
800
|
+
traveler: "traveler";
|
|
801
|
+
occupant: "occupant";
|
|
802
|
+
primary_contact: "primary_contact";
|
|
803
|
+
beneficiary: "beneficiary";
|
|
804
|
+
service_assignee: "service_assignee";
|
|
805
|
+
}>>>;
|
|
806
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
807
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
808
|
+
travelerId: string | undefined;
|
|
809
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
810
|
+
isPrimary?: boolean | undefined;
|
|
811
|
+
}, {
|
|
812
|
+
travelerId?: string | undefined;
|
|
813
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
814
|
+
isPrimary?: boolean | undefined;
|
|
815
|
+
}>>;
|
|
816
|
+
export declare const offerItemParticipantListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
817
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
818
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
819
|
+
offerItemId: z.ZodOptional<z.ZodString>;
|
|
820
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
821
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
822
|
+
travelerId: string | undefined;
|
|
823
|
+
limit: number;
|
|
824
|
+
offset: number;
|
|
825
|
+
offerItemId?: string | undefined;
|
|
826
|
+
}, {
|
|
827
|
+
limit: number;
|
|
828
|
+
offset: number;
|
|
829
|
+
offerItemId?: string | undefined;
|
|
830
|
+
travelerId?: string | undefined;
|
|
831
|
+
}>>;
|
|
442
832
|
export declare const insertOrderSchema: z.ZodObject<{
|
|
443
833
|
orderNumber: z.ZodString;
|
|
444
834
|
offerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -457,6 +847,16 @@ export declare const insertOrderSchema: z.ZodObject<{
|
|
|
457
847
|
quoteId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
458
848
|
marketId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
849
|
sourceChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
850
|
+
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
851
|
+
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
|
+
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
853
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
855
|
+
contactCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
856
|
+
contactRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
857
|
+
contactCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
858
|
+
contactAddressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
859
|
+
contactPostalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
860
|
currency: z.ZodString;
|
|
461
861
|
baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
862
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -490,6 +890,16 @@ export declare const updateOrderSchema: z.ZodObject<{
|
|
|
490
890
|
quoteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
491
891
|
marketId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
492
892
|
sourceChannelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
893
|
+
contactFirstName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
894
|
+
contactLastName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
895
|
+
contactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
896
|
+
contactPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
897
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
898
|
+
contactCountry: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
899
|
+
contactRegion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
900
|
+
contactCity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
901
|
+
contactAddressLine1: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
902
|
+
contactPostalCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
493
903
|
currency: z.ZodOptional<z.ZodString>;
|
|
494
904
|
baseCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
495
905
|
fxRateSetId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -524,14 +934,69 @@ export declare const orderListQuerySchema: z.ZodObject<{
|
|
|
524
934
|
marketId: z.ZodOptional<z.ZodString>;
|
|
525
935
|
search: z.ZodOptional<z.ZodString>;
|
|
526
936
|
}, z.core.$strip>;
|
|
937
|
+
export declare const insertOrderTravelerSchema: z.ZodObject<{
|
|
938
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
939
|
+
participantType: z.ZodDefault<z.ZodEnum<{
|
|
940
|
+
staff: "staff";
|
|
941
|
+
other: "other";
|
|
942
|
+
traveler: "traveler";
|
|
943
|
+
occupant: "occupant";
|
|
944
|
+
}>>;
|
|
945
|
+
travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
946
|
+
other: "other";
|
|
947
|
+
adult: "adult";
|
|
948
|
+
child: "child";
|
|
949
|
+
infant: "infant";
|
|
950
|
+
senior: "senior";
|
|
951
|
+
}>>>;
|
|
952
|
+
firstName: z.ZodString;
|
|
953
|
+
lastName: z.ZodString;
|
|
954
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
955
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
956
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
nationality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
959
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
960
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
|
+
orderId: z.ZodString;
|
|
962
|
+
}, z.core.$strip>;
|
|
963
|
+
export declare const updateOrderTravelerSchema: z.ZodObject<{
|
|
964
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
965
|
+
participantType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
966
|
+
staff: "staff";
|
|
967
|
+
other: "other";
|
|
968
|
+
traveler: "traveler";
|
|
969
|
+
occupant: "occupant";
|
|
970
|
+
}>>>;
|
|
971
|
+
travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
972
|
+
other: "other";
|
|
973
|
+
adult: "adult";
|
|
974
|
+
child: "child";
|
|
975
|
+
infant: "infant";
|
|
976
|
+
senior: "senior";
|
|
977
|
+
}>>>>;
|
|
978
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
979
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
980
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
981
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
982
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
983
|
+
dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
984
|
+
nationality: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
985
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
986
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
987
|
+
}, z.core.$strip>;
|
|
988
|
+
export declare const orderTravelerListQuerySchema: z.ZodObject<{
|
|
989
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
990
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
991
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
992
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
993
|
+
}, z.core.$strip>;
|
|
527
994
|
export declare const insertOrderParticipantSchema: z.ZodObject<{
|
|
528
995
|
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
529
996
|
participantType: z.ZodDefault<z.ZodEnum<{
|
|
530
997
|
staff: "staff";
|
|
531
998
|
other: "other";
|
|
532
999
|
traveler: "traveler";
|
|
533
|
-
booker: "booker";
|
|
534
|
-
contact: "contact";
|
|
535
1000
|
occupant: "occupant";
|
|
536
1001
|
}>>;
|
|
537
1002
|
travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -558,8 +1023,6 @@ export declare const updateOrderParticipantSchema: z.ZodObject<{
|
|
|
558
1023
|
staff: "staff";
|
|
559
1024
|
other: "other";
|
|
560
1025
|
traveler: "traveler";
|
|
561
|
-
booker: "booker";
|
|
562
|
-
contact: "contact";
|
|
563
1026
|
occupant: "occupant";
|
|
564
1027
|
}>>>;
|
|
565
1028
|
travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -585,6 +1048,94 @@ export declare const orderParticipantListQuerySchema: z.ZodObject<{
|
|
|
585
1048
|
orderId: z.ZodOptional<z.ZodString>;
|
|
586
1049
|
personId: z.ZodOptional<z.ZodString>;
|
|
587
1050
|
}, z.core.$strip>;
|
|
1051
|
+
export declare const insertOrderContactAssignmentSchema: z.ZodObject<{
|
|
1052
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1053
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
1054
|
+
other: "other";
|
|
1055
|
+
primary_contact: "primary_contact";
|
|
1056
|
+
}>>;
|
|
1057
|
+
firstName: z.ZodString;
|
|
1058
|
+
lastName: z.ZodString;
|
|
1059
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1060
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1061
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1062
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1063
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1064
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1065
|
+
orderId: z.ZodString;
|
|
1066
|
+
orderItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1067
|
+
}, z.core.$strip>;
|
|
1068
|
+
export declare const updateOrderContactAssignmentSchema: z.ZodObject<{
|
|
1069
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1070
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1071
|
+
other: "other";
|
|
1072
|
+
primary_contact: "primary_contact";
|
|
1073
|
+
}>>>;
|
|
1074
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1077
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1078
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1079
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1080
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1081
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1082
|
+
orderItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
|
+
export declare const orderContactAssignmentListQuerySchema: z.ZodObject<{
|
|
1085
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1086
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1087
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
+
other: "other";
|
|
1092
|
+
primary_contact: "primary_contact";
|
|
1093
|
+
}>>;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
export declare const insertOrderStaffAssignmentSchema: z.ZodObject<{
|
|
1096
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
1098
|
+
other: "other";
|
|
1099
|
+
service_assignee: "service_assignee";
|
|
1100
|
+
}>>;
|
|
1101
|
+
firstName: z.ZodString;
|
|
1102
|
+
lastName: z.ZodString;
|
|
1103
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1104
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1105
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1106
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1107
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1108
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1109
|
+
orderId: z.ZodString;
|
|
1110
|
+
orderItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1111
|
+
}, z.core.$strip>;
|
|
1112
|
+
export declare const updateOrderStaffAssignmentSchema: z.ZodObject<{
|
|
1113
|
+
personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1114
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1115
|
+
other: "other";
|
|
1116
|
+
service_assignee: "service_assignee";
|
|
1117
|
+
}>>>;
|
|
1118
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1121
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1122
|
+
preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1123
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1124
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1125
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1126
|
+
orderItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1127
|
+
}, z.core.$strip>;
|
|
1128
|
+
export declare const orderStaffAssignmentListQuerySchema: z.ZodObject<{
|
|
1129
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1130
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1131
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
1135
|
+
other: "other";
|
|
1136
|
+
service_assignee: "service_assignee";
|
|
1137
|
+
}>>;
|
|
1138
|
+
}, z.core.$strip>;
|
|
588
1139
|
export declare const insertOrderItemSchema: z.ZodObject<{
|
|
589
1140
|
productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
1141
|
optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -687,8 +1238,8 @@ export declare const orderItemListQuerySchema: z.ZodObject<{
|
|
|
687
1238
|
priced: "priced";
|
|
688
1239
|
}>>;
|
|
689
1240
|
}, z.core.$strip>;
|
|
690
|
-
export declare const
|
|
691
|
-
|
|
1241
|
+
export declare const insertOrderItemTravelerSchema: z.ZodPipe<z.ZodObject<{
|
|
1242
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
692
1243
|
role: z.ZodDefault<z.ZodEnum<{
|
|
693
1244
|
other: "other";
|
|
694
1245
|
traveler: "traveler";
|
|
@@ -699,9 +1250,19 @@ export declare const insertOrderItemParticipantSchema: z.ZodObject<{
|
|
|
699
1250
|
}>>;
|
|
700
1251
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
701
1252
|
orderItemId: z.ZodString;
|
|
702
|
-
}, z.core.$strip
|
|
703
|
-
|
|
704
|
-
|
|
1253
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1254
|
+
travelerId: string;
|
|
1255
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
1256
|
+
isPrimary: boolean;
|
|
1257
|
+
orderItemId: string;
|
|
1258
|
+
}, {
|
|
1259
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
1260
|
+
isPrimary: boolean;
|
|
1261
|
+
orderItemId: string;
|
|
1262
|
+
travelerId?: string | undefined;
|
|
1263
|
+
}>>;
|
|
1264
|
+
export declare const updateOrderItemTravelerSchema: z.ZodPipe<z.ZodObject<{
|
|
1265
|
+
travelerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
705
1266
|
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
706
1267
|
other: "other";
|
|
707
1268
|
traveler: "traveler";
|
|
@@ -711,13 +1272,90 @@ export declare const updateOrderItemParticipantSchema: z.ZodObject<{
|
|
|
711
1272
|
service_assignee: "service_assignee";
|
|
712
1273
|
}>>>;
|
|
713
1274
|
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
714
|
-
}, z.core.$strip
|
|
715
|
-
|
|
1275
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1276
|
+
travelerId: string | undefined;
|
|
1277
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
1278
|
+
isPrimary?: boolean | undefined;
|
|
1279
|
+
}, {
|
|
1280
|
+
travelerId?: string | undefined;
|
|
1281
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
1282
|
+
isPrimary?: boolean | undefined;
|
|
1283
|
+
}>>;
|
|
1284
|
+
export declare const orderItemTravelerListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
716
1285
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
717
1286
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
718
1287
|
orderItemId: z.ZodOptional<z.ZodString>;
|
|
719
|
-
|
|
720
|
-
}, z.core.$strip
|
|
1288
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1290
|
+
travelerId: string | undefined;
|
|
1291
|
+
limit: number;
|
|
1292
|
+
offset: number;
|
|
1293
|
+
orderItemId?: string | undefined;
|
|
1294
|
+
}, {
|
|
1295
|
+
limit: number;
|
|
1296
|
+
offset: number;
|
|
1297
|
+
orderItemId?: string | undefined;
|
|
1298
|
+
travelerId?: string | undefined;
|
|
1299
|
+
}>>;
|
|
1300
|
+
export declare const insertOrderItemParticipantSchema: z.ZodPipe<z.ZodObject<{
|
|
1301
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
1303
|
+
other: "other";
|
|
1304
|
+
traveler: "traveler";
|
|
1305
|
+
occupant: "occupant";
|
|
1306
|
+
primary_contact: "primary_contact";
|
|
1307
|
+
beneficiary: "beneficiary";
|
|
1308
|
+
service_assignee: "service_assignee";
|
|
1309
|
+
}>>;
|
|
1310
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1311
|
+
orderItemId: z.ZodString;
|
|
1312
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1313
|
+
travelerId: string;
|
|
1314
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
1315
|
+
isPrimary: boolean;
|
|
1316
|
+
orderItemId: string;
|
|
1317
|
+
}, {
|
|
1318
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
1319
|
+
isPrimary: boolean;
|
|
1320
|
+
orderItemId: string;
|
|
1321
|
+
travelerId?: string | undefined;
|
|
1322
|
+
}>>;
|
|
1323
|
+
export declare const updateOrderItemParticipantSchema: z.ZodPipe<z.ZodObject<{
|
|
1324
|
+
travelerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1325
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1326
|
+
other: "other";
|
|
1327
|
+
traveler: "traveler";
|
|
1328
|
+
occupant: "occupant";
|
|
1329
|
+
primary_contact: "primary_contact";
|
|
1330
|
+
beneficiary: "beneficiary";
|
|
1331
|
+
service_assignee: "service_assignee";
|
|
1332
|
+
}>>>;
|
|
1333
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1334
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1335
|
+
travelerId: string | undefined;
|
|
1336
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
1337
|
+
isPrimary?: boolean | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
travelerId?: string | undefined;
|
|
1340
|
+
role?: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee" | undefined;
|
|
1341
|
+
isPrimary?: boolean | undefined;
|
|
1342
|
+
}>>;
|
|
1343
|
+
export declare const orderItemParticipantListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
1344
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1345
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1346
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
1347
|
+
travelerId: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1349
|
+
travelerId: string | undefined;
|
|
1350
|
+
limit: number;
|
|
1351
|
+
offset: number;
|
|
1352
|
+
orderItemId?: string | undefined;
|
|
1353
|
+
}, {
|
|
1354
|
+
limit: number;
|
|
1355
|
+
offset: number;
|
|
1356
|
+
orderItemId?: string | undefined;
|
|
1357
|
+
travelerId?: string | undefined;
|
|
1358
|
+
}>>;
|
|
721
1359
|
export declare const insertOrderTermSchema: z.ZodObject<{
|
|
722
1360
|
offerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
1361
|
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|