btrz-api-client 8.75.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/.babelrc +2 -1
  2. package/eslint.config.mjs +48 -0
  3. package/lib/client-standalone-min.js +19 -5
  4. package/lib/client.js +1363 -473
  5. package/lib/constants.js +1 -4
  6. package/lib/endpoints/accounts/accounts.js +36 -33
  7. package/lib/endpoints/accounts/agencies.js +53 -43
  8. package/lib/endpoints/accounts/agency-types.js +78 -59
  9. package/lib/endpoints/accounts/application-settings.js +84 -61
  10. package/lib/endpoints/accounts/application.js +19 -19
  11. package/lib/endpoints/accounts/applications.js +35 -30
  12. package/lib/endpoints/accounts/control-classes-settings.js +30 -27
  13. package/lib/endpoints/accounts/current-shifts.js +20 -22
  14. package/lib/endpoints/accounts/customers.js +119 -90
  15. package/lib/endpoints/accounts/docs.js +4 -8
  16. package/lib/endpoints/accounts/domains.js +46 -38
  17. package/lib/endpoints/accounts/dynamic-forms.js +176 -130
  18. package/lib/endpoints/accounts/email-settings.js +79 -61
  19. package/lib/endpoints/accounts/email-templates.js +126 -92
  20. package/lib/endpoints/accounts/exchange-rates.js +36 -32
  21. package/lib/endpoints/accounts/exchange-receipts.js +33 -28
  22. package/lib/endpoints/accounts/external-customers.js +61 -47
  23. package/lib/endpoints/accounts/goal-settings.js +32 -29
  24. package/lib/endpoints/accounts/images.js +59 -50
  25. package/lib/endpoints/accounts/interline.js +131 -102
  26. package/lib/endpoints/accounts/journey-prices-settings.js +30 -27
  27. package/lib/endpoints/accounts/lexicons.js +160 -124
  28. package/lib/endpoints/accounts/market-pricing-settings.js +30 -27
  29. package/lib/endpoints/accounts/multiproduct-sales-settings.js +33 -28
  30. package/lib/endpoints/accounts/network.js +97 -80
  31. package/lib/endpoints/accounts/operation-settings.js +32 -29
  32. package/lib/endpoints/accounts/people-lookups.js +94 -72
  33. package/lib/endpoints/accounts/point-to-point-settings.js +30 -27
  34. package/lib/endpoints/accounts/print-settings.js +32 -29
  35. package/lib/endpoints/accounts/print-templates.js +89 -75
  36. package/lib/endpoints/accounts/printers.js +20 -20
  37. package/lib/endpoints/accounts/rms-settings.js +30 -27
  38. package/lib/endpoints/accounts/s3buckets.js +49 -39
  39. package/lib/endpoints/accounts/salesforce-settings.js +32 -29
  40. package/lib/endpoints/accounts/shift-settings.js +32 -29
  41. package/lib/endpoints/accounts/shifts.js +431 -317
  42. package/lib/endpoints/accounts/sms-templates.js +126 -92
  43. package/lib/endpoints/accounts/sub-print-templates.js +19 -20
  44. package/lib/endpoints/accounts/system-model-settings.js +51 -45
  45. package/lib/endpoints/accounts/ticket-movement-settings.js +30 -27
  46. package/lib/endpoints/accounts/tokens.js +34 -29
  47. package/lib/endpoints/accounts/transport-regulation-settings.js +30 -27
  48. package/lib/endpoints/accounts/travellers.js +82 -66
  49. package/lib/endpoints/accounts/trusted-machines.js +48 -39
  50. package/lib/endpoints/accounts/twilio-settings.js +32 -29
  51. package/lib/endpoints/accounts/users.js +262 -184
  52. package/lib/endpoints/accounts/verified-emails.js +64 -50
  53. package/lib/endpoints/accounts/websales-config.js +35 -31
  54. package/lib/endpoints/bpes/configuration.js +51 -37
  55. package/lib/endpoints/btrzpay/adyen.js +34 -31
  56. package/lib/endpoints/btrzpay/cardpointe.js +84 -62
  57. package/lib/endpoints/btrzpay/customerCards.js +73 -56
  58. package/lib/endpoints/btrzpay/customers.js +55 -43
  59. package/lib/endpoints/btrzpay/cybersource3ds.js +59 -44
  60. package/lib/endpoints/btrzpay/datalogic.js +84 -69
  61. package/lib/endpoints/btrzpay/docs.js +4 -8
  62. package/lib/endpoints/btrzpay/oxxo.js +66 -59
  63. package/lib/endpoints/btrzpay/payment-methods.js +141 -96
  64. package/lib/endpoints/btrzpay/payments.js +37 -30
  65. package/lib/endpoints/btrzpay/prismaTerminals.js +203 -160
  66. package/lib/endpoints/btrzpay/reference-numbers.js +23 -21
  67. package/lib/endpoints/btrzpay/referenced-payments.js +41 -36
  68. package/lib/endpoints/btrzpay/square.js +39 -36
  69. package/lib/endpoints/btrzpay/stripe-terminals.js +36 -31
  70. package/lib/endpoints/btrzpay/stripe3ds.js +25 -22
  71. package/lib/endpoints/btrzpay/terminalPayments.js +58 -52
  72. package/lib/endpoints/coltrane/docs.js +4 -8
  73. package/lib/endpoints/coltrane/healthcheck.js +7 -12
  74. package/lib/endpoints/coltrane/info.js +7 -12
  75. package/lib/endpoints/coltrane/merged-fare-tables.js +22 -22
  76. package/lib/endpoints/coltrane/paths.js +18 -20
  77. package/lib/endpoints/endpoints_helpers.js +14 -30
  78. package/lib/endpoints/gps/scanner-app-location.js +16 -19
  79. package/lib/endpoints/inventory/amenities.js +65 -50
  80. package/lib/endpoints/inventory/amenity-groups.js +65 -50
  81. package/lib/endpoints/inventory/banks.js +78 -59
  82. package/lib/endpoints/inventory/bare-routes.js +31 -30
  83. package/lib/endpoints/inventory/brands.js +68 -50
  84. package/lib/endpoints/inventory/bundle-fares.js +21 -23
  85. package/lib/endpoints/inventory/bundles.js +34 -30
  86. package/lib/endpoints/inventory/change-requests.js +109 -86
  87. package/lib/endpoints/inventory/companies.js +20 -21
  88. package/lib/endpoints/inventory/control-classes.js +112 -85
  89. package/lib/endpoints/inventory/countries.js +35 -32
  90. package/lib/endpoints/inventory/custom-content.js +76 -58
  91. package/lib/endpoints/inventory/custom-fields.js +82 -60
  92. package/lib/endpoints/inventory/docs.js +4 -8
  93. package/lib/endpoints/inventory/document-types.js +96 -69
  94. package/lib/endpoints/inventory/external-passes.js +34 -30
  95. package/lib/endpoints/inventory/external-wallets.js +133 -90
  96. package/lib/endpoints/inventory/fallback-codes.js +66 -49
  97. package/lib/endpoints/inventory/fare-classes.js +54 -41
  98. package/lib/endpoints/inventory/fare-type-modifiers.js +78 -59
  99. package/lib/endpoints/inventory/fares.js +95 -72
  100. package/lib/endpoints/inventory/fees.js +68 -50
  101. package/lib/endpoints/inventory/filtered-trips-v2.js +23 -21
  102. package/lib/endpoints/inventory/filtered-trips.js +50 -39
  103. package/lib/endpoints/inventory/financing-costs.js +78 -61
  104. package/lib/endpoints/inventory/garages.js +72 -59
  105. package/lib/endpoints/inventory/getnet-terminals.js +78 -60
  106. package/lib/endpoints/inventory/gift-certificate-definitions.js +84 -66
  107. package/lib/endpoints/inventory/healthcheck.js +4 -8
  108. package/lib/endpoints/inventory/holidays.js +83 -61
  109. package/lib/endpoints/inventory/insurances.js +68 -57
  110. package/lib/endpoints/inventory/insurancesCost.js +24 -24
  111. package/lib/endpoints/inventory/items.js +86 -64
  112. package/lib/endpoints/inventory/journey-prices.js +83 -61
  113. package/lib/endpoints/inventory/labels.js +83 -61
  114. package/lib/endpoints/inventory/marital-status.js +82 -67
  115. package/lib/endpoints/inventory/marketplace-modifiers.js +74 -57
  116. package/lib/endpoints/inventory/mit-terminal-settings.js +78 -59
  117. package/lib/endpoints/inventory/mit-terminals.js +74 -57
  118. package/lib/endpoints/inventory/operating-companies.js +126 -91
  119. package/lib/endpoints/inventory/operation-messages.js +85 -63
  120. package/lib/endpoints/inventory/operation-reasons.js +86 -67
  121. package/lib/endpoints/inventory/parcel-zones.js +52 -40
  122. package/lib/endpoints/inventory/pay-on-accounts.js +22 -24
  123. package/lib/endpoints/inventory/payment-terminals.js +74 -57
  124. package/lib/endpoints/inventory/prisma-terminals.js +78 -59
  125. package/lib/endpoints/inventory/products.js +90 -70
  126. package/lib/endpoints/inventory/promos.js +138 -95
  127. package/lib/endpoints/inventory/regions.js +78 -59
  128. package/lib/endpoints/inventory/routes.js +323 -262
  129. package/lib/endpoints/inventory/schedule-groups.js +69 -52
  130. package/lib/endpoints/inventory/schedules.js +171 -143
  131. package/lib/endpoints/inventory/seatclasses.js +82 -67
  132. package/lib/endpoints/inventory/seatfees.js +60 -48
  133. package/lib/endpoints/inventory/seatmaps.js +108 -84
  134. package/lib/endpoints/inventory/segments-information-tables.js +22 -23
  135. package/lib/endpoints/inventory/segments-information.js +78 -59
  136. package/lib/endpoints/inventory/service-numbers.js +64 -50
  137. package/lib/endpoints/inventory/service-types.js +74 -57
  138. package/lib/endpoints/inventory/ssrs.js +18 -20
  139. package/lib/endpoints/inventory/station-classes.js +79 -61
  140. package/lib/endpoints/inventory/station-groups.js +18 -20
  141. package/lib/endpoints/inventory/stations-provinces.js +18 -20
  142. package/lib/endpoints/inventory/stations-zones.js +18 -20
  143. package/lib/endpoints/inventory/stations.js +61 -47
  144. package/lib/endpoints/inventory/taxes.js +137 -98
  145. package/lib/endpoints/inventory/travel-routes.js +64 -50
  146. package/lib/endpoints/inventory/traveller-card-providers-types.js +19 -19
  147. package/lib/endpoints/inventory/traveller-card-providers.js +68 -50
  148. package/lib/endpoints/inventory/traveller-card-types.js +82 -59
  149. package/lib/endpoints/inventory/trip-ids.js +21 -21
  150. package/lib/endpoints/inventory/trips.js +48 -41
  151. package/lib/endpoints/inventory/vehicle-types.js +19 -19
  152. package/lib/endpoints/inventory/vehicles.js +111 -83
  153. package/lib/endpoints/inventory/zone-price-overages.js +74 -57
  154. package/lib/endpoints/inventory/zone-prices.js +74 -57
  155. package/lib/endpoints/invoices/dlink.js +37 -34
  156. package/lib/endpoints/invoices/docs.js +4 -8
  157. package/lib/endpoints/invoices/emails.js +22 -23
  158. package/lib/endpoints/invoices/gti.js +37 -34
  159. package/lib/endpoints/invoices/infile.js +37 -34
  160. package/lib/endpoints/invoices/infileJson.js +37 -34
  161. package/lib/endpoints/invoices/invoices.js +78 -63
  162. package/lib/endpoints/invoices/pdfs.js +22 -24
  163. package/lib/endpoints/invoices/providers.js +82 -67
  164. package/lib/endpoints/invoices/providersSequences.js +89 -74
  165. package/lib/endpoints/invoices/system.js +37 -34
  166. package/lib/endpoints/invoices/tax-ids.js +20 -21
  167. package/lib/endpoints/loyalty/movements.js +55 -49
  168. package/lib/endpoints/loyalty/programs.js +50 -41
  169. package/lib/endpoints/notifications/customers.js +33 -31
  170. package/lib/endpoints/notifications/email.js +20 -21
  171. package/lib/endpoints/notifications/external-customers.js +35 -30
  172. package/lib/endpoints/notifications/manifest-notifications.js +31 -33
  173. package/lib/endpoints/notifications/notify.js +112 -81
  174. package/lib/endpoints/notifications/orders-rules-validations.js +22 -22
  175. package/lib/endpoints/notifications/pdf-data.js +56 -64
  176. package/lib/endpoints/notifications/pdfs.js +48 -55
  177. package/lib/endpoints/notifications/printed-tickets.js +31 -27
  178. package/lib/endpoints/notifications/salesforce.js +19 -19
  179. package/lib/endpoints/notifications/short-urls.js +38 -33
  180. package/lib/endpoints/notifications/twilio.js +57 -46
  181. package/lib/endpoints/operations/accounting_items.js +30 -36
  182. package/lib/endpoints/operations/applied_insurance.js +25 -20
  183. package/lib/endpoints/operations/calendar_entries.js +18 -20
  184. package/lib/endpoints/operations/cancellation_settings.js +33 -28
  185. package/lib/endpoints/operations/docs.js +5 -9
  186. package/lib/endpoints/operations/external-bookings.js +35 -31
  187. package/lib/endpoints/operations/flexpasses.js +22 -22
  188. package/lib/endpoints/operations/gift-certificates.js +25 -23
  189. package/lib/endpoints/operations/loans.js +30 -36
  190. package/lib/endpoints/operations/manifest.js +469 -372
  191. package/lib/endpoints/operations/manifest_leg_for_tickets.js +23 -23
  192. package/lib/endpoints/operations/movements.js +21 -22
  193. package/lib/endpoints/operations/outlook-trips.js +20 -21
  194. package/lib/endpoints/operations/pago-express.js +55 -39
  195. package/lib/endpoints/operations/parcels.js +96 -67
  196. package/lib/endpoints/operations/parcels_manifests.js +102 -81
  197. package/lib/endpoints/operations/passenger_check_in_info.js +66 -52
  198. package/lib/endpoints/operations/redemption.js +52 -40
  199. package/lib/endpoints/operations/rms.js +35 -33
  200. package/lib/endpoints/operations/scheduled_notifications.js +80 -61
  201. package/lib/endpoints/operations/segments.js +24 -24
  202. package/lib/endpoints/operations/sold-items-fulfillment.js +20 -21
  203. package/lib/endpoints/operations/sold-items.js +35 -30
  204. package/lib/endpoints/operations/tickets.js +109 -78
  205. package/lib/endpoints/operations/transaction.js +22 -22
  206. package/lib/endpoints/operations/transactions.js +178 -135
  207. package/lib/endpoints/operations/transport_regulations.js +22 -22
  208. package/lib/endpoints/operations/trip_change_info.js +23 -23
  209. package/lib/endpoints/operations/vehicle_assignments.js +60 -48
  210. package/lib/endpoints/operations/vouchers.js +32 -35
  211. package/lib/endpoints/operations/waitlists.js +62 -47
  212. package/lib/endpoints/ratality/auth.js +10 -14
  213. package/lib/endpoints/ratality/clients.js +30 -28
  214. package/lib/endpoints/ratality/integrations.js +43 -36
  215. package/lib/endpoints/reports/custom-reports.js +50 -39
  216. package/lib/endpoints/reports/email.js +20 -19
  217. package/lib/endpoints/reports/report-types.js +35 -30
  218. package/lib/endpoints/reports/trip-manifests.js +20 -21
  219. package/lib/endpoints/sales/bundles.js +18 -20
  220. package/lib/endpoints/sales/cancellations.js +48 -34
  221. package/lib/endpoints/sales/cart-promo.js +37 -34
  222. package/lib/endpoints/sales/cart.js +218 -166
  223. package/lib/endpoints/sales/check-in-info.js +22 -23
  224. package/lib/endpoints/sales/custom-fields.js +18 -20
  225. package/lib/endpoints/sales/docs.js +4 -8
  226. package/lib/endpoints/sales/flexpasses.js +21 -21
  227. package/lib/endpoints/sales/gift-certificates.js +20 -22
  228. package/lib/endpoints/sales/order.js +66 -53
  229. package/lib/endpoints/sales/parcel-quotes.js +20 -20
  230. package/lib/endpoints/sales/payment-providers.js +20 -21
  231. package/lib/endpoints/sales/redeemable-items.js +32 -31
  232. package/lib/endpoints/sales/sync-entry.js +21 -21
  233. package/lib/endpoints/sales/voucher.js +19 -20
  234. package/lib/endpoints/seatmaps/access-ticket.js +19 -19
  235. package/lib/endpoints/seatmaps/seat.js +21 -21
  236. package/lib/endpoints/uploads/files.js +26 -24
  237. package/lib/endpoints/uploads/images.js +26 -24
  238. package/lib/endpoints/webhooks/events.js +24 -24
  239. package/lib/endpoints/webhooks/subscriptions.js +80 -60
  240. package/lib/endpoints/webhooks/undelivered.js +103 -73
  241. package/lib/endpoints/webhooks/webhooks.js +20 -20
  242. package/lib/initializedClient.js +3 -5
  243. package/lib/productionDefaults.js +6 -8
  244. package/package.json +18 -18
  245. package/src/client.js +1 -1
  246. package/src/endpoints/operations/transactions.js +1 -1
  247. package/tools/build-standalone.mjs +15 -0
  248. package/.eslintignore +0 -2
  249. package/.eslintrc.js +0 -3
@@ -1,10 +1,12 @@
1
- "use strict";
2
-
3
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
4
-
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
6
  /* eslint-disable max-len */
6
- var _require = require("./../endpoints_helpers.js"),
7
- authorizationHeaders = _require.authorizationHeaders;
7
+ const {
8
+ authorizationHeaders
9
+ } = require("./../endpoints_helpers.js");
8
10
 
9
11
  /**
10
12
  * Query params for GET /manifests (btrz-api-operations). See get-manifests getSpec().
@@ -85,12 +87,10 @@ var _require = require("./../endpoints_helpers.js"),
85
87
  * @param {{ getToken: function(): string }} [deps.internalAuthTokenProvider]
86
88
  * @returns {Object} manifest API methods
87
89
  */
88
-
89
-
90
- function manifestFactory(_ref) {
91
- var client = _ref.client,
92
- internalAuthTokenProvider = _ref.internalAuthTokenProvider;
93
-
90
+ function manifestFactory({
91
+ client,
92
+ internalAuthTokenProvider
93
+ }) {
94
94
  /**
95
95
  * POST /manifests/dispatch/reporting - create dispatch reporting.
96
96
  * @param {Object} opts
@@ -100,17 +100,22 @@ function manifestFactory(_ref) {
100
100
  * @param {Object} opts.data - Request body
101
101
  * @returns {Promise<import("axios").AxiosResponse>}
102
102
  */
103
- function createDispatchReporting(_ref2) {
104
- var token = _ref2.token,
105
- jwtToken = _ref2.jwtToken,
106
- headers = _ref2.headers,
107
- data = _ref2.data;
108
-
103
+ function createDispatchReporting({
104
+ token,
105
+ jwtToken,
106
+ headers,
107
+ data
108
+ }) {
109
109
  return client({
110
110
  url: "/manifests/dispatch/reporting",
111
111
  method: "post",
112
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
113
- data: data
112
+ headers: authorizationHeaders({
113
+ token,
114
+ jwtToken,
115
+ internalAuthTokenProvider,
116
+ headers
117
+ }),
118
+ data
114
119
  });
115
120
  }
116
121
 
@@ -124,18 +129,23 @@ function manifestFactory(_ref) {
124
129
  * @param {Object} opts.data - Request body
125
130
  * @returns {Promise<import("axios").AxiosResponse>}
126
131
  */
127
- function updateDispatchReporting(_ref3) {
128
- var token = _ref3.token,
129
- jwtToken = _ref3.jwtToken,
130
- headers = _ref3.headers,
131
- manifestId = _ref3.manifestId,
132
- data = _ref3.data;
133
-
132
+ function updateDispatchReporting({
133
+ token,
134
+ jwtToken,
135
+ headers,
136
+ manifestId,
137
+ data
138
+ }) {
134
139
  return client({
135
- url: "manifests/" + manifestId + "/dispatch/reporting",
140
+ url: `manifests/${manifestId}/dispatch/reporting`,
136
141
  method: "put",
137
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
138
- data: data
142
+ headers: authorizationHeaders({
143
+ token,
144
+ jwtToken,
145
+ internalAuthTokenProvider,
146
+ headers
147
+ }),
148
+ data
139
149
  });
140
150
  }
141
151
 
@@ -149,19 +159,24 @@ function manifestFactory(_ref) {
149
159
  * @param {Object} opts.data - Request body
150
160
  * @returns {Promise<import("axios").AxiosResponse>}
151
161
  */
152
- function dispatch(_ref4) {
153
- var token = _ref4.token,
154
- jwtToken = _ref4.jwtToken,
155
- headers = _ref4.headers,
156
- manifestId = _ref4.manifestId,
157
- data = _ref4.data,
158
- query = _ref4.query;
159
-
162
+ function dispatch({
163
+ token,
164
+ jwtToken,
165
+ headers,
166
+ manifestId,
167
+ data,
168
+ query
169
+ }) {
160
170
  return client({
161
- url: "manifests/" + manifestId + "/dispatches",
171
+ url: `manifests/${manifestId}/dispatches`,
162
172
  method: "post",
163
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
164
- data: data,
173
+ headers: authorizationHeaders({
174
+ token,
175
+ jwtToken,
176
+ internalAuthTokenProvider,
177
+ headers
178
+ }),
179
+ data,
165
180
  params: query
166
181
  });
167
182
  }
@@ -175,18 +190,22 @@ function manifestFactory(_ref) {
175
190
  * @param {Object} [opts.headers] - Optional headers
176
191
  * @returns {Promise<import("axios").AxiosResponse>}
177
192
  */
178
- function get(_ref5) {
179
- var token = _ref5.token,
180
- jwtToken = _ref5.jwtToken,
181
- _ref5$query = _ref5.query,
182
- query = _ref5$query === undefined ? {} : _ref5$query,
183
- headers = _ref5.headers;
184
-
193
+ function get({
194
+ token,
195
+ jwtToken,
196
+ query = {},
197
+ headers
198
+ }) {
185
199
  return client({
186
200
  url: "/manifests",
187
201
  method: "get",
188
202
  params: query,
189
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
203
+ headers: authorizationHeaders({
204
+ token,
205
+ jwtToken,
206
+ internalAuthTokenProvider,
207
+ headers
208
+ })
190
209
  });
191
210
  }
192
211
 
@@ -199,20 +218,22 @@ function manifestFactory(_ref) {
199
218
  * @param {Object} [opts.headers] - Optional headers
200
219
  * @returns {Promise<import("axios").AxiosResponse>}
201
220
  */
202
- function getById(_ref6) {
203
- var token = _ref6.token,
204
- jwtToken = _ref6.jwtToken,
205
- manifestId = _ref6.manifestId,
206
- _ref6$query = _ref6.query,
207
- query = _ref6$query === undefined ? {} : _ref6$query,
208
- headers = _ref6.headers;
209
-
221
+ function getById({
222
+ token,
223
+ jwtToken,
224
+ manifestId,
225
+ query = {},
226
+ headers
227
+ }) {
210
228
  return client({
211
- url: "/manifests/" + manifestId,
229
+ url: `/manifests/${manifestId}`,
212
230
  method: "get",
213
231
  params: query,
214
232
  headers: authorizationHeaders({
215
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
233
+ token,
234
+ jwtToken,
235
+ internalAuthTokenProvider,
236
+ headers
216
237
  })
217
238
  });
218
239
  }
@@ -227,24 +248,30 @@ function manifestFactory(_ref) {
227
248
  * @param {Object} [opts.headers] - Optional headers
228
249
  * @returns {Promise<import("axios").AxiosResponse>}
229
250
  */
230
- function statusBulkUpdate(_ref7) {
231
- var token = _ref7.token,
232
- jwtToken = _ref7.jwtToken,
233
- data = _ref7.data,
234
- headers = _ref7.headers,
235
- mode = _ref7.mode;
236
-
237
- var params = { mode: "sync" };
251
+ function statusBulkUpdate({
252
+ token,
253
+ jwtToken,
254
+ data,
255
+ headers,
256
+ mode
257
+ }) {
258
+ const params = {
259
+ mode: "sync"
260
+ };
238
261
  if (mode) {
239
262
  params.mode = mode;
240
263
  }
241
-
242
264
  return client({
243
265
  url: "/manifests/status",
244
- params: params,
266
+ params,
245
267
  method: "put",
246
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
247
- data: data
268
+ headers: authorizationHeaders({
269
+ token,
270
+ jwtToken,
271
+ internalAuthTokenProvider,
272
+ headers
273
+ }),
274
+ data
248
275
  });
249
276
  }
250
277
 
@@ -258,20 +285,27 @@ function manifestFactory(_ref) {
258
285
  * @param {Object} [opts.headers] - Optional headers
259
286
  * @returns {Promise<import("axios").AxiosResponse>}
260
287
  */
261
- function getAll(_ref8) {
262
- var token = _ref8.token,
263
- jwtToken = _ref8.jwtToken,
264
- providerId = _ref8.providerId,
265
- data = _ref8.data,
266
- headers = _ref8.headers;
267
-
288
+ function getAll({
289
+ token,
290
+ jwtToken,
291
+ providerId,
292
+ data,
293
+ headers
294
+ }) {
268
295
  // an HTTP POST request is used to send the query data in the request body because the query may be very large.
269
296
  return client({
270
297
  url: "/all-manifests",
271
298
  method: "post",
272
- params: { providerId: providerId },
273
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
274
- data: data
299
+ params: {
300
+ providerId
301
+ },
302
+ headers: authorizationHeaders({
303
+ token,
304
+ jwtToken,
305
+ internalAuthTokenProvider,
306
+ headers
307
+ }),
308
+ data
275
309
  });
276
310
  }
277
311
 
@@ -284,19 +318,21 @@ function manifestFactory(_ref) {
284
318
  * @param {Object} [opts.headers] - Optional headers
285
319
  * @returns {Promise<import("axios").AxiosResponse>}
286
320
  */
287
- function outlook(_ref9) {
288
- var token = _ref9.token,
289
- jwtToken = _ref9.jwtToken,
290
- _ref9$query = _ref9.query,
291
- query = _ref9$query === undefined ? {} : _ref9$query,
292
- headers = _ref9.headers;
293
-
321
+ function outlook({
322
+ token,
323
+ jwtToken,
324
+ query = {},
325
+ headers
326
+ }) {
294
327
  return client({
295
328
  url: "/outlook-manifests",
296
329
  method: "get",
297
330
  params: query,
298
331
  headers: authorizationHeaders({
299
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
332
+ token,
333
+ jwtToken,
334
+ internalAuthTokenProvider,
335
+ headers
300
336
  })
301
337
  });
302
338
  }
@@ -311,21 +347,25 @@ function manifestFactory(_ref) {
311
347
  * @param {Object} [opts.headers] - Optional headers
312
348
  * @returns {Promise<import("axios").AxiosResponse>}
313
349
  */
314
- function patch(_ref10) {
315
- var token = _ref10.token,
316
- jwtToken = _ref10.jwtToken,
317
- _ref10$query = _ref10.query,
318
- query = _ref10$query === undefined ? {} : _ref10$query,
319
- operations = _ref10.operations,
320
- headers = _ref10.headers;
321
-
350
+ function patch({
351
+ token,
352
+ jwtToken,
353
+ query = {},
354
+ operations,
355
+ headers
356
+ }) {
322
357
  return client({
323
358
  url: "/manifests",
324
359
  method: "patch",
325
360
  params: query,
326
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
361
+ headers: authorizationHeaders({
362
+ token,
363
+ jwtToken,
364
+ internalAuthTokenProvider,
365
+ headers
366
+ }),
327
367
  data: {
328
- operations: operations
368
+ operations
329
369
  }
330
370
  });
331
371
  }
@@ -341,21 +381,28 @@ function manifestFactory(_ref) {
341
381
  * @param {ManifestSaveQuery} [opts.query] - Query params (providerId required; manifestId, bypassBusValidation optional)
342
382
  * @returns {Promise<import("axios").AxiosResponse>}
343
383
  */
344
- function save(_ref11) {
345
- var token = _ref11.token,
346
- jwtToken = _ref11.jwtToken,
347
- providerId = _ref11.providerId,
348
- data = _ref11.data,
349
- headers = _ref11.headers,
350
- _ref11$query = _ref11.query,
351
- query = _ref11$query === undefined ? {} : _ref11$query;
352
-
384
+ function save({
385
+ token,
386
+ jwtToken,
387
+ providerId,
388
+ data,
389
+ headers,
390
+ query = {}
391
+ }) {
353
392
  return client({
354
393
  url: "/manifests",
355
394
  method: "put",
356
- params: _extends({ providerId: providerId, manifestId: data.manifestId }, query),
357
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
358
- data: data
395
+ params: _objectSpread({
396
+ providerId,
397
+ manifestId: data.manifestId
398
+ }, query),
399
+ headers: authorizationHeaders({
400
+ token,
401
+ jwtToken,
402
+ internalAuthTokenProvider,
403
+ headers
404
+ }),
405
+ data
359
406
  });
360
407
  }
361
408
 
@@ -369,23 +416,25 @@ function manifestFactory(_ref) {
369
416
  * @param {Object} [opts.headers] - Optional headers
370
417
  * @returns {Promise<import("axios").AxiosResponse>}
371
418
  */
372
- function addUser(_ref12) {
373
- var token = _ref12.token,
374
- jwtToken = _ref12.jwtToken,
375
- manifestId = _ref12.manifestId,
376
- _ref12$query = _ref12.query,
377
- query = _ref12$query === undefined ? {} : _ref12$query,
378
- data = _ref12.data,
379
- headers = _ref12.headers;
380
-
419
+ function addUser({
420
+ token,
421
+ jwtToken,
422
+ manifestId,
423
+ query = {},
424
+ data,
425
+ headers
426
+ }) {
381
427
  return client({
382
- url: "/manifests/" + manifestId + "/users",
428
+ url: `/manifests/${manifestId}/users`,
383
429
  method: "post",
384
430
  headers: authorizationHeaders({
385
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
431
+ token,
432
+ jwtToken,
433
+ internalAuthTokenProvider,
434
+ headers
386
435
  }),
387
436
  params: query,
388
- data: data
437
+ data
389
438
  });
390
439
  }
391
440
 
@@ -399,18 +448,21 @@ function manifestFactory(_ref) {
399
448
  * @param {Object} [opts.headers] - Optional headers
400
449
  * @returns {Promise<import("axios").AxiosResponse>}
401
450
  */
402
- function removeUser(_ref13) {
403
- var token = _ref13.token,
404
- jwtToken = _ref13.jwtToken,
405
- manifestId = _ref13.manifestId,
406
- userId = _ref13.userId,
407
- headers = _ref13.headers;
408
-
451
+ function removeUser({
452
+ token,
453
+ jwtToken,
454
+ manifestId,
455
+ userId,
456
+ headers
457
+ }) {
409
458
  return client({
410
- url: "/manifests/" + manifestId + "/users/" + userId,
459
+ url: `/manifests/${manifestId}/users/${userId}`,
411
460
  method: "delete",
412
461
  headers: authorizationHeaders({
413
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
462
+ token,
463
+ jwtToken,
464
+ internalAuthTokenProvider,
465
+ headers
414
466
  })
415
467
  });
416
468
  }
@@ -425,23 +477,25 @@ function manifestFactory(_ref) {
425
477
  * @param {Object} [opts.headers] - Optional headers
426
478
  * @returns {Promise<import("axios").AxiosResponse>}
427
479
  */
428
- function addCapacityException(_ref14) {
429
- var token = _ref14.token,
430
- jwtToken = _ref14.jwtToken,
431
- manifestId = _ref14.manifestId,
432
- _ref14$query = _ref14.query,
433
- query = _ref14$query === undefined ? {} : _ref14$query,
434
- data = _ref14.data,
435
- headers = _ref14.headers;
436
-
480
+ function addCapacityException({
481
+ token,
482
+ jwtToken,
483
+ manifestId,
484
+ query = {},
485
+ data,
486
+ headers
487
+ }) {
437
488
  return client({
438
- url: "/manifests/" + manifestId + "/capacity-exceptions",
489
+ url: `/manifests/${manifestId}/capacity-exceptions`,
439
490
  method: "post",
440
491
  headers: authorizationHeaders({
441
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
492
+ token,
493
+ jwtToken,
494
+ internalAuthTokenProvider,
495
+ headers
442
496
  }),
443
497
  params: query,
444
- data: data
498
+ data
445
499
  });
446
500
  }
447
501
 
@@ -455,18 +509,21 @@ function manifestFactory(_ref) {
455
509
  * @param {Object} [opts.headers] - Optional headers
456
510
  * @returns {Promise<import("axios").AxiosResponse>}
457
511
  */
458
- function removeCapacityException(_ref15) {
459
- var token = _ref15.token,
460
- jwtToken = _ref15.jwtToken,
461
- manifestId = _ref15.manifestId,
462
- exceptionId = _ref15.exceptionId,
463
- headers = _ref15.headers;
464
-
512
+ function removeCapacityException({
513
+ token,
514
+ jwtToken,
515
+ manifestId,
516
+ exceptionId,
517
+ headers
518
+ }) {
465
519
  return client({
466
- url: "/manifests/" + manifestId + "/capacity-exceptions/" + exceptionId,
520
+ url: `/manifests/${manifestId}/capacity-exceptions/${exceptionId}`,
467
521
  method: "delete",
468
522
  headers: authorizationHeaders({
469
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
523
+ token,
524
+ jwtToken,
525
+ internalAuthTokenProvider,
526
+ headers
470
527
  })
471
528
  });
472
529
  }
@@ -481,23 +538,25 @@ function manifestFactory(_ref) {
481
538
  * @param {Object} [opts.headers] - Optional headers
482
539
  * @returns {Promise<import("axios").AxiosResponse>}
483
540
  */
484
- function updateComment(_ref16) {
485
- var token = _ref16.token,
486
- jwtToken = _ref16.jwtToken,
487
- manifestId = _ref16.manifestId,
488
- _ref16$query = _ref16.query,
489
- query = _ref16$query === undefined ? {} : _ref16$query,
490
- data = _ref16.data,
491
- headers = _ref16.headers;
492
-
541
+ function updateComment({
542
+ token,
543
+ jwtToken,
544
+ manifestId,
545
+ query = {},
546
+ data,
547
+ headers
548
+ }) {
493
549
  return client({
494
- url: "/manifests/" + manifestId + "/comments",
550
+ url: `/manifests/${manifestId}/comments`,
495
551
  method: "put",
496
552
  headers: authorizationHeaders({
497
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
553
+ token,
554
+ jwtToken,
555
+ internalAuthTokenProvider,
556
+ headers
498
557
  }),
499
558
  params: query,
500
- data: data
559
+ data
501
560
  });
502
561
  }
503
562
 
@@ -511,23 +570,25 @@ function manifestFactory(_ref) {
511
570
  * @param {Object} [opts.headers] - Optional headers
512
571
  * @returns {Promise<import("axios").AxiosResponse>}
513
572
  */
514
- function updateStatus(_ref17) {
515
- var token = _ref17.token,
516
- jwtToken = _ref17.jwtToken,
517
- manifestId = _ref17.manifestId,
518
- _ref17$query = _ref17.query,
519
- query = _ref17$query === undefined ? {} : _ref17$query,
520
- data = _ref17.data,
521
- headers = _ref17.headers;
522
-
573
+ function updateStatus({
574
+ token,
575
+ jwtToken,
576
+ manifestId,
577
+ query = {},
578
+ data,
579
+ headers
580
+ }) {
523
581
  return client({
524
- url: "/manifests/" + manifestId + "/status",
582
+ url: `/manifests/${manifestId}/status`,
525
583
  method: "put",
526
584
  headers: authorizationHeaders({
527
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
585
+ token,
586
+ jwtToken,
587
+ internalAuthTokenProvider,
588
+ headers
528
589
  }),
529
590
  params: query,
530
- data: data
591
+ data
531
592
  });
532
593
  }
533
594
 
@@ -540,26 +601,28 @@ function manifestFactory(_ref) {
540
601
  * @param {Object} [opts.headers] - Optional headers
541
602
  * @returns {Promise<import("axios").AxiosResponse>}
542
603
  */
543
- function getSalesAuthorizations(_ref18) {
544
- var token = _ref18.token,
545
- jwtToken = _ref18.jwtToken,
546
- manifestKey = _ref18.manifestKey,
547
- _ref18$query = _ref18.query,
548
- query = _ref18$query === undefined ? {} : _ref18$query,
549
- headers = _ref18.headers;
550
-
604
+ function getSalesAuthorizations({
605
+ token,
606
+ jwtToken,
607
+ manifestKey,
608
+ query = {},
609
+ headers
610
+ }) {
551
611
  return client({
552
- url: "/manifests/" + manifestKey + "/sales-authorizations",
612
+ url: `/manifests/${manifestKey}/sales-authorizations`,
553
613
  method: "get",
554
614
  params: query,
555
615
  headers: authorizationHeaders({
556
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
616
+ token,
617
+ jwtToken,
618
+ internalAuthTokenProvider,
619
+ headers
557
620
  })
558
621
  });
559
622
  }
560
623
 
561
624
  /** @type {{ create: function, open: function, close: function }} */
562
- var checkIn = {
625
+ const checkIn = {
563
626
  /**
564
627
  * POST /manifests/:manifestId/checkin/:legFromId - create check-in.
565
628
  * @param {Object} opts
@@ -571,27 +634,28 @@ function manifestFactory(_ref) {
571
634
  * @param {string} opts.legFromId - Leg from id
572
635
  * @returns {Promise<import("axios").AxiosResponse>}
573
636
  */
574
- create: function create(_ref19) {
575
- var token = _ref19.token,
576
- jwtToken = _ref19.jwtToken,
577
- _ref19$query = _ref19.query,
578
- query = _ref19$query === undefined ? {} : _ref19$query,
579
- headers = _ref19.headers,
580
- data = _ref19.data,
581
- manifestId = _ref19.manifestId,
582
- legFromId = _ref19.legFromId;
583
-
637
+ create({
638
+ token,
639
+ jwtToken,
640
+ query = {},
641
+ headers,
642
+ data,
643
+ manifestId,
644
+ legFromId
645
+ }) {
584
646
  return client({
585
- url: "/manifests/" + manifestId + "/checkin/" + legFromId,
647
+ url: `/manifests/${manifestId}/checkin/${legFromId}`,
586
648
  method: "post",
587
649
  headers: authorizationHeaders({
588
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
650
+ token,
651
+ jwtToken,
652
+ internalAuthTokenProvider,
653
+ headers
589
654
  }),
590
655
  params: query,
591
- data: data
656
+ data
592
657
  });
593
658
  },
594
-
595
659
  /**
596
660
  * PATCH /manifests/:manifestId/checkin/:legFromId (open_check_in) - open check-in.
597
661
  * @param {Object} opts
@@ -602,20 +666,22 @@ function manifestFactory(_ref) {
602
666
  * @param {string} opts.legFromId - Leg from id
603
667
  * @returns {Promise<import("axios").AxiosResponse>}
604
668
  */
605
- open: function open(_ref20) {
606
- var token = _ref20.token,
607
- jwtToken = _ref20.jwtToken,
608
- _ref20$query = _ref20.query,
609
- query = _ref20$query === undefined ? {} : _ref20$query,
610
- headers = _ref20.headers,
611
- manifestId = _ref20.manifestId,
612
- legFromId = _ref20.legFromId;
613
-
669
+ open({
670
+ token,
671
+ jwtToken,
672
+ query = {},
673
+ headers,
674
+ manifestId,
675
+ legFromId
676
+ }) {
614
677
  return client({
615
- url: "/manifests/" + manifestId + "/checkin/" + legFromId,
678
+ url: `/manifests/${manifestId}/checkin/${legFromId}`,
616
679
  method: "patch",
617
680
  headers: authorizationHeaders({
618
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
681
+ token,
682
+ jwtToken,
683
+ internalAuthTokenProvider,
684
+ headers
619
685
  }),
620
686
  params: query,
621
687
  data: {
@@ -625,7 +691,6 @@ function manifestFactory(_ref) {
625
691
  }
626
692
  });
627
693
  },
628
-
629
694
  /**
630
695
  * PATCH /manifests/:manifestId/checkin/:legFromId (close_check_in) - close check-in.
631
696
  * @param {Object} opts
@@ -636,20 +701,22 @@ function manifestFactory(_ref) {
636
701
  * @param {string} opts.legFromId - Leg from id
637
702
  * @returns {Promise<import("axios").AxiosResponse>}
638
703
  */
639
- close: function close(_ref21) {
640
- var token = _ref21.token,
641
- jwtToken = _ref21.jwtToken,
642
- _ref21$query = _ref21.query,
643
- query = _ref21$query === undefined ? {} : _ref21$query,
644
- headers = _ref21.headers,
645
- manifestId = _ref21.manifestId,
646
- legFromId = _ref21.legFromId;
647
-
704
+ close({
705
+ token,
706
+ jwtToken,
707
+ query = {},
708
+ headers,
709
+ manifestId,
710
+ legFromId
711
+ }) {
648
712
  return client({
649
- url: "/manifests/" + manifestId + "/checkin/" + legFromId,
713
+ url: `/manifests/${manifestId}/checkin/${legFromId}`,
650
714
  method: "patch",
651
715
  headers: authorizationHeaders({
652
- token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
716
+ token,
717
+ jwtToken,
718
+ internalAuthTokenProvider,
719
+ headers
653
720
  }),
654
721
  params: query,
655
722
  data: {
@@ -662,7 +729,7 @@ function manifestFactory(_ref) {
662
729
  };
663
730
 
664
731
  /** @type {{ update: function, tickets: { update: function, noshow: function } }} */
665
- var legs = {
732
+ const legs = {
666
733
  /**
667
734
  * PUT /manifests/:manifestId/legs/:legFromId - update leg.
668
735
  * @param {Object} opts
@@ -674,25 +741,28 @@ function manifestFactory(_ref) {
674
741
  * @param {string} opts.legFromId - Leg from id
675
742
  * @returns {Promise<import("axios").AxiosResponse>}
676
743
  */
677
- update: function update(_ref22) {
678
- var token = _ref22.token,
679
- jwtToken = _ref22.jwtToken,
680
- data = _ref22.data,
681
- _ref22$query = _ref22.query,
682
- query = _ref22$query === undefined ? {} : _ref22$query,
683
- headers = _ref22.headers,
684
- manifestId = _ref22.manifestId,
685
- legFromId = _ref22.legFromId;
686
-
744
+ update({
745
+ token,
746
+ jwtToken,
747
+ data,
748
+ query = {},
749
+ headers,
750
+ manifestId,
751
+ legFromId
752
+ }) {
687
753
  return client({
688
- url: "/manifests/" + manifestId + "/legs/" + legFromId,
754
+ url: `/manifests/${manifestId}/legs/${legFromId}`,
689
755
  method: "put",
690
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
756
+ headers: authorizationHeaders({
757
+ token,
758
+ jwtToken,
759
+ internalAuthTokenProvider,
760
+ headers
761
+ }),
691
762
  params: query,
692
- data: data
763
+ data
693
764
  });
694
765
  },
695
-
696
766
  tickets: {
697
767
  /**
698
768
  * PUT /manifests/:manifestId/legs/:legFromId/tickets/:ticketId - update leg ticket.
@@ -706,26 +776,29 @@ function manifestFactory(_ref) {
706
776
  * @param {string} opts.ticketId - Ticket id
707
777
  * @returns {Promise<import("axios").AxiosResponse>}
708
778
  */
709
- update: function update(_ref23) {
710
- var token = _ref23.token,
711
- jwtToken = _ref23.jwtToken,
712
- data = _ref23.data,
713
- _ref23$query = _ref23.query,
714
- query = _ref23$query === undefined ? {} : _ref23$query,
715
- headers = _ref23.headers,
716
- manifestId = _ref23.manifestId,
717
- legFromId = _ref23.legFromId,
718
- ticketId = _ref23.ticketId;
719
-
779
+ update({
780
+ token,
781
+ jwtToken,
782
+ data,
783
+ query = {},
784
+ headers,
785
+ manifestId,
786
+ legFromId,
787
+ ticketId
788
+ }) {
720
789
  return client({
721
- url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId,
790
+ url: `/manifests/${manifestId}/legs/${legFromId}/tickets/${ticketId}`,
722
791
  method: "put",
723
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
792
+ headers: authorizationHeaders({
793
+ token,
794
+ jwtToken,
795
+ internalAuthTokenProvider,
796
+ headers
797
+ }),
724
798
  params: query,
725
- data: data
799
+ data
726
800
  });
727
801
  },
728
-
729
802
  /**
730
803
  * PUT /manifests/:manifestId/legs/:legFromId/tickets/:ticketId/noshow - mark ticket noshow.
731
804
  * @param {Object} opts
@@ -737,27 +810,30 @@ function manifestFactory(_ref) {
737
810
  * @param {string} opts.ticketId - Ticket id
738
811
  * @returns {Promise<import("axios").AxiosResponse>}
739
812
  */
740
- noshow: function noshow(_ref24) {
741
- var token = _ref24.token,
742
- jwtToken = _ref24.jwtToken,
743
- _ref24$query = _ref24.query,
744
- query = _ref24$query === undefined ? {} : _ref24$query,
745
- headers = _ref24.headers,
746
- manifestId = _ref24.manifestId,
747
- legFromId = _ref24.legFromId,
748
- ticketId = _ref24.ticketId;
749
-
813
+ noshow({
814
+ token,
815
+ jwtToken,
816
+ query = {},
817
+ headers,
818
+ manifestId,
819
+ legFromId,
820
+ ticketId
821
+ }) {
750
822
  return client({
751
- url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId + "/noshow",
823
+ url: `/manifests/${manifestId}/legs/${legFromId}/tickets/${ticketId}/noshow`,
752
824
  method: "put",
753
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
825
+ headers: authorizationHeaders({
826
+ token,
827
+ jwtToken,
828
+ internalAuthTokenProvider,
829
+ headers
830
+ }),
754
831
  params: query
755
832
  });
756
833
  }
757
834
  }
758
835
  };
759
-
760
- var reports = {
836
+ const reports = {
761
837
  /**
762
838
  * GET /manifests/:id/reports - get manifest reports.
763
839
  * @param {Object} opts
@@ -768,27 +844,29 @@ function manifestFactory(_ref) {
768
844
  * @param {Object} [opts.headers] - Optional headers
769
845
  * @returns {Promise<import("axios").AxiosResponse>}
770
846
  */
771
- get: function get(_ref25) {
772
- var token = _ref25.token,
773
- jwtToken = _ref25.jwtToken,
774
- _ref25$query = _ref25.query,
775
- query = _ref25$query === undefined ? {} : _ref25$query,
776
- _ref25$responseType = _ref25.responseType,
777
- responseType = _ref25$responseType === undefined ? "json" : _ref25$responseType,
778
- id = _ref25.id,
779
- headers = _ref25.headers;
780
-
847
+ get({
848
+ token,
849
+ jwtToken,
850
+ query = {},
851
+ responseType = "json",
852
+ id,
853
+ headers
854
+ }) {
781
855
  return client({
782
- url: "/manifests/" + id + "/reports",
856
+ url: `/manifests/${id}/reports`,
783
857
  method: "get",
784
- responseType: responseType,
858
+ responseType,
785
859
  params: query,
786
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
860
+ headers: authorizationHeaders({
861
+ token,
862
+ jwtToken,
863
+ internalAuthTokenProvider,
864
+ headers
865
+ })
787
866
  });
788
867
  }
789
868
  };
790
-
791
- var labels = {
869
+ const labels = {
792
870
  /**
793
871
  * POST /manifests/:manifestId/labels - add label.
794
872
  * @param {Object} opts
@@ -799,24 +877,27 @@ function manifestFactory(_ref) {
799
877
  * @param {Object} opts.data - Request body
800
878
  * @returns {Promise<import("axios").AxiosResponse>}
801
879
  */
802
- add: function add(_ref26) {
803
- var token = _ref26.token,
804
- jwtToken = _ref26.jwtToken,
805
- manifestId = _ref26.manifestId,
806
- _ref26$query = _ref26.query,
807
- query = _ref26$query === undefined ? {} : _ref26$query,
808
- headers = _ref26.headers,
809
- data = _ref26.data;
810
-
880
+ add({
881
+ token,
882
+ jwtToken,
883
+ manifestId,
884
+ query = {},
885
+ headers,
886
+ data
887
+ }) {
811
888
  return client({
812
- url: "/manifests/" + manifestId + "/labels",
889
+ url: `/manifests/${manifestId}/labels`,
813
890
  method: "post",
814
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
891
+ headers: authorizationHeaders({
892
+ token,
893
+ jwtToken,
894
+ internalAuthTokenProvider,
895
+ headers
896
+ }),
815
897
  params: query,
816
- data: data
898
+ data
817
899
  });
818
900
  },
819
-
820
901
  /**
821
902
  * DELETE /manifests/:manifestId/labels/:labelId - remove label.
822
903
  * @param {Object} opts
@@ -827,22 +908,26 @@ function manifestFactory(_ref) {
827
908
  * @param {Object} [opts.headers] - Optional headers
828
909
  * @returns {Promise<import("axios").AxiosResponse>}
829
910
  */
830
- remove: function remove(_ref27) {
831
- var token = _ref27.token,
832
- jwtToken = _ref27.jwtToken,
833
- manifestId = _ref27.manifestId,
834
- labelId = _ref27.labelId,
835
- headers = _ref27.headers;
836
-
911
+ remove({
912
+ token,
913
+ jwtToken,
914
+ manifestId,
915
+ labelId,
916
+ headers
917
+ }) {
837
918
  return client({
838
- url: "/manifests/" + manifestId + "/labels/" + labelId,
919
+ url: `/manifests/${manifestId}/labels/${labelId}`,
839
920
  method: "delete",
840
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
921
+ headers: authorizationHeaders({
922
+ token,
923
+ jwtToken,
924
+ internalAuthTokenProvider,
925
+ headers
926
+ })
841
927
  });
842
928
  }
843
929
  };
844
-
845
- var tripClose = {
930
+ const tripClose = {
846
931
  /**
847
932
  * POST /manifests/:manifestId/trip-close - add trip close.
848
933
  * @param {Object} opts
@@ -852,24 +937,27 @@ function manifestFactory(_ref) {
852
937
  * @param {Object} [opts.headers] - Optional headers
853
938
  * @returns {Promise<import("axios").AxiosResponse>}
854
939
  */
855
- add: function add(_ref28) {
856
- var token = _ref28.token,
857
- jwtToken = _ref28.jwtToken,
858
- manifestId = _ref28.manifestId,
859
- _ref28$query = _ref28.query,
860
- query = _ref28$query === undefined ? {} : _ref28$query,
861
- headers = _ref28.headers;
862
-
940
+ add({
941
+ token,
942
+ jwtToken,
943
+ manifestId,
944
+ query = {},
945
+ headers
946
+ }) {
863
947
  return client({
864
- url: "/manifests/" + manifestId + "/trip-close",
948
+ url: `/manifests/${manifestId}/trip-close`,
865
949
  method: "post",
866
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
950
+ headers: authorizationHeaders({
951
+ token,
952
+ jwtToken,
953
+ internalAuthTokenProvider,
954
+ headers
955
+ }),
867
956
  params: query
868
957
  });
869
958
  }
870
959
  };
871
-
872
- var driverRelays = {
960
+ const driverRelays = {
873
961
  /**
874
962
  * PUT /manifests/:manifestId/driver-relays - update driver relays.
875
963
  * @param {Object} opts
@@ -881,26 +969,31 @@ function manifestFactory(_ref) {
881
969
  * @param {Object} opts.data - Request body
882
970
  * @returns {Promise<import("axios").AxiosResponse>}
883
971
  */
884
- update: function update(_ref29) {
885
- var token = _ref29.token,
886
- jwtToken = _ref29.jwtToken,
887
- manifestId = _ref29.manifestId,
888
- _ref29$query = _ref29.query,
889
- query = _ref29$query === undefined ? { bypassValidation: false } : _ref29$query,
890
- headers = _ref29.headers,
891
- data = _ref29.data;
892
-
972
+ update({
973
+ token,
974
+ jwtToken,
975
+ manifestId,
976
+ query = {
977
+ bypassValidation: false
978
+ },
979
+ headers,
980
+ data
981
+ }) {
893
982
  return client({
894
- url: "/manifests/" + manifestId + "/driver-relays",
983
+ url: `/manifests/${manifestId}/driver-relays`,
895
984
  method: "put",
896
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
985
+ headers: authorizationHeaders({
986
+ token,
987
+ jwtToken,
988
+ internalAuthTokenProvider,
989
+ headers
990
+ }),
897
991
  params: query,
898
- data: data
992
+ data
899
993
  });
900
994
  }
901
995
  };
902
-
903
- var manifestsExceptions = {
996
+ const manifestsExceptions = {
904
997
  /**
905
998
  * PUT /manifests/:manifestKey/manifests-exceptions - update manifest exceptions.
906
999
  * @param {Object} opts
@@ -911,51 +1004,55 @@ function manifestFactory(_ref) {
911
1004
  * @param {Object} [opts.headers] - Optional headers
912
1005
  * @returns {Promise<import("axios").AxiosResponse>}
913
1006
  */
914
- update: function update(_ref30) {
915
- var token = _ref30.token,
916
- jwtToken = _ref30.jwtToken,
917
- manifestKey = _ref30.manifestKey,
918
- manifestException = _ref30.manifestException,
919
- headers = _ref30.headers,
920
- _ref30$query = _ref30.query,
921
- query = _ref30$query === undefined ? {} : _ref30$query;
922
-
1007
+ update({
1008
+ token,
1009
+ jwtToken,
1010
+ manifestKey,
1011
+ manifestException,
1012
+ headers,
1013
+ query = {}
1014
+ }) {
923
1015
  return client({
924
- url: "/manifests/" + manifestKey + "/manifests-exceptions",
1016
+ url: `/manifests/${manifestKey}/manifests-exceptions`,
925
1017
  method: "put",
926
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
1018
+ headers: authorizationHeaders({
1019
+ token,
1020
+ jwtToken,
1021
+ internalAuthTokenProvider,
1022
+ headers
1023
+ }),
927
1024
  params: query,
928
- data: { manifestException: manifestException }
1025
+ data: {
1026
+ manifestException
1027
+ }
929
1028
  });
930
1029
  }
931
1030
  };
932
-
933
1031
  return {
934
- get: get,
935
- getAll: getAll,
936
- getById: getById,
937
- outlook: outlook,
938
- patch: patch,
939
- save: save,
940
- addUser: addUser,
941
- removeUser: removeUser,
942
- updateComment: updateComment,
943
- updateStatus: updateStatus,
944
- addCapacityException: addCapacityException,
945
- removeCapacityException: removeCapacityException,
946
- dispatch: dispatch,
947
- updateDispatchReporting: updateDispatchReporting,
948
- createDispatchReporting: createDispatchReporting,
949
- statusBulkUpdate: statusBulkUpdate,
950
- getSalesAuthorizations: getSalesAuthorizations,
951
- manifestsExceptions: manifestsExceptions,
952
- checkIn: checkIn,
953
- legs: legs,
954
- reports: reports,
955
- labels: labels,
956
- driverRelays: driverRelays,
957
- tripClose: tripClose
1032
+ get,
1033
+ getAll,
1034
+ getById,
1035
+ outlook,
1036
+ patch,
1037
+ save,
1038
+ addUser,
1039
+ removeUser,
1040
+ updateComment,
1041
+ updateStatus,
1042
+ addCapacityException,
1043
+ removeCapacityException,
1044
+ dispatch,
1045
+ updateDispatchReporting,
1046
+ createDispatchReporting,
1047
+ statusBulkUpdate,
1048
+ getSalesAuthorizations,
1049
+ manifestsExceptions,
1050
+ checkIn,
1051
+ legs,
1052
+ reports,
1053
+ labels,
1054
+ driverRelays,
1055
+ tripClose
958
1056
  };
959
1057
  }
960
-
961
1058
  module.exports = manifestFactory;