btrz-api-client 5.148.0 → 5.150.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/inventory/taxes.js +68 -1
- package/lib/endpoints/operations/manifest.js +180 -165
- package/package.json +1 -1
- package/src/endpoints/inventory/taxes.js +41 -2
- package/src/endpoints/operations/manifest.js +10 -0
- package/test/endpoints/operations/manifest.test.js +14 -0
- package/types/client.d.ts +39 -0
- package/types/endpoints/inventory/taxes.d.ts +33 -0
- package/types/endpoints/operations/manifest.d.ts +6 -0
- package/types/initializedClient.d.ts +39 -0
|
@@ -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
|
@@ -386,6 +386,39 @@ export function createApiClient(options: {
|
|
|
386
386
|
tax: any;
|
|
387
387
|
headers: any;
|
|
388
388
|
}) => any;
|
|
389
|
+
exceptions: {
|
|
390
|
+
create({ jwtToken, token, taxException, headers }: {
|
|
391
|
+
jwtToken: any;
|
|
392
|
+
token: any;
|
|
393
|
+
taxException: any;
|
|
394
|
+
headers: any;
|
|
395
|
+
}): any;
|
|
396
|
+
update({ jwtToken, token, taxExceptionId, taxException, headers }: {
|
|
397
|
+
jwtToken: any;
|
|
398
|
+
token: any;
|
|
399
|
+
taxExceptionId: any;
|
|
400
|
+
taxException: any;
|
|
401
|
+
headers: any;
|
|
402
|
+
}): any;
|
|
403
|
+
get({ jwtToken, token, taxExceptionId, headers }: {
|
|
404
|
+
jwtToken: any;
|
|
405
|
+
token: any;
|
|
406
|
+
taxExceptionId: any;
|
|
407
|
+
headers: any;
|
|
408
|
+
}): any;
|
|
409
|
+
all({ jwtToken, token, query, headers }: {
|
|
410
|
+
jwtToken: any;
|
|
411
|
+
token: any;
|
|
412
|
+
query?: {};
|
|
413
|
+
headers: any;
|
|
414
|
+
}): any;
|
|
415
|
+
delete({ jwtToken, token, taxExceptionId, headers }: {
|
|
416
|
+
jwtToken: any;
|
|
417
|
+
token: any;
|
|
418
|
+
taxExceptionId: any;
|
|
419
|
+
headers: any;
|
|
420
|
+
}): any;
|
|
421
|
+
};
|
|
389
422
|
};
|
|
390
423
|
seatmaps: {
|
|
391
424
|
all: ({ token, query, headers }: {
|
|
@@ -2838,6 +2871,12 @@ export function createApiClient(options: {
|
|
|
2838
2871
|
manifestId: any;
|
|
2839
2872
|
data: any;
|
|
2840
2873
|
}) => any;
|
|
2874
|
+
createDispatchReporting: ({ token, jwtToken, headers, data }: {
|
|
2875
|
+
token: any;
|
|
2876
|
+
jwtToken: any;
|
|
2877
|
+
headers: any;
|
|
2878
|
+
data: any;
|
|
2879
|
+
}) => any;
|
|
2841
2880
|
checkIn: {
|
|
2842
2881
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2843
2882
|
token: any;
|
|
@@ -27,4 +27,37 @@ declare function taxesFactory({ client, internalAuthTokenProvider }: {
|
|
|
27
27
|
tax: any;
|
|
28
28
|
headers: any;
|
|
29
29
|
}) => any;
|
|
30
|
+
exceptions: {
|
|
31
|
+
create({ jwtToken, token, taxException, headers }: {
|
|
32
|
+
jwtToken: any;
|
|
33
|
+
token: any;
|
|
34
|
+
taxException: any;
|
|
35
|
+
headers: any;
|
|
36
|
+
}): any;
|
|
37
|
+
update({ jwtToken, token, taxExceptionId, taxException, headers }: {
|
|
38
|
+
jwtToken: any;
|
|
39
|
+
token: any;
|
|
40
|
+
taxExceptionId: any;
|
|
41
|
+
taxException: any;
|
|
42
|
+
headers: any;
|
|
43
|
+
}): any;
|
|
44
|
+
get({ jwtToken, token, taxExceptionId, headers }: {
|
|
45
|
+
jwtToken: any;
|
|
46
|
+
token: any;
|
|
47
|
+
taxExceptionId: any;
|
|
48
|
+
headers: any;
|
|
49
|
+
}): any;
|
|
50
|
+
all({ jwtToken, token, query, headers }: {
|
|
51
|
+
jwtToken: any;
|
|
52
|
+
token: any;
|
|
53
|
+
query?: {};
|
|
54
|
+
headers: any;
|
|
55
|
+
}): any;
|
|
56
|
+
delete({ jwtToken, token, taxExceptionId, headers }: {
|
|
57
|
+
jwtToken: any;
|
|
58
|
+
token: any;
|
|
59
|
+
taxExceptionId: any;
|
|
60
|
+
headers: any;
|
|
61
|
+
}): any;
|
|
62
|
+
};
|
|
30
63
|
};
|
|
@@ -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;
|
|
@@ -340,6 +340,39 @@ declare const _exports: {
|
|
|
340
340
|
tax: any;
|
|
341
341
|
headers: any;
|
|
342
342
|
}) => any;
|
|
343
|
+
exceptions: {
|
|
344
|
+
create({ jwtToken, token, taxException, headers }: {
|
|
345
|
+
jwtToken: any;
|
|
346
|
+
token: any;
|
|
347
|
+
taxException: any;
|
|
348
|
+
headers: any;
|
|
349
|
+
}): any;
|
|
350
|
+
update({ jwtToken, token, taxExceptionId, taxException, headers }: {
|
|
351
|
+
jwtToken: any;
|
|
352
|
+
token: any;
|
|
353
|
+
taxExceptionId: any;
|
|
354
|
+
taxException: any;
|
|
355
|
+
headers: any;
|
|
356
|
+
}): any;
|
|
357
|
+
get({ jwtToken, token, taxExceptionId, headers }: {
|
|
358
|
+
jwtToken: any;
|
|
359
|
+
token: any;
|
|
360
|
+
taxExceptionId: any;
|
|
361
|
+
headers: any;
|
|
362
|
+
}): any;
|
|
363
|
+
all({ jwtToken, token, query, headers }: {
|
|
364
|
+
jwtToken: any;
|
|
365
|
+
token: any;
|
|
366
|
+
query?: {};
|
|
367
|
+
headers: any;
|
|
368
|
+
}): any;
|
|
369
|
+
delete({ jwtToken, token, taxExceptionId, headers }: {
|
|
370
|
+
jwtToken: any;
|
|
371
|
+
token: any;
|
|
372
|
+
taxExceptionId: any;
|
|
373
|
+
headers: any;
|
|
374
|
+
}): any;
|
|
375
|
+
};
|
|
343
376
|
};
|
|
344
377
|
seatmaps: {
|
|
345
378
|
all: ({ token, query, headers }: {
|
|
@@ -2792,6 +2825,12 @@ declare const _exports: {
|
|
|
2792
2825
|
manifestId: any;
|
|
2793
2826
|
data: any;
|
|
2794
2827
|
}) => any;
|
|
2828
|
+
createDispatchReporting: ({ token, jwtToken, headers, data }: {
|
|
2829
|
+
token: any;
|
|
2830
|
+
jwtToken: any;
|
|
2831
|
+
headers: any;
|
|
2832
|
+
data: any;
|
|
2833
|
+
}) => any;
|
|
2795
2834
|
checkIn: {
|
|
2796
2835
|
create({ token, jwtToken, query, headers, data, manifestId, legFromId }: {
|
|
2797
2836
|
token: any;
|