@voyantjs/bookings 0.6.8 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +2 -2
  2. package/dist/index.d.ts +8 -8
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -5
  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/products-ref.d.ts +93 -1
  9. package/dist/products-ref.d.ts.map +1 -1
  10. package/dist/products-ref.js +12 -1
  11. package/dist/routes-groups.d.ts +25 -5
  12. package/dist/routes-groups.d.ts.map +1 -1
  13. package/dist/routes-groups.js +3 -3
  14. package/dist/routes-public.d.ts +19 -21
  15. package/dist/routes-public.d.ts.map +1 -1
  16. package/dist/routes-public.js +1 -1
  17. package/dist/routes-shared.d.ts +3 -2
  18. package/dist/routes-shared.d.ts.map +1 -1
  19. package/dist/routes.d.ts +283 -188
  20. package/dist/routes.d.ts.map +1 -1
  21. package/dist/routes.js +89 -102
  22. package/dist/schema/travel-details.d.ts +27 -27
  23. package/dist/schema/travel-details.d.ts.map +1 -1
  24. package/dist/schema/travel-details.js +19 -14
  25. package/dist/schema-core.d.ts +194 -305
  26. package/dist/schema-core.d.ts.map +1 -1
  27. package/dist/schema-core.js +19 -10
  28. package/dist/schema-items.d.ts +15 -15
  29. package/dist/schema-items.d.ts.map +1 -1
  30. package/dist/schema-items.js +12 -12
  31. package/dist/schema-operations.d.ts +1 -1
  32. package/dist/schema-operations.js +3 -3
  33. package/dist/schema-relations.d.ts +26 -9
  34. package/dist/schema-relations.d.ts.map +1 -1
  35. package/dist/schema-relations.js +36 -21
  36. package/dist/schema-shared.d.ts +3 -2
  37. package/dist/schema-shared.d.ts.map +1 -1
  38. package/dist/schema-shared.js +4 -5
  39. package/dist/schema-staff.d.ts +267 -0
  40. package/dist/schema-staff.d.ts.map +1 -0
  41. package/dist/schema-staff.js +31 -0
  42. package/dist/schema.d.ts +1 -0
  43. package/dist/schema.d.ts.map +1 -1
  44. package/dist/schema.js +1 -0
  45. package/dist/service-groups.d.ts +3 -7
  46. package/dist/service-groups.d.ts.map +1 -1
  47. package/dist/service-groups.js +6 -10
  48. package/dist/service-public.d.ts +102 -55
  49. package/dist/service-public.d.ts.map +1 -1
  50. package/dist/service-public.js +119 -54
  51. package/dist/service.d.ts +327 -104
  52. package/dist/service.d.ts.map +1 -1
  53. package/dist/service.js +530 -130
  54. package/dist/transactions-ref.d.ts +930 -66
  55. package/dist/transactions-ref.d.ts.map +1 -1
  56. package/dist/transactions-ref.js +56 -2
  57. package/dist/validation-public.d.ts +29 -69
  58. package/dist/validation-public.d.ts.map +1 -1
  59. package/dist/validation-public.js +21 -20
  60. package/dist/validation-shared.d.ts +4 -5
  61. package/dist/validation-shared.d.ts.map +1 -1
  62. package/dist/validation-shared.js +2 -10
  63. package/dist/validation.d.ts +248 -44
  64. package/dist/validation.d.ts.map +1 -1
  65. package/dist/validation.js +103 -28
  66. 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;
@@ -42,6 +52,88 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
42
52
  status: import("hono/utils/http-status").ContentfulStatusCode;
43
53
  };
44
54
  };
55
+ } & {
56
+ "/pricing-preview": {
57
+ $post: {
58
+ input: {};
59
+ output: {
60
+ error: string;
61
+ };
62
+ outputFormat: "json";
63
+ status: 404;
64
+ } | {
65
+ input: {};
66
+ output: {
67
+ data: {
68
+ catalog: {
69
+ id: string;
70
+ currencyCode: string | null;
71
+ };
72
+ options: {
73
+ id: string;
74
+ name: string;
75
+ isDefault: boolean;
76
+ }[];
77
+ rules: {
78
+ id: string;
79
+ optionId: string;
80
+ pricingMode: string;
81
+ baseSellAmountCents: number | null;
82
+ isDefault: boolean;
83
+ }[];
84
+ unitPrices: {
85
+ tiers: {
86
+ id: string;
87
+ optionUnitPriceRuleId: string;
88
+ minQuantity: number;
89
+ maxQuantity: number | null;
90
+ sellAmountCents: number | null;
91
+ sortOrder: number;
92
+ }[];
93
+ id: string;
94
+ optionPriceRuleId: string;
95
+ unitId: string;
96
+ unitName: string;
97
+ unitType: string | null;
98
+ pricingCategoryId: string | null;
99
+ pricingMode: string;
100
+ sellAmountCents: number | null;
101
+ minQuantity: number | null;
102
+ maxQuantity: number | null;
103
+ }[];
104
+ };
105
+ };
106
+ outputFormat: "json";
107
+ status: import("hono/utils/http-status").ContentfulStatusCode;
108
+ };
109
+ };
110
+ } & {
111
+ "/aggregates": {
112
+ $get: {
113
+ input: {};
114
+ output: {
115
+ data: {
116
+ total: number;
117
+ countsByStatus: {
118
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
119
+ count: number;
120
+ }[];
121
+ monthlyCounts: {
122
+ yearMonth: string;
123
+ count: number;
124
+ }[];
125
+ monthlyRevenue: {
126
+ yearMonth: string;
127
+ currency: string;
128
+ sellAmountCents: number;
129
+ }[];
130
+ upcomingDepartures: number;
131
+ };
132
+ };
133
+ outputFormat: "json";
134
+ status: import("hono/utils/http-status").ContentfulStatusCode;
135
+ };
136
+ };
45
137
  } & {
46
138
  "/overview": {
47
139
  $get: {
@@ -66,9 +158,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
66
158
  confirmedAt: string | null;
67
159
  cancelledAt: string | null;
68
160
  completedAt: string | null;
69
- participants: {
161
+ travelers: {
70
162
  id: string;
71
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
163
+ participantType: "other" | "traveler" | "occupant";
72
164
  firstName: string;
73
165
  lastName: string;
74
166
  isPrimary: boolean;
@@ -94,16 +186,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
94
186
  optionId: string | null;
95
187
  optionUnitId: string | null;
96
188
  pricingCategoryId: string | null;
97
- participantLinks: {
189
+ travelerLinks: {
98
190
  id: string;
99
- participantId: string;
191
+ travelerId: string;
100
192
  role: string;
101
193
  isPrimary: boolean;
102
194
  }[];
103
195
  }[];
104
196
  documents: {
105
197
  id: string;
106
- participantId: string | null;
198
+ travelerId: string | null;
107
199
  type: "visa" | "other" | "insurance" | "health" | "passport_copy";
108
200
  fileName: string;
109
201
  fileUrl: string;
@@ -111,7 +203,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
111
203
  fulfillments: {
112
204
  id: string;
113
205
  bookingItemId: string | null;
114
- participantId: string | null;
206
+ travelerId: string | null;
115
207
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
116
208
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
117
209
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -152,6 +244,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
152
244
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
153
245
  externalBookingRef: string | null;
154
246
  communicationLanguage: string | null;
247
+ contactFirstName: string | null;
248
+ contactLastName: string | null;
249
+ contactEmail: string | null;
250
+ contactPhone: string | null;
251
+ contactPreferredLanguage: string | null;
252
+ contactCountry: string | null;
253
+ contactRegion: string | null;
254
+ contactCity: string | null;
255
+ contactAddressLine1: string | null;
256
+ contactPostalCode: string | null;
155
257
  sellCurrency: string;
156
258
  baseCurrency: string | null;
157
259
  sellAmountCents: number | null;
@@ -188,6 +290,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
188
290
  createdAt: string;
189
291
  updatedAt: string;
190
292
  organizationId: string | null;
293
+ redeemedAt: string | null;
191
294
  startDate: string | null;
192
295
  endDate: string | null;
193
296
  bookingNumber: string;
@@ -195,6 +298,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
195
298
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
196
299
  externalBookingRef: string | null;
197
300
  communicationLanguage: string | null;
301
+ contactFirstName: string | null;
302
+ contactLastName: string | null;
303
+ contactEmail: string | null;
304
+ contactPhone: string | null;
305
+ contactPreferredLanguage: string | null;
306
+ contactCountry: string | null;
307
+ contactRegion: string | null;
308
+ contactCity: string | null;
309
+ contactAddressLine1: string | null;
310
+ contactPostalCode: string | null;
198
311
  sellCurrency: string;
199
312
  baseCurrency: string | null;
200
313
  sellAmountCents: number | null;
@@ -209,7 +322,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
209
322
  expiredAt: string | null;
210
323
  cancelledAt: string | null;
211
324
  completedAt: string | null;
212
- redeemedAt: string | null;
213
325
  };
214
326
  };
215
327
  outputFormat: "json";
@@ -255,6 +367,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
255
367
  createdAt: string;
256
368
  updatedAt: string;
257
369
  organizationId: string | null;
370
+ redeemedAt: string | null;
258
371
  startDate: string | null;
259
372
  endDate: string | null;
260
373
  bookingNumber: string;
@@ -262,6 +375,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
262
375
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
263
376
  externalBookingRef: string | null;
264
377
  communicationLanguage: string | null;
378
+ contactFirstName: string | null;
379
+ contactLastName: string | null;
380
+ contactEmail: string | null;
381
+ contactPhone: string | null;
382
+ contactPreferredLanguage: string | null;
383
+ contactCountry: string | null;
384
+ contactRegion: string | null;
385
+ contactCity: string | null;
386
+ contactAddressLine1: string | null;
387
+ contactPostalCode: string | null;
265
388
  sellCurrency: string;
266
389
  baseCurrency: string | null;
267
390
  sellAmountCents: number | null;
@@ -276,7 +399,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
276
399
  expiredAt: string | null;
277
400
  cancelledAt: string | null;
278
401
  completedAt: string | null;
279
- redeemedAt: string | null;
280
402
  };
281
403
  };
282
404
  outputFormat: "json";
@@ -390,6 +512,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
390
512
  createdAt: string;
391
513
  updatedAt: string;
392
514
  organizationId: string | null;
515
+ redeemedAt: string | null;
393
516
  startDate: string | null;
394
517
  endDate: string | null;
395
518
  bookingNumber: string;
@@ -397,6 +520,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
397
520
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
398
521
  externalBookingRef: string | null;
399
522
  communicationLanguage: string | null;
523
+ contactFirstName: string | null;
524
+ contactLastName: string | null;
525
+ contactEmail: string | null;
526
+ contactPhone: string | null;
527
+ contactPreferredLanguage: string | null;
528
+ contactCountry: string | null;
529
+ contactRegion: string | null;
530
+ contactCity: string | null;
531
+ contactAddressLine1: string | null;
532
+ contactPostalCode: string | null;
400
533
  sellCurrency: string;
401
534
  baseCurrency: string | null;
402
535
  sellAmountCents: number | null;
@@ -411,7 +544,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
411
544
  expiredAt: string | null;
412
545
  cancelledAt: string | null;
413
546
  completedAt: string | null;
414
- redeemedAt: string | null;
415
547
  } | null;
416
548
  };
417
549
  outputFormat: "json";
@@ -455,6 +587,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
455
587
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
456
588
  externalBookingRef: string | null;
457
589
  communicationLanguage: string | null;
590
+ contactFirstName: string | null;
591
+ contactLastName: string | null;
592
+ contactEmail: string | null;
593
+ contactPhone: string | null;
594
+ contactPreferredLanguage: string | null;
595
+ contactCountry: string | null;
596
+ contactRegion: string | null;
597
+ contactCity: string | null;
598
+ contactAddressLine1: string | null;
599
+ contactPostalCode: string | null;
458
600
  sellCurrency: string;
459
601
  baseCurrency: string | null;
460
602
  sellAmountCents: number | null;
@@ -594,6 +736,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
594
736
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
595
737
  externalBookingRef: string | null;
596
738
  communicationLanguage: string | null;
739
+ contactFirstName: string | null;
740
+ contactLastName: string | null;
741
+ contactEmail: string | null;
742
+ contactPhone: string | null;
743
+ contactPreferredLanguage: string | null;
744
+ contactCountry: string | null;
745
+ contactRegion: string | null;
746
+ contactCity: string | null;
747
+ contactAddressLine1: string | null;
748
+ contactPostalCode: string | null;
597
749
  sellCurrency: string;
598
750
  baseCurrency: string | null;
599
751
  sellAmountCents: number | null;
@@ -670,6 +822,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
670
822
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
671
823
  externalBookingRef: string | null;
672
824
  communicationLanguage: string | null;
825
+ contactFirstName: string | null;
826
+ contactLastName: string | null;
827
+ contactEmail: string | null;
828
+ contactPhone: string | null;
829
+ contactPreferredLanguage: string | null;
830
+ contactCountry: string | null;
831
+ contactRegion: string | null;
832
+ contactCity: string | null;
833
+ contactAddressLine1: string | null;
834
+ contactPostalCode: string | null;
673
835
  sellCurrency: string;
674
836
  baseCurrency: string | null;
675
837
  sellAmountCents: number | null;
@@ -746,6 +908,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
746
908
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
747
909
  externalBookingRef: string | null;
748
910
  communicationLanguage: string | null;
911
+ contactFirstName: string | null;
912
+ contactLastName: string | null;
913
+ contactEmail: string | null;
914
+ contactPhone: string | null;
915
+ contactPreferredLanguage: string | null;
916
+ contactCountry: string | null;
917
+ contactRegion: string | null;
918
+ contactCity: string | null;
919
+ contactAddressLine1: string | null;
920
+ contactPostalCode: string | null;
749
921
  sellCurrency: string;
750
922
  baseCurrency: string | null;
751
923
  sellAmountCents: number | null;
@@ -835,6 +1007,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
835
1007
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
836
1008
  externalBookingRef: string | null;
837
1009
  communicationLanguage: string | null;
1010
+ contactFirstName: string | null;
1011
+ contactLastName: string | null;
1012
+ contactEmail: string | null;
1013
+ contactPhone: string | null;
1014
+ contactPreferredLanguage: string | null;
1015
+ contactCountry: string | null;
1016
+ contactRegion: string | null;
1017
+ contactCity: string | null;
1018
+ contactAddressLine1: string | null;
1019
+ contactPostalCode: string | null;
838
1020
  sellCurrency: string;
839
1021
  baseCurrency: string | null;
840
1022
  sellAmountCents: number | null;
@@ -854,7 +1036,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
854
1036
  redeemedAt: string | null;
855
1037
  createdAt: string;
856
1038
  updatedAt: string;
857
- } | null;
1039
+ } | null | undefined;
858
1040
  };
859
1041
  outputFormat: "json";
860
1042
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -907,7 +1089,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
907
1089
  };
908
1090
  };
909
1091
  } & {
910
- "/:id/participants": {
1092
+ "/:id/travelers": {
911
1093
  $get: {
912
1094
  input: {
913
1095
  param: {
@@ -918,8 +1100,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
918
1100
  data: {
919
1101
  id: string;
920
1102
  bookingId: string;
921
- personId: string | null;
922
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1103
+ participantType: "other" | "traveler" | "occupant";
923
1104
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
924
1105
  firstName: string;
925
1106
  lastName: string;
@@ -939,13 +1120,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
939
1120
  };
940
1121
  };
941
1122
  } & {
942
- "/:id/participants/:participantId/travel-details": {
1123
+ "/:id/travelers/:travelerId/travel-details": {
943
1124
  $get: {
944
1125
  input: {
945
1126
  param: {
946
1127
  id: string;
947
1128
  } & {
948
- participantId: string;
1129
+ travelerId: string;
949
1130
  };
950
1131
  };
951
1132
  output: {};
@@ -954,7 +1135,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
954
1135
  };
955
1136
  };
956
1137
  } & {
957
- "/:id/participants": {
1138
+ "/:id/travelers": {
958
1139
  $post: {
959
1140
  input: {
960
1141
  param: {
@@ -975,21 +1156,20 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
975
1156
  output: {
976
1157
  data: {
977
1158
  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
1159
  bookingId: string;
986
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1160
+ participantType: "other" | "traveler" | "occupant";
987
1161
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1162
+ firstName: string;
1163
+ lastName: string;
1164
+ email: string | null;
988
1165
  phone: string | null;
989
1166
  preferredLanguage: string | null;
990
1167
  accessibilityNeeds: string | null;
991
1168
  specialRequests: string | null;
992
1169
  isPrimary: boolean;
1170
+ notes: string | null;
1171
+ createdAt: string;
1172
+ updatedAt: string;
993
1173
  };
994
1174
  };
995
1175
  outputFormat: "json";
@@ -997,13 +1177,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
997
1177
  };
998
1178
  };
999
1179
  } & {
1000
- "/:id/participants/:participantId/travel-details": {
1180
+ "/:id/travelers/:travelerId/travel-details": {
1001
1181
  $patch: {
1002
1182
  input: {
1003
1183
  param: {
1004
1184
  id: string;
1005
1185
  } & {
1006
- participantId: string;
1186
+ travelerId: string;
1007
1187
  };
1008
1188
  };
1009
1189
  output: {};
@@ -1012,13 +1192,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1012
1192
  };
1013
1193
  };
1014
1194
  } & {
1015
- "/:id/participants/:participantId": {
1195
+ "/:id/travelers/:travelerId": {
1016
1196
  $patch: {
1017
1197
  input: {
1018
1198
  param: {
1019
1199
  id: string;
1020
1200
  } & {
1021
- participantId: string;
1201
+ travelerId: string;
1022
1202
  };
1023
1203
  };
1024
1204
  output: {
@@ -1031,15 +1211,14 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1031
1211
  param: {
1032
1212
  id: string;
1033
1213
  } & {
1034
- participantId: string;
1214
+ travelerId: string;
1035
1215
  };
1036
1216
  };
1037
1217
  output: {
1038
1218
  data: {
1039
1219
  id: string;
1040
1220
  bookingId: string;
1041
- personId: string | null;
1042
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
1221
+ participantType: "other" | "traveler" | "occupant";
1043
1222
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1044
1223
  firstName: string;
1045
1224
  lastName: string;
@@ -1059,13 +1238,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1059
1238
  };
1060
1239
  };
1061
1240
  } & {
1062
- "/:id/participants/:participantId/travel-details": {
1241
+ "/:id/travelers/:travelerId/travel-details": {
1063
1242
  $delete: {
1064
1243
  input: {
1065
1244
  param: {
1066
1245
  id: string;
1067
1246
  } & {
1068
- participantId: string;
1247
+ travelerId: string;
1069
1248
  };
1070
1249
  };
1071
1250
  output: {};
@@ -1074,13 +1253,13 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1074
1253
  };
1075
1254
  };
1076
1255
  } & {
1077
- "/:id/participants/:participantId": {
1256
+ "/:id/travelers/:travelerId": {
1078
1257
  $delete: {
1079
1258
  input: {
1080
1259
  param: {
1081
1260
  id: string;
1082
1261
  } & {
1083
- participantId: string;
1262
+ travelerId: string;
1084
1263
  };
1085
1264
  };
1086
1265
  output: {
@@ -1093,141 +1272,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1093
1272
  param: {
1094
1273
  id: string;
1095
1274
  } & {
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;
1275
+ travelerId: string;
1231
1276
  };
1232
1277
  };
1233
1278
  output: {
@@ -1426,7 +1471,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1426
1471
  };
1427
1472
  };
1428
1473
  } & {
1429
- "/:id/items/:itemId/participants": {
1474
+ "/:id/items/:itemId/travelers": {
1430
1475
  $get: {
1431
1476
  input: {
1432
1477
  param: {
@@ -1439,8 +1484,8 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1439
1484
  data: {
1440
1485
  id: string;
1441
1486
  bookingItemId: string;
1442
- participantId: string;
1443
- role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
1487
+ travelerId: string;
1488
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1444
1489
  isPrimary: boolean;
1445
1490
  createdAt: string;
1446
1491
  }[];
@@ -1450,7 +1495,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1450
1495
  };
1451
1496
  };
1452
1497
  } & {
1453
- "/:id/items/:itemId/participants": {
1498
+ "/:id/items/:itemId/travelers": {
1454
1499
  $post: {
1455
1500
  input: {
1456
1501
  param: {
@@ -1476,9 +1521,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1476
1521
  data: {
1477
1522
  id: string;
1478
1523
  createdAt: string;
1479
- role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
1524
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1480
1525
  isPrimary: boolean;
1481
- participantId: string;
1526
+ travelerId: string;
1482
1527
  bookingItemId: string;
1483
1528
  };
1484
1529
  };
@@ -1487,7 +1532,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1487
1532
  };
1488
1533
  };
1489
1534
  } & {
1490
- "/:id/items/:itemId/participants/:linkId": {
1535
+ "/:id/items/:itemId/travelers/:linkId": {
1491
1536
  $delete: {
1492
1537
  input: {
1493
1538
  param: {
@@ -1643,7 +1688,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1643
1688
  id: string;
1644
1689
  bookingId: string;
1645
1690
  bookingItemId: string | null;
1646
- participantId: string | null;
1691
+ travelerId: string | null;
1647
1692
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1648
1693
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1649
1694
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1687,7 +1732,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1687
1732
  createdAt: string;
1688
1733
  updatedAt: string;
1689
1734
  bookingId: string;
1690
- participantId: string | null;
1735
+ travelerId: string | null;
1691
1736
  bookingItemId: string | null;
1692
1737
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1693
1738
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
@@ -1731,7 +1776,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1731
1776
  id: string;
1732
1777
  bookingId: string;
1733
1778
  bookingItemId: string | null;
1734
- participantId: string | null;
1779
+ travelerId: string | null;
1735
1780
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1736
1781
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1737
1782
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1762,7 +1807,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1762
1807
  id: string;
1763
1808
  bookingId: string;
1764
1809
  bookingItemId: string | null;
1765
- participantId: string | null;
1810
+ travelerId: string | null;
1766
1811
  redeemedAt: string;
1767
1812
  redeemedBy: string | null;
1768
1813
  location: string | null;
@@ -1806,7 +1851,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1806
1851
  method: "other" | "manual" | "api" | "scan";
1807
1852
  redeemedAt: string;
1808
1853
  bookingId: string;
1809
- participantId: string | null;
1854
+ travelerId: string | null;
1810
1855
  bookingItemId: string | null;
1811
1856
  redeemedBy: string | null;
1812
1857
  location: string | null;
@@ -1928,6 +1973,36 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1928
1973
  status: 201;
1929
1974
  };
1930
1975
  };
1976
+ } & {
1977
+ "/:id/notes/:noteId": {
1978
+ $delete: {
1979
+ input: {
1980
+ param: {
1981
+ id: string;
1982
+ } & {
1983
+ noteId: string;
1984
+ };
1985
+ };
1986
+ output: {
1987
+ error: string;
1988
+ };
1989
+ outputFormat: "json";
1990
+ status: 404;
1991
+ } | {
1992
+ input: {
1993
+ param: {
1994
+ id: string;
1995
+ } & {
1996
+ noteId: string;
1997
+ };
1998
+ };
1999
+ output: {
2000
+ success: true;
2001
+ };
2002
+ outputFormat: "json";
2003
+ status: 200;
2004
+ };
2005
+ };
1931
2006
  } & {
1932
2007
  "/:id/documents": {
1933
2008
  $get: {
@@ -1940,7 +2015,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1940
2015
  data: {
1941
2016
  id: string;
1942
2017
  bookingId: string;
1943
- participantId: string | null;
2018
+ travelerId: string | null;
1944
2019
  type: "visa" | "other" | "insurance" | "health" | "passport_copy";
1945
2020
  fileName: string;
1946
2021
  fileUrl: string;
@@ -1980,7 +2055,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1980
2055
  createdAt: string;
1981
2056
  expiresAt: string | null;
1982
2057
  bookingId: string;
1983
- participantId: string | null;
2058
+ travelerId: string | null;
1984
2059
  fileName: string;
1985
2060
  fileUrl: string;
1986
2061
  };
@@ -2101,6 +2176,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2101
2176
  createdAt: string;
2102
2177
  updatedAt: string;
2103
2178
  organizationId: string | null;
2179
+ redeemedAt: string | null;
2104
2180
  startDate: string | null;
2105
2181
  endDate: string | null;
2106
2182
  bookingNumber: string;
@@ -2108,6 +2184,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2108
2184
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
2109
2185
  externalBookingRef: string | null;
2110
2186
  communicationLanguage: string | null;
2187
+ contactFirstName: string | null;
2188
+ contactLastName: string | null;
2189
+ contactEmail: string | null;
2190
+ contactPhone: string | null;
2191
+ contactPreferredLanguage: string | null;
2192
+ contactCountry: string | null;
2193
+ contactRegion: string | null;
2194
+ contactCity: string | null;
2195
+ contactAddressLine1: string | null;
2196
+ contactPostalCode: string | null;
2111
2197
  sellCurrency: string;
2112
2198
  baseCurrency: string | null;
2113
2199
  sellAmountCents: number | null;
@@ -2122,7 +2208,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2122
2208
  expiredAt: string | null;
2123
2209
  cancelledAt: string | null;
2124
2210
  completedAt: string | null;
2125
- redeemedAt: string | null;
2126
2211
  } | null;
2127
2212
  }[];
2128
2213
  id: string;
@@ -2227,6 +2312,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2227
2312
  createdAt: string;
2228
2313
  updatedAt: string;
2229
2314
  organizationId: string | null;
2315
+ redeemedAt: string | null;
2230
2316
  startDate: string | null;
2231
2317
  endDate: string | null;
2232
2318
  bookingNumber: string;
@@ -2234,6 +2320,16 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2234
2320
  sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
2235
2321
  externalBookingRef: string | null;
2236
2322
  communicationLanguage: string | null;
2323
+ contactFirstName: string | null;
2324
+ contactLastName: string | null;
2325
+ contactEmail: string | null;
2326
+ contactPhone: string | null;
2327
+ contactPreferredLanguage: string | null;
2328
+ contactCountry: string | null;
2329
+ contactRegion: string | null;
2330
+ contactCity: string | null;
2331
+ contactAddressLine1: string | null;
2332
+ contactPostalCode: string | null;
2237
2333
  sellCurrency: string;
2238
2334
  baseCurrency: string | null;
2239
2335
  sellAmountCents: number | null;
@@ -2248,7 +2344,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2248
2344
  expiredAt: string | null;
2249
2345
  cancelledAt: string | null;
2250
2346
  completedAt: string | null;
2251
- redeemedAt: string | null;
2252
2347
  } | null;
2253
2348
  }[];
2254
2349
  };
@@ -2331,7 +2426,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2331
2426
  };
2332
2427
  };
2333
2428
  } & {
2334
- "/:id/passengers": {
2429
+ "/:id/travelers": {
2335
2430
  $get: {
2336
2431
  input: {
2337
2432
  param: {
@@ -2349,7 +2444,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2349
2444
  lastName: string;
2350
2445
  personId: string | null;
2351
2446
  bookingId: string;
2352
- participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
2447
+ participantType: "other" | "traveler" | "occupant";
2353
2448
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
2354
2449
  phone: string | null;
2355
2450
  preferredLanguage: string | null;