@voyantjs/transactions 0.1.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.
@@ -0,0 +1,708 @@
1
+ import { z } from "zod";
2
+ export declare const offerStatusSchema: z.ZodEnum<{
3
+ draft: "draft";
4
+ published: "published";
5
+ sent: "sent";
6
+ accepted: "accepted";
7
+ expired: "expired";
8
+ withdrawn: "withdrawn";
9
+ converted: "converted";
10
+ }>;
11
+ export declare const orderStatusSchema: z.ZodEnum<{
12
+ draft: "draft";
13
+ expired: "expired";
14
+ pending: "pending";
15
+ confirmed: "confirmed";
16
+ fulfilled: "fulfilled";
17
+ cancelled: "cancelled";
18
+ }>;
19
+ export declare const transactionParticipantTypeSchema: z.ZodEnum<{
20
+ staff: "staff";
21
+ other: "other";
22
+ traveler: "traveler";
23
+ booker: "booker";
24
+ contact: "contact";
25
+ occupant: "occupant";
26
+ }>;
27
+ export declare const transactionTravelerCategorySchema: z.ZodEnum<{
28
+ other: "other";
29
+ adult: "adult";
30
+ child: "child";
31
+ infant: "infant";
32
+ senior: "senior";
33
+ }>;
34
+ export declare const transactionItemTypeSchema: z.ZodEnum<{
35
+ other: "other";
36
+ unit: "unit";
37
+ service: "service";
38
+ extra: "extra";
39
+ fee: "fee";
40
+ tax: "tax";
41
+ discount: "discount";
42
+ adjustment: "adjustment";
43
+ accommodation: "accommodation";
44
+ transport: "transport";
45
+ }>;
46
+ export declare const transactionItemStatusSchema: z.ZodEnum<{
47
+ draft: "draft";
48
+ confirmed: "confirmed";
49
+ fulfilled: "fulfilled";
50
+ cancelled: "cancelled";
51
+ priced: "priced";
52
+ }>;
53
+ export declare const transactionItemParticipantRoleSchema: z.ZodEnum<{
54
+ other: "other";
55
+ traveler: "traveler";
56
+ occupant: "occupant";
57
+ primary_contact: "primary_contact";
58
+ beneficiary: "beneficiary";
59
+ service_assignee: "service_assignee";
60
+ }>;
61
+ export declare const orderTermTypeSchema: z.ZodEnum<{
62
+ other: "other";
63
+ terms_and_conditions: "terms_and_conditions";
64
+ cancellation: "cancellation";
65
+ guarantee: "guarantee";
66
+ payment: "payment";
67
+ pricing: "pricing";
68
+ commission: "commission";
69
+ }>;
70
+ export declare const orderTermAcceptanceStatusSchema: z.ZodEnum<{
71
+ accepted: "accepted";
72
+ pending: "pending";
73
+ not_required: "not_required";
74
+ declined: "declined";
75
+ }>;
76
+ export declare const insertOfferSchema: z.ZodObject<{
77
+ offerNumber: z.ZodString;
78
+ title: z.ZodString;
79
+ status: z.ZodDefault<z.ZodEnum<{
80
+ draft: "draft";
81
+ published: "published";
82
+ sent: "sent";
83
+ accepted: "accepted";
84
+ expired: "expired";
85
+ withdrawn: "withdrawn";
86
+ converted: "converted";
87
+ }>>;
88
+ personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ opportunityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ quoteId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ marketId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ sourceChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ currency: z.ZodString;
95
+ baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ subtotalAmountCents: z.ZodDefault<z.ZodNumber>;
98
+ taxAmountCents: z.ZodDefault<z.ZodNumber>;
99
+ feeAmountCents: z.ZodDefault<z.ZodNumber>;
100
+ totalAmountCents: z.ZodDefault<z.ZodNumber>;
101
+ costAmountCents: z.ZodDefault<z.ZodNumber>;
102
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ validUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ sentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ convertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
109
+ }, z.core.$strip>;
110
+ export declare const updateOfferSchema: z.ZodObject<{
111
+ offerNumber: z.ZodOptional<z.ZodString>;
112
+ title: z.ZodOptional<z.ZodString>;
113
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
114
+ draft: "draft";
115
+ published: "published";
116
+ sent: "sent";
117
+ accepted: "accepted";
118
+ expired: "expired";
119
+ withdrawn: "withdrawn";
120
+ converted: "converted";
121
+ }>>>;
122
+ personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
123
+ organizationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
124
+ opportunityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
125
+ quoteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
126
+ marketId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
127
+ sourceChannelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
128
+ currency: z.ZodOptional<z.ZodString>;
129
+ baseCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
130
+ fxRateSetId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
131
+ subtotalAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
132
+ taxAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
133
+ feeAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
134
+ totalAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
135
+ costAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
136
+ validFrom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
137
+ validUntil: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
138
+ sentAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
139
+ acceptedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
140
+ convertedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
141
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
142
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
143
+ }, z.core.$strip>;
144
+ export declare const offerListQuerySchema: z.ZodObject<{
145
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
146
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
147
+ status: z.ZodOptional<z.ZodEnum<{
148
+ draft: "draft";
149
+ published: "published";
150
+ sent: "sent";
151
+ accepted: "accepted";
152
+ expired: "expired";
153
+ withdrawn: "withdrawn";
154
+ converted: "converted";
155
+ }>>;
156
+ opportunityId: z.ZodOptional<z.ZodString>;
157
+ quoteId: z.ZodOptional<z.ZodString>;
158
+ personId: z.ZodOptional<z.ZodString>;
159
+ organizationId: z.ZodOptional<z.ZodString>;
160
+ marketId: z.ZodOptional<z.ZodString>;
161
+ search: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ export declare const insertOfferParticipantSchema: z.ZodObject<{
164
+ personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ participantType: z.ZodDefault<z.ZodEnum<{
166
+ staff: "staff";
167
+ other: "other";
168
+ traveler: "traveler";
169
+ booker: "booker";
170
+ contact: "contact";
171
+ occupant: "occupant";
172
+ }>>;
173
+ travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
174
+ other: "other";
175
+ adult: "adult";
176
+ child: "child";
177
+ infant: "infant";
178
+ senior: "senior";
179
+ }>>>;
180
+ firstName: z.ZodString;
181
+ lastName: z.ZodString;
182
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ nationality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
188
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ offerId: z.ZodString;
190
+ }, z.core.$strip>;
191
+ export declare const updateOfferParticipantSchema: z.ZodObject<{
192
+ personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
193
+ participantType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
194
+ staff: "staff";
195
+ other: "other";
196
+ traveler: "traveler";
197
+ booker: "booker";
198
+ contact: "contact";
199
+ occupant: "occupant";
200
+ }>>>;
201
+ travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
202
+ other: "other";
203
+ adult: "adult";
204
+ child: "child";
205
+ infant: "infant";
206
+ senior: "senior";
207
+ }>>>>;
208
+ firstName: z.ZodOptional<z.ZodString>;
209
+ lastName: z.ZodOptional<z.ZodString>;
210
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
211
+ phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
212
+ preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
213
+ dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
214
+ nationality: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
215
+ isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
216
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
217
+ }, z.core.$strip>;
218
+ export declare const offerParticipantListQuerySchema: z.ZodObject<{
219
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
220
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
221
+ offerId: z.ZodOptional<z.ZodString>;
222
+ personId: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strip>;
224
+ export declare const insertOfferItemSchema: z.ZodObject<{
225
+ productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ unitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ slotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ title: z.ZodString;
230
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ itemType: z.ZodDefault<z.ZodEnum<{
232
+ other: "other";
233
+ unit: "unit";
234
+ service: "service";
235
+ extra: "extra";
236
+ fee: "fee";
237
+ tax: "tax";
238
+ discount: "discount";
239
+ adjustment: "adjustment";
240
+ accommodation: "accommodation";
241
+ transport: "transport";
242
+ }>>;
243
+ status: z.ZodDefault<z.ZodEnum<{
244
+ draft: "draft";
245
+ confirmed: "confirmed";
246
+ fulfilled: "fulfilled";
247
+ cancelled: "cancelled";
248
+ priced: "priced";
249
+ }>>;
250
+ serviceDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ quantity: z.ZodDefault<z.ZodNumber>;
254
+ sellCurrency: z.ZodString;
255
+ unitSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
256
+ totalSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
257
+ taxAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
258
+ feeAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
+ costCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ unitCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
261
+ totalCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
262
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
264
+ offerId: z.ZodString;
265
+ }, z.core.$strip>;
266
+ export declare const updateOfferItemSchema: z.ZodObject<{
267
+ productId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
268
+ optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
269
+ unitId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
270
+ slotId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
271
+ title: z.ZodOptional<z.ZodString>;
272
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
273
+ itemType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
274
+ other: "other";
275
+ unit: "unit";
276
+ service: "service";
277
+ extra: "extra";
278
+ fee: "fee";
279
+ tax: "tax";
280
+ discount: "discount";
281
+ adjustment: "adjustment";
282
+ accommodation: "accommodation";
283
+ transport: "transport";
284
+ }>>>;
285
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
286
+ draft: "draft";
287
+ confirmed: "confirmed";
288
+ fulfilled: "fulfilled";
289
+ cancelled: "cancelled";
290
+ priced: "priced";
291
+ }>>>;
292
+ serviceDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
293
+ startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
294
+ endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
295
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
296
+ sellCurrency: z.ZodOptional<z.ZodString>;
297
+ unitSellAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
298
+ totalSellAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
299
+ taxAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
300
+ feeAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
301
+ costCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
302
+ unitCostAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
303
+ totalCostAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
304
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
305
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
306
+ }, z.core.$strip>;
307
+ export declare const offerItemListQuerySchema: z.ZodObject<{
308
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
309
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
310
+ offerId: z.ZodOptional<z.ZodString>;
311
+ productId: z.ZodOptional<z.ZodString>;
312
+ optionId: z.ZodOptional<z.ZodString>;
313
+ unitId: z.ZodOptional<z.ZodString>;
314
+ slotId: z.ZodOptional<z.ZodString>;
315
+ status: z.ZodOptional<z.ZodEnum<{
316
+ draft: "draft";
317
+ confirmed: "confirmed";
318
+ fulfilled: "fulfilled";
319
+ cancelled: "cancelled";
320
+ priced: "priced";
321
+ }>>;
322
+ }, z.core.$strip>;
323
+ export declare const insertOfferItemParticipantSchema: z.ZodObject<{
324
+ participantId: z.ZodString;
325
+ role: z.ZodDefault<z.ZodEnum<{
326
+ other: "other";
327
+ traveler: "traveler";
328
+ occupant: "occupant";
329
+ primary_contact: "primary_contact";
330
+ beneficiary: "beneficiary";
331
+ service_assignee: "service_assignee";
332
+ }>>;
333
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
334
+ offerItemId: z.ZodString;
335
+ }, z.core.$strip>;
336
+ export declare const updateOfferItemParticipantSchema: z.ZodObject<{
337
+ participantId: z.ZodOptional<z.ZodString>;
338
+ role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
339
+ other: "other";
340
+ traveler: "traveler";
341
+ occupant: "occupant";
342
+ primary_contact: "primary_contact";
343
+ beneficiary: "beneficiary";
344
+ service_assignee: "service_assignee";
345
+ }>>>;
346
+ isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
347
+ }, z.core.$strip>;
348
+ export declare const offerItemParticipantListQuerySchema: z.ZodObject<{
349
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
350
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
351
+ offerItemId: z.ZodOptional<z.ZodString>;
352
+ participantId: z.ZodOptional<z.ZodString>;
353
+ }, z.core.$strip>;
354
+ export declare const insertOrderSchema: z.ZodObject<{
355
+ orderNumber: z.ZodString;
356
+ offerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ title: z.ZodString;
358
+ status: z.ZodDefault<z.ZodEnum<{
359
+ draft: "draft";
360
+ expired: "expired";
361
+ pending: "pending";
362
+ confirmed: "confirmed";
363
+ fulfilled: "fulfilled";
364
+ cancelled: "cancelled";
365
+ }>>;
366
+ personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ opportunityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ quoteId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ marketId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ sourceChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ currency: z.ZodString;
373
+ baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ subtotalAmountCents: z.ZodDefault<z.ZodNumber>;
376
+ taxAmountCents: z.ZodDefault<z.ZodNumber>;
377
+ feeAmountCents: z.ZodDefault<z.ZodNumber>;
378
+ totalAmountCents: z.ZodDefault<z.ZodNumber>;
379
+ costAmountCents: z.ZodDefault<z.ZodNumber>;
380
+ orderedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ confirmedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
386
+ }, z.core.$strip>;
387
+ export declare const updateOrderSchema: z.ZodObject<{
388
+ orderNumber: z.ZodOptional<z.ZodString>;
389
+ offerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
390
+ title: z.ZodOptional<z.ZodString>;
391
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
392
+ draft: "draft";
393
+ expired: "expired";
394
+ pending: "pending";
395
+ confirmed: "confirmed";
396
+ fulfilled: "fulfilled";
397
+ cancelled: "cancelled";
398
+ }>>>;
399
+ personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
400
+ organizationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
401
+ opportunityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
402
+ quoteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
403
+ marketId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
404
+ sourceChannelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
405
+ currency: z.ZodOptional<z.ZodString>;
406
+ baseCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
407
+ fxRateSetId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
408
+ subtotalAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
409
+ taxAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
410
+ feeAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
411
+ totalAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
412
+ costAmountCents: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
413
+ orderedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
414
+ confirmedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
415
+ cancelledAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
416
+ expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
417
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
418
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
419
+ }, z.core.$strip>;
420
+ export declare const orderListQuerySchema: z.ZodObject<{
421
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
422
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
423
+ status: z.ZodOptional<z.ZodEnum<{
424
+ draft: "draft";
425
+ expired: "expired";
426
+ pending: "pending";
427
+ confirmed: "confirmed";
428
+ fulfilled: "fulfilled";
429
+ cancelled: "cancelled";
430
+ }>>;
431
+ offerId: z.ZodOptional<z.ZodString>;
432
+ opportunityId: z.ZodOptional<z.ZodString>;
433
+ quoteId: z.ZodOptional<z.ZodString>;
434
+ personId: z.ZodOptional<z.ZodString>;
435
+ organizationId: z.ZodOptional<z.ZodString>;
436
+ marketId: z.ZodOptional<z.ZodString>;
437
+ search: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strip>;
439
+ export declare const insertOrderParticipantSchema: z.ZodObject<{
440
+ personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ participantType: z.ZodDefault<z.ZodEnum<{
442
+ staff: "staff";
443
+ other: "other";
444
+ traveler: "traveler";
445
+ booker: "booker";
446
+ contact: "contact";
447
+ occupant: "occupant";
448
+ }>>;
449
+ travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
450
+ other: "other";
451
+ adult: "adult";
452
+ child: "child";
453
+ infant: "infant";
454
+ senior: "senior";
455
+ }>>>;
456
+ firstName: z.ZodString;
457
+ lastName: z.ZodString;
458
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ nationality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
464
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
+ orderId: z.ZodString;
466
+ }, z.core.$strip>;
467
+ export declare const updateOrderParticipantSchema: z.ZodObject<{
468
+ personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
469
+ participantType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
470
+ staff: "staff";
471
+ other: "other";
472
+ traveler: "traveler";
473
+ booker: "booker";
474
+ contact: "contact";
475
+ occupant: "occupant";
476
+ }>>>;
477
+ travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
478
+ other: "other";
479
+ adult: "adult";
480
+ child: "child";
481
+ infant: "infant";
482
+ senior: "senior";
483
+ }>>>>;
484
+ firstName: z.ZodOptional<z.ZodString>;
485
+ lastName: z.ZodOptional<z.ZodString>;
486
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
487
+ phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
488
+ preferredLanguage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
489
+ dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
490
+ nationality: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
491
+ isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
492
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
493
+ }, z.core.$strip>;
494
+ export declare const orderParticipantListQuerySchema: z.ZodObject<{
495
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
496
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
497
+ orderId: z.ZodOptional<z.ZodString>;
498
+ personId: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strip>;
500
+ export declare const insertOrderItemSchema: z.ZodObject<{
501
+ productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ unitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
+ slotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ title: z.ZodString;
506
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
+ itemType: z.ZodDefault<z.ZodEnum<{
508
+ other: "other";
509
+ unit: "unit";
510
+ service: "service";
511
+ extra: "extra";
512
+ fee: "fee";
513
+ tax: "tax";
514
+ discount: "discount";
515
+ adjustment: "adjustment";
516
+ accommodation: "accommodation";
517
+ transport: "transport";
518
+ }>>;
519
+ status: z.ZodDefault<z.ZodEnum<{
520
+ draft: "draft";
521
+ confirmed: "confirmed";
522
+ fulfilled: "fulfilled";
523
+ cancelled: "cancelled";
524
+ priced: "priced";
525
+ }>>;
526
+ serviceDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
527
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
529
+ quantity: z.ZodDefault<z.ZodNumber>;
530
+ sellCurrency: z.ZodString;
531
+ unitSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
532
+ totalSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
533
+ taxAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
534
+ feeAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
535
+ costCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
+ unitCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
537
+ totalCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
538
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
540
+ offerItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ orderId: z.ZodString;
542
+ }, z.core.$strip>;
543
+ export declare const updateOrderItemSchema: z.ZodObject<{
544
+ productId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
545
+ optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
546
+ unitId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
547
+ slotId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
548
+ title: z.ZodOptional<z.ZodString>;
549
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
550
+ itemType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
551
+ other: "other";
552
+ unit: "unit";
553
+ service: "service";
554
+ extra: "extra";
555
+ fee: "fee";
556
+ tax: "tax";
557
+ discount: "discount";
558
+ adjustment: "adjustment";
559
+ accommodation: "accommodation";
560
+ transport: "transport";
561
+ }>>>;
562
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
563
+ draft: "draft";
564
+ confirmed: "confirmed";
565
+ fulfilled: "fulfilled";
566
+ cancelled: "cancelled";
567
+ priced: "priced";
568
+ }>>>;
569
+ serviceDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
570
+ startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
571
+ endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
572
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
573
+ sellCurrency: z.ZodOptional<z.ZodString>;
574
+ unitSellAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
575
+ totalSellAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
576
+ taxAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
577
+ feeAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
578
+ costCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
+ unitCostAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
580
+ totalCostAmountCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
581
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
582
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
583
+ offerItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
584
+ }, z.core.$strip>;
585
+ export declare const orderItemListQuerySchema: z.ZodObject<{
586
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
587
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
588
+ orderId: z.ZodOptional<z.ZodString>;
589
+ offerItemId: z.ZodOptional<z.ZodString>;
590
+ productId: z.ZodOptional<z.ZodString>;
591
+ optionId: z.ZodOptional<z.ZodString>;
592
+ unitId: z.ZodOptional<z.ZodString>;
593
+ slotId: z.ZodOptional<z.ZodString>;
594
+ status: z.ZodOptional<z.ZodEnum<{
595
+ draft: "draft";
596
+ confirmed: "confirmed";
597
+ fulfilled: "fulfilled";
598
+ cancelled: "cancelled";
599
+ priced: "priced";
600
+ }>>;
601
+ }, z.core.$strip>;
602
+ export declare const insertOrderItemParticipantSchema: z.ZodObject<{
603
+ participantId: z.ZodString;
604
+ role: z.ZodDefault<z.ZodEnum<{
605
+ other: "other";
606
+ traveler: "traveler";
607
+ occupant: "occupant";
608
+ primary_contact: "primary_contact";
609
+ beneficiary: "beneficiary";
610
+ service_assignee: "service_assignee";
611
+ }>>;
612
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
613
+ orderItemId: z.ZodString;
614
+ }, z.core.$strip>;
615
+ export declare const updateOrderItemParticipantSchema: z.ZodObject<{
616
+ participantId: z.ZodOptional<z.ZodString>;
617
+ role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
618
+ other: "other";
619
+ traveler: "traveler";
620
+ occupant: "occupant";
621
+ primary_contact: "primary_contact";
622
+ beneficiary: "beneficiary";
623
+ service_assignee: "service_assignee";
624
+ }>>>;
625
+ isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
626
+ }, z.core.$strip>;
627
+ export declare const orderItemParticipantListQuerySchema: z.ZodObject<{
628
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
629
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
630
+ orderItemId: z.ZodOptional<z.ZodString>;
631
+ participantId: z.ZodOptional<z.ZodString>;
632
+ }, z.core.$strip>;
633
+ export declare const insertOrderTermSchema: z.ZodObject<{
634
+ offerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ termType: z.ZodDefault<z.ZodEnum<{
637
+ other: "other";
638
+ terms_and_conditions: "terms_and_conditions";
639
+ cancellation: "cancellation";
640
+ guarantee: "guarantee";
641
+ payment: "payment";
642
+ pricing: "pricing";
643
+ commission: "commission";
644
+ }>>;
645
+ title: z.ZodString;
646
+ body: z.ZodString;
647
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
+ required: z.ZodDefault<z.ZodBoolean>;
649
+ sortOrder: z.ZodDefault<z.ZodNumber>;
650
+ acceptanceStatus: z.ZodDefault<z.ZodEnum<{
651
+ accepted: "accepted";
652
+ pending: "pending";
653
+ not_required: "not_required";
654
+ declined: "declined";
655
+ }>>;
656
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
+ acceptedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
659
+ }, z.core.$strip>;
660
+ export declare const updateOrderTermSchema: z.ZodObject<{
661
+ offerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
662
+ orderId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
663
+ termType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
664
+ other: "other";
665
+ terms_and_conditions: "terms_and_conditions";
666
+ cancellation: "cancellation";
667
+ guarantee: "guarantee";
668
+ payment: "payment";
669
+ pricing: "pricing";
670
+ commission: "commission";
671
+ }>>>;
672
+ title: z.ZodOptional<z.ZodString>;
673
+ body: z.ZodOptional<z.ZodString>;
674
+ language: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
675
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
676
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
677
+ acceptanceStatus: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
678
+ accepted: "accepted";
679
+ pending: "pending";
680
+ not_required: "not_required";
681
+ declined: "declined";
682
+ }>>>;
683
+ acceptedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
684
+ acceptedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
685
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
686
+ }, z.core.$strip>;
687
+ export declare const orderTermListQuerySchema: z.ZodObject<{
688
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
689
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
690
+ offerId: z.ZodOptional<z.ZodString>;
691
+ orderId: z.ZodOptional<z.ZodString>;
692
+ termType: z.ZodOptional<z.ZodEnum<{
693
+ other: "other";
694
+ terms_and_conditions: "terms_and_conditions";
695
+ cancellation: "cancellation";
696
+ guarantee: "guarantee";
697
+ payment: "payment";
698
+ pricing: "pricing";
699
+ commission: "commission";
700
+ }>>;
701
+ acceptanceStatus: z.ZodOptional<z.ZodEnum<{
702
+ accepted: "accepted";
703
+ pending: "pending";
704
+ not_required: "not_required";
705
+ declined: "declined";
706
+ }>>;
707
+ }, z.core.$strip>;
708
+ //# sourceMappingURL=validation.d.ts.map