@teemill/pickfaces 0.15.0 → 0.15.2

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.js CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Use this API to access your pickfaces. You must have the warehouse module installed to access this API. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.15.0
7
+ * The version of the OpenAPI document: 0.15.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -77,691 +77,6 @@ export const PickfacesApiAxiosParamCreator = function (configuration) {
77
77
  options: localVarRequestOptions,
78
78
  };
79
79
  }),
80
- /**
81
- * Delete a Pickface
82
- * @summary Delete Pickface
83
- * @param {string} project What project it is
84
- * @param {string} pickfaceId Unique identifier of a pickface
85
- * @param {*} [options] Override http request option.
86
- * @throws {RequiredError}
87
- */
88
- deletePickface: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
89
- // verify required parameter 'project' is not null or undefined
90
- assertParamExists('deletePickface', 'project', project);
91
- // verify required parameter 'pickfaceId' is not null or undefined
92
- assertParamExists('deletePickface', 'pickfaceId', pickfaceId);
93
- const localVarPath = `/v1/pickfaces/{pickfaceId}`
94
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
95
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
- let baseOptions;
98
- if (configuration) {
99
- baseOptions = configuration.baseOptions;
100
- }
101
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
102
- const localVarHeaderParameter = {};
103
- const localVarQueryParameter = {};
104
- // authentication session-oauth required
105
- // oauth required
106
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
107
- // authentication api-key required
108
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
109
- if (project !== undefined) {
110
- localVarQueryParameter['project'] = project;
111
- }
112
- setSearchParams(localVarUrlObj, localVarQueryParameter);
113
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
115
- return {
116
- url: toPathString(localVarUrlObj),
117
- options: localVarRequestOptions,
118
- };
119
- }),
120
- /**
121
- * Export pickfaces as a CSV file
122
- * @summary Export pickfaces
123
- * @param {string} project What project it is
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- */
127
- exportPickfaces: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
128
- // verify required parameter 'project' is not null or undefined
129
- assertParamExists('exportPickfaces', 'project', project);
130
- const localVarPath = `/v1/pickfaces/export`;
131
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
133
- let baseOptions;
134
- if (configuration) {
135
- baseOptions = configuration.baseOptions;
136
- }
137
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
138
- const localVarHeaderParameter = {};
139
- const localVarQueryParameter = {};
140
- // authentication session-oauth required
141
- // oauth required
142
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
143
- // authentication api-key required
144
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
145
- if (project !== undefined) {
146
- localVarQueryParameter['project'] = project;
147
- }
148
- setSearchParams(localVarUrlObj, localVarQueryParameter);
149
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
- return {
152
- url: toPathString(localVarUrlObj),
153
- options: localVarRequestOptions,
154
- };
155
- }),
156
- /**
157
- * Get a pickface
158
- * @summary Get pickface
159
- * @param {string} project What project it is
160
- * @param {string} pickfaceId Unique identifier of a pickface
161
- * @param {*} [options] Override http request option.
162
- * @throws {RequiredError}
163
- */
164
- getPickface: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
165
- // verify required parameter 'project' is not null or undefined
166
- assertParamExists('getPickface', 'project', project);
167
- // verify required parameter 'pickfaceId' is not null or undefined
168
- assertParamExists('getPickface', 'pickfaceId', pickfaceId);
169
- const localVarPath = `/v1/pickfaces/{pickfaceId}`
170
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
171
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
173
- let baseOptions;
174
- if (configuration) {
175
- baseOptions = configuration.baseOptions;
176
- }
177
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
178
- const localVarHeaderParameter = {};
179
- const localVarQueryParameter = {};
180
- // authentication session-oauth required
181
- // oauth required
182
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
183
- // authentication api-key required
184
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
185
- if (project !== undefined) {
186
- localVarQueryParameter['project'] = project;
187
- }
188
- setSearchParams(localVarUrlObj, localVarQueryParameter);
189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
- return {
192
- url: toPathString(localVarUrlObj),
193
- options: localVarRequestOptions,
194
- };
195
- }),
196
- /**
197
- * Lists pickface container models
198
- * @summary Get pickface container models
199
- * @param {string} project What project it is
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- getPickfaceContainerModels: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
204
- // verify required parameter 'project' is not null or undefined
205
- assertParamExists('getPickfaceContainerModels', 'project', project);
206
- const localVarPath = `/v1/pickfaces/container-models`;
207
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
- let baseOptions;
210
- if (configuration) {
211
- baseOptions = configuration.baseOptions;
212
- }
213
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
214
- const localVarHeaderParameter = {};
215
- const localVarQueryParameter = {};
216
- // authentication session-oauth required
217
- // oauth required
218
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
219
- // authentication api-key required
220
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
221
- if (project !== undefined) {
222
- localVarQueryParameter['project'] = project;
223
- }
224
- setSearchParams(localVarUrlObj, localVarQueryParameter);
225
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
- return {
228
- url: toPathString(localVarUrlObj),
229
- options: localVarRequestOptions,
230
- };
231
- }),
232
- /**
233
- * Lists all pickfaces available paginated into chunks
234
- * @summary List pickfaces
235
- * @param {string} project What project it is
236
- * @param {string} [search] Search term to filter based on pickface code
237
- * @param {number} [pageToken] Page reference token
238
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
239
- * @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
240
- * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- getPickfaces: (project_1, search_1, pageToken_1, pageSize_1, filters_1, sortBy_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, filters_1, sortBy_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, filters, sortBy, options = {}) {
245
- // verify required parameter 'project' is not null or undefined
246
- assertParamExists('getPickfaces', 'project', project);
247
- const localVarPath = `/v1/pickfaces`;
248
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
250
- let baseOptions;
251
- if (configuration) {
252
- baseOptions = configuration.baseOptions;
253
- }
254
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
- const localVarHeaderParameter = {};
256
- const localVarQueryParameter = {};
257
- // authentication session-oauth required
258
- // oauth required
259
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
260
- // authentication api-key required
261
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
262
- if (project !== undefined) {
263
- localVarQueryParameter['project'] = project;
264
- }
265
- if (search !== undefined) {
266
- localVarQueryParameter['search'] = search;
267
- }
268
- if (pageToken !== undefined) {
269
- localVarQueryParameter['pageToken'] = pageToken;
270
- }
271
- if (pageSize !== undefined) {
272
- localVarQueryParameter['pageSize'] = pageSize;
273
- }
274
- if (filters) {
275
- localVarQueryParameter['filters'] = filters;
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
- /**
289
- * Issue an empty pickface
290
- * @summary Issue empty pickface
291
- * @param {string} project What project it is
292
- * @param {string} pickfaceId Unique identifier of a pickface
293
- * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
294
- * @param {*} [options] Override http request option.
295
- * @throws {RequiredError}
296
- */
297
- issueEmptyPickface: (project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueEmptyPickfaceRequest, options = {}) {
298
- // verify required parameter 'project' is not null or undefined
299
- assertParamExists('issueEmptyPickface', 'project', project);
300
- // verify required parameter 'pickfaceId' is not null or undefined
301
- assertParamExists('issueEmptyPickface', 'pickfaceId', pickfaceId);
302
- // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
303
- assertParamExists('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest);
304
- const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
305
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
306
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
307
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
308
- let baseOptions;
309
- if (configuration) {
310
- baseOptions = configuration.baseOptions;
311
- }
312
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
313
- const localVarHeaderParameter = {};
314
- const localVarQueryParameter = {};
315
- // authentication session-oauth required
316
- // oauth required
317
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
318
- // authentication api-key required
319
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
320
- if (project !== undefined) {
321
- localVarQueryParameter['project'] = project;
322
- }
323
- localVarHeaderParameter['Content-Type'] = 'application/json';
324
- setSearchParams(localVarUrlObj, localVarQueryParameter);
325
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
- localVarRequestOptions.data = serializeDataIfNeeded(issueEmptyPickfaceRequest, localVarRequestOptions, configuration);
328
- return {
329
- url: toPathString(localVarUrlObj),
330
- options: localVarRequestOptions,
331
- };
332
- }),
333
- /**
334
- * Issue a pickface with wrong contents
335
- * @summary Issue wrong contents pickface
336
- * @param {string} project What project it is
337
- * @param {string} pickfaceId Unique identifier of a pickface
338
- * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- issueWrongContentsPickface: (project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueWrongContentsPickfaceRequest, options = {}) {
343
- // verify required parameter 'project' is not null or undefined
344
- assertParamExists('issueWrongContentsPickface', 'project', project);
345
- // verify required parameter 'pickfaceId' is not null or undefined
346
- assertParamExists('issueWrongContentsPickface', 'pickfaceId', pickfaceId);
347
- // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
348
- assertParamExists('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest);
349
- const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
350
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
351
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
352
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
353
- let baseOptions;
354
- if (configuration) {
355
- baseOptions = configuration.baseOptions;
356
- }
357
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
358
- const localVarHeaderParameter = {};
359
- const localVarQueryParameter = {};
360
- // authentication session-oauth required
361
- // oauth required
362
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
363
- // authentication api-key required
364
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
365
- if (project !== undefined) {
366
- localVarQueryParameter['project'] = project;
367
- }
368
- localVarHeaderParameter['Content-Type'] = 'application/json';
369
- setSearchParams(localVarUrlObj, localVarQueryParameter);
370
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
372
- localVarRequestOptions.data = serializeDataIfNeeded(issueWrongContentsPickfaceRequest, localVarRequestOptions, configuration);
373
- return {
374
- url: toPathString(localVarUrlObj),
375
- options: localVarRequestOptions,
376
- };
377
- }),
378
- /**
379
- * Get a list of pickface logs
380
- * @summary Get pickface logs
381
- * @param {string} project What project it is
382
- * @param {string} pickfaceId Unique identifier of a pickface
383
- * @param {number} [pageToken] Page reference token
384
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
385
- * @param {*} [options] Override http request option.
386
- * @throws {RequiredError}
387
- */
388
- listPickfaceLogs: (project_1, pickfaceId_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, pickfaceId, pageToken, pageSize, options = {}) {
389
- // verify required parameter 'project' is not null or undefined
390
- assertParamExists('listPickfaceLogs', 'project', project);
391
- // verify required parameter 'pickfaceId' is not null or undefined
392
- assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId);
393
- const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
394
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
395
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
397
- let baseOptions;
398
- if (configuration) {
399
- baseOptions = configuration.baseOptions;
400
- }
401
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
402
- const localVarHeaderParameter = {};
403
- const localVarQueryParameter = {};
404
- // authentication session-oauth required
405
- // oauth required
406
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
407
- // authentication api-key required
408
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
409
- if (project !== undefined) {
410
- localVarQueryParameter['project'] = project;
411
- }
412
- if (pageToken !== undefined) {
413
- localVarQueryParameter['pageToken'] = pageToken;
414
- }
415
- if (pageSize !== undefined) {
416
- localVarQueryParameter['pageSize'] = pageSize;
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
- /**
427
- * Move stock from one pickface to another in a single transaction
428
- * @summary Move stock
429
- * @param {string} project What project it is
430
- * @param {string} pickfaceId Unique identifier of a pickface
431
- * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
432
- * @param {*} [options] Override http request option.
433
- * @throws {RequiredError}
434
- */
435
- moveStock: (project_1, pickfaceId_1, moveStockRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, moveStockRequest_1, ...args_1], void 0, function* (project, pickfaceId, moveStockRequest, options = {}) {
436
- // verify required parameter 'project' is not null or undefined
437
- assertParamExists('moveStock', 'project', project);
438
- // verify required parameter 'pickfaceId' is not null or undefined
439
- assertParamExists('moveStock', 'pickfaceId', pickfaceId);
440
- // verify required parameter 'moveStockRequest' is not null or undefined
441
- assertParamExists('moveStock', 'moveStockRequest', moveStockRequest);
442
- const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
443
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
444
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
445
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
446
- let baseOptions;
447
- if (configuration) {
448
- baseOptions = configuration.baseOptions;
449
- }
450
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
451
- const localVarHeaderParameter = {};
452
- const localVarQueryParameter = {};
453
- // authentication session-oauth required
454
- // oauth required
455
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
456
- // authentication api-key required
457
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
458
- if (project !== undefined) {
459
- localVarQueryParameter['project'] = project;
460
- }
461
- localVarHeaderParameter['Content-Type'] = 'application/json';
462
- setSearchParams(localVarUrlObj, localVarQueryParameter);
463
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
- localVarRequestOptions.data = serializeDataIfNeeded(moveStockRequest, localVarRequestOptions, configuration);
466
- return {
467
- url: toPathString(localVarUrlObj),
468
- options: localVarRequestOptions,
469
- };
470
- }),
471
- /**
472
- * Print a pickface label
473
- * @summary Print pickface label
474
- * @param {string} project What project it is
475
- * @param {string} pickfaceId Unique identifier of a pickface
476
- * @param {string} deviceRef Unique identifier of a warehouse device
477
- * @param {*} [options] Override http request option.
478
- * @throws {RequiredError}
479
- */
480
- printPickfaceLabel: (project_1, pickfaceId_1, deviceRef_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, deviceRef_1, ...args_1], void 0, function* (project, pickfaceId, deviceRef, options = {}) {
481
- // verify required parameter 'project' is not null or undefined
482
- assertParamExists('printPickfaceLabel', 'project', project);
483
- // verify required parameter 'pickfaceId' is not null or undefined
484
- assertParamExists('printPickfaceLabel', 'pickfaceId', pickfaceId);
485
- // verify required parameter 'deviceRef' is not null or undefined
486
- assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef);
487
- const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
488
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
489
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
490
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
491
- let baseOptions;
492
- if (configuration) {
493
- baseOptions = configuration.baseOptions;
494
- }
495
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
496
- const localVarHeaderParameter = {};
497
- const localVarQueryParameter = {};
498
- // authentication session-oauth required
499
- // oauth required
500
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
501
- // authentication api-key required
502
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
503
- if (project !== undefined) {
504
- localVarQueryParameter['project'] = project;
505
- }
506
- if (deviceRef !== undefined) {
507
- localVarQueryParameter['deviceRef'] = deviceRef;
508
- }
509
- setSearchParams(localVarUrlObj, localVarQueryParameter);
510
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
512
- return {
513
- url: toPathString(localVarUrlObj),
514
- options: localVarRequestOptions,
515
- };
516
- }),
517
- /**
518
- * Print pickface labels
519
- * @summary Print pickface Labels
520
- * @param {string} project What project it is
521
- * @param {string} deviceRef Unique identifier of a warehouse device
522
- * @param {Array<string>} ids List of pickface ids
523
- * @param {*} [options] Override http request option.
524
- * @throws {RequiredError}
525
- */
526
- printPickfaceLabels: (project_1, deviceRef_1, ids_1, ...args_1) => __awaiter(this, [project_1, deviceRef_1, ids_1, ...args_1], void 0, function* (project, deviceRef, ids, options = {}) {
527
- // verify required parameter 'project' is not null or undefined
528
- assertParamExists('printPickfaceLabels', 'project', project);
529
- // verify required parameter 'deviceRef' is not null or undefined
530
- assertParamExists('printPickfaceLabels', 'deviceRef', deviceRef);
531
- // verify required parameter 'ids' is not null or undefined
532
- assertParamExists('printPickfaceLabels', 'ids', ids);
533
- const localVarPath = `/v1/pickfaces/print`;
534
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
535
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
536
- let baseOptions;
537
- if (configuration) {
538
- baseOptions = configuration.baseOptions;
539
- }
540
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
541
- const localVarHeaderParameter = {};
542
- const localVarQueryParameter = {};
543
- // authentication session-oauth required
544
- // oauth required
545
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
546
- // authentication api-key required
547
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
548
- if (project !== undefined) {
549
- localVarQueryParameter['project'] = project;
550
- }
551
- if (deviceRef !== undefined) {
552
- localVarQueryParameter['deviceRef'] = deviceRef;
553
- }
554
- if (ids) {
555
- localVarQueryParameter['ids'] = ids;
556
- }
557
- setSearchParams(localVarUrlObj, localVarQueryParameter);
558
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
- return {
561
- url: toPathString(localVarUrlObj),
562
- options: localVarRequestOptions,
563
- };
564
- }),
565
- /**
566
- * Resolves an issue on a pickface
567
- * @summary Resolve pickface issue
568
- * @param {string} project What project it is
569
- * @param {string} pickfaceId Unique identifier of a pickface
570
- * @param {*} [options] Override http request option.
571
- * @throws {RequiredError}
572
- */
573
- resolvePickfaceIssue: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
574
- // verify required parameter 'project' is not null or undefined
575
- assertParamExists('resolvePickfaceIssue', 'project', project);
576
- // verify required parameter 'pickfaceId' is not null or undefined
577
- assertParamExists('resolvePickfaceIssue', 'pickfaceId', pickfaceId);
578
- const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
579
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
580
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
581
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
582
- let baseOptions;
583
- if (configuration) {
584
- baseOptions = configuration.baseOptions;
585
- }
586
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
587
- const localVarHeaderParameter = {};
588
- const localVarQueryParameter = {};
589
- // authentication session-oauth required
590
- // oauth required
591
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
592
- // authentication api-key required
593
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
594
- if (project !== undefined) {
595
- localVarQueryParameter['project'] = project;
596
- }
597
- setSearchParams(localVarUrlObj, localVarQueryParameter);
598
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
600
- return {
601
- url: toPathString(localVarUrlObj),
602
- options: localVarRequestOptions,
603
- };
604
- }),
605
- /**
606
- * Suggest pickfaces for putting away stock
607
- * @summary Suggest pickfaces
608
- * @param {string} project What project it is
609
- * @param {string} variantRef Unique identifier of a warehouse variant
610
- * @param {number} quantity Number of variants
611
- * @param {number} [pageToken] Page reference token
612
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- suggestPickfaces: (project_1, variantRef_1, quantity_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, variantRef_1, quantity_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, variantRef, quantity, pageToken, pageSize, options = {}) {
617
- // verify required parameter 'project' is not null or undefined
618
- assertParamExists('suggestPickfaces', 'project', project);
619
- // verify required parameter 'variantRef' is not null or undefined
620
- assertParamExists('suggestPickfaces', 'variantRef', variantRef);
621
- // verify required parameter 'quantity' is not null or undefined
622
- assertParamExists('suggestPickfaces', 'quantity', quantity);
623
- const localVarPath = `/v1/pickfaces/suggest`;
624
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
625
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
626
- let baseOptions;
627
- if (configuration) {
628
- baseOptions = configuration.baseOptions;
629
- }
630
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
631
- const localVarHeaderParameter = {};
632
- const localVarQueryParameter = {};
633
- // authentication session-oauth required
634
- // oauth required
635
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
636
- // authentication api-key required
637
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
638
- if (project !== undefined) {
639
- localVarQueryParameter['project'] = project;
640
- }
641
- if (variantRef !== undefined) {
642
- localVarQueryParameter['variantRef'] = variantRef;
643
- }
644
- if (quantity !== undefined) {
645
- localVarQueryParameter['quantity'] = quantity;
646
- }
647
- if (pageToken !== undefined) {
648
- localVarQueryParameter['pageToken'] = pageToken;
649
- }
650
- if (pageSize !== undefined) {
651
- localVarQueryParameter['pageSize'] = pageSize;
652
- }
653
- setSearchParams(localVarUrlObj, localVarQueryParameter);
654
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
655
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
656
- return {
657
- url: toPathString(localVarUrlObj),
658
- options: localVarRequestOptions,
659
- };
660
- }),
661
- /**
662
- * Update a Pickface
663
- * @summary Update Pickface
664
- * @param {string} project What project it is
665
- * @param {string} pickfaceId Unique identifier of a pickface
666
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
667
- * @param {*} [options] Override http request option.
668
- * @throws {RequiredError}
669
- */
670
- updatePickface: (project_1, pickfaceId_1, updatePickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, updatePickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, updatePickfaceRequest, options = {}) {
671
- // verify required parameter 'project' is not null or undefined
672
- assertParamExists('updatePickface', 'project', project);
673
- // verify required parameter 'pickfaceId' is not null or undefined
674
- assertParamExists('updatePickface', 'pickfaceId', pickfaceId);
675
- // verify required parameter 'updatePickfaceRequest' is not null or undefined
676
- assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest);
677
- const localVarPath = `/v1/pickfaces/{pickfaceId}`
678
- .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
679
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
681
- let baseOptions;
682
- if (configuration) {
683
- baseOptions = configuration.baseOptions;
684
- }
685
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
686
- const localVarHeaderParameter = {};
687
- const localVarQueryParameter = {};
688
- // authentication session-oauth required
689
- // oauth required
690
- yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
691
- // authentication api-key required
692
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
693
- if (project !== undefined) {
694
- localVarQueryParameter['project'] = project;
695
- }
696
- localVarHeaderParameter['Content-Type'] = 'application/json';
697
- setSearchParams(localVarUrlObj, localVarQueryParameter);
698
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
699
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
700
- localVarRequestOptions.data = serializeDataIfNeeded(updatePickfaceRequest, localVarRequestOptions, configuration);
701
- return {
702
- url: toPathString(localVarUrlObj),
703
- options: localVarRequestOptions,
704
- };
705
- }),
706
- };
707
- };
708
- /**
709
- * PickfacesApi - functional programming interface
710
- * @export
711
- */
712
- export const PickfacesApiFp = function (configuration) {
713
- const localVarAxiosParamCreator = PickfacesApiAxiosParamCreator(configuration);
714
- return {
715
- /**
716
- * Create a Pickface
717
- * @summary Create Pickface
718
- * @param {string} project What project it is
719
- * @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
720
- * @param {*} [options] Override http request option.
721
- * @throws {RequiredError}
722
- */
723
- createPickface(project, createPickfaceRequest, options) {
724
- return __awaiter(this, void 0, void 0, function* () {
725
- var _a, _b, _c;
726
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPickface(project, createPickfaceRequest, options);
727
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
728
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.createPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
729
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
730
- });
731
- },
732
- /**
733
- * Delete a Pickface
734
- * @summary Delete Pickface
735
- * @param {string} project What project it is
736
- * @param {string} pickfaceId Unique identifier of a pickface
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- */
740
- deletePickface(project, pickfaceId, options) {
741
- return __awaiter(this, void 0, void 0, function* () {
742
- var _a, _b, _c;
743
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePickface(project, pickfaceId, options);
744
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
745
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.deletePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
746
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
747
- });
748
- },
749
- /**
750
- * Export pickfaces as a CSV file
751
- * @summary Export pickfaces
752
- * @param {string} project What project it is
753
- * @param {*} [options] Override http request option.
754
- * @throws {RequiredError}
755
- */
756
- exportPickfaces(project, options) {
757
- return __awaiter(this, void 0, void 0, function* () {
758
- var _a, _b, _c;
759
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, options);
760
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
761
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.exportPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
762
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
763
- });
764
- },
765
80
  /**
766
81
  * Get a pickface
767
82
  * @summary Get pickface
@@ -770,213 +85,150 @@ export const PickfacesApiFp = function (configuration) {
770
85
  * @param {*} [options] Override http request option.
771
86
  * @throws {RequiredError}
772
87
  */
773
- getPickface(project, pickfaceId, options) {
774
- return __awaiter(this, void 0, void 0, function* () {
775
- var _a, _b, _c;
776
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickface(project, pickfaceId, options);
777
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
778
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
779
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
780
- });
781
- },
782
- /**
783
- * Lists pickface container models
784
- * @summary Get pickface container models
785
- * @param {string} project What project it is
786
- * @param {*} [options] Override http request option.
787
- * @throws {RequiredError}
788
- */
789
- getPickfaceContainerModels(project, options) {
790
- return __awaiter(this, void 0, void 0, function* () {
791
- var _a, _b, _c;
792
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaceContainerModels(project, options);
793
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
794
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaceContainerModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
795
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
796
- });
797
- },
798
- /**
799
- * Lists all pickfaces available paginated into chunks
800
- * @summary List pickfaces
801
- * @param {string} project What project it is
802
- * @param {string} [search] Search term to filter based on pickface code
803
- * @param {number} [pageToken] Page reference token
804
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
805
- * @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
806
- * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
807
- * @param {*} [options] Override http request option.
808
- * @throws {RequiredError}
809
- */
810
- getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options) {
811
- return __awaiter(this, void 0, void 0, function* () {
812
- var _a, _b, _c;
813
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options);
814
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
815
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
816
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
817
- });
818
- },
819
- /**
820
- * Issue an empty pickface
821
- * @summary Issue empty pickface
822
- * @param {string} project What project it is
823
- * @param {string} pickfaceId Unique identifier of a pickface
824
- * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
825
- * @param {*} [options] Override http request option.
826
- * @throws {RequiredError}
827
- */
828
- issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options) {
829
- return __awaiter(this, void 0, void 0, function* () {
830
- var _a, _b, _c;
831
- const localVarAxiosArgs = yield localVarAxiosParamCreator.issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options);
832
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
833
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.issueEmptyPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
834
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
- });
836
- },
837
- /**
838
- * Issue a pickface with wrong contents
839
- * @summary Issue wrong contents pickface
840
- * @param {string} project What project it is
841
- * @param {string} pickfaceId Unique identifier of a pickface
842
- * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
843
- * @param {*} [options] Override http request option.
844
- * @throws {RequiredError}
845
- */
846
- issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options) {
847
- return __awaiter(this, void 0, void 0, function* () {
848
- var _a, _b, _c;
849
- const localVarAxiosArgs = yield localVarAxiosParamCreator.issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options);
850
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
851
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.issueWrongContentsPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
852
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
853
- });
854
- },
855
- /**
856
- * Get a list of pickface logs
857
- * @summary Get pickface logs
858
- * @param {string} project What project it is
859
- * @param {string} pickfaceId Unique identifier of a pickface
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 {*} [options] Override http request option.
863
- * @throws {RequiredError}
864
- */
865
- listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options) {
866
- return __awaiter(this, void 0, void 0, function* () {
867
- var _a, _b, _c;
868
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options);
869
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
870
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.listPickfaceLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
871
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
872
- });
873
- },
874
- /**
875
- * Move stock from one pickface to another in a single transaction
876
- * @summary Move stock
877
- * @param {string} project What project it is
878
- * @param {string} pickfaceId Unique identifier of a pickface
879
- * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
880
- * @param {*} [options] Override http request option.
881
- * @throws {RequiredError}
882
- */
883
- moveStock(project, pickfaceId, moveStockRequest, options) {
884
- return __awaiter(this, void 0, void 0, function* () {
885
- var _a, _b, _c;
886
- const localVarAxiosArgs = yield localVarAxiosParamCreator.moveStock(project, pickfaceId, moveStockRequest, options);
887
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
888
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.moveStock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
889
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
- });
891
- },
88
+ getPickface: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
89
+ // verify required parameter 'project' is not null or undefined
90
+ assertParamExists('getPickface', 'project', project);
91
+ // verify required parameter 'pickfaceId' is not null or undefined
92
+ assertParamExists('getPickface', 'pickfaceId', pickfaceId);
93
+ const localVarPath = `/v1/pickfaces/{pickfaceId}`
94
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
102
+ const localVarHeaderParameter = {};
103
+ const localVarQueryParameter = {};
104
+ // authentication session-oauth required
105
+ // oauth required
106
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
107
+ // authentication api-key required
108
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
109
+ if (project !== undefined) {
110
+ localVarQueryParameter['project'] = project;
111
+ }
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
115
+ return {
116
+ url: toPathString(localVarUrlObj),
117
+ options: localVarRequestOptions,
118
+ };
119
+ }),
892
120
  /**
893
- * Print a pickface label
894
- * @summary Print pickface label
121
+ * Lists all available pickfaces paginated into chunks
122
+ * @summary List pickfaces
895
123
  * @param {string} project What project it is
896
- * @param {string} pickfaceId Unique identifier of a pickface
897
- * @param {string} deviceRef Unique identifier of a warehouse device
124
+ * @param {string} [search] Search term to filter based on pickface code
125
+ * @param {number} [pageToken] Page reference token
126
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
127
+ * @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.
898
128
  * @param {*} [options] Override http request option.
899
129
  * @throws {RequiredError}
900
130
  */
901
- printPickfaceLabel(project, pickfaceId, deviceRef, options) {
902
- return __awaiter(this, void 0, void 0, function* () {
903
- var _a, _b, _c;
904
- const localVarAxiosArgs = yield localVarAxiosParamCreator.printPickfaceLabel(project, pickfaceId, deviceRef, options);
905
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
906
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.printPickfaceLabel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
907
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
908
- });
909
- },
131
+ 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 = {}) {
132
+ // verify required parameter 'project' is not null or undefined
133
+ assertParamExists('getPickfaces', 'project', project);
134
+ const localVarPath = `/v1/pickfaces`;
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ // authentication session-oauth required
145
+ // oauth required
146
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
147
+ // authentication api-key required
148
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
149
+ if (project !== undefined) {
150
+ localVarQueryParameter['project'] = project;
151
+ }
152
+ if (search !== undefined) {
153
+ localVarQueryParameter['search'] = search;
154
+ }
155
+ if (pageToken !== undefined) {
156
+ localVarQueryParameter['pageToken'] = pageToken;
157
+ }
158
+ if (pageSize !== undefined) {
159
+ localVarQueryParameter['pageSize'] = pageSize;
160
+ }
161
+ if (sortBy) {
162
+ localVarQueryParameter['sortBy'] = sortBy;
163
+ }
164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
167
+ return {
168
+ url: toPathString(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ }),
172
+ };
173
+ };
174
+ /**
175
+ * PickfacesApi - functional programming interface
176
+ * @export
177
+ */
178
+ export const PickfacesApiFp = function (configuration) {
179
+ const localVarAxiosParamCreator = PickfacesApiAxiosParamCreator(configuration);
180
+ return {
910
181
  /**
911
- * Print pickface labels
912
- * @summary Print pickface Labels
182
+ * Create a Pickface
183
+ * @summary Create Pickface
913
184
  * @param {string} project What project it is
914
- * @param {string} deviceRef Unique identifier of a warehouse device
915
- * @param {Array<string>} ids List of pickface ids
185
+ * @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
916
186
  * @param {*} [options] Override http request option.
917
187
  * @throws {RequiredError}
918
188
  */
919
- printPickfaceLabels(project, deviceRef, ids, options) {
189
+ createPickface(project, createPickfaceRequest, options) {
920
190
  return __awaiter(this, void 0, void 0, function* () {
921
191
  var _a, _b, _c;
922
- const localVarAxiosArgs = yield localVarAxiosParamCreator.printPickfaceLabels(project, deviceRef, ids, options);
192
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPickface(project, createPickfaceRequest, options);
923
193
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
924
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.printPickfaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
194
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.createPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
925
195
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
926
196
  });
927
197
  },
928
198
  /**
929
- * Resolves an issue on a pickface
930
- * @summary Resolve pickface issue
199
+ * Get a pickface
200
+ * @summary Get pickface
931
201
  * @param {string} project What project it is
932
202
  * @param {string} pickfaceId Unique identifier of a pickface
933
203
  * @param {*} [options] Override http request option.
934
204
  * @throws {RequiredError}
935
205
  */
936
- resolvePickfaceIssue(project, pickfaceId, options) {
206
+ getPickface(project, pickfaceId, options) {
937
207
  return __awaiter(this, void 0, void 0, function* () {
938
208
  var _a, _b, _c;
939
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resolvePickfaceIssue(project, pickfaceId, options);
209
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickface(project, pickfaceId, options);
940
210
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
941
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.resolvePickfaceIssue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
211
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
942
212
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
943
213
  });
944
214
  },
945
215
  /**
946
- * Suggest pickfaces for putting away stock
947
- * @summary Suggest pickfaces
216
+ * Lists all available pickfaces paginated into chunks
217
+ * @summary List pickfaces
948
218
  * @param {string} project What project it is
949
- * @param {string} variantRef Unique identifier of a warehouse variant
950
- * @param {number} quantity Number of variants
219
+ * @param {string} [search] Search term to filter based on pickface code
951
220
  * @param {number} [pageToken] Page reference token
952
221
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
222
+ * @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.
953
223
  * @param {*} [options] Override http request option.
954
224
  * @throws {RequiredError}
955
225
  */
956
- suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options) {
957
- return __awaiter(this, void 0, void 0, function* () {
958
- var _a, _b, _c;
959
- const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options);
960
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
961
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.suggestPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
962
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
963
- });
964
- },
965
- /**
966
- * Update a Pickface
967
- * @summary Update Pickface
968
- * @param {string} project What project it is
969
- * @param {string} pickfaceId Unique identifier of a pickface
970
- * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
971
- * @param {*} [options] Override http request option.
972
- * @throws {RequiredError}
973
- */
974
- updatePickface(project, pickfaceId, updatePickfaceRequest, options) {
226
+ getPickfaces(project, search, pageToken, pageSize, sortBy, options) {
975
227
  return __awaiter(this, void 0, void 0, function* () {
976
228
  var _a, _b, _c;
977
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, sortBy, options);
978
230
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
979
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.updatePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
231
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
980
232
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
981
233
  });
982
234
  },
@@ -999,26 +251,6 @@ export const PickfacesApiFactory = function (configuration, basePath, axios) {
999
251
  createPickface(requestParameters, options) {
1000
252
  return localVarFp.createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(axios, basePath));
1001
253
  },
1002
- /**
1003
- * Delete a Pickface
1004
- * @summary Delete Pickface
1005
- * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
1006
- * @param {*} [options] Override http request option.
1007
- * @throws {RequiredError}
1008
- */
1009
- deletePickface(requestParameters, options) {
1010
- return localVarFp.deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
1011
- },
1012
- /**
1013
- * Export pickfaces as a CSV file
1014
- * @summary Export pickfaces
1015
- * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
1016
- * @param {*} [options] Override http request option.
1017
- * @throws {RequiredError}
1018
- */
1019
- exportPickfaces(requestParameters, options) {
1020
- return localVarFp.exportPickfaces(requestParameters.project, options).then((request) => request(axios, basePath));
1021
- },
1022
254
  /**
1023
255
  * Get a pickface
1024
256
  * @summary Get pickface
@@ -1030,114 +262,14 @@ export const PickfacesApiFactory = function (configuration, basePath, axios) {
1030
262
  return localVarFp.getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
1031
263
  },
1032
264
  /**
1033
- * Lists pickface container models
1034
- * @summary Get pickface container models
1035
- * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
1036
- * @param {*} [options] Override http request option.
1037
- * @throws {RequiredError}
1038
- */
1039
- getPickfaceContainerModels(requestParameters, options) {
1040
- return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
1041
- },
1042
- /**
1043
- * Lists all pickfaces available paginated into chunks
265
+ * Lists all available pickfaces paginated into chunks
1044
266
  * @summary List pickfaces
1045
267
  * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1046
268
  * @param {*} [options] Override http request option.
1047
269
  * @throws {RequiredError}
1048
270
  */
1049
271
  getPickfaces(requestParameters, options) {
1050
- return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1051
- },
1052
- /**
1053
- * Issue an empty pickface
1054
- * @summary Issue empty pickface
1055
- * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
1056
- * @param {*} [options] Override http request option.
1057
- * @throws {RequiredError}
1058
- */
1059
- issueEmptyPickface(requestParameters, options) {
1060
- return localVarFp.issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(axios, basePath));
1061
- },
1062
- /**
1063
- * Issue a pickface with wrong contents
1064
- * @summary Issue wrong contents pickface
1065
- * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1066
- * @param {*} [options] Override http request option.
1067
- * @throws {RequiredError}
1068
- */
1069
- issueWrongContentsPickface(requestParameters, options) {
1070
- return localVarFp.issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(axios, basePath));
1071
- },
1072
- /**
1073
- * Get a list of pickface logs
1074
- * @summary Get pickface logs
1075
- * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
1076
- * @param {*} [options] Override http request option.
1077
- * @throws {RequiredError}
1078
- */
1079
- listPickfaceLogs(requestParameters, options) {
1080
- return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1081
- },
1082
- /**
1083
- * Move stock from one pickface to another in a single transaction
1084
- * @summary Move stock
1085
- * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
1086
- * @param {*} [options] Override http request option.
1087
- * @throws {RequiredError}
1088
- */
1089
- moveStock(requestParameters, options) {
1090
- return localVarFp.moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(axios, basePath));
1091
- },
1092
- /**
1093
- * Print a pickface label
1094
- * @summary Print pickface label
1095
- * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
1096
- * @param {*} [options] Override http request option.
1097
- * @throws {RequiredError}
1098
- */
1099
- printPickfaceLabel(requestParameters, options) {
1100
- return localVarFp.printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
1101
- },
1102
- /**
1103
- * Print pickface labels
1104
- * @summary Print pickface Labels
1105
- * @param {PickfacesApiPrintPickfaceLabelsRequest} requestParameters Request parameters.
1106
- * @param {*} [options] Override http request option.
1107
- * @throws {RequiredError}
1108
- */
1109
- printPickfaceLabels(requestParameters, options) {
1110
- return localVarFp.printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.ids, options).then((request) => request(axios, basePath));
1111
- },
1112
- /**
1113
- * Resolves an issue on a pickface
1114
- * @summary Resolve pickface issue
1115
- * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1116
- * @param {*} [options] Override http request option.
1117
- * @throws {RequiredError}
1118
- */
1119
- resolvePickfaceIssue(requestParameters, options) {
1120
- return localVarFp.resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
1121
- },
1122
- /**
1123
- * Suggest pickfaces for putting away stock
1124
- * @summary Suggest pickfaces
1125
- * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
1126
- * @param {*} [options] Override http request option.
1127
- * @throws {RequiredError}
1128
- */
1129
- suggestPickfaces(requestParameters, options) {
1130
- return localVarFp.suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1131
- },
1132
- /**
1133
- * Update a Pickface
1134
- * @summary Update Pickface
1135
- * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
1136
- * @param {*} [options] Override http request option.
1137
- * @throws {RequiredError}
1138
- */
1139
- updatePickface(requestParameters, options) {
1140
- return localVarFp.updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(axios, basePath));
272
+ return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(axios, basePath));
1141
273
  },
1142
274
  };
1143
275
  };
@@ -1159,28 +291,6 @@ export class PickfacesApi extends BaseAPI {
1159
291
  createPickface(requestParameters, options) {
1160
292
  return PickfacesApiFp(this.configuration).createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1161
293
  }
1162
- /**
1163
- * Delete a Pickface
1164
- * @summary Delete Pickface
1165
- * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
1166
- * @param {*} [options] Override http request option.
1167
- * @throws {RequiredError}
1168
- * @memberof PickfacesApi
1169
- */
1170
- deletePickface(requestParameters, options) {
1171
- return PickfacesApiFp(this.configuration).deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1172
- }
1173
- /**
1174
- * Export pickfaces as a CSV file
1175
- * @summary Export pickfaces
1176
- * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
1177
- * @param {*} [options] Override http request option.
1178
- * @throws {RequiredError}
1179
- * @memberof PickfacesApi
1180
- */
1181
- exportPickfaces(requestParameters, options) {
1182
- return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1183
- }
1184
294
  /**
1185
295
  * Get a pickface
1186
296
  * @summary Get pickface
@@ -1193,18 +303,7 @@ export class PickfacesApi extends BaseAPI {
1193
303
  return PickfacesApiFp(this.configuration).getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1194
304
  }
1195
305
  /**
1196
- * Lists pickface container models
1197
- * @summary Get pickface container models
1198
- * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
1199
- * @param {*} [options] Override http request option.
1200
- * @throws {RequiredError}
1201
- * @memberof PickfacesApi
1202
- */
1203
- getPickfaceContainerModels(requestParameters, options) {
1204
- return PickfacesApiFp(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1205
- }
1206
- /**
1207
- * Lists all pickfaces available paginated into chunks
306
+ * Lists all available pickfaces paginated into chunks
1208
307
  * @summary List pickfaces
1209
308
  * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1210
309
  * @param {*} [options] Override http request option.
@@ -1212,112 +311,23 @@ export class PickfacesApi extends BaseAPI {
1212
311
  * @memberof PickfacesApi
1213
312
  */
1214
313
  getPickfaces(requestParameters, options) {
1215
- return PickfacesApiFp(this.configuration).getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1216
- }
1217
- /**
1218
- * Issue an empty pickface
1219
- * @summary Issue empty pickface
1220
- * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
1221
- * @param {*} [options] Override http request option.
1222
- * @throws {RequiredError}
1223
- * @memberof PickfacesApi
1224
- */
1225
- issueEmptyPickface(requestParameters, options) {
1226
- return PickfacesApiFp(this.configuration).issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1227
- }
1228
- /**
1229
- * Issue a pickface with wrong contents
1230
- * @summary Issue wrong contents pickface
1231
- * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1232
- * @param {*} [options] Override http request option.
1233
- * @throws {RequiredError}
1234
- * @memberof PickfacesApi
1235
- */
1236
- issueWrongContentsPickface(requestParameters, options) {
1237
- return PickfacesApiFp(this.configuration).issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1238
- }
1239
- /**
1240
- * Get a list of pickface logs
1241
- * @summary Get pickface logs
1242
- * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
1243
- * @param {*} [options] Override http request option.
1244
- * @throws {RequiredError}
1245
- * @memberof PickfacesApi
1246
- */
1247
- listPickfaceLogs(requestParameters, options) {
1248
- return PickfacesApiFp(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1249
- }
1250
- /**
1251
- * Move stock from one pickface to another in a single transaction
1252
- * @summary Move stock
1253
- * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
1254
- * @param {*} [options] Override http request option.
1255
- * @throws {RequiredError}
1256
- * @memberof PickfacesApi
1257
- */
1258
- moveStock(requestParameters, options) {
1259
- return PickfacesApiFp(this.configuration).moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(this.axios, this.basePath));
1260
- }
1261
- /**
1262
- * Print a pickface label
1263
- * @summary Print pickface label
1264
- * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
1265
- * @param {*} [options] Override http request option.
1266
- * @throws {RequiredError}
1267
- * @memberof PickfacesApi
1268
- */
1269
- printPickfaceLabel(requestParameters, options) {
1270
- return PickfacesApiFp(this.configuration).printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
1271
- }
1272
- /**
1273
- * Print pickface labels
1274
- * @summary Print pickface Labels
1275
- * @param {PickfacesApiPrintPickfaceLabelsRequest} requestParameters Request parameters.
1276
- * @param {*} [options] Override http request option.
1277
- * @throws {RequiredError}
1278
- * @memberof PickfacesApi
1279
- */
1280
- printPickfaceLabels(requestParameters, options) {
1281
- return PickfacesApiFp(this.configuration).printPickfaceLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
1282
- }
1283
- /**
1284
- * Resolves an issue on a pickface
1285
- * @summary Resolve pickface issue
1286
- * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1287
- * @param {*} [options] Override http request option.
1288
- * @throws {RequiredError}
1289
- * @memberof PickfacesApi
1290
- */
1291
- resolvePickfaceIssue(requestParameters, options) {
1292
- return PickfacesApiFp(this.configuration).resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1293
- }
1294
- /**
1295
- * Suggest pickfaces for putting away stock
1296
- * @summary Suggest pickfaces
1297
- * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
1298
- * @param {*} [options] Override http request option.
1299
- * @throws {RequiredError}
1300
- * @memberof PickfacesApi
1301
- */
1302
- suggestPickfaces(requestParameters, options) {
1303
- return PickfacesApiFp(this.configuration).suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1304
- }
1305
- /**
1306
- * Update a Pickface
1307
- * @summary Update Pickface
1308
- * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
1309
- * @param {*} [options] Override http request option.
1310
- * @throws {RequiredError}
1311
- * @memberof PickfacesApi
1312
- */
1313
- updatePickface(requestParameters, options) {
1314
- return PickfacesApiFp(this.configuration).updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(this.axios, this.basePath));
314
+ return PickfacesApiFp(this.configuration).getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
1315
315
  }
1316
316
  }
1317
317
  /**
1318
318
  * @export
1319
319
  */
1320
- export const GetPickfacesFiltersEnum = {
1321
- Empty: 'empty',
1322
- Flagged: 'flagged'
320
+ export const GetPickfacesSortByEnum = {
321
+ Available: '+available',
322
+ Available2: '-available',
323
+ Wip: '+wip',
324
+ Wip2: '-wip',
325
+ Total: '+total',
326
+ Total2: '-total',
327
+ Fullness: '+fullness',
328
+ Fullness2: '-fullness',
329
+ Restocked: '+restocked',
330
+ Restocked2: '-restocked',
331
+ Picked: '+picked',
332
+ Picked2: '-picked'
1323
333
  };