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.
- package/.babelrc +2 -1
- package/eslint.config.mjs +48 -0
- package/lib/client-standalone-min.js +19 -5
- package/lib/client.js +1363 -473
- package/lib/constants.js +1 -4
- package/lib/endpoints/accounts/accounts.js +36 -33
- package/lib/endpoints/accounts/agencies.js +53 -43
- package/lib/endpoints/accounts/agency-types.js +78 -59
- package/lib/endpoints/accounts/application-settings.js +84 -61
- package/lib/endpoints/accounts/application.js +19 -19
- package/lib/endpoints/accounts/applications.js +35 -30
- package/lib/endpoints/accounts/control-classes-settings.js +30 -27
- package/lib/endpoints/accounts/current-shifts.js +20 -22
- package/lib/endpoints/accounts/customers.js +119 -90
- package/lib/endpoints/accounts/docs.js +4 -8
- package/lib/endpoints/accounts/domains.js +46 -38
- package/lib/endpoints/accounts/dynamic-forms.js +176 -130
- package/lib/endpoints/accounts/email-settings.js +79 -61
- package/lib/endpoints/accounts/email-templates.js +126 -92
- package/lib/endpoints/accounts/exchange-rates.js +36 -32
- package/lib/endpoints/accounts/exchange-receipts.js +33 -28
- package/lib/endpoints/accounts/external-customers.js +61 -47
- package/lib/endpoints/accounts/goal-settings.js +32 -29
- package/lib/endpoints/accounts/images.js +59 -50
- package/lib/endpoints/accounts/interline.js +131 -102
- package/lib/endpoints/accounts/journey-prices-settings.js +30 -27
- package/lib/endpoints/accounts/lexicons.js +160 -124
- package/lib/endpoints/accounts/market-pricing-settings.js +30 -27
- package/lib/endpoints/accounts/multiproduct-sales-settings.js +33 -28
- package/lib/endpoints/accounts/network.js +97 -80
- package/lib/endpoints/accounts/operation-settings.js +32 -29
- package/lib/endpoints/accounts/people-lookups.js +94 -72
- package/lib/endpoints/accounts/point-to-point-settings.js +30 -27
- package/lib/endpoints/accounts/print-settings.js +32 -29
- package/lib/endpoints/accounts/print-templates.js +89 -75
- package/lib/endpoints/accounts/printers.js +20 -20
- package/lib/endpoints/accounts/rms-settings.js +30 -27
- package/lib/endpoints/accounts/s3buckets.js +49 -39
- package/lib/endpoints/accounts/salesforce-settings.js +32 -29
- package/lib/endpoints/accounts/shift-settings.js +32 -29
- package/lib/endpoints/accounts/shifts.js +431 -317
- package/lib/endpoints/accounts/sms-templates.js +126 -92
- package/lib/endpoints/accounts/sub-print-templates.js +19 -20
- package/lib/endpoints/accounts/system-model-settings.js +51 -45
- package/lib/endpoints/accounts/ticket-movement-settings.js +30 -27
- package/lib/endpoints/accounts/tokens.js +34 -29
- package/lib/endpoints/accounts/transport-regulation-settings.js +30 -27
- package/lib/endpoints/accounts/travellers.js +82 -66
- package/lib/endpoints/accounts/trusted-machines.js +48 -39
- package/lib/endpoints/accounts/twilio-settings.js +32 -29
- package/lib/endpoints/accounts/users.js +262 -184
- package/lib/endpoints/accounts/verified-emails.js +64 -50
- package/lib/endpoints/accounts/websales-config.js +35 -31
- package/lib/endpoints/bpes/configuration.js +51 -37
- package/lib/endpoints/btrzpay/adyen.js +34 -31
- package/lib/endpoints/btrzpay/cardpointe.js +84 -62
- package/lib/endpoints/btrzpay/customerCards.js +73 -56
- package/lib/endpoints/btrzpay/customers.js +55 -43
- package/lib/endpoints/btrzpay/cybersource3ds.js +59 -44
- package/lib/endpoints/btrzpay/datalogic.js +84 -69
- package/lib/endpoints/btrzpay/docs.js +4 -8
- package/lib/endpoints/btrzpay/oxxo.js +66 -59
- package/lib/endpoints/btrzpay/payment-methods.js +141 -96
- package/lib/endpoints/btrzpay/payments.js +37 -30
- package/lib/endpoints/btrzpay/prismaTerminals.js +203 -160
- package/lib/endpoints/btrzpay/reference-numbers.js +23 -21
- package/lib/endpoints/btrzpay/referenced-payments.js +41 -36
- package/lib/endpoints/btrzpay/square.js +39 -36
- package/lib/endpoints/btrzpay/stripe-terminals.js +36 -31
- package/lib/endpoints/btrzpay/stripe3ds.js +25 -22
- package/lib/endpoints/btrzpay/terminalPayments.js +58 -52
- package/lib/endpoints/coltrane/docs.js +4 -8
- package/lib/endpoints/coltrane/healthcheck.js +7 -12
- package/lib/endpoints/coltrane/info.js +7 -12
- package/lib/endpoints/coltrane/merged-fare-tables.js +22 -22
- package/lib/endpoints/coltrane/paths.js +18 -20
- package/lib/endpoints/endpoints_helpers.js +14 -30
- package/lib/endpoints/gps/scanner-app-location.js +16 -19
- package/lib/endpoints/inventory/amenities.js +65 -50
- package/lib/endpoints/inventory/amenity-groups.js +65 -50
- package/lib/endpoints/inventory/banks.js +78 -59
- package/lib/endpoints/inventory/bare-routes.js +31 -30
- package/lib/endpoints/inventory/brands.js +68 -50
- package/lib/endpoints/inventory/bundle-fares.js +21 -23
- package/lib/endpoints/inventory/bundles.js +34 -30
- package/lib/endpoints/inventory/change-requests.js +109 -86
- package/lib/endpoints/inventory/companies.js +20 -21
- package/lib/endpoints/inventory/control-classes.js +112 -85
- package/lib/endpoints/inventory/countries.js +35 -32
- package/lib/endpoints/inventory/custom-content.js +76 -58
- package/lib/endpoints/inventory/custom-fields.js +82 -60
- package/lib/endpoints/inventory/docs.js +4 -8
- package/lib/endpoints/inventory/document-types.js +96 -69
- package/lib/endpoints/inventory/external-passes.js +34 -30
- package/lib/endpoints/inventory/external-wallets.js +133 -90
- package/lib/endpoints/inventory/fallback-codes.js +66 -49
- package/lib/endpoints/inventory/fare-classes.js +54 -41
- package/lib/endpoints/inventory/fare-type-modifiers.js +78 -59
- package/lib/endpoints/inventory/fares.js +95 -72
- package/lib/endpoints/inventory/fees.js +68 -50
- package/lib/endpoints/inventory/filtered-trips-v2.js +23 -21
- package/lib/endpoints/inventory/filtered-trips.js +50 -39
- package/lib/endpoints/inventory/financing-costs.js +78 -61
- package/lib/endpoints/inventory/garages.js +72 -59
- package/lib/endpoints/inventory/getnet-terminals.js +78 -60
- package/lib/endpoints/inventory/gift-certificate-definitions.js +84 -66
- package/lib/endpoints/inventory/healthcheck.js +4 -8
- package/lib/endpoints/inventory/holidays.js +83 -61
- package/lib/endpoints/inventory/insurances.js +68 -57
- package/lib/endpoints/inventory/insurancesCost.js +24 -24
- package/lib/endpoints/inventory/items.js +86 -64
- package/lib/endpoints/inventory/journey-prices.js +83 -61
- package/lib/endpoints/inventory/labels.js +83 -61
- package/lib/endpoints/inventory/marital-status.js +82 -67
- package/lib/endpoints/inventory/marketplace-modifiers.js +74 -57
- package/lib/endpoints/inventory/mit-terminal-settings.js +78 -59
- package/lib/endpoints/inventory/mit-terminals.js +74 -57
- package/lib/endpoints/inventory/operating-companies.js +126 -91
- package/lib/endpoints/inventory/operation-messages.js +85 -63
- package/lib/endpoints/inventory/operation-reasons.js +86 -67
- package/lib/endpoints/inventory/parcel-zones.js +52 -40
- package/lib/endpoints/inventory/pay-on-accounts.js +22 -24
- package/lib/endpoints/inventory/payment-terminals.js +74 -57
- package/lib/endpoints/inventory/prisma-terminals.js +78 -59
- package/lib/endpoints/inventory/products.js +90 -70
- package/lib/endpoints/inventory/promos.js +138 -95
- package/lib/endpoints/inventory/regions.js +78 -59
- package/lib/endpoints/inventory/routes.js +323 -262
- package/lib/endpoints/inventory/schedule-groups.js +69 -52
- package/lib/endpoints/inventory/schedules.js +171 -143
- package/lib/endpoints/inventory/seatclasses.js +82 -67
- package/lib/endpoints/inventory/seatfees.js +60 -48
- package/lib/endpoints/inventory/seatmaps.js +108 -84
- package/lib/endpoints/inventory/segments-information-tables.js +22 -23
- package/lib/endpoints/inventory/segments-information.js +78 -59
- package/lib/endpoints/inventory/service-numbers.js +64 -50
- package/lib/endpoints/inventory/service-types.js +74 -57
- package/lib/endpoints/inventory/ssrs.js +18 -20
- package/lib/endpoints/inventory/station-classes.js +79 -61
- package/lib/endpoints/inventory/station-groups.js +18 -20
- package/lib/endpoints/inventory/stations-provinces.js +18 -20
- package/lib/endpoints/inventory/stations-zones.js +18 -20
- package/lib/endpoints/inventory/stations.js +61 -47
- package/lib/endpoints/inventory/taxes.js +137 -98
- package/lib/endpoints/inventory/travel-routes.js +64 -50
- package/lib/endpoints/inventory/traveller-card-providers-types.js +19 -19
- package/lib/endpoints/inventory/traveller-card-providers.js +68 -50
- package/lib/endpoints/inventory/traveller-card-types.js +82 -59
- package/lib/endpoints/inventory/trip-ids.js +21 -21
- package/lib/endpoints/inventory/trips.js +48 -41
- package/lib/endpoints/inventory/vehicle-types.js +19 -19
- package/lib/endpoints/inventory/vehicles.js +111 -83
- package/lib/endpoints/inventory/zone-price-overages.js +74 -57
- package/lib/endpoints/inventory/zone-prices.js +74 -57
- package/lib/endpoints/invoices/dlink.js +37 -34
- package/lib/endpoints/invoices/docs.js +4 -8
- package/lib/endpoints/invoices/emails.js +22 -23
- package/lib/endpoints/invoices/gti.js +37 -34
- package/lib/endpoints/invoices/infile.js +37 -34
- package/lib/endpoints/invoices/infileJson.js +37 -34
- package/lib/endpoints/invoices/invoices.js +78 -63
- package/lib/endpoints/invoices/pdfs.js +22 -24
- package/lib/endpoints/invoices/providers.js +82 -67
- package/lib/endpoints/invoices/providersSequences.js +89 -74
- package/lib/endpoints/invoices/system.js +37 -34
- package/lib/endpoints/invoices/tax-ids.js +20 -21
- package/lib/endpoints/loyalty/movements.js +55 -49
- package/lib/endpoints/loyalty/programs.js +50 -41
- package/lib/endpoints/notifications/customers.js +33 -31
- package/lib/endpoints/notifications/email.js +20 -21
- package/lib/endpoints/notifications/external-customers.js +35 -30
- package/lib/endpoints/notifications/manifest-notifications.js +31 -33
- package/lib/endpoints/notifications/notify.js +112 -81
- package/lib/endpoints/notifications/orders-rules-validations.js +22 -22
- package/lib/endpoints/notifications/pdf-data.js +56 -64
- package/lib/endpoints/notifications/pdfs.js +48 -55
- package/lib/endpoints/notifications/printed-tickets.js +31 -27
- package/lib/endpoints/notifications/salesforce.js +19 -19
- package/lib/endpoints/notifications/short-urls.js +38 -33
- package/lib/endpoints/notifications/twilio.js +57 -46
- package/lib/endpoints/operations/accounting_items.js +30 -36
- package/lib/endpoints/operations/applied_insurance.js +25 -20
- package/lib/endpoints/operations/calendar_entries.js +18 -20
- package/lib/endpoints/operations/cancellation_settings.js +33 -28
- package/lib/endpoints/operations/docs.js +5 -9
- package/lib/endpoints/operations/external-bookings.js +35 -31
- package/lib/endpoints/operations/flexpasses.js +22 -22
- package/lib/endpoints/operations/gift-certificates.js +25 -23
- package/lib/endpoints/operations/loans.js +30 -36
- package/lib/endpoints/operations/manifest.js +469 -372
- package/lib/endpoints/operations/manifest_leg_for_tickets.js +23 -23
- package/lib/endpoints/operations/movements.js +21 -22
- package/lib/endpoints/operations/outlook-trips.js +20 -21
- package/lib/endpoints/operations/pago-express.js +55 -39
- package/lib/endpoints/operations/parcels.js +96 -67
- package/lib/endpoints/operations/parcels_manifests.js +102 -81
- package/lib/endpoints/operations/passenger_check_in_info.js +66 -52
- package/lib/endpoints/operations/redemption.js +52 -40
- package/lib/endpoints/operations/rms.js +35 -33
- package/lib/endpoints/operations/scheduled_notifications.js +80 -61
- package/lib/endpoints/operations/segments.js +24 -24
- package/lib/endpoints/operations/sold-items-fulfillment.js +20 -21
- package/lib/endpoints/operations/sold-items.js +35 -30
- package/lib/endpoints/operations/tickets.js +109 -78
- package/lib/endpoints/operations/transaction.js +22 -22
- package/lib/endpoints/operations/transactions.js +178 -135
- package/lib/endpoints/operations/transport_regulations.js +22 -22
- package/lib/endpoints/operations/trip_change_info.js +23 -23
- package/lib/endpoints/operations/vehicle_assignments.js +60 -48
- package/lib/endpoints/operations/vouchers.js +32 -35
- package/lib/endpoints/operations/waitlists.js +62 -47
- package/lib/endpoints/ratality/auth.js +10 -14
- package/lib/endpoints/ratality/clients.js +30 -28
- package/lib/endpoints/ratality/integrations.js +43 -36
- package/lib/endpoints/reports/custom-reports.js +50 -39
- package/lib/endpoints/reports/email.js +20 -19
- package/lib/endpoints/reports/report-types.js +35 -30
- package/lib/endpoints/reports/trip-manifests.js +20 -21
- package/lib/endpoints/sales/bundles.js +18 -20
- package/lib/endpoints/sales/cancellations.js +48 -34
- package/lib/endpoints/sales/cart-promo.js +37 -34
- package/lib/endpoints/sales/cart.js +218 -166
- package/lib/endpoints/sales/check-in-info.js +22 -23
- package/lib/endpoints/sales/custom-fields.js +18 -20
- package/lib/endpoints/sales/docs.js +4 -8
- package/lib/endpoints/sales/flexpasses.js +21 -21
- package/lib/endpoints/sales/gift-certificates.js +20 -22
- package/lib/endpoints/sales/order.js +66 -53
- package/lib/endpoints/sales/parcel-quotes.js +20 -20
- package/lib/endpoints/sales/payment-providers.js +20 -21
- package/lib/endpoints/sales/redeemable-items.js +32 -31
- package/lib/endpoints/sales/sync-entry.js +21 -21
- package/lib/endpoints/sales/voucher.js +19 -20
- package/lib/endpoints/seatmaps/access-ticket.js +19 -19
- package/lib/endpoints/seatmaps/seat.js +21 -21
- package/lib/endpoints/uploads/files.js +26 -24
- package/lib/endpoints/uploads/images.js +26 -24
- package/lib/endpoints/webhooks/events.js +24 -24
- package/lib/endpoints/webhooks/subscriptions.js +80 -60
- package/lib/endpoints/webhooks/undelivered.js +103 -73
- package/lib/endpoints/webhooks/webhooks.js +20 -20
- package/lib/initializedClient.js +3 -5
- package/lib/productionDefaults.js +6 -8
- package/package.json +18 -18
- package/src/client.js +1 -1
- package/src/endpoints/operations/transactions.js +1 -1
- package/tools/build-standalone.mjs +15 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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({
|
|
113
|
-
|
|
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(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
function updateDispatchReporting({
|
|
133
|
+
token,
|
|
134
|
+
jwtToken,
|
|
135
|
+
headers,
|
|
136
|
+
manifestId,
|
|
137
|
+
data
|
|
138
|
+
}) {
|
|
134
139
|
return client({
|
|
135
|
-
url:
|
|
140
|
+
url: `manifests/${manifestId}/dispatch/reporting`,
|
|
136
141
|
method: "put",
|
|
137
|
-
headers: authorizationHeaders({
|
|
138
|
-
|
|
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(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
function dispatch({
|
|
163
|
+
token,
|
|
164
|
+
jwtToken,
|
|
165
|
+
headers,
|
|
166
|
+
manifestId,
|
|
167
|
+
data,
|
|
168
|
+
query
|
|
169
|
+
}) {
|
|
160
170
|
return client({
|
|
161
|
-
url:
|
|
171
|
+
url: `manifests/${manifestId}/dispatches`,
|
|
162
172
|
method: "post",
|
|
163
|
-
headers: authorizationHeaders({
|
|
164
|
-
|
|
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(
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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({
|
|
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(
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
221
|
+
function getById({
|
|
222
|
+
token,
|
|
223
|
+
jwtToken,
|
|
224
|
+
manifestId,
|
|
225
|
+
query = {},
|
|
226
|
+
headers
|
|
227
|
+
}) {
|
|
210
228
|
return client({
|
|
211
|
-
url:
|
|
229
|
+
url: `/manifests/${manifestId}`,
|
|
212
230
|
method: "get",
|
|
213
231
|
params: query,
|
|
214
232
|
headers: authorizationHeaders({
|
|
215
|
-
token
|
|
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(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
|
266
|
+
params,
|
|
245
267
|
method: "put",
|
|
246
|
-
headers: authorizationHeaders({
|
|
247
|
-
|
|
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(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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: {
|
|
273
|
-
|
|
274
|
-
|
|
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(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
|
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(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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({
|
|
361
|
+
headers: authorizationHeaders({
|
|
362
|
+
token,
|
|
363
|
+
jwtToken,
|
|
364
|
+
internalAuthTokenProvider,
|
|
365
|
+
headers
|
|
366
|
+
}),
|
|
327
367
|
data: {
|
|
328
|
-
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(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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:
|
|
357
|
-
|
|
358
|
-
|
|
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(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
419
|
+
function addUser({
|
|
420
|
+
token,
|
|
421
|
+
jwtToken,
|
|
422
|
+
manifestId,
|
|
423
|
+
query = {},
|
|
424
|
+
data,
|
|
425
|
+
headers
|
|
426
|
+
}) {
|
|
381
427
|
return client({
|
|
382
|
-
url:
|
|
428
|
+
url: `/manifests/${manifestId}/users`,
|
|
383
429
|
method: "post",
|
|
384
430
|
headers: authorizationHeaders({
|
|
385
|
-
token
|
|
431
|
+
token,
|
|
432
|
+
jwtToken,
|
|
433
|
+
internalAuthTokenProvider,
|
|
434
|
+
headers
|
|
386
435
|
}),
|
|
387
436
|
params: query,
|
|
388
|
-
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(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
451
|
+
function removeUser({
|
|
452
|
+
token,
|
|
453
|
+
jwtToken,
|
|
454
|
+
manifestId,
|
|
455
|
+
userId,
|
|
456
|
+
headers
|
|
457
|
+
}) {
|
|
409
458
|
return client({
|
|
410
|
-
url:
|
|
459
|
+
url: `/manifests/${manifestId}/users/${userId}`,
|
|
411
460
|
method: "delete",
|
|
412
461
|
headers: authorizationHeaders({
|
|
413
|
-
token
|
|
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(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
480
|
+
function addCapacityException({
|
|
481
|
+
token,
|
|
482
|
+
jwtToken,
|
|
483
|
+
manifestId,
|
|
484
|
+
query = {},
|
|
485
|
+
data,
|
|
486
|
+
headers
|
|
487
|
+
}) {
|
|
437
488
|
return client({
|
|
438
|
-
url:
|
|
489
|
+
url: `/manifests/${manifestId}/capacity-exceptions`,
|
|
439
490
|
method: "post",
|
|
440
491
|
headers: authorizationHeaders({
|
|
441
|
-
token
|
|
492
|
+
token,
|
|
493
|
+
jwtToken,
|
|
494
|
+
internalAuthTokenProvider,
|
|
495
|
+
headers
|
|
442
496
|
}),
|
|
443
497
|
params: query,
|
|
444
|
-
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(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
512
|
+
function removeCapacityException({
|
|
513
|
+
token,
|
|
514
|
+
jwtToken,
|
|
515
|
+
manifestId,
|
|
516
|
+
exceptionId,
|
|
517
|
+
headers
|
|
518
|
+
}) {
|
|
465
519
|
return client({
|
|
466
|
-
url:
|
|
520
|
+
url: `/manifests/${manifestId}/capacity-exceptions/${exceptionId}`,
|
|
467
521
|
method: "delete",
|
|
468
522
|
headers: authorizationHeaders({
|
|
469
|
-
token
|
|
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(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
541
|
+
function updateComment({
|
|
542
|
+
token,
|
|
543
|
+
jwtToken,
|
|
544
|
+
manifestId,
|
|
545
|
+
query = {},
|
|
546
|
+
data,
|
|
547
|
+
headers
|
|
548
|
+
}) {
|
|
493
549
|
return client({
|
|
494
|
-
url:
|
|
550
|
+
url: `/manifests/${manifestId}/comments`,
|
|
495
551
|
method: "put",
|
|
496
552
|
headers: authorizationHeaders({
|
|
497
|
-
token
|
|
553
|
+
token,
|
|
554
|
+
jwtToken,
|
|
555
|
+
internalAuthTokenProvider,
|
|
556
|
+
headers
|
|
498
557
|
}),
|
|
499
558
|
params: query,
|
|
500
|
-
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(
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
573
|
+
function updateStatus({
|
|
574
|
+
token,
|
|
575
|
+
jwtToken,
|
|
576
|
+
manifestId,
|
|
577
|
+
query = {},
|
|
578
|
+
data,
|
|
579
|
+
headers
|
|
580
|
+
}) {
|
|
523
581
|
return client({
|
|
524
|
-
url:
|
|
582
|
+
url: `/manifests/${manifestId}/status`,
|
|
525
583
|
method: "put",
|
|
526
584
|
headers: authorizationHeaders({
|
|
527
|
-
token
|
|
585
|
+
token,
|
|
586
|
+
jwtToken,
|
|
587
|
+
internalAuthTokenProvider,
|
|
588
|
+
headers
|
|
528
589
|
}),
|
|
529
590
|
params: query,
|
|
530
|
-
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(
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
604
|
+
function getSalesAuthorizations({
|
|
605
|
+
token,
|
|
606
|
+
jwtToken,
|
|
607
|
+
manifestKey,
|
|
608
|
+
query = {},
|
|
609
|
+
headers
|
|
610
|
+
}) {
|
|
551
611
|
return client({
|
|
552
|
-
url:
|
|
612
|
+
url: `/manifests/${manifestKey}/sales-authorizations`,
|
|
553
613
|
method: "get",
|
|
554
614
|
params: query,
|
|
555
615
|
headers: authorizationHeaders({
|
|
556
|
-
token
|
|
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
|
-
|
|
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
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
637
|
+
create({
|
|
638
|
+
token,
|
|
639
|
+
jwtToken,
|
|
640
|
+
query = {},
|
|
641
|
+
headers,
|
|
642
|
+
data,
|
|
643
|
+
manifestId,
|
|
644
|
+
legFromId
|
|
645
|
+
}) {
|
|
584
646
|
return client({
|
|
585
|
-
url:
|
|
647
|
+
url: `/manifests/${manifestId}/checkin/${legFromId}`,
|
|
586
648
|
method: "post",
|
|
587
649
|
headers: authorizationHeaders({
|
|
588
|
-
token
|
|
650
|
+
token,
|
|
651
|
+
jwtToken,
|
|
652
|
+
internalAuthTokenProvider,
|
|
653
|
+
headers
|
|
589
654
|
}),
|
|
590
655
|
params: query,
|
|
591
|
-
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
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
669
|
+
open({
|
|
670
|
+
token,
|
|
671
|
+
jwtToken,
|
|
672
|
+
query = {},
|
|
673
|
+
headers,
|
|
674
|
+
manifestId,
|
|
675
|
+
legFromId
|
|
676
|
+
}) {
|
|
614
677
|
return client({
|
|
615
|
-
url:
|
|
678
|
+
url: `/manifests/${manifestId}/checkin/${legFromId}`,
|
|
616
679
|
method: "patch",
|
|
617
680
|
headers: authorizationHeaders({
|
|
618
|
-
token
|
|
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
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
704
|
+
close({
|
|
705
|
+
token,
|
|
706
|
+
jwtToken,
|
|
707
|
+
query = {},
|
|
708
|
+
headers,
|
|
709
|
+
manifestId,
|
|
710
|
+
legFromId
|
|
711
|
+
}) {
|
|
648
712
|
return client({
|
|
649
|
-
url:
|
|
713
|
+
url: `/manifests/${manifestId}/checkin/${legFromId}`,
|
|
650
714
|
method: "patch",
|
|
651
715
|
headers: authorizationHeaders({
|
|
652
|
-
token
|
|
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
|
-
|
|
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
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
744
|
+
update({
|
|
745
|
+
token,
|
|
746
|
+
jwtToken,
|
|
747
|
+
data,
|
|
748
|
+
query = {},
|
|
749
|
+
headers,
|
|
750
|
+
manifestId,
|
|
751
|
+
legFromId
|
|
752
|
+
}) {
|
|
687
753
|
return client({
|
|
688
|
-
url:
|
|
754
|
+
url: `/manifests/${manifestId}/legs/${legFromId}`,
|
|
689
755
|
method: "put",
|
|
690
|
-
headers: authorizationHeaders({
|
|
756
|
+
headers: authorizationHeaders({
|
|
757
|
+
token,
|
|
758
|
+
jwtToken,
|
|
759
|
+
internalAuthTokenProvider,
|
|
760
|
+
headers
|
|
761
|
+
}),
|
|
691
762
|
params: query,
|
|
692
|
-
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
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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:
|
|
790
|
+
url: `/manifests/${manifestId}/legs/${legFromId}/tickets/${ticketId}`,
|
|
722
791
|
method: "put",
|
|
723
|
-
headers: authorizationHeaders({
|
|
792
|
+
headers: authorizationHeaders({
|
|
793
|
+
token,
|
|
794
|
+
jwtToken,
|
|
795
|
+
internalAuthTokenProvider,
|
|
796
|
+
headers
|
|
797
|
+
}),
|
|
724
798
|
params: query,
|
|
725
|
-
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
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
813
|
+
noshow({
|
|
814
|
+
token,
|
|
815
|
+
jwtToken,
|
|
816
|
+
query = {},
|
|
817
|
+
headers,
|
|
818
|
+
manifestId,
|
|
819
|
+
legFromId,
|
|
820
|
+
ticketId
|
|
821
|
+
}) {
|
|
750
822
|
return client({
|
|
751
|
-
url:
|
|
823
|
+
url: `/manifests/${manifestId}/legs/${legFromId}/tickets/${ticketId}/noshow`,
|
|
752
824
|
method: "put",
|
|
753
|
-
headers: authorizationHeaders({
|
|
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
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
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:
|
|
856
|
+
url: `/manifests/${id}/reports`,
|
|
783
857
|
method: "get",
|
|
784
|
-
responseType
|
|
858
|
+
responseType,
|
|
785
859
|
params: query,
|
|
786
|
-
headers: authorizationHeaders({
|
|
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
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
880
|
+
add({
|
|
881
|
+
token,
|
|
882
|
+
jwtToken,
|
|
883
|
+
manifestId,
|
|
884
|
+
query = {},
|
|
885
|
+
headers,
|
|
886
|
+
data
|
|
887
|
+
}) {
|
|
811
888
|
return client({
|
|
812
|
-
url:
|
|
889
|
+
url: `/manifests/${manifestId}/labels`,
|
|
813
890
|
method: "post",
|
|
814
|
-
headers: authorizationHeaders({
|
|
891
|
+
headers: authorizationHeaders({
|
|
892
|
+
token,
|
|
893
|
+
jwtToken,
|
|
894
|
+
internalAuthTokenProvider,
|
|
895
|
+
headers
|
|
896
|
+
}),
|
|
815
897
|
params: query,
|
|
816
|
-
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
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
911
|
+
remove({
|
|
912
|
+
token,
|
|
913
|
+
jwtToken,
|
|
914
|
+
manifestId,
|
|
915
|
+
labelId,
|
|
916
|
+
headers
|
|
917
|
+
}) {
|
|
837
918
|
return client({
|
|
838
|
-
url:
|
|
919
|
+
url: `/manifests/${manifestId}/labels/${labelId}`,
|
|
839
920
|
method: "delete",
|
|
840
|
-
headers: authorizationHeaders({
|
|
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
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
940
|
+
add({
|
|
941
|
+
token,
|
|
942
|
+
jwtToken,
|
|
943
|
+
manifestId,
|
|
944
|
+
query = {},
|
|
945
|
+
headers
|
|
946
|
+
}) {
|
|
863
947
|
return client({
|
|
864
|
-
url:
|
|
948
|
+
url: `/manifests/${manifestId}/trip-close`,
|
|
865
949
|
method: "post",
|
|
866
|
-
headers: authorizationHeaders({
|
|
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
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
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:
|
|
983
|
+
url: `/manifests/${manifestId}/driver-relays`,
|
|
895
984
|
method: "put",
|
|
896
|
-
headers: authorizationHeaders({
|
|
985
|
+
headers: authorizationHeaders({
|
|
986
|
+
token,
|
|
987
|
+
jwtToken,
|
|
988
|
+
internalAuthTokenProvider,
|
|
989
|
+
headers
|
|
990
|
+
}),
|
|
897
991
|
params: query,
|
|
898
|
-
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
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1007
|
+
update({
|
|
1008
|
+
token,
|
|
1009
|
+
jwtToken,
|
|
1010
|
+
manifestKey,
|
|
1011
|
+
manifestException,
|
|
1012
|
+
headers,
|
|
1013
|
+
query = {}
|
|
1014
|
+
}) {
|
|
923
1015
|
return client({
|
|
924
|
-
url:
|
|
1016
|
+
url: `/manifests/${manifestKey}/manifests-exceptions`,
|
|
925
1017
|
method: "put",
|
|
926
|
-
headers: authorizationHeaders({
|
|
1018
|
+
headers: authorizationHeaders({
|
|
1019
|
+
token,
|
|
1020
|
+
jwtToken,
|
|
1021
|
+
internalAuthTokenProvider,
|
|
1022
|
+
headers
|
|
1023
|
+
}),
|
|
927
1024
|
params: query,
|
|
928
|
-
data: {
|
|
1025
|
+
data: {
|
|
1026
|
+
manifestException
|
|
1027
|
+
}
|
|
929
1028
|
});
|
|
930
1029
|
}
|
|
931
1030
|
};
|
|
932
|
-
|
|
933
1031
|
return {
|
|
934
|
-
get
|
|
935
|
-
getAll
|
|
936
|
-
getById
|
|
937
|
-
outlook
|
|
938
|
-
patch
|
|
939
|
-
save
|
|
940
|
-
addUser
|
|
941
|
-
removeUser
|
|
942
|
-
updateComment
|
|
943
|
-
updateStatus
|
|
944
|
-
addCapacityException
|
|
945
|
-
removeCapacityException
|
|
946
|
-
dispatch
|
|
947
|
-
updateDispatchReporting
|
|
948
|
-
createDispatchReporting
|
|
949
|
-
statusBulkUpdate
|
|
950
|
-
getSalesAuthorizations
|
|
951
|
-
manifestsExceptions
|
|
952
|
-
checkIn
|
|
953
|
-
legs
|
|
954
|
-
reports
|
|
955
|
-
labels
|
|
956
|
-
driverRelays
|
|
957
|
-
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;
|