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