@teemill/pickfaces 0.36.2 → 0.36.5

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.
@@ -1 +1 @@
1
- 7.21.0
1
+ 7.23.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/pickfaces@0.36.2
1
+ ## @teemill/pickfaces@0.36.5
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/pickfaces@0.36.2 --save
39
+ npm install @teemill/pickfaces@0.36.5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -425,6 +425,14 @@ export interface UpdatePickfacesRequestPickfacesInner {
425
425
  * Whether the pickface is used for bulk storage
426
426
  */
427
427
  'bulk'?: boolean;
428
+ /**
429
+ * Unique object identifier
430
+ */
431
+ 'containerTypeId'?: string;
432
+ /**
433
+ * Unique object identifier
434
+ */
435
+ 'zoneId'?: string | null;
428
436
  /**
429
437
  * The distance from the nearest label printer to the pickface in centimeters. This is used for put away recommendations.
430
438
  */
@@ -477,7 +485,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
477
485
  // verify required parameter 'pickfaceId' is not null or undefined
478
486
  assertParamExists('checkedStock', 'pickfaceId', pickfaceId)
479
487
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/checked`
480
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
488
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
481
489
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
490
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
483
491
  let baseOptions;
@@ -574,7 +582,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
574
582
  // verify required parameter 'pickfaceId' is not null or undefined
575
583
  assertParamExists('deletePickface', 'pickfaceId', pickfaceId)
576
584
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
577
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
585
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
578
586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
579
587
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
580
588
  let baseOptions;
@@ -676,7 +684,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
676
684
  // verify required parameter 'pickfaceId' is not null or undefined
677
685
  assertParamExists('getPickface', 'pickfaceId', pickfaceId)
678
686
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
679
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
687
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
680
688
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
681
689
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
682
690
  let baseOptions;
@@ -727,7 +735,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
727
735
  // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
728
736
  assertParamExists('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest)
729
737
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
730
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
738
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
731
739
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
732
740
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
733
741
  let baseOptions;
@@ -780,7 +788,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
780
788
  // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
781
789
  assertParamExists('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest)
782
790
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
783
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
791
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
784
792
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
785
793
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
786
794
  let baseOptions;
@@ -876,7 +884,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
876
884
  // verify required parameter 'pickfaceId' is not null or undefined
877
885
  assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId)
878
886
  const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
879
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
887
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
880
888
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
881
889
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
882
890
  let baseOptions;
@@ -1013,7 +1021,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1013
1021
  // verify required parameter 'moveStockRequest' is not null or undefined
1014
1022
  assertParamExists('moveStock', 'moveStockRequest', moveStockRequest)
1015
1023
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
1016
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1024
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
1017
1025
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1018
1026
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1019
1027
  let baseOptions;
@@ -1066,7 +1074,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1066
1074
  // verify required parameter 'deviceRef' is not null or undefined
1067
1075
  assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef)
1068
1076
  const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
1069
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1077
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
1070
1078
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1071
1079
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1072
1080
  let baseOptions;
@@ -1174,7 +1182,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1174
1182
  // verify required parameter 'pickfaceId' is not null or undefined
1175
1183
  assertParamExists('resolvePickfaceIssue', 'pickfaceId', pickfaceId)
1176
1184
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
1177
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1185
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
1178
1186
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1179
1187
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1180
1188
  let baseOptions;
@@ -1301,7 +1309,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1301
1309
  // verify required parameter 'pickfaceId' is not null or undefined
1302
1310
  assertParamExists('updatePickface', 'pickfaceId', pickfaceId)
1303
1311
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
1304
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1312
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
1305
1313
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1306
1314
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1307
1315
  let baseOptions;
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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 = decodeURIComponent(searchParams.toString());
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
  * Pickfaces
4
4
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
5
5
  *
6
- * The version of the OpenAPI document: 0.36.2
6
+ * The version of the OpenAPI document: 0.36.5
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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
119
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
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
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -408,6 +408,14 @@ export interface UpdatePickfacesRequestPickfacesInner {
408
408
  * Whether the pickface is used for bulk storage
409
409
  */
410
410
  'bulk'?: boolean;
411
+ /**
412
+ * Unique object identifier
413
+ */
414
+ 'containerTypeId'?: string;
415
+ /**
416
+ * Unique object identifier
417
+ */
418
+ 'zoneId'?: string | null;
411
419
  /**
412
420
  * The distance from the nearest label printer to the pickface in centimeters. This is used for put away recommendations.
413
421
  */
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickfaces
6
6
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
7
7
  *
8
- * The version of the OpenAPI document: 0.36.2
8
+ * The version of the OpenAPI document: 0.36.5
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -63,7 +63,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
63
63
  // verify required parameter 'pickfaceId' is not null or undefined
64
64
  (0, common_1.assertParamExists)('checkedStock', 'pickfaceId', pickfaceId);
65
65
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/checked`
66
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
66
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
67
67
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
68
68
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
69
69
  let baseOptions;
@@ -146,7 +146,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
146
146
  // verify required parameter 'pickfaceId' is not null or undefined
147
147
  (0, common_1.assertParamExists)('deletePickface', 'pickfaceId', pickfaceId);
148
148
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
149
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
149
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
150
150
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
151
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
152
152
  let baseOptions;
@@ -232,7 +232,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
232
232
  // verify required parameter 'pickfaceId' is not null or undefined
233
233
  (0, common_1.assertParamExists)('getPickface', 'pickfaceId', pickfaceId);
234
234
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
235
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
235
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
236
236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
237
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
238
238
  let baseOptions;
@@ -276,7 +276,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
276
276
  // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
277
277
  (0, common_1.assertParamExists)('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest);
278
278
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
279
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
279
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
280
280
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
281
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
282
  let baseOptions;
@@ -322,7 +322,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
322
322
  // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
323
323
  (0, common_1.assertParamExists)('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest);
324
324
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
325
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
325
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
326
326
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
327
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
328
328
  let baseOptions;
@@ -404,7 +404,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
404
404
  // verify required parameter 'pickfaceId' is not null or undefined
405
405
  (0, common_1.assertParamExists)('listPickfaceLogs', 'pickfaceId', pickfaceId);
406
406
  const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
407
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
407
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
408
408
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
409
409
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
410
410
  let baseOptions;
@@ -519,7 +519,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
519
519
  // verify required parameter 'moveStockRequest' is not null or undefined
520
520
  (0, common_1.assertParamExists)('moveStock', 'moveStockRequest', moveStockRequest);
521
521
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
522
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
522
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
523
523
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
524
524
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
525
525
  let baseOptions;
@@ -565,7 +565,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
565
565
  // verify required parameter 'deviceRef' is not null or undefined
566
566
  (0, common_1.assertParamExists)('printPickfaceLabel', 'deviceRef', deviceRef);
567
567
  const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
568
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
568
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
569
569
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
570
570
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
571
571
  let baseOptions;
@@ -656,7 +656,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
656
656
  // verify required parameter 'pickfaceId' is not null or undefined
657
657
  (0, common_1.assertParamExists)('resolvePickfaceIssue', 'pickfaceId', pickfaceId);
658
658
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
659
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
659
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
660
660
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
661
661
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
662
662
  let baseOptions;
@@ -763,7 +763,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
763
763
  // verify required parameter 'pickfaceId' is not null or undefined
764
764
  (0, common_1.assertParamExists)('updatePickface', 'pickfaceId', pickfaceId);
765
765
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
766
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
766
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
767
767
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
768
768
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
769
769
  let baseOptions;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
6
6
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
7
7
  *
8
- * The version of the OpenAPI document: 0.36.2
8
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
6
6
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
7
7
  *
8
- * The version of the OpenAPI document: 0.36.2
8
+ * The version of the OpenAPI document: 0.36.5
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 = decodeURIComponent(searchParams.toString());
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;
@@ -2,7 +2,7 @@
2
2
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
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
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -408,6 +408,14 @@ export interface UpdatePickfacesRequestPickfacesInner {
408
408
  * Whether the pickface is used for bulk storage
409
409
  */
410
410
  'bulk'?: boolean;
411
+ /**
412
+ * Unique object identifier
413
+ */
414
+ 'containerTypeId'?: string;
415
+ /**
416
+ * Unique object identifier
417
+ */
418
+ 'zoneId'?: string | null;
411
419
  /**
412
420
  * The distance from the nearest label printer to the pickface in centimeters. This is used for put away recommendations.
413
421
  */
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,7 +60,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
60
60
  // verify required parameter 'pickfaceId' is not null or undefined
61
61
  assertParamExists('checkedStock', 'pickfaceId', pickfaceId);
62
62
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/checked`
63
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
63
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
64
64
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
65
65
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66
66
  let baseOptions;
@@ -143,7 +143,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
143
143
  // verify required parameter 'pickfaceId' is not null or undefined
144
144
  assertParamExists('deletePickface', 'pickfaceId', pickfaceId);
145
145
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
146
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
146
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
147
147
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
148
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
149
  let baseOptions;
@@ -229,7 +229,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
229
229
  // verify required parameter 'pickfaceId' is not null or undefined
230
230
  assertParamExists('getPickface', 'pickfaceId', pickfaceId);
231
231
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
232
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
232
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
233
233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
235
  let baseOptions;
@@ -273,7 +273,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
273
273
  // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
274
274
  assertParamExists('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest);
275
275
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
276
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
276
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
277
277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
278
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
279
  let baseOptions;
@@ -319,7 +319,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
319
319
  // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
320
320
  assertParamExists('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest);
321
321
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
322
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
322
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
323
323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
324
324
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
325
325
  let baseOptions;
@@ -401,7 +401,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
401
401
  // verify required parameter 'pickfaceId' is not null or undefined
402
402
  assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId);
403
403
  const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
404
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
404
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
405
405
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
406
406
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
407
407
  let baseOptions;
@@ -516,7 +516,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
516
516
  // verify required parameter 'moveStockRequest' is not null or undefined
517
517
  assertParamExists('moveStock', 'moveStockRequest', moveStockRequest);
518
518
  const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
519
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
519
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
520
520
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
521
521
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
522
522
  let baseOptions;
@@ -562,7 +562,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
562
562
  // verify required parameter 'deviceRef' is not null or undefined
563
563
  assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef);
564
564
  const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
565
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
565
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
566
566
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
567
567
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
568
568
  let baseOptions;
@@ -653,7 +653,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
653
653
  // verify required parameter 'pickfaceId' is not null or undefined
654
654
  assertParamExists('resolvePickfaceIssue', 'pickfaceId', pickfaceId);
655
655
  const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
656
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
656
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
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;
@@ -760,7 +760,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
760
760
  // verify required parameter 'pickfaceId' is not null or undefined
761
761
  assertParamExists('updatePickface', 'pickfaceId', pickfaceId);
762
762
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
763
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
763
+ .replace('{pickfaceId}', encodeURIComponent(String(pickfaceId)));
764
764
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
765
765
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
766
766
  let baseOptions;
@@ -2,7 +2,7 @@
2
2
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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 = decodeURIComponent(searchParams.toString());
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
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
4
4
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
5
5
  *
6
- * The version of the OpenAPI document: 0.36.2
6
+ * The version of the OpenAPI document: 0.36.5
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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
38
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
37
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
38
+ return mime !== null && jsonMime.test(mime);
39
39
  }
40
40
  }
@@ -2,7 +2,7 @@
2
2
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
3
3
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
4
4
  *
5
- * The version of the OpenAPI document: 0.36.2
5
+ * The version of the OpenAPI document: 0.36.5
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
  * Pickfaces
6
6
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
7
7
  *
8
- * The version of the OpenAPI document: 0.36.2
8
+ * The version of the OpenAPI document: 0.36.5
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
10
10
  **enabled** | **boolean** | Whether the pickface is enabled | [optional] [default to undefined]
11
11
  **mixedContents** | **boolean** | Whether the pickface can contain mixed contents. | [optional] [default to undefined]
12
12
  **bulk** | **boolean** | Whether the pickface is used for bulk storage | [optional] [default to undefined]
13
+ **containerTypeId** | **string** | Unique object identifier | [optional] [default to undefined]
14
+ **zoneId** | **string** | Unique object identifier | [optional] [default to undefined]
13
15
  **distanceFromLabelPrinter** | **number** | The distance from the nearest label printer to the pickface in centimeters. This is used for put away recommendations. | [optional] [default to undefined]
14
16
 
15
17
  ## Example
@@ -23,6 +25,8 @@ const instance: UpdatePickfacesRequestPickfacesInner = {
23
25
  enabled,
24
26
  mixedContents,
25
27
  bulk,
28
+ containerTypeId,
29
+ zoneId,
26
30
  distanceFromLabelPrinter,
27
31
  };
28
32
  ```
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces
5
5
  * Use this API to access your pickfaces. You must have the warehouse module installed to access this API.
6
6
  *
7
- * The version of the OpenAPI document: 0.36.2
7
+ * The version of the OpenAPI document: 0.36.5
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/pickfaces",
3
- "version": "0.36.2",
3
+ "version": "0.36.5",
4
4
  "description": "OpenAPI client for @teemill/pickfaces",
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.15.0"
27
+ "axios": "^1.16.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",