@voyantjs/bookings 0.3.0 → 0.3.1

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,901 @@
1
+ import { z } from "zod";
2
+ export declare const publicBookingSessionParticipantInputSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ participantType: z.ZodDefault<z.ZodEnum<{
5
+ staff: "staff";
6
+ other: "other";
7
+ traveler: "traveler";
8
+ booker: "booker";
9
+ contact: "contact";
10
+ occupant: "occupant";
11
+ }>>;
12
+ travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
13
+ other: "other";
14
+ adult: "adult";
15
+ child: "child";
16
+ infant: "infant";
17
+ senior: "senior";
18
+ }>>>;
19
+ firstName: z.ZodString;
20
+ lastName: z.ZodString;
21
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ accessibilityNeeds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ specialRequests: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
27
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$strip>;
29
+ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
30
+ title: z.ZodString;
31
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ itemType: z.ZodDefault<z.ZodEnum<{
33
+ other: "other";
34
+ unit: "unit";
35
+ extra: "extra";
36
+ service: "service";
37
+ fee: "fee";
38
+ tax: "tax";
39
+ discount: "discount";
40
+ adjustment: "adjustment";
41
+ accommodation: "accommodation";
42
+ transport: "transport";
43
+ }>>;
44
+ quantity: z.ZodDefault<z.ZodNumber>;
45
+ sellCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ unitSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ totalSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ costCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ unitCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ totalCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ optionUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ pricingCategoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ sourceSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
+ availabilitySlotId: z.ZodString;
59
+ allocationType: z.ZodDefault<z.ZodEnum<{
60
+ unit: "unit";
61
+ pickup: "pickup";
62
+ resource: "resource";
63
+ }>>;
64
+ }, z.core.$strip>;
65
+ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
66
+ externalBookingRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ communicationLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ sellCurrency: z.ZodString;
69
+ baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ sellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
+ baseSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
+ costAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
73
+ baseCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ marginPercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ pax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ holdMinutes: z.ZodDefault<z.ZodNumber>;
79
+ holdExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ items: z.ZodArray<z.ZodObject<{
81
+ title: z.ZodString;
82
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ itemType: z.ZodDefault<z.ZodEnum<{
84
+ other: "other";
85
+ unit: "unit";
86
+ extra: "extra";
87
+ service: "service";
88
+ fee: "fee";
89
+ tax: "tax";
90
+ discount: "discount";
91
+ adjustment: "adjustment";
92
+ accommodation: "accommodation";
93
+ transport: "transport";
94
+ }>>;
95
+ quantity: z.ZodDefault<z.ZodNumber>;
96
+ sellCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ unitSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ totalSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
99
+ costCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ unitCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ totalCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ optionUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ pricingCategoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ sourceSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
109
+ availabilitySlotId: z.ZodString;
110
+ allocationType: z.ZodDefault<z.ZodEnum<{
111
+ unit: "unit";
112
+ pickup: "pickup";
113
+ resource: "resource";
114
+ }>>;
115
+ }, z.core.$strip>>;
116
+ participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
117
+ id: z.ZodOptional<z.ZodString>;
118
+ participantType: z.ZodDefault<z.ZodEnum<{
119
+ staff: "staff";
120
+ other: "other";
121
+ traveler: "traveler";
122
+ booker: "booker";
123
+ contact: "contact";
124
+ occupant: "occupant";
125
+ }>>;
126
+ travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
127
+ other: "other";
128
+ adult: "adult";
129
+ child: "child";
130
+ infant: "infant";
131
+ senior: "senior";
132
+ }>>>;
133
+ firstName: z.ZodString;
134
+ lastName: z.ZodString;
135
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ accessibilityNeeds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ specialRequests: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
141
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ }, z.core.$strip>>>;
143
+ }, z.core.$strip>;
144
+ export declare const publicUpdateBookingSessionSchema: z.ZodObject<{
145
+ externalBookingRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ communicationLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ pax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
+ holdMinutes: z.ZodOptional<z.ZodNumber>;
149
+ holdExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ id: z.ZodOptional<z.ZodString>;
152
+ participantType: z.ZodDefault<z.ZodEnum<{
153
+ staff: "staff";
154
+ other: "other";
155
+ traveler: "traveler";
156
+ booker: "booker";
157
+ contact: "contact";
158
+ occupant: "occupant";
159
+ }>>;
160
+ travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
161
+ other: "other";
162
+ adult: "adult";
163
+ child: "child";
164
+ infant: "infant";
165
+ senior: "senior";
166
+ }>>>;
167
+ firstName: z.ZodString;
168
+ lastName: z.ZodString;
169
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ accessibilityNeeds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ specialRequests: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
175
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ }, z.core.$strip>>>;
177
+ removedParticipantIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
178
+ }, z.core.$strip>;
179
+ export declare const publicBookingSessionMutationSchema: z.ZodObject<{
180
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ }, z.core.$strip>;
182
+ export declare const publicBookingSessionStateSchema: z.ZodObject<{
183
+ sessionId: z.ZodString;
184
+ stateKey: z.ZodLiteral<"wizard">;
185
+ currentStep: z.ZodNullable<z.ZodString>;
186
+ completedSteps: z.ZodArray<z.ZodString>;
187
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
188
+ version: z.ZodNumber;
189
+ createdAt: z.ZodString;
190
+ updatedAt: z.ZodString;
191
+ }, z.core.$strip>;
192
+ export declare const publicUpsertBookingSessionStateSchema: z.ZodObject<{
193
+ currentStep: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ completedSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
196
+ replacePayload: z.ZodDefault<z.ZodBoolean>;
197
+ }, z.core.$strip>;
198
+ export declare const publicBookingSessionRepriceSelectionSchema: z.ZodObject<{
199
+ itemId: z.ZodString;
200
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ optionUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ pricingCategoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ quantity: z.ZodOptional<z.ZodNumber>;
204
+ }, z.core.$strip>;
205
+ export declare const publicRepriceBookingSessionSchema: z.ZodObject<{
206
+ catalogId: z.ZodOptional<z.ZodString>;
207
+ applyToSession: z.ZodDefault<z.ZodBoolean>;
208
+ selections: z.ZodArray<z.ZodObject<{
209
+ itemId: z.ZodString;
210
+ optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ optionUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ pricingCategoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ quantity: z.ZodOptional<z.ZodNumber>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>;
216
+ export declare const publicBookingOverviewLookupQuerySchema: z.ZodObject<{
217
+ bookingNumber: z.ZodString;
218
+ email: z.ZodString;
219
+ }, z.core.$strip>;
220
+ export declare const publicBookingSessionParticipantSchema: z.ZodObject<{
221
+ id: z.ZodString;
222
+ participantType: z.ZodEnum<{
223
+ staff: "staff";
224
+ other: "other";
225
+ traveler: "traveler";
226
+ booker: "booker";
227
+ contact: "contact";
228
+ occupant: "occupant";
229
+ }>;
230
+ travelerCategory: z.ZodNullable<z.ZodEnum<{
231
+ other: "other";
232
+ adult: "adult";
233
+ child: "child";
234
+ infant: "infant";
235
+ senior: "senior";
236
+ }>>;
237
+ firstName: z.ZodString;
238
+ lastName: z.ZodString;
239
+ email: z.ZodNullable<z.ZodString>;
240
+ phone: z.ZodNullable<z.ZodString>;
241
+ preferredLanguage: z.ZodNullable<z.ZodString>;
242
+ accessibilityNeeds: z.ZodNullable<z.ZodString>;
243
+ specialRequests: z.ZodNullable<z.ZodString>;
244
+ isPrimary: z.ZodBoolean;
245
+ notes: z.ZodNullable<z.ZodString>;
246
+ }, z.core.$strip>;
247
+ export declare const publicBookingSessionItemParticipantSchema: z.ZodObject<{
248
+ id: z.ZodString;
249
+ participantId: z.ZodString;
250
+ role: z.ZodEnum<{
251
+ other: "other";
252
+ traveler: "traveler";
253
+ occupant: "occupant";
254
+ primary_contact: "primary_contact";
255
+ service_assignee: "service_assignee";
256
+ beneficiary: "beneficiary";
257
+ }>;
258
+ isPrimary: z.ZodBoolean;
259
+ }, z.core.$strip>;
260
+ export declare const publicBookingSessionItemSchema: z.ZodObject<{
261
+ id: z.ZodString;
262
+ title: z.ZodString;
263
+ description: z.ZodNullable<z.ZodString>;
264
+ itemType: z.ZodEnum<{
265
+ other: "other";
266
+ unit: "unit";
267
+ extra: "extra";
268
+ service: "service";
269
+ fee: "fee";
270
+ tax: "tax";
271
+ discount: "discount";
272
+ adjustment: "adjustment";
273
+ accommodation: "accommodation";
274
+ transport: "transport";
275
+ }>;
276
+ status: z.ZodEnum<{
277
+ cancelled: "cancelled";
278
+ draft: "draft";
279
+ on_hold: "on_hold";
280
+ confirmed: "confirmed";
281
+ expired: "expired";
282
+ fulfilled: "fulfilled";
283
+ }>;
284
+ serviceDate: z.ZodNullable<z.ZodString>;
285
+ startsAt: z.ZodNullable<z.ZodString>;
286
+ endsAt: z.ZodNullable<z.ZodString>;
287
+ quantity: z.ZodNumber;
288
+ sellCurrency: z.ZodString;
289
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
290
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
291
+ costCurrency: z.ZodNullable<z.ZodString>;
292
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
293
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
294
+ notes: z.ZodNullable<z.ZodString>;
295
+ productId: z.ZodNullable<z.ZodString>;
296
+ optionId: z.ZodNullable<z.ZodString>;
297
+ optionUnitId: z.ZodNullable<z.ZodString>;
298
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
299
+ participantLinks: z.ZodArray<z.ZodObject<{
300
+ id: z.ZodString;
301
+ participantId: z.ZodString;
302
+ role: z.ZodEnum<{
303
+ other: "other";
304
+ traveler: "traveler";
305
+ occupant: "occupant";
306
+ primary_contact: "primary_contact";
307
+ service_assignee: "service_assignee";
308
+ beneficiary: "beneficiary";
309
+ }>;
310
+ isPrimary: z.ZodBoolean;
311
+ }, z.core.$strip>>;
312
+ }, z.core.$strip>;
313
+ export declare const publicBookingSessionAllocationSchema: z.ZodObject<{
314
+ id: z.ZodString;
315
+ bookingItemId: z.ZodNullable<z.ZodString>;
316
+ productId: z.ZodNullable<z.ZodString>;
317
+ optionId: z.ZodNullable<z.ZodString>;
318
+ optionUnitId: z.ZodNullable<z.ZodString>;
319
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
320
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
321
+ quantity: z.ZodNumber;
322
+ allocationType: z.ZodEnum<{
323
+ unit: "unit";
324
+ pickup: "pickup";
325
+ resource: "resource";
326
+ }>;
327
+ status: z.ZodEnum<{
328
+ cancelled: "cancelled";
329
+ confirmed: "confirmed";
330
+ expired: "expired";
331
+ fulfilled: "fulfilled";
332
+ held: "held";
333
+ released: "released";
334
+ }>;
335
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
336
+ confirmedAt: z.ZodNullable<z.ZodString>;
337
+ releasedAt: z.ZodNullable<z.ZodString>;
338
+ }, z.core.$strip>;
339
+ export declare const publicBookingSessionChecklistSchema: z.ZodObject<{
340
+ hasParticipants: z.ZodBoolean;
341
+ hasTraveler: z.ZodBoolean;
342
+ hasPrimaryParticipant: z.ZodBoolean;
343
+ hasItems: z.ZodBoolean;
344
+ hasAllocations: z.ZodBoolean;
345
+ readyForConfirmation: z.ZodBoolean;
346
+ }, z.core.$strip>;
347
+ export declare const publicBookingSessionSchema: z.ZodObject<{
348
+ sessionId: z.ZodString;
349
+ bookingNumber: z.ZodString;
350
+ status: z.ZodEnum<{
351
+ cancelled: "cancelled";
352
+ draft: "draft";
353
+ on_hold: "on_hold";
354
+ confirmed: "confirmed";
355
+ in_progress: "in_progress";
356
+ completed: "completed";
357
+ expired: "expired";
358
+ }>;
359
+ externalBookingRef: z.ZodNullable<z.ZodString>;
360
+ communicationLanguage: z.ZodNullable<z.ZodString>;
361
+ sellCurrency: z.ZodString;
362
+ sellAmountCents: z.ZodNullable<z.ZodNumber>;
363
+ startDate: z.ZodNullable<z.ZodString>;
364
+ endDate: z.ZodNullable<z.ZodString>;
365
+ pax: z.ZodNullable<z.ZodNumber>;
366
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
367
+ confirmedAt: z.ZodNullable<z.ZodString>;
368
+ expiredAt: z.ZodNullable<z.ZodString>;
369
+ cancelledAt: z.ZodNullable<z.ZodString>;
370
+ completedAt: z.ZodNullable<z.ZodString>;
371
+ participants: z.ZodArray<z.ZodObject<{
372
+ id: z.ZodString;
373
+ participantType: z.ZodEnum<{
374
+ staff: "staff";
375
+ other: "other";
376
+ traveler: "traveler";
377
+ booker: "booker";
378
+ contact: "contact";
379
+ occupant: "occupant";
380
+ }>;
381
+ travelerCategory: z.ZodNullable<z.ZodEnum<{
382
+ other: "other";
383
+ adult: "adult";
384
+ child: "child";
385
+ infant: "infant";
386
+ senior: "senior";
387
+ }>>;
388
+ firstName: z.ZodString;
389
+ lastName: z.ZodString;
390
+ email: z.ZodNullable<z.ZodString>;
391
+ phone: z.ZodNullable<z.ZodString>;
392
+ preferredLanguage: z.ZodNullable<z.ZodString>;
393
+ accessibilityNeeds: z.ZodNullable<z.ZodString>;
394
+ specialRequests: z.ZodNullable<z.ZodString>;
395
+ isPrimary: z.ZodBoolean;
396
+ notes: z.ZodNullable<z.ZodString>;
397
+ }, z.core.$strip>>;
398
+ items: z.ZodArray<z.ZodObject<{
399
+ id: z.ZodString;
400
+ title: z.ZodString;
401
+ description: z.ZodNullable<z.ZodString>;
402
+ itemType: z.ZodEnum<{
403
+ other: "other";
404
+ unit: "unit";
405
+ extra: "extra";
406
+ service: "service";
407
+ fee: "fee";
408
+ tax: "tax";
409
+ discount: "discount";
410
+ adjustment: "adjustment";
411
+ accommodation: "accommodation";
412
+ transport: "transport";
413
+ }>;
414
+ status: z.ZodEnum<{
415
+ cancelled: "cancelled";
416
+ draft: "draft";
417
+ on_hold: "on_hold";
418
+ confirmed: "confirmed";
419
+ expired: "expired";
420
+ fulfilled: "fulfilled";
421
+ }>;
422
+ serviceDate: z.ZodNullable<z.ZodString>;
423
+ startsAt: z.ZodNullable<z.ZodString>;
424
+ endsAt: z.ZodNullable<z.ZodString>;
425
+ quantity: z.ZodNumber;
426
+ sellCurrency: z.ZodString;
427
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
428
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
429
+ costCurrency: z.ZodNullable<z.ZodString>;
430
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
431
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
432
+ notes: z.ZodNullable<z.ZodString>;
433
+ productId: z.ZodNullable<z.ZodString>;
434
+ optionId: z.ZodNullable<z.ZodString>;
435
+ optionUnitId: z.ZodNullable<z.ZodString>;
436
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
437
+ participantLinks: z.ZodArray<z.ZodObject<{
438
+ id: z.ZodString;
439
+ participantId: z.ZodString;
440
+ role: z.ZodEnum<{
441
+ other: "other";
442
+ traveler: "traveler";
443
+ occupant: "occupant";
444
+ primary_contact: "primary_contact";
445
+ service_assignee: "service_assignee";
446
+ beneficiary: "beneficiary";
447
+ }>;
448
+ isPrimary: z.ZodBoolean;
449
+ }, z.core.$strip>>;
450
+ }, z.core.$strip>>;
451
+ allocations: z.ZodArray<z.ZodObject<{
452
+ id: z.ZodString;
453
+ bookingItemId: z.ZodNullable<z.ZodString>;
454
+ productId: z.ZodNullable<z.ZodString>;
455
+ optionId: z.ZodNullable<z.ZodString>;
456
+ optionUnitId: z.ZodNullable<z.ZodString>;
457
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
458
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
459
+ quantity: z.ZodNumber;
460
+ allocationType: z.ZodEnum<{
461
+ unit: "unit";
462
+ pickup: "pickup";
463
+ resource: "resource";
464
+ }>;
465
+ status: z.ZodEnum<{
466
+ cancelled: "cancelled";
467
+ confirmed: "confirmed";
468
+ expired: "expired";
469
+ fulfilled: "fulfilled";
470
+ held: "held";
471
+ released: "released";
472
+ }>;
473
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
474
+ confirmedAt: z.ZodNullable<z.ZodString>;
475
+ releasedAt: z.ZodNullable<z.ZodString>;
476
+ }, z.core.$strip>>;
477
+ checklist: z.ZodObject<{
478
+ hasParticipants: z.ZodBoolean;
479
+ hasTraveler: z.ZodBoolean;
480
+ hasPrimaryParticipant: z.ZodBoolean;
481
+ hasItems: z.ZodBoolean;
482
+ hasAllocations: z.ZodBoolean;
483
+ readyForConfirmation: z.ZodBoolean;
484
+ }, z.core.$strip>;
485
+ state: z.ZodNullable<z.ZodObject<{
486
+ sessionId: z.ZodString;
487
+ stateKey: z.ZodLiteral<"wizard">;
488
+ currentStep: z.ZodNullable<z.ZodString>;
489
+ completedSteps: z.ZodArray<z.ZodString>;
490
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
491
+ version: z.ZodNumber;
492
+ createdAt: z.ZodString;
493
+ updatedAt: z.ZodString;
494
+ }, z.core.$strip>>;
495
+ }, z.core.$strip>;
496
+ export declare const publicBookingSessionRepriceItemSchema: z.ZodObject<{
497
+ itemId: z.ZodString;
498
+ title: z.ZodString;
499
+ productId: z.ZodNullable<z.ZodString>;
500
+ optionId: z.ZodNullable<z.ZodString>;
501
+ optionUnitId: z.ZodNullable<z.ZodString>;
502
+ optionUnitName: z.ZodNullable<z.ZodString>;
503
+ optionUnitType: z.ZodNullable<z.ZodString>;
504
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
505
+ quantity: z.ZodNumber;
506
+ pricingMode: z.ZodString;
507
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
508
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
509
+ warnings: z.ZodArray<z.ZodString>;
510
+ }, z.core.$strip>;
511
+ export declare const publicBookingSessionRepriceSummarySchema: z.ZodObject<{
512
+ sessionId: z.ZodString;
513
+ catalogId: z.ZodNullable<z.ZodString>;
514
+ currencyCode: z.ZodString;
515
+ totalSellAmountCents: z.ZodNumber;
516
+ items: z.ZodArray<z.ZodObject<{
517
+ itemId: z.ZodString;
518
+ title: z.ZodString;
519
+ productId: z.ZodNullable<z.ZodString>;
520
+ optionId: z.ZodNullable<z.ZodString>;
521
+ optionUnitId: z.ZodNullable<z.ZodString>;
522
+ optionUnitName: z.ZodNullable<z.ZodString>;
523
+ optionUnitType: z.ZodNullable<z.ZodString>;
524
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
525
+ quantity: z.ZodNumber;
526
+ pricingMode: z.ZodString;
527
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
528
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
529
+ warnings: z.ZodArray<z.ZodString>;
530
+ }, z.core.$strip>>;
531
+ warnings: z.ZodArray<z.ZodString>;
532
+ appliedToSession: z.ZodBoolean;
533
+ }, z.core.$strip>;
534
+ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
535
+ pricing: z.ZodObject<{
536
+ sessionId: z.ZodString;
537
+ catalogId: z.ZodNullable<z.ZodString>;
538
+ currencyCode: z.ZodString;
539
+ totalSellAmountCents: z.ZodNumber;
540
+ items: z.ZodArray<z.ZodObject<{
541
+ itemId: z.ZodString;
542
+ title: z.ZodString;
543
+ productId: z.ZodNullable<z.ZodString>;
544
+ optionId: z.ZodNullable<z.ZodString>;
545
+ optionUnitId: z.ZodNullable<z.ZodString>;
546
+ optionUnitName: z.ZodNullable<z.ZodString>;
547
+ optionUnitType: z.ZodNullable<z.ZodString>;
548
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
549
+ quantity: z.ZodNumber;
550
+ pricingMode: z.ZodString;
551
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
552
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
553
+ warnings: z.ZodArray<z.ZodString>;
554
+ }, z.core.$strip>>;
555
+ warnings: z.ZodArray<z.ZodString>;
556
+ appliedToSession: z.ZodBoolean;
557
+ }, z.core.$strip>;
558
+ session: z.ZodNullable<z.ZodObject<{
559
+ sessionId: z.ZodString;
560
+ bookingNumber: z.ZodString;
561
+ status: z.ZodEnum<{
562
+ cancelled: "cancelled";
563
+ draft: "draft";
564
+ on_hold: "on_hold";
565
+ confirmed: "confirmed";
566
+ in_progress: "in_progress";
567
+ completed: "completed";
568
+ expired: "expired";
569
+ }>;
570
+ externalBookingRef: z.ZodNullable<z.ZodString>;
571
+ communicationLanguage: z.ZodNullable<z.ZodString>;
572
+ sellCurrency: z.ZodString;
573
+ sellAmountCents: z.ZodNullable<z.ZodNumber>;
574
+ startDate: z.ZodNullable<z.ZodString>;
575
+ endDate: z.ZodNullable<z.ZodString>;
576
+ pax: z.ZodNullable<z.ZodNumber>;
577
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
578
+ confirmedAt: z.ZodNullable<z.ZodString>;
579
+ expiredAt: z.ZodNullable<z.ZodString>;
580
+ cancelledAt: z.ZodNullable<z.ZodString>;
581
+ completedAt: z.ZodNullable<z.ZodString>;
582
+ participants: z.ZodArray<z.ZodObject<{
583
+ id: z.ZodString;
584
+ participantType: z.ZodEnum<{
585
+ staff: "staff";
586
+ other: "other";
587
+ traveler: "traveler";
588
+ booker: "booker";
589
+ contact: "contact";
590
+ occupant: "occupant";
591
+ }>;
592
+ travelerCategory: z.ZodNullable<z.ZodEnum<{
593
+ other: "other";
594
+ adult: "adult";
595
+ child: "child";
596
+ infant: "infant";
597
+ senior: "senior";
598
+ }>>;
599
+ firstName: z.ZodString;
600
+ lastName: z.ZodString;
601
+ email: z.ZodNullable<z.ZodString>;
602
+ phone: z.ZodNullable<z.ZodString>;
603
+ preferredLanguage: z.ZodNullable<z.ZodString>;
604
+ accessibilityNeeds: z.ZodNullable<z.ZodString>;
605
+ specialRequests: z.ZodNullable<z.ZodString>;
606
+ isPrimary: z.ZodBoolean;
607
+ notes: z.ZodNullable<z.ZodString>;
608
+ }, z.core.$strip>>;
609
+ items: z.ZodArray<z.ZodObject<{
610
+ id: z.ZodString;
611
+ title: z.ZodString;
612
+ description: z.ZodNullable<z.ZodString>;
613
+ itemType: z.ZodEnum<{
614
+ other: "other";
615
+ unit: "unit";
616
+ extra: "extra";
617
+ service: "service";
618
+ fee: "fee";
619
+ tax: "tax";
620
+ discount: "discount";
621
+ adjustment: "adjustment";
622
+ accommodation: "accommodation";
623
+ transport: "transport";
624
+ }>;
625
+ status: z.ZodEnum<{
626
+ cancelled: "cancelled";
627
+ draft: "draft";
628
+ on_hold: "on_hold";
629
+ confirmed: "confirmed";
630
+ expired: "expired";
631
+ fulfilled: "fulfilled";
632
+ }>;
633
+ serviceDate: z.ZodNullable<z.ZodString>;
634
+ startsAt: z.ZodNullable<z.ZodString>;
635
+ endsAt: z.ZodNullable<z.ZodString>;
636
+ quantity: z.ZodNumber;
637
+ sellCurrency: z.ZodString;
638
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
639
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
640
+ costCurrency: z.ZodNullable<z.ZodString>;
641
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
642
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
643
+ notes: z.ZodNullable<z.ZodString>;
644
+ productId: z.ZodNullable<z.ZodString>;
645
+ optionId: z.ZodNullable<z.ZodString>;
646
+ optionUnitId: z.ZodNullable<z.ZodString>;
647
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
648
+ participantLinks: z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ participantId: z.ZodString;
651
+ role: z.ZodEnum<{
652
+ other: "other";
653
+ traveler: "traveler";
654
+ occupant: "occupant";
655
+ primary_contact: "primary_contact";
656
+ service_assignee: "service_assignee";
657
+ beneficiary: "beneficiary";
658
+ }>;
659
+ isPrimary: z.ZodBoolean;
660
+ }, z.core.$strip>>;
661
+ }, z.core.$strip>>;
662
+ allocations: z.ZodArray<z.ZodObject<{
663
+ id: z.ZodString;
664
+ bookingItemId: z.ZodNullable<z.ZodString>;
665
+ productId: z.ZodNullable<z.ZodString>;
666
+ optionId: z.ZodNullable<z.ZodString>;
667
+ optionUnitId: z.ZodNullable<z.ZodString>;
668
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
669
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
670
+ quantity: z.ZodNumber;
671
+ allocationType: z.ZodEnum<{
672
+ unit: "unit";
673
+ pickup: "pickup";
674
+ resource: "resource";
675
+ }>;
676
+ status: z.ZodEnum<{
677
+ cancelled: "cancelled";
678
+ confirmed: "confirmed";
679
+ expired: "expired";
680
+ fulfilled: "fulfilled";
681
+ held: "held";
682
+ released: "released";
683
+ }>;
684
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
685
+ confirmedAt: z.ZodNullable<z.ZodString>;
686
+ releasedAt: z.ZodNullable<z.ZodString>;
687
+ }, z.core.$strip>>;
688
+ checklist: z.ZodObject<{
689
+ hasParticipants: z.ZodBoolean;
690
+ hasTraveler: z.ZodBoolean;
691
+ hasPrimaryParticipant: z.ZodBoolean;
692
+ hasItems: z.ZodBoolean;
693
+ hasAllocations: z.ZodBoolean;
694
+ readyForConfirmation: z.ZodBoolean;
695
+ }, z.core.$strip>;
696
+ state: z.ZodNullable<z.ZodObject<{
697
+ sessionId: z.ZodString;
698
+ stateKey: z.ZodLiteral<"wizard">;
699
+ currentStep: z.ZodNullable<z.ZodString>;
700
+ completedSteps: z.ZodArray<z.ZodString>;
701
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
702
+ version: z.ZodNumber;
703
+ createdAt: z.ZodString;
704
+ updatedAt: z.ZodString;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>>;
707
+ }, z.core.$strip>;
708
+ export declare const publicBookingOverviewParticipantSchema: z.ZodObject<{
709
+ id: z.ZodString;
710
+ participantType: z.ZodEnum<{
711
+ staff: "staff";
712
+ other: "other";
713
+ traveler: "traveler";
714
+ booker: "booker";
715
+ contact: "contact";
716
+ occupant: "occupant";
717
+ }>;
718
+ firstName: z.ZodString;
719
+ lastName: z.ZodString;
720
+ isPrimary: z.ZodBoolean;
721
+ }, z.core.$strip>;
722
+ export declare const publicBookingOverviewDocumentSchema: z.ZodObject<{
723
+ id: z.ZodString;
724
+ participantId: z.ZodNullable<z.ZodString>;
725
+ type: z.ZodEnum<{
726
+ visa: "visa";
727
+ other: "other";
728
+ insurance: "insurance";
729
+ health: "health";
730
+ passport_copy: "passport_copy";
731
+ }>;
732
+ fileName: z.ZodString;
733
+ fileUrl: z.ZodString;
734
+ }, z.core.$strip>;
735
+ export declare const publicBookingOverviewFulfillmentSchema: z.ZodObject<{
736
+ id: z.ZodString;
737
+ bookingItemId: z.ZodNullable<z.ZodString>;
738
+ participantId: z.ZodNullable<z.ZodString>;
739
+ fulfillmentType: z.ZodEnum<{
740
+ other: "other";
741
+ voucher: "voucher";
742
+ ticket: "ticket";
743
+ pdf: "pdf";
744
+ qr_code: "qr_code";
745
+ barcode: "barcode";
746
+ mobile: "mobile";
747
+ }>;
748
+ deliveryChannel: z.ZodEnum<{
749
+ other: "other";
750
+ download: "download";
751
+ email: "email";
752
+ api: "api";
753
+ wallet: "wallet";
754
+ }>;
755
+ status: z.ZodEnum<{
756
+ pending: "pending";
757
+ issued: "issued";
758
+ reissued: "reissued";
759
+ revoked: "revoked";
760
+ failed: "failed";
761
+ }>;
762
+ artifactUrl: z.ZodNullable<z.ZodString>;
763
+ }, z.core.$strip>;
764
+ export declare const publicBookingOverviewSchema: z.ZodObject<{
765
+ bookingId: z.ZodString;
766
+ bookingNumber: z.ZodString;
767
+ status: z.ZodEnum<{
768
+ cancelled: "cancelled";
769
+ draft: "draft";
770
+ on_hold: "on_hold";
771
+ confirmed: "confirmed";
772
+ in_progress: "in_progress";
773
+ completed: "completed";
774
+ expired: "expired";
775
+ }>;
776
+ sellCurrency: z.ZodString;
777
+ sellAmountCents: z.ZodNullable<z.ZodNumber>;
778
+ startDate: z.ZodNullable<z.ZodString>;
779
+ endDate: z.ZodNullable<z.ZodString>;
780
+ pax: z.ZodNullable<z.ZodNumber>;
781
+ confirmedAt: z.ZodNullable<z.ZodString>;
782
+ cancelledAt: z.ZodNullable<z.ZodString>;
783
+ completedAt: z.ZodNullable<z.ZodString>;
784
+ participants: z.ZodArray<z.ZodObject<{
785
+ id: z.ZodString;
786
+ participantType: z.ZodEnum<{
787
+ staff: "staff";
788
+ other: "other";
789
+ traveler: "traveler";
790
+ booker: "booker";
791
+ contact: "contact";
792
+ occupant: "occupant";
793
+ }>;
794
+ firstName: z.ZodString;
795
+ lastName: z.ZodString;
796
+ isPrimary: z.ZodBoolean;
797
+ }, z.core.$strip>>;
798
+ items: z.ZodArray<z.ZodObject<{
799
+ id: z.ZodString;
800
+ title: z.ZodString;
801
+ description: z.ZodNullable<z.ZodString>;
802
+ itemType: z.ZodEnum<{
803
+ other: "other";
804
+ unit: "unit";
805
+ extra: "extra";
806
+ service: "service";
807
+ fee: "fee";
808
+ tax: "tax";
809
+ discount: "discount";
810
+ adjustment: "adjustment";
811
+ accommodation: "accommodation";
812
+ transport: "transport";
813
+ }>;
814
+ status: z.ZodEnum<{
815
+ cancelled: "cancelled";
816
+ draft: "draft";
817
+ on_hold: "on_hold";
818
+ confirmed: "confirmed";
819
+ expired: "expired";
820
+ fulfilled: "fulfilled";
821
+ }>;
822
+ serviceDate: z.ZodNullable<z.ZodString>;
823
+ startsAt: z.ZodNullable<z.ZodString>;
824
+ endsAt: z.ZodNullable<z.ZodString>;
825
+ quantity: z.ZodNumber;
826
+ sellCurrency: z.ZodString;
827
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
828
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
829
+ costCurrency: z.ZodNullable<z.ZodString>;
830
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
831
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
832
+ notes: z.ZodNullable<z.ZodString>;
833
+ productId: z.ZodNullable<z.ZodString>;
834
+ optionId: z.ZodNullable<z.ZodString>;
835
+ optionUnitId: z.ZodNullable<z.ZodString>;
836
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
837
+ participantLinks: z.ZodArray<z.ZodObject<{
838
+ id: z.ZodString;
839
+ participantId: z.ZodString;
840
+ role: z.ZodEnum<{
841
+ other: "other";
842
+ traveler: "traveler";
843
+ occupant: "occupant";
844
+ primary_contact: "primary_contact";
845
+ service_assignee: "service_assignee";
846
+ beneficiary: "beneficiary";
847
+ }>;
848
+ isPrimary: z.ZodBoolean;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strip>>;
851
+ documents: z.ZodArray<z.ZodObject<{
852
+ id: z.ZodString;
853
+ participantId: z.ZodNullable<z.ZodString>;
854
+ type: z.ZodEnum<{
855
+ visa: "visa";
856
+ other: "other";
857
+ insurance: "insurance";
858
+ health: "health";
859
+ passport_copy: "passport_copy";
860
+ }>;
861
+ fileName: z.ZodString;
862
+ fileUrl: z.ZodString;
863
+ }, z.core.$strip>>;
864
+ fulfillments: z.ZodArray<z.ZodObject<{
865
+ id: z.ZodString;
866
+ bookingItemId: z.ZodNullable<z.ZodString>;
867
+ participantId: z.ZodNullable<z.ZodString>;
868
+ fulfillmentType: z.ZodEnum<{
869
+ other: "other";
870
+ voucher: "voucher";
871
+ ticket: "ticket";
872
+ pdf: "pdf";
873
+ qr_code: "qr_code";
874
+ barcode: "barcode";
875
+ mobile: "mobile";
876
+ }>;
877
+ deliveryChannel: z.ZodEnum<{
878
+ other: "other";
879
+ download: "download";
880
+ email: "email";
881
+ api: "api";
882
+ wallet: "wallet";
883
+ }>;
884
+ status: z.ZodEnum<{
885
+ pending: "pending";
886
+ issued: "issued";
887
+ reissued: "reissued";
888
+ revoked: "revoked";
889
+ failed: "failed";
890
+ }>;
891
+ artifactUrl: z.ZodNullable<z.ZodString>;
892
+ }, z.core.$strip>>;
893
+ }, z.core.$strip>;
894
+ export type PublicCreateBookingSessionInput = z.infer<typeof publicCreateBookingSessionSchema>;
895
+ export type PublicUpdateBookingSessionInput = z.infer<typeof publicUpdateBookingSessionSchema>;
896
+ export type PublicBookingSessionMutationInput = z.infer<typeof publicBookingSessionMutationSchema>;
897
+ export type PublicBookingSessionState = z.infer<typeof publicBookingSessionStateSchema>;
898
+ export type PublicUpsertBookingSessionStateInput = z.infer<typeof publicUpsertBookingSessionStateSchema>;
899
+ export type PublicBookingSessionRepriceInput = z.infer<typeof publicRepriceBookingSessionSchema>;
900
+ export type PublicBookingOverviewLookupQuery = z.infer<typeof publicBookingOverviewLookupQuerySchema>;
901
+ //# sourceMappingURL=validation-public.d.ts.map