@teemill/pickfaces 0.35.1 → 0.36.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.35.1
1
+ ## @teemill/pickfaces@0.36.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.35.1 --save
39
+ npm install @teemill/pickfaces@0.36.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
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.35.1
7
+ * The version of the OpenAPI document: 0.36.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -598,10 +598,11 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
598
598
  * @summary Export pickfaces
599
599
  * @param {string} project The project ID
600
600
  * @param {string} [search] Search term to filter based on pickface code
601
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \"split\" shows one row per pickface cost entry (split by cost). \"average\" shows one row per pickface SKU with averaged unit cost.
601
602
  * @param {*} [options] Override http request option.
602
603
  * @throws {RequiredError}
603
604
  */
604
- exportPickfaces: async (project: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
605
+ exportPickfaces: async (project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
605
606
  // verify required parameter 'project' is not null or undefined
606
607
  assertParamExists('exportPickfaces', 'project', project)
607
608
  const localVarPath = `/v1/pickfaces/export`;
@@ -631,6 +632,10 @@ export const PickfacesApiAxiosParamCreator = function (configuration?: Configura
631
632
  localVarQueryParameter['search'] = search;
632
633
  }
633
634
 
635
+ if (costMode !== undefined) {
636
+ localVarQueryParameter['costMode'] = costMode;
637
+ }
638
+
634
639
  localVarHeaderParameter['Accept'] = 'text/csv,application/json';
635
640
 
636
641
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1422,11 +1427,12 @@ export const PickfacesApiFp = function(configuration?: Configuration) {
1422
1427
  * @summary Export pickfaces
1423
1428
  * @param {string} project The project ID
1424
1429
  * @param {string} [search] Search term to filter based on pickface code
1430
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
1425
1431
  * @param {*} [options] Override http request option.
1426
1432
  * @throws {RequiredError}
1427
1433
  */
1428
- async exportPickfaces(project: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
1429
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportPickfaces(project, search, options);
1434
+ async exportPickfaces(project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
1435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportPickfaces(project, search, costMode, options);
1430
1436
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1431
1437
  const localVarOperationServerBasePath = operationServerMap['PickfacesApi.exportPickfaces']?.[localVarOperationServerIndex]?.url;
1432
1438
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1677,7 +1683,7 @@ export const PickfacesApiFactory = function (configuration?: Configuration, base
1677
1683
  * @throws {RequiredError}
1678
1684
  */
1679
1685
  exportPickfaces(requestParameters: PickfacesApiExportPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
1680
- return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(axios, basePath));
1686
+ return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(axios, basePath));
1681
1687
  },
1682
1688
  /**
1683
1689
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
@@ -1870,6 +1876,11 @@ export interface PickfacesApiExportPickfacesRequest {
1870
1876
  * Search term to filter based on pickface code
1871
1877
  */
1872
1878
  readonly search?: string
1879
+
1880
+ /**
1881
+ * Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
1882
+ */
1883
+ readonly costMode?: ExportPickfacesCostModeEnum
1873
1884
  }
1874
1885
 
1875
1886
  /**
@@ -2194,7 +2205,7 @@ export class PickfacesApi extends BaseAPI {
2194
2205
  * @throws {RequiredError}
2195
2206
  */
2196
2207
  public exportPickfaces(requestParameters: PickfacesApiExportPickfacesRequest, options?: RawAxiosRequestConfig) {
2197
- return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2208
+ return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(this.axios, this.basePath));
2198
2209
  }
2199
2210
 
2200
2211
  /**
@@ -2341,6 +2352,11 @@ export class PickfacesApi extends BaseAPI {
2341
2352
  }
2342
2353
  }
2343
2354
 
2355
+ export const ExportPickfacesCostModeEnum = {
2356
+ Split: 'split',
2357
+ Average: 'average'
2358
+ } as const;
2359
+ export type ExportPickfacesCostModeEnum = typeof ExportPickfacesCostModeEnum[keyof typeof ExportPickfacesCostModeEnum];
2344
2360
  export const ListPickfacesSortByEnum = {
2345
2361
  Available: '+available',
2346
2362
  Available2: '-available',
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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
6
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -458,10 +458,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
458
458
  * @summary Export pickfaces
459
459
  * @param {string} project The project ID
460
460
  * @param {string} [search] Search term to filter based on pickface code
461
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
461
462
  * @param {*} [options] Override http request option.
462
463
  * @throws {RequiredError}
463
464
  */
464
- exportPickfaces: (project: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
465
+ exportPickfaces: (project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
465
466
  /**
466
467
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
467
468
  * @summary Get pickface
@@ -633,10 +634,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
633
634
  * @summary Export pickfaces
634
635
  * @param {string} project The project ID
635
636
  * @param {string} [search] Search term to filter based on pickface code
637
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
636
638
  * @param {*} [options] Override http request option.
637
639
  * @throws {RequiredError}
638
640
  */
639
- exportPickfaces(project: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
641
+ exportPickfaces(project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
640
642
  /**
641
643
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
642
644
  * @summary Get pickface
@@ -964,6 +966,10 @@ export interface PickfacesApiExportPickfacesRequest {
964
966
  * Search term to filter based on pickface code
965
967
  */
966
968
  readonly search?: string;
969
+ /**
970
+ * Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
971
+ */
972
+ readonly costMode?: ExportPickfacesCostModeEnum;
967
973
  }
968
974
  /**
969
975
  * Request parameters for getPickface operation in PickfacesApi.
@@ -1340,6 +1346,11 @@ export declare class PickfacesApi extends BaseAPI {
1340
1346
  */
1341
1347
  updatePickfaces(requestParameters: PickfacesApiUpdatePickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPickfaces200Response, any, {}>>;
1342
1348
  }
1349
+ export declare const ExportPickfacesCostModeEnum: {
1350
+ readonly Split: "split";
1351
+ readonly Average: "average";
1352
+ };
1353
+ export type ExportPickfacesCostModeEnum = typeof ExportPickfacesCostModeEnum[keyof typeof ExportPickfacesCostModeEnum];
1343
1354
  export declare const ListPickfacesSortByEnum: {
1344
1355
  readonly Available: "+available";
1345
1356
  readonly Available2: "-available";
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.35.1
8
+ * The version of the OpenAPI document: 0.36.0
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.ListPickfacesSortByEnum = exports.PickfacesApi = exports.PickfacesApiFactory = exports.PickfacesApiFp = exports.PickfacesApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.UpdatePickfaceRequestContentsInnerQuantityZWipOperationEnum = exports.UpdatePickfaceRequestContentsInnerQuantityAvailableOneOfOperationEnum = void 0;
25
+ exports.ListPickfacesSortByEnum = exports.ExportPickfacesCostModeEnum = 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
@@ -178,10 +178,11 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
178
178
  * @summary Export pickfaces
179
179
  * @param {string} project The project ID
180
180
  * @param {string} [search] Search term to filter based on pickface code
181
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
181
182
  * @param {*} [options] Override http request option.
182
183
  * @throws {RequiredError}
183
184
  */
184
- exportPickfaces: (project_1, search_1, ...args_1) => __awaiter(this, [project_1, search_1, ...args_1], void 0, function* (project, search, options = {}) {
185
+ exportPickfaces: (project_1, search_1, costMode_1, ...args_1) => __awaiter(this, [project_1, search_1, costMode_1, ...args_1], void 0, function* (project, search, costMode, options = {}) {
185
186
  // verify required parameter 'project' is not null or undefined
186
187
  (0, common_1.assertParamExists)('exportPickfaces', 'project', project);
187
188
  const localVarPath = `/v1/pickfaces/export`;
@@ -205,6 +206,9 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
205
206
  if (search !== undefined) {
206
207
  localVarQueryParameter['search'] = search;
207
208
  }
209
+ if (costMode !== undefined) {
210
+ localVarQueryParameter['costMode'] = costMode;
211
+ }
208
212
  localVarHeaderParameter['Accept'] = 'text/csv,application/json';
209
213
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
214
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -895,13 +899,14 @@ const PickfacesApiFp = function (configuration) {
895
899
  * @summary Export pickfaces
896
900
  * @param {string} project The project ID
897
901
  * @param {string} [search] Search term to filter based on pickface code
902
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
898
903
  * @param {*} [options] Override http request option.
899
904
  * @throws {RequiredError}
900
905
  */
901
- exportPickfaces(project, search, options) {
906
+ exportPickfaces(project, search, costMode, options) {
902
907
  return __awaiter(this, void 0, void 0, function* () {
903
908
  var _a, _b, _c;
904
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, search, options);
909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, search, costMode, options);
905
910
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
906
911
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.exportPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
907
912
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1192,7 +1197,7 @@ const PickfacesApiFactory = function (configuration, basePath, axios) {
1192
1197
  * @throws {RequiredError}
1193
1198
  */
1194
1199
  exportPickfaces(requestParameters, options) {
1195
- return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(axios, basePath));
1200
+ return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(axios, basePath));
1196
1201
  },
1197
1202
  /**
1198
1203
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
@@ -1369,7 +1374,7 @@ class PickfacesApi extends base_1.BaseAPI {
1369
1374
  * @throws {RequiredError}
1370
1375
  */
1371
1376
  exportPickfaces(requestParameters, options) {
1372
- return (0, exports.PickfacesApiFp)(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1377
+ return (0, exports.PickfacesApiFp)(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(this.axios, this.basePath));
1373
1378
  }
1374
1379
  /**
1375
1380
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
@@ -1503,6 +1508,10 @@ class PickfacesApi extends base_1.BaseAPI {
1503
1508
  }
1504
1509
  }
1505
1510
  exports.PickfacesApi = PickfacesApi;
1511
+ exports.ExportPickfacesCostModeEnum = {
1512
+ Split: 'split',
1513
+ Average: 'average'
1514
+ };
1506
1515
  exports.ListPickfacesSortByEnum = {
1507
1516
  Available: '+available',
1508
1517
  Available2: '-available',
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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
8
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
8
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -458,10 +458,11 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
458
458
  * @summary Export pickfaces
459
459
  * @param {string} project The project ID
460
460
  * @param {string} [search] Search term to filter based on pickface code
461
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
461
462
  * @param {*} [options] Override http request option.
462
463
  * @throws {RequiredError}
463
464
  */
464
- exportPickfaces: (project: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
465
+ exportPickfaces: (project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
465
466
  /**
466
467
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
467
468
  * @summary Get pickface
@@ -633,10 +634,11 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
633
634
  * @summary Export pickfaces
634
635
  * @param {string} project The project ID
635
636
  * @param {string} [search] Search term to filter based on pickface code
637
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
636
638
  * @param {*} [options] Override http request option.
637
639
  * @throws {RequiredError}
638
640
  */
639
- exportPickfaces(project: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
641
+ exportPickfaces(project: string, search?: string, costMode?: ExportPickfacesCostModeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
640
642
  /**
641
643
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
642
644
  * @summary Get pickface
@@ -964,6 +966,10 @@ export interface PickfacesApiExportPickfacesRequest {
964
966
  * Search term to filter based on pickface code
965
967
  */
966
968
  readonly search?: string;
969
+ /**
970
+ * Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
971
+ */
972
+ readonly costMode?: ExportPickfacesCostModeEnum;
967
973
  }
968
974
  /**
969
975
  * Request parameters for getPickface operation in PickfacesApi.
@@ -1340,6 +1346,11 @@ export declare class PickfacesApi extends BaseAPI {
1340
1346
  */
1341
1347
  updatePickfaces(requestParameters: PickfacesApiUpdatePickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPickfaces200Response, any, {}>>;
1342
1348
  }
1349
+ export declare const ExportPickfacesCostModeEnum: {
1350
+ readonly Split: "split";
1351
+ readonly Average: "average";
1352
+ };
1353
+ export type ExportPickfacesCostModeEnum = typeof ExportPickfacesCostModeEnum[keyof typeof ExportPickfacesCostModeEnum];
1343
1354
  export declare const ListPickfacesSortByEnum: {
1344
1355
  readonly Available: "+available";
1345
1356
  readonly Available2: "-available";
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.35.1
7
+ * The version of the OpenAPI document: 0.36.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -175,10 +175,11 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
175
175
  * @summary Export pickfaces
176
176
  * @param {string} project The project ID
177
177
  * @param {string} [search] Search term to filter based on pickface code
178
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
178
179
  * @param {*} [options] Override http request option.
179
180
  * @throws {RequiredError}
180
181
  */
181
- exportPickfaces: (project_1, search_1, ...args_1) => __awaiter(this, [project_1, search_1, ...args_1], void 0, function* (project, search, options = {}) {
182
+ exportPickfaces: (project_1, search_1, costMode_1, ...args_1) => __awaiter(this, [project_1, search_1, costMode_1, ...args_1], void 0, function* (project, search, costMode, options = {}) {
182
183
  // verify required parameter 'project' is not null or undefined
183
184
  assertParamExists('exportPickfaces', 'project', project);
184
185
  const localVarPath = `/v1/pickfaces/export`;
@@ -202,6 +203,9 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
202
203
  if (search !== undefined) {
203
204
  localVarQueryParameter['search'] = search;
204
205
  }
206
+ if (costMode !== undefined) {
207
+ localVarQueryParameter['costMode'] = costMode;
208
+ }
205
209
  localVarHeaderParameter['Accept'] = 'text/csv,application/json';
206
210
  setSearchParams(localVarUrlObj, localVarQueryParameter);
207
211
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -891,13 +895,14 @@ export const PickfacesApiFp = function (configuration) {
891
895
  * @summary Export pickfaces
892
896
  * @param {string} project The project ID
893
897
  * @param {string} [search] Search term to filter based on pickface code
898
+ * @param {ExportPickfacesCostModeEnum} [costMode] Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost.
894
899
  * @param {*} [options] Override http request option.
895
900
  * @throws {RequiredError}
896
901
  */
897
- exportPickfaces(project, search, options) {
902
+ exportPickfaces(project, search, costMode, options) {
898
903
  return __awaiter(this, void 0, void 0, function* () {
899
904
  var _a, _b, _c;
900
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, search, options);
905
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, search, costMode, options);
901
906
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
902
907
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.exportPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
903
908
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1187,7 +1192,7 @@ export const PickfacesApiFactory = function (configuration, basePath, axios) {
1187
1192
  * @throws {RequiredError}
1188
1193
  */
1189
1194
  exportPickfaces(requestParameters, options) {
1190
- return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(axios, basePath));
1195
+ return localVarFp.exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(axios, basePath));
1191
1196
  },
1192
1197
  /**
1193
1198
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
@@ -1363,7 +1368,7 @@ export class PickfacesApi extends BaseAPI {
1363
1368
  * @throws {RequiredError}
1364
1369
  */
1365
1370
  exportPickfaces(requestParameters, options) {
1366
- return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1371
+ return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, requestParameters.search, requestParameters.costMode, options).then((request) => request(this.axios, this.basePath));
1367
1372
  }
1368
1373
  /**
1369
1374
  * Get a specific pickface. Pickfaces contain useful information such as the items they contain and their level of fullness
@@ -1496,6 +1501,10 @@ export class PickfacesApi extends BaseAPI {
1496
1501
  return PickfacesApiFp(this.configuration).updatePickfaces(requestParameters.project, requestParameters.updatePickfacesRequest, options).then((request) => request(this.axios, this.basePath));
1497
1502
  }
1498
1503
  }
1504
+ export const ExportPickfacesCostModeEnum = {
1505
+ Split: 'split',
1506
+ Average: 'average'
1507
+ };
1499
1508
  export const ListPickfacesSortByEnum = {
1500
1509
  Available: '+available',
1501
1510
  Available2: '-available',
@@ -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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
6
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1
5
+ * The version of the OpenAPI document: 0.36.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.35.1
8
+ * The version of the OpenAPI document: 0.36.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -218,10 +218,12 @@ const apiInstance = new PickfacesApi(configuration);
218
218
 
219
219
  let project: string; //The project ID (default to undefined)
220
220
  let search: string; //Search term to filter based on pickface code (optional) (default to undefined)
221
+ let costMode: 'split' | 'average'; //Controls how cost data is displayed. \"split\" shows one row per pickface cost entry (split by cost). \"average\" shows one row per pickface SKU with averaged unit cost. (optional) (default to 'average')
221
222
 
222
223
  const { status, data } = await apiInstance.exportPickfaces(
223
224
  project,
224
- search
225
+ search,
226
+ costMode
225
227
  );
226
228
  ```
227
229
 
@@ -231,6 +233,7 @@ const { status, data } = await apiInstance.exportPickfaces(
231
233
  |------------- | ------------- | ------------- | -------------|
232
234
  | **project** | [**string**] | The project ID | defaults to undefined|
233
235
  | **search** | [**string**] | Search term to filter based on pickface code | (optional) defaults to undefined|
236
+ | **costMode** | [**&#39;split&#39; | &#39;average&#39;**]**Array<&#39;split&#39; &#124; &#39;average&#39;>** | Controls how cost data is displayed. \&quot;split\&quot; shows one row per pickface cost entry (split by cost). \&quot;average\&quot; shows one row per pickface SKU with averaged unit cost. | (optional) defaults to 'average'|
234
237
 
235
238
 
236
239
  ### Return type
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.35.1
7
+ * The version of the OpenAPI document: 0.36.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.35.1",
3
+ "version": "0.36.0",
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.12.2"
27
+ "axios": "1.13.5"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",