@voyantjs/bookings 0.6.7 → 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.
Files changed (64) hide show
  1. package/README.md +2 -2
  2. package/dist/index.d.ts +7 -7
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -4
  5. package/dist/pii.d.ts +10 -9
  6. package/dist/pii.d.ts.map +1 -1
  7. package/dist/pii.js +33 -33
  8. package/dist/routes-groups.d.ts +25 -5
  9. package/dist/routes-groups.d.ts.map +1 -1
  10. package/dist/routes-groups.js +3 -3
  11. package/dist/routes-public.d.ts +19 -21
  12. package/dist/routes-public.d.ts.map +1 -1
  13. package/dist/routes-public.js +1 -1
  14. package/dist/routes-shared.d.ts +1 -1
  15. package/dist/routes-shared.d.ts.map +1 -1
  16. package/dist/routes.d.ts +200 -187
  17. package/dist/routes.d.ts.map +1 -1
  18. package/dist/routes.js +65 -95
  19. package/dist/schema/travel-details.d.ts +27 -27
  20. package/dist/schema/travel-details.d.ts.map +1 -1
  21. package/dist/schema/travel-details.js +19 -14
  22. package/dist/schema-core.d.ts +194 -305
  23. package/dist/schema-core.d.ts.map +1 -1
  24. package/dist/schema-core.js +20 -8
  25. package/dist/schema-items.d.ts +15 -15
  26. package/dist/schema-items.d.ts.map +1 -1
  27. package/dist/schema-items.js +16 -11
  28. package/dist/schema-operations.d.ts +1 -1
  29. package/dist/schema-operations.d.ts.map +1 -1
  30. package/dist/schema-operations.js +13 -5
  31. package/dist/schema-relations.d.ts +26 -9
  32. package/dist/schema-relations.d.ts.map +1 -1
  33. package/dist/schema-relations.js +36 -21
  34. package/dist/schema-shared.d.ts +3 -2
  35. package/dist/schema-shared.d.ts.map +1 -1
  36. package/dist/schema-shared.js +4 -5
  37. package/dist/schema-staff.d.ts +267 -0
  38. package/dist/schema-staff.d.ts.map +1 -0
  39. package/dist/schema-staff.js +31 -0
  40. package/dist/schema.d.ts +1 -0
  41. package/dist/schema.d.ts.map +1 -1
  42. package/dist/schema.js +1 -0
  43. package/dist/service-groups.d.ts +3 -7
  44. package/dist/service-groups.d.ts.map +1 -1
  45. package/dist/service-groups.js +6 -10
  46. package/dist/service-public.d.ts +49 -55
  47. package/dist/service-public.d.ts.map +1 -1
  48. package/dist/service-public.js +106 -53
  49. package/dist/service.d.ts +227 -99
  50. package/dist/service.d.ts.map +1 -1
  51. package/dist/service.js +321 -108
  52. package/dist/transactions-ref.d.ts +930 -66
  53. package/dist/transactions-ref.d.ts.map +1 -1
  54. package/dist/transactions-ref.js +56 -2
  55. package/dist/validation-public.d.ts +29 -69
  56. package/dist/validation-public.d.ts.map +1 -1
  57. package/dist/validation-public.js +21 -20
  58. package/dist/validation-shared.d.ts +4 -5
  59. package/dist/validation-shared.d.ts.map +1 -1
  60. package/dist/validation-shared.js +2 -10
  61. package/dist/validation.d.ts +229 -44
  62. package/dist/validation.d.ts.map +1 -1
  63. package/dist/validation.js +84 -28
  64. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"transactions-ref.d.ts","sourceRoot":"","sources":["../src/transactions-ref.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBpB,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BxB,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMvC,CAAA"}
@@ -7,6 +7,16 @@ export const offersRef = pgTable("offers", {
7
7
  status: text("status").notNull(),
8
8
  personId: text("person_id"),
9
9
  organizationId: text("organization_id"),
10
+ contactFirstName: text("contact_first_name"),
11
+ contactLastName: text("contact_last_name"),
12
+ contactEmail: text("contact_email"),
13
+ contactPhone: text("contact_phone"),
14
+ contactPreferredLanguage: text("contact_preferred_language"),
15
+ contactCountry: text("contact_country"),
16
+ contactRegion: text("contact_region"),
17
+ contactCity: text("contact_city"),
18
+ contactAddressLine1: text("contact_address_line1"),
19
+ contactPostalCode: text("contact_postal_code"),
10
20
  currency: text("currency").notNull(),
11
21
  baseCurrency: text("base_currency"),
12
22
  totalAmountCents: integer("total_amount_cents").notNull(),
@@ -34,6 +44,23 @@ export const offerParticipantsRef = pgTable("offer_participants", {
34
44
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
35
45
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
36
46
  });
47
+ export const offerStaffAssignmentsRef = pgTable("offer_staff_assignments", {
48
+ id: typeId("offer_staff_assignments").primaryKey(),
49
+ offerId: typeIdRef("offer_id").notNull(),
50
+ offerItemId: typeIdRef("offer_item_id"),
51
+ personId: text("person_id"),
52
+ role: text("role").notNull(),
53
+ firstName: text("first_name").notNull(),
54
+ lastName: text("last_name").notNull(),
55
+ email: text("email"),
56
+ phone: text("phone"),
57
+ preferredLanguage: text("preferred_language"),
58
+ isPrimary: boolean("is_primary").notNull().default(false),
59
+ notes: text("notes"),
60
+ metadata: jsonb("metadata"),
61
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
62
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
63
+ });
37
64
  export const offerItemsRef = pgTable("offer_items", {
38
65
  id: typeId("offer_items").primaryKey(),
39
66
  offerId: typeIdRef("offer_id").notNull(),
@@ -63,7 +90,7 @@ export const offerItemsRef = pgTable("offer_items", {
63
90
  export const offerItemParticipantsRef = pgTable("offer_item_participants", {
64
91
  id: typeId("offer_item_participants").primaryKey(),
65
92
  offerItemId: typeIdRef("offer_item_id").notNull(),
66
- participantId: typeIdRef("participant_id").notNull(),
93
+ travelerId: typeIdRef("traveler_id").notNull(),
67
94
  role: text("role").notNull(),
68
95
  isPrimary: boolean("is_primary").notNull().default(false),
69
96
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
@@ -76,6 +103,16 @@ export const ordersRef = pgTable("orders", {
76
103
  status: text("status").notNull(),
77
104
  personId: text("person_id"),
78
105
  organizationId: text("organization_id"),
106
+ contactFirstName: text("contact_first_name"),
107
+ contactLastName: text("contact_last_name"),
108
+ contactEmail: text("contact_email"),
109
+ contactPhone: text("contact_phone"),
110
+ contactPreferredLanguage: text("contact_preferred_language"),
111
+ contactCountry: text("contact_country"),
112
+ contactRegion: text("contact_region"),
113
+ contactCity: text("contact_city"),
114
+ contactAddressLine1: text("contact_address_line1"),
115
+ contactPostalCode: text("contact_postal_code"),
79
116
  currency: text("currency").notNull(),
80
117
  baseCurrency: text("base_currency"),
81
118
  totalAmountCents: integer("total_amount_cents").notNull(),
@@ -103,6 +140,23 @@ export const orderParticipantsRef = pgTable("order_participants", {
103
140
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
104
141
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
105
142
  });
143
+ export const orderStaffAssignmentsRef = pgTable("order_staff_assignments", {
144
+ id: typeId("order_staff_assignments").primaryKey(),
145
+ orderId: typeIdRef("order_id").notNull(),
146
+ orderItemId: typeIdRef("order_item_id"),
147
+ personId: text("person_id"),
148
+ role: text("role").notNull(),
149
+ firstName: text("first_name").notNull(),
150
+ lastName: text("last_name").notNull(),
151
+ email: text("email"),
152
+ phone: text("phone"),
153
+ preferredLanguage: text("preferred_language"),
154
+ isPrimary: boolean("is_primary").notNull().default(false),
155
+ notes: text("notes"),
156
+ metadata: jsonb("metadata"),
157
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
158
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
159
+ });
106
160
  export const orderItemsRef = pgTable("order_items", {
107
161
  id: typeId("order_items").primaryKey(),
108
162
  orderId: typeIdRef("order_id").notNull(),
@@ -133,7 +187,7 @@ export const orderItemsRef = pgTable("order_items", {
133
187
  export const orderItemParticipantsRef = pgTable("order_item_participants", {
134
188
  id: typeId("order_item_participants").primaryKey(),
135
189
  orderItemId: typeIdRef("order_item_id").notNull(),
136
- participantId: typeIdRef("participant_id").notNull(),
190
+ travelerId: typeIdRef("traveler_id").notNull(),
137
191
  role: text("role").notNull(),
138
192
  isPrimary: boolean("is_primary").notNull().default(false),
139
193
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
@@ -1,12 +1,8 @@
1
1
  import { z } from "zod";
2
- export declare const publicBookingSessionParticipantInputSchema: z.ZodObject<{
2
+ export declare const publicBookingSessionTravelerInputSchema: z.ZodObject<{
3
3
  id: z.ZodOptional<z.ZodString>;
4
4
  participantType: z.ZodDefault<z.ZodEnum<{
5
- staff: "staff";
6
- other: "other";
7
5
  traveler: "traveler";
8
- booker: "booker";
9
- contact: "contact";
10
6
  occupant: "occupant";
11
7
  }>>;
12
8
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -113,14 +109,10 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
113
109
  pickup: "pickup";
114
110
  }>>;
115
111
  }, z.core.$strip>>;
116
- participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
112
+ travelers: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
113
  id: z.ZodOptional<z.ZodString>;
118
114
  participantType: z.ZodDefault<z.ZodEnum<{
119
- staff: "staff";
120
- other: "other";
121
115
  traveler: "traveler";
122
- booker: "booker";
123
- contact: "contact";
124
116
  occupant: "occupant";
125
117
  }>>;
126
118
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -147,14 +139,10 @@ export declare const publicUpdateBookingSessionSchema: z.ZodObject<{
147
139
  pax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
140
  holdMinutes: z.ZodOptional<z.ZodNumber>;
149
141
  holdExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
- participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ travelers: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
143
  id: z.ZodOptional<z.ZodString>;
152
144
  participantType: z.ZodDefault<z.ZodEnum<{
153
- staff: "staff";
154
- other: "other";
155
145
  traveler: "traveler";
156
- booker: "booker";
157
- contact: "contact";
158
146
  occupant: "occupant";
159
147
  }>>;
160
148
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -174,7 +162,7 @@ export declare const publicUpdateBookingSessionSchema: z.ZodObject<{
174
162
  isPrimary: z.ZodDefault<z.ZodBoolean>;
175
163
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
164
  }, z.core.$strip>>>;
177
- removedParticipantIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
165
+ removedTravelerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
178
166
  }, z.core.$strip>;
179
167
  export declare const publicBookingSessionMutationSchema: z.ZodObject<{
180
168
  note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -223,14 +211,11 @@ export declare const internalBookingOverviewLookupQuerySchema: z.ZodObject<{
223
211
  bookingCode: z.ZodOptional<z.ZodString>;
224
212
  email: z.ZodOptional<z.ZodString>;
225
213
  }, z.core.$strip>;
226
- export declare const publicBookingSessionParticipantSchema: z.ZodObject<{
214
+ export declare const publicBookingSessionTravelerSchema: z.ZodObject<{
227
215
  id: z.ZodString;
228
216
  participantType: z.ZodEnum<{
229
- staff: "staff";
230
217
  other: "other";
231
218
  traveler: "traveler";
232
- booker: "booker";
233
- contact: "contact";
234
219
  occupant: "occupant";
235
220
  }>;
236
221
  travelerCategory: z.ZodNullable<z.ZodEnum<{
@@ -250,15 +235,13 @@ export declare const publicBookingSessionParticipantSchema: z.ZodObject<{
250
235
  isPrimary: z.ZodBoolean;
251
236
  notes: z.ZodNullable<z.ZodString>;
252
237
  }, z.core.$strip>;
253
- export declare const publicBookingSessionItemParticipantSchema: z.ZodObject<{
238
+ export declare const publicBookingSessionItemTravelerSchema: z.ZodObject<{
254
239
  id: z.ZodString;
255
- participantId: z.ZodString;
240
+ travelerId: z.ZodString;
256
241
  role: z.ZodEnum<{
257
242
  other: "other";
258
243
  traveler: "traveler";
259
244
  occupant: "occupant";
260
- primary_contact: "primary_contact";
261
- service_assignee: "service_assignee";
262
245
  beneficiary: "beneficiary";
263
246
  }>;
264
247
  isPrimary: z.ZodBoolean;
@@ -302,15 +285,13 @@ export declare const publicBookingSessionItemSchema: z.ZodObject<{
302
285
  optionId: z.ZodNullable<z.ZodString>;
303
286
  optionUnitId: z.ZodNullable<z.ZodString>;
304
287
  pricingCategoryId: z.ZodNullable<z.ZodString>;
305
- participantLinks: z.ZodArray<z.ZodObject<{
288
+ travelerLinks: z.ZodArray<z.ZodObject<{
306
289
  id: z.ZodString;
307
- participantId: z.ZodString;
290
+ travelerId: z.ZodString;
308
291
  role: z.ZodEnum<{
309
292
  other: "other";
310
293
  traveler: "traveler";
311
294
  occupant: "occupant";
312
- primary_contact: "primary_contact";
313
- service_assignee: "service_assignee";
314
295
  beneficiary: "beneficiary";
315
296
  }>;
316
297
  isPrimary: z.ZodBoolean;
@@ -343,9 +324,8 @@ export declare const publicBookingSessionAllocationSchema: z.ZodObject<{
343
324
  releasedAt: z.ZodNullable<z.ZodString>;
344
325
  }, z.core.$strip>;
345
326
  export declare const publicBookingSessionChecklistSchema: z.ZodObject<{
346
- hasParticipants: z.ZodBoolean;
347
- hasTraveler: z.ZodBoolean;
348
- hasPrimaryParticipant: z.ZodBoolean;
327
+ hasTravelers: z.ZodBoolean;
328
+ hasPrimaryTraveler: z.ZodBoolean;
349
329
  hasItems: z.ZodBoolean;
350
330
  hasAllocations: z.ZodBoolean;
351
331
  readyForConfirmation: z.ZodBoolean;
@@ -374,14 +354,11 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
374
354
  expiredAt: z.ZodNullable<z.ZodString>;
375
355
  cancelledAt: z.ZodNullable<z.ZodString>;
376
356
  completedAt: z.ZodNullable<z.ZodString>;
377
- participants: z.ZodArray<z.ZodObject<{
357
+ travelers: z.ZodArray<z.ZodObject<{
378
358
  id: z.ZodString;
379
359
  participantType: z.ZodEnum<{
380
- staff: "staff";
381
360
  other: "other";
382
361
  traveler: "traveler";
383
- booker: "booker";
384
- contact: "contact";
385
362
  occupant: "occupant";
386
363
  }>;
387
364
  travelerCategory: z.ZodNullable<z.ZodEnum<{
@@ -440,15 +417,13 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
440
417
  optionId: z.ZodNullable<z.ZodString>;
441
418
  optionUnitId: z.ZodNullable<z.ZodString>;
442
419
  pricingCategoryId: z.ZodNullable<z.ZodString>;
443
- participantLinks: z.ZodArray<z.ZodObject<{
420
+ travelerLinks: z.ZodArray<z.ZodObject<{
444
421
  id: z.ZodString;
445
- participantId: z.ZodString;
422
+ travelerId: z.ZodString;
446
423
  role: z.ZodEnum<{
447
424
  other: "other";
448
425
  traveler: "traveler";
449
426
  occupant: "occupant";
450
- primary_contact: "primary_contact";
451
- service_assignee: "service_assignee";
452
427
  beneficiary: "beneficiary";
453
428
  }>;
454
429
  isPrimary: z.ZodBoolean;
@@ -481,9 +456,8 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
481
456
  releasedAt: z.ZodNullable<z.ZodString>;
482
457
  }, z.core.$strip>>;
483
458
  checklist: z.ZodObject<{
484
- hasParticipants: z.ZodBoolean;
485
- hasTraveler: z.ZodBoolean;
486
- hasPrimaryParticipant: z.ZodBoolean;
459
+ hasTravelers: z.ZodBoolean;
460
+ hasPrimaryTraveler: z.ZodBoolean;
487
461
  hasItems: z.ZodBoolean;
488
462
  hasAllocations: z.ZodBoolean;
489
463
  readyForConfirmation: z.ZodBoolean;
@@ -585,14 +559,11 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
585
559
  expiredAt: z.ZodNullable<z.ZodString>;
586
560
  cancelledAt: z.ZodNullable<z.ZodString>;
587
561
  completedAt: z.ZodNullable<z.ZodString>;
588
- participants: z.ZodArray<z.ZodObject<{
562
+ travelers: z.ZodArray<z.ZodObject<{
589
563
  id: z.ZodString;
590
564
  participantType: z.ZodEnum<{
591
- staff: "staff";
592
565
  other: "other";
593
566
  traveler: "traveler";
594
- booker: "booker";
595
- contact: "contact";
596
567
  occupant: "occupant";
597
568
  }>;
598
569
  travelerCategory: z.ZodNullable<z.ZodEnum<{
@@ -651,15 +622,13 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
651
622
  optionId: z.ZodNullable<z.ZodString>;
652
623
  optionUnitId: z.ZodNullable<z.ZodString>;
653
624
  pricingCategoryId: z.ZodNullable<z.ZodString>;
654
- participantLinks: z.ZodArray<z.ZodObject<{
625
+ travelerLinks: z.ZodArray<z.ZodObject<{
655
626
  id: z.ZodString;
656
- participantId: z.ZodString;
627
+ travelerId: z.ZodString;
657
628
  role: z.ZodEnum<{
658
629
  other: "other";
659
630
  traveler: "traveler";
660
631
  occupant: "occupant";
661
- primary_contact: "primary_contact";
662
- service_assignee: "service_assignee";
663
632
  beneficiary: "beneficiary";
664
633
  }>;
665
634
  isPrimary: z.ZodBoolean;
@@ -692,9 +661,8 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
692
661
  releasedAt: z.ZodNullable<z.ZodString>;
693
662
  }, z.core.$strip>>;
694
663
  checklist: z.ZodObject<{
695
- hasParticipants: z.ZodBoolean;
696
- hasTraveler: z.ZodBoolean;
697
- hasPrimaryParticipant: z.ZodBoolean;
664
+ hasTravelers: z.ZodBoolean;
665
+ hasPrimaryTraveler: z.ZodBoolean;
698
666
  hasItems: z.ZodBoolean;
699
667
  hasAllocations: z.ZodBoolean;
700
668
  readyForConfirmation: z.ZodBoolean;
@@ -711,14 +679,11 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
711
679
  }, z.core.$strip>>;
712
680
  }, z.core.$strip>>;
713
681
  }, z.core.$strip>;
714
- export declare const publicBookingOverviewParticipantSchema: z.ZodObject<{
682
+ export declare const publicBookingOverviewTravelerSchema: z.ZodObject<{
715
683
  id: z.ZodString;
716
684
  participantType: z.ZodEnum<{
717
- staff: "staff";
718
685
  other: "other";
719
686
  traveler: "traveler";
720
- booker: "booker";
721
- contact: "contact";
722
687
  occupant: "occupant";
723
688
  }>;
724
689
  firstName: z.ZodString;
@@ -727,7 +692,7 @@ export declare const publicBookingOverviewParticipantSchema: z.ZodObject<{
727
692
  }, z.core.$strip>;
728
693
  export declare const publicBookingOverviewDocumentSchema: z.ZodObject<{
729
694
  id: z.ZodString;
730
- participantId: z.ZodNullable<z.ZodString>;
695
+ travelerId: z.ZodNullable<z.ZodString>;
731
696
  type: z.ZodEnum<{
732
697
  visa: "visa";
733
698
  other: "other";
@@ -741,7 +706,7 @@ export declare const publicBookingOverviewDocumentSchema: z.ZodObject<{
741
706
  export declare const publicBookingOverviewFulfillmentSchema: z.ZodObject<{
742
707
  id: z.ZodString;
743
708
  bookingItemId: z.ZodNullable<z.ZodString>;
744
- participantId: z.ZodNullable<z.ZodString>;
709
+ travelerId: z.ZodNullable<z.ZodString>;
745
710
  fulfillmentType: z.ZodEnum<{
746
711
  other: "other";
747
712
  voucher: "voucher";
@@ -787,14 +752,11 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
787
752
  confirmedAt: z.ZodNullable<z.ZodString>;
788
753
  cancelledAt: z.ZodNullable<z.ZodString>;
789
754
  completedAt: z.ZodNullable<z.ZodString>;
790
- participants: z.ZodArray<z.ZodObject<{
755
+ travelers: z.ZodArray<z.ZodObject<{
791
756
  id: z.ZodString;
792
757
  participantType: z.ZodEnum<{
793
- staff: "staff";
794
758
  other: "other";
795
759
  traveler: "traveler";
796
- booker: "booker";
797
- contact: "contact";
798
760
  occupant: "occupant";
799
761
  }>;
800
762
  firstName: z.ZodString;
@@ -840,15 +802,13 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
840
802
  optionId: z.ZodNullable<z.ZodString>;
841
803
  optionUnitId: z.ZodNullable<z.ZodString>;
842
804
  pricingCategoryId: z.ZodNullable<z.ZodString>;
843
- participantLinks: z.ZodArray<z.ZodObject<{
805
+ travelerLinks: z.ZodArray<z.ZodObject<{
844
806
  id: z.ZodString;
845
- participantId: z.ZodString;
807
+ travelerId: z.ZodString;
846
808
  role: z.ZodEnum<{
847
809
  other: "other";
848
810
  traveler: "traveler";
849
811
  occupant: "occupant";
850
- primary_contact: "primary_contact";
851
- service_assignee: "service_assignee";
852
812
  beneficiary: "beneficiary";
853
813
  }>;
854
814
  isPrimary: z.ZodBoolean;
@@ -856,7 +816,7 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
856
816
  }, z.core.$strip>>;
857
817
  documents: z.ZodArray<z.ZodObject<{
858
818
  id: z.ZodString;
859
- participantId: z.ZodNullable<z.ZodString>;
819
+ travelerId: z.ZodNullable<z.ZodString>;
860
820
  type: z.ZodEnum<{
861
821
  visa: "visa";
862
822
  other: "other";
@@ -870,7 +830,7 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
870
830
  fulfillments: z.ZodArray<z.ZodObject<{
871
831
  id: z.ZodString;
872
832
  bookingItemId: z.ZodNullable<z.ZodString>;
873
- participantId: z.ZodNullable<z.ZodString>;
833
+ travelerId: z.ZodNullable<z.ZodString>;
874
834
  fulfillmentType: z.ZodEnum<{
875
835
  other: "other";
876
836
  voucher: "voucher";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoBvB,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;iBAarD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB/C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB3C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa3C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;iBAKhD,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;iBAMrD,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;iBAI5C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;iBAGjD,CAAA;AAEF,eAAO,MAAM,wCAAwC;;;;;iBASjD,CAAA;AAEJ,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;iBAahD,CAAA;AAEF,eAAO,MAAM,yCA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BAM9C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQjD,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBtC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAClG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,qCAAqC,CAC7C,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAA"}
@@ -1,10 +1,12 @@
1
1
  import { z } from "zod";
2
- import { bookingAllocationStatusSchema, bookingAllocationTypeSchema, bookingDocumentTypeSchema, bookingFulfillmentDeliveryChannelSchema, bookingFulfillmentStatusSchema, bookingFulfillmentTypeSchema, bookingItemParticipantRoleSchema, bookingItemStatusSchema, bookingItemTypeSchema, bookingParticipantTypeSchema, bookingStatusSchema, bookingTravelerCategorySchema, } from "./validation-shared.js";
2
+ import { bookingAllocationStatusSchema, bookingAllocationTypeSchema, bookingDocumentTypeSchema, bookingFulfillmentDeliveryChannelSchema, bookingFulfillmentStatusSchema, bookingFulfillmentTypeSchema, bookingItemParticipantRoleSchema, bookingItemStatusSchema, bookingItemTypeSchema, bookingStatusSchema, bookingTravelerCategorySchema, } from "./validation-shared.js";
3
3
  const isoDateSchema = z.string().date();
4
4
  const isoDateTimeSchema = z.string().datetime();
5
- export const publicBookingSessionParticipantInputSchema = z.object({
5
+ const publicBookingTravelerTypeSchema = z.enum(["traveler", "occupant"]);
6
+ const publicBookingVisibleTravelerTypeSchema = z.enum(["traveler", "occupant", "other"]);
7
+ export const publicBookingSessionTravelerInputSchema = z.object({
6
8
  id: z.string().optional(),
7
- participantType: bookingParticipantTypeSchema.default("traveler"),
9
+ participantType: publicBookingTravelerTypeSchema.default("traveler"),
8
10
  travelerCategory: bookingTravelerCategorySchema.nullable().optional(),
9
11
  firstName: z.string().min(1).max(255),
10
12
  lastName: z.string().min(1).max(255),
@@ -58,7 +60,7 @@ export const publicCreateBookingSessionSchema = z.object({
58
60
  .default(30),
59
61
  holdExpiresAt: isoDateTimeSchema.nullable().optional(),
60
62
  items: z.array(publicCreateBookingSessionItemSchema).min(1),
61
- participants: z.array(publicBookingSessionParticipantInputSchema).default([]),
63
+ travelers: z.array(publicBookingSessionTravelerInputSchema).optional(),
62
64
  });
63
65
  export const publicUpdateBookingSessionSchema = z.object({
64
66
  externalBookingRef: z.string().nullable().optional(),
@@ -71,8 +73,8 @@ export const publicUpdateBookingSessionSchema = z.object({
71
73
  .max(24 * 60)
72
74
  .optional(),
73
75
  holdExpiresAt: isoDateTimeSchema.nullable().optional(),
74
- participants: z.array(publicBookingSessionParticipantInputSchema).optional(),
75
- removedParticipantIds: z.array(z.string()).default([]),
76
+ travelers: z.array(publicBookingSessionTravelerInputSchema).optional(),
77
+ removedTravelerIds: z.array(z.string()).default([]),
76
78
  });
77
79
  export const publicBookingSessionMutationSchema = z.object({
78
80
  note: z.string().nullable().optional(),
@@ -119,9 +121,9 @@ export const internalBookingOverviewLookupQuerySchema = z
119
121
  .refine((value) => Boolean(value.bookingId || value.bookingNumber || value.bookingCode), {
120
122
  message: "Provide a bookingId, bookingNumber, or bookingCode",
121
123
  });
122
- export const publicBookingSessionParticipantSchema = z.object({
124
+ export const publicBookingSessionTravelerSchema = z.object({
123
125
  id: z.string(),
124
- participantType: bookingParticipantTypeSchema,
126
+ participantType: publicBookingVisibleTravelerTypeSchema,
125
127
  travelerCategory: bookingTravelerCategorySchema.nullable(),
126
128
  firstName: z.string(),
127
129
  lastName: z.string(),
@@ -133,9 +135,9 @@ export const publicBookingSessionParticipantSchema = z.object({
133
135
  isPrimary: z.boolean(),
134
136
  notes: z.string().nullable(),
135
137
  });
136
- export const publicBookingSessionItemParticipantSchema = z.object({
138
+ export const publicBookingSessionItemTravelerSchema = z.object({
137
139
  id: z.string(),
138
- participantId: z.string(),
140
+ travelerId: z.string(),
139
141
  role: bookingItemParticipantRoleSchema,
140
142
  isPrimary: z.boolean(),
141
143
  });
@@ -160,7 +162,7 @@ export const publicBookingSessionItemSchema = z.object({
160
162
  optionId: z.string().nullable(),
161
163
  optionUnitId: z.string().nullable(),
162
164
  pricingCategoryId: z.string().nullable(),
163
- participantLinks: z.array(publicBookingSessionItemParticipantSchema),
165
+ travelerLinks: z.array(publicBookingSessionItemTravelerSchema),
164
166
  });
165
167
  export const publicBookingSessionAllocationSchema = z.object({
166
168
  id: z.string(),
@@ -178,9 +180,8 @@ export const publicBookingSessionAllocationSchema = z.object({
178
180
  releasedAt: z.string().nullable(),
179
181
  });
180
182
  export const publicBookingSessionChecklistSchema = z.object({
181
- hasParticipants: z.boolean(),
182
- hasTraveler: z.boolean(),
183
- hasPrimaryParticipant: z.boolean(),
183
+ hasTravelers: z.boolean(),
184
+ hasPrimaryTraveler: z.boolean(),
184
185
  hasItems: z.boolean(),
185
186
  hasAllocations: z.boolean(),
186
187
  readyForConfirmation: z.boolean(),
@@ -201,7 +202,7 @@ export const publicBookingSessionSchema = z.object({
201
202
  expiredAt: z.string().nullable(),
202
203
  cancelledAt: z.string().nullable(),
203
204
  completedAt: z.string().nullable(),
204
- participants: z.array(publicBookingSessionParticipantSchema),
205
+ travelers: z.array(publicBookingSessionTravelerSchema),
205
206
  items: z.array(publicBookingSessionItemSchema),
206
207
  allocations: z.array(publicBookingSessionAllocationSchema),
207
208
  checklist: publicBookingSessionChecklistSchema,
@@ -235,16 +236,16 @@ export const publicBookingSessionRepriceResultSchema = z.object({
235
236
  pricing: publicBookingSessionRepriceSummarySchema,
236
237
  session: publicBookingSessionSchema.nullable(),
237
238
  });
238
- export const publicBookingOverviewParticipantSchema = z.object({
239
+ export const publicBookingOverviewTravelerSchema = z.object({
239
240
  id: z.string(),
240
- participantType: bookingParticipantTypeSchema,
241
+ participantType: publicBookingVisibleTravelerTypeSchema,
241
242
  firstName: z.string(),
242
243
  lastName: z.string(),
243
244
  isPrimary: z.boolean(),
244
245
  });
245
246
  export const publicBookingOverviewDocumentSchema = z.object({
246
247
  id: z.string(),
247
- participantId: z.string().nullable(),
248
+ travelerId: z.string().nullable(),
248
249
  type: bookingDocumentTypeSchema,
249
250
  fileName: z.string(),
250
251
  fileUrl: z.string(),
@@ -252,7 +253,7 @@ export const publicBookingOverviewDocumentSchema = z.object({
252
253
  export const publicBookingOverviewFulfillmentSchema = z.object({
253
254
  id: z.string(),
254
255
  bookingItemId: z.string().nullable(),
255
- participantId: z.string().nullable(),
256
+ travelerId: z.string().nullable(),
256
257
  fulfillmentType: bookingFulfillmentTypeSchema,
257
258
  deliveryChannel: bookingFulfillmentDeliveryChannelSchema,
258
259
  status: bookingFulfillmentStatusSchema,
@@ -270,7 +271,7 @@ export const publicBookingOverviewSchema = z.object({
270
271
  confirmedAt: z.string().nullable(),
271
272
  cancelledAt: z.string().nullable(),
272
273
  completedAt: z.string().nullable(),
273
- participants: z.array(publicBookingOverviewParticipantSchema),
274
+ travelers: z.array(publicBookingOverviewTravelerSchema),
274
275
  items: z.array(publicBookingSessionItemSchema),
275
276
  documents: z.array(publicBookingOverviewDocumentSchema),
276
277
  fulfillments: z.array(publicBookingOverviewFulfillmentSchema),
@@ -24,11 +24,8 @@ export declare const bookingSourceTypeSchema: z.ZodEnum<{
24
24
  api_partner: "api_partner";
25
25
  }>;
26
26
  export declare const bookingParticipantTypeSchema: z.ZodEnum<{
27
- staff: "staff";
28
27
  other: "other";
29
28
  traveler: "traveler";
30
- booker: "booker";
31
- contact: "contact";
32
29
  occupant: "occupant";
33
30
  }>;
34
31
  export declare const bookingTravelerCategorySchema: z.ZodEnum<{
@@ -62,10 +59,12 @@ export declare const bookingItemParticipantRoleSchema: z.ZodEnum<{
62
59
  other: "other";
63
60
  traveler: "traveler";
64
61
  occupant: "occupant";
65
- primary_contact: "primary_contact";
66
- service_assignee: "service_assignee";
67
62
  beneficiary: "beneficiary";
68
63
  }>;
64
+ export declare const bookingStaffAssignmentRoleSchema: z.ZodEnum<{
65
+ other: "other";
66
+ service_assignee: "service_assignee";
67
+ }>;
69
68
  export declare const bookingAllocationTypeSchema: z.ZodEnum<{
70
69
  resource: "resource";
71
70
  unit: "unit";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-shared.d.ts","sourceRoot":"","sources":["../src/validation-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;;;EAQ9B,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;EAK3C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;EAQlC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;EAOvC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;EAA0D,CAAA;AAEpG,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAWhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;EAOlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;EAO3C,CAAA;AAEF,e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
  "api_partner",
24
24
  "internal",
25
25
  ]);
26
- export const bookingParticipantTypeSchema = z.enum([
27
- "traveler",
28
- "booker",
29
- "contact",
30
- "occupant",
31
- "staff",
32
- "other",
33
- ]);
26
+ export const bookingParticipantTypeSchema = z.enum(["traveler", "occupant", "other"]);
34
27
  export const bookingTravelerCategorySchema = z.enum(["adult", "child", "infant", "senior", "other"]);
35
28
  export const bookingItemTypeSchema = z.enum([
36
29
  "unit",
@@ -55,11 +48,10 @@ export const bookingItemStatusSchema = z.enum([
55
48
  export const bookingItemParticipantRoleSchema = z.enum([
56
49
  "traveler",
57
50
  "occupant",
58
- "primary_contact",
59
- "service_assignee",
60
51
  "beneficiary",
61
52
  "other",
62
53
  ]);
54
+ export const bookingStaffAssignmentRoleSchema = z.enum(["service_assignee", "other"]);
63
55
  export const bookingAllocationTypeSchema = z.enum(["unit", "pickup", "resource"]);
64
56
  export const bookingAllocationStatusSchema = z.enum([
65
57
  "held",