@withnicer/sdk 0.0.0 → 1.0.0-beta.1

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 (80) hide show
  1. package/README.md +89 -4
  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/activity/client.d.ts +42 -0
  13. package/dist/activity/client.js +18 -0
  14. package/dist/activity/index.d.ts +5 -0
  15. package/dist/activity/index.js +4 -0
  16. package/dist/activity/models.d.ts +65 -0
  17. package/dist/activity/models.js +3 -0
  18. package/dist/client.d.ts +1680 -0
  19. package/dist/client.js +748 -0
  20. package/dist/crmSettings/client.d.ts +50 -0
  21. package/dist/crmSettings/client.js +25 -0
  22. package/dist/crmSettings/index.d.ts +5 -0
  23. package/dist/crmSettings/index.js +4 -0
  24. package/dist/crmSettings/models.d.ts +313 -0
  25. package/dist/crmSettings/models.js +3 -0
  26. package/dist/crmTrips/client.d.ts +100 -0
  27. package/dist/crmTrips/client.js +38 -0
  28. package/dist/crmTrips/index.d.ts +5 -0
  29. package/dist/crmTrips/index.js +4 -0
  30. package/dist/crmTrips/models.d.ts +193 -0
  31. package/dist/crmTrips/models.js +3 -0
  32. package/dist/crmTrips/travelers/client.d.ts +33 -0
  33. package/dist/crmTrips/travelers/client.js +18 -0
  34. package/dist/crmTrips/travelers/index.d.ts +5 -0
  35. package/dist/crmTrips/travelers/index.js +4 -0
  36. package/dist/crmTrips/travelers/models.d.ts +14 -0
  37. package/dist/crmTrips/travelers/models.js +3 -0
  38. package/dist/index.d.ts +5 -0
  39. package/dist/index.js +4 -0
  40. package/dist/me/client.d.ts +56 -0
  41. package/dist/me/client.js +25 -0
  42. package/dist/me/index.d.ts +5 -0
  43. package/dist/me/index.js +4 -0
  44. package/dist/me/models.d.ts +95 -0
  45. package/dist/me/models.js +3 -0
  46. package/dist/models.d.ts +9269 -0
  47. package/dist/models.js +4 -0
  48. package/dist/notes/client.d.ts +82 -0
  49. package/dist/notes/client.js +41 -0
  50. package/dist/notes/index.d.ts +5 -0
  51. package/dist/notes/index.js +4 -0
  52. package/dist/notes/models.d.ts +116 -0
  53. package/dist/notes/models.js +3 -0
  54. package/dist/options/index.d.ts +52 -0
  55. package/dist/options/index.js +53 -0
  56. package/dist/profileForms/client.d.ts +38 -0
  57. package/dist/profileForms/client.js +25 -0
  58. package/dist/profileForms/index.d.ts +5 -0
  59. package/dist/profileForms/index.js +4 -0
  60. package/dist/profileForms/models.d.ts +24 -0
  61. package/dist/profileForms/models.js +3 -0
  62. package/dist/taskTemplates/client.d.ts +36 -0
  63. package/dist/taskTemplates/client.js +18 -0
  64. package/dist/taskTemplates/index.d.ts +5 -0
  65. package/dist/taskTemplates/index.js +4 -0
  66. package/dist/taskTemplates/models.d.ts +15 -0
  67. package/dist/taskTemplates/models.js +3 -0
  68. package/dist/tasks/client.d.ts +105 -0
  69. package/dist/tasks/client.js +41 -0
  70. package/dist/tasks/index.d.ts +5 -0
  71. package/dist/tasks/index.js +4 -0
  72. package/dist/tasks/models.d.ts +59 -0
  73. package/dist/tasks/models.js +3 -0
  74. package/dist/travelers/client.d.ts +214 -0
  75. package/dist/travelers/client.js +76 -0
  76. package/dist/travelers/index.d.ts +5 -0
  77. package/dist/travelers/index.js +4 -0
  78. package/dist/travelers/models.d.ts +576 -0
  79. package/dist/travelers/models.js +3 -0
  80. package/package.json +35 -2
package/dist/client.js ADDED
@@ -0,0 +1,748 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "./_/index.js";
4
+ import { bind as bindActivity, } from "./activity/client.js";
5
+ import { bind as bindCrmSettings, } from "./crmSettings/client.js";
6
+ import { bind as bindCrmTrips, } from "./crmTrips/client.js";
7
+ import { bind as bindMe } from "./me/client.js";
8
+ import { SegmentOpBodyCodec, } from "./models.js";
9
+ import { bind as bindNotes, } from "./notes/client.js";
10
+ import { bind as bindProfileForms, } from "./profileForms/client.js";
11
+ import { bind as bindTaskTemplates, } from "./taskTemplates/client.js";
12
+ import { bind as bindTasks, } from "./tasks/client.js";
13
+ import { bind as bindTravelers, } from "./travelers/client.js";
14
+ export function createClient(options) {
15
+ return bind(new Transport(options));
16
+ }
17
+ export function bind(transport) {
18
+ let activityClient;
19
+ let crmSettingsClient;
20
+ let crmTripsClient;
21
+ let meClient;
22
+ let notesClient;
23
+ let profileFormsClient;
24
+ let taskTemplatesClient;
25
+ let tasksClient;
26
+ let travelersClient;
27
+ return {
28
+ addOffer: (request, options) => transport.send(AddOfferOperation, request, options),
29
+ approveSegment: (request, options) => transport.send(ApproveSegmentOperation, request, options),
30
+ balancesGet: (request, options) => transport.send(BalancesGetOperation, request, options),
31
+ chatGet: (request, options) => transport.send(ChatGetOperation, request, options),
32
+ chatList: (request, options) => transport.send(ChatListOperation, request, options),
33
+ chatReply: (request, options) => transport.send(ChatReplyOperation, request, options),
34
+ checkoutCreate: (request, options) => transport.send(CheckoutCreateOperation, request, options),
35
+ commissionExportCreate: (request, options) => transport.send(CommissionExportCreateOperation, request, options),
36
+ commissionExportGet: (request, options) => transport.send(CommissionExportGetOperation, request, options),
37
+ commissionExportsList: (request, options) => transport.send(CommissionExportsListOperation, request, options),
38
+ commissionImportActionRun: (request, options) => transport.send(CommissionImportActionRunOperation, request, options),
39
+ commissionImportCreate: (request, options) => transport.send(CommissionImportCreateOperation, request, options),
40
+ commissionImportGet: (request, options) => transport.send(CommissionImportGetOperation, request, options),
41
+ commissionItemActionRun: (request, options) => transport.send(CommissionItemActionRunOperation, request, options),
42
+ commissionItemGet: (request, options) => transport.send(CommissionItemGetOperation, request, options),
43
+ commissionItemsList: (request, options) => transport.send(CommissionItemsListOperation, request, options),
44
+ commissionReportGet: (request, options) => transport.send(CommissionReportGetOperation, request, options),
45
+ commissionSummaryGet: (request, options) => transport.send(CommissionSummaryGetOperation, request, options),
46
+ createBookingSelection: (request, options) => transport.send(CreateBookingSelectionOperation, request, options),
47
+ createInsuranceQuotes: (request, options) => transport.send(CreateInsuranceQuotesOperation, request, options),
48
+ createItineraryDocument: (request, options) => transport.send(CreateItineraryDocumentOperation, request, options),
49
+ createQuote: (request, options) => transport.send(CreateQuoteOperation, request, options),
50
+ createTravelersTrip: (request, options) => transport.send(CreateTravelersTripOperation, request, options),
51
+ deleteFavorite: (request, options) => transport.send(DeleteFavoriteOperation, request, options),
52
+ destinationsQuery: (request, options) => transport.send(DestinationsQueryOperation, request, options),
53
+ discoverCarRentalDetails: (request, options) => transport.send(DiscoverCarRentalDetailsOperation, request, options),
54
+ discoverCarRentals: (request, options) => transport.send(DiscoverCarRentalsOperation, request, options),
55
+ discoverFlightDetails: (request, options) => transport.send(DiscoverFlightDetailsOperation, request, options),
56
+ discoverFlights: (request, options) => transport.send(DiscoverFlightsOperation, request, options),
57
+ discoverHotelDetails: (request, options) => transport.send(DiscoverHotelDetailsOperation, request, options),
58
+ discoverHotels: (request, options) => transport.send(DiscoverHotelsOperation, request, options),
59
+ earningsList: (request, options) => transport.send(EarningsListOperation, request, options),
60
+ externalBookingCreate: (request, options) => transport.send(ExternalBookingCreateOperation, request, options),
61
+ externalBookingGet: (request, options) => transport.send(ExternalBookingGetOperation, request, options),
62
+ externalBookingUpdate: (request, options) => transport.send(ExternalBookingUpdateOperation, request, options),
63
+ externalPaymentRecord: (request, options) => transport.send(ExternalPaymentRecordOperation, request, options),
64
+ getBookingSelection: (request, options) => transport.send(GetBookingSelectionOperation, request, options),
65
+ getFavoritesShare: (request, options) => transport.send(GetFavoritesShareOperation, request, options),
66
+ getOfferRequirements: (request, options) => transport.send(GetOfferRequirementsOperation, request, options),
67
+ getPlace: (request, options) => transport.send(GetPlaceOperation, request, options),
68
+ getProduct: (request, options) => transport.send(GetProductOperation, request, options),
69
+ getSharedFavorites: (request, options) => transport.send(GetSharedFavoritesOperation, request, options),
70
+ getTravelersTrip: (request, options) => transport.send(GetTravelersTripOperation, request, options),
71
+ getTripItinerary: (request, options) => transport.send(GetTripItineraryOperation, request, options),
72
+ getTripItineraryAgentView: (request, options) => transport.send(GetTripItineraryAgentViewOperation, request, options),
73
+ listFavorites: (request, options) => transport.send(ListFavoritesOperation, request, options),
74
+ listTravelersTrip: (request, options) => transport.send(ListTravelersTripOperation, request, options),
75
+ listTripItinerary: (request, options) => transport.send(ListTripItineraryOperation, request, options),
76
+ lookupFlight: (request, options) => transport.send(LookupFlightOperation, request, options),
77
+ orderActionRun: (request, options) => transport.send(OrderActionRunOperation, request, options),
78
+ orderAdvisorAssign: (request, options) => transport.send(OrderAdvisorAssignOperation, request, options),
79
+ orderConfirmationSend: (request, options) => transport.send(OrderConfirmationSendOperation, request, options),
80
+ orderCreate: (request, options) => transport.send(OrderCreateOperation, request, options),
81
+ orderGet: (request, options) => transport.send(OrderGetOperation, request, options),
82
+ orderPaymentSubmit: (request, options) => transport.send(OrderPaymentSubmitOperation, request, options),
83
+ ordersList: (request, options) => transport.send(OrdersListOperation, request, options),
84
+ payeeActionRun: (request, options) => transport.send(PayeeActionRunOperation, request, options),
85
+ payeesList: (request, options) => transport.send(PayeesListOperation, request, options),
86
+ paymentMethodActionRun: (request, options) => transport.send(PaymentMethodActionRunOperation, request, options),
87
+ remittanceActionRun: (request, options) => transport.send(RemittanceActionRunOperation, request, options),
88
+ remittanceBatchActionRun: (request, options) => transport.send(RemittanceBatchActionRunOperation, request, options),
89
+ remittanceBatchCreate: (request, options) => transport.send(RemittanceBatchCreateOperation, request, options),
90
+ remittanceBatchGet: (request, options) => transport.send(RemittanceBatchGetOperation, request, options),
91
+ remittanceBatchesList: (request, options) => transport.send(RemittanceBatchesListOperation, request, options),
92
+ remittanceCreate: (request, options) => transport.send(RemittanceCreateOperation, request, options),
93
+ remittanceGet: (request, options) => transport.send(RemittanceGetOperation, request, options),
94
+ remittanceLineClaim: (request, options) => transport.send(RemittanceLineClaimOperation, request, options),
95
+ remittanceSuggestionsGet: (request, options) => transport.send(RemittanceSuggestionsGetOperation, request, options),
96
+ remittancesList: (request, options) => transport.send(RemittancesListOperation, request, options),
97
+ saveFavorite: (request, options) => transport.send(SaveFavoriteOperation, request, options),
98
+ searchCarriers: (request, options) => transport.send(SearchCarriersOperation, request, options),
99
+ searchPlaces: (request, options) => transport.send(SearchPlacesOperation, request, options),
100
+ searchProducts: (request, options) => transport.send(SearchProductsOperation, request, options),
101
+ segmentOp: (request, options) => transport.send(SegmentOpOperation, request, options),
102
+ selectOption: (request, options) => transport.send(SelectOptionOperation, request, options),
103
+ sendTripItinerary: (request, options) => transport.send(SendTripItineraryOperation, request, options),
104
+ shareFavorites: (request, options) => transport.send(ShareFavoritesOperation, request, options),
105
+ statementActionRun: (request, options) => transport.send(StatementActionRunOperation, request, options),
106
+ statementGet: (request, options) => transport.send(StatementGetOperation, request, options),
107
+ statementsList: (request, options) => transport.send(StatementsListOperation, request, options),
108
+ stopSharingFavorites: (request, options) => transport.send(StopSharingFavoritesOperation, request, options),
109
+ supplierActionRun: (request, options) => transport.send(SupplierActionRunOperation, request, options),
110
+ supplierCreate: (request, options) => transport.send(SupplierCreateOperation, request, options),
111
+ supplierGet: (request, options) => transport.send(SupplierGetOperation, request, options),
112
+ suppliersSearch: (request, options) => transport.send(SuppliersSearchOperation, request, options),
113
+ toggleArchive: (request, options) => transport.send(ToggleArchiveOperation, request, options),
114
+ travelersTripInvite: (request, options) => transport.send(TravelersTripInviteOperation, request, options),
115
+ travelersTripToggleArchive: (request, options) => transport.send(TravelersTripToggleArchiveOperation, request, options),
116
+ updateTravelersTrip: (request, options) => transport.send(UpdateTravelersTripOperation, request, options),
117
+ updateTripItinerary: (request, options) => transport.send(UpdateTripItineraryOperation, request, options),
118
+ get activity() {
119
+ return (activityClient ??= bindActivity(transport));
120
+ },
121
+ get crmSettings() {
122
+ return (crmSettingsClient ??= bindCrmSettings(transport));
123
+ },
124
+ get crmTrips() {
125
+ return (crmTripsClient ??= bindCrmTrips(transport));
126
+ },
127
+ get me() {
128
+ return (meClient ??= bindMe(transport));
129
+ },
130
+ get notes() {
131
+ return (notesClient ??= bindNotes(transport));
132
+ },
133
+ get profileForms() {
134
+ return (profileFormsClient ??= bindProfileForms(transport));
135
+ },
136
+ get taskTemplates() {
137
+ return (taskTemplatesClient ??= bindTaskTemplates(transport));
138
+ },
139
+ get tasks() {
140
+ return (tasksClient ??= bindTasks(transport));
141
+ },
142
+ get travelers() {
143
+ return (travelersClient ??= bindTravelers(transport));
144
+ },
145
+ };
146
+ }
147
+ const AddOfferOperation = {
148
+ method: "POST",
149
+ route: "/trip-itinerary/{tripItineraryId}/offers",
150
+ body: "flat",
151
+ response: null,
152
+ errors: { "400": true, "401": true, "403": true },
153
+ };
154
+ const ApproveSegmentOperation = {
155
+ method: "POST",
156
+ route: "/trip-itinerary/{tripItineraryId}/public/approve-segment",
157
+ body: "flat",
158
+ response: null,
159
+ errors: { "400": true, "401": true, "403": true, "429": true },
160
+ };
161
+ const BalancesGetOperation = {
162
+ method: "GET",
163
+ route: "/commerce/finance/balances",
164
+ query: { beneficiaryId: "beneficiaryId", beneficiaryKind: "beneficiaryKind" },
165
+ response: null,
166
+ errors: { "400": true, "401": true, "403": true },
167
+ };
168
+ const ChatGetOperation = {
169
+ method: "GET",
170
+ route: "/chat/{chatId}",
171
+ errors: { "400": true, "401": true, "403": true },
172
+ };
173
+ const ChatListOperation = {
174
+ method: "GET",
175
+ route: "/chat",
176
+ errors: { "400": true, "401": true, "403": true },
177
+ };
178
+ const ChatReplyOperation = {
179
+ method: "POST",
180
+ route: "/chat/{chatId}/reply",
181
+ body: "flat",
182
+ response: null,
183
+ errors: { "400": true, "401": true, "403": true },
184
+ };
185
+ const CheckoutCreateOperation = {
186
+ method: "POST",
187
+ route: "/commerce/checkouts",
188
+ body: "flat",
189
+ response: null,
190
+ errors: { "400": true, "401": true, "403": true },
191
+ };
192
+ const CommissionExportCreateOperation = {
193
+ method: "POST",
194
+ route: "/commerce/commission-exports",
195
+ body: "flat",
196
+ response: null,
197
+ errors: { "400": true, "401": true, "403": true },
198
+ };
199
+ const CommissionExportGetOperation = {
200
+ method: "GET",
201
+ route: "/commerce/commission-exports/{exportId}",
202
+ response: null,
203
+ errors: { "400": true, "401": true, "403": true },
204
+ };
205
+ const CommissionExportsListOperation = {
206
+ method: "GET",
207
+ route: "/commerce/commission-exports",
208
+ query: { cursor: "cursor", limit: "limit", status: "status" },
209
+ response: null,
210
+ errors: { "400": true, "401": true, "403": true },
211
+ };
212
+ const CommissionImportActionRunOperation = {
213
+ method: "POST",
214
+ route: "/commerce/commission-imports/{importId}/actions",
215
+ body: "flat",
216
+ response: null,
217
+ errors: { "400": true, "401": true, "403": true },
218
+ };
219
+ const CommissionImportCreateOperation = {
220
+ method: "POST",
221
+ route: "/commerce/commission-imports",
222
+ body: "flat",
223
+ response: null,
224
+ errors: { "400": true, "401": true, "403": true },
225
+ };
226
+ const CommissionImportGetOperation = {
227
+ method: "GET",
228
+ route: "/commerce/commission-imports/{importId}",
229
+ query: { cursor: "cursor", limit: "limit", status: "status" },
230
+ response: null,
231
+ errors: { "400": true, "401": true, "403": true },
232
+ };
233
+ const CommissionItemActionRunOperation = {
234
+ method: "POST",
235
+ route: "/commerce/commissions/{commissionItemId}/actions",
236
+ body: "flat",
237
+ response: null,
238
+ errors: { "400": true, "401": true, "403": true },
239
+ };
240
+ const CommissionItemGetOperation = {
241
+ method: "GET",
242
+ route: "/commerce/commissions/{commissionItemId}",
243
+ response: null,
244
+ errors: { "400": true, "401": true, "403": true },
245
+ };
246
+ const CommissionItemsListOperation = {
247
+ method: "GET",
248
+ route: "/commerce/commissions",
249
+ query: { advisorUserId: "advisorUserId", agingBucket: "agingBucket", category: "category", dateField: "dateField", from: "from", identifierId: "identifierId", kind: "kind", needsReview: "needsReview", q: "q", source: "source", status: "status", supplierId: "supplierId", tag: "tag", to: "to", view: "view", cursor: "cursor", limit: "limit" },
250
+ response: null,
251
+ errors: { "400": true, "401": true, "403": true },
252
+ };
253
+ const CommissionReportGetOperation = {
254
+ method: "GET",
255
+ route: "/commerce/commission-reports/{reportKind}",
256
+ query: { advisorUserId: "advisorUserId", basis: "basis", category: "category", city: "city", compare: "compare", countryCode: "countryCode", currency: "currency", cursor: "cursor", exception: "exception", from: "from", hasBookings: "hasBookings", identifierId: "identifierId", kind: "kind", limit: "limit", programId: "programId", q: "q", supplierId: "supplierId", supplierKind: "supplierKind", to: "to", verified: "verified" },
257
+ response: null,
258
+ errors: { "400": true, "401": true, "403": true },
259
+ };
260
+ const CommissionSummaryGetOperation = {
261
+ method: "GET",
262
+ route: "/commerce/commissions/summary",
263
+ query: { advisorUserId: "advisorUserId", agingBucket: "agingBucket", category: "category", dateField: "dateField", from: "from", identifierId: "identifierId", kind: "kind", needsReview: "needsReview", q: "q", source: "source", status: "status", supplierId: "supplierId", tag: "tag", to: "to", view: "view" },
264
+ response: null,
265
+ errors: { "400": true, "401": true, "403": true },
266
+ };
267
+ const CreateBookingSelectionOperation = {
268
+ method: "POST",
269
+ route: "/booking/selections",
270
+ body: "flat",
271
+ response: null,
272
+ errors: { "400": true, "401": true, "403": true },
273
+ };
274
+ const CreateInsuranceQuotesOperation = {
275
+ method: "POST",
276
+ route: "/booking/trips/{travelersTripId}/insurance-quotes",
277
+ body: "flat",
278
+ response: null,
279
+ errors: { "400": true, "401": true, "403": true },
280
+ };
281
+ const CreateItineraryDocumentOperation = {
282
+ method: "POST",
283
+ route: "/trip-itinerary/{tripItineraryId}/documents",
284
+ body: "flat",
285
+ response: null,
286
+ errors: { "400": true, "401": true, "403": true },
287
+ };
288
+ const CreateQuoteOperation = {
289
+ method: "POST",
290
+ route: "/booking/quotes",
291
+ body: "flat",
292
+ response: null,
293
+ errors: { "400": true, "401": true, "403": true },
294
+ };
295
+ const CreateTravelersTripOperation = {
296
+ method: "POST",
297
+ route: "/travelers-trip",
298
+ body: "flat",
299
+ response: null,
300
+ errors: { "400": true, "401": true, "403": true },
301
+ };
302
+ const DeleteFavoriteOperation = {
303
+ method: "DELETE",
304
+ route: "/favorites",
305
+ query: { kind: "kind", reference: "reference" },
306
+ response: null,
307
+ errors: { "400": true, "401": true, "403": true },
308
+ };
309
+ const DestinationsQueryOperation = {
310
+ method: "GET",
311
+ route: "/tour-viator/destinations",
312
+ query: { query: "query", radiusKm: "radiusKm", limit: "limit" },
313
+ errors: { "400": true, "401": true, "403": true },
314
+ };
315
+ const DiscoverCarRentalDetailsOperation = {
316
+ method: "GET",
317
+ route: "/booking/car-rentals/{offerReference}",
318
+ response: null,
319
+ errors: { "400": true, "401": true, "403": true },
320
+ };
321
+ const DiscoverCarRentalsOperation = {
322
+ method: "GET",
323
+ route: "/booking/car-rentals",
324
+ query: { pickup: "pickup", dropoff: "dropoff", pickupDate: "pickupDate", dropoffDate: "dropoffDate", pickupTime: "pickupTime", dropoffTime: "dropoffTime", pickupZone: "pickupZone", dropoffZone: "dropoffZone", age: "age", currency: "currency", suppliers: "suppliers", transmission: "transmission", extras: "extras", minPrice: "minPrice", maxPrice: "maxPrice", minLuggage: "minLuggage", minCargo: "minCargo", minSeats: "minSeats", sort: "sort", page: "page", size: "size" },
325
+ response: null,
326
+ errors: { "400": true, "401": true, "403": true },
327
+ };
328
+ const DiscoverFlightDetailsOperation = {
329
+ method: "GET",
330
+ route: "/booking/flights/{offerReference}",
331
+ response: null,
332
+ errors: { "400": true, "401": true, "403": true },
333
+ };
334
+ const DiscoverFlightsOperation = {
335
+ method: "GET",
336
+ route: "/booking/flights",
337
+ query: { from: "from", to: "to", departure: "departure", return: "return", legs: "legs", adults: "adults", children: "children", infants: "infants", cabin: "cabin", cabins: "cabins", currency: "currency", airlines: "airlines", stops: "stops", via: "via", excludeAirportChanges: "excludeAirportChanges", maxConnections: "maxConnections", minPrice: "minPrice", maxPrice: "maxPrice", maxDuration: "maxDuration", bags: "bags", refundable: "refundable", commissionable: "commissionable", sameCabin: "sameCabin", changeable: "changeable", maxLayover: "maxLayover", departureTime: "departureTime", arrivalTime: "arrivalTime", sort: "sort", page: "page", size: "size", group: "group", slices: "slices", chosenFrom: "chosenFrom" },
338
+ response: null,
339
+ errors: { "400": true, "401": true, "403": true },
340
+ };
341
+ const DiscoverHotelDetailsOperation = {
342
+ method: "GET",
343
+ route: "/booking/hotels/{hotelId}",
344
+ query: { checkIn: "checkIn", checkOut: "checkOut", currency: "currency", rooms: "rooms", rateCodes: "rateCodes", include: "include", refresh: "refresh" },
345
+ response: null,
346
+ errors: { "400": true, "401": true, "403": true },
347
+ };
348
+ const DiscoverHotelsOperation = {
349
+ method: "GET",
350
+ route: "/booking/hotels",
351
+ query: { checkIn: "checkIn", checkOut: "checkOut", currency: "currency", rooms: "rooms", lat: "lat", lng: "lng", radius: "radius", placeId: "placeId", name: "name", type: "type", sort: "sort", rateCodes: "rateCodes", amenities: "amenities", chainNames: "chainNames", hotelReferences: "hotelReferences", maximumDistanceKm: "maximumDistanceKm", maximumPriceMinor: "maximumPriceMinor", minimumPriceMinor: "minimumPriceMinor", minimumStars: "minimumStars", maximumStars: "maximumStars", breakfastIncludedOnly: "breakfastIncludedOnly", refundableOnly: "refundableOnly", commissionableOnly: "commissionableOnly", requireRateCodeMatch: "requireRateCodeMatch", expand: "expand", page: "page", waitMs: "waitMs", size: "size", minResults: "minResults" },
352
+ response: null,
353
+ errors: { "400": true, "401": true, "403": true },
354
+ };
355
+ const EarningsListOperation = {
356
+ method: "GET",
357
+ route: "/commerce/finance/earnings",
358
+ query: { beneficiaryId: "beneficiaryId", cursor: "cursor", limit: "limit", status: "status" },
359
+ response: null,
360
+ errors: { "400": true, "401": true, "403": true },
361
+ };
362
+ const ExternalBookingCreateOperation = {
363
+ method: "POST",
364
+ route: "/commerce/external-bookings",
365
+ body: "flat",
366
+ response: null,
367
+ errors: { "400": true, "401": true, "403": true },
368
+ };
369
+ const ExternalBookingGetOperation = {
370
+ method: "GET",
371
+ route: "/commerce/external-bookings/{externalBookingId}",
372
+ response: null,
373
+ errors: { "400": true, "401": true, "403": true },
374
+ };
375
+ const ExternalBookingUpdateOperation = {
376
+ method: "PUT",
377
+ route: "/commerce/external-bookings/{externalBookingId}",
378
+ body: "flat",
379
+ response: null,
380
+ errors: { "400": true, "401": true, "403": true },
381
+ };
382
+ const ExternalPaymentRecordOperation = {
383
+ method: "POST",
384
+ route: "/commerce/external-payments",
385
+ body: "flat",
386
+ errors: { "400": true, "401": true, "403": true },
387
+ };
388
+ const GetBookingSelectionOperation = {
389
+ method: "GET",
390
+ route: "/booking/selections/{selectionId}",
391
+ response: null,
392
+ errors: { "400": true, "401": true, "403": true },
393
+ };
394
+ const GetFavoritesShareOperation = {
395
+ method: "GET",
396
+ route: "/favorites/share",
397
+ response: null,
398
+ errors: { "400": true, "401": true, "403": true },
399
+ };
400
+ const GetOfferRequirementsOperation = {
401
+ method: "GET",
402
+ route: "/booking/offers/{offerReference}/requirements",
403
+ response: null,
404
+ errors: { "400": true, "401": true, "403": true },
405
+ };
406
+ const GetPlaceOperation = {
407
+ method: "GET",
408
+ route: "/search/places/{placeId}",
409
+ response: null,
410
+ errors: { "400": true, "401": true, "403": true, "429": true },
411
+ };
412
+ const GetProductOperation = {
413
+ method: "GET",
414
+ route: "/tour-viator/products/{productCode}",
415
+ errors: { "400": true, "401": true, "403": true },
416
+ };
417
+ const GetSharedFavoritesOperation = {
418
+ method: "GET",
419
+ route: "/favorites/shared/{shareId}",
420
+ response: null,
421
+ errors: { "400": true },
422
+ };
423
+ const GetTravelersTripOperation = {
424
+ method: "GET",
425
+ route: "/travelers-trip/{travelersTripId}",
426
+ response: null,
427
+ errors: { "400": true, "401": true, "403": true },
428
+ };
429
+ const GetTripItineraryOperation = {
430
+ method: "GET",
431
+ route: "/trip-itinerary/{tripItineraryId}",
432
+ query: { fields: "fields" },
433
+ errors: { "400": true, "401": true, "403": true },
434
+ };
435
+ const GetTripItineraryAgentViewOperation = {
436
+ method: "GET",
437
+ route: "/trip-itinerary/{tripItineraryId}/agent-view",
438
+ response: null,
439
+ errors: { "400": true, "401": true, "403": true },
440
+ };
441
+ const ListFavoritesOperation = {
442
+ method: "GET",
443
+ route: "/favorites",
444
+ query: { kind: "kind" },
445
+ response: null,
446
+ errors: { "400": true, "401": true, "403": true },
447
+ };
448
+ const ListTravelersTripOperation = {
449
+ method: "GET",
450
+ route: "/travelers-trip",
451
+ query: { fields: "fields", filter: "filter", limit: "limit", nextToken: "nextToken", sort: "sort" },
452
+ response: null,
453
+ errors: { "400": true, "401": true, "403": true },
454
+ };
455
+ const ListTripItineraryOperation = {
456
+ method: "GET",
457
+ route: "/trip-itinerary",
458
+ errors: { "400": true, "401": true, "403": true },
459
+ };
460
+ const LookupFlightOperation = {
461
+ method: "GET",
462
+ route: "/search/flights/{flightNumber}",
463
+ query: { date: "date" },
464
+ response: null,
465
+ errors: { "400": true, "401": true, "403": true, "429": true },
466
+ };
467
+ const OrderActionRunOperation = {
468
+ method: "POST",
469
+ route: "/commerce/orders/{orderId}/actions",
470
+ body: "flat",
471
+ response: null,
472
+ errors: { "400": true, "401": true, "403": true },
473
+ };
474
+ const OrderAdvisorAssignOperation = {
475
+ method: "PUT",
476
+ route: "/commerce/orders/{orderId}/advisor",
477
+ body: "flat",
478
+ response: null,
479
+ errors: { "400": true, "401": true, "403": true },
480
+ };
481
+ const OrderConfirmationSendOperation = {
482
+ method: "POST",
483
+ route: "/commerce/orders/{orderId}/confirmation-emails",
484
+ body: "flat",
485
+ response: null,
486
+ errors: { "400": true, "401": true, "403": true, "429": true },
487
+ };
488
+ const OrderCreateOperation = {
489
+ method: "POST",
490
+ route: "/commerce/orders",
491
+ body: "flat",
492
+ response: null,
493
+ errors: { "400": true, "401": true, "403": true },
494
+ };
495
+ const OrderGetOperation = {
496
+ method: "GET",
497
+ route: "/commerce/orders/{orderId}",
498
+ response: null,
499
+ errors: { "400": true, "401": true, "403": true },
500
+ };
501
+ const OrderPaymentSubmitOperation = {
502
+ method: "POST",
503
+ route: "/commerce/orders/{orderId}/payments",
504
+ body: "flat",
505
+ response: null,
506
+ errors: { "400": true, "401": true, "403": true },
507
+ };
508
+ const OrdersListOperation = {
509
+ method: "GET",
510
+ route: "/commerce/orders",
511
+ query: { advisorIds: "advisorIds", companyName: "companyName", createdFrom: "createdFrom", createdTo: "createdTo", cursor: "cursor", hotelReference: "hotelReference", includeTemporary: "includeTemporary", limit: "limit", originAirport: "originAirport", participantEmail: "participantEmail", participantPhone: "participantPhone", participantUserId: "participantUserId", payerEmail: "payerEmail", payerPhone: "payerPhone", payerUserId: "payerUserId", page: "page", productKinds: "productKinds", providerLocator: "providerLocator", search: "search", sort: "sort", statuses: "statuses", travelersTripId: "travelersTripId", view: "view" },
512
+ response: null,
513
+ errors: { "400": true, "401": true, "403": true },
514
+ };
515
+ const PayeeActionRunOperation = {
516
+ method: "POST",
517
+ route: "/commerce/payees/{payeeId}/actions",
518
+ body: "flat",
519
+ response: null,
520
+ errors: { "400": true, "401": true, "403": true },
521
+ };
522
+ const PayeesListOperation = {
523
+ method: "GET",
524
+ route: "/commerce/payees",
525
+ query: { cursor: "cursor", limit: "limit", payeeId: "payeeId", payeeKind: "payeeKind", statementsEnabled: "statementsEnabled" },
526
+ response: null,
527
+ errors: { "400": true, "401": true, "403": true },
528
+ };
529
+ const PaymentMethodActionRunOperation = {
530
+ method: "POST",
531
+ route: "/commerce/payment-methods/actions",
532
+ body: "flat",
533
+ response: null,
534
+ errors: { "400": true, "401": true, "403": true },
535
+ };
536
+ const RemittanceActionRunOperation = {
537
+ method: "POST",
538
+ route: "/commerce/remittances/{remittanceId}/actions",
539
+ body: "flat",
540
+ response: null,
541
+ errors: { "400": true, "401": true, "403": true },
542
+ };
543
+ const RemittanceBatchActionRunOperation = {
544
+ method: "POST",
545
+ route: "/commerce/remittance-batches/{batchId}/actions",
546
+ body: "flat",
547
+ response: null,
548
+ errors: { "400": true, "401": true, "403": true },
549
+ };
550
+ const RemittanceBatchCreateOperation = {
551
+ method: "POST",
552
+ route: "/commerce/remittance-batches",
553
+ body: "flat",
554
+ response: null,
555
+ errors: { "400": true, "401": true, "403": true },
556
+ };
557
+ const RemittanceBatchGetOperation = {
558
+ method: "GET",
559
+ route: "/commerce/remittance-batches/{batchId}",
560
+ query: { cursor: "cursor", limit: "limit", matchState: "matchState" },
561
+ response: null,
562
+ errors: { "400": true, "401": true, "403": true },
563
+ };
564
+ const RemittanceBatchesListOperation = {
565
+ method: "GET",
566
+ route: "/commerce/remittance-batches",
567
+ query: { channel: "channel", cursor: "cursor", limit: "limit", status: "status" },
568
+ response: null,
569
+ errors: { "400": true, "401": true, "403": true },
570
+ };
571
+ const RemittanceCreateOperation = {
572
+ method: "POST",
573
+ route: "/commerce/remittances",
574
+ body: "flat",
575
+ response: null,
576
+ errors: { "400": true, "401": true, "403": true },
577
+ };
578
+ const RemittanceGetOperation = {
579
+ method: "GET",
580
+ route: "/commerce/remittances/{remittanceId}",
581
+ query: { cursor: "cursor", limit: "limit" },
582
+ response: null,
583
+ errors: { "400": true, "401": true, "403": true },
584
+ };
585
+ const RemittanceLineClaimOperation = {
586
+ method: "POST",
587
+ route: "/commerce/remittance-lines/{remittanceLineId}/claims",
588
+ body: "flat",
589
+ response: null,
590
+ errors: { "400": true, "401": true, "403": true },
591
+ };
592
+ const RemittanceSuggestionsGetOperation = {
593
+ method: "GET",
594
+ route: "/commerce/remittance-lines/{remittanceLineId}/suggestions",
595
+ query: { limit: "limit" },
596
+ response: null,
597
+ errors: { "400": true, "401": true, "403": true },
598
+ };
599
+ const RemittancesListOperation = {
600
+ method: "GET",
601
+ route: "/commerce/remittances",
602
+ query: { batchId: "batchId", channel: "channel", cursor: "cursor", from: "from", limit: "limit", q: "q", state: "state", to: "to", unallocated: "unallocated" },
603
+ response: null,
604
+ errors: { "400": true, "401": true, "403": true },
605
+ };
606
+ const SaveFavoriteOperation = {
607
+ method: "PUT",
608
+ route: "/favorites",
609
+ body: "flat",
610
+ response: null,
611
+ errors: { "400": true, "401": true, "403": true },
612
+ };
613
+ const SearchCarriersOperation = {
614
+ method: "GET",
615
+ route: "/search/carriers",
616
+ query: { q: "q", limit: "limit" },
617
+ response: null,
618
+ errors: { "400": true, "401": true, "403": true, "429": true },
619
+ };
620
+ const SearchPlacesOperation = {
621
+ method: "GET",
622
+ route: "/search/places",
623
+ query: { q: "q", kinds: "kinds", type: "type", limit: "limit", photos: "photos" },
624
+ response: null,
625
+ errors: { "400": true, "401": true, "403": true, "429": true },
626
+ };
627
+ const SearchProductsOperation = {
628
+ method: "POST",
629
+ route: "/tour-viator/products",
630
+ body: "flat",
631
+ errors: { "400": true, "401": true, "403": true },
632
+ };
633
+ const SegmentOpOperation = {
634
+ method: "POST",
635
+ route: "/trip-itinerary/{tripItineraryId}/segment",
636
+ body: "nested",
637
+ request: SegmentOpBodyCodec,
638
+ errors: { "400": true, "401": true, "403": true },
639
+ };
640
+ const SelectOptionOperation = {
641
+ method: "POST",
642
+ route: "/trip-itinerary/{tripItineraryId}/public/select-option-segment",
643
+ body: "flat",
644
+ response: null,
645
+ errors: { "400": true, "401": true, "403": true, "429": true },
646
+ };
647
+ const SendTripItineraryOperation = {
648
+ method: "POST",
649
+ route: "/trip-itinerary/{tripItineraryId}/send",
650
+ body: "flat",
651
+ errors: { "400": true, "401": true, "403": true },
652
+ };
653
+ const ShareFavoritesOperation = {
654
+ method: "PUT",
655
+ route: "/favorites/share",
656
+ body: "flat",
657
+ response: null,
658
+ errors: { "400": true, "401": true, "403": true },
659
+ };
660
+ const StatementActionRunOperation = {
661
+ method: "POST",
662
+ route: "/commerce/statements/{statementId}/actions",
663
+ body: "flat",
664
+ response: null,
665
+ errors: { "400": true, "401": true, "403": true },
666
+ };
667
+ const StatementGetOperation = {
668
+ method: "GET",
669
+ route: "/commerce/statements/{statementId}",
670
+ query: { cursor: "cursor", limit: "limit" },
671
+ response: null,
672
+ errors: { "400": true, "401": true, "403": true },
673
+ };
674
+ const StatementsListOperation = {
675
+ method: "GET",
676
+ route: "/commerce/statements",
677
+ query: { currency: "currency", cursor: "cursor", from: "from", limit: "limit", payeeId: "payeeId", payeeKind: "payeeKind", status: "status", to: "to" },
678
+ response: null,
679
+ errors: { "400": true, "401": true, "403": true },
680
+ };
681
+ const StopSharingFavoritesOperation = {
682
+ method: "DELETE",
683
+ route: "/favorites/share",
684
+ response: null,
685
+ errors: { "400": true, "401": true, "403": true },
686
+ };
687
+ const SupplierActionRunOperation = {
688
+ method: "POST",
689
+ route: "/commerce/suppliers/{supplierId}/actions",
690
+ body: "flat",
691
+ response: null,
692
+ errors: { "400": true, "401": true, "403": true },
693
+ };
694
+ const SupplierCreateOperation = {
695
+ method: "POST",
696
+ route: "/commerce/suppliers",
697
+ body: "flat",
698
+ response: null,
699
+ errors: { "400": true, "401": true, "403": true },
700
+ };
701
+ const SupplierGetOperation = {
702
+ method: "GET",
703
+ route: "/commerce/suppliers/{supplierId}",
704
+ response: null,
705
+ errors: { "400": true, "401": true, "403": true },
706
+ };
707
+ const SuppliersSearchOperation = {
708
+ method: "GET",
709
+ route: "/commerce/suppliers",
710
+ query: { kind: "kind", limit: "limit", q: "q" },
711
+ response: null,
712
+ errors: { "400": true, "401": true, "403": true },
713
+ };
714
+ const ToggleArchiveOperation = {
715
+ method: "POST",
716
+ route: "/chat/{chatId}/toggle-archive",
717
+ body: "flat",
718
+ response: null,
719
+ errors: { "400": true, "401": true, "403": true },
720
+ };
721
+ const TravelersTripInviteOperation = {
722
+ method: "POST",
723
+ route: "/travelers-trip/{travelersTripId}/invite",
724
+ body: "flat",
725
+ response: null,
726
+ errors: { "400": true, "401": true, "403": true },
727
+ };
728
+ const TravelersTripToggleArchiveOperation = {
729
+ method: "POST",
730
+ route: "/travelers-trip/{travelersTripId}/toggle-archive",
731
+ body: "flat",
732
+ response: null,
733
+ errors: { "400": true, "401": true, "403": true },
734
+ };
735
+ const UpdateTravelersTripOperation = {
736
+ method: "PUT",
737
+ route: "/travelers-trip/{travelersTripId}",
738
+ body: "flat",
739
+ response: null,
740
+ errors: { "400": true, "401": true, "403": true },
741
+ };
742
+ const UpdateTripItineraryOperation = {
743
+ method: "PUT",
744
+ route: "/trip-itinerary/{tripItineraryId}",
745
+ body: "flat",
746
+ response: null,
747
+ errors: { "400": true, "401": true, "403": true },
748
+ };