@teemill/pickfaces 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/pickfaces@0.34.0
1
+ ## @teemill/pickfaces@0.35.0
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.0 --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.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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
 
@@ -1277,17 +1280,15 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
1277
1280
  * @summary Update Pickface
1278
1281
  * @param {string} project The project ID
1279
1282
  * @param {string} pickfaceId Unique identifier of a pickface
1280
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1283
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1281
1284
  * @param {*} [options] Override http request option.
1282
1285
  * @throws {RequiredError}
1283
1286
  */
1284
- updatePickface: async (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1287
+ updatePickface: async (project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1285
1288
  // verify required parameter 'project' is not null or undefined
1286
1289
  assertParamExists('updatePickface', 'project', project)
1287
1290
  // verify required parameter 'pickfaceId' is not null or undefined
1288
1291
  assertParamExists('updatePickface', 'pickfaceId', pickfaceId)
1289
- // verify required parameter 'updatePickfaceRequest' is not null or undefined
1290
- assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest)
1291
1292
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
1292
1293
  .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
1293
1294
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1617,11 +1618,11 @@ export const PickfacesApiFp = function(configuration?: Configuration) {
1617
1618
  * @summary Update Pickface
1618
1619
  * @param {string} project The project ID
1619
1620
  * @param {string} pickfaceId Unique identifier of a pickface
1620
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1621
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1621
1622
  * @param {*} [options] Override http request option.
1622
1623
  * @throws {RequiredError}
1623
1624
  */
1624
- async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
1625
+ async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
1625
1626
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
1626
1627
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1627
1628
  const localVarOperationServerBasePath = operationServerMap['PickfacesApi.updatePickface']?.[localVarOperationServerIndex]?.url;
@@ -2147,10 +2148,7 @@ export interface PickfacesApiUpdatePickfaceRequest {
2147
2148
  */
2148
2149
  readonly pickfaceId: string
2149
2150
 
2150
- /**
2151
- * Update pickface schema
2152
- */
2153
- readonly updatePickfaceRequest: UpdatePickfaceRequest
2151
+ readonly updatePickfaceRequest?: UpdatePickfaceRequest
2154
2152
  }
2155
2153
 
2156
2154
  /**
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.0
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.0
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.0
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.0
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: {
@@ -581,11 +583,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
581
583
  * @summary Update Pickface
582
584
  * @param {string} project The project ID
583
585
  * @param {string} pickfaceId Unique identifier of a pickface
584
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
586
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
585
587
  * @param {*} [options] Override http request option.
586
588
  * @throws {RequiredError}
587
589
  */
588
- updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
590
+ updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
589
591
  /**
590
592
  * Update pickfaces in bulk
591
593
  * @summary Update pickfaces
@@ -757,11 +759,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
757
759
  * @summary Update Pickface
758
760
  * @param {string} project The project ID
759
761
  * @param {string} pickfaceId Unique identifier of a pickface
760
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
762
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
761
763
  * @param {*} [options] Override http request option.
762
764
  * @throws {RequiredError}
763
765
  */
764
- updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
766
+ updatePickface(project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
765
767
  /**
766
768
  * Update pickfaces in bulk
767
769
  * @summary Update pickfaces
@@ -1188,10 +1190,7 @@ export interface PickfacesApiUpdatePickfaceRequest {
1188
1190
  * Unique identifier of a pickface
1189
1191
  */
1190
1192
  readonly pickfaceId: string;
1191
- /**
1192
- * Update pickface schema
1193
- */
1194
- readonly updatePickfaceRequest: UpdatePickfaceRequest;
1193
+ readonly updatePickfaceRequest?: UpdatePickfaceRequest;
1195
1194
  }
1196
1195
  /**
1197
1196
  * Request parameters for updatePickfaces operation in PickfacesApi.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickfaces API
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.34.0
8
+ * The version of the OpenAPI document: 0.35.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,14 +22,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ListPickfacesSortByEnum = exports.PickfacesApi = exports.PickfacesApiFactory = exports.PickfacesApiFp = exports.PickfacesApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum = exports.UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = void 0;
25
+ exports.ListPickfacesSortByEnum = exports.PickfacesApi = exports.PickfacesApiFactory = exports.PickfacesApiFp = exports.PickfacesApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum = exports.UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
- exports.UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = {
32
+ exports.UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = {
33
33
  Add: 'add',
34
34
  Subtract: 'subtract',
35
35
  Set: 'set'
@@ -738,7 +738,7 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
738
738
  * @summary Update Pickface
739
739
  * @param {string} project The project ID
740
740
  * @param {string} pickfaceId Unique identifier of a pickface
741
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
741
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
742
742
  * @param {*} [options] Override http request option.
743
743
  * @throws {RequiredError}
744
744
  */
@@ -747,8 +747,6 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
747
747
  (0, common_1.assertParamExists)('updatePickface', 'project', project);
748
748
  // verify required parameter 'pickfaceId' is not null or undefined
749
749
  (0, common_1.assertParamExists)('updatePickface', 'pickfaceId', pickfaceId);
750
- // verify required parameter 'updatePickfaceRequest' is not null or undefined
751
- (0, common_1.assertParamExists)('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest);
752
750
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
753
751
  .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
754
752
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1105,7 +1103,7 @@ const PickfacesApiFp = function (configuration) {
1105
1103
  * @summary Update Pickface
1106
1104
  * @param {string} project The project ID
1107
1105
  * @param {string} pickfaceId Unique identifier of a pickface
1108
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1106
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1109
1107
  * @param {*} [options] Override http request option.
1110
1108
  * @throws {RequiredError}
1111
1109
  */
package/dist/base.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.0
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 API
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.34.0
8
+ * The version of the OpenAPI document: 0.35.0
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 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.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickfaces API
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.34.0
8
+ * The version of the OpenAPI document: 0.35.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.0
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 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.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/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.0
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: {
@@ -581,11 +583,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
581
583
  * @summary Update Pickface
582
584
  * @param {string} project The project ID
583
585
  * @param {string} pickfaceId Unique identifier of a pickface
584
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
586
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
585
587
  * @param {*} [options] Override http request option.
586
588
  * @throws {RequiredError}
587
589
  */
588
- updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
590
+ updatePickface: (project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
589
591
  /**
590
592
  * Update pickfaces in bulk
591
593
  * @summary Update pickfaces
@@ -757,11 +759,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
757
759
  * @summary Update Pickface
758
760
  * @param {string} project The project ID
759
761
  * @param {string} pickfaceId Unique identifier of a pickface
760
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
762
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
761
763
  * @param {*} [options] Override http request option.
762
764
  * @throws {RequiredError}
763
765
  */
764
- updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
766
+ updatePickface(project: string, pickfaceId: string, updatePickfaceRequest?: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
765
767
  /**
766
768
  * Update pickfaces in bulk
767
769
  * @summary Update pickfaces
@@ -1188,10 +1190,7 @@ export interface PickfacesApiUpdatePickfaceRequest {
1188
1190
  * Unique identifier of a pickface
1189
1191
  */
1190
1192
  readonly pickfaceId: string;
1191
- /**
1192
- * Update pickface schema
1193
- */
1194
- readonly updatePickfaceRequest: UpdatePickfaceRequest;
1193
+ readonly updatePickfaceRequest?: UpdatePickfaceRequest;
1195
1194
  }
1196
1195
  /**
1197
1196
  * Request parameters for updatePickfaces operation in PickfacesApi.
package/dist/esm/api.js 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.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- export const UpdatePickfaceRequestContentsInnerQuantityAvailableOperationEnum = {
29
+ export const UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = {
30
30
  Add: 'add',
31
31
  Subtract: 'subtract',
32
32
  Set: 'set'
@@ -735,7 +735,7 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
735
735
  * @summary Update Pickface
736
736
  * @param {string} project The project ID
737
737
  * @param {string} pickfaceId Unique identifier of a pickface
738
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
738
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
739
739
  * @param {*} [options] Override http request option.
740
740
  * @throws {RequiredError}
741
741
  */
@@ -744,8 +744,6 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
744
744
  assertParamExists('updatePickface', 'project', project);
745
745
  // verify required parameter 'pickfaceId' is not null or undefined
746
746
  assertParamExists('updatePickface', 'pickfaceId', pickfaceId);
747
- // verify required parameter 'updatePickfaceRequest' is not null or undefined
748
- assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest);
749
747
  const localVarPath = `/v1/pickfaces/{pickfaceId}`
750
748
  .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
751
749
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1101,7 +1099,7 @@ export const PickfacesApiFp = function (configuration) {
1101
1099
  * @summary Update Pickface
1102
1100
  * @param {string} project The project ID
1103
1101
  * @param {string} pickfaceId Unique identifier of a pickface
1104
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
1102
+ * @param {UpdatePickfaceRequest} [updatePickfaceRequest]
1105
1103
  * @param {*} [options] Override http request option.
1106
1104
  * @throws {RequiredError}
1107
1105
  */
@@ -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.0
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 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.0
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 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.0
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 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.0
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 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.0
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 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.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.0
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 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.0
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 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.0
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 API
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.34.0
8
+ * The version of the OpenAPI document: 0.35.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -958,7 +958,7 @@ const { status, data } = await apiInstance.suggestPickfaces(
958
958
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
959
959
 
960
960
  # **updatePickface**
961
- > Pickface updatePickface(updatePickfaceRequest)
961
+ > Pickface updatePickface()
962
962
 
963
963
  Update a Pickface
964
964
 
@@ -976,7 +976,7 @@ const apiInstance = new PickfacesApi(configuration);
976
976
 
977
977
  let project: string; //The project ID (default to undefined)
978
978
  let pickfaceId: string; //Unique identifier of a pickface (default to undefined)
979
- let updatePickfaceRequest: UpdatePickfaceRequest; //Update pickface schema
979
+ let updatePickfaceRequest: UpdatePickfaceRequest; // (optional)
980
980
 
981
981
  const { status, data } = await apiInstance.updatePickface(
982
982
  project,
@@ -989,7 +989,7 @@ const { status, data } = await apiInstance.updatePickface(
989
989
 
990
990
  |Name | Type | Description | Notes|
991
991
  |------------- | ------------- | ------------- | -------------|
992
- | **updatePickfaceRequest** | **UpdatePickfaceRequest**| Update pickface schema | |
992
+ | **updatePickfaceRequest** | **UpdatePickfaceRequest**| | |
993
993
  | **project** | [**string**] | The project ID | defaults to undefined|
994
994
  | **pickfaceId** | [**string**] | Unique identifier of a pickface | defaults to undefined|
995
995
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **variantRef** | **string** | The variant to add or subtract from the pickface | [default to undefined]
8
+ **variantRef** | **string** | The variant to update on the pickface | [default to undefined]
9
9
  **quantity** | [**UpdatePickfaceRequestContentsInnerQuantity**](UpdatePickfaceRequestContentsInnerQuantity.md) | | [default to undefined]
10
10
 
11
11
  ## Example
@@ -1,12 +1,12 @@
1
1
  # UpdatePickfaceRequestContentsInnerQuantityAvailable
2
2
 
3
- The amount to add or subtract from the available stock on the pickface
3
+ 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.
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **operation** | **string** | | [optional] [default to undefined]
9
+ **operation** | **string** | | [default to undefined]
10
10
  **value** | **number** | | [default to undefined]
11
11
 
12
12
  ## Example
@@ -0,0 +1,22 @@
1
+ # UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **operation** | **string** | | [default to undefined]
9
+ **value** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf } from '@teemill/pickfaces';
15
+
16
+ const instance: UpdatePickfaceRequestContentsInnerQuantityAvailableOneOf = {
17
+ operation,
18
+ value,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,12 +1,12 @@
1
1
  # UpdatePickfaceRequestContentsInnerQuantityZWip
2
2
 
3
- The amount to add or subtract from the Z WIP stock on the pickface.
3
+ The Z WIP stock quantity.
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **operation** | **string** | | [optional] [default to undefined]
9
+ **operation** | **string** | | [default to undefined]
10
10
  **value** | **number** | | [default to undefined]
11
11
 
12
12
  ## Example
package/index.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.0
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.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "OpenAPI client for @teemill/pickfaces",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {