@teemill/pickfaces 0.34.0 → 0.35.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/pickfaces@0.34.0
1
+ ## @teemill/pickfaces@0.35.1
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.34.0 --save
39
+ npm install @teemill/pickfaces@0.35.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
94
94
  - [UpdatePickfaceRequestContentsInner](docs/UpdatePickfaceRequestContentsInner.md)
95
95
  - [UpdatePickfaceRequestContentsInnerQuantity](docs/UpdatePickfaceRequestContentsInnerQuantity.md)
96
96
  - [UpdatePickfaceRequestContentsInnerQuantityAvailable](docs/UpdatePickfaceRequestContentsInnerQuantityAvailable.md)
97
+ - [UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf](docs/UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf.md)
97
98
  - [UpdatePickfaceRequestContentsInnerQuantityZWip](docs/UpdatePickfaceRequestContentsInnerQuantityZWip.md)
98
99
  - [UpdatePickfacesRequest](docs/UpdatePickfacesRequest.md)
99
100
  - [UpdatePickfacesRequestPickfacesInner](docs/UpdatePickfacesRequestPickfacesInner.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
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.34.0
7
+ * The version of the OpenAPI document: 0.35.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
19
  // Some imports not used depending on template conditions
20
20
  // @ts-ignore
21
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from './common';
22
22
  import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
@@ -342,36 +342,39 @@ export interface UpdatePickfaceRequest {
342
342
  }
343
343
  export interface UpdatePickfaceRequestContentsInner {
344
344
  /**
345
- * The variant to add or subtract from the pickface
345
+ * The variant to update on the pickface
346
346
  */
347
347
  'variantRef': string;
348
348
  'quantity': UpdatePickfaceRequestContentsInnerQuantity;
349
349
  }
350
350
  export interface UpdatePickfaceRequestContentsInnerQuantity {
351
- 'available'?: UpdatePickfaceRequestContentsInnerQuantityAvailable | null;
352
- 'ZWip'?: UpdatePickfaceRequestContentsInnerQuantityZWip | null;
351
+ 'available'?: UpdatePickfaceRequestContentsInnerQuantityAvailable;
352
+ 'ZWip'?: UpdatePickfaceRequestContentsInnerQuantityZWip;
353
353
  }
354
354
  /**
355
- * The amount to add or subtract from the available stock on the pickface
355
+ * @type UpdatePickfaceRequestContentsInnerQuantityAvailable
356
+ * The available stock quantity. Can be an integer to set absolute value, or an object with operation (add/subtract/set) and value. Use the integer value if you want to set the value of multiple variants at once.
356
357
  */
357
- export interface UpdatePickfaceRequestContentsInnerQuantityAvailable {
358
- 'operation'?: UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum;
358
+ export type UpdatePickfaceRequestContentsInnerQuantityAvailable = UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf | number;
359
+
360
+ export interface UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf {
361
+ 'operation': UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum;
359
362
  'value': number;
360
363
  }
361
364
 
362
- export const UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = {
365
+ export const UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = {
363
366
  Add: 'add',
364
367
  Subtract: 'subtract',
365
368
  Set: 'set'
366
369
  } as const;
367
370
 
368
- export type UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum[keyof typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum];
371
+ export type UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum[keyof typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum];
369
372
 
370
373
  /**
371
- * The amount to add or subtract from the Z WIP stock on the pickface.
374
+ * The Z WIP stock quantity.
372
375
  */
373
376
  export interface UpdatePickfaceRequestContentsInnerQuantityZWip {
374
- 'operation'?: UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum;
377
+ 'operation': UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum;
375
378
  'value': number;
376
379
  }
377
380
 
@@ -482,8 +485,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
482
485
  localVarQueryParameter['project'] = project;
483
486
  }
484
487
 
488
+ localVarHeaderParameter['Accept'] = 'application/json';
485
489
 
486
-
487
490
  setSearchParams(localVarUrlObj, localVarQueryParameter);
488
491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
489
492
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -529,9 +532,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
529
532
  localVarQueryParameter['project'] = project;
530
533
  }
531
534
 
532
-
533
-
534
535
  localVarHeaderParameter['Content-Type'] = 'application/json';
536
+ localVarHeaderParameter['Accept'] = 'application/json';
535
537
 
536
538
  setSearchParams(localVarUrlObj, localVarQueryParameter);
537
539
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -580,8 +582,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
580
582
  localVarQueryParameter['project'] = project;
581
583
  }
582
584
 
585
+ localVarHeaderParameter['Accept'] = 'application/json';
583
586
 
584
-
585
587
  setSearchParams(localVarUrlObj, localVarQueryParameter);
586
588
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
587
589
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -629,8 +631,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
629
631
  localVarQueryParameter['search'] = search;
630
632
  }
631
633
 
634
+ localVarHeaderParameter['Accept'] = 'text/csv,application/json';
632
635
 
633
-
634
636
  setSearchParams(localVarUrlObj, localVarQueryParameter);
635
637
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
638
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -677,8 +679,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
677
679
  localVarQueryParameter['project'] = project;
678
680
  }
679
681
 
682
+ localVarHeaderParameter['Accept'] = 'application/json';
680
683
 
681
-
682
684
  setSearchParams(localVarUrlObj, localVarQueryParameter);
683
685
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
686
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -728,9 +730,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
728
730
  localVarQueryParameter['project'] = project;
729
731
  }
730
732
 
731
-
732
-
733
733
  localVarHeaderParameter['Content-Type'] = 'application/json';
734
+ localVarHeaderParameter['Accept'] = 'application/json';
734
735
 
735
736
  setSearchParams(localVarUrlObj, localVarQueryParameter);
736
737
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -782,9 +783,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
782
783
  localVarQueryParameter['project'] = project;
783
784
  }
784
785
 
785
-
786
-
787
786
  localVarHeaderParameter['Content-Type'] = 'application/json';
787
+ localVarHeaderParameter['Accept'] = 'application/json';
788
788
 
789
789
  setSearchParams(localVarUrlObj, localVarQueryParameter);
790
790
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -829,8 +829,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
829
829
  localVarQueryParameter['project'] = project;
830
830
  }
831
831
 
832
+ localVarHeaderParameter['Accept'] = 'application/json';
832
833
 
833
-
834
834
  setSearchParams(localVarUrlObj, localVarQueryParameter);
835
835
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
836
836
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -887,8 +887,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
887
887
  localVarQueryParameter['pageSize'] = pageSize;
888
888
  }
889
889
 
890
+ localVarHeaderParameter['Accept'] = 'application/json';
890
891
 
891
-
892
892
  setSearchParams(localVarUrlObj, localVarQueryParameter);
893
893
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
894
894
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -965,8 +965,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
965
965
  updatedEnd;
966
966
  }
967
967
 
968
+ localVarHeaderParameter['Accept'] = 'application/json';
968
969
 
969
-
970
970
  setSearchParams(localVarUrlObj, localVarQueryParameter);
971
971
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
972
972
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1016,9 +1016,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1016
1016
  localVarQueryParameter['project'] = project;
1017
1017
  }
1018
1018
 
1019
-
1020
-
1021
1019
  localVarHeaderParameter['Content-Type'] = 'application/json';
1020
+ localVarHeaderParameter['Accept'] = 'application/json';
1022
1021
 
1023
1022
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1024
1023
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1074,8 +1073,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1074
1073
  localVarQueryParameter['deviceRef'] = deviceRef;
1075
1074
  }
1076
1075
 
1076
+ localVarHeaderParameter['Accept'] = 'application/json';
1077
1077
 
1078
-
1079
1078
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1080
1079
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1081
1080
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1090,12 +1089,11 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1090
1089
  * @summary Print pickface Labels
1091
1090
  * @param {string} project The project ID
1092
1091
  * @param {string} deviceRef Unique identifier of a warehouse device
1093
- * @param {string} [search] Search term to filter based on pickface code
1094
1092
  * @param {Array<string> | null} [ids] List of pickface ids
1095
1093
  * @param {*} [options] Override http request option.
1096
1094
  * @throws {RequiredError}
1097
1095
  */
1098
- printPickfaceLabels: async (project: string, deviceRef: string, search?: string, ids?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1096
+ printPickfaceLabels: async (project: string, deviceRef: string, ids?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1099
1097
  // verify required parameter 'project' is not null or undefined
1100
1098
  assertParamExists('printPickfaceLabels', 'project', project)
1101
1099
  // verify required parameter 'deviceRef' is not null or undefined
@@ -1123,10 +1121,6 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1123
1121
  localVarQueryParameter['project'] = project;
1124
1122
  }
1125
1123
 
1126
- if (search !== undefined) {
1127
- localVarQueryParameter['search'] = search;
1128
- }
1129
-
1130
1124
  if (deviceRef !== undefined) {
1131
1125
  localVarQueryParameter['deviceRef'] = deviceRef;
1132
1126
  }
@@ -1135,8 +1129,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1135
1129
  localVarQueryParameter['ids'] = ids;
1136
1130
  }
1137
1131
 
1132
+ localVarHeaderParameter['Accept'] = 'application/json';
1138
1133
 
1139
-
1140
1134
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1141
1135
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1142
1136
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1183,8 +1177,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1183
1177
  localVarQueryParameter['project'] = project;
1184
1178
  }
1185
1179
 
1180
+ localVarHeaderParameter['Accept'] = 'application/json';
1186
1181
 
1187
-
1188
1182
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1189
1183
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1190
1184
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1261,8 +1255,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1261
1255
  localVarQueryParameter['bulk'] = bulk;
1262
1256
  }
1263
1257
 
1258
+ localVarHeaderParameter['Accept'] = 'application/json';
1264
1259
 
1265
-
1266
1260
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1267
1261
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1268
1262
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1277,17 +1271,15 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1277
1271
  * @summary Update Pickface
1278
1272
  * @param {string} project The project ID
1279
1273
  * @param {string} pickfaceId Unique identifier of a pickface
1280
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1274
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1281
1275
  * @param {*} [options] Override http request option.
1282
1276
  * @throws {RequiredError}
1283
1277
  */
1284
- updatePickface: async (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1278
+ updatePickface: async (project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1285
1279
  // verify required parameter 'project' is not null or undefined
1286
1280
  assertParamExists('updatePickface', 'project', project)
1287
1281
  // verify required parameter 'pickfaceId' is not null or undefined
1288
1282
  assertParamExists('updatePickface', 'pickfaceId', pickfaceId)
1289
- // verify required parameter 'updatePickfaceRequest' is not null or undefined
1290
- assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest)
1291
1283
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
1292
1284
  .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1293
1285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1312,9 +1304,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1312
1304
  localVarQueryParameter['project'] = project;
1313
1305
  }
1314
1306
 
1315
-
1316
-
1317
1307
  localVarHeaderParameter['Content-Type'] = 'application/json';
1308
+ localVarHeaderParameter['Accept'] = 'application/json';
1318
1309
 
1319
1310
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1320
1311
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1362,9 +1353,8 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1362
1353
  localVarQueryParameter['project'] = project;
1363
1354
  }
1364
1355
 
1365
-
1366
-
1367
1356
  localVarHeaderParameter['Content-Type'] = 'application/json';
1357
+ localVarHeaderParameter['Accept'] = 'application/json';
1368
1358
 
1369
1359
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1370
1360
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1568,13 +1558,12 @@ export const PickfacesApiFp = function(configuration?: Configuration) {
1568
1558
  * @summary Print pickface Labels
1569
1559
  * @param {string} project The project ID
1570
1560
  * @param {string} deviceRef Unique identifier of a warehouse device
1571
- * @param {string} [search] Search term to filter based on pickface code
1572
1561
  * @param {Array<string> | null} [ids] List of pickface ids
1573
1562
  * @param {*} [options] Override http request option.
1574
1563
  * @throws {RequiredError}
1575
1564
  */
1576
- async printPickfaceLabels(project: string, deviceRef: string, search?: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1577
- const localVarAxiosArgs = await localVarAxiosParamCreator.printPickfaceLabels(project, deviceRef, search, ids, options);
1565
+ async printPickfaceLabels(project: string, deviceRef: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.printPickfaceLabels(project, deviceRef, ids, options);
1578
1567
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1579
1568
  const localVarOperationServerBasePath = operationServerMap['PickfacesApi.printPickfaceLabels']?.[localVarOperationServerIndex]?.url;
1580
1569
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1617,11 +1606,11 @@ export const PickfacesApiFp = function(configuration?: Configuration) {
1617
1606
  * @summary Update Pickface
1618
1607
  * @param {string} project The project ID
1619
1608
  * @param {string} pickfaceId Unique identifier of a pickface
1620
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1609
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1621
1610
  * @param {*} [options] Override http request option.
1622
1611
  * @throws {RequiredError}
1623
1612
  */
1624
- async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
1613
+ async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
1625
1614
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
1626
1615
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1627
1616
  const localVarOperationServerBasePath = operationServerMap['PickfacesApi.updatePickface']?.[localVarOperationServerIndex]?.url;
@@ -1778,7 +1767,7 @@ export const PickfacesApiFactory = function (configuration?: Configuration, base
1778
1767
  * @throws {RequiredError}
1779
1768
  */
1780
1769
  printPickfaceLabels(requestParameters: PickfacesApiPrintPickfaceLabelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1781
- return localVarFp.printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.search, requestParameters.ids, options).then((request) => request(axios, basePath));
1770
+ return localVarFp.printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.ids, options).then((request) => request(axios, basePath));
1782
1771
  },
1783
1772
  /**
1784
1773
  * Resolves an issue on a pickface
@@ -2067,11 +2056,6 @@ export interface PickfacesApiPrintPickfaceLabelsRequest {
2067
2056
  */
2068
2057
  readonly deviceRef: string
2069
2058
 
2070
- /**
2071
- * Search term to filter based on pickface code
2072
- */
2073
- readonly search?: string
2074
-
2075
2059
  /**
2076
2060
  * List of pickface ids
2077
2061
  */
@@ -2147,10 +2131,7 @@ export interface PickfacesApiUpdatePickfaceRequest {
2147
2131
  */
2148
2132
  readonly pickfaceId: string
2149
2133
 
2150
- /**
2151
- * Update pickface schema
2152
- */
2153
- readonly updatePickfaceRequest: UpdatePickfaceRequest
2134
+ readonly updatePickfaceRequest?: UpdatePickfaceRequest
2154
2135
  }
2155
2136
 
2156
2137
  /**
@@ -2312,7 +2293,7 @@ export class PickfacesApi extends BaseAPI {
2312
2293
  * @throws {RequiredError}
2313
2294
  */
2314
2295
  public printPickfaceLabels(requestParameters: PickfacesApiPrintPickfaceLabelsRequest, options?: RawAxiosRequestConfig) {
2315
- return PickfacesApiFp(this.configuration).printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.search, requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
2296
+ return PickfacesApiFp(this.configuration).printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
2316
2297
  }
2317
2298
 
2318
2299
  /**
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
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.34.0
7
+ * The version of the OpenAPI document: 0.35.1
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 API
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.34.0
7
+ * The version of the OpenAPI document: 0.35.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Pickfaces API
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.34.0
6
+ * The version of the OpenAPI document: 0.35.1
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickfaces API
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.34.0
5
+ * The version of the OpenAPI document: 0.35.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -332,33 +332,35 @@ export interface UpdatePickfaceRequest {
332
332
  }
333
333
  export interface UpdatePickfaceRequestContentsInner {
334
334
  /**
335
- * The variant to add or subtract from the pickface
335
+ * The variant to update on the pickface
336
336
  */
337
337
  'variantRef': string;
338
338
  'quantity': UpdatePickfaceRequestContentsInnerQuantity;
339
339
  }
340
340
  export interface UpdatePickfaceRequestContentsInnerQuantity {
341
- 'available'?: UpdatePickfaceRequestContentsInnerQuantityAvailable | null;
342
- 'ZWip'?: UpdatePickfaceRequestContentsInnerQuantityZWip | null;
341
+ 'available'?: UpdatePickfaceRequestContentsInnerQuantityAvailable;
342
+ 'ZWip'?: UpdatePickfaceRequestContentsInnerQuantityZWip;
343
343
  }
344
344
  /**
345
- * The amount to add or subtract from the available stock on the pickface
345
+ * @type UpdatePickfaceRequestContentsInnerQuantityAvailable
346
+ * The available stock quantity. Can be an integer to set absolute value, or an object with operation (add/subtract/set) and value. Use the integer value if you want to set the value of multiple variants at once.
346
347
  */
347
- export interface UpdatePickfaceRequestContentsInnerQuantityAvailable {
348
- 'operation'?: UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum;
348
+ export type UpdatePickfaceRequestContentsInnerQuantityAvailable = UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf | number;
349
+ export interface UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf {
350
+ 'operation': UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum;
349
351
  'value': number;
350
352
  }
351
- export declare const UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum: {
353
+ export declare const UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum: {
352
354
  readonly Add: "add";
353
355
  readonly Subtract: "subtract";
354
356
  readonly Set: "set";
355
357
  };
356
- export type UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum[keyof typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum];
358
+ export type UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum[keyof typeof UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum];
357
359
  /**
358
- * The amount to add or subtract from the Z WIP stock on the pickface.
360
+ * The Z WIP stock quantity.
359
361
  */
360
362
  export interface UpdatePickfaceRequestContentsInnerQuantityZWip {
361
- 'operation'?: UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum;
363
+ 'operation': UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum;
362
364
  'value': number;
363
365
  }
364
366
  export declare const UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum: {
@@ -547,12 +549,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
547
549
  * @summary Print pickface Labels
548
550
  * @param {string} project The project ID
549
551
  * @param {string} deviceRef Unique identifier of a warehouse device
550
- * @param {string} [search] Search term to filter based on pickface code
551
552
  * @param {Array<string> | null} [ids] List of pickface ids
552
553
  * @param {*} [options] Override http request option.
553
554
  * @throws {RequiredError}
554
555
  */
555
- printPickfaceLabels: (project: string, deviceRef: string, search?: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
556
+ printPickfaceLabels: (project: string, deviceRef: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
556
557
  /**
557
558
  * Resolves an issue on a pickface
558
559
  * @summary Resolve pickface issue
@@ -581,11 +582,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
581
582
  * @summary Update Pickface
582
583
  * @param {string} project The project ID
583
584
  * @param {string} pickfaceId Unique identifier of a pickface
584
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
585
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
585
586
  * @param {*} [options] Override http request option.
586
587
  * @throws {RequiredError}
587
588
  */
588
- updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
589
+ updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
589
590
  /**
590
591
  * Update pickfaces in bulk
591
592
  * @summary Update pickfaces
@@ -723,12 +724,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
723
724
  * @summary Print pickface Labels
724
725
  * @param {string} project The project ID
725
726
  * @param {string} deviceRef Unique identifier of a warehouse device
726
- * @param {string} [search] Search term to filter based on pickface code
727
727
  * @param {Array<string> | null} [ids] List of pickface ids
728
728
  * @param {*} [options] Override http request option.
729
729
  * @throws {RequiredError}
730
730
  */
731
- printPickfaceLabels(project: string, deviceRef: string, search?: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
731
+ printPickfaceLabels(project: string, deviceRef: string, ids?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
732
732
  /**
733
733
  * Resolves an issue on a pickface
734
734
  * @summary Resolve pickface issue
@@ -757,11 +757,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
757
757
  * @summary Update Pickface
758
758
  * @param {string} project The project ID
759
759
  * @param {string} pickfaceId Unique identifier of a pickface
760
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
760
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
761
761
  * @param {*} [options] Override http request option.
762
762
  * @throws {RequiredError}
763
763
  */
764
- updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
764
+ updatePickface(project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
765
765
  /**
766
766
  * Update pickfaces in bulk
767
767
  * @summary Update pickfaces
@@ -1121,10 +1121,6 @@ export interface PickfacesApiPrintPickfaceLabelsRequest {
1121
1121
  * Unique identifier of a warehouse device
1122
1122
  */
1123
1123
  readonly deviceRef: string;
1124
- /**
1125
- * Search term to filter based on pickface code
1126
- */
1127
- readonly search?: string;
1128
1124
  /**
1129
1125
  * List of pickface ids
1130
1126
  */
@@ -1188,10 +1184,7 @@ export interface PickfacesApiUpdatePickfaceRequest {
1188
1184
  * Unique identifier of a pickface
1189
1185
  */
1190
1186
  readonly pickfaceId: string;
1191
- /**
1192
- * Update pickface schema
1193
- */
1194
- readonly updatePickfaceRequest: UpdatePickfaceRequest;
1187
+ readonly updatePickfaceRequest?: UpdatePickfaceRequest;
1195
1188
  }
1196
1189
  /**
1197
1190
  * Request parameters for updatePickfaces operation in PickfacesApi.