btrz-api-client 5.128.0 → 5.130.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/lib/client-standalone-min.js +1 -5
- package/lib/endpoints/operations/manifest.js +157 -141
- package/package.json +1 -1
- package/src/endpoints/operations/manifest.js +10 -0
- package/test/endpoints/operations/manifest.test.js +30 -4
- package/types/client.d.ts +7 -0
- package/types/endpoints/operations/manifest.d.ts +7 -0
- package/types/initializedClient.d.ts +7 -0
|
@@ -7,29 +7,44 @@ function manifestFactory(_ref) {
|
|
|
7
7
|
var client = _ref.client,
|
|
8
8
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function dispatch(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
headers = _ref2.headers,
|
|
14
|
+
manifestId = _ref2.manifestId,
|
|
15
|
+
data = _ref2.data;
|
|
16
16
|
|
|
17
17
|
return client({
|
|
18
|
-
url: "/
|
|
19
|
-
method: "
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
url: "manifests/" + manifestId + "/dispatches",
|
|
19
|
+
method: "post",
|
|
20
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
21
|
+
data: data
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function
|
|
25
|
+
function get(_ref3) {
|
|
26
26
|
var token = _ref3.token,
|
|
27
27
|
jwtToken = _ref3.jwtToken,
|
|
28
|
-
manifestId = _ref3.manifestId,
|
|
29
28
|
_ref3$query = _ref3.query,
|
|
30
29
|
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
31
30
|
headers = _ref3.headers;
|
|
32
31
|
|
|
32
|
+
return client({
|
|
33
|
+
url: "/manifests",
|
|
34
|
+
method: "get",
|
|
35
|
+
params: query,
|
|
36
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getById(_ref4) {
|
|
41
|
+
var token = _ref4.token,
|
|
42
|
+
jwtToken = _ref4.jwtToken,
|
|
43
|
+
manifestId = _ref4.manifestId,
|
|
44
|
+
_ref4$query = _ref4.query,
|
|
45
|
+
query = _ref4$query === undefined ? {} : _ref4$query,
|
|
46
|
+
headers = _ref4.headers;
|
|
47
|
+
|
|
33
48
|
return client({
|
|
34
49
|
url: "/manifests/" + manifestId,
|
|
35
50
|
method: "get",
|
|
@@ -40,12 +55,12 @@ function manifestFactory(_ref) {
|
|
|
40
55
|
});
|
|
41
56
|
}
|
|
42
57
|
|
|
43
|
-
function getAll(
|
|
44
|
-
var token =
|
|
45
|
-
jwtToken =
|
|
46
|
-
providerId =
|
|
47
|
-
data =
|
|
48
|
-
headers =
|
|
58
|
+
function getAll(_ref5) {
|
|
59
|
+
var token = _ref5.token,
|
|
60
|
+
jwtToken = _ref5.jwtToken,
|
|
61
|
+
providerId = _ref5.providerId,
|
|
62
|
+
data = _ref5.data,
|
|
63
|
+
headers = _ref5.headers;
|
|
49
64
|
|
|
50
65
|
// an HTTP POST request is used to send the query data in the request body because the query may be very large.
|
|
51
66
|
return client({
|
|
@@ -57,12 +72,12 @@ function manifestFactory(_ref) {
|
|
|
57
72
|
});
|
|
58
73
|
}
|
|
59
74
|
|
|
60
|
-
function outlook(
|
|
61
|
-
var token =
|
|
62
|
-
jwtToken =
|
|
63
|
-
|
|
64
|
-
query =
|
|
65
|
-
headers =
|
|
75
|
+
function outlook(_ref6) {
|
|
76
|
+
var token = _ref6.token,
|
|
77
|
+
jwtToken = _ref6.jwtToken,
|
|
78
|
+
_ref6$query = _ref6.query,
|
|
79
|
+
query = _ref6$query === undefined ? {} : _ref6$query,
|
|
80
|
+
headers = _ref6.headers;
|
|
66
81
|
|
|
67
82
|
return client({
|
|
68
83
|
url: "/outlook-manifests",
|
|
@@ -74,13 +89,13 @@ function manifestFactory(_ref) {
|
|
|
74
89
|
});
|
|
75
90
|
}
|
|
76
91
|
|
|
77
|
-
function patch(
|
|
78
|
-
var token =
|
|
79
|
-
jwtToken =
|
|
80
|
-
|
|
81
|
-
query =
|
|
82
|
-
operations =
|
|
83
|
-
headers =
|
|
92
|
+
function patch(_ref7) {
|
|
93
|
+
var token = _ref7.token,
|
|
94
|
+
jwtToken = _ref7.jwtToken,
|
|
95
|
+
_ref7$query = _ref7.query,
|
|
96
|
+
query = _ref7$query === undefined ? {} : _ref7$query,
|
|
97
|
+
operations = _ref7.operations,
|
|
98
|
+
headers = _ref7.headers;
|
|
84
99
|
|
|
85
100
|
return client({
|
|
86
101
|
url: "/manifests",
|
|
@@ -93,12 +108,12 @@ function manifestFactory(_ref) {
|
|
|
93
108
|
});
|
|
94
109
|
}
|
|
95
110
|
|
|
96
|
-
function save(
|
|
97
|
-
var token =
|
|
98
|
-
jwtToken =
|
|
99
|
-
providerId =
|
|
100
|
-
data =
|
|
101
|
-
headers =
|
|
111
|
+
function save(_ref8) {
|
|
112
|
+
var token = _ref8.token,
|
|
113
|
+
jwtToken = _ref8.jwtToken,
|
|
114
|
+
providerId = _ref8.providerId,
|
|
115
|
+
data = _ref8.data,
|
|
116
|
+
headers = _ref8.headers;
|
|
102
117
|
|
|
103
118
|
return client({
|
|
104
119
|
url: "/manifests",
|
|
@@ -109,14 +124,14 @@ function manifestFactory(_ref) {
|
|
|
109
124
|
});
|
|
110
125
|
}
|
|
111
126
|
|
|
112
|
-
function addUser(
|
|
113
|
-
var token =
|
|
114
|
-
jwtToken =
|
|
115
|
-
manifestId =
|
|
116
|
-
|
|
117
|
-
query =
|
|
118
|
-
data =
|
|
119
|
-
headers =
|
|
127
|
+
function addUser(_ref9) {
|
|
128
|
+
var token = _ref9.token,
|
|
129
|
+
jwtToken = _ref9.jwtToken,
|
|
130
|
+
manifestId = _ref9.manifestId,
|
|
131
|
+
_ref9$query = _ref9.query,
|
|
132
|
+
query = _ref9$query === undefined ? {} : _ref9$query,
|
|
133
|
+
data = _ref9.data,
|
|
134
|
+
headers = _ref9.headers;
|
|
120
135
|
|
|
121
136
|
return client({
|
|
122
137
|
url: "/manifests/" + manifestId + "/users",
|
|
@@ -129,12 +144,12 @@ function manifestFactory(_ref) {
|
|
|
129
144
|
});
|
|
130
145
|
}
|
|
131
146
|
|
|
132
|
-
function removeUser(
|
|
133
|
-
var token =
|
|
134
|
-
jwtToken =
|
|
135
|
-
manifestId =
|
|
136
|
-
userId =
|
|
137
|
-
headers =
|
|
147
|
+
function removeUser(_ref10) {
|
|
148
|
+
var token = _ref10.token,
|
|
149
|
+
jwtToken = _ref10.jwtToken,
|
|
150
|
+
manifestId = _ref10.manifestId,
|
|
151
|
+
userId = _ref10.userId,
|
|
152
|
+
headers = _ref10.headers;
|
|
138
153
|
|
|
139
154
|
return client({
|
|
140
155
|
url: "/manifests/" + manifestId + "/users/" + userId,
|
|
@@ -145,14 +160,14 @@ function manifestFactory(_ref) {
|
|
|
145
160
|
});
|
|
146
161
|
}
|
|
147
162
|
|
|
148
|
-
function addCapacityException(
|
|
149
|
-
var token =
|
|
150
|
-
jwtToken =
|
|
151
|
-
manifestId =
|
|
152
|
-
|
|
153
|
-
query =
|
|
154
|
-
data =
|
|
155
|
-
headers =
|
|
163
|
+
function addCapacityException(_ref11) {
|
|
164
|
+
var token = _ref11.token,
|
|
165
|
+
jwtToken = _ref11.jwtToken,
|
|
166
|
+
manifestId = _ref11.manifestId,
|
|
167
|
+
_ref11$query = _ref11.query,
|
|
168
|
+
query = _ref11$query === undefined ? {} : _ref11$query,
|
|
169
|
+
data = _ref11.data,
|
|
170
|
+
headers = _ref11.headers;
|
|
156
171
|
|
|
157
172
|
return client({
|
|
158
173
|
url: "/manifests/" + manifestId + "/capacity-exceptions",
|
|
@@ -165,12 +180,12 @@ function manifestFactory(_ref) {
|
|
|
165
180
|
});
|
|
166
181
|
}
|
|
167
182
|
|
|
168
|
-
function removeCapacityException(
|
|
169
|
-
var token =
|
|
170
|
-
jwtToken =
|
|
171
|
-
manifestId =
|
|
172
|
-
exceptionId =
|
|
173
|
-
headers =
|
|
183
|
+
function removeCapacityException(_ref12) {
|
|
184
|
+
var token = _ref12.token,
|
|
185
|
+
jwtToken = _ref12.jwtToken,
|
|
186
|
+
manifestId = _ref12.manifestId,
|
|
187
|
+
exceptionId = _ref12.exceptionId,
|
|
188
|
+
headers = _ref12.headers;
|
|
174
189
|
|
|
175
190
|
return client({
|
|
176
191
|
url: "/manifests/" + manifestId + "/capacity-exceptions/" + exceptionId,
|
|
@@ -181,14 +196,14 @@ function manifestFactory(_ref) {
|
|
|
181
196
|
});
|
|
182
197
|
}
|
|
183
198
|
|
|
184
|
-
function updateComment(
|
|
185
|
-
var token =
|
|
186
|
-
jwtToken =
|
|
187
|
-
manifestId =
|
|
188
|
-
|
|
189
|
-
query =
|
|
190
|
-
data =
|
|
191
|
-
headers =
|
|
199
|
+
function updateComment(_ref13) {
|
|
200
|
+
var token = _ref13.token,
|
|
201
|
+
jwtToken = _ref13.jwtToken,
|
|
202
|
+
manifestId = _ref13.manifestId,
|
|
203
|
+
_ref13$query = _ref13.query,
|
|
204
|
+
query = _ref13$query === undefined ? {} : _ref13$query,
|
|
205
|
+
data = _ref13.data,
|
|
206
|
+
headers = _ref13.headers;
|
|
192
207
|
|
|
193
208
|
return client({
|
|
194
209
|
url: "/manifests/" + manifestId + "/comments",
|
|
@@ -201,14 +216,14 @@ function manifestFactory(_ref) {
|
|
|
201
216
|
});
|
|
202
217
|
}
|
|
203
218
|
|
|
204
|
-
function updateStatus(
|
|
205
|
-
var token =
|
|
206
|
-
jwtToken =
|
|
207
|
-
manifestId =
|
|
208
|
-
|
|
209
|
-
query =
|
|
210
|
-
data =
|
|
211
|
-
headers =
|
|
219
|
+
function updateStatus(_ref14) {
|
|
220
|
+
var token = _ref14.token,
|
|
221
|
+
jwtToken = _ref14.jwtToken,
|
|
222
|
+
manifestId = _ref14.manifestId,
|
|
223
|
+
_ref14$query = _ref14.query,
|
|
224
|
+
query = _ref14$query === undefined ? {} : _ref14$query,
|
|
225
|
+
data = _ref14.data,
|
|
226
|
+
headers = _ref14.headers;
|
|
212
227
|
|
|
213
228
|
return client({
|
|
214
229
|
url: "/manifests/" + manifestId + "/status",
|
|
@@ -222,15 +237,15 @@ function manifestFactory(_ref) {
|
|
|
222
237
|
}
|
|
223
238
|
|
|
224
239
|
var checkIn = {
|
|
225
|
-
create: function create(
|
|
226
|
-
var token =
|
|
227
|
-
jwtToken =
|
|
228
|
-
|
|
229
|
-
query =
|
|
230
|
-
headers =
|
|
231
|
-
data =
|
|
232
|
-
manifestId =
|
|
233
|
-
legFromId =
|
|
240
|
+
create: function create(_ref15) {
|
|
241
|
+
var token = _ref15.token,
|
|
242
|
+
jwtToken = _ref15.jwtToken,
|
|
243
|
+
_ref15$query = _ref15.query,
|
|
244
|
+
query = _ref15$query === undefined ? {} : _ref15$query,
|
|
245
|
+
headers = _ref15.headers,
|
|
246
|
+
data = _ref15.data,
|
|
247
|
+
manifestId = _ref15.manifestId,
|
|
248
|
+
legFromId = _ref15.legFromId;
|
|
234
249
|
|
|
235
250
|
return client({
|
|
236
251
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -242,14 +257,14 @@ function manifestFactory(_ref) {
|
|
|
242
257
|
data: data
|
|
243
258
|
});
|
|
244
259
|
},
|
|
245
|
-
open: function open(
|
|
246
|
-
var token =
|
|
247
|
-
jwtToken =
|
|
248
|
-
|
|
249
|
-
query =
|
|
250
|
-
headers =
|
|
251
|
-
manifestId =
|
|
252
|
-
legFromId =
|
|
260
|
+
open: function open(_ref16) {
|
|
261
|
+
var token = _ref16.token,
|
|
262
|
+
jwtToken = _ref16.jwtToken,
|
|
263
|
+
_ref16$query = _ref16.query,
|
|
264
|
+
query = _ref16$query === undefined ? {} : _ref16$query,
|
|
265
|
+
headers = _ref16.headers,
|
|
266
|
+
manifestId = _ref16.manifestId,
|
|
267
|
+
legFromId = _ref16.legFromId;
|
|
253
268
|
|
|
254
269
|
return client({
|
|
255
270
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -265,14 +280,14 @@ function manifestFactory(_ref) {
|
|
|
265
280
|
}
|
|
266
281
|
});
|
|
267
282
|
},
|
|
268
|
-
close: function close(
|
|
269
|
-
var token =
|
|
270
|
-
jwtToken =
|
|
271
|
-
|
|
272
|
-
query =
|
|
273
|
-
headers =
|
|
274
|
-
manifestId =
|
|
275
|
-
legFromId =
|
|
283
|
+
close: function close(_ref17) {
|
|
284
|
+
var token = _ref17.token,
|
|
285
|
+
jwtToken = _ref17.jwtToken,
|
|
286
|
+
_ref17$query = _ref17.query,
|
|
287
|
+
query = _ref17$query === undefined ? {} : _ref17$query,
|
|
288
|
+
headers = _ref17.headers,
|
|
289
|
+
manifestId = _ref17.manifestId,
|
|
290
|
+
legFromId = _ref17.legFromId;
|
|
276
291
|
|
|
277
292
|
return client({
|
|
278
293
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -291,15 +306,15 @@ function manifestFactory(_ref) {
|
|
|
291
306
|
};
|
|
292
307
|
|
|
293
308
|
var legs = {
|
|
294
|
-
update: function update(
|
|
295
|
-
var token =
|
|
296
|
-
jwtToken =
|
|
297
|
-
data =
|
|
298
|
-
|
|
299
|
-
query =
|
|
300
|
-
headers =
|
|
301
|
-
manifestId =
|
|
302
|
-
legFromId =
|
|
309
|
+
update: function update(_ref18) {
|
|
310
|
+
var token = _ref18.token,
|
|
311
|
+
jwtToken = _ref18.jwtToken,
|
|
312
|
+
data = _ref18.data,
|
|
313
|
+
_ref18$query = _ref18.query,
|
|
314
|
+
query = _ref18$query === undefined ? {} : _ref18$query,
|
|
315
|
+
headers = _ref18.headers,
|
|
316
|
+
manifestId = _ref18.manifestId,
|
|
317
|
+
legFromId = _ref18.legFromId;
|
|
303
318
|
|
|
304
319
|
return client({
|
|
305
320
|
url: "/manifests/" + manifestId + "/legs/" + legFromId,
|
|
@@ -311,16 +326,16 @@ function manifestFactory(_ref) {
|
|
|
311
326
|
},
|
|
312
327
|
|
|
313
328
|
tickets: {
|
|
314
|
-
update: function update(
|
|
315
|
-
var token =
|
|
316
|
-
jwtToken =
|
|
317
|
-
data =
|
|
318
|
-
|
|
319
|
-
query =
|
|
320
|
-
headers =
|
|
321
|
-
manifestId =
|
|
322
|
-
legFromId =
|
|
323
|
-
ticketId =
|
|
329
|
+
update: function update(_ref19) {
|
|
330
|
+
var token = _ref19.token,
|
|
331
|
+
jwtToken = _ref19.jwtToken,
|
|
332
|
+
data = _ref19.data,
|
|
333
|
+
_ref19$query = _ref19.query,
|
|
334
|
+
query = _ref19$query === undefined ? {} : _ref19$query,
|
|
335
|
+
headers = _ref19.headers,
|
|
336
|
+
manifestId = _ref19.manifestId,
|
|
337
|
+
legFromId = _ref19.legFromId,
|
|
338
|
+
ticketId = _ref19.ticketId;
|
|
324
339
|
|
|
325
340
|
return client({
|
|
326
341
|
url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId,
|
|
@@ -330,15 +345,15 @@ function manifestFactory(_ref) {
|
|
|
330
345
|
data: data
|
|
331
346
|
});
|
|
332
347
|
},
|
|
333
|
-
noshow: function noshow(
|
|
334
|
-
var token =
|
|
335
|
-
jwtToken =
|
|
336
|
-
|
|
337
|
-
query =
|
|
338
|
-
headers =
|
|
339
|
-
manifestId =
|
|
340
|
-
legFromId =
|
|
341
|
-
ticketId =
|
|
348
|
+
noshow: function noshow(_ref20) {
|
|
349
|
+
var token = _ref20.token,
|
|
350
|
+
jwtToken = _ref20.jwtToken,
|
|
351
|
+
_ref20$query = _ref20.query,
|
|
352
|
+
query = _ref20$query === undefined ? {} : _ref20$query,
|
|
353
|
+
headers = _ref20.headers,
|
|
354
|
+
manifestId = _ref20.manifestId,
|
|
355
|
+
legFromId = _ref20.legFromId,
|
|
356
|
+
ticketId = _ref20.ticketId;
|
|
342
357
|
|
|
343
358
|
return client({
|
|
344
359
|
url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId + "/noshow",
|
|
@@ -351,15 +366,15 @@ function manifestFactory(_ref) {
|
|
|
351
366
|
};
|
|
352
367
|
|
|
353
368
|
var reports = {
|
|
354
|
-
get: function get(
|
|
355
|
-
var token =
|
|
356
|
-
jwtToken =
|
|
357
|
-
|
|
358
|
-
query =
|
|
359
|
-
|
|
360
|
-
responseType =
|
|
361
|
-
id =
|
|
362
|
-
headers =
|
|
369
|
+
get: function get(_ref21) {
|
|
370
|
+
var token = _ref21.token,
|
|
371
|
+
jwtToken = _ref21.jwtToken,
|
|
372
|
+
_ref21$query = _ref21.query,
|
|
373
|
+
query = _ref21$query === undefined ? {} : _ref21$query,
|
|
374
|
+
_ref21$responseType = _ref21.responseType,
|
|
375
|
+
responseType = _ref21$responseType === undefined ? "json" : _ref21$responseType,
|
|
376
|
+
id = _ref21.id,
|
|
377
|
+
headers = _ref21.headers;
|
|
363
378
|
|
|
364
379
|
return client({
|
|
365
380
|
url: "/manifests/" + id + "/reports",
|
|
@@ -384,6 +399,7 @@ function manifestFactory(_ref) {
|
|
|
384
399
|
updateStatus: updateStatus,
|
|
385
400
|
addCapacityException: addCapacityException,
|
|
386
401
|
removeCapacityException: removeCapacityException,
|
|
402
|
+
dispatch: dispatch,
|
|
387
403
|
checkIn: checkIn,
|
|
388
404
|
legs: legs,
|
|
389
405
|
reports: reports
|
package/package.json
CHANGED
|
@@ -5,6 +5,15 @@ const {
|
|
|
5
5
|
function manifestFactory({
|
|
6
6
|
client, internalAuthTokenProvider
|
|
7
7
|
}) {
|
|
8
|
+
function dispatch({token, jwtToken, headers, manifestId, data}) {
|
|
9
|
+
return client({
|
|
10
|
+
url: `manifests/${manifestId}/dispatches`,
|
|
11
|
+
method: "post",
|
|
12
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
13
|
+
data
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
function get({token, jwtToken, query = {}, headers}) {
|
|
9
18
|
return client({
|
|
10
19
|
url: "/manifests",
|
|
@@ -258,6 +267,7 @@ function manifestFactory({
|
|
|
258
267
|
updateStatus,
|
|
259
268
|
addCapacityException,
|
|
260
269
|
removeCapacityException,
|
|
270
|
+
dispatch,
|
|
261
271
|
checkIn,
|
|
262
272
|
legs,
|
|
263
273
|
reports
|
|
@@ -209,6 +209,32 @@ describe("operations/manifest", () => {
|
|
|
209
209
|
}));
|
|
210
210
|
return api.operations.manifest.reports.get({token, jwtToken, query: {}, id});
|
|
211
211
|
});
|
|
212
|
+
|
|
213
|
+
it("should return manifest with dispatch information", () => {
|
|
214
|
+
const manifestId = "12312312312312";
|
|
215
|
+
const data = {
|
|
216
|
+
user: {
|
|
217
|
+
firstName: "Al",
|
|
218
|
+
lastName: "Saunders",
|
|
219
|
+
email: "al@betterez.com",
|
|
220
|
+
shiftId: "649f20a95679910784326e81",
|
|
221
|
+
shiftNumber: "S-WTN6LDX",
|
|
222
|
+
shiftLocation: {
|
|
223
|
+
name: "Houston (Tx)",
|
|
224
|
+
stationId: "5d40d1f339861cba05a2aa3f",
|
|
225
|
+
country: "US",
|
|
226
|
+
province: "Texas"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
axiosMock.onPost(`/manifests/${manifestId}/dispatches`)
|
|
231
|
+
.reply(expectRequest({
|
|
232
|
+
statusCode: 200,
|
|
233
|
+
token,
|
|
234
|
+
jwtToken
|
|
235
|
+
}));
|
|
236
|
+
return api.operations.manifest.dispatch({token, jwtToken, manifestId, data});
|
|
237
|
+
});
|
|
212
238
|
});
|
|
213
239
|
|
|
214
240
|
describe("operations/manifest/legs/tickets/noshow", () => {
|
|
@@ -229,11 +255,11 @@ describe("operations/manifest/legs/tickets/noshow", () => {
|
|
|
229
255
|
axiosMock.onPut(`/manifests/${manifestId}/legs/${legFromId}/tickets/${ticketId}/noshow`).reply((config) => {
|
|
230
256
|
expect(config.url).to.contain.oneOf([manifestId, legFromId, ticketId]);
|
|
231
257
|
expect(config.headers.authorization).to.be.eql(`Bearer ${jwtToken}`);
|
|
232
|
-
expect(config.headers["x-api-key"]).to.be.eql(token);
|
|
233
|
-
return [200, {}];
|
|
258
|
+
expect(config.headers["x-api-key"]).to.be.eql(token);
|
|
259
|
+
return [200, {}];
|
|
234
260
|
});
|
|
235
261
|
return api.operations.manifest.legs.tickets.noshow({
|
|
236
|
-
token, jwtToken, query
|
|
262
|
+
token, jwtToken, query, headers, manifestId, legFromId, ticketId
|
|
237
263
|
});
|
|
238
264
|
});
|
|
239
|
-
});
|
|
265
|
+
});
|
package/types/client.d.ts
CHANGED
|
@@ -2708,6 +2708,13 @@ export function createApiClient(options: {
|
|
|
2708
2708
|
exceptionId: any;
|
|
2709
2709
|
headers: any;
|
|
2710
2710
|
}) => any;
|
|
2711
|
+
dispatch: ({ token, jwtToken, headers, manifestId, data }: {
|
|
2712
|
+
token: any;
|
|
2713
|
+
jwtToken: any;
|
|
2714
|
+
headers: any;
|
|
2715
|
+
manifestId: any;
|
|
2716
|
+
data: any;
|
|
2717
|
+
}) => any;
|
|
2711
2718
|
checkIn: {
|
|
2712
2719
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2713
2720
|
token: any;
|
|
@@ -89,6 +89,13 @@ declare function manifestFactory({ client, internalAuthTokenProvider }: {
|
|
|
89
89
|
exceptionId: any;
|
|
90
90
|
headers: any;
|
|
91
91
|
}) => any;
|
|
92
|
+
dispatch: ({ token, jwtToken, headers, manifestId, data }: {
|
|
93
|
+
token: any;
|
|
94
|
+
jwtToken: any;
|
|
95
|
+
headers: any;
|
|
96
|
+
manifestId: any;
|
|
97
|
+
data: any;
|
|
98
|
+
}) => any;
|
|
92
99
|
checkIn: {
|
|
93
100
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
94
101
|
token: any;
|
|
@@ -2662,6 +2662,13 @@ declare const _exports: {
|
|
|
2662
2662
|
exceptionId: any;
|
|
2663
2663
|
headers: any;
|
|
2664
2664
|
}) => any;
|
|
2665
|
+
dispatch: ({ token, jwtToken, headers, manifestId, data }: {
|
|
2666
|
+
token: any;
|
|
2667
|
+
jwtToken: any;
|
|
2668
|
+
headers: any;
|
|
2669
|
+
manifestId: any;
|
|
2670
|
+
data: any;
|
|
2671
|
+
}) => any;
|
|
2665
2672
|
checkIn: {
|
|
2666
2673
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2667
2674
|
token: any;
|