@withnicer/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 (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 +749 -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 +8539 -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 +114 -0
  55. package/dist/options/index.js +115 -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,749 @@
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
+ response: null,
387
+ errors: { "400": true, "401": true, "403": true },
388
+ };
389
+ const GetBookingSelectionOperation = {
390
+ method: "GET",
391
+ route: "/booking/selections/{selectionId}",
392
+ response: null,
393
+ errors: { "400": true, "401": true, "403": true },
394
+ };
395
+ const GetFavoritesShareOperation = {
396
+ method: "GET",
397
+ route: "/favorites/share",
398
+ response: null,
399
+ errors: { "400": true, "401": true, "403": true },
400
+ };
401
+ const GetOfferRequirementsOperation = {
402
+ method: "GET",
403
+ route: "/booking/offers/{offerReference}/requirements",
404
+ response: null,
405
+ errors: { "400": true, "401": true, "403": true },
406
+ };
407
+ const GetPlaceOperation = {
408
+ method: "GET",
409
+ route: "/search/places/{placeId}",
410
+ response: null,
411
+ errors: { "400": true, "401": true, "403": true, "429": true },
412
+ };
413
+ const GetProductOperation = {
414
+ method: "GET",
415
+ route: "/tour-viator/products/{productCode}",
416
+ errors: { "400": true, "401": true, "403": true },
417
+ };
418
+ const GetSharedFavoritesOperation = {
419
+ method: "GET",
420
+ route: "/favorites/shared/{shareId}",
421
+ response: null,
422
+ errors: { "400": true },
423
+ };
424
+ const GetTravelersTripOperation = {
425
+ method: "GET",
426
+ route: "/travelers-trip/{travelersTripId}",
427
+ response: null,
428
+ errors: { "400": true, "401": true, "403": true },
429
+ };
430
+ const GetTripItineraryOperation = {
431
+ method: "GET",
432
+ route: "/trip-itinerary/{tripItineraryId}",
433
+ query: { fields: "fields" },
434
+ errors: { "400": true, "401": true, "403": true },
435
+ };
436
+ const GetTripItineraryAgentViewOperation = {
437
+ method: "GET",
438
+ route: "/trip-itinerary/{tripItineraryId}/agent-view",
439
+ response: null,
440
+ errors: { "400": true, "401": true, "403": true },
441
+ };
442
+ const ListFavoritesOperation = {
443
+ method: "GET",
444
+ route: "/favorites",
445
+ query: { kind: "kind" },
446
+ response: null,
447
+ errors: { "400": true, "401": true, "403": true },
448
+ };
449
+ const ListTravelersTripOperation = {
450
+ method: "GET",
451
+ route: "/travelers-trip",
452
+ query: { fields: "fields", filter: "filter", limit: "limit", nextToken: "nextToken", sort: "sort" },
453
+ response: null,
454
+ errors: { "400": true, "401": true, "403": true },
455
+ };
456
+ const ListTripItineraryOperation = {
457
+ method: "GET",
458
+ route: "/trip-itinerary",
459
+ errors: { "400": true, "401": true, "403": true },
460
+ };
461
+ const LookupFlightOperation = {
462
+ method: "GET",
463
+ route: "/search/flights/{flightNumber}",
464
+ query: { date: "date" },
465
+ response: null,
466
+ errors: { "400": true, "401": true, "403": true, "429": true },
467
+ };
468
+ const OrderActionRunOperation = {
469
+ method: "POST",
470
+ route: "/commerce/orders/{orderId}/actions",
471
+ body: "flat",
472
+ response: null,
473
+ errors: { "400": true, "401": true, "403": true },
474
+ };
475
+ const OrderAdvisorAssignOperation = {
476
+ method: "PUT",
477
+ route: "/commerce/orders/{orderId}/advisor",
478
+ body: "flat",
479
+ response: null,
480
+ errors: { "400": true, "401": true, "403": true },
481
+ };
482
+ const OrderConfirmationSendOperation = {
483
+ method: "POST",
484
+ route: "/commerce/orders/{orderId}/confirmation-emails",
485
+ body: "flat",
486
+ response: null,
487
+ errors: { "400": true, "401": true, "403": true, "429": true },
488
+ };
489
+ const OrderCreateOperation = {
490
+ method: "POST",
491
+ route: "/commerce/orders",
492
+ body: "flat",
493
+ response: null,
494
+ errors: { "400": true, "401": true, "403": true },
495
+ };
496
+ const OrderGetOperation = {
497
+ method: "GET",
498
+ route: "/commerce/orders/{orderId}",
499
+ response: null,
500
+ errors: { "400": true, "401": true, "403": true },
501
+ };
502
+ const OrderPaymentSubmitOperation = {
503
+ method: "POST",
504
+ route: "/commerce/orders/{orderId}/payments",
505
+ body: "flat",
506
+ response: null,
507
+ errors: { "400": true, "401": true, "403": true },
508
+ };
509
+ const OrdersListOperation = {
510
+ method: "GET",
511
+ route: "/commerce/orders",
512
+ 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" },
513
+ response: null,
514
+ errors: { "400": true, "401": true, "403": true },
515
+ };
516
+ const PayeeActionRunOperation = {
517
+ method: "POST",
518
+ route: "/commerce/payees/{payeeId}/actions",
519
+ body: "flat",
520
+ response: null,
521
+ errors: { "400": true, "401": true, "403": true },
522
+ };
523
+ const PayeesListOperation = {
524
+ method: "GET",
525
+ route: "/commerce/payees",
526
+ query: { cursor: "cursor", limit: "limit", payeeId: "payeeId", payeeKind: "payeeKind", statementsEnabled: "statementsEnabled" },
527
+ response: null,
528
+ errors: { "400": true, "401": true, "403": true },
529
+ };
530
+ const PaymentMethodActionRunOperation = {
531
+ method: "POST",
532
+ route: "/commerce/payment-methods/actions",
533
+ body: "flat",
534
+ response: null,
535
+ errors: { "400": true, "401": true, "403": true },
536
+ };
537
+ const RemittanceActionRunOperation = {
538
+ method: "POST",
539
+ route: "/commerce/remittances/{remittanceId}/actions",
540
+ body: "flat",
541
+ response: null,
542
+ errors: { "400": true, "401": true, "403": true },
543
+ };
544
+ const RemittanceBatchActionRunOperation = {
545
+ method: "POST",
546
+ route: "/commerce/remittance-batches/{batchId}/actions",
547
+ body: "flat",
548
+ response: null,
549
+ errors: { "400": true, "401": true, "403": true },
550
+ };
551
+ const RemittanceBatchCreateOperation = {
552
+ method: "POST",
553
+ route: "/commerce/remittance-batches",
554
+ body: "flat",
555
+ response: null,
556
+ errors: { "400": true, "401": true, "403": true },
557
+ };
558
+ const RemittanceBatchGetOperation = {
559
+ method: "GET",
560
+ route: "/commerce/remittance-batches/{batchId}",
561
+ query: { cursor: "cursor", limit: "limit", matchState: "matchState" },
562
+ response: null,
563
+ errors: { "400": true, "401": true, "403": true },
564
+ };
565
+ const RemittanceBatchesListOperation = {
566
+ method: "GET",
567
+ route: "/commerce/remittance-batches",
568
+ query: { channel: "channel", cursor: "cursor", limit: "limit", status: "status" },
569
+ response: null,
570
+ errors: { "400": true, "401": true, "403": true },
571
+ };
572
+ const RemittanceCreateOperation = {
573
+ method: "POST",
574
+ route: "/commerce/remittances",
575
+ body: "flat",
576
+ response: null,
577
+ errors: { "400": true, "401": true, "403": true },
578
+ };
579
+ const RemittanceGetOperation = {
580
+ method: "GET",
581
+ route: "/commerce/remittances/{remittanceId}",
582
+ query: { cursor: "cursor", limit: "limit" },
583
+ response: null,
584
+ errors: { "400": true, "401": true, "403": true },
585
+ };
586
+ const RemittanceLineClaimOperation = {
587
+ method: "POST",
588
+ route: "/commerce/remittance-lines/{remittanceLineId}/claims",
589
+ body: "flat",
590
+ response: null,
591
+ errors: { "400": true, "401": true, "403": true },
592
+ };
593
+ const RemittanceSuggestionsGetOperation = {
594
+ method: "GET",
595
+ route: "/commerce/remittance-lines/{remittanceLineId}/suggestions",
596
+ query: { limit: "limit" },
597
+ response: null,
598
+ errors: { "400": true, "401": true, "403": true },
599
+ };
600
+ const RemittancesListOperation = {
601
+ method: "GET",
602
+ route: "/commerce/remittances",
603
+ query: { batchId: "batchId", channel: "channel", cursor: "cursor", from: "from", limit: "limit", q: "q", state: "state", to: "to", unallocated: "unallocated" },
604
+ response: null,
605
+ errors: { "400": true, "401": true, "403": true },
606
+ };
607
+ const SaveFavoriteOperation = {
608
+ method: "PUT",
609
+ route: "/favorites",
610
+ body: "flat",
611
+ response: null,
612
+ errors: { "400": true, "401": true, "403": true },
613
+ };
614
+ const SearchCarriersOperation = {
615
+ method: "GET",
616
+ route: "/search/carriers",
617
+ query: { q: "q", limit: "limit" },
618
+ response: null,
619
+ errors: { "400": true, "401": true, "403": true, "429": true },
620
+ };
621
+ const SearchPlacesOperation = {
622
+ method: "GET",
623
+ route: "/search/places",
624
+ query: { q: "q", kinds: "kinds", type: "type", limit: "limit", photos: "photos" },
625
+ response: null,
626
+ errors: { "400": true, "401": true, "403": true, "429": true },
627
+ };
628
+ const SearchProductsOperation = {
629
+ method: "POST",
630
+ route: "/tour-viator/products",
631
+ body: "flat",
632
+ errors: { "400": true, "401": true, "403": true },
633
+ };
634
+ const SegmentOpOperation = {
635
+ method: "POST",
636
+ route: "/trip-itinerary/{tripItineraryId}/segment",
637
+ body: "nested",
638
+ request: SegmentOpBodyCodec,
639
+ errors: { "400": true, "401": true, "403": true },
640
+ };
641
+ const SelectOptionOperation = {
642
+ method: "POST",
643
+ route: "/trip-itinerary/{tripItineraryId}/public/select-option-segment",
644
+ body: "flat",
645
+ response: null,
646
+ errors: { "400": true, "401": true, "403": true, "429": true },
647
+ };
648
+ const SendTripItineraryOperation = {
649
+ method: "POST",
650
+ route: "/trip-itinerary/{tripItineraryId}/send",
651
+ body: "flat",
652
+ errors: { "400": true, "401": true, "403": true },
653
+ };
654
+ const ShareFavoritesOperation = {
655
+ method: "PUT",
656
+ route: "/favorites/share",
657
+ body: "flat",
658
+ response: null,
659
+ errors: { "400": true, "401": true, "403": true },
660
+ };
661
+ const StatementActionRunOperation = {
662
+ method: "POST",
663
+ route: "/commerce/statements/{statementId}/actions",
664
+ body: "flat",
665
+ response: null,
666
+ errors: { "400": true, "401": true, "403": true },
667
+ };
668
+ const StatementGetOperation = {
669
+ method: "GET",
670
+ route: "/commerce/statements/{statementId}",
671
+ query: { cursor: "cursor", limit: "limit" },
672
+ response: null,
673
+ errors: { "400": true, "401": true, "403": true },
674
+ };
675
+ const StatementsListOperation = {
676
+ method: "GET",
677
+ route: "/commerce/statements",
678
+ query: { currency: "currency", cursor: "cursor", from: "from", limit: "limit", payeeId: "payeeId", payeeKind: "payeeKind", status: "status", to: "to" },
679
+ response: null,
680
+ errors: { "400": true, "401": true, "403": true },
681
+ };
682
+ const StopSharingFavoritesOperation = {
683
+ method: "DELETE",
684
+ route: "/favorites/share",
685
+ response: null,
686
+ errors: { "400": true, "401": true, "403": true },
687
+ };
688
+ const SupplierActionRunOperation = {
689
+ method: "POST",
690
+ route: "/commerce/suppliers/{supplierId}/actions",
691
+ body: "flat",
692
+ response: null,
693
+ errors: { "400": true, "401": true, "403": true },
694
+ };
695
+ const SupplierCreateOperation = {
696
+ method: "POST",
697
+ route: "/commerce/suppliers",
698
+ body: "flat",
699
+ response: null,
700
+ errors: { "400": true, "401": true, "403": true },
701
+ };
702
+ const SupplierGetOperation = {
703
+ method: "GET",
704
+ route: "/commerce/suppliers/{supplierId}",
705
+ response: null,
706
+ errors: { "400": true, "401": true, "403": true },
707
+ };
708
+ const SuppliersSearchOperation = {
709
+ method: "GET",
710
+ route: "/commerce/suppliers",
711
+ query: { kind: "kind", limit: "limit", q: "q" },
712
+ response: null,
713
+ errors: { "400": true, "401": true, "403": true },
714
+ };
715
+ const ToggleArchiveOperation = {
716
+ method: "POST",
717
+ route: "/chat/{chatId}/toggle-archive",
718
+ body: "flat",
719
+ response: null,
720
+ errors: { "400": true, "401": true, "403": true },
721
+ };
722
+ const TravelersTripInviteOperation = {
723
+ method: "POST",
724
+ route: "/travelers-trip/{travelersTripId}/invite",
725
+ body: "flat",
726
+ response: null,
727
+ errors: { "400": true, "401": true, "403": true },
728
+ };
729
+ const TravelersTripToggleArchiveOperation = {
730
+ method: "POST",
731
+ route: "/travelers-trip/{travelersTripId}/toggle-archive",
732
+ body: "flat",
733
+ response: null,
734
+ errors: { "400": true, "401": true, "403": true },
735
+ };
736
+ const UpdateTravelersTripOperation = {
737
+ method: "PUT",
738
+ route: "/travelers-trip/{travelersTripId}",
739
+ body: "flat",
740
+ response: null,
741
+ errors: { "400": true, "401": true, "403": true },
742
+ };
743
+ const UpdateTripItineraryOperation = {
744
+ method: "PUT",
745
+ route: "/trip-itinerary/{tripItineraryId}",
746
+ body: "flat",
747
+ response: null,
748
+ errors: { "400": true, "401": true, "403": true },
749
+ };