btrz-api-client 5.148.0 → 5.149.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 -1
- package/lib/endpoints/operations/manifest.js +180 -165
- package/package.json +1 -1
- package/src/endpoints/operations/manifest.js +10 -0
- package/test/endpoints/operations/manifest.test.js +14 -0
- package/types/client.d.ts +6 -0
- package/types/endpoints/operations/manifest.d.ts +6 -0
- package/types/initializedClient.d.ts +6 -0
|
@@ -7,28 +7,42 @@ function manifestFactory(_ref) {
|
|
|
7
7
|
var client = _ref.client,
|
|
8
8
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function createDispatchReporting(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
13
|
headers = _ref2.headers,
|
|
14
|
-
manifestId = _ref2.manifestId,
|
|
15
14
|
data = _ref2.data;
|
|
16
15
|
|
|
17
16
|
return client({
|
|
18
|
-
url: "manifests/
|
|
19
|
-
method: "
|
|
17
|
+
url: "/manifests/dispatch/reporting",
|
|
18
|
+
method: "post",
|
|
20
19
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
21
20
|
data: data
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
function
|
|
24
|
+
function updateDispatchReporting(_ref3) {
|
|
26
25
|
var token = _ref3.token,
|
|
27
26
|
jwtToken = _ref3.jwtToken,
|
|
28
27
|
headers = _ref3.headers,
|
|
29
28
|
manifestId = _ref3.manifestId,
|
|
30
|
-
data = _ref3.data
|
|
31
|
-
|
|
29
|
+
data = _ref3.data;
|
|
30
|
+
|
|
31
|
+
return client({
|
|
32
|
+
url: "manifests/" + manifestId + "/dispatch/reporting",
|
|
33
|
+
method: "put",
|
|
34
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
35
|
+
data: data
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function dispatch(_ref4) {
|
|
40
|
+
var token = _ref4.token,
|
|
41
|
+
jwtToken = _ref4.jwtToken,
|
|
42
|
+
headers = _ref4.headers,
|
|
43
|
+
manifestId = _ref4.manifestId,
|
|
44
|
+
data = _ref4.data,
|
|
45
|
+
query = _ref4.query;
|
|
32
46
|
|
|
33
47
|
return client({
|
|
34
48
|
url: "manifests/" + manifestId + "/dispatches",
|
|
@@ -39,12 +53,12 @@ function manifestFactory(_ref) {
|
|
|
39
53
|
});
|
|
40
54
|
}
|
|
41
55
|
|
|
42
|
-
function get(
|
|
43
|
-
var token =
|
|
44
|
-
jwtToken =
|
|
45
|
-
|
|
46
|
-
query =
|
|
47
|
-
headers =
|
|
56
|
+
function get(_ref5) {
|
|
57
|
+
var token = _ref5.token,
|
|
58
|
+
jwtToken = _ref5.jwtToken,
|
|
59
|
+
_ref5$query = _ref5.query,
|
|
60
|
+
query = _ref5$query === undefined ? {} : _ref5$query,
|
|
61
|
+
headers = _ref5.headers;
|
|
48
62
|
|
|
49
63
|
return client({
|
|
50
64
|
url: "/manifests",
|
|
@@ -54,13 +68,13 @@ function manifestFactory(_ref) {
|
|
|
54
68
|
});
|
|
55
69
|
}
|
|
56
70
|
|
|
57
|
-
function getById(
|
|
58
|
-
var token =
|
|
59
|
-
jwtToken =
|
|
60
|
-
manifestId =
|
|
61
|
-
|
|
62
|
-
query =
|
|
63
|
-
headers =
|
|
71
|
+
function getById(_ref6) {
|
|
72
|
+
var token = _ref6.token,
|
|
73
|
+
jwtToken = _ref6.jwtToken,
|
|
74
|
+
manifestId = _ref6.manifestId,
|
|
75
|
+
_ref6$query = _ref6.query,
|
|
76
|
+
query = _ref6$query === undefined ? {} : _ref6$query,
|
|
77
|
+
headers = _ref6.headers;
|
|
64
78
|
|
|
65
79
|
return client({
|
|
66
80
|
url: "/manifests/" + manifestId,
|
|
@@ -72,12 +86,12 @@ function manifestFactory(_ref) {
|
|
|
72
86
|
});
|
|
73
87
|
}
|
|
74
88
|
|
|
75
|
-
function getAll(
|
|
76
|
-
var token =
|
|
77
|
-
jwtToken =
|
|
78
|
-
providerId =
|
|
79
|
-
data =
|
|
80
|
-
headers =
|
|
89
|
+
function getAll(_ref7) {
|
|
90
|
+
var token = _ref7.token,
|
|
91
|
+
jwtToken = _ref7.jwtToken,
|
|
92
|
+
providerId = _ref7.providerId,
|
|
93
|
+
data = _ref7.data,
|
|
94
|
+
headers = _ref7.headers;
|
|
81
95
|
|
|
82
96
|
// an HTTP POST request is used to send the query data in the request body because the query may be very large.
|
|
83
97
|
return client({
|
|
@@ -89,12 +103,12 @@ function manifestFactory(_ref) {
|
|
|
89
103
|
});
|
|
90
104
|
}
|
|
91
105
|
|
|
92
|
-
function outlook(
|
|
93
|
-
var token =
|
|
94
|
-
jwtToken =
|
|
95
|
-
|
|
96
|
-
query =
|
|
97
|
-
headers =
|
|
106
|
+
function outlook(_ref8) {
|
|
107
|
+
var token = _ref8.token,
|
|
108
|
+
jwtToken = _ref8.jwtToken,
|
|
109
|
+
_ref8$query = _ref8.query,
|
|
110
|
+
query = _ref8$query === undefined ? {} : _ref8$query,
|
|
111
|
+
headers = _ref8.headers;
|
|
98
112
|
|
|
99
113
|
return client({
|
|
100
114
|
url: "/outlook-manifests",
|
|
@@ -106,13 +120,13 @@ function manifestFactory(_ref) {
|
|
|
106
120
|
});
|
|
107
121
|
}
|
|
108
122
|
|
|
109
|
-
function patch(
|
|
110
|
-
var token =
|
|
111
|
-
jwtToken =
|
|
112
|
-
|
|
113
|
-
query =
|
|
114
|
-
operations =
|
|
115
|
-
headers =
|
|
123
|
+
function patch(_ref9) {
|
|
124
|
+
var token = _ref9.token,
|
|
125
|
+
jwtToken = _ref9.jwtToken,
|
|
126
|
+
_ref9$query = _ref9.query,
|
|
127
|
+
query = _ref9$query === undefined ? {} : _ref9$query,
|
|
128
|
+
operations = _ref9.operations,
|
|
129
|
+
headers = _ref9.headers;
|
|
116
130
|
|
|
117
131
|
return client({
|
|
118
132
|
url: "/manifests",
|
|
@@ -125,12 +139,12 @@ function manifestFactory(_ref) {
|
|
|
125
139
|
});
|
|
126
140
|
}
|
|
127
141
|
|
|
128
|
-
function save(
|
|
129
|
-
var token =
|
|
130
|
-
jwtToken =
|
|
131
|
-
providerId =
|
|
132
|
-
data =
|
|
133
|
-
headers =
|
|
142
|
+
function save(_ref10) {
|
|
143
|
+
var token = _ref10.token,
|
|
144
|
+
jwtToken = _ref10.jwtToken,
|
|
145
|
+
providerId = _ref10.providerId,
|
|
146
|
+
data = _ref10.data,
|
|
147
|
+
headers = _ref10.headers;
|
|
134
148
|
|
|
135
149
|
return client({
|
|
136
150
|
url: "/manifests",
|
|
@@ -141,14 +155,14 @@ function manifestFactory(_ref) {
|
|
|
141
155
|
});
|
|
142
156
|
}
|
|
143
157
|
|
|
144
|
-
function addUser(
|
|
145
|
-
var token =
|
|
146
|
-
jwtToken =
|
|
147
|
-
manifestId =
|
|
148
|
-
|
|
149
|
-
query =
|
|
150
|
-
data =
|
|
151
|
-
headers =
|
|
158
|
+
function addUser(_ref11) {
|
|
159
|
+
var token = _ref11.token,
|
|
160
|
+
jwtToken = _ref11.jwtToken,
|
|
161
|
+
manifestId = _ref11.manifestId,
|
|
162
|
+
_ref11$query = _ref11.query,
|
|
163
|
+
query = _ref11$query === undefined ? {} : _ref11$query,
|
|
164
|
+
data = _ref11.data,
|
|
165
|
+
headers = _ref11.headers;
|
|
152
166
|
|
|
153
167
|
return client({
|
|
154
168
|
url: "/manifests/" + manifestId + "/users",
|
|
@@ -161,12 +175,12 @@ function manifestFactory(_ref) {
|
|
|
161
175
|
});
|
|
162
176
|
}
|
|
163
177
|
|
|
164
|
-
function removeUser(
|
|
165
|
-
var token =
|
|
166
|
-
jwtToken =
|
|
167
|
-
manifestId =
|
|
168
|
-
userId =
|
|
169
|
-
headers =
|
|
178
|
+
function removeUser(_ref12) {
|
|
179
|
+
var token = _ref12.token,
|
|
180
|
+
jwtToken = _ref12.jwtToken,
|
|
181
|
+
manifestId = _ref12.manifestId,
|
|
182
|
+
userId = _ref12.userId,
|
|
183
|
+
headers = _ref12.headers;
|
|
170
184
|
|
|
171
185
|
return client({
|
|
172
186
|
url: "/manifests/" + manifestId + "/users/" + userId,
|
|
@@ -177,14 +191,14 @@ function manifestFactory(_ref) {
|
|
|
177
191
|
});
|
|
178
192
|
}
|
|
179
193
|
|
|
180
|
-
function addCapacityException(
|
|
181
|
-
var token =
|
|
182
|
-
jwtToken =
|
|
183
|
-
manifestId =
|
|
184
|
-
|
|
185
|
-
query =
|
|
186
|
-
data =
|
|
187
|
-
headers =
|
|
194
|
+
function addCapacityException(_ref13) {
|
|
195
|
+
var token = _ref13.token,
|
|
196
|
+
jwtToken = _ref13.jwtToken,
|
|
197
|
+
manifestId = _ref13.manifestId,
|
|
198
|
+
_ref13$query = _ref13.query,
|
|
199
|
+
query = _ref13$query === undefined ? {} : _ref13$query,
|
|
200
|
+
data = _ref13.data,
|
|
201
|
+
headers = _ref13.headers;
|
|
188
202
|
|
|
189
203
|
return client({
|
|
190
204
|
url: "/manifests/" + manifestId + "/capacity-exceptions",
|
|
@@ -197,12 +211,12 @@ function manifestFactory(_ref) {
|
|
|
197
211
|
});
|
|
198
212
|
}
|
|
199
213
|
|
|
200
|
-
function removeCapacityException(
|
|
201
|
-
var token =
|
|
202
|
-
jwtToken =
|
|
203
|
-
manifestId =
|
|
204
|
-
exceptionId =
|
|
205
|
-
headers =
|
|
214
|
+
function removeCapacityException(_ref14) {
|
|
215
|
+
var token = _ref14.token,
|
|
216
|
+
jwtToken = _ref14.jwtToken,
|
|
217
|
+
manifestId = _ref14.manifestId,
|
|
218
|
+
exceptionId = _ref14.exceptionId,
|
|
219
|
+
headers = _ref14.headers;
|
|
206
220
|
|
|
207
221
|
return client({
|
|
208
222
|
url: "/manifests/" + manifestId + "/capacity-exceptions/" + exceptionId,
|
|
@@ -213,14 +227,14 @@ function manifestFactory(_ref) {
|
|
|
213
227
|
});
|
|
214
228
|
}
|
|
215
229
|
|
|
216
|
-
function updateComment(
|
|
217
|
-
var token =
|
|
218
|
-
jwtToken =
|
|
219
|
-
manifestId =
|
|
220
|
-
|
|
221
|
-
query =
|
|
222
|
-
data =
|
|
223
|
-
headers =
|
|
230
|
+
function updateComment(_ref15) {
|
|
231
|
+
var token = _ref15.token,
|
|
232
|
+
jwtToken = _ref15.jwtToken,
|
|
233
|
+
manifestId = _ref15.manifestId,
|
|
234
|
+
_ref15$query = _ref15.query,
|
|
235
|
+
query = _ref15$query === undefined ? {} : _ref15$query,
|
|
236
|
+
data = _ref15.data,
|
|
237
|
+
headers = _ref15.headers;
|
|
224
238
|
|
|
225
239
|
return client({
|
|
226
240
|
url: "/manifests/" + manifestId + "/comments",
|
|
@@ -233,14 +247,14 @@ function manifestFactory(_ref) {
|
|
|
233
247
|
});
|
|
234
248
|
}
|
|
235
249
|
|
|
236
|
-
function updateStatus(
|
|
237
|
-
var token =
|
|
238
|
-
jwtToken =
|
|
239
|
-
manifestId =
|
|
240
|
-
|
|
241
|
-
query =
|
|
242
|
-
data =
|
|
243
|
-
headers =
|
|
250
|
+
function updateStatus(_ref16) {
|
|
251
|
+
var token = _ref16.token,
|
|
252
|
+
jwtToken = _ref16.jwtToken,
|
|
253
|
+
manifestId = _ref16.manifestId,
|
|
254
|
+
_ref16$query = _ref16.query,
|
|
255
|
+
query = _ref16$query === undefined ? {} : _ref16$query,
|
|
256
|
+
data = _ref16.data,
|
|
257
|
+
headers = _ref16.headers;
|
|
244
258
|
|
|
245
259
|
return client({
|
|
246
260
|
url: "/manifests/" + manifestId + "/status",
|
|
@@ -254,15 +268,15 @@ function manifestFactory(_ref) {
|
|
|
254
268
|
}
|
|
255
269
|
|
|
256
270
|
var checkIn = {
|
|
257
|
-
create: function create(
|
|
258
|
-
var token =
|
|
259
|
-
jwtToken =
|
|
260
|
-
|
|
261
|
-
query =
|
|
262
|
-
headers =
|
|
263
|
-
data =
|
|
264
|
-
manifestId =
|
|
265
|
-
legFromId =
|
|
271
|
+
create: function create(_ref17) {
|
|
272
|
+
var token = _ref17.token,
|
|
273
|
+
jwtToken = _ref17.jwtToken,
|
|
274
|
+
_ref17$query = _ref17.query,
|
|
275
|
+
query = _ref17$query === undefined ? {} : _ref17$query,
|
|
276
|
+
headers = _ref17.headers,
|
|
277
|
+
data = _ref17.data,
|
|
278
|
+
manifestId = _ref17.manifestId,
|
|
279
|
+
legFromId = _ref17.legFromId;
|
|
266
280
|
|
|
267
281
|
return client({
|
|
268
282
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -274,14 +288,14 @@ function manifestFactory(_ref) {
|
|
|
274
288
|
data: data
|
|
275
289
|
});
|
|
276
290
|
},
|
|
277
|
-
open: function open(
|
|
278
|
-
var token =
|
|
279
|
-
jwtToken =
|
|
280
|
-
|
|
281
|
-
query =
|
|
282
|
-
headers =
|
|
283
|
-
manifestId =
|
|
284
|
-
legFromId =
|
|
291
|
+
open: function open(_ref18) {
|
|
292
|
+
var token = _ref18.token,
|
|
293
|
+
jwtToken = _ref18.jwtToken,
|
|
294
|
+
_ref18$query = _ref18.query,
|
|
295
|
+
query = _ref18$query === undefined ? {} : _ref18$query,
|
|
296
|
+
headers = _ref18.headers,
|
|
297
|
+
manifestId = _ref18.manifestId,
|
|
298
|
+
legFromId = _ref18.legFromId;
|
|
285
299
|
|
|
286
300
|
return client({
|
|
287
301
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -297,14 +311,14 @@ function manifestFactory(_ref) {
|
|
|
297
311
|
}
|
|
298
312
|
});
|
|
299
313
|
},
|
|
300
|
-
close: function close(
|
|
301
|
-
var token =
|
|
302
|
-
jwtToken =
|
|
303
|
-
|
|
304
|
-
query =
|
|
305
|
-
headers =
|
|
306
|
-
manifestId =
|
|
307
|
-
legFromId =
|
|
314
|
+
close: function close(_ref19) {
|
|
315
|
+
var token = _ref19.token,
|
|
316
|
+
jwtToken = _ref19.jwtToken,
|
|
317
|
+
_ref19$query = _ref19.query,
|
|
318
|
+
query = _ref19$query === undefined ? {} : _ref19$query,
|
|
319
|
+
headers = _ref19.headers,
|
|
320
|
+
manifestId = _ref19.manifestId,
|
|
321
|
+
legFromId = _ref19.legFromId;
|
|
308
322
|
|
|
309
323
|
return client({
|
|
310
324
|
url: "/manifests/" + manifestId + "/checkin/" + legFromId,
|
|
@@ -323,15 +337,15 @@ function manifestFactory(_ref) {
|
|
|
323
337
|
};
|
|
324
338
|
|
|
325
339
|
var legs = {
|
|
326
|
-
update: function update(
|
|
327
|
-
var token =
|
|
328
|
-
jwtToken =
|
|
329
|
-
data =
|
|
330
|
-
|
|
331
|
-
query =
|
|
332
|
-
headers =
|
|
333
|
-
manifestId =
|
|
334
|
-
legFromId =
|
|
340
|
+
update: function update(_ref20) {
|
|
341
|
+
var token = _ref20.token,
|
|
342
|
+
jwtToken = _ref20.jwtToken,
|
|
343
|
+
data = _ref20.data,
|
|
344
|
+
_ref20$query = _ref20.query,
|
|
345
|
+
query = _ref20$query === undefined ? {} : _ref20$query,
|
|
346
|
+
headers = _ref20.headers,
|
|
347
|
+
manifestId = _ref20.manifestId,
|
|
348
|
+
legFromId = _ref20.legFromId;
|
|
335
349
|
|
|
336
350
|
return client({
|
|
337
351
|
url: "/manifests/" + manifestId + "/legs/" + legFromId,
|
|
@@ -343,16 +357,16 @@ function manifestFactory(_ref) {
|
|
|
343
357
|
},
|
|
344
358
|
|
|
345
359
|
tickets: {
|
|
346
|
-
update: function update(
|
|
347
|
-
var token =
|
|
348
|
-
jwtToken =
|
|
349
|
-
data =
|
|
350
|
-
|
|
351
|
-
query =
|
|
352
|
-
headers =
|
|
353
|
-
manifestId =
|
|
354
|
-
legFromId =
|
|
355
|
-
ticketId =
|
|
360
|
+
update: function update(_ref21) {
|
|
361
|
+
var token = _ref21.token,
|
|
362
|
+
jwtToken = _ref21.jwtToken,
|
|
363
|
+
data = _ref21.data,
|
|
364
|
+
_ref21$query = _ref21.query,
|
|
365
|
+
query = _ref21$query === undefined ? {} : _ref21$query,
|
|
366
|
+
headers = _ref21.headers,
|
|
367
|
+
manifestId = _ref21.manifestId,
|
|
368
|
+
legFromId = _ref21.legFromId,
|
|
369
|
+
ticketId = _ref21.ticketId;
|
|
356
370
|
|
|
357
371
|
return client({
|
|
358
372
|
url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId,
|
|
@@ -362,15 +376,15 @@ function manifestFactory(_ref) {
|
|
|
362
376
|
data: data
|
|
363
377
|
});
|
|
364
378
|
},
|
|
365
|
-
noshow: function noshow(
|
|
366
|
-
var token =
|
|
367
|
-
jwtToken =
|
|
368
|
-
|
|
369
|
-
query =
|
|
370
|
-
headers =
|
|
371
|
-
manifestId =
|
|
372
|
-
legFromId =
|
|
373
|
-
ticketId =
|
|
379
|
+
noshow: function noshow(_ref22) {
|
|
380
|
+
var token = _ref22.token,
|
|
381
|
+
jwtToken = _ref22.jwtToken,
|
|
382
|
+
_ref22$query = _ref22.query,
|
|
383
|
+
query = _ref22$query === undefined ? {} : _ref22$query,
|
|
384
|
+
headers = _ref22.headers,
|
|
385
|
+
manifestId = _ref22.manifestId,
|
|
386
|
+
legFromId = _ref22.legFromId,
|
|
387
|
+
ticketId = _ref22.ticketId;
|
|
374
388
|
|
|
375
389
|
return client({
|
|
376
390
|
url: "/manifests/" + manifestId + "/legs/" + legFromId + "/tickets/" + ticketId + "/noshow",
|
|
@@ -383,15 +397,15 @@ function manifestFactory(_ref) {
|
|
|
383
397
|
};
|
|
384
398
|
|
|
385
399
|
var reports = {
|
|
386
|
-
get: function get(
|
|
387
|
-
var token =
|
|
388
|
-
jwtToken =
|
|
389
|
-
|
|
390
|
-
query =
|
|
391
|
-
|
|
392
|
-
responseType =
|
|
393
|
-
id =
|
|
394
|
-
headers =
|
|
400
|
+
get: function get(_ref23) {
|
|
401
|
+
var token = _ref23.token,
|
|
402
|
+
jwtToken = _ref23.jwtToken,
|
|
403
|
+
_ref23$query = _ref23.query,
|
|
404
|
+
query = _ref23$query === undefined ? {} : _ref23$query,
|
|
405
|
+
_ref23$responseType = _ref23.responseType,
|
|
406
|
+
responseType = _ref23$responseType === undefined ? "json" : _ref23$responseType,
|
|
407
|
+
id = _ref23.id,
|
|
408
|
+
headers = _ref23.headers;
|
|
395
409
|
|
|
396
410
|
return client({
|
|
397
411
|
url: "/manifests/" + id + "/reports",
|
|
@@ -404,14 +418,14 @@ function manifestFactory(_ref) {
|
|
|
404
418
|
};
|
|
405
419
|
|
|
406
420
|
var labels = {
|
|
407
|
-
add: function add(
|
|
408
|
-
var token =
|
|
409
|
-
jwtToken =
|
|
410
|
-
manifestId =
|
|
411
|
-
|
|
412
|
-
query =
|
|
413
|
-
headers =
|
|
414
|
-
data =
|
|
421
|
+
add: function add(_ref24) {
|
|
422
|
+
var token = _ref24.token,
|
|
423
|
+
jwtToken = _ref24.jwtToken,
|
|
424
|
+
manifestId = _ref24.manifestId,
|
|
425
|
+
_ref24$query = _ref24.query,
|
|
426
|
+
query = _ref24$query === undefined ? {} : _ref24$query,
|
|
427
|
+
headers = _ref24.headers,
|
|
428
|
+
data = _ref24.data;
|
|
415
429
|
|
|
416
430
|
return client({
|
|
417
431
|
url: "/manifests/" + manifestId + "/labels",
|
|
@@ -421,12 +435,12 @@ function manifestFactory(_ref) {
|
|
|
421
435
|
data: data
|
|
422
436
|
});
|
|
423
437
|
},
|
|
424
|
-
remove: function remove(
|
|
425
|
-
var token =
|
|
426
|
-
jwtToken =
|
|
427
|
-
manifestId =
|
|
428
|
-
labelId =
|
|
429
|
-
headers =
|
|
438
|
+
remove: function remove(_ref25) {
|
|
439
|
+
var token = _ref25.token,
|
|
440
|
+
jwtToken = _ref25.jwtToken,
|
|
441
|
+
manifestId = _ref25.manifestId,
|
|
442
|
+
labelId = _ref25.labelId,
|
|
443
|
+
headers = _ref25.headers;
|
|
430
444
|
|
|
431
445
|
return client({
|
|
432
446
|
url: "/manifests/" + manifestId + "/labels/" + labelId,
|
|
@@ -451,6 +465,7 @@ function manifestFactory(_ref) {
|
|
|
451
465
|
removeCapacityException: removeCapacityException,
|
|
452
466
|
dispatch: dispatch,
|
|
453
467
|
updateDispatchReporting: updateDispatchReporting,
|
|
468
|
+
createDispatchReporting: createDispatchReporting,
|
|
454
469
|
checkIn: checkIn,
|
|
455
470
|
legs: legs,
|
|
456
471
|
reports: reports,
|
package/package.json
CHANGED
|
@@ -5,6 +5,15 @@ const {
|
|
|
5
5
|
function manifestFactory({
|
|
6
6
|
client, internalAuthTokenProvider
|
|
7
7
|
}) {
|
|
8
|
+
function createDispatchReporting({token, jwtToken, headers, data}) {
|
|
9
|
+
return client({
|
|
10
|
+
url: "/manifests/dispatch/reporting",
|
|
11
|
+
method: "post",
|
|
12
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
13
|
+
data
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
function updateDispatchReporting({token, jwtToken, headers, manifestId, data}) {
|
|
9
18
|
return client({
|
|
10
19
|
url: `manifests/${manifestId}/dispatch/reporting`,
|
|
@@ -298,6 +307,7 @@ function manifestFactory({
|
|
|
298
307
|
removeCapacityException,
|
|
299
308
|
dispatch,
|
|
300
309
|
updateDispatchReporting,
|
|
310
|
+
createDispatchReporting,
|
|
301
311
|
checkIn,
|
|
302
312
|
legs,
|
|
303
313
|
reports,
|
|
@@ -252,6 +252,20 @@ describe("operations/manifest", () => {
|
|
|
252
252
|
}));
|
|
253
253
|
return api.operations.manifest.updateDispatchReporting({token, jwtToken, manifestId, data});
|
|
254
254
|
});
|
|
255
|
+
|
|
256
|
+
it("should create a dispatch reporting", () => {
|
|
257
|
+
const data = {
|
|
258
|
+
dateFrom: "16/04/2024",
|
|
259
|
+
dateTo: "18/04/2024"
|
|
260
|
+
};
|
|
261
|
+
axiosMock.onPost("/manifests/dispatch/reporting")
|
|
262
|
+
.reply(expectRequest({
|
|
263
|
+
statusCode: 200,
|
|
264
|
+
token,
|
|
265
|
+
jwtToken
|
|
266
|
+
}));
|
|
267
|
+
return api.operations.manifest.createDispatchReporting({token, jwtToken, data});
|
|
268
|
+
});
|
|
255
269
|
});
|
|
256
270
|
|
|
257
271
|
describe("operations/manifest/legs/tickets/noshow", () => {
|
package/types/client.d.ts
CHANGED
|
@@ -2838,6 +2838,12 @@ export function createApiClient(options: {
|
|
|
2838
2838
|
manifestId: any;
|
|
2839
2839
|
data: any;
|
|
2840
2840
|
}) => any;
|
|
2841
|
+
createDispatchReporting: ({ token, jwtToken, headers, data }: {
|
|
2842
|
+
token: any;
|
|
2843
|
+
jwtToken: any;
|
|
2844
|
+
headers: any;
|
|
2845
|
+
data: any;
|
|
2846
|
+
}) => any;
|
|
2841
2847
|
checkIn: {
|
|
2842
2848
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2843
2849
|
token: any;
|
|
@@ -104,6 +104,12 @@ declare function manifestFactory({ client, internalAuthTokenProvider }: {
|
|
|
104
104
|
manifestId: any;
|
|
105
105
|
data: any;
|
|
106
106
|
}) => any;
|
|
107
|
+
createDispatchReporting: ({ token, jwtToken, headers, data }: {
|
|
108
|
+
token: any;
|
|
109
|
+
jwtToken: any;
|
|
110
|
+
headers: any;
|
|
111
|
+
data: any;
|
|
112
|
+
}) => any;
|
|
107
113
|
checkIn: {
|
|
108
114
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
109
115
|
token: any;
|
|
@@ -2792,6 +2792,12 @@ declare const _exports: {
|
|
|
2792
2792
|
manifestId: any;
|
|
2793
2793
|
data: any;
|
|
2794
2794
|
}) => any;
|
|
2795
|
+
createDispatchReporting: ({ token, jwtToken, headers, data }: {
|
|
2796
|
+
token: any;
|
|
2797
|
+
jwtToken: any;
|
|
2798
|
+
headers: any;
|
|
2799
|
+
data: any;
|
|
2800
|
+
}) => any;
|
|
2795
2801
|
checkIn: {
|
|
2796
2802
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2797
2803
|
token: any;
|