@voyantjs/bookings 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.
Files changed (63) 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 +19 -10
  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 +12 -12
  28. package/dist/schema-operations.d.ts +1 -1
  29. package/dist/schema-operations.js +3 -3
  30. package/dist/schema-relations.d.ts +26 -9
  31. package/dist/schema-relations.d.ts.map +1 -1
  32. package/dist/schema-relations.js +36 -21
  33. package/dist/schema-shared.d.ts +3 -2
  34. package/dist/schema-shared.d.ts.map +1 -1
  35. package/dist/schema-shared.js +4 -5
  36. package/dist/schema-staff.d.ts +267 -0
  37. package/dist/schema-staff.d.ts.map +1 -0
  38. package/dist/schema-staff.js +31 -0
  39. package/dist/schema.d.ts +1 -0
  40. package/dist/schema.d.ts.map +1 -1
  41. package/dist/schema.js +1 -0
  42. package/dist/service-groups.d.ts +3 -7
  43. package/dist/service-groups.d.ts.map +1 -1
  44. package/dist/service-groups.js +6 -10
  45. package/dist/service-public.d.ts +49 -55
  46. package/dist/service-public.d.ts.map +1 -1
  47. package/dist/service-public.js +106 -53
  48. package/dist/service.d.ts +227 -99
  49. package/dist/service.d.ts.map +1 -1
  50. package/dist/service.js +321 -108
  51. package/dist/transactions-ref.d.ts +930 -66
  52. package/dist/transactions-ref.d.ts.map +1 -1
  53. package/dist/transactions-ref.js +56 -2
  54. package/dist/validation-public.d.ts +29 -69
  55. package/dist/validation-public.d.ts.map +1 -1
  56. package/dist/validation-public.js +21 -20
  57. package/dist/validation-shared.d.ts +4 -5
  58. package/dist/validation-shared.d.ts.map +1 -1
  59. package/dist/validation-shared.js +2 -10
  60. package/dist/validation.d.ts +229 -44
  61. package/dist/validation.d.ts.map +1 -1
  62. package/dist/validation.js +84 -28
  63. package/package.json +6 -6
package/dist/routes.d.ts CHANGED
@@ -14,6 +14,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
14
14
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
15
15
  externalBookingRef: string | null;
16
16
  communicationLanguage: string | null;
17
+ contactFirstName: string | null;
18
+ contactLastName: string | null;
19
+ contactEmail: string | null;
20
+ contactPhone: string | null;
21
+ contactPreferredLanguage: string | null;
22
+ contactCountry: string | null;
23
+ contactRegion: string | null;
24
+ contactCity: string | null;
25
+ contactAddressLine1: string | null;
26
+ contactPostalCode: string | null;
17
27
  sellCurrency: string;
18
28
  baseCurrency: string | null;
19
29
  sellAmountCents: number | null;
@@ -66,9 +76,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
66
76
  confirmedAt: string | null;
67
77
  cancelledAt: string | null;
68
78
  completedAt: string | null;
69
- participants: {
79
+ travelers: {
70
80
  id: string;
71
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
81
+ participantType: "other" | "traveler" | "occupant";
72
82
  firstName: string;
73
83
  lastName: string;
74
84
  isPrimary: boolean;
@@ -94,16 +104,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
94
104
  optionId: string | null;
95
105
  optionUnitId: string | null;
96
106
  pricingCategoryId: string | null;
97
- participantLinks: {
107
+ travelerLinks: {
98
108
  id: string;
99
- participantId: string;
109
+ travelerId: string;
100
110
  role: string;
101
111
  isPrimary: boolean;
102
112
  }[];
103
113
  }[];
104
114
  documents: {
105
115
  id: string;
106
- participantId: string | null;
116
+ travelerId: string | null;
107
117
  type: "visa" | "other" | "insurance" | "health" | "passport_copy";
108
118
  fileName: string;
109
119
  fileUrl: string;
@@ -111,7 +121,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
111
121
  fulfillments: {
112
122
  id: string;
113
123
  bookingItemId: string | null;
114
- participantId: string | null;
124
+ travelerId: string | null;
115
125
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
116
126
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
117
127
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -152,6 +162,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
152
162
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
153
163
  externalBookingRef: string | null;
154
164
  communicationLanguage: string | null;
165
+ contactFirstName: string | null;
166
+ contactLastName: string | null;
167
+ contactEmail: string | null;
168
+ contactPhone: string | null;
169
+ contactPreferredLanguage: string | null;
170
+ contactCountry: string | null;
171
+ contactRegion: string | null;
172
+ contactCity: string | null;
173
+ contactAddressLine1: string | null;
174
+ contactPostalCode: string | null;
155
175
  sellCurrency: string;
156
176
  baseCurrency: string | null;
157
177
  sellAmountCents: number | null;
@@ -188,6 +208,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
188
208
  createdAt: string;
189
209
  updatedAt: string;
190
210
  organizationId: string | null;
211
+ redeemedAt: string | null;
191
212
  startDate: string | null;
192
213
  endDate: string | null;
193
214
  bookingNumber: string;
@@ -195,6 +216,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
195
216
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
196
217
  externalBookingRef: string | null;
197
218
  communicationLanguage: string | null;
219
+ contactFirstName: string | null;
220
+ contactLastName: string | null;
221
+ contactEmail: string | null;
222
+ contactPhone: string | null;
223
+ contactPreferredLanguage: string | null;
224
+ contactCountry: string | null;
225
+ contactRegion: string | null;
226
+ contactCity: string | null;
227
+ contactAddressLine1: string | null;
228
+ contactPostalCode: string | null;
198
229
  sellCurrency: string;
199
230
  baseCurrency: string | null;
200
231
  sellAmountCents: number | null;
@@ -209,7 +240,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
209
240
  expiredAt: string | null;
210
241
  cancelledAt: string | null;
211
242
  completedAt: string | null;
212
- redeemedAt: string | null;
213
243
  };
214
244
  };
215
245
  outputFormat: "json";
@@ -255,6 +285,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
255
285
  createdAt: string;
256
286
  updatedAt: string;
257
287
  organizationId: string | null;
288
+ redeemedAt: string | null;
258
289
  startDate: string | null;
259
290
  endDate: string | null;
260
291
  bookingNumber: string;
@@ -262,6 +293,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
262
293
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
263
294
  externalBookingRef: string | null;
264
295
  communicationLanguage: string | null;
296
+ contactFirstName: string | null;
297
+ contactLastName: string | null;
298
+ contactEmail: string | null;
299
+ contactPhone: string | null;
300
+ contactPreferredLanguage: string | null;
301
+ contactCountry: string | null;
302
+ contactRegion: string | null;
303
+ contactCity: string | null;
304
+ contactAddressLine1: string | null;
305
+ contactPostalCode: string | null;
265
306
  sellCurrency: string;
266
307
  baseCurrency: string | null;
267
308
  sellAmountCents: number | null;
@@ -276,7 +317,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
276
317
  expiredAt: string | null;
277
318
  cancelledAt: string | null;
278
319
  completedAt: string | null;
279
- redeemedAt: string | null;
280
320
  };
281
321
  };
282
322
  outputFormat: "json";
@@ -390,6 +430,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
390
430
  createdAt: string;
391
431
  updatedAt: string;
392
432
  organizationId: string | null;
433
+ redeemedAt: string | null;
393
434
  startDate: string | null;
394
435
  endDate: string | null;
395
436
  bookingNumber: string;
@@ -397,6 +438,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
397
438
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
398
439
  externalBookingRef: string | null;
399
440
  communicationLanguage: string | null;
441
+ contactFirstName: string | null;
442
+ contactLastName: string | null;
443
+ contactEmail: string | null;
444
+ contactPhone: string | null;
445
+ contactPreferredLanguage: string | null;
446
+ contactCountry: string | null;
447
+ contactRegion: string | null;
448
+ contactCity: string | null;
449
+ contactAddressLine1: string | null;
450
+ contactPostalCode: string | null;
400
451
  sellCurrency: string;
401
452
  baseCurrency: string | null;
402
453
  sellAmountCents: number | null;
@@ -411,7 +462,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
411
462
  expiredAt: string | null;
412
463
  cancelledAt: string | null;
413
464
  completedAt: string | null;
414
- redeemedAt: string | null;
415
465
  } | null;
416
466
  };
417
467
  outputFormat: "json";
@@ -455,6 +505,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
455
505
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
456
506
  externalBookingRef: string | null;
457
507
  communicationLanguage: string | null;
508
+ contactFirstName: string | null;
509
+ contactLastName: string | null;
510
+ contactEmail: string | null;
511
+ contactPhone: string | null;
512
+ contactPreferredLanguage: string | null;
513
+ contactCountry: string | null;
514
+ contactRegion: string | null;
515
+ contactCity: string | null;
516
+ contactAddressLine1: string | null;
517
+ contactPostalCode: string | null;
458
518
  sellCurrency: string;
459
519
  baseCurrency: string | null;
460
520
  sellAmountCents: number | null;
@@ -594,6 +654,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
594
654
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
595
655
  externalBookingRef: string | null;
596
656
  communicationLanguage: string | null;
657
+ contactFirstName: string | null;
658
+ contactLastName: string | null;
659
+ contactEmail: string | null;
660
+ contactPhone: string | null;
661
+ contactPreferredLanguage: string | null;
662
+ contactCountry: string | null;
663
+ contactRegion: string | null;
664
+ contactCity: string | null;
665
+ contactAddressLine1: string | null;
666
+ contactPostalCode: string | null;
597
667
  sellCurrency: string;
598
668
  baseCurrency: string | null;
599
669
  sellAmountCents: number | null;
@@ -670,6 +740,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
670
740
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
671
741
  externalBookingRef: string | null;
672
742
  communicationLanguage: string | null;
743
+ contactFirstName: string | null;
744
+ contactLastName: string | null;
745
+ contactEmail: string | null;
746
+ contactPhone: string | null;
747
+ contactPreferredLanguage: string | null;
748
+ contactCountry: string | null;
749
+ contactRegion: string | null;
750
+ contactCity: string | null;
751
+ contactAddressLine1: string | null;
752
+ contactPostalCode: string | null;
673
753
  sellCurrency: string;
674
754
  baseCurrency: string | null;
675
755
  sellAmountCents: number | null;
@@ -746,6 +826,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
746
826
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
747
827
  externalBookingRef: string | null;
748
828
  communicationLanguage: string | null;
829
+ contactFirstName: string | null;
830
+ contactLastName: string | null;
831
+ contactEmail: string | null;
832
+ contactPhone: string | null;
833
+ contactPreferredLanguage: string | null;
834
+ contactCountry: string | null;
835
+ contactRegion: string | null;
836
+ contactCity: string | null;
837
+ contactAddressLine1: string | null;
838
+ contactPostalCode: string | null;
749
839
  sellCurrency: string;
750
840
  baseCurrency: string | null;
751
841
  sellAmountCents: number | null;
@@ -835,6 +925,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
835
925
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
836
926
  externalBookingRef: string | null;
837
927
  communicationLanguage: string | null;
928
+ contactFirstName: string | null;
929
+ contactLastName: string | null;
930
+ contactEmail: string | null;
931
+ contactPhone: string | null;
932
+ contactPreferredLanguage: string | null;
933
+ contactCountry: string | null;
934
+ contactRegion: string | null;
935
+ contactCity: string | null;
936
+ contactAddressLine1: string | null;
937
+ contactPostalCode: string | null;
838
938
  sellCurrency: string;
839
939
  baseCurrency: string | null;
840
940
  sellAmountCents: number | null;
@@ -907,7 +1007,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
907
1007
  };
908
1008
  };
909
1009
  } & {
910
- "/:id/participants": {
1010
+ "/:id/travelers": {
911
1011
  $get: {
912
1012
  input: {
913
1013
  param: {
@@ -918,8 +1018,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
918
1018
  data: {
919
1019
  id: string;
920
1020
  bookingId: string;
921
- personId: string | null;
922
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1021
+ participantType: "other" | "traveler" | "occupant";
923
1022
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
924
1023
  firstName: string;
925
1024
  lastName: string;
@@ -939,13 +1038,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
939
1038
  };
940
1039
  };
941
1040
  } & {
942
- "/:id/participants/:participantId/travel-details": {
1041
+ "/:id/travelers/:travelerId/travel-details": {
943
1042
  $get: {
944
1043
  input: {
945
1044
  param: {
946
1045
  id: string;
947
1046
  } & {
948
- participantId: string;
1047
+ travelerId: string;
949
1048
  };
950
1049
  };
951
1050
  output: {};
@@ -954,7 +1053,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
954
1053
  };
955
1054
  };
956
1055
  } & {
957
- "/:id/participants": {
1056
+ "/:id/travelers": {
958
1057
  $post: {
959
1058
  input: {
960
1059
  param: {
@@ -975,21 +1074,20 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
975
1074
  output: {
976
1075
  data: {
977
1076
  id: string;
978
- notes: string | null;
979
- createdAt: string;
980
- updatedAt: string;
981
- email: string | null;
982
- firstName: string;
983
- lastName: string;
984
- personId: string | null;
985
1077
  bookingId: string;
986
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1078
+ participantType: "other" | "traveler" | "occupant";
987
1079
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1080
+ firstName: string;
1081
+ lastName: string;
1082
+ email: string | null;
988
1083
  phone: string | null;
989
1084
  preferredLanguage: string | null;
990
1085
  accessibilityNeeds: string | null;
991
1086
  specialRequests: string | null;
992
1087
  isPrimary: boolean;
1088
+ notes: string | null;
1089
+ createdAt: string;
1090
+ updatedAt: string;
993
1091
  };
994
1092
  };
995
1093
  outputFormat: "json";
@@ -997,13 +1095,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
997
1095
  };
998
1096
  };
999
1097
  } & {
1000
- "/:id/participants/:participantId/travel-details": {
1098
+ "/:id/travelers/:travelerId/travel-details": {
1001
1099
  $patch: {
1002
1100
  input: {
1003
1101
  param: {
1004
1102
  id: string;
1005
1103
  } & {
1006
- participantId: string;
1104
+ travelerId: string;
1007
1105
  };
1008
1106
  };
1009
1107
  output: {};
@@ -1012,13 +1110,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1012
1110
  };
1013
1111
  };
1014
1112
  } & {
1015
- "/:id/participants/:participantId": {
1113
+ "/:id/travelers/:travelerId": {
1016
1114
  $patch: {
1017
1115
  input: {
1018
1116
  param: {
1019
1117
  id: string;
1020
1118
  } & {
1021
- participantId: string;
1119
+ travelerId: string;
1022
1120
  };
1023
1121
  };
1024
1122
  output: {
@@ -1031,15 +1129,14 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1031
1129
  param: {
1032
1130
  id: string;
1033
1131
  } & {
1034
- participantId: string;
1132
+ travelerId: string;
1035
1133
  };
1036
1134
  };
1037
1135
  output: {
1038
1136
  data: {
1039
1137
  id: string;
1040
1138
  bookingId: string;
1041
- personId: string | null;
1042
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1139
+ participantType: "other" | "traveler" | "occupant";
1043
1140
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1044
1141
  firstName: string;
1045
1142
  lastName: string;
@@ -1059,13 +1156,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1059
1156
  };
1060
1157
  };
1061
1158
  } & {
1062
- "/:id/participants/:participantId/travel-details": {
1159
+ "/:id/travelers/:travelerId/travel-details": {
1063
1160
  $delete: {
1064
1161
  input: {
1065
1162
  param: {
1066
1163
  id: string;
1067
1164
  } & {
1068
- participantId: string;
1165
+ travelerId: string;
1069
1166
  };
1070
1167
  };
1071
1168
  output: {};
@@ -1074,13 +1171,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1074
1171
  };
1075
1172
  };
1076
1173
  } & {
1077
- "/:id/participants/:participantId": {
1174
+ "/:id/travelers/:travelerId": {
1078
1175
  $delete: {
1079
1176
  input: {
1080
1177
  param: {
1081
1178
  id: string;
1082
1179
  } & {
1083
- participantId: string;
1180
+ travelerId: string;
1084
1181
  };
1085
1182
  };
1086
1183
  output: {
@@ -1093,141 +1190,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1093
1190
  param: {
1094
1191
  id: string;
1095
1192
  } & {
1096
- participantId: string;
1097
- };
1098
- };
1099
- output: {
1100
- success: true;
1101
- };
1102
- outputFormat: "json";
1103
- status: 200;
1104
- };
1105
- };
1106
- } & {
1107
- "/:id/passengers": {
1108
- $get: {
1109
- input: {
1110
- param: {
1111
- id: string;
1112
- };
1113
- };
1114
- output: {
1115
- data: {
1116
- id: string;
1117
- bookingId: string;
1118
- firstName: string;
1119
- lastName: string;
1120
- email: string | null;
1121
- phone: string | null;
1122
- specialRequests: string | null;
1123
- isLeadPassenger: boolean;
1124
- createdAt: string;
1125
- updatedAt: string;
1126
- }[];
1127
- };
1128
- outputFormat: "json";
1129
- status: import("hono/utils/http-status").ContentfulStatusCode;
1130
- };
1131
- };
1132
- } & {
1133
- "/:id/passengers": {
1134
- $post: {
1135
- input: {
1136
- param: {
1137
- id: string;
1138
- };
1139
- };
1140
- output: {
1141
- error: string;
1142
- };
1143
- outputFormat: "json";
1144
- status: 404;
1145
- } | {
1146
- input: {
1147
- param: {
1148
- id: string;
1149
- };
1150
- };
1151
- output: {
1152
- data: {
1153
- id: string;
1154
- bookingId: string;
1155
- firstName: string;
1156
- lastName: string;
1157
- email: string | null;
1158
- phone: string | null;
1159
- specialRequests: string | null;
1160
- isLeadPassenger: boolean;
1161
- createdAt: string;
1162
- updatedAt: string;
1163
- };
1164
- };
1165
- outputFormat: "json";
1166
- status: 201;
1167
- };
1168
- };
1169
- } & {
1170
- "/:id/passengers/:passengerId": {
1171
- $patch: {
1172
- input: {
1173
- param: {
1174
- id: string;
1175
- } & {
1176
- passengerId: string;
1177
- };
1178
- };
1179
- output: {
1180
- error: string;
1181
- };
1182
- outputFormat: "json";
1183
- status: 404;
1184
- } | {
1185
- input: {
1186
- param: {
1187
- id: string;
1188
- } & {
1189
- passengerId: string;
1190
- };
1191
- };
1192
- output: {
1193
- data: {
1194
- id: string;
1195
- bookingId: string;
1196
- firstName: string;
1197
- lastName: string;
1198
- email: string | null;
1199
- phone: string | null;
1200
- specialRequests: string | null;
1201
- isLeadPassenger: boolean;
1202
- createdAt: string;
1203
- updatedAt: string;
1204
- };
1205
- };
1206
- outputFormat: "json";
1207
- status: import("hono/utils/http-status").ContentfulStatusCode;
1208
- };
1209
- };
1210
- } & {
1211
- "/:id/passengers/:passengerId": {
1212
- $delete: {
1213
- input: {
1214
- param: {
1215
- id: string;
1216
- } & {
1217
- passengerId: string;
1218
- };
1219
- };
1220
- output: {
1221
- error: string;
1222
- };
1223
- outputFormat: "json";
1224
- status: 404;
1225
- } | {
1226
- input: {
1227
- param: {
1228
- id: string;
1229
- } & {
1230
- passengerId: string;
1193
+ travelerId: string;
1231
1194
  };
1232
1195
  };
1233
1196
  output: {
@@ -1426,7 +1389,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1426
1389
  };
1427
1390
  };
1428
1391
  } & {
1429
- "/:id/items/:itemId/participants": {
1392
+ "/:id/items/:itemId/travelers": {
1430
1393
  $get: {
1431
1394
  input: {
1432
1395
  param: {
@@ -1439,8 +1402,8 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1439
1402
  data: {
1440
1403
  id: string;
1441
1404
  bookingItemId: string;
1442
- participantId: string;
1443
- role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
1405
+ travelerId: string;
1406
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1444
1407
  isPrimary: boolean;
1445
1408
  createdAt: string;
1446
1409
  }[];
@@ -1450,7 +1413,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1450
1413
  };
1451
1414
  };
1452
1415
  } & {
1453
- "/:id/items/:itemId/participants": {
1416
+ "/:id/items/:itemId/travelers": {
1454
1417
  $post: {
1455
1418
  input: {
1456
1419
  param: {
@@ -1476,9 +1439,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1476
1439
  data: {
1477
1440
  id: string;
1478
1441
  createdAt: string;
1479
- role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
1442
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1480
1443
  isPrimary: boolean;
1481
- participantId: string;
1444
+ travelerId: string;
1482
1445
  bookingItemId: string;
1483
1446
  };
1484
1447
  };
@@ -1487,7 +1450,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1487
1450
  };
1488
1451
  };
1489
1452
  } & {
1490
- "/:id/items/:itemId/participants/:linkId": {
1453
+ "/:id/items/:itemId/travelers/:linkId": {
1491
1454
  $delete: {
1492
1455
  input: {
1493
1456
  param: {
@@ -1643,7 +1606,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1643
1606
  id: string;
1644
1607
  bookingId: string;
1645
1608
  bookingItemId: string | null;
1646
- participantId: string | null;
1609
+ travelerId: string | null;
1647
1610
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1648
1611
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1649
1612
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1687,7 +1650,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1687
1650
  createdAt: string;
1688
1651
  updatedAt: string;
1689
1652
  bookingId: string;
1690
- participantId: string | null;
1653
+ travelerId: string | null;
1691
1654
  bookingItemId: string | null;
1692
1655
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1693
1656
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
@@ -1731,7 +1694,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1731
1694
  id: string;
1732
1695
  bookingId: string;
1733
1696
  bookingItemId: string | null;
1734
- participantId: string | null;
1697
+ travelerId: string | null;
1735
1698
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1736
1699
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1737
1700
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1762,7 +1725,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1762
1725
  id: string;
1763
1726
  bookingId: string;
1764
1727
  bookingItemId: string | null;
1765
- participantId: string | null;
1728
+ travelerId: string | null;
1766
1729
  redeemedAt: string;
1767
1730
  redeemedBy: string | null;
1768
1731
  location: string | null;
@@ -1806,7 +1769,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1806
1769
  method: "other" | "manual" | "api" | "scan";
1807
1770
  redeemedAt: string;
1808
1771
  bookingId: string;
1809
- participantId: string | null;
1772
+ travelerId: string | null;
1810
1773
  bookingItemId: string | null;
1811
1774
  redeemedBy: string | null;
1812
1775
  location: string | null;
@@ -1928,6 +1891,36 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1928
1891
  status: 201;
1929
1892
  };
1930
1893
  };
1894
+ } & {
1895
+ "/:id/notes/:noteId": {
1896
+ $delete: {
1897
+ input: {
1898
+ param: {
1899
+ id: string;
1900
+ } & {
1901
+ noteId: string;
1902
+ };
1903
+ };
1904
+ output: {
1905
+ error: string;
1906
+ };
1907
+ outputFormat: "json";
1908
+ status: 404;
1909
+ } | {
1910
+ input: {
1911
+ param: {
1912
+ id: string;
1913
+ } & {
1914
+ noteId: string;
1915
+ };
1916
+ };
1917
+ output: {
1918
+ success: true;
1919
+ };
1920
+ outputFormat: "json";
1921
+ status: 200;
1922
+ };
1923
+ };
1931
1924
  } & {
1932
1925
  "/:id/documents": {
1933
1926
  $get: {
@@ -1940,7 +1933,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1940
1933
  data: {
1941
1934
  id: string;
1942
1935
  bookingId: string;
1943
- participantId: string | null;
1936
+ travelerId: string | null;
1944
1937
  type: "visa" | "other" | "insurance" | "health" | "passport_copy";
1945
1938
  fileName: string;
1946
1939
  fileUrl: string;
@@ -1980,7 +1973,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1980
1973
  createdAt: string;
1981
1974
  expiresAt: string | null;
1982
1975
  bookingId: string;
1983
- participantId: string | null;
1976
+ travelerId: string | null;
1984
1977
  fileName: string;
1985
1978
  fileUrl: string;
1986
1979
  };
@@ -2101,6 +2094,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2101
2094
  createdAt: string;
2102
2095
  updatedAt: string;
2103
2096
  organizationId: string | null;
2097
+ redeemedAt: string | null;
2104
2098
  startDate: string | null;
2105
2099
  endDate: string | null;
2106
2100
  bookingNumber: string;
@@ -2108,6 +2102,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2108
2102
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
2109
2103
  externalBookingRef: string | null;
2110
2104
  communicationLanguage: string | null;
2105
+ contactFirstName: string | null;
2106
+ contactLastName: string | null;
2107
+ contactEmail: string | null;
2108
+ contactPhone: string | null;
2109
+ contactPreferredLanguage: string | null;
2110
+ contactCountry: string | null;
2111
+ contactRegion: string | null;
2112
+ contactCity: string | null;
2113
+ contactAddressLine1: string | null;
2114
+ contactPostalCode: string | null;
2111
2115
  sellCurrency: string;
2112
2116
  baseCurrency: string | null;
2113
2117
  sellAmountCents: number | null;
@@ -2122,7 +2126,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2122
2126
  expiredAt: string | null;
2123
2127
  cancelledAt: string | null;
2124
2128
  completedAt: string | null;
2125
- redeemedAt: string | null;
2126
2129
  } | null;
2127
2130
  }[];
2128
2131
  id: string;
@@ -2227,6 +2230,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2227
2230
  createdAt: string;
2228
2231
  updatedAt: string;
2229
2232
  organizationId: string | null;
2233
+ redeemedAt: string | null;
2230
2234
  startDate: string | null;
2231
2235
  endDate: string | null;
2232
2236
  bookingNumber: string;
@@ -2234,6 +2238,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2234
2238
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
2235
2239
  externalBookingRef: string | null;
2236
2240
  communicationLanguage: string | null;
2241
+ contactFirstName: string | null;
2242
+ contactLastName: string | null;
2243
+ contactEmail: string | null;
2244
+ contactPhone: string | null;
2245
+ contactPreferredLanguage: string | null;
2246
+ contactCountry: string | null;
2247
+ contactRegion: string | null;
2248
+ contactCity: string | null;
2249
+ contactAddressLine1: string | null;
2250
+ contactPostalCode: string | null;
2237
2251
  sellCurrency: string;
2238
2252
  baseCurrency: string | null;
2239
2253
  sellAmountCents: number | null;
@@ -2248,7 +2262,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2248
2262
  expiredAt: string | null;
2249
2263
  cancelledAt: string | null;
2250
2264
  completedAt: string | null;
2251
- redeemedAt: string | null;
2252
2265
  } | null;
2253
2266
  }[];
2254
2267
  };
@@ -2331,7 +2344,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2331
2344
  };
2332
2345
  };
2333
2346
  } & {
2334
- "/:id/passengers": {
2347
+ "/:id/travelers": {
2335
2348
  $get: {
2336
2349
  input: {
2337
2350
  param: {
@@ -2349,7 +2362,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2349
2362
  lastName: string;
2350
2363
  personId: string | null;
2351
2364
  bookingId: string;
2352
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
2365
+ participantType: "other" | "traveler" | "occupant";
2353
2366
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
2354
2367
  phone: string | null;
2355
2368
  preferredLanguage: string | null;