@teemill/pickfaces 0.19.0 → 0.19.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/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.19.0
5
+ * The version of the OpenAPI document: 0.19.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -126,25 +126,6 @@ export interface ExportPickfaces202Response {
126
126
  */
127
127
  'message'?: string;
128
128
  }
129
- /**
130
- *
131
- * @export
132
- * @interface GetPickfaces200Response
133
- */
134
- export interface GetPickfaces200Response {
135
- /**
136
- *
137
- * @type {Array<Pickface>}
138
- * @memberof GetPickfaces200Response
139
- */
140
- 'pickfaces'?: Array<Pickface>;
141
- /**
142
- * The token referencing the next page number
143
- * @type {number}
144
- * @memberof GetPickfaces200Response
145
- */
146
- 'nextPageToken'?: number | null;
147
- }
148
129
  /**
149
130
  *
150
131
  * @export
@@ -196,6 +177,25 @@ export interface ListPickfaceLogs200Response {
196
177
  */
197
178
  'nextPageToken'?: number | null;
198
179
  }
180
+ /**
181
+ *
182
+ * @export
183
+ * @interface ListPickfaces200Response
184
+ */
185
+ export interface ListPickfaces200Response {
186
+ /**
187
+ *
188
+ * @type {Array<Pickface>}
189
+ * @memberof ListPickfaces200Response
190
+ */
191
+ 'pickfaces'?: Array<Pickface>;
192
+ /**
193
+ * The token referencing the next page number
194
+ * @type {number}
195
+ * @memberof ListPickfaces200Response
196
+ */
197
+ 'nextPageToken'?: number | null;
198
+ }
199
199
  /**
200
200
  *
201
201
  * @export
@@ -666,18 +666,6 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
666
666
  * @throws {RequiredError}
667
667
  */
668
668
  getPickfaceContainerModels: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
669
- /**
670
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
671
- * @summary List pickfaces
672
- * @param {string} project What project it is
673
- * @param {string} [search] Search term to filter based on pickface code
674
- * @param {number} [pageToken] Page reference token
675
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
676
- * @param {Array<GetPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
677
- * @param {*} [options] Override http request option.
678
- * @throws {RequiredError}
679
- */
680
- getPickfaces: (project: string, search?: string, pageToken?: number, pageSize?: number, sortBy?: Array<GetPickfacesSortByEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
681
669
  /**
682
670
  * Issue an empty pickface
683
671
  * @summary Issue empty pickface
@@ -709,6 +697,18 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
709
697
  * @throws {RequiredError}
710
698
  */
711
699
  listPickfaceLogs: (project: string, pickfaceId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
700
+ /**
701
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
702
+ * @summary List pickfaces
703
+ * @param {string} project What project it is
704
+ * @param {string} [search] Search term to filter based on pickface code
705
+ * @param {number} [pageToken] Page reference token
706
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
707
+ * @param {Array<ListPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ listPickfaces: (project: string, search?: string, pageToken?: number, pageSize?: number, sortBy?: Array<ListPickfacesSortByEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
712
712
  /**
713
713
  * Move stock from one pickface to another in a single transaction
714
714
  * @summary Move stock
@@ -821,18 +821,6 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
821
821
  * @throws {RequiredError}
822
822
  */
823
823
  getPickfaceContainerModels(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerModels>>;
824
- /**
825
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
826
- * @summary List pickfaces
827
- * @param {string} project What project it is
828
- * @param {string} [search] Search term to filter based on pickface code
829
- * @param {number} [pageToken] Page reference token
830
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
831
- * @param {Array<GetPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
832
- * @param {*} [options] Override http request option.
833
- * @throws {RequiredError}
834
- */
835
- getPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, sortBy?: Array<GetPickfacesSortByEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPickfaces200Response>>;
836
824
  /**
837
825
  * Issue an empty pickface
838
826
  * @summary Issue empty pickface
@@ -864,6 +852,18 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
864
852
  * @throws {RequiredError}
865
853
  */
866
854
  listPickfaceLogs(project: string, pickfaceId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPickfaceLogs200Response>>;
855
+ /**
856
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
857
+ * @summary List pickfaces
858
+ * @param {string} project What project it is
859
+ * @param {string} [search] Search term to filter based on pickface code
860
+ * @param {number} [pageToken] Page reference token
861
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
862
+ * @param {Array<ListPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ listPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, sortBy?: Array<ListPickfacesSortByEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPickfaces200Response>>;
867
867
  /**
868
868
  * Move stock from one pickface to another in a single transaction
869
869
  * @summary Move stock
@@ -915,7 +915,7 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
915
915
  * @param {*} [options] Override http request option.
916
916
  * @throws {RequiredError}
917
917
  */
918
- suggestPickfaces(project: string, variantRef: string, quantity: number, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPickfaces200Response>>;
918
+ suggestPickfaces(project: string, variantRef: string, quantity: number, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPickfaces200Response>>;
919
919
  /**
920
920
  * Update a Pickface
921
921
  * @summary Update Pickface
@@ -972,14 +972,6 @@ export declare const PickfacesApiFactory: (configuration?: Configuration, basePa
972
972
  * @throws {RequiredError}
973
973
  */
974
974
  getPickfaceContainerModels(requestParameters: PickfacesApiGetPickfaceContainerModelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContainerModels>;
975
- /**
976
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
977
- * @summary List pickfaces
978
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPickfaces200Response>;
983
975
  /**
984
976
  * Issue an empty pickface
985
977
  * @summary Issue empty pickface
@@ -1004,6 +996,14 @@ export declare const PickfacesApiFactory: (configuration?: Configuration, basePa
1004
996
  * @throws {RequiredError}
1005
997
  */
1006
998
  listPickfaceLogs(requestParameters: PickfacesApiListPickfaceLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListPickfaceLogs200Response>;
999
+ /**
1000
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1001
+ * @summary List pickfaces
1002
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ listPickfaces(requestParameters: PickfacesApiListPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListPickfaces200Response>;
1007
1007
  /**
1008
1008
  * Move stock from one pickface to another in a single transaction
1009
1009
  * @summary Move stock
@@ -1043,7 +1043,7 @@ export declare const PickfacesApiFactory: (configuration?: Configuration, basePa
1043
1043
  * @param {*} [options] Override http request option.
1044
1044
  * @throws {RequiredError}
1045
1045
  */
1046
- suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPickfaces200Response>;
1046
+ suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListPickfaces200Response>;
1047
1047
  /**
1048
1048
  * Update a Pickface
1049
1049
  * @summary Update Pickface
@@ -1142,43 +1142,6 @@ export interface PickfacesApiGetPickfaceContainerModelsRequest {
1142
1142
  */
1143
1143
  readonly project: string;
1144
1144
  }
1145
- /**
1146
- * Request parameters for getPickfaces operation in PickfacesApi.
1147
- * @export
1148
- * @interface PickfacesApiGetPickfacesRequest
1149
- */
1150
- export interface PickfacesApiGetPickfacesRequest {
1151
- /**
1152
- * What project it is
1153
- * @type {string}
1154
- * @memberof PickfacesApiGetPickfaces
1155
- */
1156
- readonly project: string;
1157
- /**
1158
- * Search term to filter based on pickface code
1159
- * @type {string}
1160
- * @memberof PickfacesApiGetPickfaces
1161
- */
1162
- readonly search?: string;
1163
- /**
1164
- * Page reference token
1165
- * @type {number}
1166
- * @memberof PickfacesApiGetPickfaces
1167
- */
1168
- readonly pageToken?: number;
1169
- /**
1170
- * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1171
- * @type {number}
1172
- * @memberof PickfacesApiGetPickfaces
1173
- */
1174
- readonly pageSize?: number;
1175
- /**
1176
- * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1177
- * @type {Array<'+available' | '-available' | '+wip' | '-wip' | '+total' | '-total' | '+fullness' | '-fullness' | '+restocked' | '-restocked' | '+picked' | '-picked'>}
1178
- * @memberof PickfacesApiGetPickfaces
1179
- */
1180
- readonly sortBy?: Array<GetPickfacesSortByEnum>;
1181
- }
1182
1145
  /**
1183
1146
  * Request parameters for issueEmptyPickface operation in PickfacesApi.
1184
1147
  * @export
@@ -1260,6 +1223,43 @@ export interface PickfacesApiListPickfaceLogsRequest {
1260
1223
  */
1261
1224
  readonly pageSize?: number;
1262
1225
  }
1226
+ /**
1227
+ * Request parameters for listPickfaces operation in PickfacesApi.
1228
+ * @export
1229
+ * @interface PickfacesApiListPickfacesRequest
1230
+ */
1231
+ export interface PickfacesApiListPickfacesRequest {
1232
+ /**
1233
+ * What project it is
1234
+ * @type {string}
1235
+ * @memberof PickfacesApiListPickfaces
1236
+ */
1237
+ readonly project: string;
1238
+ /**
1239
+ * Search term to filter based on pickface code
1240
+ * @type {string}
1241
+ * @memberof PickfacesApiListPickfaces
1242
+ */
1243
+ readonly search?: string;
1244
+ /**
1245
+ * Page reference token
1246
+ * @type {number}
1247
+ * @memberof PickfacesApiListPickfaces
1248
+ */
1249
+ readonly pageToken?: number;
1250
+ /**
1251
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1252
+ * @type {number}
1253
+ * @memberof PickfacesApiListPickfaces
1254
+ */
1255
+ readonly pageSize?: number;
1256
+ /**
1257
+ * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1258
+ * @type {Array<'+available' | '-available' | '+wip' | '-wip' | '+total' | '-total' | '+fullness' | '-fullness' | '+restocked' | '-restocked' | '+picked' | '-picked'>}
1259
+ * @memberof PickfacesApiListPickfaces
1260
+ */
1261
+ readonly sortBy?: Array<ListPickfacesSortByEnum>;
1262
+ }
1263
1263
  /**
1264
1264
  * Request parameters for moveStock operation in PickfacesApi.
1265
1265
  * @export
@@ -1474,15 +1474,6 @@ export declare class PickfacesApi extends BaseAPI {
1474
1474
  * @memberof PickfacesApi
1475
1475
  */
1476
1476
  getPickfaceContainerModels(requestParameters: PickfacesApiGetPickfaceContainerModelsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContainerModels, any>>;
1477
- /**
1478
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1479
- * @summary List pickfaces
1480
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1481
- * @param {*} [options] Override http request option.
1482
- * @throws {RequiredError}
1483
- * @memberof PickfacesApi
1484
- */
1485
- getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPickfaces200Response, any>>;
1486
1477
  /**
1487
1478
  * Issue an empty pickface
1488
1479
  * @summary Issue empty pickface
@@ -1510,6 +1501,15 @@ export declare class PickfacesApi extends BaseAPI {
1510
1501
  * @memberof PickfacesApi
1511
1502
  */
1512
1503
  listPickfaceLogs(requestParameters: PickfacesApiListPickfaceLogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPickfaceLogs200Response, any>>;
1504
+ /**
1505
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1506
+ * @summary List pickfaces
1507
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1508
+ * @param {*} [options] Override http request option.
1509
+ * @throws {RequiredError}
1510
+ * @memberof PickfacesApi
1511
+ */
1512
+ listPickfaces(requestParameters: PickfacesApiListPickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPickfaces200Response, any>>;
1513
1513
  /**
1514
1514
  * Move stock from one pickface to another in a single transaction
1515
1515
  * @summary Move stock
@@ -1554,7 +1554,7 @@ export declare class PickfacesApi extends BaseAPI {
1554
1554
  * @throws {RequiredError}
1555
1555
  * @memberof PickfacesApi
1556
1556
  */
1557
- suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPickfaces200Response, any>>;
1557
+ suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPickfaces200Response, any>>;
1558
1558
  /**
1559
1559
  * Update a Pickface
1560
1560
  * @summary Update Pickface
@@ -1568,7 +1568,7 @@ export declare class PickfacesApi extends BaseAPI {
1568
1568
  /**
1569
1569
  * @export
1570
1570
  */
1571
- export declare const GetPickfacesSortByEnum: {
1571
+ export declare const ListPickfacesSortByEnum: {
1572
1572
  readonly Available: "+available";
1573
1573
  readonly Available2: "-available";
1574
1574
  readonly Wip: "+wip";
@@ -1582,4 +1582,4 @@ export declare const GetPickfacesSortByEnum: {
1582
1582
  readonly Picked: "+picked";
1583
1583
  readonly Picked2: "-picked";
1584
1584
  };
1585
- export type GetPickfacesSortByEnum = typeof GetPickfacesSortByEnum[keyof typeof GetPickfacesSortByEnum];
1585
+ export type ListPickfacesSortByEnum = typeof ListPickfacesSortByEnum[keyof typeof ListPickfacesSortByEnum];
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.19.0
8
+ * The version of the OpenAPI document: 0.19.1
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.GetPickfacesSortByEnum = exports.PickfacesApi = exports.PickfacesApiFactory = exports.PickfacesApiFp = exports.PickfacesApiAxiosParamCreator = exports.UpdatePickfaceRequestContentsInnerQuantityOperationEnum = void 0;
25
+ exports.ListPickfacesSortByEnum = exports.PickfacesApi = exports.PickfacesApiFactory = exports.PickfacesApiFp = exports.PickfacesApiAxiosParamCreator = exports.UpdatePickfaceRequestContentsInnerQuantityOperationEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -236,58 +236,6 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
236
236
  options: localVarRequestOptions,
237
237
  };
238
238
  }),
239
- /**
240
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
241
- * @summary List pickfaces
242
- * @param {string} project What project it is
243
- * @param {string} [search] Search term to filter based on pickface code
244
- * @param {number} [pageToken] Page reference token
245
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
246
- * @param {Array<GetPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
247
- * @param {*} [options] Override http request option.
248
- * @throws {RequiredError}
249
- */
250
- getPickfaces: (project_1, search_1, pageToken_1, pageSize_1, sortBy_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, sortBy_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, sortBy, options = {}) {
251
- // verify required parameter 'project' is not null or undefined
252
- (0, common_1.assertParamExists)('getPickfaces', 'project', project);
253
- const localVarPath = `/v1/pickfaces`;
254
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
256
- let baseOptions;
257
- if (configuration) {
258
- baseOptions = configuration.baseOptions;
259
- }
260
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
261
- const localVarHeaderParameter = {};
262
- const localVarQueryParameter = {};
263
- // authentication session-oauth required
264
- // oauth required
265
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
266
- // authentication api-key required
267
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
268
- if (project !== undefined) {
269
- localVarQueryParameter['project'] = project;
270
- }
271
- if (search !== undefined) {
272
- localVarQueryParameter['search'] = search;
273
- }
274
- if (pageToken !== undefined) {
275
- localVarQueryParameter['pageToken'] = pageToken;
276
- }
277
- if (pageSize !== undefined) {
278
- localVarQueryParameter['pageSize'] = pageSize;
279
- }
280
- if (sortBy) {
281
- localVarQueryParameter['sortBy'] = sortBy;
282
- }
283
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
- return {
287
- url: (0, common_1.toPathString)(localVarUrlObj),
288
- options: localVarRequestOptions,
289
- };
290
- }),
291
239
  /**
292
240
  * Issue an empty pickface
293
241
  * @summary Issue empty pickface
@@ -426,6 +374,58 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
426
374
  options: localVarRequestOptions,
427
375
  };
428
376
  }),
377
+ /**
378
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
379
+ * @summary List pickfaces
380
+ * @param {string} project What project it is
381
+ * @param {string} [search] Search term to filter based on pickface code
382
+ * @param {number} [pageToken] Page reference token
383
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
384
+ * @param {Array<ListPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ listPickfaces: (project_1, search_1, pageToken_1, pageSize_1, sortBy_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, sortBy_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, sortBy, options = {}) {
389
+ // verify required parameter 'project' is not null or undefined
390
+ (0, common_1.assertParamExists)('listPickfaces', 'project', project);
391
+ const localVarPath = `/v1/pickfaces`;
392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
393
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
394
+ let baseOptions;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ }
398
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
399
+ const localVarHeaderParameter = {};
400
+ const localVarQueryParameter = {};
401
+ // authentication session-oauth required
402
+ // oauth required
403
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
404
+ // authentication api-key required
405
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
406
+ if (project !== undefined) {
407
+ localVarQueryParameter['project'] = project;
408
+ }
409
+ if (search !== undefined) {
410
+ localVarQueryParameter['search'] = search;
411
+ }
412
+ if (pageToken !== undefined) {
413
+ localVarQueryParameter['pageToken'] = pageToken;
414
+ }
415
+ if (pageSize !== undefined) {
416
+ localVarQueryParameter['pageSize'] = pageSize;
417
+ }
418
+ if (sortBy) {
419
+ localVarQueryParameter['sortBy'] = sortBy;
420
+ }
421
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
422
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
423
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
424
+ return {
425
+ url: (0, common_1.toPathString)(localVarUrlObj),
426
+ options: localVarRequestOptions,
427
+ };
428
+ }),
429
429
  /**
430
430
  * Move stock from one pickface to another in a single transaction
431
431
  * @summary Move stock
@@ -802,26 +802,6 @@ const PickfacesApiFp = function (configuration) {
802
802
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
803
803
  });
804
804
  },
805
- /**
806
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
807
- * @summary List pickfaces
808
- * @param {string} project What project it is
809
- * @param {string} [search] Search term to filter based on pickface code
810
- * @param {number} [pageToken] Page reference token
811
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
812
- * @param {Array<GetPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
813
- * @param {*} [options] Override http request option.
814
- * @throws {RequiredError}
815
- */
816
- getPickfaces(project, search, pageToken, pageSize, sortBy, options) {
817
- return __awaiter(this, void 0, void 0, function* () {
818
- var _a, _b, _c;
819
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, sortBy, options);
820
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
821
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
822
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
- });
824
- },
825
805
  /**
826
806
  * Issue an empty pickface
827
807
  * @summary Issue empty pickface
@@ -877,6 +857,26 @@ const PickfacesApiFp = function (configuration) {
877
857
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
878
858
  });
879
859
  },
860
+ /**
861
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
862
+ * @summary List pickfaces
863
+ * @param {string} project What project it is
864
+ * @param {string} [search] Search term to filter based on pickface code
865
+ * @param {number} [pageToken] Page reference token
866
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
867
+ * @param {Array<ListPickfacesSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ listPickfaces(project, search, pageToken, pageSize, sortBy, options) {
872
+ return __awaiter(this, void 0, void 0, function* () {
873
+ var _a, _b, _c;
874
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPickfaces(project, search, pageToken, pageSize, sortBy, options);
875
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
876
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.listPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
877
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
878
+ });
879
+ },
880
880
  /**
881
881
  * Move stock from one pickface to another in a single transaction
882
882
  * @summary Move stock
@@ -1047,16 +1047,6 @@ const PickfacesApiFactory = function (configuration, basePath, axios) {
1047
1047
  getPickfaceContainerModels(requestParameters, options) {
1048
1048
  return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
1049
1049
  },
1050
- /**
1051
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1052
- * @summary List pickfaces
1053
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1054
- * @param {*} [options] Override http request option.
1055
- * @throws {RequiredError}
1056
- */
1057
- getPickfaces(requestParameters, options) {
1058
- return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1059
- },
1060
1050
  /**
1061
1051
  * Issue an empty pickface
1062
1052
  * @summary Issue empty pickface
@@ -1087,6 +1077,16 @@ const PickfacesApiFactory = function (configuration, basePath, axios) {
1087
1077
  listPickfaceLogs(requestParameters, options) {
1088
1078
  return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1089
1079
  },
1080
+ /**
1081
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1082
+ * @summary List pickfaces
1083
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ listPickfaces(requestParameters, options) {
1088
+ return localVarFp.listPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1089
+ },
1090
1090
  /**
1091
1091
  * Move stock from one pickface to another in a single transaction
1092
1092
  * @summary Move stock
@@ -1212,17 +1212,6 @@ class PickfacesApi extends base_1.BaseAPI {
1212
1212
  getPickfaceContainerModels(requestParameters, options) {
1213
1213
  return (0, exports.PickfacesApiFp)(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1214
1214
  }
1215
- /**
1216
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1217
- * @summary List pickfaces
1218
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1219
- * @param {*} [options] Override http request option.
1220
- * @throws {RequiredError}
1221
- * @memberof PickfacesApi
1222
- */
1223
- getPickfaces(requestParameters, options) {
1224
- return (0, exports.PickfacesApiFp)(this.configuration).getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1225
- }
1226
1215
  /**
1227
1216
  * Issue an empty pickface
1228
1217
  * @summary Issue empty pickface
@@ -1256,6 +1245,17 @@ class PickfacesApi extends base_1.BaseAPI {
1256
1245
  listPickfaceLogs(requestParameters, options) {
1257
1246
  return (0, exports.PickfacesApiFp)(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1258
1247
  }
1248
+ /**
1249
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1250
+ * @summary List pickfaces
1251
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ * @memberof PickfacesApi
1255
+ */
1256
+ listPickfaces(requestParameters, options) {
1257
+ return (0, exports.PickfacesApiFp)(this.configuration).listPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1258
+ }
1259
1259
  /**
1260
1260
  * Move stock from one pickface to another in a single transaction
1261
1261
  * @summary Move stock
@@ -1327,7 +1327,7 @@ exports.PickfacesApi = PickfacesApi;
1327
1327
  /**
1328
1328
  * @export
1329
1329
  */
1330
- exports.GetPickfacesSortByEnum = {
1330
+ exports.ListPickfacesSortByEnum = {
1331
1331
  Available: '+available',
1332
1332
  Available2: '-available',
1333
1333
  Wip: '+wip',
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.19.0
5
+ * The version of the OpenAPI document: 0.19.1
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.19.0
8
+ * The version of the OpenAPI document: 0.19.1
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.19.0
5
+ * The version of the OpenAPI document: 0.19.1
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.19.0
8
+ * The version of the OpenAPI document: 0.19.1
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.19.0
5
+ * The version of the OpenAPI document: 0.19.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.19.0
8
+ * The version of the OpenAPI document: 0.19.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,13 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
17
  class Configuration {
18
18
  constructor(param = {}) {
19
+ var _a;
19
20
  this.apiKey = param.apiKey;
20
21
  this.username = param.username;
21
22
  this.password = param.password;
22
23
  this.accessToken = param.accessToken;
23
24
  this.basePath = param.basePath;
24
25
  this.serverIndex = param.serverIndex;
25
- this.baseOptions = param.baseOptions;
26
+ this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.19.1/typescript-axios" }) }, param.baseOptions);
26
27
  this.formDataCtor = param.formDataCtor;
27
28
  }
28
29
  /**