@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/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.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/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.19.0
7
+ * The version of the OpenAPI document: 0.19.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -233,58 +233,6 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
233
233
  options: localVarRequestOptions,
234
234
  };
235
235
  }),
236
- /**
237
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
238
- * @summary List pickfaces
239
- * @param {string} project What project it is
240
- * @param {string} [search] Search term to filter based on pickface code
241
- * @param {number} [pageToken] Page reference token
242
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
243
- * @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.
244
- * @param {*} [options] Override http request option.
245
- * @throws {RequiredError}
246
- */
247
- 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 = {}) {
248
- // verify required parameter 'project' is not null or undefined
249
- assertParamExists('getPickfaces', 'project', project);
250
- const localVarPath = `/v1/pickfaces`;
251
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
252
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
253
- let baseOptions;
254
- if (configuration) {
255
- baseOptions = configuration.baseOptions;
256
- }
257
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
258
- const localVarHeaderParameter = {};
259
- const localVarQueryParameter = {};
260
- // authentication session-oauth required
261
- // oauth required
262
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
263
- // authentication api-key required
264
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
265
- if (project !== undefined) {
266
- localVarQueryParameter['project'] = project;
267
- }
268
- if (search !== undefined) {
269
- localVarQueryParameter['search'] = search;
270
- }
271
- if (pageToken !== undefined) {
272
- localVarQueryParameter['pageToken'] = pageToken;
273
- }
274
- if (pageSize !== undefined) {
275
- localVarQueryParameter['pageSize'] = pageSize;
276
- }
277
- if (sortBy) {
278
- localVarQueryParameter['sortBy'] = sortBy;
279
- }
280
- setSearchParams(localVarUrlObj, localVarQueryParameter);
281
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
- return {
284
- url: toPathString(localVarUrlObj),
285
- options: localVarRequestOptions,
286
- };
287
- }),
288
236
  /**
289
237
  * Issue an empty pickface
290
238
  * @summary Issue empty pickface
@@ -423,6 +371,58 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
423
371
  options: localVarRequestOptions,
424
372
  };
425
373
  }),
374
+ /**
375
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
376
+ * @summary List pickfaces
377
+ * @param {string} project What project it is
378
+ * @param {string} [search] Search term to filter based on pickface code
379
+ * @param {number} [pageToken] Page reference token
380
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
381
+ * @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.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ 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 = {}) {
386
+ // verify required parameter 'project' is not null or undefined
387
+ assertParamExists('listPickfaces', 'project', project);
388
+ const localVarPath = `/v1/pickfaces`;
389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
391
+ let baseOptions;
392
+ if (configuration) {
393
+ baseOptions = configuration.baseOptions;
394
+ }
395
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
396
+ const localVarHeaderParameter = {};
397
+ const localVarQueryParameter = {};
398
+ // authentication session-oauth required
399
+ // oauth required
400
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
401
+ // authentication api-key required
402
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
403
+ if (project !== undefined) {
404
+ localVarQueryParameter['project'] = project;
405
+ }
406
+ if (search !== undefined) {
407
+ localVarQueryParameter['search'] = search;
408
+ }
409
+ if (pageToken !== undefined) {
410
+ localVarQueryParameter['pageToken'] = pageToken;
411
+ }
412
+ if (pageSize !== undefined) {
413
+ localVarQueryParameter['pageSize'] = pageSize;
414
+ }
415
+ if (sortBy) {
416
+ localVarQueryParameter['sortBy'] = sortBy;
417
+ }
418
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
419
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
420
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
421
+ return {
422
+ url: toPathString(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ };
425
+ }),
426
426
  /**
427
427
  * Move stock from one pickface to another in a single transaction
428
428
  * @summary Move stock
@@ -798,26 +798,6 @@ export const PickfacesApiFp = function (configuration) {
798
798
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
799
799
  });
800
800
  },
801
- /**
802
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
803
- * @summary List pickfaces
804
- * @param {string} project What project it is
805
- * @param {string} [search] Search term to filter based on pickface code
806
- * @param {number} [pageToken] Page reference token
807
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
808
- * @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.
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- */
812
- getPickfaces(project, search, pageToken, pageSize, sortBy, options) {
813
- return __awaiter(this, void 0, void 0, function* () {
814
- var _a, _b, _c;
815
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, sortBy, options);
816
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
817
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
818
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
819
- });
820
- },
821
801
  /**
822
802
  * Issue an empty pickface
823
803
  * @summary Issue empty pickface
@@ -873,6 +853,26 @@ export const PickfacesApiFp = function (configuration) {
873
853
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
874
854
  });
875
855
  },
856
+ /**
857
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
858
+ * @summary List pickfaces
859
+ * @param {string} project What project it is
860
+ * @param {string} [search] Search term to filter based on pickface code
861
+ * @param {number} [pageToken] Page reference token
862
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
863
+ * @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.
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ listPickfaces(project, search, pageToken, pageSize, sortBy, options) {
868
+ return __awaiter(this, void 0, void 0, function* () {
869
+ var _a, _b, _c;
870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPickfaces(project, search, pageToken, pageSize, sortBy, options);
871
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
872
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.listPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
874
+ });
875
+ },
876
876
  /**
877
877
  * Move stock from one pickface to another in a single transaction
878
878
  * @summary Move stock
@@ -1042,16 +1042,6 @@ export const PickfacesApiFactory = function (configuration, basePath, axios) {
1042
1042
  getPickfaceContainerModels(requestParameters, options) {
1043
1043
  return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
1044
1044
  },
1045
- /**
1046
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1047
- * @summary List pickfaces
1048
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1049
- * @param {*} [options] Override http request option.
1050
- * @throws {RequiredError}
1051
- */
1052
- getPickfaces(requestParameters, options) {
1053
- return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1054
- },
1055
1045
  /**
1056
1046
  * Issue an empty pickface
1057
1047
  * @summary Issue empty pickface
@@ -1082,6 +1072,16 @@ export const PickfacesApiFactory = function (configuration, basePath, axios) {
1082
1072
  listPickfaceLogs(requestParameters, options) {
1083
1073
  return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1084
1074
  },
1075
+ /**
1076
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1077
+ * @summary List pickfaces
1078
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ listPickfaces(requestParameters, options) {
1083
+ return localVarFp.listPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1084
+ },
1085
1085
  /**
1086
1086
  * Move stock from one pickface to another in a single transaction
1087
1087
  * @summary Move stock
@@ -1206,17 +1206,6 @@ export class PickfacesApi extends BaseAPI {
1206
1206
  getPickfaceContainerModels(requestParameters, options) {
1207
1207
  return PickfacesApiFp(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1208
1208
  }
1209
- /**
1210
- * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1211
- * @summary List pickfaces
1212
- * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1213
- * @param {*} [options] Override http request option.
1214
- * @throws {RequiredError}
1215
- * @memberof PickfacesApi
1216
- */
1217
- getPickfaces(requestParameters, options) {
1218
- return PickfacesApiFp(this.configuration).getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1219
- }
1220
1209
  /**
1221
1210
  * Issue an empty pickface
1222
1211
  * @summary Issue empty pickface
@@ -1250,6 +1239,17 @@ export class PickfacesApi extends BaseAPI {
1250
1239
  listPickfaceLogs(requestParameters, options) {
1251
1240
  return PickfacesApiFp(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1252
1241
  }
1242
+ /**
1243
+ * Lists all available pickfaces paginated into chunks. Pickfaces contain useful information such as the items they contain and their level of fullness
1244
+ * @summary List pickfaces
1245
+ * @param {PickfacesApiListPickfacesRequest} requestParameters Request parameters.
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ * @memberof PickfacesApi
1249
+ */
1250
+ listPickfaces(requestParameters, options) {
1251
+ return PickfacesApiFp(this.configuration).listPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1252
+ }
1253
1253
  /**
1254
1254
  * Move stock from one pickface to another in a single transaction
1255
1255
  * @summary Move stock
@@ -1320,7 +1320,7 @@ export class PickfacesApi extends BaseAPI {
1320
1320
  /**
1321
1321
  * @export
1322
1322
  */
1323
- export const GetPickfacesSortByEnum = {
1323
+ export const ListPickfacesSortByEnum = {
1324
1324
  Available: '+available',
1325
1325
  Available2: '-available',
1326
1326
  Wip: '+wip',
@@ -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/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.19.0
7
+ * The version of the OpenAPI document: 0.19.1
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.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).
@@ -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.19.0
7
+ * The version of the OpenAPI document: 0.19.1
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.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).
@@ -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.19.0
7
+ * The version of the OpenAPI document: 0.19.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,13 +13,14 @@
13
13
  */
14
14
  export class Configuration {
15
15
  constructor(param = {}) {
16
+ var _a;
16
17
  this.apiKey = param.apiKey;
17
18
  this.username = param.username;
18
19
  this.password = param.password;
19
20
  this.accessToken = param.accessToken;
20
21
  this.basePath = param.basePath;
21
22
  this.serverIndex = param.serverIndex;
22
- this.baseOptions = param.baseOptions;
23
+ 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);
23
24
  this.formDataCtor = param.formDataCtor;
24
25
  }
25
26
  /**
@@ -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).