@teemill/warehouse-prefab-applications 0.14.2 → 0.14.6
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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +21 -13
- package/base.ts +1 -1
- package/common.ts +16 -4
- package/configuration.ts +3 -3
- package/dist/api.d.ts +10 -2
- package/dist/api.js +12 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -1
- package/dist/common.js +16 -5
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +10 -2
- package/dist/esm/api.js +12 -12
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +6 -1
- package/dist/esm/common.js +14 -4
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Batch.md +5 -1
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.23.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/warehouse-prefab-applications@0.14.
|
|
1
|
+
## @teemill/warehouse-prefab-applications@0.14.6
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/warehouse-prefab-applications@0.14.
|
|
39
|
+
npm install @teemill/warehouse-prefab-applications@0.14.6 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -55,7 +55,15 @@ export interface Batch {
|
|
|
55
55
|
/**
|
|
56
56
|
* Number of applications in a tray
|
|
57
57
|
*/
|
|
58
|
-
'inTray'
|
|
58
|
+
'inTray': number;
|
|
59
|
+
/**
|
|
60
|
+
* Number of applications with a print file, not yet in a tray
|
|
61
|
+
*/
|
|
62
|
+
'ready': number;
|
|
63
|
+
/**
|
|
64
|
+
* Number of applications scanned out of a tray and not yet done
|
|
65
|
+
*/
|
|
66
|
+
'released': number;
|
|
59
67
|
/**
|
|
60
68
|
* A reference to the resource location
|
|
61
69
|
*/
|
|
@@ -339,7 +347,7 @@ export const BatchesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
339
347
|
// verify required parameter 'batchId' is not null or undefined
|
|
340
348
|
assertParamExists('getBatch', 'batchId', batchId)
|
|
341
349
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}`
|
|
342
|
-
.replace(
|
|
350
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
343
351
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
352
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
345
353
|
let baseOptions;
|
|
@@ -389,7 +397,7 @@ export const BatchesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
389
397
|
// verify required parameter 'batchId' is not null or undefined
|
|
390
398
|
assertParamExists('listBatchPrefabApplications', 'batchId', batchId)
|
|
391
399
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/prefab-applications`
|
|
392
|
-
.replace(
|
|
400
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
393
401
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
394
402
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
395
403
|
let baseOptions;
|
|
@@ -507,7 +515,7 @@ export const BatchesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
507
515
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
508
516
|
assertParamExists('printBatch', 'deviceRef', deviceRef)
|
|
509
517
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/print`
|
|
510
|
-
.replace(
|
|
518
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
511
519
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
512
520
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
513
521
|
let baseOptions;
|
|
@@ -872,7 +880,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration?:
|
|
|
872
880
|
// verify required parameter 'prefabApplicationId' is not null or undefined
|
|
873
881
|
assertParamExists('getPrefabApplication', 'prefabApplicationId', prefabApplicationId)
|
|
874
882
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
875
|
-
.replace(
|
|
883
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
876
884
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
885
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
886
|
let baseOptions;
|
|
@@ -987,7 +995,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration?:
|
|
|
987
995
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
988
996
|
assertParamExists('printPrefabApplication', 'deviceRef', deviceRef)
|
|
989
997
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}/print`
|
|
990
|
-
.replace(
|
|
998
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
991
999
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
992
1000
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
993
1001
|
let baseOptions;
|
|
@@ -1043,7 +1051,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration?:
|
|
|
1043
1051
|
// verify required parameter 'updatePrefabApplicationRequest' is not null or undefined
|
|
1044
1052
|
assertParamExists('updatePrefabApplication', 'updatePrefabApplicationRequest', updatePrefabApplicationRequest)
|
|
1045
1053
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
1046
|
-
.replace(
|
|
1054
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
1047
1055
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1048
1056
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1049
1057
|
let baseOptions;
|
|
@@ -1414,7 +1422,7 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1414
1422
|
// verify required parameter 'trayId' is not null or undefined
|
|
1415
1423
|
assertParamExists('deleteTray', 'trayId', trayId)
|
|
1416
1424
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
1417
|
-
.replace(
|
|
1425
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1418
1426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1419
1427
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1420
1428
|
let baseOptions;
|
|
@@ -1462,7 +1470,7 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1462
1470
|
// verify required parameter 'trayId' is not null or undefined
|
|
1463
1471
|
assertParamExists('getTray', 'trayId', trayId)
|
|
1464
1472
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
1465
|
-
.replace(
|
|
1473
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1466
1474
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1467
1475
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1468
1476
|
let baseOptions;
|
|
@@ -1512,7 +1520,7 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1512
1520
|
// verify required parameter 'trayId' is not null or undefined
|
|
1513
1521
|
assertParamExists('listTrayPrefabApplications', 'trayId', trayId)
|
|
1514
1522
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/prefab-applications`
|
|
1515
|
-
.replace(
|
|
1523
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1516
1524
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1517
1525
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1518
1526
|
let baseOptions;
|
|
@@ -1630,7 +1638,7 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1630
1638
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
1631
1639
|
assertParamExists('printTrayLabel', 'deviceRef', deviceRef)
|
|
1632
1640
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/print`
|
|
1633
|
-
.replace(
|
|
1641
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1634
1642
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1635
1643
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1636
1644
|
let baseOptions;
|
|
@@ -1810,7 +1818,7 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1810
1818
|
// verify required parameter 'updateTrayRequest' is not null or undefined
|
|
1811
1819
|
assertParamExists('updateTray', 'updateTrayRequest', updateTrayRequest)
|
|
1812
1820
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
1813
|
-
.replace(
|
|
1821
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1814
1822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1815
1823
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1816
1824
|
let baseOptions;
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -86,7 +86,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
86
86
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
87
87
|
if (parameter == null) return;
|
|
88
88
|
if (typeof parameter === "object") {
|
|
89
|
-
if (Array.isArray(parameter)) {
|
|
89
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
90
90
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
@@ -112,7 +112,19 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
112
112
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
113
113
|
const searchParams = new URLSearchParams(url.search);
|
|
114
114
|
setFlattenedQueryParams(searchParams, objects);
|
|
115
|
-
url.search =
|
|
115
|
+
url.search = searchParams.toString();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key: string, value: unknown) {
|
|
123
|
+
if (value instanceof Set) {
|
|
124
|
+
return Array.from(value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return value;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
/**
|
|
@@ -125,7 +137,7 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
|
|
|
125
137
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
126
138
|
: nonString;
|
|
127
139
|
return needsSerialization
|
|
128
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
140
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
129
141
|
: (value || "");
|
|
130
142
|
}
|
|
131
143
|
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Warehouse Prefab Applications
|
|
4
4
|
* Manage PodOS Warehouse Prefab Applications
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 0.14.
|
|
6
|
+
* The version of the OpenAPI document: 0.14.6
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -115,7 +115,7 @@ export class Configuration {
|
|
|
115
115
|
* @return True if the given MIME is JSON, false otherwise.
|
|
116
116
|
*/
|
|
117
117
|
public isJsonMime(mime: string): boolean {
|
|
118
|
-
const jsonMime: RegExp =
|
|
119
|
-
return mime !== null &&
|
|
118
|
+
const jsonMime: RegExp = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
119
|
+
return mime !== null && jsonMime.test(mime);
|
|
120
120
|
}
|
|
121
121
|
}
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,15 @@ export interface Batch {
|
|
|
45
45
|
/**
|
|
46
46
|
* Number of applications in a tray
|
|
47
47
|
*/
|
|
48
|
-
'inTray'
|
|
48
|
+
'inTray': number;
|
|
49
|
+
/**
|
|
50
|
+
* Number of applications with a print file, not yet in a tray
|
|
51
|
+
*/
|
|
52
|
+
'ready': number;
|
|
53
|
+
/**
|
|
54
|
+
* Number of applications scanned out of a tray and not yet done
|
|
55
|
+
*/
|
|
56
|
+
'released': number;
|
|
49
57
|
/**
|
|
50
58
|
* A reference to the resource location
|
|
51
59
|
*/
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Warehouse Prefab Applications
|
|
6
6
|
* Manage PodOS Warehouse Prefab Applications
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.14.
|
|
8
|
+
* The version of the OpenAPI document: 0.14.6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -107,7 +107,7 @@ const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
// verify required parameter 'batchId' is not null or undefined
|
|
108
108
|
(0, common_1.assertParamExists)('getBatch', 'batchId', batchId);
|
|
109
109
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}`
|
|
110
|
-
.replace(
|
|
110
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
111
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
112
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
113
|
let baseOptions;
|
|
@@ -150,7 +150,7 @@ const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
// verify required parameter 'batchId' is not null or undefined
|
|
151
151
|
(0, common_1.assertParamExists)('listBatchPrefabApplications', 'batchId', batchId);
|
|
152
152
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/prefab-applications`
|
|
153
|
-
.replace(
|
|
153
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
154
154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
155
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
156
156
|
let baseOptions;
|
|
@@ -249,7 +249,7 @@ const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
249
249
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
250
250
|
(0, common_1.assertParamExists)('printBatch', 'deviceRef', deviceRef);
|
|
251
251
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/print`
|
|
252
|
-
.replace(
|
|
252
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
253
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
254
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
255
|
let baseOptions;
|
|
@@ -515,7 +515,7 @@ const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
515
515
|
// verify required parameter 'prefabApplicationId' is not null or undefined
|
|
516
516
|
(0, common_1.assertParamExists)('getPrefabApplication', 'prefabApplicationId', prefabApplicationId);
|
|
517
517
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
518
|
-
.replace(
|
|
518
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
519
519
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
520
520
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
521
521
|
let baseOptions;
|
|
@@ -612,7 +612,7 @@ const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
612
612
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
613
613
|
(0, common_1.assertParamExists)('printPrefabApplication', 'deviceRef', deviceRef);
|
|
614
614
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}/print`
|
|
615
|
-
.replace(
|
|
615
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
616
616
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
617
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
618
618
|
let baseOptions;
|
|
@@ -660,7 +660,7 @@ const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
660
660
|
// verify required parameter 'updatePrefabApplicationRequest' is not null or undefined
|
|
661
661
|
(0, common_1.assertParamExists)('updatePrefabApplication', 'updatePrefabApplicationRequest', updatePrefabApplicationRequest);
|
|
662
662
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
663
|
-
.replace(
|
|
663
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
664
664
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
665
665
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
666
666
|
let baseOptions;
|
|
@@ -934,7 +934,7 @@ const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
934
934
|
// verify required parameter 'trayId' is not null or undefined
|
|
935
935
|
(0, common_1.assertParamExists)('deleteTray', 'trayId', trayId);
|
|
936
936
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
937
|
-
.replace(
|
|
937
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
938
938
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
939
939
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
940
940
|
let baseOptions;
|
|
@@ -975,7 +975,7 @@ const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
975
975
|
// verify required parameter 'trayId' is not null or undefined
|
|
976
976
|
(0, common_1.assertParamExists)('getTray', 'trayId', trayId);
|
|
977
977
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
978
|
-
.replace(
|
|
978
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
979
979
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
980
980
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
981
981
|
let baseOptions;
|
|
@@ -1018,7 +1018,7 @@ const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1018
1018
|
// verify required parameter 'trayId' is not null or undefined
|
|
1019
1019
|
(0, common_1.assertParamExists)('listTrayPrefabApplications', 'trayId', trayId);
|
|
1020
1020
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/prefab-applications`
|
|
1021
|
-
.replace(
|
|
1021
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1022
1022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1023
1023
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1024
1024
|
let baseOptions;
|
|
@@ -1117,7 +1117,7 @@ const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1117
1117
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
1118
1118
|
(0, common_1.assertParamExists)('printTrayLabel', 'deviceRef', deviceRef);
|
|
1119
1119
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/print`
|
|
1120
|
-
.replace(
|
|
1120
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1121
1121
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1122
1122
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1123
1123
|
let baseOptions;
|
|
@@ -1268,7 +1268,7 @@ const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1268
1268
|
// verify required parameter 'updateTrayRequest' is not null or undefined
|
|
1269
1269
|
(0, common_1.assertParamExists)('updateTray', 'updateTrayRequest', updateTrayRequest);
|
|
1270
1270
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
1271
|
-
.replace(
|
|
1271
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1272
1272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1273
1273
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1274
1274
|
let baseOptions;
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Warehouse Prefab Applications
|
|
6
6
|
* Manage PodOS Warehouse Prefab Applications
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.14.
|
|
8
|
+
* The version of the OpenAPI document: 0.14.6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Warehouse Prefab Applications
|
|
6
6
|
* Manage PodOS Warehouse Prefab Applications
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.14.
|
|
8
|
+
* The version of the OpenAPI document: 0.14.6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
25
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
26
|
const base_1 = require("./base");
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
@@ -99,7 +99,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
99
99
|
if (parameter == null)
|
|
100
100
|
return;
|
|
101
101
|
if (typeof parameter === "object") {
|
|
102
|
-
if (Array.isArray(parameter)) {
|
|
102
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
103
103
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
@@ -122,9 +122,20 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
122
122
|
const setSearchParams = function (url, ...objects) {
|
|
123
123
|
const searchParams = new URLSearchParams(url.search);
|
|
124
124
|
setFlattenedQueryParams(searchParams, objects);
|
|
125
|
-
url.search =
|
|
125
|
+
url.search = searchParams.toString();
|
|
126
126
|
};
|
|
127
127
|
exports.setSearchParams = setSearchParams;
|
|
128
|
+
/**
|
|
129
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
133
|
+
if (value instanceof Set) {
|
|
134
|
+
return Array.from(value);
|
|
135
|
+
}
|
|
136
|
+
return value;
|
|
137
|
+
};
|
|
138
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
128
139
|
/**
|
|
129
140
|
*
|
|
130
141
|
* @export
|
|
@@ -135,7 +146,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
135
146
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
147
|
: nonString;
|
|
137
148
|
return needsSerialization
|
|
138
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
149
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
139
150
|
: (value || "");
|
|
140
151
|
};
|
|
141
152
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ class Configuration {
|
|
|
37
37
|
* @return True if the given MIME is JSON, false otherwise.
|
|
38
38
|
*/
|
|
39
39
|
isJsonMime(mime) {
|
|
40
|
-
const jsonMime =
|
|
41
|
-
return mime !== null &&
|
|
40
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
41
|
+
return mime !== null && jsonMime.test(mime);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.Configuration = Configuration;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,15 @@ export interface Batch {
|
|
|
45
45
|
/**
|
|
46
46
|
* Number of applications in a tray
|
|
47
47
|
*/
|
|
48
|
-
'inTray'
|
|
48
|
+
'inTray': number;
|
|
49
|
+
/**
|
|
50
|
+
* Number of applications with a print file, not yet in a tray
|
|
51
|
+
*/
|
|
52
|
+
'ready': number;
|
|
53
|
+
/**
|
|
54
|
+
* Number of applications scanned out of a tray and not yet done
|
|
55
|
+
*/
|
|
56
|
+
'released': number;
|
|
49
57
|
/**
|
|
50
58
|
* A reference to the resource location
|
|
51
59
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -104,7 +104,7 @@ export const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
// verify required parameter 'batchId' is not null or undefined
|
|
105
105
|
assertParamExists('getBatch', 'batchId', batchId);
|
|
106
106
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}`
|
|
107
|
-
.replace(
|
|
107
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
108
108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
109
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
110
|
let baseOptions;
|
|
@@ -147,7 +147,7 @@ export const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
147
147
|
// verify required parameter 'batchId' is not null or undefined
|
|
148
148
|
assertParamExists('listBatchPrefabApplications', 'batchId', batchId);
|
|
149
149
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/prefab-applications`
|
|
150
|
-
.replace(
|
|
150
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
151
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
153
|
let baseOptions;
|
|
@@ -246,7 +246,7 @@ export const BatchesApiAxiosParamCreator = function (configuration) {
|
|
|
246
246
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
247
247
|
assertParamExists('printBatch', 'deviceRef', deviceRef);
|
|
248
248
|
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/print`
|
|
249
|
-
.replace(
|
|
249
|
+
.replace('{batchId}', encodeURIComponent(String(batchId)));
|
|
250
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
252
252
|
let baseOptions;
|
|
@@ -508,7 +508,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
508
508
|
// verify required parameter 'prefabApplicationId' is not null or undefined
|
|
509
509
|
assertParamExists('getPrefabApplication', 'prefabApplicationId', prefabApplicationId);
|
|
510
510
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
511
|
-
.replace(
|
|
511
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
512
512
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
513
513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
514
514
|
let baseOptions;
|
|
@@ -605,7 +605,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
605
605
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
606
606
|
assertParamExists('printPrefabApplication', 'deviceRef', deviceRef);
|
|
607
607
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}/print`
|
|
608
|
-
.replace(
|
|
608
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
609
609
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
610
610
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
611
611
|
let baseOptions;
|
|
@@ -653,7 +653,7 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
653
653
|
// verify required parameter 'updatePrefabApplicationRequest' is not null or undefined
|
|
654
654
|
assertParamExists('updatePrefabApplication', 'updatePrefabApplicationRequest', updatePrefabApplicationRequest);
|
|
655
655
|
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
656
|
-
.replace(
|
|
656
|
+
.replace('{prefabApplicationId}', encodeURIComponent(String(prefabApplicationId)));
|
|
657
657
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
658
658
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
659
659
|
let baseOptions;
|
|
@@ -923,7 +923,7 @@ export const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
923
923
|
// verify required parameter 'trayId' is not null or undefined
|
|
924
924
|
assertParamExists('deleteTray', 'trayId', trayId);
|
|
925
925
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
926
|
-
.replace(
|
|
926
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
927
927
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
928
928
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
929
929
|
let baseOptions;
|
|
@@ -964,7 +964,7 @@ export const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
964
964
|
// verify required parameter 'trayId' is not null or undefined
|
|
965
965
|
assertParamExists('getTray', 'trayId', trayId);
|
|
966
966
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
967
|
-
.replace(
|
|
967
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
968
968
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
969
969
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
970
970
|
let baseOptions;
|
|
@@ -1007,7 +1007,7 @@ export const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1007
1007
|
// verify required parameter 'trayId' is not null or undefined
|
|
1008
1008
|
assertParamExists('listTrayPrefabApplications', 'trayId', trayId);
|
|
1009
1009
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/prefab-applications`
|
|
1010
|
-
.replace(
|
|
1010
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1011
1011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1012
1012
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1013
1013
|
let baseOptions;
|
|
@@ -1106,7 +1106,7 @@ export const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1106
1106
|
// verify required parameter 'deviceRef' is not null or undefined
|
|
1107
1107
|
assertParamExists('printTrayLabel', 'deviceRef', deviceRef);
|
|
1108
1108
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}/print`
|
|
1109
|
-
.replace(
|
|
1109
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1110
1110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1111
1111
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1112
1112
|
let baseOptions;
|
|
@@ -1257,7 +1257,7 @@ export const TraysApiAxiosParamCreator = function (configuration) {
|
|
|
1257
1257
|
// verify required parameter 'updateTrayRequest' is not null or undefined
|
|
1258
1258
|
assertParamExists('updateTray', 'updateTrayRequest', updateTrayRequest);
|
|
1259
1259
|
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
1260
|
-
.replace(
|
|
1260
|
+
.replace('{trayId}', encodeURIComponent(String(trayId)));
|
|
1261
1261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1262
1262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1263
1263
|
let baseOptions;
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,7 +91,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
91
|
if (parameter == null)
|
|
92
92
|
return;
|
|
93
93
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
94
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
95
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -114,7 +114,17 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
114
114
|
export const setSearchParams = function (url, ...objects) {
|
|
115
115
|
const searchParams = new URLSearchParams(url.search);
|
|
116
116
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
|
-
url.search =
|
|
117
|
+
url.search = searchParams.toString();
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
124
|
+
if (value instanceof Set) {
|
|
125
|
+
return Array.from(value);
|
|
126
|
+
}
|
|
127
|
+
return value;
|
|
118
128
|
};
|
|
119
129
|
/**
|
|
120
130
|
*
|
|
@@ -126,7 +136,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
126
136
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
137
|
: nonString;
|
|
128
138
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
140
|
: (value || "");
|
|
131
141
|
};
|
|
132
142
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Warehouse Prefab Applications
|
|
4
4
|
* Manage PodOS Warehouse Prefab Applications
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 0.14.
|
|
6
|
+
* The version of the OpenAPI document: 0.14.6
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ export class Configuration {
|
|
|
34
34
|
* @return True if the given MIME is JSON, false otherwise.
|
|
35
35
|
*/
|
|
36
36
|
isJsonMime(mime) {
|
|
37
|
-
const jsonMime =
|
|
38
|
-
return mime !== null &&
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Warehouse Prefab Applications
|
|
3
3
|
* Manage PodOS Warehouse Prefab Applications
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.14.
|
|
5
|
+
* The version of the OpenAPI document: 0.14.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Warehouse Prefab Applications
|
|
6
6
|
* Manage PodOS Warehouse Prefab Applications
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.14.
|
|
8
|
+
* The version of the OpenAPI document: 0.14.6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Batch.md
CHANGED
|
@@ -11,7 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**status** | **string** | The status of the batch. Values: - processing: Print files are being generated for the batch. - ready: All print files are ready; the batch can be sent to the printer. - printed: The batch has been sent to the printer; sheets are being cut and organised into trays. - complete: All applications in the batch are processed (warehouse application finished, or order complete/refunded). - failed: The batch or print job failed. | [readonly] [default to undefined]
|
|
12
12
|
**size** | **number** | Number of applications in the batch | [readonly] [default to undefined]
|
|
13
13
|
**processed** | **number** | Number of applications processed | [readonly] [default to undefined]
|
|
14
|
-
**inTray** | **number** | Number of applications in a tray | [
|
|
14
|
+
**inTray** | **number** | Number of applications in a tray | [readonly] [default to undefined]
|
|
15
|
+
**ready** | **number** | Number of applications with a print file, not yet in a tray | [readonly] [default to undefined]
|
|
16
|
+
**released** | **number** | Number of applications scanned out of a tray and not yet done | [readonly] [default to undefined]
|
|
15
17
|
**userRef** | **string** | A reference to the resource location | [default to undefined]
|
|
16
18
|
**deviceRef** | **string** | A reference to the resource location | [default to undefined]
|
|
17
19
|
**technologyRef** | **string** | A reference to the resource location | [default to undefined]
|
|
@@ -30,6 +32,8 @@ const instance: Batch = {
|
|
|
30
32
|
size,
|
|
31
33
|
processed,
|
|
32
34
|
inTray,
|
|
35
|
+
ready,
|
|
36
|
+
released,
|
|
33
37
|
userRef,
|
|
34
38
|
deviceRef,
|
|
35
39
|
technologyRef,
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Warehouse Prefab Applications
|
|
5
5
|
* Manage PodOS Warehouse Prefab Applications
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.14.
|
|
7
|
+
* The version of the OpenAPI document: 0.14.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/warehouse-prefab-applications",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.6",
|
|
4
4
|
"description": "OpenAPI client for @teemill/warehouse-prefab-applications",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"axios": "1.
|
|
27
|
+
"axios": "^1.16.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "12.11.5 - 12.20.42",
|