@voyantjs/customer-portal 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,9 +49,6 @@ export declare const customerPortalRecordSchema: z.ZodObject<{
49
49
  birthday: z.ZodNullable<z.ZodString>;
50
50
  email: z.ZodNullable<z.ZodString>;
51
51
  phone: z.ZodNullable<z.ZodString>;
52
- address: z.ZodNullable<z.ZodString>;
53
- city: z.ZodNullable<z.ZodString>;
54
- country: z.ZodNullable<z.ZodString>;
55
52
  billingAddress: z.ZodNullable<z.ZodObject<{
56
53
  id: z.ZodString;
57
54
  label: z.ZodEnum<{
@@ -85,9 +82,6 @@ export declare const customerPortalBootstrapCandidateSchema: z.ZodObject<{
85
82
  birthday: z.ZodNullable<z.ZodString>;
86
83
  email: z.ZodNullable<z.ZodString>;
87
84
  phone: z.ZodNullable<z.ZodString>;
88
- address: z.ZodNullable<z.ZodString>;
89
- city: z.ZodNullable<z.ZodString>;
90
- country: z.ZodNullable<z.ZodString>;
91
85
  billingAddress: z.ZodNullable<z.ZodObject<{
92
86
  id: z.ZodString;
93
87
  label: z.ZodEnum<{
@@ -168,9 +162,6 @@ export declare const customerPortalProfileSchema: z.ZodObject<{
168
162
  birthday: z.ZodNullable<z.ZodString>;
169
163
  email: z.ZodNullable<z.ZodString>;
170
164
  phone: z.ZodNullable<z.ZodString>;
171
- address: z.ZodNullable<z.ZodString>;
172
- city: z.ZodNullable<z.ZodString>;
173
- country: z.ZodNullable<z.ZodString>;
174
165
  billingAddress: z.ZodNullable<z.ZodObject<{
175
166
  id: z.ZodString;
176
167
  label: z.ZodEnum<{
@@ -201,9 +192,6 @@ export declare const updateCustomerPortalRecordSchema: z.ZodObject<{
201
192
  preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
193
  birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
194
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
195
  billingAddress: z.ZodOptional<z.ZodObject<{
208
196
  label: z.ZodOptional<z.ZodEnum<{
209
197
  service: "service";
@@ -271,9 +259,6 @@ export declare const updateCustomerPortalProfileSchema: z.ZodObject<{
271
259
  preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
260
  birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
261
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
262
  billingAddress: z.ZodOptional<z.ZodObject<{
278
263
  label: z.ZodOptional<z.ZodEnum<{
279
264
  service: "service";
@@ -325,9 +310,6 @@ export declare const bootstrapCustomerPortalSchema: z.ZodObject<{
325
310
  preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
311
  birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
312
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
- country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
313
  billingAddress: z.ZodOptional<z.ZodObject<{
332
314
  label: z.ZodOptional<z.ZodEnum<{
333
315
  service: "service";
@@ -411,9 +393,6 @@ export declare const bootstrapCustomerPortalResultSchema: z.ZodObject<{
411
393
  birthday: z.ZodNullable<z.ZodString>;
412
394
  email: z.ZodNullable<z.ZodString>;
413
395
  phone: z.ZodNullable<z.ZodString>;
414
- address: z.ZodNullable<z.ZodString>;
415
- city: z.ZodNullable<z.ZodString>;
416
- country: z.ZodNullable<z.ZodString>;
417
396
  billingAddress: z.ZodNullable<z.ZodObject<{
418
397
  id: z.ZodString;
419
398
  label: z.ZodEnum<{
@@ -448,9 +427,6 @@ export declare const bootstrapCustomerPortalResultSchema: z.ZodObject<{
448
427
  birthday: z.ZodNullable<z.ZodString>;
449
428
  email: z.ZodNullable<z.ZodString>;
450
429
  phone: z.ZodNullable<z.ZodString>;
451
- address: z.ZodNullable<z.ZodString>;
452
- city: z.ZodNullable<z.ZodString>;
453
- country: z.ZodNullable<z.ZodString>;
454
430
  billingAddress: z.ZodNullable<z.ZodObject<{
455
431
  id: z.ZodString;
456
432
  label: z.ZodEnum<{
@@ -624,6 +600,54 @@ export declare const updateCustomerPortalCompanionSchema: z.ZodObject<{
624
600
  }, z.core.$strip>>>;
625
601
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
626
602
  }, z.core.$strip>;
603
+ export declare const importCustomerPortalBookingTravelersSchema: z.ZodObject<{
604
+ bookingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
605
+ }, z.core.$strip>;
606
+ export declare const importCustomerPortalBookingTravelersResultSchema: z.ZodObject<{
607
+ created: z.ZodArray<z.ZodObject<{
608
+ id: z.ZodString;
609
+ role: z.ZodString;
610
+ name: z.ZodString;
611
+ title: z.ZodNullable<z.ZodString>;
612
+ email: z.ZodNullable<z.ZodString>;
613
+ phone: z.ZodNullable<z.ZodString>;
614
+ isPrimary: z.ZodBoolean;
615
+ notes: z.ZodNullable<z.ZodString>;
616
+ typeKey: z.ZodNullable<z.ZodString>;
617
+ person: z.ZodObject<{
618
+ firstName: z.ZodNullable<z.ZodString>;
619
+ middleName: z.ZodNullable<z.ZodString>;
620
+ lastName: z.ZodNullable<z.ZodString>;
621
+ dateOfBirth: z.ZodNullable<z.ZodString>;
622
+ addresses: z.ZodArray<z.ZodObject<{
623
+ type: z.ZodNullable<z.ZodString>;
624
+ country: z.ZodNullable<z.ZodString>;
625
+ state: z.ZodNullable<z.ZodString>;
626
+ city: z.ZodNullable<z.ZodString>;
627
+ postalCode: z.ZodNullable<z.ZodString>;
628
+ addressLine1: z.ZodNullable<z.ZodString>;
629
+ addressLine2: z.ZodNullable<z.ZodString>;
630
+ isDefault: z.ZodBoolean;
631
+ }, z.core.$strip>>;
632
+ documents: z.ZodArray<z.ZodObject<{
633
+ type: z.ZodEnum<{
634
+ passport: "passport";
635
+ visa: "visa";
636
+ drivers_license: "drivers_license";
637
+ other: "other";
638
+ id_card: "id_card";
639
+ }>;
640
+ number: z.ZodNullable<z.ZodString>;
641
+ issuingAuthority: z.ZodNullable<z.ZodString>;
642
+ country: z.ZodNullable<z.ZodString>;
643
+ issueDate: z.ZodNullable<z.ZodString>;
644
+ expiryDate: z.ZodNullable<z.ZodString>;
645
+ }, z.core.$strip>>;
646
+ }, z.core.$strip>;
647
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
648
+ }, z.core.$strip>>;
649
+ skippedCount: z.ZodNumber;
650
+ }, z.core.$strip>;
627
651
  export declare const importCustomerPortalBookingParticipantsSchema: z.ZodObject<{
628
652
  bookingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
629
653
  }, z.core.$strip>;
@@ -698,18 +722,27 @@ export declare const customerPortalBookingSummarySchema: z.ZodObject<{
698
722
  pax: z.ZodNullable<z.ZodNumber>;
699
723
  confirmedAt: z.ZodNullable<z.ZodString>;
700
724
  completedAt: z.ZodNullable<z.ZodString>;
701
- participantCount: z.ZodNumber;
725
+ travelerCount: z.ZodNumber;
702
726
  primaryTravelerName: z.ZodNullable<z.ZodString>;
703
727
  }, z.core.$strip>;
728
+ export declare const customerPortalBookingItemTravelerSchema: z.ZodObject<{
729
+ id: z.ZodString;
730
+ travelerId: z.ZodString;
731
+ role: z.ZodEnum<{
732
+ other: "other";
733
+ traveler: "traveler";
734
+ occupant: "occupant";
735
+ beneficiary: "beneficiary";
736
+ }>;
737
+ isPrimary: z.ZodBoolean;
738
+ }, z.core.$strip>;
704
739
  export declare const customerPortalBookingItemParticipantSchema: z.ZodObject<{
705
740
  id: z.ZodString;
706
- participantId: z.ZodString;
741
+ travelerId: z.ZodString;
707
742
  role: z.ZodEnum<{
708
743
  other: "other";
709
744
  traveler: "traveler";
710
745
  occupant: "occupant";
711
- primary_contact: "primary_contact";
712
- service_assignee: "service_assignee";
713
746
  beneficiary: "beneficiary";
714
747
  }>;
715
748
  isPrimary: z.ZodBoolean;
@@ -746,28 +779,34 @@ export declare const customerPortalBookingItemSchema: z.ZodObject<{
746
779
  unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
747
780
  totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
748
781
  notes: z.ZodNullable<z.ZodString>;
749
- participantLinks: z.ZodArray<z.ZodObject<{
782
+ travelerLinks: z.ZodArray<z.ZodObject<{
750
783
  id: z.ZodString;
751
- participantId: z.ZodString;
784
+ travelerId: z.ZodString;
752
785
  role: z.ZodEnum<{
753
786
  other: "other";
754
787
  traveler: "traveler";
755
788
  occupant: "occupant";
756
- primary_contact: "primary_contact";
757
- service_assignee: "service_assignee";
758
789
  beneficiary: "beneficiary";
759
790
  }>;
760
791
  isPrimary: z.ZodBoolean;
761
792
  }, z.core.$strip>>;
762
793
  }, z.core.$strip>;
794
+ export declare const customerPortalBookingTravelerSchema: z.ZodObject<{
795
+ id: z.ZodString;
796
+ participantType: z.ZodEnum<{
797
+ other: "other";
798
+ traveler: "traveler";
799
+ occupant: "occupant";
800
+ }>;
801
+ firstName: z.ZodString;
802
+ lastName: z.ZodString;
803
+ isPrimary: z.ZodBoolean;
804
+ }, z.core.$strip>;
763
805
  export declare const customerPortalBookingParticipantSchema: z.ZodObject<{
764
806
  id: z.ZodString;
765
807
  participantType: z.ZodEnum<{
766
- staff: "staff";
767
808
  other: "other";
768
809
  traveler: "traveler";
769
- booker: "booker";
770
- contact: "contact";
771
810
  occupant: "occupant";
772
811
  }>;
773
812
  firstName: z.ZodString;
@@ -792,7 +831,7 @@ export declare const customerPortalBookingDocumentSchema: z.ZodObject<{
792
831
  finance: "finance";
793
832
  booking_document: "booking_document";
794
833
  }>;
795
- participantId: z.ZodNullable<z.ZodString>;
834
+ travelerId: z.ZodNullable<z.ZodString>;
796
835
  type: z.ZodEnum<{
797
836
  visa: "visa";
798
837
  other: "other";
@@ -954,7 +993,7 @@ export declare const customerPortalBookingFinancialsSchema: z.ZodObject<{
954
993
  export declare const customerPortalBookingFulfillmentSchema: z.ZodObject<{
955
994
  id: z.ZodString;
956
995
  bookingItemId: z.ZodNullable<z.ZodString>;
957
- participantId: z.ZodNullable<z.ZodString>;
996
+ travelerId: z.ZodNullable<z.ZodString>;
958
997
  fulfillmentType: z.ZodEnum<{
959
998
  other: "other";
960
999
  voucher: "voucher";
@@ -1000,14 +1039,11 @@ export declare const customerPortalBookingDetailSchema: z.ZodObject<{
1000
1039
  confirmedAt: z.ZodNullable<z.ZodString>;
1001
1040
  cancelledAt: z.ZodNullable<z.ZodString>;
1002
1041
  completedAt: z.ZodNullable<z.ZodString>;
1003
- participants: z.ZodArray<z.ZodObject<{
1042
+ travelers: z.ZodArray<z.ZodObject<{
1004
1043
  id: z.ZodString;
1005
1044
  participantType: z.ZodEnum<{
1006
- staff: "staff";
1007
1045
  other: "other";
1008
1046
  traveler: "traveler";
1009
- booker: "booker";
1010
- contact: "contact";
1011
1047
  occupant: "occupant";
1012
1048
  }>;
1013
1049
  firstName: z.ZodString;
@@ -1046,15 +1082,13 @@ export declare const customerPortalBookingDetailSchema: z.ZodObject<{
1046
1082
  unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
1047
1083
  totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
1048
1084
  notes: z.ZodNullable<z.ZodString>;
1049
- participantLinks: z.ZodArray<z.ZodObject<{
1085
+ travelerLinks: z.ZodArray<z.ZodObject<{
1050
1086
  id: z.ZodString;
1051
- participantId: z.ZodString;
1087
+ travelerId: z.ZodString;
1052
1088
  role: z.ZodEnum<{
1053
1089
  other: "other";
1054
1090
  traveler: "traveler";
1055
1091
  occupant: "occupant";
1056
- primary_contact: "primary_contact";
1057
- service_assignee: "service_assignee";
1058
1092
  beneficiary: "beneficiary";
1059
1093
  }>;
1060
1094
  isPrimary: z.ZodBoolean;
@@ -1078,7 +1112,7 @@ export declare const customerPortalBookingDetailSchema: z.ZodObject<{
1078
1112
  finance: "finance";
1079
1113
  booking_document: "booking_document";
1080
1114
  }>;
1081
- participantId: z.ZodNullable<z.ZodString>;
1115
+ travelerId: z.ZodNullable<z.ZodString>;
1082
1116
  type: z.ZodEnum<{
1083
1117
  visa: "visa";
1084
1118
  other: "other";
@@ -1170,7 +1204,7 @@ export declare const customerPortalBookingDetailSchema: z.ZodObject<{
1170
1204
  fulfillments: z.ZodArray<z.ZodObject<{
1171
1205
  id: z.ZodString;
1172
1206
  bookingItemId: z.ZodNullable<z.ZodString>;
1173
- participantId: z.ZodNullable<z.ZodString>;
1207
+ travelerId: z.ZodNullable<z.ZodString>;
1174
1208
  fulfillmentType: z.ZodEnum<{
1175
1209
  other: "other";
1176
1210
  voucher: "voucher";
@@ -1209,8 +1243,10 @@ export type CustomerPortalBootstrapCandidate = z.infer<typeof customerPortalBoot
1209
1243
  export type CustomerPortalCompanion = z.infer<typeof customerPortalCompanionSchema>;
1210
1244
  export type CreateCustomerPortalCompanionInput = z.infer<typeof createCustomerPortalCompanionSchema>;
1211
1245
  export type UpdateCustomerPortalCompanionInput = z.infer<typeof updateCustomerPortalCompanionSchema>;
1212
- export type ImportCustomerPortalBookingParticipantsInput = z.infer<typeof importCustomerPortalBookingParticipantsSchema>;
1213
- export type ImportCustomerPortalBookingParticipantsResult = z.infer<typeof importCustomerPortalBookingParticipantsResultSchema>;
1246
+ export type ImportCustomerPortalBookingTravelersInput = z.infer<typeof importCustomerPortalBookingTravelersSchema>;
1247
+ export type ImportCustomerPortalBookingTravelersResult = z.infer<typeof importCustomerPortalBookingTravelersResultSchema>;
1248
+ export type ImportCustomerPortalBookingParticipantsInput = ImportCustomerPortalBookingTravelersInput;
1249
+ export type ImportCustomerPortalBookingParticipantsResult = ImportCustomerPortalBookingTravelersResult;
1214
1250
  export type CustomerPortalBookingSummary = z.infer<typeof customerPortalBookingSummarySchema>;
1215
1251
  export type CustomerPortalBookingBillingContact = z.infer<typeof customerPortalBookingBillingContactSchema>;
1216
1252
  export type CustomerPortalBookingDocument = z.infer<typeof customerPortalBookingDocumentSchema>;
@@ -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;AA6JvB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAWtC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;iBAc1C,CAAA;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAerC,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjD,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCtC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyC1C,CAAA;AAEJ,eAAO,MAAM,sCAAsC;;iBAEjD,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;iBAKlD,CAAA;AAEF,eAAO,MAAM,2CAA2C;;iBAEtD,CAAA;AAEF,eAAO,MAAM,4CAA4C;;;;iBAIvD,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;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= z.enum([
12
- "traveler",
13
- "booker",
14
- "contact",
15
- "occupant",
16
- "staff",
17
- "other",
18
- ]);
11
+ const customerPortalBookingTravelerTypeSchema = z.enum(["traveler", "occupant", "other"]);
19
12
  const bookingItemTypeSchema = z.enum([
20
13
  "unit",
21
14
  "extra",
@@ -36,14 +29,7 @@ const bookingItemStatusSchema = z.enum([
36
29
  "expired",
37
30
  "fulfilled",
38
31
  ]);
39
- const bookingItemParticipantRoleSchema = z.enum([
40
- "traveler",
41
- "occupant",
42
- "primary_contact",
43
- "service_assignee",
44
- "beneficiary",
45
- "other",
46
- ]);
32
+ const bookingItemParticipantRoleSchema = z.enum(["traveler", "occupant", "beneficiary", "other"]);
47
33
  const bookingDocumentTypeSchema = z.enum([
48
34
  "visa",
49
35
  "insurance",
@@ -180,9 +166,6 @@ export const customerPortalRecordSchema = z.object({
180
166
  birthday: z.string().nullable(),
181
167
  email: z.string().nullable(),
182
168
  phone: z.string().nullable(),
183
- address: z.string().nullable(),
184
- city: z.string().nullable(),
185
- country: z.string().nullable(),
186
169
  billingAddress: customerPortalAddressSchema.nullable(),
187
170
  relation: z.string().nullable(),
188
171
  status: z.string(),
@@ -234,9 +217,6 @@ export const updateCustomerPortalRecordSchema = z.object({
234
217
  preferredCurrency: z.string().min(3).max(3).nullable().optional(),
235
218
  birthday: z.string().date().nullable().optional(),
236
219
  phone: z.string().max(50).nullable().optional(),
237
- address: z.string().nullable().optional(),
238
- city: z.string().nullable().optional(),
239
- country: z.string().nullable().optional(),
240
220
  billingAddress: updateCustomerPortalAddressSchema.optional(),
241
221
  });
242
222
  export const updateCustomerPortalProfileSchema = z
@@ -414,13 +394,15 @@ export const updateCustomerPortalCompanionSchema = createCustomerPortalCompanion
414
394
  .refine((value) => Object.keys(value).length > 0, {
415
395
  message: "At least one field must be provided",
416
396
  });
417
- export const importCustomerPortalBookingParticipantsSchema = z.object({
397
+ export const importCustomerPortalBookingTravelersSchema = z.object({
418
398
  bookingIds: z.array(z.string()).min(1).optional(),
419
399
  });
420
- export const importCustomerPortalBookingParticipantsResultSchema = z.object({
400
+ export const importCustomerPortalBookingTravelersResultSchema = z.object({
421
401
  created: z.array(customerPortalCompanionSchema),
422
402
  skippedCount: z.number().int().nonnegative(),
423
403
  });
404
+ export const importCustomerPortalBookingParticipantsSchema = importCustomerPortalBookingTravelersSchema;
405
+ export const importCustomerPortalBookingParticipantsResultSchema = importCustomerPortalBookingTravelersResultSchema;
424
406
  export const customerPortalBookingSummarySchema = z.object({
425
407
  bookingId: z.string(),
426
408
  bookingNumber: z.string(),
@@ -434,15 +416,16 @@ export const customerPortalBookingSummarySchema = z.object({
434
416
  pax: z.number().int().nullable(),
435
417
  confirmedAt: z.string().nullable(),
436
418
  completedAt: z.string().nullable(),
437
- participantCount: z.number().int(),
419
+ travelerCount: z.number().int(),
438
420
  primaryTravelerName: z.string().nullable(),
439
421
  });
440
- export const customerPortalBookingItemParticipantSchema = z.object({
422
+ export const customerPortalBookingItemTravelerSchema = z.object({
441
423
  id: z.string(),
442
- participantId: z.string(),
424
+ travelerId: z.string(),
443
425
  role: bookingItemParticipantRoleSchema,
444
426
  isPrimary: z.boolean(),
445
427
  });
428
+ export const customerPortalBookingItemParticipantSchema = customerPortalBookingItemTravelerSchema;
446
429
  export const customerPortalBookingItemSchema = z.object({
447
430
  id: z.string(),
448
431
  title: z.string(),
@@ -457,15 +440,16 @@ export const customerPortalBookingItemSchema = z.object({
457
440
  unitSellAmountCents: z.number().int().nullable(),
458
441
  totalSellAmountCents: z.number().int().nullable(),
459
442
  notes: z.string().nullable(),
460
- participantLinks: z.array(customerPortalBookingItemParticipantSchema),
443
+ travelerLinks: z.array(customerPortalBookingItemTravelerSchema),
461
444
  });
462
- export const customerPortalBookingParticipantSchema = z.object({
445
+ export const customerPortalBookingTravelerSchema = z.object({
463
446
  id: z.string(),
464
- participantType: bookingParticipantTypeSchema,
447
+ participantType: customerPortalBookingTravelerTypeSchema,
465
448
  firstName: z.string(),
466
449
  lastName: z.string(),
467
450
  isPrimary: z.boolean(),
468
451
  });
452
+ export const customerPortalBookingParticipantSchema = customerPortalBookingTravelerSchema;
469
453
  export const customerPortalBookingBillingContactSchema = z.object({
470
454
  email: z.string().nullable(),
471
455
  phone: z.string().nullable(),
@@ -480,7 +464,7 @@ export const customerPortalBookingBillingContactSchema = z.object({
480
464
  export const customerPortalBookingDocumentSchema = z.object({
481
465
  id: z.string(),
482
466
  source: bookingDocumentSourceSchema,
483
- participantId: z.string().nullable(),
467
+ travelerId: z.string().nullable(),
484
468
  type: bookingDocumentTypeSchema,
485
469
  fileName: z.string(),
486
470
  fileUrl: z.string(),
@@ -523,7 +507,7 @@ export const customerPortalBookingFinancialsSchema = z.object({
523
507
  export const customerPortalBookingFulfillmentSchema = z.object({
524
508
  id: z.string(),
525
509
  bookingItemId: z.string().nullable(),
526
- participantId: z.string().nullable(),
510
+ travelerId: z.string().nullable(),
527
511
  fulfillmentType: bookingFulfillmentTypeSchema,
528
512
  deliveryChannel: bookingFulfillmentDeliveryChannelSchema,
529
513
  status: bookingFulfillmentStatusSchema,
@@ -541,7 +525,7 @@ export const customerPortalBookingDetailSchema = z.object({
541
525
  confirmedAt: z.string().nullable(),
542
526
  cancelledAt: z.string().nullable(),
543
527
  completedAt: z.string().nullable(),
544
- participants: z.array(customerPortalBookingParticipantSchema),
528
+ travelers: z.array(customerPortalBookingTravelerSchema),
545
529
  items: z.array(customerPortalBookingItemSchema),
546
530
  billingContact: customerPortalBookingBillingContactSchema.nullable(),
547
531
  documents: z.array(customerPortalBookingDocumentSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/customer-portal",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "drizzle-orm": "^0.45.2",
31
31
  "hono": "^4.12.10",
32
32
  "zod": "^4.3.6",
33
- "@voyantjs/bookings": "0.6.8",
34
- "@voyantjs/core": "0.6.8",
35
- "@voyantjs/crm": "0.6.8",
36
- "@voyantjs/db": "0.6.8",
37
- "@voyantjs/finance": "0.6.8",
38
- "@voyantjs/hono": "0.6.8",
39
- "@voyantjs/identity": "0.6.8",
40
- "@voyantjs/legal": "0.6.8",
41
- "@voyantjs/utils": "0.6.8"
33
+ "@voyantjs/bookings": "0.6.9",
34
+ "@voyantjs/core": "0.6.9",
35
+ "@voyantjs/finance": "0.6.9",
36
+ "@voyantjs/hono": "0.6.9",
37
+ "@voyantjs/identity": "0.6.9",
38
+ "@voyantjs/legal": "0.6.9",
39
+ "@voyantjs/utils": "0.6.9",
40
+ "@voyantjs/crm": "0.6.9",
41
+ "@voyantjs/db": "0.6.9"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^6.0.2",