@nicertravel/sdk 0.0.0 → 1.0.0-beta.2

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 (270) hide show
  1. package/README.md +89 -3
  2. package/dist/_/codec.d.ts +93 -0
  3. package/dist/_/codec.js +298 -0
  4. package/dist/_/error.d.ts +27 -0
  5. package/dist/_/error.js +68 -0
  6. package/dist/_/hooks/envelope.d.ts +11 -0
  7. package/dist/_/hooks/envelope.js +15 -0
  8. package/dist/_/index.d.ts +3 -0
  9. package/dist/_/index.js +5 -0
  10. package/dist/_/transport.d.ts +146 -0
  11. package/dist/_/transport.js +220 -0
  12. package/dist/activities/client.d.ts +35 -0
  13. package/dist/activities/client.js +23 -0
  14. package/dist/activities/index.d.ts +5 -0
  15. package/dist/activities/index.js +4 -0
  16. package/dist/activities/models.d.ts +27 -0
  17. package/dist/activities/models.js +3 -0
  18. package/dist/activityDestinations/client.d.ts +24 -0
  19. package/dist/activityDestinations/client.js +17 -0
  20. package/dist/activityDestinations/index.d.ts +4 -0
  21. package/dist/activityDestinations/index.js +4 -0
  22. package/dist/balances/client.d.ts +29 -0
  23. package/dist/balances/client.js +18 -0
  24. package/dist/balances/index.d.ts +5 -0
  25. package/dist/balances/index.js +4 -0
  26. package/dist/balances/models.d.ts +12 -0
  27. package/dist/balances/models.js +3 -0
  28. package/dist/bookingSelections/client.d.ts +54 -0
  29. package/dist/bookingSelections/client.js +25 -0
  30. package/dist/bookingSelections/index.d.ts +5 -0
  31. package/dist/bookingSelections/index.js +4 -0
  32. package/dist/bookingSelections/models.d.ts +35 -0
  33. package/dist/bookingSelections/models.js +3 -0
  34. package/dist/carRentals/client.d.ts +55 -0
  35. package/dist/carRentals/client.js +25 -0
  36. package/dist/carRentals/index.d.ts +5 -0
  37. package/dist/carRentals/index.js +4 -0
  38. package/dist/carRentals/models.d.ts +157 -0
  39. package/dist/carRentals/models.js +3 -0
  40. package/dist/carriers/client.d.ts +32 -0
  41. package/dist/carriers/client.js +18 -0
  42. package/dist/carriers/index.d.ts +5 -0
  43. package/dist/carriers/index.js +4 -0
  44. package/dist/carriers/models.d.ts +9 -0
  45. package/dist/carriers/models.js +3 -0
  46. package/dist/chats/client.d.ts +69 -0
  47. package/dist/chats/client.js +38 -0
  48. package/dist/chats/index.d.ts +5 -0
  49. package/dist/chats/index.js +4 -0
  50. package/dist/chats/models.d.ts +25 -0
  51. package/dist/chats/models.js +3 -0
  52. package/dist/checkouts/client.d.ts +27 -0
  53. package/dist/checkouts/client.js +18 -0
  54. package/dist/checkouts/index.d.ts +5 -0
  55. package/dist/checkouts/index.js +4 -0
  56. package/dist/checkouts/models.d.ts +23 -0
  57. package/dist/checkouts/models.js +3 -0
  58. package/dist/client.d.ts +95 -0
  59. package/dist/client.js +220 -0
  60. package/dist/commissionExports/client.d.ts +62 -0
  61. package/dist/commissionExports/client.js +33 -0
  62. package/dist/commissionExports/index.d.ts +5 -0
  63. package/dist/commissionExports/index.js +4 -0
  64. package/dist/commissionExports/models.d.ts +165 -0
  65. package/dist/commissionExports/models.js +3 -0
  66. package/dist/commissionImports/client.d.ts +61 -0
  67. package/dist/commissionImports/client.js +34 -0
  68. package/dist/commissionImports/index.d.ts +5 -0
  69. package/dist/commissionImports/index.js +4 -0
  70. package/dist/commissionImports/models.d.ts +118 -0
  71. package/dist/commissionImports/models.js +3 -0
  72. package/dist/commissionItems/client.d.ts +128 -0
  73. package/dist/commissionItems/client.js +41 -0
  74. package/dist/commissionItems/index.d.ts +5 -0
  75. package/dist/commissionItems/index.js +4 -0
  76. package/dist/commissionItems/models.d.ts +217 -0
  77. package/dist/commissionItems/models.js +3 -0
  78. package/dist/commissionReports/client.d.ts +76 -0
  79. package/dist/commissionReports/client.js +18 -0
  80. package/dist/commissionReports/index.d.ts +5 -0
  81. package/dist/commissionReports/index.js +4 -0
  82. package/dist/commissionReports/models.d.ts +208 -0
  83. package/dist/commissionReports/models.js +3 -0
  84. package/dist/crmSettings/client.d.ts +50 -0
  85. package/dist/crmSettings/client.js +25 -0
  86. package/dist/crmSettings/index.d.ts +5 -0
  87. package/dist/crmSettings/index.js +4 -0
  88. package/dist/crmSettings/models.d.ts +313 -0
  89. package/dist/crmSettings/models.js +3 -0
  90. package/dist/earnings/client.d.ts +30 -0
  91. package/dist/earnings/client.js +18 -0
  92. package/dist/earnings/index.d.ts +5 -0
  93. package/dist/earnings/index.js +4 -0
  94. package/dist/earnings/models.d.ts +16 -0
  95. package/dist/earnings/models.js +3 -0
  96. package/dist/externalBookings/client.d.ts +56 -0
  97. package/dist/externalBookings/client.js +33 -0
  98. package/dist/externalBookings/index.d.ts +5 -0
  99. package/dist/externalBookings/index.js +4 -0
  100. package/dist/externalBookings/models.d.ts +93 -0
  101. package/dist/externalBookings/models.js +3 -0
  102. package/dist/externalPayments/client.d.ts +23 -0
  103. package/dist/externalPayments/client.js +18 -0
  104. package/dist/externalPayments/index.d.ts +5 -0
  105. package/dist/externalPayments/index.js +4 -0
  106. package/dist/externalPayments/models.d.ts +47 -0
  107. package/dist/externalPayments/models.js +3 -0
  108. package/dist/favorites/client.d.ts +87 -0
  109. package/dist/favorites/client.js +63 -0
  110. package/dist/favorites/index.d.ts +5 -0
  111. package/dist/favorites/index.js +4 -0
  112. package/dist/favorites/models.d.ts +79 -0
  113. package/dist/favorites/models.js +3 -0
  114. package/dist/flightSchedules/client.d.ts +29 -0
  115. package/dist/flightSchedules/client.js +18 -0
  116. package/dist/flightSchedules/index.d.ts +5 -0
  117. package/dist/flightSchedules/index.js +4 -0
  118. package/dist/flightSchedules/models.d.ts +25 -0
  119. package/dist/flightSchedules/models.js +3 -0
  120. package/dist/flights/client.d.ts +73 -0
  121. package/dist/flights/client.js +25 -0
  122. package/dist/flights/index.d.ts +5 -0
  123. package/dist/flights/index.js +4 -0
  124. package/dist/flights/models.d.ts +345 -0
  125. package/dist/flights/models.js +3 -0
  126. package/dist/hotels/client.d.ts +104 -0
  127. package/dist/hotels/client.js +26 -0
  128. package/dist/hotels/index.d.ts +5 -0
  129. package/dist/hotels/index.js +4 -0
  130. package/dist/hotels/models.d.ts +355 -0
  131. package/dist/hotels/models.js +3 -0
  132. package/dist/index.d.ts +5 -0
  133. package/dist/index.js +4 -0
  134. package/dist/insuranceQuotes/client.d.ts +27 -0
  135. package/dist/insuranceQuotes/client.js +18 -0
  136. package/dist/insuranceQuotes/index.d.ts +5 -0
  137. package/dist/insuranceQuotes/index.js +4 -0
  138. package/dist/insuranceQuotes/models.d.ts +76 -0
  139. package/dist/insuranceQuotes/models.js +3 -0
  140. package/dist/itineraries/client.d.ts +165 -0
  141. package/dist/itineraries/client.js +86 -0
  142. package/dist/itineraries/index.d.ts +5 -0
  143. package/dist/itineraries/index.js +4 -0
  144. package/dist/itineraries/models.d.ts +1619 -0
  145. package/dist/itineraries/models.js +4 -0
  146. package/dist/models.d.ts +1361 -0
  147. package/dist/models.js +3 -0
  148. package/dist/notes/client.d.ts +82 -0
  149. package/dist/notes/client.js +41 -0
  150. package/dist/notes/index.d.ts +5 -0
  151. package/dist/notes/index.js +4 -0
  152. package/dist/notes/models.d.ts +116 -0
  153. package/dist/notes/models.js +3 -0
  154. package/dist/offers/client.d.ts +27 -0
  155. package/dist/offers/client.js +17 -0
  156. package/dist/offers/index.d.ts +5 -0
  157. package/dist/offers/index.js +4 -0
  158. package/dist/offers/models.d.ts +19 -0
  159. package/dist/offers/models.js +3 -0
  160. package/dist/options/index.d.ts +114 -0
  161. package/dist/options/index.js +115 -0
  162. package/dist/orders/client.d.ts +154 -0
  163. package/dist/orders/client.js +65 -0
  164. package/dist/orders/index.d.ts +5 -0
  165. package/dist/orders/index.js +4 -0
  166. package/dist/orders/models.d.ts +2510 -0
  167. package/dist/orders/models.js +3 -0
  168. package/dist/payees/client.d.ts +48 -0
  169. package/dist/payees/client.js +26 -0
  170. package/dist/payees/index.d.ts +5 -0
  171. package/dist/payees/index.js +4 -0
  172. package/dist/payees/models.d.ts +50 -0
  173. package/dist/payees/models.js +3 -0
  174. package/dist/paymentMethods/client.d.ts +24 -0
  175. package/dist/paymentMethods/client.js +18 -0
  176. package/dist/paymentMethods/index.d.ts +5 -0
  177. package/dist/paymentMethods/index.js +4 -0
  178. package/dist/paymentMethods/models.d.ts +60 -0
  179. package/dist/paymentMethods/models.js +3 -0
  180. package/dist/places/client.d.ts +61 -0
  181. package/dist/places/client.js +25 -0
  182. package/dist/places/index.d.ts +5 -0
  183. package/dist/places/index.js +4 -0
  184. package/dist/places/models.d.ts +51 -0
  185. package/dist/places/models.js +3 -0
  186. package/dist/profileForms/client.d.ts +38 -0
  187. package/dist/profileForms/client.js +25 -0
  188. package/dist/profileForms/index.d.ts +5 -0
  189. package/dist/profileForms/index.js +4 -0
  190. package/dist/profileForms/models.d.ts +24 -0
  191. package/dist/profileForms/models.js +3 -0
  192. package/dist/quotes/client.d.ts +30 -0
  193. package/dist/quotes/client.js +18 -0
  194. package/dist/quotes/index.d.ts +5 -0
  195. package/dist/quotes/index.js +4 -0
  196. package/dist/quotes/models.d.ts +47 -0
  197. package/dist/quotes/models.js +3 -0
  198. package/dist/remittanceBatches/client.d.ts +78 -0
  199. package/dist/remittanceBatches/client.js +42 -0
  200. package/dist/remittanceBatches/index.d.ts +5 -0
  201. package/dist/remittanceBatches/index.js +4 -0
  202. package/dist/remittanceBatches/models.d.ts +131 -0
  203. package/dist/remittanceBatches/models.js +3 -0
  204. package/dist/remittanceClaims/client.d.ts +27 -0
  205. package/dist/remittanceClaims/client.js +18 -0
  206. package/dist/remittanceClaims/index.d.ts +5 -0
  207. package/dist/remittanceClaims/index.js +4 -0
  208. package/dist/remittanceClaims/models.d.ts +5 -0
  209. package/dist/remittanceClaims/models.js +3 -0
  210. package/dist/remittanceLines/client.d.ts +27 -0
  211. package/dist/remittanceLines/client.js +18 -0
  212. package/dist/remittanceLines/index.d.ts +5 -0
  213. package/dist/remittanceLines/index.js +4 -0
  214. package/dist/remittanceLines/models.d.ts +5 -0
  215. package/dist/remittanceLines/models.js +3 -0
  216. package/dist/remittances/client.d.ts +78 -0
  217. package/dist/remittances/client.js +42 -0
  218. package/dist/remittances/index.d.ts +5 -0
  219. package/dist/remittances/index.js +4 -0
  220. package/dist/remittances/models.d.ts +116 -0
  221. package/dist/remittances/models.js +3 -0
  222. package/dist/statements/client.d.ts +75 -0
  223. package/dist/statements/client.js +34 -0
  224. package/dist/statements/index.d.ts +5 -0
  225. package/dist/statements/index.js +4 -0
  226. package/dist/statements/models.d.ts +147 -0
  227. package/dist/statements/models.js +3 -0
  228. package/dist/suppliers/client.d.ts +71 -0
  229. package/dist/suppliers/client.js +41 -0
  230. package/dist/suppliers/index.d.ts +5 -0
  231. package/dist/suppliers/index.js +4 -0
  232. package/dist/suppliers/models.d.ts +130 -0
  233. package/dist/suppliers/models.js +3 -0
  234. package/dist/taskTemplates/client.d.ts +36 -0
  235. package/dist/taskTemplates/client.js +18 -0
  236. package/dist/taskTemplates/index.d.ts +5 -0
  237. package/dist/taskTemplates/index.js +4 -0
  238. package/dist/taskTemplates/models.d.ts +15 -0
  239. package/dist/taskTemplates/models.js +3 -0
  240. package/dist/tasks/client.d.ts +105 -0
  241. package/dist/tasks/client.js +41 -0
  242. package/dist/tasks/index.d.ts +5 -0
  243. package/dist/tasks/index.js +4 -0
  244. package/dist/tasks/models.d.ts +59 -0
  245. package/dist/tasks/models.js +3 -0
  246. package/dist/timeline/client.d.ts +42 -0
  247. package/dist/timeline/client.js +18 -0
  248. package/dist/timeline/index.d.ts +5 -0
  249. package/dist/timeline/index.js +4 -0
  250. package/dist/timeline/models.d.ts +65 -0
  251. package/dist/timeline/models.js +3 -0
  252. package/dist/travelProfile/client.d.ts +56 -0
  253. package/dist/travelProfile/client.js +25 -0
  254. package/dist/travelProfile/index.d.ts +5 -0
  255. package/dist/travelProfile/index.js +4 -0
  256. package/dist/travelProfile/models.d.ts +95 -0
  257. package/dist/travelProfile/models.js +3 -0
  258. package/dist/travelers/client.d.ts +214 -0
  259. package/dist/travelers/client.js +76 -0
  260. package/dist/travelers/index.d.ts +5 -0
  261. package/dist/travelers/index.js +4 -0
  262. package/dist/travelers/models.d.ts +576 -0
  263. package/dist/travelers/models.js +3 -0
  264. package/dist/trips/client.d.ts +224 -0
  265. package/dist/trips/client.js +88 -0
  266. package/dist/trips/index.d.ts +5 -0
  267. package/dist/trips/index.js +4 -0
  268. package/dist/trips/models.d.ts +486 -0
  269. package/dist/trips/models.js +3 -0
  270. package/package.json +35 -2
@@ -0,0 +1,1619 @@
1
+ import type { BookingCommercialSnapshot, BookingPriceSnapshot, FlightBaggageCharge, FlightBaggageSnapshot, FlightBrandFeatureSnapshot, FlightCarrierSnapshot, FlightFareRuleSnapshot, FlightHiddenStopSnapshot, FlightPassengerSnapshot, FlightRules, FlightSelectedSeat, FlightSelectedService, QuotePolicy, TripItineraryStatus } from "../models.js";
2
+ export interface AddOfferBody {
3
+ /**
4
+ * Add it among the alternatives of this itinerary slot.
5
+ */
6
+ groupId?: string;
7
+ /**
8
+ * The live offer: a room's offerReference from getHotelRooms, or a flight's
9
+ * or car rental's offerReference from its search.
10
+ */
11
+ offerReference: string;
12
+ }
13
+ export interface AddOfferResponse {
14
+ reason: string | null;
15
+ segmentId: string | null;
16
+ status: "OK" | "UNAVAILABLE";
17
+ title: string | null;
18
+ }
19
+ export interface ApproveSegmentBody {
20
+ segmentId: string;
21
+ }
22
+ export interface ApproveSegmentResponse {
23
+ success: true;
24
+ }
25
+ export interface Attachment {
26
+ key?: string;
27
+ name?: string;
28
+ source?: string;
29
+ url?: string;
30
+ }
31
+ export interface CreateItineraryDocumentBody {
32
+ mode?: "merge" | "replace";
33
+ }
34
+ export interface CreateItineraryDocumentResponse {
35
+ key: string;
36
+ presignedPost: {
37
+ fields: {
38
+ [key: string]: string;
39
+ };
40
+ url: string;
41
+ };
42
+ }
43
+ export interface FlightItinerary {
44
+ aircraft?: string | null;
45
+ arrivingAt?: string | null;
46
+ baggage?: FlightBaggageSnapshot[];
47
+ bookingClass?: string | null;
48
+ brand?: {
49
+ code: string;
50
+ name: string;
51
+ } | null;
52
+ cabin?: "BUSINESS" | "ECONOMY" | "FIRST" | "PREMIUM_ECONOMY";
53
+ departingAt: string;
54
+ destination: Location;
55
+ distance?: string | null;
56
+ duration?: string | null;
57
+ explicitNoFlightNumber?: boolean | null;
58
+ fareBasisCode?: string | null;
59
+ hiddenStops?: FlightHiddenStopSnapshot[];
60
+ legId?: string;
61
+ marketingCarrier?: {
62
+ conditionsOfCarriageUrl?: string | null;
63
+ iataCode?: string | null;
64
+ logoLockupUrl?: string | null;
65
+ logoSymbolUrl?: string | null;
66
+ name?: string | null;
67
+ };
68
+ marketingCarrierFlightNumber?: string | null;
69
+ operatingCarrier?: {
70
+ conditionsOfCarriageUrl?: string | null;
71
+ iataCode?: string | null;
72
+ logoLockupUrl?: string | null;
73
+ logoSymbolUrl?: string | null;
74
+ name?: string | null;
75
+ };
76
+ operatingCarrierFlightNumber?: string | null;
77
+ origin: Location;
78
+ providerSegmentReference?: string;
79
+ seats?: FlightSelectedSeat[];
80
+ services?: FlightSelectedService[];
81
+ }
82
+ export interface GetTripItineraryAgentViewResponse {
83
+ lockedSegmentIds: string[];
84
+ segments: {
85
+ attachmentCount?: number;
86
+ endDateTime: string | null;
87
+ id: string;
88
+ imageCount?: number;
89
+ lockedReason: string | null;
90
+ sourceDocumentKey?: string | null;
91
+ startDateTime: string | null;
92
+ title: string | null;
93
+ type: string;
94
+ }[];
95
+ trip: {
96
+ destinations: string[];
97
+ endDate: string | null;
98
+ startDate: string | null;
99
+ title: string | null;
100
+ travelers: {
101
+ adults: number | null;
102
+ children: number | null;
103
+ };
104
+ };
105
+ }
106
+ export interface Location {
107
+ address?: string | null;
108
+ amenities?: string[];
109
+ city?: string | null;
110
+ country?: string;
111
+ countryCode?: string;
112
+ description?: string;
113
+ distanceFromSearch?: {
114
+ unit: "km" | "mi";
115
+ value: number;
116
+ };
117
+ features?: string[];
118
+ fullAddress?: string;
119
+ gate?: string | null;
120
+ iataCode?: string | null;
121
+ internovaId?: string;
122
+ latitude?: number;
123
+ longitude?: number;
124
+ name?: string;
125
+ photos?: {
126
+ key?: string;
127
+ name: string;
128
+ url?: string;
129
+ }[];
130
+ placeId?: string;
131
+ region?: string;
132
+ source?: string;
133
+ state?: string | null;
134
+ terminal?: string | null;
135
+ timeZone?: string;
136
+ zipCode?: string | null;
137
+ }
138
+ export interface Room {
139
+ adults?: number;
140
+ amenities?: string[];
141
+ beds?: string[];
142
+ category?: string | null;
143
+ children?: number | null;
144
+ confirmationNumber?: string | null;
145
+ description?: string | null;
146
+ gdslocator?: string | null;
147
+ guests?: string;
148
+ image?: string | null;
149
+ name?: string | null;
150
+ policies?: {
151
+ breakfast?: string | null;
152
+ deadline?: string | null;
153
+ refund?: string | null;
154
+ summary?: string | null;
155
+ } | null;
156
+ ratePlanCode?: string | null;
157
+ travelers?: string[];
158
+ }
159
+ export type SegmentOpBody = {
160
+ operations: ({
161
+ operation: "delete";
162
+ segment: {
163
+ id: string;
164
+ };
165
+ } | {
166
+ operation: "update";
167
+ segment: {
168
+ advisorInsights?: string | null;
169
+ amenities?: string[];
170
+ approvedAt?: string | null;
171
+ approvedBy?: string | null;
172
+ attachments?: Attachment[] | null;
173
+ baggageCharges?: FlightBaggageCharge[];
174
+ brandFeatures?: FlightBrandFeatureSnapshot[];
175
+ cabin?: "BUSINESS" | "ECONOMY" | "FIRST" | "PREMIUM_ECONOMY";
176
+ commercialSnapshot?: BookingCommercialSnapshot;
177
+ countTravelers?: number;
178
+ createdAt?: string;
179
+ createdBy?: string;
180
+ currency?: string;
181
+ details?: string | null;
182
+ endDateTime?: string | null;
183
+ fareRules?: FlightFareRuleSnapshot[];
184
+ flightIndex?: string;
185
+ flightType?: "one-way" | "round-trip" | "multi-city";
186
+ groupId?: string;
187
+ hash?: string;
188
+ id: string;
189
+ images?: Attachment[] | null;
190
+ inbound?: FlightItinerary[];
191
+ isOnSitePayment?: boolean;
192
+ lastModifiedBy?: string;
193
+ location?: Location | null;
194
+ metadata?: {
195
+ [key: string]: unknown;
196
+ };
197
+ outbound?: FlightItinerary[];
198
+ owner?: FlightCarrierSnapshot;
199
+ passengers?: FlightPassengerSnapshot[];
200
+ policies?: QuotePolicy[];
201
+ price?: number;
202
+ priceInUsd?: number | null;
203
+ priceSnapshot?: BookingPriceSnapshot;
204
+ rate?: number | null;
205
+ rules?: FlightRules;
206
+ startDateTime?: string;
207
+ ticketingDeadline?: string | null;
208
+ title?: string | null;
209
+ type?: "flight";
210
+ updatedAt?: string;
211
+ [key: string]: unknown;
212
+ } | {
213
+ advisorInsights?: string | null;
214
+ amenities?: string[];
215
+ approvedAt?: string | null;
216
+ approvedBy?: string | null;
217
+ attachments?: Attachment[] | null;
218
+ bookingOccupancy?: {
219
+ rooms: {
220
+ adults: number;
221
+ children: number;
222
+ childrenAges: number[];
223
+ }[];
224
+ };
225
+ checkinDate?: string;
226
+ checkoutDate?: string;
227
+ commercialSnapshot?: BookingCommercialSnapshot;
228
+ countTravelers?: number;
229
+ createdAt?: string;
230
+ createdBy?: string;
231
+ currency?: string;
232
+ details?: string | null;
233
+ endDateTime?: string | null;
234
+ groupId?: string;
235
+ hash?: string;
236
+ id: string;
237
+ images?: Attachment[] | null;
238
+ isOnSitePayment?: boolean;
239
+ lastModifiedBy?: string;
240
+ location?: Location | null;
241
+ lodge?: {
242
+ checkin?: string | null;
243
+ checkout?: string | null;
244
+ guests?: string[];
245
+ name: string;
246
+ rooms?: Room[] | null;
247
+ stars?: number;
248
+ status?: "proposed" | "hold" | "booked" | "cancelled";
249
+ };
250
+ metadata?: {
251
+ [key: string]: unknown;
252
+ };
253
+ price?: number;
254
+ priceInUsd?: number | null;
255
+ rate?: number | null;
256
+ startDateTime?: string;
257
+ title?: string | null;
258
+ type?: "lodging";
259
+ updatedAt?: string;
260
+ [key: string]: unknown;
261
+ } | {
262
+ advisorInsights?: string | null;
263
+ amenities?: string[];
264
+ approvedAt?: string | null;
265
+ approvedBy?: string | null;
266
+ attachments?: Attachment[] | null;
267
+ carType?: string;
268
+ countTravelers?: number;
269
+ createdAt?: string;
270
+ createdBy?: string;
271
+ currency?: string;
272
+ details?: string | null;
273
+ dropoff?: Location;
274
+ endDateTime?: string | null;
275
+ engine?: "ELECTRIC" | "HYBRID" | "GASOLINE" | "DIESEL";
276
+ groupId?: string;
277
+ hash?: string;
278
+ id: string;
279
+ images?: Attachment[] | null;
280
+ insurance?: string;
281
+ isOnSitePayment?: boolean;
282
+ lastModifiedBy?: string;
283
+ location?: Location | null;
284
+ metadata?: {
285
+ [key: string]: unknown;
286
+ };
287
+ model?: string;
288
+ pickup?: Location;
289
+ price?: number;
290
+ priceInUsd?: number | null;
291
+ rate?: number | null;
292
+ startDateTime?: string;
293
+ title?: string | null;
294
+ transmission?: "MANUAL" | "AUTOMATIC";
295
+ type?: "car_rental";
296
+ updatedAt?: string;
297
+ [key: string]: unknown;
298
+ } | {
299
+ advisorInsights?: string | null;
300
+ amenities?: string[];
301
+ approvedAt?: string | null;
302
+ approvedBy?: string | null;
303
+ arrivalDateTime?: string;
304
+ arrivalLocation?: Location;
305
+ arrivalTimezone?: string;
306
+ attachments?: Attachment[] | null;
307
+ countTravelers?: number;
308
+ createdAt?: string;
309
+ createdBy?: string;
310
+ currency?: string;
311
+ departureDateTime?: string;
312
+ departureLocation?: Location;
313
+ departureTimezone?: string;
314
+ details?: string | null;
315
+ endDateTime?: string | null;
316
+ groupId?: string;
317
+ guests?: number;
318
+ hash?: string;
319
+ id: string;
320
+ images?: Attachment[] | null;
321
+ isOnSitePayment?: boolean;
322
+ lastModifiedBy?: string;
323
+ location?: Location | null;
324
+ metadata?: {
325
+ [key: string]: unknown;
326
+ };
327
+ price?: number;
328
+ priceInUsd?: number | null;
329
+ rate?: number | null;
330
+ startDateTime?: string;
331
+ title?: string | null;
332
+ transportationType?: "ground_transportation" | "train" | "bus" | "automobile";
333
+ type?: "transportation";
334
+ updatedAt?: string;
335
+ [key: string]: unknown;
336
+ } | {
337
+ advisorInsights?: string | null;
338
+ amenities?: string[];
339
+ approvedAt?: string | null;
340
+ approvedBy?: string | null;
341
+ arrivalDateTime?: string;
342
+ arrivalLocation?: Location;
343
+ arrivalTimezone?: string;
344
+ attachments?: Attachment[] | null;
345
+ countTravelers?: number;
346
+ createdAt?: string;
347
+ createdBy?: string;
348
+ currency?: string;
349
+ departureDateTime?: string;
350
+ departureLocation?: Location;
351
+ departureTimezone?: string;
352
+ details?: string | null;
353
+ endDateTime?: string | null;
354
+ groupId?: string;
355
+ hash?: string;
356
+ id: string;
357
+ images?: Attachment[] | null;
358
+ isOnSitePayment?: boolean;
359
+ lastModifiedBy?: string;
360
+ location?: Location | null;
361
+ metadata?: {
362
+ [key: string]: unknown;
363
+ };
364
+ price?: number;
365
+ priceInUsd?: number | null;
366
+ rate?: number | null;
367
+ startDateTime?: string;
368
+ status?: "proposed" | "hold" | "booked" | "cancelled";
369
+ stop?: Location[];
370
+ suites?: Suite[];
371
+ title?: string | null;
372
+ type?: "cruise";
373
+ updatedAt?: string;
374
+ [key: string]: unknown;
375
+ } | {
376
+ additionalInfo?: string[];
377
+ advisorInsights?: string | null;
378
+ amenities?: string[];
379
+ approvedAt?: string | null;
380
+ approvedBy?: string | null;
381
+ attachments?: Attachment[] | null;
382
+ bookingQuestions?: string[];
383
+ cancellationPolicy?: {
384
+ cancelIfBadWeather?: boolean;
385
+ freeDeadline?: string;
386
+ isCancellable: boolean;
387
+ };
388
+ countTravelers?: number;
389
+ createdAt?: string;
390
+ createdBy?: string;
391
+ currency?: string;
392
+ details?: string | null;
393
+ dropoffInstructions?: string;
394
+ dropoffLocation?: Location;
395
+ dropoffTime?: string;
396
+ durationMinutes?: number;
397
+ durationText?: string;
398
+ endDateTime?: string | null;
399
+ exclusions?: string[];
400
+ freeCancellation?: boolean;
401
+ groupId?: string;
402
+ hash?: string;
403
+ id: string;
404
+ images?: Attachment[] | null;
405
+ inclusions?: string[];
406
+ instantConfirmation?: boolean;
407
+ isOnSitePayment?: boolean;
408
+ itinerarySteps?: {
409
+ admissionIncluded?: "YES" | "NO" | "NOT_APPLICABLE";
410
+ description?: string;
411
+ durationMinutes?: number;
412
+ durationText?: string;
413
+ location?: Location;
414
+ passByWithoutStopping?: boolean;
415
+ title: string;
416
+ }[];
417
+ languages?: string[];
418
+ lastModifiedBy?: string;
419
+ location?: Location;
420
+ maxTravelersPerBooking?: number;
421
+ metadata?: {
422
+ [key: string]: unknown;
423
+ };
424
+ minTravelersPerBooking?: number;
425
+ mobileTicket?: boolean;
426
+ pickupInstructions?: string;
427
+ pickupLocation?: Location;
428
+ pickupTime?: string;
429
+ price?: number;
430
+ priceInUsd?: number | null;
431
+ privateTour?: boolean;
432
+ provider?: string;
433
+ providerBookingRef?: string;
434
+ providerProductCode?: string;
435
+ providerProductUrl?: string;
436
+ rate?: number | null;
437
+ reviews?: {
438
+ averageRating?: number;
439
+ totalReviews?: number;
440
+ };
441
+ skipTheLine?: boolean;
442
+ startDateTime?: string;
443
+ status?: "proposed" | "hold" | "booked" | "cancelled";
444
+ supplierName?: string;
445
+ supplierReference?: string;
446
+ timeZone?: string;
447
+ title?: string | null;
448
+ travelers?: string[];
449
+ type?: "activity";
450
+ updatedAt?: string;
451
+ [key: string]: unknown;
452
+ } | {
453
+ advisorInsights?: string | null;
454
+ amenities?: string[];
455
+ approvedAt?: string | null;
456
+ approvedBy?: string | null;
457
+ attachments?: Attachment[] | null;
458
+ countTravelers?: number;
459
+ createdAt?: string;
460
+ createdBy?: string;
461
+ currency?: string;
462
+ details?: string | null;
463
+ endDateTime?: string | null;
464
+ groupId?: string;
465
+ hash?: string;
466
+ id: string;
467
+ images?: Attachment[] | null;
468
+ isOnSitePayment?: boolean;
469
+ lastModifiedBy?: string;
470
+ location?: Location | null;
471
+ metadata?: {
472
+ [key: string]: unknown;
473
+ };
474
+ price?: number;
475
+ priceInUsd?: number | null;
476
+ rate?: number | null;
477
+ startDateTime?: string;
478
+ status?: "proposed" | "hold" | "booked" | "cancelled";
479
+ title?: string | null;
480
+ type?: "restaurant";
481
+ updatedAt?: string;
482
+ [key: string]: unknown;
483
+ } | {
484
+ advisorInsights?: string | null;
485
+ amenities?: string[];
486
+ approvedAt?: string | null;
487
+ approvedBy?: string | null;
488
+ attachments?: Attachment[] | null;
489
+ countTravelers?: number;
490
+ createdAt?: string;
491
+ createdBy?: string;
492
+ currency?: string;
493
+ details?: string | null;
494
+ endDateTime?: string | null;
495
+ groupId?: string;
496
+ hash?: string;
497
+ id: string;
498
+ images?: Attachment[] | null;
499
+ isOnSitePayment?: boolean;
500
+ lastModifiedBy?: string;
501
+ location?: Location | null;
502
+ metadata?: {
503
+ [key: string]: unknown;
504
+ };
505
+ price?: number;
506
+ priceInUsd?: number | null;
507
+ rate?: number | null;
508
+ startDateTime?: string;
509
+ title?: string;
510
+ type?: "custom";
511
+ updatedAt?: string;
512
+ [key: string]: unknown;
513
+ };
514
+ unset?: "endDateTime"[];
515
+ } | {
516
+ operation: "add";
517
+ segment?: {
518
+ advisorInsights?: string | null;
519
+ amenities?: string[];
520
+ approvedAt?: string | null;
521
+ approvedBy?: string | null;
522
+ attachments?: Attachment[] | null;
523
+ baggageCharges?: FlightBaggageCharge[];
524
+ brandFeatures?: FlightBrandFeatureSnapshot[];
525
+ cabin?: "BUSINESS" | "ECONOMY" | "FIRST" | "PREMIUM_ECONOMY";
526
+ commercialSnapshot?: BookingCommercialSnapshot;
527
+ countTravelers?: number;
528
+ createdAt?: string;
529
+ createdBy?: string;
530
+ currency?: string;
531
+ details?: string | null;
532
+ endDateTime?: string | null;
533
+ fareRules?: FlightFareRuleSnapshot[];
534
+ flightIndex?: string;
535
+ flightType: "one-way" | "round-trip" | "multi-city";
536
+ groupId?: string;
537
+ hash?: string;
538
+ id?: string;
539
+ images?: Attachment[] | null;
540
+ inbound?: FlightItinerary[];
541
+ isOnSitePayment?: boolean;
542
+ lastModifiedBy?: string;
543
+ location?: Location | null;
544
+ metadata?: {
545
+ [key: string]: unknown;
546
+ };
547
+ outbound?: FlightItinerary[];
548
+ owner?: FlightCarrierSnapshot;
549
+ passengers?: FlightPassengerSnapshot[];
550
+ policies?: QuotePolicy[];
551
+ price?: number;
552
+ priceInUsd?: number | null;
553
+ priceSnapshot?: BookingPriceSnapshot;
554
+ rate?: number | null;
555
+ rules?: FlightRules;
556
+ startDateTime?: string;
557
+ ticketingDeadline?: string | null;
558
+ title?: string | null;
559
+ type: "flight";
560
+ updatedAt?: string;
561
+ } | {
562
+ advisorInsights?: string | null;
563
+ amenities?: string[];
564
+ approvedAt?: string | null;
565
+ approvedBy?: string | null;
566
+ attachments?: Attachment[] | null;
567
+ bookingOccupancy?: {
568
+ rooms: {
569
+ adults: number;
570
+ children: number;
571
+ childrenAges: number[];
572
+ }[];
573
+ };
574
+ checkinDate: string;
575
+ checkoutDate: string;
576
+ commercialSnapshot?: BookingCommercialSnapshot;
577
+ countTravelers?: number;
578
+ createdAt?: string;
579
+ createdBy?: string;
580
+ currency?: string;
581
+ details?: string | null;
582
+ endDateTime?: string | null;
583
+ groupId?: string;
584
+ hash?: string;
585
+ id?: string;
586
+ images?: Attachment[] | null;
587
+ isOnSitePayment?: boolean;
588
+ lastModifiedBy?: string;
589
+ location?: Location | null;
590
+ lodge: {
591
+ checkin?: string | null;
592
+ checkout?: string | null;
593
+ guests?: string[];
594
+ name: string;
595
+ rooms?: Room[] | null;
596
+ stars?: number;
597
+ status?: "proposed" | "hold" | "booked" | "cancelled";
598
+ };
599
+ metadata?: {
600
+ [key: string]: unknown;
601
+ };
602
+ price?: number;
603
+ priceInUsd?: number | null;
604
+ rate?: number | null;
605
+ startDateTime?: string;
606
+ title?: string | null;
607
+ type: "lodging";
608
+ updatedAt?: string;
609
+ } | {
610
+ advisorInsights?: string | null;
611
+ amenities?: string[];
612
+ approvedAt?: string | null;
613
+ approvedBy?: string | null;
614
+ attachments?: Attachment[] | null;
615
+ carType?: string;
616
+ countTravelers?: number;
617
+ createdAt?: string;
618
+ createdBy?: string;
619
+ currency?: string;
620
+ details?: string | null;
621
+ dropoff: Location;
622
+ endDateTime?: string | null;
623
+ engine?: "ELECTRIC" | "HYBRID" | "GASOLINE" | "DIESEL";
624
+ groupId?: string;
625
+ hash?: string;
626
+ id?: string;
627
+ images?: Attachment[] | null;
628
+ insurance?: string;
629
+ isOnSitePayment?: boolean;
630
+ lastModifiedBy?: string;
631
+ location?: Location | null;
632
+ metadata?: {
633
+ [key: string]: unknown;
634
+ };
635
+ model?: string;
636
+ pickup: Location;
637
+ price?: number;
638
+ priceInUsd?: number | null;
639
+ rate?: number | null;
640
+ startDateTime?: string;
641
+ title?: string | null;
642
+ transmission?: "MANUAL" | "AUTOMATIC";
643
+ type: "car_rental";
644
+ updatedAt?: string;
645
+ } | {
646
+ advisorInsights?: string | null;
647
+ amenities?: string[];
648
+ approvedAt?: string | null;
649
+ approvedBy?: string | null;
650
+ arrivalDateTime?: string;
651
+ arrivalLocation?: Location;
652
+ arrivalTimezone?: string;
653
+ attachments?: Attachment[] | null;
654
+ countTravelers?: number;
655
+ createdAt?: string;
656
+ createdBy?: string;
657
+ currency?: string;
658
+ departureDateTime?: string;
659
+ departureLocation?: Location;
660
+ departureTimezone?: string;
661
+ details?: string | null;
662
+ endDateTime?: string | null;
663
+ groupId?: string;
664
+ guests?: number;
665
+ hash?: string;
666
+ id?: string;
667
+ images?: Attachment[] | null;
668
+ isOnSitePayment?: boolean;
669
+ lastModifiedBy?: string;
670
+ location?: Location | null;
671
+ metadata?: {
672
+ [key: string]: unknown;
673
+ };
674
+ price?: number;
675
+ priceInUsd?: number | null;
676
+ rate?: number | null;
677
+ startDateTime?: string;
678
+ title?: string | null;
679
+ transportationType?: "ground_transportation" | "train" | "bus" | "automobile";
680
+ type: "transportation";
681
+ updatedAt?: string;
682
+ } | {
683
+ advisorInsights?: string | null;
684
+ amenities?: string[];
685
+ approvedAt?: string | null;
686
+ approvedBy?: string | null;
687
+ arrivalDateTime?: string;
688
+ arrivalLocation?: Location;
689
+ arrivalTimezone?: string;
690
+ attachments?: Attachment[] | null;
691
+ countTravelers?: number;
692
+ createdAt?: string;
693
+ createdBy?: string;
694
+ currency?: string;
695
+ departureDateTime?: string;
696
+ departureLocation: Location;
697
+ departureTimezone?: string;
698
+ details?: string | null;
699
+ endDateTime?: string | null;
700
+ groupId?: string;
701
+ hash?: string;
702
+ id?: string;
703
+ images?: Attachment[] | null;
704
+ isOnSitePayment?: boolean;
705
+ lastModifiedBy?: string;
706
+ location?: Location | null;
707
+ metadata?: {
708
+ [key: string]: unknown;
709
+ };
710
+ price?: number;
711
+ priceInUsd?: number | null;
712
+ rate?: number | null;
713
+ startDateTime?: string;
714
+ status?: "proposed" | "hold" | "booked" | "cancelled";
715
+ stop?: Location[];
716
+ suites?: Suite[];
717
+ title?: string | null;
718
+ type: "cruise";
719
+ updatedAt?: string;
720
+ } | {
721
+ additionalInfo?: string[];
722
+ advisorInsights?: string | null;
723
+ amenities?: string[];
724
+ approvedAt?: string | null;
725
+ approvedBy?: string | null;
726
+ attachments?: Attachment[] | null;
727
+ bookingQuestions?: string[];
728
+ cancellationPolicy?: {
729
+ cancelIfBadWeather?: boolean;
730
+ freeDeadline?: string;
731
+ isCancellable: boolean;
732
+ };
733
+ countTravelers?: number;
734
+ createdAt?: string;
735
+ createdBy?: string;
736
+ currency?: string;
737
+ details?: string | null;
738
+ dropoffInstructions?: string;
739
+ dropoffLocation?: Location;
740
+ dropoffTime?: string;
741
+ durationMinutes?: number;
742
+ durationText?: string;
743
+ endDateTime?: string | null;
744
+ exclusions?: string[];
745
+ freeCancellation?: boolean;
746
+ groupId?: string;
747
+ hash?: string;
748
+ id?: string;
749
+ images?: Attachment[] | null;
750
+ inclusions?: string[];
751
+ instantConfirmation?: boolean;
752
+ isOnSitePayment?: boolean;
753
+ itinerarySteps?: {
754
+ admissionIncluded?: "YES" | "NO" | "NOT_APPLICABLE";
755
+ description?: string;
756
+ durationMinutes?: number;
757
+ durationText?: string;
758
+ location?: Location;
759
+ passByWithoutStopping?: boolean;
760
+ title: string;
761
+ }[];
762
+ languages?: string[];
763
+ lastModifiedBy?: string;
764
+ location?: Location;
765
+ maxTravelersPerBooking?: number;
766
+ metadata?: {
767
+ [key: string]: unknown;
768
+ };
769
+ minTravelersPerBooking?: number;
770
+ mobileTicket?: boolean;
771
+ pickupInstructions?: string;
772
+ pickupLocation?: Location;
773
+ pickupTime?: string;
774
+ price?: number;
775
+ priceInUsd?: number | null;
776
+ privateTour?: boolean;
777
+ provider?: string;
778
+ providerBookingRef?: string;
779
+ providerProductCode?: string;
780
+ providerProductUrl?: string;
781
+ rate?: number | null;
782
+ reviews?: {
783
+ averageRating?: number;
784
+ totalReviews?: number;
785
+ };
786
+ skipTheLine?: boolean;
787
+ startDateTime?: string;
788
+ status?: "proposed" | "hold" | "booked" | "cancelled";
789
+ supplierName?: string;
790
+ supplierReference?: string;
791
+ timeZone?: string;
792
+ title?: string | null;
793
+ travelers?: string[];
794
+ type: "activity";
795
+ updatedAt?: string;
796
+ } | {
797
+ advisorInsights?: string | null;
798
+ amenities?: string[];
799
+ approvedAt?: string | null;
800
+ approvedBy?: string | null;
801
+ attachments?: Attachment[] | null;
802
+ countTravelers?: number;
803
+ createdAt?: string;
804
+ createdBy?: string;
805
+ currency?: string;
806
+ details?: string | null;
807
+ endDateTime?: string | null;
808
+ groupId?: string;
809
+ hash?: string;
810
+ id?: string;
811
+ images?: Attachment[] | null;
812
+ isOnSitePayment?: boolean;
813
+ lastModifiedBy?: string;
814
+ location?: Location | null;
815
+ metadata?: {
816
+ [key: string]: unknown;
817
+ };
818
+ price?: number;
819
+ priceInUsd?: number | null;
820
+ rate?: number | null;
821
+ startDateTime?: string;
822
+ status?: "proposed" | "hold" | "booked" | "cancelled";
823
+ title?: string | null;
824
+ type: "restaurant";
825
+ updatedAt?: string;
826
+ } | {
827
+ advisorInsights?: string | null;
828
+ amenities?: string[];
829
+ approvedAt?: string | null;
830
+ approvedBy?: string | null;
831
+ attachments?: Attachment[] | null;
832
+ countTravelers?: number;
833
+ createdAt?: string;
834
+ createdBy?: string;
835
+ currency?: string;
836
+ details?: string | null;
837
+ endDateTime?: string | null;
838
+ groupId?: string;
839
+ hash?: string;
840
+ id?: string;
841
+ images?: Attachment[] | null;
842
+ isOnSitePayment?: boolean;
843
+ lastModifiedBy?: string;
844
+ location?: Location | null;
845
+ metadata?: {
846
+ [key: string]: unknown;
847
+ };
848
+ price?: number;
849
+ priceInUsd?: number | null;
850
+ rate?: number | null;
851
+ startDateTime?: string;
852
+ title: string;
853
+ type: "custom";
854
+ updatedAt?: string;
855
+ };
856
+ })[];
857
+ } | ({
858
+ operation: "delete";
859
+ segment: {
860
+ id: string;
861
+ };
862
+ } | {
863
+ operation: "update";
864
+ segment: {
865
+ advisorInsights?: string | null;
866
+ amenities?: string[];
867
+ approvedAt?: string | null;
868
+ approvedBy?: string | null;
869
+ attachments?: Attachment[] | null;
870
+ baggageCharges?: FlightBaggageCharge[];
871
+ brandFeatures?: FlightBrandFeatureSnapshot[];
872
+ cabin?: "BUSINESS" | "ECONOMY" | "FIRST" | "PREMIUM_ECONOMY";
873
+ commercialSnapshot?: BookingCommercialSnapshot;
874
+ countTravelers?: number;
875
+ createdAt?: string;
876
+ createdBy?: string;
877
+ currency?: string;
878
+ details?: string | null;
879
+ endDateTime?: string | null;
880
+ fareRules?: FlightFareRuleSnapshot[];
881
+ flightIndex?: string;
882
+ flightType?: "one-way" | "round-trip" | "multi-city";
883
+ groupId?: string;
884
+ hash?: string;
885
+ id: string;
886
+ images?: Attachment[] | null;
887
+ inbound?: FlightItinerary[];
888
+ isOnSitePayment?: boolean;
889
+ lastModifiedBy?: string;
890
+ location?: Location | null;
891
+ metadata?: {
892
+ [key: string]: unknown;
893
+ };
894
+ outbound?: FlightItinerary[];
895
+ owner?: FlightCarrierSnapshot;
896
+ passengers?: FlightPassengerSnapshot[];
897
+ policies?: QuotePolicy[];
898
+ price?: number;
899
+ priceInUsd?: number | null;
900
+ priceSnapshot?: BookingPriceSnapshot;
901
+ rate?: number | null;
902
+ rules?: FlightRules;
903
+ startDateTime?: string;
904
+ ticketingDeadline?: string | null;
905
+ title?: string | null;
906
+ type?: "flight";
907
+ updatedAt?: string;
908
+ [key: string]: unknown;
909
+ } | {
910
+ advisorInsights?: string | null;
911
+ amenities?: string[];
912
+ approvedAt?: string | null;
913
+ approvedBy?: string | null;
914
+ attachments?: Attachment[] | null;
915
+ bookingOccupancy?: {
916
+ rooms: {
917
+ adults: number;
918
+ children: number;
919
+ childrenAges: number[];
920
+ }[];
921
+ };
922
+ checkinDate?: string;
923
+ checkoutDate?: string;
924
+ commercialSnapshot?: BookingCommercialSnapshot;
925
+ countTravelers?: number;
926
+ createdAt?: string;
927
+ createdBy?: string;
928
+ currency?: string;
929
+ details?: string | null;
930
+ endDateTime?: string | null;
931
+ groupId?: string;
932
+ hash?: string;
933
+ id: string;
934
+ images?: Attachment[] | null;
935
+ isOnSitePayment?: boolean;
936
+ lastModifiedBy?: string;
937
+ location?: Location | null;
938
+ lodge?: {
939
+ checkin?: string | null;
940
+ checkout?: string | null;
941
+ guests?: string[];
942
+ name: string;
943
+ rooms?: Room[] | null;
944
+ stars?: number;
945
+ status?: "proposed" | "hold" | "booked" | "cancelled";
946
+ };
947
+ metadata?: {
948
+ [key: string]: unknown;
949
+ };
950
+ price?: number;
951
+ priceInUsd?: number | null;
952
+ rate?: number | null;
953
+ startDateTime?: string;
954
+ title?: string | null;
955
+ type?: "lodging";
956
+ updatedAt?: string;
957
+ [key: string]: unknown;
958
+ } | {
959
+ advisorInsights?: string | null;
960
+ amenities?: string[];
961
+ approvedAt?: string | null;
962
+ approvedBy?: string | null;
963
+ attachments?: Attachment[] | null;
964
+ carType?: string;
965
+ countTravelers?: number;
966
+ createdAt?: string;
967
+ createdBy?: string;
968
+ currency?: string;
969
+ details?: string | null;
970
+ dropoff?: Location;
971
+ endDateTime?: string | null;
972
+ engine?: "ELECTRIC" | "HYBRID" | "GASOLINE" | "DIESEL";
973
+ groupId?: string;
974
+ hash?: string;
975
+ id: string;
976
+ images?: Attachment[] | null;
977
+ insurance?: string;
978
+ isOnSitePayment?: boolean;
979
+ lastModifiedBy?: string;
980
+ location?: Location | null;
981
+ metadata?: {
982
+ [key: string]: unknown;
983
+ };
984
+ model?: string;
985
+ pickup?: Location;
986
+ price?: number;
987
+ priceInUsd?: number | null;
988
+ rate?: number | null;
989
+ startDateTime?: string;
990
+ title?: string | null;
991
+ transmission?: "MANUAL" | "AUTOMATIC";
992
+ type?: "car_rental";
993
+ updatedAt?: string;
994
+ [key: string]: unknown;
995
+ } | {
996
+ advisorInsights?: string | null;
997
+ amenities?: string[];
998
+ approvedAt?: string | null;
999
+ approvedBy?: string | null;
1000
+ arrivalDateTime?: string;
1001
+ arrivalLocation?: Location;
1002
+ arrivalTimezone?: string;
1003
+ attachments?: Attachment[] | null;
1004
+ countTravelers?: number;
1005
+ createdAt?: string;
1006
+ createdBy?: string;
1007
+ currency?: string;
1008
+ departureDateTime?: string;
1009
+ departureLocation?: Location;
1010
+ departureTimezone?: string;
1011
+ details?: string | null;
1012
+ endDateTime?: string | null;
1013
+ groupId?: string;
1014
+ guests?: number;
1015
+ hash?: string;
1016
+ id: string;
1017
+ images?: Attachment[] | null;
1018
+ isOnSitePayment?: boolean;
1019
+ lastModifiedBy?: string;
1020
+ location?: Location | null;
1021
+ metadata?: {
1022
+ [key: string]: unknown;
1023
+ };
1024
+ price?: number;
1025
+ priceInUsd?: number | null;
1026
+ rate?: number | null;
1027
+ startDateTime?: string;
1028
+ title?: string | null;
1029
+ transportationType?: "ground_transportation" | "train" | "bus" | "automobile";
1030
+ type?: "transportation";
1031
+ updatedAt?: string;
1032
+ [key: string]: unknown;
1033
+ } | {
1034
+ advisorInsights?: string | null;
1035
+ amenities?: string[];
1036
+ approvedAt?: string | null;
1037
+ approvedBy?: string | null;
1038
+ arrivalDateTime?: string;
1039
+ arrivalLocation?: Location;
1040
+ arrivalTimezone?: string;
1041
+ attachments?: Attachment[] | null;
1042
+ countTravelers?: number;
1043
+ createdAt?: string;
1044
+ createdBy?: string;
1045
+ currency?: string;
1046
+ departureDateTime?: string;
1047
+ departureLocation?: Location;
1048
+ departureTimezone?: string;
1049
+ details?: string | null;
1050
+ endDateTime?: string | null;
1051
+ groupId?: string;
1052
+ hash?: string;
1053
+ id: string;
1054
+ images?: Attachment[] | null;
1055
+ isOnSitePayment?: boolean;
1056
+ lastModifiedBy?: string;
1057
+ location?: Location | null;
1058
+ metadata?: {
1059
+ [key: string]: unknown;
1060
+ };
1061
+ price?: number;
1062
+ priceInUsd?: number | null;
1063
+ rate?: number | null;
1064
+ startDateTime?: string;
1065
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1066
+ stop?: Location[];
1067
+ suites?: Suite[];
1068
+ title?: string | null;
1069
+ type?: "cruise";
1070
+ updatedAt?: string;
1071
+ [key: string]: unknown;
1072
+ } | {
1073
+ additionalInfo?: string[];
1074
+ advisorInsights?: string | null;
1075
+ amenities?: string[];
1076
+ approvedAt?: string | null;
1077
+ approvedBy?: string | null;
1078
+ attachments?: Attachment[] | null;
1079
+ bookingQuestions?: string[];
1080
+ cancellationPolicy?: {
1081
+ cancelIfBadWeather?: boolean;
1082
+ freeDeadline?: string;
1083
+ isCancellable: boolean;
1084
+ };
1085
+ countTravelers?: number;
1086
+ createdAt?: string;
1087
+ createdBy?: string;
1088
+ currency?: string;
1089
+ details?: string | null;
1090
+ dropoffInstructions?: string;
1091
+ dropoffLocation?: Location;
1092
+ dropoffTime?: string;
1093
+ durationMinutes?: number;
1094
+ durationText?: string;
1095
+ endDateTime?: string | null;
1096
+ exclusions?: string[];
1097
+ freeCancellation?: boolean;
1098
+ groupId?: string;
1099
+ hash?: string;
1100
+ id: string;
1101
+ images?: Attachment[] | null;
1102
+ inclusions?: string[];
1103
+ instantConfirmation?: boolean;
1104
+ isOnSitePayment?: boolean;
1105
+ itinerarySteps?: {
1106
+ admissionIncluded?: "YES" | "NO" | "NOT_APPLICABLE";
1107
+ description?: string;
1108
+ durationMinutes?: number;
1109
+ durationText?: string;
1110
+ location?: Location;
1111
+ passByWithoutStopping?: boolean;
1112
+ title: string;
1113
+ }[];
1114
+ languages?: string[];
1115
+ lastModifiedBy?: string;
1116
+ location?: Location;
1117
+ maxTravelersPerBooking?: number;
1118
+ metadata?: {
1119
+ [key: string]: unknown;
1120
+ };
1121
+ minTravelersPerBooking?: number;
1122
+ mobileTicket?: boolean;
1123
+ pickupInstructions?: string;
1124
+ pickupLocation?: Location;
1125
+ pickupTime?: string;
1126
+ price?: number;
1127
+ priceInUsd?: number | null;
1128
+ privateTour?: boolean;
1129
+ provider?: string;
1130
+ providerBookingRef?: string;
1131
+ providerProductCode?: string;
1132
+ providerProductUrl?: string;
1133
+ rate?: number | null;
1134
+ reviews?: {
1135
+ averageRating?: number;
1136
+ totalReviews?: number;
1137
+ };
1138
+ skipTheLine?: boolean;
1139
+ startDateTime?: string;
1140
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1141
+ supplierName?: string;
1142
+ supplierReference?: string;
1143
+ timeZone?: string;
1144
+ title?: string | null;
1145
+ travelers?: string[];
1146
+ type?: "activity";
1147
+ updatedAt?: string;
1148
+ [key: string]: unknown;
1149
+ } | {
1150
+ advisorInsights?: string | null;
1151
+ amenities?: string[];
1152
+ approvedAt?: string | null;
1153
+ approvedBy?: string | null;
1154
+ attachments?: Attachment[] | null;
1155
+ countTravelers?: number;
1156
+ createdAt?: string;
1157
+ createdBy?: string;
1158
+ currency?: string;
1159
+ details?: string | null;
1160
+ endDateTime?: string | null;
1161
+ groupId?: string;
1162
+ hash?: string;
1163
+ id: string;
1164
+ images?: Attachment[] | null;
1165
+ isOnSitePayment?: boolean;
1166
+ lastModifiedBy?: string;
1167
+ location?: Location | null;
1168
+ metadata?: {
1169
+ [key: string]: unknown;
1170
+ };
1171
+ price?: number;
1172
+ priceInUsd?: number | null;
1173
+ rate?: number | null;
1174
+ startDateTime?: string;
1175
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1176
+ title?: string | null;
1177
+ type?: "restaurant";
1178
+ updatedAt?: string;
1179
+ [key: string]: unknown;
1180
+ } | {
1181
+ advisorInsights?: string | null;
1182
+ amenities?: string[];
1183
+ approvedAt?: string | null;
1184
+ approvedBy?: string | null;
1185
+ attachments?: Attachment[] | null;
1186
+ countTravelers?: number;
1187
+ createdAt?: string;
1188
+ createdBy?: string;
1189
+ currency?: string;
1190
+ details?: string | null;
1191
+ endDateTime?: string | null;
1192
+ groupId?: string;
1193
+ hash?: string;
1194
+ id: string;
1195
+ images?: Attachment[] | null;
1196
+ isOnSitePayment?: boolean;
1197
+ lastModifiedBy?: string;
1198
+ location?: Location | null;
1199
+ metadata?: {
1200
+ [key: string]: unknown;
1201
+ };
1202
+ price?: number;
1203
+ priceInUsd?: number | null;
1204
+ rate?: number | null;
1205
+ startDateTime?: string;
1206
+ title?: string;
1207
+ type?: "custom";
1208
+ updatedAt?: string;
1209
+ [key: string]: unknown;
1210
+ };
1211
+ unset?: "endDateTime"[];
1212
+ } | {
1213
+ operation: "add";
1214
+ segment?: {
1215
+ advisorInsights?: string | null;
1216
+ amenities?: string[];
1217
+ approvedAt?: string | null;
1218
+ approvedBy?: string | null;
1219
+ attachments?: Attachment[] | null;
1220
+ baggageCharges?: FlightBaggageCharge[];
1221
+ brandFeatures?: FlightBrandFeatureSnapshot[];
1222
+ cabin?: "BUSINESS" | "ECONOMY" | "FIRST" | "PREMIUM_ECONOMY";
1223
+ commercialSnapshot?: BookingCommercialSnapshot;
1224
+ countTravelers?: number;
1225
+ createdAt?: string;
1226
+ createdBy?: string;
1227
+ currency?: string;
1228
+ details?: string | null;
1229
+ endDateTime?: string | null;
1230
+ fareRules?: FlightFareRuleSnapshot[];
1231
+ flightIndex?: string;
1232
+ flightType: "one-way" | "round-trip" | "multi-city";
1233
+ groupId?: string;
1234
+ hash?: string;
1235
+ id?: string;
1236
+ images?: Attachment[] | null;
1237
+ inbound?: FlightItinerary[];
1238
+ isOnSitePayment?: boolean;
1239
+ lastModifiedBy?: string;
1240
+ location?: Location | null;
1241
+ metadata?: {
1242
+ [key: string]: unknown;
1243
+ };
1244
+ outbound?: FlightItinerary[];
1245
+ owner?: FlightCarrierSnapshot;
1246
+ passengers?: FlightPassengerSnapshot[];
1247
+ policies?: QuotePolicy[];
1248
+ price?: number;
1249
+ priceInUsd?: number | null;
1250
+ priceSnapshot?: BookingPriceSnapshot;
1251
+ rate?: number | null;
1252
+ rules?: FlightRules;
1253
+ startDateTime?: string;
1254
+ ticketingDeadline?: string | null;
1255
+ title?: string | null;
1256
+ type: "flight";
1257
+ updatedAt?: string;
1258
+ } | {
1259
+ advisorInsights?: string | null;
1260
+ amenities?: string[];
1261
+ approvedAt?: string | null;
1262
+ approvedBy?: string | null;
1263
+ attachments?: Attachment[] | null;
1264
+ bookingOccupancy?: {
1265
+ rooms: {
1266
+ adults: number;
1267
+ children: number;
1268
+ childrenAges: number[];
1269
+ }[];
1270
+ };
1271
+ checkinDate: string;
1272
+ checkoutDate: string;
1273
+ commercialSnapshot?: BookingCommercialSnapshot;
1274
+ countTravelers?: number;
1275
+ createdAt?: string;
1276
+ createdBy?: string;
1277
+ currency?: string;
1278
+ details?: string | null;
1279
+ endDateTime?: string | null;
1280
+ groupId?: string;
1281
+ hash?: string;
1282
+ id?: string;
1283
+ images?: Attachment[] | null;
1284
+ isOnSitePayment?: boolean;
1285
+ lastModifiedBy?: string;
1286
+ location?: Location | null;
1287
+ lodge: {
1288
+ checkin?: string | null;
1289
+ checkout?: string | null;
1290
+ guests?: string[];
1291
+ name: string;
1292
+ rooms?: Room[] | null;
1293
+ stars?: number;
1294
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1295
+ };
1296
+ metadata?: {
1297
+ [key: string]: unknown;
1298
+ };
1299
+ price?: number;
1300
+ priceInUsd?: number | null;
1301
+ rate?: number | null;
1302
+ startDateTime?: string;
1303
+ title?: string | null;
1304
+ type: "lodging";
1305
+ updatedAt?: string;
1306
+ } | {
1307
+ advisorInsights?: string | null;
1308
+ amenities?: string[];
1309
+ approvedAt?: string | null;
1310
+ approvedBy?: string | null;
1311
+ attachments?: Attachment[] | null;
1312
+ carType?: string;
1313
+ countTravelers?: number;
1314
+ createdAt?: string;
1315
+ createdBy?: string;
1316
+ currency?: string;
1317
+ details?: string | null;
1318
+ dropoff: Location;
1319
+ endDateTime?: string | null;
1320
+ engine?: "ELECTRIC" | "HYBRID" | "GASOLINE" | "DIESEL";
1321
+ groupId?: string;
1322
+ hash?: string;
1323
+ id?: string;
1324
+ images?: Attachment[] | null;
1325
+ insurance?: string;
1326
+ isOnSitePayment?: boolean;
1327
+ lastModifiedBy?: string;
1328
+ location?: Location | null;
1329
+ metadata?: {
1330
+ [key: string]: unknown;
1331
+ };
1332
+ model?: string;
1333
+ pickup: Location;
1334
+ price?: number;
1335
+ priceInUsd?: number | null;
1336
+ rate?: number | null;
1337
+ startDateTime?: string;
1338
+ title?: string | null;
1339
+ transmission?: "MANUAL" | "AUTOMATIC";
1340
+ type: "car_rental";
1341
+ updatedAt?: string;
1342
+ } | {
1343
+ advisorInsights?: string | null;
1344
+ amenities?: string[];
1345
+ approvedAt?: string | null;
1346
+ approvedBy?: string | null;
1347
+ arrivalDateTime?: string;
1348
+ arrivalLocation?: Location;
1349
+ arrivalTimezone?: string;
1350
+ attachments?: Attachment[] | null;
1351
+ countTravelers?: number;
1352
+ createdAt?: string;
1353
+ createdBy?: string;
1354
+ currency?: string;
1355
+ departureDateTime?: string;
1356
+ departureLocation?: Location;
1357
+ departureTimezone?: string;
1358
+ details?: string | null;
1359
+ endDateTime?: string | null;
1360
+ groupId?: string;
1361
+ guests?: number;
1362
+ hash?: string;
1363
+ id?: string;
1364
+ images?: Attachment[] | null;
1365
+ isOnSitePayment?: boolean;
1366
+ lastModifiedBy?: string;
1367
+ location?: Location | null;
1368
+ metadata?: {
1369
+ [key: string]: unknown;
1370
+ };
1371
+ price?: number;
1372
+ priceInUsd?: number | null;
1373
+ rate?: number | null;
1374
+ startDateTime?: string;
1375
+ title?: string | null;
1376
+ transportationType?: "ground_transportation" | "train" | "bus" | "automobile";
1377
+ type: "transportation";
1378
+ updatedAt?: string;
1379
+ } | {
1380
+ advisorInsights?: string | null;
1381
+ amenities?: string[];
1382
+ approvedAt?: string | null;
1383
+ approvedBy?: string | null;
1384
+ arrivalDateTime?: string;
1385
+ arrivalLocation?: Location;
1386
+ arrivalTimezone?: string;
1387
+ attachments?: Attachment[] | null;
1388
+ countTravelers?: number;
1389
+ createdAt?: string;
1390
+ createdBy?: string;
1391
+ currency?: string;
1392
+ departureDateTime?: string;
1393
+ departureLocation: Location;
1394
+ departureTimezone?: string;
1395
+ details?: string | null;
1396
+ endDateTime?: string | null;
1397
+ groupId?: string;
1398
+ hash?: string;
1399
+ id?: string;
1400
+ images?: Attachment[] | null;
1401
+ isOnSitePayment?: boolean;
1402
+ lastModifiedBy?: string;
1403
+ location?: Location | null;
1404
+ metadata?: {
1405
+ [key: string]: unknown;
1406
+ };
1407
+ price?: number;
1408
+ priceInUsd?: number | null;
1409
+ rate?: number | null;
1410
+ startDateTime?: string;
1411
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1412
+ stop?: Location[];
1413
+ suites?: Suite[];
1414
+ title?: string | null;
1415
+ type: "cruise";
1416
+ updatedAt?: string;
1417
+ } | {
1418
+ additionalInfo?: string[];
1419
+ advisorInsights?: string | null;
1420
+ amenities?: string[];
1421
+ approvedAt?: string | null;
1422
+ approvedBy?: string | null;
1423
+ attachments?: Attachment[] | null;
1424
+ bookingQuestions?: string[];
1425
+ cancellationPolicy?: {
1426
+ cancelIfBadWeather?: boolean;
1427
+ freeDeadline?: string;
1428
+ isCancellable: boolean;
1429
+ };
1430
+ countTravelers?: number;
1431
+ createdAt?: string;
1432
+ createdBy?: string;
1433
+ currency?: string;
1434
+ details?: string | null;
1435
+ dropoffInstructions?: string;
1436
+ dropoffLocation?: Location;
1437
+ dropoffTime?: string;
1438
+ durationMinutes?: number;
1439
+ durationText?: string;
1440
+ endDateTime?: string | null;
1441
+ exclusions?: string[];
1442
+ freeCancellation?: boolean;
1443
+ groupId?: string;
1444
+ hash?: string;
1445
+ id?: string;
1446
+ images?: Attachment[] | null;
1447
+ inclusions?: string[];
1448
+ instantConfirmation?: boolean;
1449
+ isOnSitePayment?: boolean;
1450
+ itinerarySteps?: {
1451
+ admissionIncluded?: "YES" | "NO" | "NOT_APPLICABLE";
1452
+ description?: string;
1453
+ durationMinutes?: number;
1454
+ durationText?: string;
1455
+ location?: Location;
1456
+ passByWithoutStopping?: boolean;
1457
+ title: string;
1458
+ }[];
1459
+ languages?: string[];
1460
+ lastModifiedBy?: string;
1461
+ location?: Location;
1462
+ maxTravelersPerBooking?: number;
1463
+ metadata?: {
1464
+ [key: string]: unknown;
1465
+ };
1466
+ minTravelersPerBooking?: number;
1467
+ mobileTicket?: boolean;
1468
+ pickupInstructions?: string;
1469
+ pickupLocation?: Location;
1470
+ pickupTime?: string;
1471
+ price?: number;
1472
+ priceInUsd?: number | null;
1473
+ privateTour?: boolean;
1474
+ provider?: string;
1475
+ providerBookingRef?: string;
1476
+ providerProductCode?: string;
1477
+ providerProductUrl?: string;
1478
+ rate?: number | null;
1479
+ reviews?: {
1480
+ averageRating?: number;
1481
+ totalReviews?: number;
1482
+ };
1483
+ skipTheLine?: boolean;
1484
+ startDateTime?: string;
1485
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1486
+ supplierName?: string;
1487
+ supplierReference?: string;
1488
+ timeZone?: string;
1489
+ title?: string | null;
1490
+ travelers?: string[];
1491
+ type: "activity";
1492
+ updatedAt?: string;
1493
+ } | {
1494
+ advisorInsights?: string | null;
1495
+ amenities?: string[];
1496
+ approvedAt?: string | null;
1497
+ approvedBy?: string | null;
1498
+ attachments?: Attachment[] | null;
1499
+ countTravelers?: number;
1500
+ createdAt?: string;
1501
+ createdBy?: string;
1502
+ currency?: string;
1503
+ details?: string | null;
1504
+ endDateTime?: string | null;
1505
+ groupId?: string;
1506
+ hash?: string;
1507
+ id?: string;
1508
+ images?: Attachment[] | null;
1509
+ isOnSitePayment?: boolean;
1510
+ lastModifiedBy?: string;
1511
+ location?: Location | null;
1512
+ metadata?: {
1513
+ [key: string]: unknown;
1514
+ };
1515
+ price?: number;
1516
+ priceInUsd?: number | null;
1517
+ rate?: number | null;
1518
+ startDateTime?: string;
1519
+ status?: "proposed" | "hold" | "booked" | "cancelled";
1520
+ title?: string | null;
1521
+ type: "restaurant";
1522
+ updatedAt?: string;
1523
+ } | {
1524
+ advisorInsights?: string | null;
1525
+ amenities?: string[];
1526
+ approvedAt?: string | null;
1527
+ approvedBy?: string | null;
1528
+ attachments?: Attachment[] | null;
1529
+ countTravelers?: number;
1530
+ createdAt?: string;
1531
+ createdBy?: string;
1532
+ currency?: string;
1533
+ details?: string | null;
1534
+ endDateTime?: string | null;
1535
+ groupId?: string;
1536
+ hash?: string;
1537
+ id?: string;
1538
+ images?: Attachment[] | null;
1539
+ isOnSitePayment?: boolean;
1540
+ lastModifiedBy?: string;
1541
+ location?: Location | null;
1542
+ metadata?: {
1543
+ [key: string]: unknown;
1544
+ };
1545
+ price?: number;
1546
+ priceInUsd?: number | null;
1547
+ rate?: number | null;
1548
+ startDateTime?: string;
1549
+ title: string;
1550
+ type: "custom";
1551
+ updatedAt?: string;
1552
+ };
1553
+ })[];
1554
+ export interface SelectOptionBody {
1555
+ segmentId: string;
1556
+ }
1557
+ export interface SelectOptionResponse {
1558
+ success: true;
1559
+ }
1560
+ export interface SendTripItineraryBody {
1561
+ emails?: string[];
1562
+ skipNotification?: boolean;
1563
+ }
1564
+ export interface Suite {
1565
+ adults?: number | null;
1566
+ beds?: string[];
1567
+ children?: number | null;
1568
+ name?: string | null;
1569
+ policies?: {
1570
+ breakfast?: string | null;
1571
+ deadline?: string | null;
1572
+ refund?: string | null;
1573
+ } | null;
1574
+ travelers?: string[];
1575
+ }
1576
+ export type TripItineraryMode = "AUTO" | "CUSTOM";
1577
+ export interface UpdateTripItineraryBody {
1578
+ itinerary?: {
1579
+ attachments?: Attachment[] | null;
1580
+ notes?: {
1581
+ id: string;
1582
+ note: string;
1583
+ title: string;
1584
+ }[];
1585
+ };
1586
+ /**
1587
+ * AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set.
1588
+ * Omit to keep the current mode.
1589
+ */
1590
+ mode?: TripItineraryMode;
1591
+ status?: TripItineraryStatus;
1592
+ /**
1593
+ * The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the
1594
+ * current cost; in AUTO the cost is always the sum of the segments.
1595
+ */
1596
+ tripCost?: number;
1597
+ }
1598
+ export interface UpdateTripItineraryResponse {
1599
+ itinerary?: {
1600
+ attachments?: Attachment[] | null;
1601
+ notes?: {
1602
+ id: string;
1603
+ note: string;
1604
+ title: string;
1605
+ }[];
1606
+ };
1607
+ /**
1608
+ * AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set.
1609
+ * Omit to keep the current mode.
1610
+ */
1611
+ mode?: TripItineraryMode;
1612
+ status?: TripItineraryStatus;
1613
+ /**
1614
+ * The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the
1615
+ * current cost; in AUTO the cost is always the sum of the segments.
1616
+ */
1617
+ tripCost?: number;
1618
+ }
1619
+ export declare const SegmentOpBodyCodec: import("../_/codec.js").Codec;