@teemill/pickfaces 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -24
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1897 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1245 -0
- package/dist/api.js +997 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1245 -0
- package/dist/esm/api.js +990 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +18 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/apis/PickfacesApi.d.ts +0 -189
- package/dist/apis/PickfacesApi.js +0 -870
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/ContainerModel.d.ts +0 -61
- package/dist/models/ContainerModel.js +0 -61
- package/dist/models/ContainerModels.d.ts +0 -32
- package/dist/models/ContainerModels.js +0 -46
- package/dist/models/CreatePickfaceRequest.d.ts +0 -37
- package/dist/models/CreatePickfaceRequest.js +0 -47
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +0 -43
- package/dist/models/CreatePickfaceRequestDimensions.js +0 -49
- package/dist/models/GetPickfaces200Response.d.ts +0 -38
- package/dist/models/GetPickfaces200Response.js +0 -48
- package/dist/models/ListPickfaceLogs200Response.d.ts +0 -38
- package/dist/models/ListPickfaceLogs200Response.js +0 -48
- package/dist/models/ModelError.d.ts +0 -37
- package/dist/models/ModelError.js +0 -53
- package/dist/models/MoveStockRequest.d.ts +0 -43
- package/dist/models/MoveStockRequest.js +0 -55
- package/dist/models/Pickface.d.ts +0 -83
- package/dist/models/Pickface.js +0 -65
- package/dist/models/PickfaceContainerModel.d.ts +0 -37
- package/dist/models/PickfaceContainerModel.js +0 -47
- package/dist/models/PickfaceContentsInner.d.ts +0 -58
- package/dist/models/PickfaceContentsInner.js +0 -56
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +0 -47
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +0 -43
- package/dist/models/PickfaceContentsInnerMetadata.js +0 -49
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +0 -43
- package/dist/models/PickfaceContentsInnerQuantity.js +0 -49
- package/dist/models/PickfaceLastPicked.d.ts +0 -55
- package/dist/models/PickfaceLastPicked.js +0 -53
- package/dist/models/PickfaceLastRestocked.d.ts +0 -55
- package/dist/models/PickfaceLastRestocked.js +0 -53
- package/dist/models/PickfaceLog.d.ts +0 -55
- package/dist/models/PickfaceLog.js +0 -53
- package/dist/models/PickfaceLogUser.d.ts +0 -37
- package/dist/models/PickfaceLogUser.js +0 -52
- package/dist/models/PickfaceModel.d.ts +0 -37
- package/dist/models/PickfaceModel.js +0 -47
- package/dist/models/PickfaceModels.d.ts +0 -32
- package/dist/models/PickfaceModels.js +0 -46
- package/dist/models/UpdatePickfaceRequest.d.ts +0 -44
- package/dist/models/UpdatePickfaceRequest.js +0 -50
- package/dist/models/UpdatePickfaceRequestContents.d.ts +0 -37
- package/dist/models/UpdatePickfaceRequestContents.js +0 -47
- package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
- package/dist/models/UpdatePickfaceRequestContentsInner.js +0 -52
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -58
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -58
- package/dist/models/index.d.ts +0 -19
- package/dist/models/index.js +0 -37
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -565
- package/src/apis/PickfacesApi.ts +0 -821
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/ContainerModel.ts +0 -103
- package/src/models/ContainerModels.ts +0 -67
- package/src/models/CreatePickfaceRequest.ts +0 -68
- package/src/models/CreatePickfaceRequestDimensions.ts +0 -76
- package/src/models/GetPickfaces200Response.ts +0 -75
- package/src/models/ListPickfaceLogs200Response.ts +0 -75
- package/src/models/ModelError.ts +0 -74
- package/src/models/MoveStockRequest.ts +0 -79
- package/src/models/Pickface.ts +0 -149
- package/src/models/PickfaceContainerModel.ts +0 -68
- package/src/models/PickfaceContentsInner.ts +0 -111
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +0 -68
- package/src/models/PickfaceContentsInnerMetadata.ts +0 -76
- package/src/models/PickfaceContentsInnerQuantity.ts +0 -76
- package/src/models/PickfaceLastPicked.ts +0 -92
- package/src/models/PickfaceLastRestocked.ts +0 -92
- package/src/models/PickfaceLog.ts +0 -92
- package/src/models/PickfaceLogUser.ts +0 -73
- package/src/models/PickfaceModel.ts +0 -68
- package/src/models/PickfaceModels.ts +0 -67
- package/src/models/UpdatePickfaceRequest.ts +0 -83
- package/src/models/UpdatePickfaceRequestContents.ts +0 -68
- package/src/models/UpdatePickfaceRequestContentsInner.ts +0 -77
- package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +0 -81
- package/src/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.ts +0 -81
- package/src/models/index.ts +0 -21
- package/src/runtime.ts +0 -441
package/api.ts
ADDED
|
@@ -0,0 +1,1897 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
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)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.13.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ApiError
|
|
30
|
+
*/
|
|
31
|
+
export interface ApiError {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiError
|
|
36
|
+
*/
|
|
37
|
+
'code'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ApiError
|
|
42
|
+
*/
|
|
43
|
+
'message': string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface ContainerModel
|
|
49
|
+
*/
|
|
50
|
+
export interface ContainerModel {
|
|
51
|
+
/**
|
|
52
|
+
* Unique object identifier
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ContainerModel
|
|
55
|
+
*/
|
|
56
|
+
'id': string;
|
|
57
|
+
/**
|
|
58
|
+
* A reference to the resource location
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ContainerModel
|
|
61
|
+
*/
|
|
62
|
+
'ref': string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ContainerModel
|
|
67
|
+
*/
|
|
68
|
+
'name': string;
|
|
69
|
+
/**
|
|
70
|
+
* The width of the model in millimetres
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof ContainerModel
|
|
73
|
+
*/
|
|
74
|
+
'width'?: number;
|
|
75
|
+
/**
|
|
76
|
+
* The depth of the model in millimetres
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof ContainerModel
|
|
79
|
+
*/
|
|
80
|
+
'depth'?: number;
|
|
81
|
+
/**
|
|
82
|
+
* The height of the model in millimetres
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof ContainerModel
|
|
85
|
+
*/
|
|
86
|
+
'height'?: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface ContainerModels
|
|
92
|
+
*/
|
|
93
|
+
export interface ContainerModels {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<ContainerModel>}
|
|
97
|
+
* @memberof ContainerModels
|
|
98
|
+
*/
|
|
99
|
+
'containerModels'?: Array<ContainerModel>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @export
|
|
104
|
+
* @interface CreatePickfaceRequest
|
|
105
|
+
*/
|
|
106
|
+
export interface CreatePickfaceRequest {
|
|
107
|
+
/**
|
|
108
|
+
* The location of the pickface
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof CreatePickfaceRequest
|
|
111
|
+
*/
|
|
112
|
+
'location'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Unique object identifier
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof CreatePickfaceRequest
|
|
117
|
+
*/
|
|
118
|
+
'containerModelId'?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @export
|
|
123
|
+
* @interface GetPickfaces200Response
|
|
124
|
+
*/
|
|
125
|
+
export interface GetPickfaces200Response {
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {Array<Pickface>}
|
|
129
|
+
* @memberof GetPickfaces200Response
|
|
130
|
+
*/
|
|
131
|
+
'pickfaces'?: Array<Pickface>;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof GetPickfaces200Response
|
|
136
|
+
*/
|
|
137
|
+
'nextPageToken'?: number;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @interface ListPickfaceLogs200Response
|
|
143
|
+
*/
|
|
144
|
+
export interface ListPickfaceLogs200Response {
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {Array<PickfaceLog>}
|
|
148
|
+
* @memberof ListPickfaceLogs200Response
|
|
149
|
+
*/
|
|
150
|
+
'logs'?: Array<PickfaceLog>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {number}
|
|
154
|
+
* @memberof ListPickfaceLogs200Response
|
|
155
|
+
*/
|
|
156
|
+
'nextPageToken'?: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface MoveStockRequest
|
|
162
|
+
*/
|
|
163
|
+
export interface MoveStockRequest {
|
|
164
|
+
/**
|
|
165
|
+
* The variant to move from the pickface
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof MoveStockRequest
|
|
168
|
+
*/
|
|
169
|
+
'variantRef': string;
|
|
170
|
+
/**
|
|
171
|
+
* The quantity to move from the pickface
|
|
172
|
+
* @type {number}
|
|
173
|
+
* @memberof MoveStockRequest
|
|
174
|
+
*/
|
|
175
|
+
'quantity': number;
|
|
176
|
+
/**
|
|
177
|
+
* The pickface to move the stock to
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof MoveStockRequest
|
|
180
|
+
*/
|
|
181
|
+
'toPickfaceRef': string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @export
|
|
186
|
+
* @interface Pickface
|
|
187
|
+
*/
|
|
188
|
+
export interface Pickface {
|
|
189
|
+
/**
|
|
190
|
+
* Unique object identifier
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof Pickface
|
|
193
|
+
*/
|
|
194
|
+
'id'?: string;
|
|
195
|
+
/**
|
|
196
|
+
* A reference to the resource location
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof Pickface
|
|
199
|
+
*/
|
|
200
|
+
'ref'?: string;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof Pickface
|
|
205
|
+
*/
|
|
206
|
+
'code'?: string;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {boolean}
|
|
210
|
+
* @memberof Pickface
|
|
211
|
+
*/
|
|
212
|
+
'enabled'?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {PickfaceContainerModel}
|
|
216
|
+
* @memberof Pickface
|
|
217
|
+
*/
|
|
218
|
+
'containerModel'?: PickfaceContainerModel;
|
|
219
|
+
/**
|
|
220
|
+
* The percentage of the pickface that has been taken up by its contents
|
|
221
|
+
* @type {number}
|
|
222
|
+
* @memberof Pickface
|
|
223
|
+
*/
|
|
224
|
+
'fullness'?: number;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {PickfaceLastPicked}
|
|
228
|
+
* @memberof Pickface
|
|
229
|
+
*/
|
|
230
|
+
'lastPicked'?: PickfaceLastPicked;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @type {PickfaceLastRestocked}
|
|
234
|
+
* @memberof Pickface
|
|
235
|
+
*/
|
|
236
|
+
'lastRestocked'?: PickfaceLastRestocked;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @type {Array<PickfaceContentsInner>}
|
|
240
|
+
* @memberof Pickface
|
|
241
|
+
*/
|
|
242
|
+
'contents'?: Array<PickfaceContentsInner>;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @export
|
|
247
|
+
* @interface PickfaceContainerModel
|
|
248
|
+
*/
|
|
249
|
+
export interface PickfaceContainerModel {
|
|
250
|
+
/**
|
|
251
|
+
* Unique object identifier
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof PickfaceContainerModel
|
|
254
|
+
*/
|
|
255
|
+
'id'?: string;
|
|
256
|
+
/**
|
|
257
|
+
* A reference to the resource location
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof PickfaceContainerModel
|
|
260
|
+
*/
|
|
261
|
+
'ref'?: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @interface PickfaceContentsInner
|
|
267
|
+
*/
|
|
268
|
+
export interface PickfaceContentsInner {
|
|
269
|
+
/**
|
|
270
|
+
* A reference to the resource location
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof PickfaceContentsInner
|
|
273
|
+
*/
|
|
274
|
+
'variantRef'?: string;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof PickfaceContentsInner
|
|
279
|
+
*/
|
|
280
|
+
'ownerProjectId'?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {PickfaceContentsInnerQuantity}
|
|
284
|
+
* @memberof PickfaceContentsInner
|
|
285
|
+
*/
|
|
286
|
+
'quantity'?: PickfaceContentsInnerQuantity;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @type {Array<PickfaceContentsInnerApplicationsInner>}
|
|
290
|
+
* @memberof PickfaceContentsInner
|
|
291
|
+
*/
|
|
292
|
+
'applications'?: Array<PickfaceContentsInnerApplicationsInner>;
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @type {PickfaceContentsInnerMetadata}
|
|
296
|
+
* @memberof PickfaceContentsInner
|
|
297
|
+
*/
|
|
298
|
+
'metadata'?: PickfaceContentsInnerMetadata | null;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @export
|
|
303
|
+
* @interface PickfaceContentsInnerApplicationsInner
|
|
304
|
+
*/
|
|
305
|
+
export interface PickfaceContentsInnerApplicationsInner {
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof PickfaceContentsInnerApplicationsInner
|
|
310
|
+
*/
|
|
311
|
+
'placement'?: string;
|
|
312
|
+
/**
|
|
313
|
+
* A unique identifier for the application
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof PickfaceContentsInnerApplicationsInner
|
|
316
|
+
*/
|
|
317
|
+
'signature'?: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Any additional metadata
|
|
321
|
+
* @export
|
|
322
|
+
* @interface PickfaceContentsInnerMetadata
|
|
323
|
+
*/
|
|
324
|
+
export interface PickfaceContentsInnerMetadata {
|
|
325
|
+
/**
|
|
326
|
+
* The title of the product
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
329
|
+
*/
|
|
330
|
+
'title'?: string | null;
|
|
331
|
+
/**
|
|
332
|
+
* The image of the front of the product
|
|
333
|
+
* @type {string}
|
|
334
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
335
|
+
*/
|
|
336
|
+
'frontImage'?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* The image of the back of the product
|
|
339
|
+
* @type {string}
|
|
340
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
341
|
+
*/
|
|
342
|
+
'backImage'?: string | null;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @export
|
|
347
|
+
* @interface PickfaceContentsInnerQuantity
|
|
348
|
+
*/
|
|
349
|
+
export interface PickfaceContentsInnerQuantity {
|
|
350
|
+
/**
|
|
351
|
+
* How many are in the box
|
|
352
|
+
* @type {number}
|
|
353
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
354
|
+
*/
|
|
355
|
+
'total'?: number;
|
|
356
|
+
/**
|
|
357
|
+
* How many are available to reserve
|
|
358
|
+
* @type {number}
|
|
359
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
360
|
+
*/
|
|
361
|
+
'available'?: number;
|
|
362
|
+
/**
|
|
363
|
+
* How many are pending some action e.g. to be picked
|
|
364
|
+
* @type {number}
|
|
365
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
366
|
+
*/
|
|
367
|
+
'reserved'?: number;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @export
|
|
372
|
+
* @interface PickfaceLastPicked
|
|
373
|
+
*/
|
|
374
|
+
export interface PickfaceLastPicked {
|
|
375
|
+
/**
|
|
376
|
+
* Unique object identifier
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof PickfaceLastPicked
|
|
379
|
+
*/
|
|
380
|
+
'id'?: string;
|
|
381
|
+
/**
|
|
382
|
+
* A reference to the resource location
|
|
383
|
+
* @type {string}
|
|
384
|
+
* @memberof PickfaceLastPicked
|
|
385
|
+
*/
|
|
386
|
+
'userRef'?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The action that was taken
|
|
389
|
+
* @type {string}
|
|
390
|
+
* @memberof PickfaceLastPicked
|
|
391
|
+
*/
|
|
392
|
+
'action'?: string;
|
|
393
|
+
/**
|
|
394
|
+
* The reason for the action
|
|
395
|
+
* @type {string}
|
|
396
|
+
* @memberof PickfaceLastPicked
|
|
397
|
+
*/
|
|
398
|
+
'reason'?: string | null;
|
|
399
|
+
/**
|
|
400
|
+
* ISO 8601 Created at timestamp
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof PickfaceLastPicked
|
|
403
|
+
*/
|
|
404
|
+
'createdAt'?: string;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @export
|
|
409
|
+
* @interface PickfaceLastRestocked
|
|
410
|
+
*/
|
|
411
|
+
export interface PickfaceLastRestocked {
|
|
412
|
+
/**
|
|
413
|
+
* Unique object identifier
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof PickfaceLastRestocked
|
|
416
|
+
*/
|
|
417
|
+
'id'?: string;
|
|
418
|
+
/**
|
|
419
|
+
* A reference to the resource location
|
|
420
|
+
* @type {string}
|
|
421
|
+
* @memberof PickfaceLastRestocked
|
|
422
|
+
*/
|
|
423
|
+
'userRef'?: string;
|
|
424
|
+
/**
|
|
425
|
+
* The action that was taken
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof PickfaceLastRestocked
|
|
428
|
+
*/
|
|
429
|
+
'action'?: string;
|
|
430
|
+
/**
|
|
431
|
+
* The reason for the action
|
|
432
|
+
* @type {string}
|
|
433
|
+
* @memberof PickfaceLastRestocked
|
|
434
|
+
*/
|
|
435
|
+
'reason'?: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* ISO 8601 Created at timestamp
|
|
438
|
+
* @type {string}
|
|
439
|
+
* @memberof PickfaceLastRestocked
|
|
440
|
+
*/
|
|
441
|
+
'createdAt'?: string;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @export
|
|
446
|
+
* @interface PickfaceLog
|
|
447
|
+
*/
|
|
448
|
+
export interface PickfaceLog {
|
|
449
|
+
/**
|
|
450
|
+
* Unique object identifier
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof PickfaceLog
|
|
453
|
+
*/
|
|
454
|
+
'id'?: string;
|
|
455
|
+
/**
|
|
456
|
+
* A reference to the resource location
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @memberof PickfaceLog
|
|
459
|
+
*/
|
|
460
|
+
'userRef'?: string;
|
|
461
|
+
/**
|
|
462
|
+
* The action that was taken
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof PickfaceLog
|
|
465
|
+
*/
|
|
466
|
+
'action'?: string;
|
|
467
|
+
/**
|
|
468
|
+
* The reason for the action
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof PickfaceLog
|
|
471
|
+
*/
|
|
472
|
+
'reason'?: string | null;
|
|
473
|
+
/**
|
|
474
|
+
* ISO 8601 Created at timestamp
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof PickfaceLog
|
|
477
|
+
*/
|
|
478
|
+
'createdAt'?: string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* A list of updates to apply to the pickface.
|
|
482
|
+
* @export
|
|
483
|
+
* @interface UpdatePickfaceRequest
|
|
484
|
+
*/
|
|
485
|
+
export interface UpdatePickfaceRequest {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {boolean}
|
|
489
|
+
* @memberof UpdatePickfaceRequest
|
|
490
|
+
*/
|
|
491
|
+
'enabled'?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Unique object identifier
|
|
494
|
+
* @type {string}
|
|
495
|
+
* @memberof UpdatePickfaceRequest
|
|
496
|
+
*/
|
|
497
|
+
'containerModelId'?: string;
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @type {Array<UpdatePickfaceRequestContentsInner>}
|
|
501
|
+
* @memberof UpdatePickfaceRequest
|
|
502
|
+
*/
|
|
503
|
+
'contents'?: Array<UpdatePickfaceRequestContentsInner> | null;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @export
|
|
508
|
+
* @interface UpdatePickfaceRequestContentsInner
|
|
509
|
+
*/
|
|
510
|
+
export interface UpdatePickfaceRequestContentsInner {
|
|
511
|
+
/**
|
|
512
|
+
* The variant to add or subtract from the pickface
|
|
513
|
+
* @type {string}
|
|
514
|
+
* @memberof UpdatePickfaceRequestContentsInner
|
|
515
|
+
*/
|
|
516
|
+
'variantRef': string;
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* @type {UpdatePickfaceRequestContentsInnerQuantity}
|
|
520
|
+
* @memberof UpdatePickfaceRequestContentsInner
|
|
521
|
+
*/
|
|
522
|
+
'quantity': UpdatePickfaceRequestContentsInnerQuantity;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @export
|
|
527
|
+
* @interface UpdatePickfaceRequestContentsInnerQuantity
|
|
528
|
+
*/
|
|
529
|
+
export interface UpdatePickfaceRequestContentsInnerQuantity {
|
|
530
|
+
/**
|
|
531
|
+
* The operation to perform on the pickface
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof UpdatePickfaceRequestContentsInnerQuantity
|
|
534
|
+
*/
|
|
535
|
+
'operation': UpdatePickfaceRequestContentsInnerQuantityOperationEnum;
|
|
536
|
+
/**
|
|
537
|
+
* The value to use with the operation
|
|
538
|
+
* @type {number}
|
|
539
|
+
* @memberof UpdatePickfaceRequestContentsInnerQuantity
|
|
540
|
+
*/
|
|
541
|
+
'value': number;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export const UpdatePickfaceRequestContentsInnerQuantityOperationEnum = {
|
|
545
|
+
Add: 'add',
|
|
546
|
+
Subtract: 'subtract'
|
|
547
|
+
} as const;
|
|
548
|
+
|
|
549
|
+
export type UpdatePickfaceRequestContentsInnerQuantityOperationEnum = typeof UpdatePickfaceRequestContentsInnerQuantityOperationEnum[keyof typeof UpdatePickfaceRequestContentsInnerQuantityOperationEnum];
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* PickfacesApi - axios parameter creator
|
|
554
|
+
* @export
|
|
555
|
+
*/
|
|
556
|
+
export const PickfacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
557
|
+
return {
|
|
558
|
+
/**
|
|
559
|
+
* Create a Pickface
|
|
560
|
+
* @summary Create Pickface
|
|
561
|
+
* @param {string} project What project it is
|
|
562
|
+
* @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
createPickface: async (project: string, createPickfaceRequest: CreatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
567
|
+
// verify required parameter 'project' is not null or undefined
|
|
568
|
+
assertParamExists('createPickface', 'project', project)
|
|
569
|
+
// verify required parameter 'createPickfaceRequest' is not null or undefined
|
|
570
|
+
assertParamExists('createPickface', 'createPickfaceRequest', createPickfaceRequest)
|
|
571
|
+
const localVarPath = `/v1/pickfaces`;
|
|
572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
574
|
+
let baseOptions;
|
|
575
|
+
if (configuration) {
|
|
576
|
+
baseOptions = configuration.baseOptions;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
580
|
+
const localVarHeaderParameter = {} as any;
|
|
581
|
+
const localVarQueryParameter = {} as any;
|
|
582
|
+
|
|
583
|
+
// authentication session-oauth required
|
|
584
|
+
// oauth required
|
|
585
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
586
|
+
|
|
587
|
+
// authentication api-key required
|
|
588
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
589
|
+
|
|
590
|
+
if (project !== undefined) {
|
|
591
|
+
localVarQueryParameter['project'] = project;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
597
|
+
|
|
598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
600
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
601
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPickfaceRequest, localVarRequestOptions, configuration)
|
|
602
|
+
|
|
603
|
+
return {
|
|
604
|
+
url: toPathString(localVarUrlObj),
|
|
605
|
+
options: localVarRequestOptions,
|
|
606
|
+
};
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
* Delete a Pickface
|
|
610
|
+
* @summary Delete Pickface
|
|
611
|
+
* @param {string} project What project it is
|
|
612
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
deletePickface: async (project: string, pickfaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
617
|
+
// verify required parameter 'project' is not null or undefined
|
|
618
|
+
assertParamExists('deletePickface', 'project', project)
|
|
619
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
620
|
+
assertParamExists('deletePickface', 'pickfaceId', pickfaceId)
|
|
621
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}`
|
|
622
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
623
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
624
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
625
|
+
let baseOptions;
|
|
626
|
+
if (configuration) {
|
|
627
|
+
baseOptions = configuration.baseOptions;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
631
|
+
const localVarHeaderParameter = {} as any;
|
|
632
|
+
const localVarQueryParameter = {} as any;
|
|
633
|
+
|
|
634
|
+
// authentication session-oauth required
|
|
635
|
+
// oauth required
|
|
636
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
637
|
+
|
|
638
|
+
// authentication api-key required
|
|
639
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
640
|
+
|
|
641
|
+
if (project !== undefined) {
|
|
642
|
+
localVarQueryParameter['project'] = project;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
648
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
649
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
650
|
+
|
|
651
|
+
return {
|
|
652
|
+
url: toPathString(localVarUrlObj),
|
|
653
|
+
options: localVarRequestOptions,
|
|
654
|
+
};
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
* Export pickfaces as a CSV file
|
|
658
|
+
* @summary Export pickfaces
|
|
659
|
+
* @param {string} project What project it is
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
exportPickfaces: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
664
|
+
// verify required parameter 'project' is not null or undefined
|
|
665
|
+
assertParamExists('exportPickfaces', 'project', project)
|
|
666
|
+
const localVarPath = `/v1/pickfaces/export`;
|
|
667
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
668
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
669
|
+
let baseOptions;
|
|
670
|
+
if (configuration) {
|
|
671
|
+
baseOptions = configuration.baseOptions;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
675
|
+
const localVarHeaderParameter = {} as any;
|
|
676
|
+
const localVarQueryParameter = {} as any;
|
|
677
|
+
|
|
678
|
+
// authentication session-oauth required
|
|
679
|
+
// oauth required
|
|
680
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
681
|
+
|
|
682
|
+
// authentication api-key required
|
|
683
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
684
|
+
|
|
685
|
+
if (project !== undefined) {
|
|
686
|
+
localVarQueryParameter['project'] = project;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
693
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
694
|
+
|
|
695
|
+
return {
|
|
696
|
+
url: toPathString(localVarUrlObj),
|
|
697
|
+
options: localVarRequestOptions,
|
|
698
|
+
};
|
|
699
|
+
},
|
|
700
|
+
/**
|
|
701
|
+
* Get a pickface
|
|
702
|
+
* @summary Get pickface
|
|
703
|
+
* @param {string} project What project it is
|
|
704
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
*/
|
|
708
|
+
getPickface: async (project: string, pickfaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
709
|
+
// verify required parameter 'project' is not null or undefined
|
|
710
|
+
assertParamExists('getPickface', 'project', project)
|
|
711
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
712
|
+
assertParamExists('getPickface', 'pickfaceId', pickfaceId)
|
|
713
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}`
|
|
714
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
715
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
717
|
+
let baseOptions;
|
|
718
|
+
if (configuration) {
|
|
719
|
+
baseOptions = configuration.baseOptions;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
723
|
+
const localVarHeaderParameter = {} as any;
|
|
724
|
+
const localVarQueryParameter = {} as any;
|
|
725
|
+
|
|
726
|
+
// authentication session-oauth required
|
|
727
|
+
// oauth required
|
|
728
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
729
|
+
|
|
730
|
+
// authentication api-key required
|
|
731
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
732
|
+
|
|
733
|
+
if (project !== undefined) {
|
|
734
|
+
localVarQueryParameter['project'] = project;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
741
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
742
|
+
|
|
743
|
+
return {
|
|
744
|
+
url: toPathString(localVarUrlObj),
|
|
745
|
+
options: localVarRequestOptions,
|
|
746
|
+
};
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* Lists pickface container models
|
|
750
|
+
* @summary Get pickface container models
|
|
751
|
+
* @param {string} project What project it is
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
*/
|
|
755
|
+
getPickfaceContainerModels: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
756
|
+
// verify required parameter 'project' is not null or undefined
|
|
757
|
+
assertParamExists('getPickfaceContainerModels', 'project', project)
|
|
758
|
+
const localVarPath = `/v1/pickfaces/container-models`;
|
|
759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
760
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
761
|
+
let baseOptions;
|
|
762
|
+
if (configuration) {
|
|
763
|
+
baseOptions = configuration.baseOptions;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
767
|
+
const localVarHeaderParameter = {} as any;
|
|
768
|
+
const localVarQueryParameter = {} as any;
|
|
769
|
+
|
|
770
|
+
// authentication session-oauth required
|
|
771
|
+
// oauth required
|
|
772
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
773
|
+
|
|
774
|
+
// authentication api-key required
|
|
775
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
776
|
+
|
|
777
|
+
if (project !== undefined) {
|
|
778
|
+
localVarQueryParameter['project'] = project;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
785
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
786
|
+
|
|
787
|
+
return {
|
|
788
|
+
url: toPathString(localVarUrlObj),
|
|
789
|
+
options: localVarRequestOptions,
|
|
790
|
+
};
|
|
791
|
+
},
|
|
792
|
+
/**
|
|
793
|
+
* Lists all pickfaces available paginated into chunks
|
|
794
|
+
* @summary List pickfaces
|
|
795
|
+
* @param {string} project What project it is
|
|
796
|
+
* @param {string} [search] Search term to filter based on pickface code
|
|
797
|
+
* @param {number} [pageToken] Page reference token
|
|
798
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
799
|
+
* @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
|
|
800
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
getPickfaces: async (project: string, search?: string, pageToken?: number, pageSize?: number, filters?: Array<GetPickfacesFiltersEnum>, sortBy?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
805
|
+
// verify required parameter 'project' is not null or undefined
|
|
806
|
+
assertParamExists('getPickfaces', 'project', project)
|
|
807
|
+
const localVarPath = `/v1/pickfaces`;
|
|
808
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
809
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
810
|
+
let baseOptions;
|
|
811
|
+
if (configuration) {
|
|
812
|
+
baseOptions = configuration.baseOptions;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
816
|
+
const localVarHeaderParameter = {} as any;
|
|
817
|
+
const localVarQueryParameter = {} as any;
|
|
818
|
+
|
|
819
|
+
// authentication session-oauth required
|
|
820
|
+
// oauth required
|
|
821
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
822
|
+
|
|
823
|
+
// authentication api-key required
|
|
824
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
825
|
+
|
|
826
|
+
if (project !== undefined) {
|
|
827
|
+
localVarQueryParameter['project'] = project;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
if (search !== undefined) {
|
|
831
|
+
localVarQueryParameter['search'] = search;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
if (pageToken !== undefined) {
|
|
835
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (pageSize !== undefined) {
|
|
839
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if (filters) {
|
|
843
|
+
localVarQueryParameter['filters'] = filters;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
if (sortBy) {
|
|
847
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
853
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
854
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
855
|
+
|
|
856
|
+
return {
|
|
857
|
+
url: toPathString(localVarUrlObj),
|
|
858
|
+
options: localVarRequestOptions,
|
|
859
|
+
};
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
* Get a list of pickface logs
|
|
863
|
+
* @summary Get pickface logs
|
|
864
|
+
* @param {string} project What project it is
|
|
865
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
866
|
+
* @param {number} [pageToken] Page reference token
|
|
867
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
*/
|
|
871
|
+
listPickfaceLogs: async (project: string, pickfaceId: string, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
872
|
+
// verify required parameter 'project' is not null or undefined
|
|
873
|
+
assertParamExists('listPickfaceLogs', 'project', project)
|
|
874
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
875
|
+
assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId)
|
|
876
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
|
|
877
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
880
|
+
let baseOptions;
|
|
881
|
+
if (configuration) {
|
|
882
|
+
baseOptions = configuration.baseOptions;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
886
|
+
const localVarHeaderParameter = {} as any;
|
|
887
|
+
const localVarQueryParameter = {} as any;
|
|
888
|
+
|
|
889
|
+
// authentication session-oauth required
|
|
890
|
+
// oauth required
|
|
891
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
892
|
+
|
|
893
|
+
// authentication api-key required
|
|
894
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
895
|
+
|
|
896
|
+
if (project !== undefined) {
|
|
897
|
+
localVarQueryParameter['project'] = project;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (pageToken !== undefined) {
|
|
901
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
if (pageSize !== undefined) {
|
|
905
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
912
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
913
|
+
|
|
914
|
+
return {
|
|
915
|
+
url: toPathString(localVarUrlObj),
|
|
916
|
+
options: localVarRequestOptions,
|
|
917
|
+
};
|
|
918
|
+
},
|
|
919
|
+
/**
|
|
920
|
+
* Move stock from one pickface to another in a single transaction
|
|
921
|
+
* @summary Move stock
|
|
922
|
+
* @param {string} project What project it is
|
|
923
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
924
|
+
* @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
*/
|
|
928
|
+
moveStock: async (project: string, pickfaceId: string, moveStockRequest: MoveStockRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
929
|
+
// verify required parameter 'project' is not null or undefined
|
|
930
|
+
assertParamExists('moveStock', 'project', project)
|
|
931
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
932
|
+
assertParamExists('moveStock', 'pickfaceId', pickfaceId)
|
|
933
|
+
// verify required parameter 'moveStockRequest' is not null or undefined
|
|
934
|
+
assertParamExists('moveStock', 'moveStockRequest', moveStockRequest)
|
|
935
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
|
|
936
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
938
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
939
|
+
let baseOptions;
|
|
940
|
+
if (configuration) {
|
|
941
|
+
baseOptions = configuration.baseOptions;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
945
|
+
const localVarHeaderParameter = {} as any;
|
|
946
|
+
const localVarQueryParameter = {} as any;
|
|
947
|
+
|
|
948
|
+
// authentication session-oauth required
|
|
949
|
+
// oauth required
|
|
950
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
951
|
+
|
|
952
|
+
// authentication api-key required
|
|
953
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
954
|
+
|
|
955
|
+
if (project !== undefined) {
|
|
956
|
+
localVarQueryParameter['project'] = project;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
962
|
+
|
|
963
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
965
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
966
|
+
localVarRequestOptions.data = serializeDataIfNeeded(moveStockRequest, localVarRequestOptions, configuration)
|
|
967
|
+
|
|
968
|
+
return {
|
|
969
|
+
url: toPathString(localVarUrlObj),
|
|
970
|
+
options: localVarRequestOptions,
|
|
971
|
+
};
|
|
972
|
+
},
|
|
973
|
+
/**
|
|
974
|
+
* Print a pickface label
|
|
975
|
+
* @summary Print pickface label
|
|
976
|
+
* @param {string} project What project it is
|
|
977
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
978
|
+
* @param {string} deviceRef Unique identifier of a warehouse device
|
|
979
|
+
* @param {*} [options] Override http request option.
|
|
980
|
+
* @throws {RequiredError}
|
|
981
|
+
*/
|
|
982
|
+
printPickfaceLabel: async (project: string, pickfaceId: string, deviceRef: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
983
|
+
// verify required parameter 'project' is not null or undefined
|
|
984
|
+
assertParamExists('printPickfaceLabel', 'project', project)
|
|
985
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
986
|
+
assertParamExists('printPickfaceLabel', 'pickfaceId', pickfaceId)
|
|
987
|
+
// verify required parameter 'deviceRef' is not null or undefined
|
|
988
|
+
assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef)
|
|
989
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
|
|
990
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
992
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
993
|
+
let baseOptions;
|
|
994
|
+
if (configuration) {
|
|
995
|
+
baseOptions = configuration.baseOptions;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
999
|
+
const localVarHeaderParameter = {} as any;
|
|
1000
|
+
const localVarQueryParameter = {} as any;
|
|
1001
|
+
|
|
1002
|
+
// authentication session-oauth required
|
|
1003
|
+
// oauth required
|
|
1004
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1005
|
+
|
|
1006
|
+
// authentication api-key required
|
|
1007
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1008
|
+
|
|
1009
|
+
if (project !== undefined) {
|
|
1010
|
+
localVarQueryParameter['project'] = project;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
if (deviceRef !== undefined) {
|
|
1014
|
+
localVarQueryParameter['deviceRef'] = deviceRef;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1021
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1022
|
+
|
|
1023
|
+
return {
|
|
1024
|
+
url: toPathString(localVarUrlObj),
|
|
1025
|
+
options: localVarRequestOptions,
|
|
1026
|
+
};
|
|
1027
|
+
},
|
|
1028
|
+
/**
|
|
1029
|
+
* Suggest pickfaces for putting away stock
|
|
1030
|
+
* @summary Suggest pickfaces
|
|
1031
|
+
* @param {string} project What project it is
|
|
1032
|
+
* @param {string} variantRef Unique identifier of a warehouse variant
|
|
1033
|
+
* @param {number} quantity Number of variants
|
|
1034
|
+
* @param {number} [pageToken] Page reference token
|
|
1035
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
*/
|
|
1039
|
+
suggestPickfaces: async (project: string, variantRef: string, quantity: number, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1040
|
+
// verify required parameter 'project' is not null or undefined
|
|
1041
|
+
assertParamExists('suggestPickfaces', 'project', project)
|
|
1042
|
+
// verify required parameter 'variantRef' is not null or undefined
|
|
1043
|
+
assertParamExists('suggestPickfaces', 'variantRef', variantRef)
|
|
1044
|
+
// verify required parameter 'quantity' is not null or undefined
|
|
1045
|
+
assertParamExists('suggestPickfaces', 'quantity', quantity)
|
|
1046
|
+
const localVarPath = `/v1/pickfaces/suggest`;
|
|
1047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1049
|
+
let baseOptions;
|
|
1050
|
+
if (configuration) {
|
|
1051
|
+
baseOptions = configuration.baseOptions;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1055
|
+
const localVarHeaderParameter = {} as any;
|
|
1056
|
+
const localVarQueryParameter = {} as any;
|
|
1057
|
+
|
|
1058
|
+
// authentication session-oauth required
|
|
1059
|
+
// oauth required
|
|
1060
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1061
|
+
|
|
1062
|
+
// authentication api-key required
|
|
1063
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1064
|
+
|
|
1065
|
+
if (project !== undefined) {
|
|
1066
|
+
localVarQueryParameter['project'] = project;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
if (variantRef !== undefined) {
|
|
1070
|
+
localVarQueryParameter['variantRef'] = variantRef;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (quantity !== undefined) {
|
|
1074
|
+
localVarQueryParameter['quantity'] = quantity;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
if (pageToken !== undefined) {
|
|
1078
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
if (pageSize !== undefined) {
|
|
1082
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1089
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1090
|
+
|
|
1091
|
+
return {
|
|
1092
|
+
url: toPathString(localVarUrlObj),
|
|
1093
|
+
options: localVarRequestOptions,
|
|
1094
|
+
};
|
|
1095
|
+
},
|
|
1096
|
+
/**
|
|
1097
|
+
* Update a Pickface
|
|
1098
|
+
* @summary Update Pickface
|
|
1099
|
+
* @param {string} project What project it is
|
|
1100
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1101
|
+
* @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
updatePickface: async (project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1106
|
+
// verify required parameter 'project' is not null or undefined
|
|
1107
|
+
assertParamExists('updatePickface', 'project', project)
|
|
1108
|
+
// verify required parameter 'pickfaceId' is not null or undefined
|
|
1109
|
+
assertParamExists('updatePickface', 'pickfaceId', pickfaceId)
|
|
1110
|
+
// verify required parameter 'updatePickfaceRequest' is not null or undefined
|
|
1111
|
+
assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest)
|
|
1112
|
+
const localVarPath = `/v1/pickfaces/{pickfaceId}`
|
|
1113
|
+
.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
|
|
1114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1116
|
+
let baseOptions;
|
|
1117
|
+
if (configuration) {
|
|
1118
|
+
baseOptions = configuration.baseOptions;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1122
|
+
const localVarHeaderParameter = {} as any;
|
|
1123
|
+
const localVarQueryParameter = {} as any;
|
|
1124
|
+
|
|
1125
|
+
// authentication session-oauth required
|
|
1126
|
+
// oauth required
|
|
1127
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1128
|
+
|
|
1129
|
+
// authentication api-key required
|
|
1130
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1131
|
+
|
|
1132
|
+
if (project !== undefined) {
|
|
1133
|
+
localVarQueryParameter['project'] = project;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1139
|
+
|
|
1140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1142
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1143
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePickfaceRequest, localVarRequestOptions, configuration)
|
|
1144
|
+
|
|
1145
|
+
return {
|
|
1146
|
+
url: toPathString(localVarUrlObj),
|
|
1147
|
+
options: localVarRequestOptions,
|
|
1148
|
+
};
|
|
1149
|
+
},
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* PickfacesApi - functional programming interface
|
|
1155
|
+
* @export
|
|
1156
|
+
*/
|
|
1157
|
+
export const PickfacesApiFp = function(configuration?: Configuration) {
|
|
1158
|
+
const localVarAxiosParamCreator = PickfacesApiAxiosParamCreator(configuration)
|
|
1159
|
+
return {
|
|
1160
|
+
/**
|
|
1161
|
+
* Create a Pickface
|
|
1162
|
+
* @summary Create Pickface
|
|
1163
|
+
* @param {string} project What project it is
|
|
1164
|
+
* @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
async createPickface(project: string, createPickfaceRequest: CreatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
|
|
1169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPickface(project, createPickfaceRequest, options);
|
|
1170
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1171
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.createPickface']?.[localVarOperationServerIndex]?.url;
|
|
1172
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1173
|
+
},
|
|
1174
|
+
/**
|
|
1175
|
+
* Delete a Pickface
|
|
1176
|
+
* @summary Delete Pickface
|
|
1177
|
+
* @param {string} project What project it is
|
|
1178
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
async deletePickface(project: string, pickfaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePickface(project, pickfaceId, options);
|
|
1184
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1185
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.deletePickface']?.[localVarOperationServerIndex]?.url;
|
|
1186
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1187
|
+
},
|
|
1188
|
+
/**
|
|
1189
|
+
* Export pickfaces as a CSV file
|
|
1190
|
+
* @summary Export pickfaces
|
|
1191
|
+
* @param {string} project What project it is
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
*/
|
|
1195
|
+
async exportPickfaces(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
1196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportPickfaces(project, options);
|
|
1197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1198
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.exportPickfaces']?.[localVarOperationServerIndex]?.url;
|
|
1199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1200
|
+
},
|
|
1201
|
+
/**
|
|
1202
|
+
* Get a pickface
|
|
1203
|
+
* @summary Get pickface
|
|
1204
|
+
* @param {string} project What project it is
|
|
1205
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1206
|
+
* @param {*} [options] Override http request option.
|
|
1207
|
+
* @throws {RequiredError}
|
|
1208
|
+
*/
|
|
1209
|
+
async getPickface(project: string, pickfaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
|
|
1210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPickface(project, pickfaceId, options);
|
|
1211
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1212
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.getPickface']?.[localVarOperationServerIndex]?.url;
|
|
1213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1214
|
+
},
|
|
1215
|
+
/**
|
|
1216
|
+
* Lists pickface container models
|
|
1217
|
+
* @summary Get pickface container models
|
|
1218
|
+
* @param {string} project What project it is
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
async getPickfaceContainerModels(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerModels>> {
|
|
1223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPickfaceContainerModels(project, options);
|
|
1224
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1225
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.getPickfaceContainerModels']?.[localVarOperationServerIndex]?.url;
|
|
1226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1227
|
+
},
|
|
1228
|
+
/**
|
|
1229
|
+
* Lists all pickfaces available paginated into chunks
|
|
1230
|
+
* @summary List pickfaces
|
|
1231
|
+
* @param {string} project What project it is
|
|
1232
|
+
* @param {string} [search] Search term to filter based on pickface code
|
|
1233
|
+
* @param {number} [pageToken] Page reference token
|
|
1234
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1235
|
+
* @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
|
|
1236
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
*/
|
|
1240
|
+
async getPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, filters?: Array<GetPickfacesFiltersEnum>, sortBy?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPickfaces200Response>> {
|
|
1241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options);
|
|
1242
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1243
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.getPickfaces']?.[localVarOperationServerIndex]?.url;
|
|
1244
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1245
|
+
},
|
|
1246
|
+
/**
|
|
1247
|
+
* Get a list of pickface logs
|
|
1248
|
+
* @summary Get pickface logs
|
|
1249
|
+
* @param {string} project What project it is
|
|
1250
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1251
|
+
* @param {number} [pageToken] Page reference token
|
|
1252
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1253
|
+
* @param {*} [options] Override http request option.
|
|
1254
|
+
* @throws {RequiredError}
|
|
1255
|
+
*/
|
|
1256
|
+
async listPickfaceLogs(project: string, pickfaceId: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPickfaceLogs200Response>> {
|
|
1257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options);
|
|
1258
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1259
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.listPickfaceLogs']?.[localVarOperationServerIndex]?.url;
|
|
1260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
|
+
},
|
|
1262
|
+
/**
|
|
1263
|
+
* Move stock from one pickface to another in a single transaction
|
|
1264
|
+
* @summary Move stock
|
|
1265
|
+
* @param {string} project What project it is
|
|
1266
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1267
|
+
* @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
async moveStock(project: string, pickfaceId: string, moveStockRequest: MoveStockRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
|
|
1272
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.moveStock(project, pickfaceId, moveStockRequest, options);
|
|
1273
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1274
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.moveStock']?.[localVarOperationServerIndex]?.url;
|
|
1275
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1276
|
+
},
|
|
1277
|
+
/**
|
|
1278
|
+
* Print a pickface label
|
|
1279
|
+
* @summary Print pickface label
|
|
1280
|
+
* @param {string} project What project it is
|
|
1281
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1282
|
+
* @param {string} deviceRef Unique identifier of a warehouse device
|
|
1283
|
+
* @param {*} [options] Override http request option.
|
|
1284
|
+
* @throws {RequiredError}
|
|
1285
|
+
*/
|
|
1286
|
+
async printPickfaceLabel(project: string, pickfaceId: string, deviceRef: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.printPickfaceLabel(project, pickfaceId, deviceRef, options);
|
|
1288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1289
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.printPickfaceLabel']?.[localVarOperationServerIndex]?.url;
|
|
1290
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1291
|
+
},
|
|
1292
|
+
/**
|
|
1293
|
+
* Suggest pickfaces for putting away stock
|
|
1294
|
+
* @summary Suggest pickfaces
|
|
1295
|
+
* @param {string} project What project it is
|
|
1296
|
+
* @param {string} variantRef Unique identifier of a warehouse variant
|
|
1297
|
+
* @param {number} quantity Number of variants
|
|
1298
|
+
* @param {number} [pageToken] Page reference token
|
|
1299
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
async suggestPickfaces(project: string, variantRef: string, quantity: number, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPickfaces200Response>> {
|
|
1304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options);
|
|
1305
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1306
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.suggestPickfaces']?.[localVarOperationServerIndex]?.url;
|
|
1307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1308
|
+
},
|
|
1309
|
+
/**
|
|
1310
|
+
* Update a Pickface
|
|
1311
|
+
* @summary Update Pickface
|
|
1312
|
+
* @param {string} project What project it is
|
|
1313
|
+
* @param {string} pickfaceId Unique identifier of a pickface
|
|
1314
|
+
* @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
|
|
1315
|
+
* @param {*} [options] Override http request option.
|
|
1316
|
+
* @throws {RequiredError}
|
|
1317
|
+
*/
|
|
1318
|
+
async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>> {
|
|
1319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
|
|
1320
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1321
|
+
const localVarOperationServerBasePath = operationServerMap['PickfacesApi.updatePickface']?.[localVarOperationServerIndex]?.url;
|
|
1322
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1323
|
+
},
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* PickfacesApi - factory interface
|
|
1329
|
+
* @export
|
|
1330
|
+
*/
|
|
1331
|
+
export const PickfacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1332
|
+
const localVarFp = PickfacesApiFp(configuration)
|
|
1333
|
+
return {
|
|
1334
|
+
/**
|
|
1335
|
+
* Create a Pickface
|
|
1336
|
+
* @summary Create Pickface
|
|
1337
|
+
* @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
createPickface(requestParameters: PickfacesApiCreatePickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface> {
|
|
1342
|
+
return localVarFp.createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(axios, basePath));
|
|
1343
|
+
},
|
|
1344
|
+
/**
|
|
1345
|
+
* Delete a Pickface
|
|
1346
|
+
* @summary Delete Pickface
|
|
1347
|
+
* @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
|
|
1348
|
+
* @param {*} [options] Override http request option.
|
|
1349
|
+
* @throws {RequiredError}
|
|
1350
|
+
*/
|
|
1351
|
+
deletePickface(requestParameters: PickfacesApiDeletePickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1352
|
+
return localVarFp.deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
|
|
1353
|
+
},
|
|
1354
|
+
/**
|
|
1355
|
+
* Export pickfaces as a CSV file
|
|
1356
|
+
* @summary Export pickfaces
|
|
1357
|
+
* @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
|
|
1358
|
+
* @param {*} [options] Override http request option.
|
|
1359
|
+
* @throws {RequiredError}
|
|
1360
|
+
*/
|
|
1361
|
+
exportPickfaces(requestParameters: PickfacesApiExportPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
1362
|
+
return localVarFp.exportPickfaces(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1363
|
+
},
|
|
1364
|
+
/**
|
|
1365
|
+
* Get a pickface
|
|
1366
|
+
* @summary Get pickface
|
|
1367
|
+
* @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
|
|
1368
|
+
* @param {*} [options] Override http request option.
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
*/
|
|
1371
|
+
getPickface(requestParameters: PickfacesApiGetPickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface> {
|
|
1372
|
+
return localVarFp.getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
|
|
1373
|
+
},
|
|
1374
|
+
/**
|
|
1375
|
+
* Lists pickface container models
|
|
1376
|
+
* @summary Get pickface container models
|
|
1377
|
+
* @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
*/
|
|
1381
|
+
getPickfaceContainerModels(requestParameters: PickfacesApiGetPickfaceContainerModelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContainerModels> {
|
|
1382
|
+
return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1383
|
+
},
|
|
1384
|
+
/**
|
|
1385
|
+
* Lists all pickfaces available paginated into chunks
|
|
1386
|
+
* @summary List pickfaces
|
|
1387
|
+
* @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
|
|
1388
|
+
* @param {*} [options] Override http request option.
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
*/
|
|
1391
|
+
getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPickfaces200Response> {
|
|
1392
|
+
return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
1393
|
+
},
|
|
1394
|
+
/**
|
|
1395
|
+
* Get a list of pickface logs
|
|
1396
|
+
* @summary Get pickface logs
|
|
1397
|
+
* @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
|
|
1398
|
+
* @param {*} [options] Override http request option.
|
|
1399
|
+
* @throws {RequiredError}
|
|
1400
|
+
*/
|
|
1401
|
+
listPickfaceLogs(requestParameters: PickfacesApiListPickfaceLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListPickfaceLogs200Response> {
|
|
1402
|
+
return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
* Move stock from one pickface to another in a single transaction
|
|
1406
|
+
* @summary Move stock
|
|
1407
|
+
* @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
|
|
1408
|
+
* @param {*} [options] Override http request option.
|
|
1409
|
+
* @throws {RequiredError}
|
|
1410
|
+
*/
|
|
1411
|
+
moveStock(requestParameters: PickfacesApiMoveStockRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface> {
|
|
1412
|
+
return localVarFp.moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(axios, basePath));
|
|
1413
|
+
},
|
|
1414
|
+
/**
|
|
1415
|
+
* Print a pickface label
|
|
1416
|
+
* @summary Print pickface label
|
|
1417
|
+
* @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
|
|
1418
|
+
* @param {*} [options] Override http request option.
|
|
1419
|
+
* @throws {RequiredError}
|
|
1420
|
+
*/
|
|
1421
|
+
printPickfaceLabel(requestParameters: PickfacesApiPrintPickfaceLabelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1422
|
+
return localVarFp.printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
|
|
1423
|
+
},
|
|
1424
|
+
/**
|
|
1425
|
+
* Suggest pickfaces for putting away stock
|
|
1426
|
+
* @summary Suggest pickfaces
|
|
1427
|
+
* @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
|
|
1428
|
+
* @param {*} [options] Override http request option.
|
|
1429
|
+
* @throws {RequiredError}
|
|
1430
|
+
*/
|
|
1431
|
+
suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPickfaces200Response> {
|
|
1432
|
+
return localVarFp.suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1433
|
+
},
|
|
1434
|
+
/**
|
|
1435
|
+
* Update a Pickface
|
|
1436
|
+
* @summary Update Pickface
|
|
1437
|
+
* @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
updatePickface(requestParameters: PickfacesApiUpdatePickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface> {
|
|
1442
|
+
return localVarFp.updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(axios, basePath));
|
|
1443
|
+
},
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Request parameters for createPickface operation in PickfacesApi.
|
|
1449
|
+
* @export
|
|
1450
|
+
* @interface PickfacesApiCreatePickfaceRequest
|
|
1451
|
+
*/
|
|
1452
|
+
export interface PickfacesApiCreatePickfaceRequest {
|
|
1453
|
+
/**
|
|
1454
|
+
* What project it is
|
|
1455
|
+
* @type {string}
|
|
1456
|
+
* @memberof PickfacesApiCreatePickface
|
|
1457
|
+
*/
|
|
1458
|
+
readonly project: string
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Create pickface schema
|
|
1462
|
+
* @type {CreatePickfaceRequest}
|
|
1463
|
+
* @memberof PickfacesApiCreatePickface
|
|
1464
|
+
*/
|
|
1465
|
+
readonly createPickfaceRequest: CreatePickfaceRequest
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Request parameters for deletePickface operation in PickfacesApi.
|
|
1470
|
+
* @export
|
|
1471
|
+
* @interface PickfacesApiDeletePickfaceRequest
|
|
1472
|
+
*/
|
|
1473
|
+
export interface PickfacesApiDeletePickfaceRequest {
|
|
1474
|
+
/**
|
|
1475
|
+
* What project it is
|
|
1476
|
+
* @type {string}
|
|
1477
|
+
* @memberof PickfacesApiDeletePickface
|
|
1478
|
+
*/
|
|
1479
|
+
readonly project: string
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Unique identifier of a pickface
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof PickfacesApiDeletePickface
|
|
1485
|
+
*/
|
|
1486
|
+
readonly pickfaceId: string
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Request parameters for exportPickfaces operation in PickfacesApi.
|
|
1491
|
+
* @export
|
|
1492
|
+
* @interface PickfacesApiExportPickfacesRequest
|
|
1493
|
+
*/
|
|
1494
|
+
export interface PickfacesApiExportPickfacesRequest {
|
|
1495
|
+
/**
|
|
1496
|
+
* What project it is
|
|
1497
|
+
* @type {string}
|
|
1498
|
+
* @memberof PickfacesApiExportPickfaces
|
|
1499
|
+
*/
|
|
1500
|
+
readonly project: string
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Request parameters for getPickface operation in PickfacesApi.
|
|
1505
|
+
* @export
|
|
1506
|
+
* @interface PickfacesApiGetPickfaceRequest
|
|
1507
|
+
*/
|
|
1508
|
+
export interface PickfacesApiGetPickfaceRequest {
|
|
1509
|
+
/**
|
|
1510
|
+
* What project it is
|
|
1511
|
+
* @type {string}
|
|
1512
|
+
* @memberof PickfacesApiGetPickface
|
|
1513
|
+
*/
|
|
1514
|
+
readonly project: string
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Unique identifier of a pickface
|
|
1518
|
+
* @type {string}
|
|
1519
|
+
* @memberof PickfacesApiGetPickface
|
|
1520
|
+
*/
|
|
1521
|
+
readonly pickfaceId: string
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Request parameters for getPickfaceContainerModels operation in PickfacesApi.
|
|
1526
|
+
* @export
|
|
1527
|
+
* @interface PickfacesApiGetPickfaceContainerModelsRequest
|
|
1528
|
+
*/
|
|
1529
|
+
export interface PickfacesApiGetPickfaceContainerModelsRequest {
|
|
1530
|
+
/**
|
|
1531
|
+
* What project it is
|
|
1532
|
+
* @type {string}
|
|
1533
|
+
* @memberof PickfacesApiGetPickfaceContainerModels
|
|
1534
|
+
*/
|
|
1535
|
+
readonly project: string
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Request parameters for getPickfaces operation in PickfacesApi.
|
|
1540
|
+
* @export
|
|
1541
|
+
* @interface PickfacesApiGetPickfacesRequest
|
|
1542
|
+
*/
|
|
1543
|
+
export interface PickfacesApiGetPickfacesRequest {
|
|
1544
|
+
/**
|
|
1545
|
+
* What project it is
|
|
1546
|
+
* @type {string}
|
|
1547
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1548
|
+
*/
|
|
1549
|
+
readonly project: string
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Search term to filter based on pickface code
|
|
1553
|
+
* @type {string}
|
|
1554
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1555
|
+
*/
|
|
1556
|
+
readonly search?: string
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* Page reference token
|
|
1560
|
+
* @type {number}
|
|
1561
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1562
|
+
*/
|
|
1563
|
+
readonly pageToken?: number
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1567
|
+
* @type {number}
|
|
1568
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1569
|
+
*/
|
|
1570
|
+
readonly pageSize?: number
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Filters to apply to the request
|
|
1574
|
+
* @type {Array<'empty' | 'flagged'>}
|
|
1575
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1576
|
+
*/
|
|
1577
|
+
readonly filters?: Array<GetPickfacesFiltersEnum>
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
1581
|
+
* @type {Array<string>}
|
|
1582
|
+
* @memberof PickfacesApiGetPickfaces
|
|
1583
|
+
*/
|
|
1584
|
+
readonly sortBy?: Array<string>
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Request parameters for listPickfaceLogs operation in PickfacesApi.
|
|
1589
|
+
* @export
|
|
1590
|
+
* @interface PickfacesApiListPickfaceLogsRequest
|
|
1591
|
+
*/
|
|
1592
|
+
export interface PickfacesApiListPickfaceLogsRequest {
|
|
1593
|
+
/**
|
|
1594
|
+
* What project it is
|
|
1595
|
+
* @type {string}
|
|
1596
|
+
* @memberof PickfacesApiListPickfaceLogs
|
|
1597
|
+
*/
|
|
1598
|
+
readonly project: string
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Unique identifier of a pickface
|
|
1602
|
+
* @type {string}
|
|
1603
|
+
* @memberof PickfacesApiListPickfaceLogs
|
|
1604
|
+
*/
|
|
1605
|
+
readonly pickfaceId: string
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Page reference token
|
|
1609
|
+
* @type {number}
|
|
1610
|
+
* @memberof PickfacesApiListPickfaceLogs
|
|
1611
|
+
*/
|
|
1612
|
+
readonly pageToken?: number
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1616
|
+
* @type {number}
|
|
1617
|
+
* @memberof PickfacesApiListPickfaceLogs
|
|
1618
|
+
*/
|
|
1619
|
+
readonly pageSize?: number
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Request parameters for moveStock operation in PickfacesApi.
|
|
1624
|
+
* @export
|
|
1625
|
+
* @interface PickfacesApiMoveStockRequest
|
|
1626
|
+
*/
|
|
1627
|
+
export interface PickfacesApiMoveStockRequest {
|
|
1628
|
+
/**
|
|
1629
|
+
* What project it is
|
|
1630
|
+
* @type {string}
|
|
1631
|
+
* @memberof PickfacesApiMoveStock
|
|
1632
|
+
*/
|
|
1633
|
+
readonly project: string
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Unique identifier of a pickface
|
|
1637
|
+
* @type {string}
|
|
1638
|
+
* @memberof PickfacesApiMoveStock
|
|
1639
|
+
*/
|
|
1640
|
+
readonly pickfaceId: string
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Move stock from one pickface to another
|
|
1644
|
+
* @type {MoveStockRequest}
|
|
1645
|
+
* @memberof PickfacesApiMoveStock
|
|
1646
|
+
*/
|
|
1647
|
+
readonly moveStockRequest: MoveStockRequest
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Request parameters for printPickfaceLabel operation in PickfacesApi.
|
|
1652
|
+
* @export
|
|
1653
|
+
* @interface PickfacesApiPrintPickfaceLabelRequest
|
|
1654
|
+
*/
|
|
1655
|
+
export interface PickfacesApiPrintPickfaceLabelRequest {
|
|
1656
|
+
/**
|
|
1657
|
+
* What project it is
|
|
1658
|
+
* @type {string}
|
|
1659
|
+
* @memberof PickfacesApiPrintPickfaceLabel
|
|
1660
|
+
*/
|
|
1661
|
+
readonly project: string
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Unique identifier of a pickface
|
|
1665
|
+
* @type {string}
|
|
1666
|
+
* @memberof PickfacesApiPrintPickfaceLabel
|
|
1667
|
+
*/
|
|
1668
|
+
readonly pickfaceId: string
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Unique identifier of a warehouse device
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof PickfacesApiPrintPickfaceLabel
|
|
1674
|
+
*/
|
|
1675
|
+
readonly deviceRef: string
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Request parameters for suggestPickfaces operation in PickfacesApi.
|
|
1680
|
+
* @export
|
|
1681
|
+
* @interface PickfacesApiSuggestPickfacesRequest
|
|
1682
|
+
*/
|
|
1683
|
+
export interface PickfacesApiSuggestPickfacesRequest {
|
|
1684
|
+
/**
|
|
1685
|
+
* What project it is
|
|
1686
|
+
* @type {string}
|
|
1687
|
+
* @memberof PickfacesApiSuggestPickfaces
|
|
1688
|
+
*/
|
|
1689
|
+
readonly project: string
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Unique identifier of a warehouse variant
|
|
1693
|
+
* @type {string}
|
|
1694
|
+
* @memberof PickfacesApiSuggestPickfaces
|
|
1695
|
+
*/
|
|
1696
|
+
readonly variantRef: string
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Number of variants
|
|
1700
|
+
* @type {number}
|
|
1701
|
+
* @memberof PickfacesApiSuggestPickfaces
|
|
1702
|
+
*/
|
|
1703
|
+
readonly quantity: number
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* Page reference token
|
|
1707
|
+
* @type {number}
|
|
1708
|
+
* @memberof PickfacesApiSuggestPickfaces
|
|
1709
|
+
*/
|
|
1710
|
+
readonly pageToken?: number
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1714
|
+
* @type {number}
|
|
1715
|
+
* @memberof PickfacesApiSuggestPickfaces
|
|
1716
|
+
*/
|
|
1717
|
+
readonly pageSize?: number
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Request parameters for updatePickface operation in PickfacesApi.
|
|
1722
|
+
* @export
|
|
1723
|
+
* @interface PickfacesApiUpdatePickfaceRequest
|
|
1724
|
+
*/
|
|
1725
|
+
export interface PickfacesApiUpdatePickfaceRequest {
|
|
1726
|
+
/**
|
|
1727
|
+
* What project it is
|
|
1728
|
+
* @type {string}
|
|
1729
|
+
* @memberof PickfacesApiUpdatePickface
|
|
1730
|
+
*/
|
|
1731
|
+
readonly project: string
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Unique identifier of a pickface
|
|
1735
|
+
* @type {string}
|
|
1736
|
+
* @memberof PickfacesApiUpdatePickface
|
|
1737
|
+
*/
|
|
1738
|
+
readonly pickfaceId: string
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Update pickface schema
|
|
1742
|
+
* @type {UpdatePickfaceRequest}
|
|
1743
|
+
* @memberof PickfacesApiUpdatePickface
|
|
1744
|
+
*/
|
|
1745
|
+
readonly updatePickfaceRequest: UpdatePickfaceRequest
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* PickfacesApi - object-oriented interface
|
|
1750
|
+
* @export
|
|
1751
|
+
* @class PickfacesApi
|
|
1752
|
+
* @extends {BaseAPI}
|
|
1753
|
+
*/
|
|
1754
|
+
export class PickfacesApi extends BaseAPI {
|
|
1755
|
+
/**
|
|
1756
|
+
* Create a Pickface
|
|
1757
|
+
* @summary Create Pickface
|
|
1758
|
+
* @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
* @memberof PickfacesApi
|
|
1762
|
+
*/
|
|
1763
|
+
public createPickface(requestParameters: PickfacesApiCreatePickfaceRequest, options?: RawAxiosRequestConfig) {
|
|
1764
|
+
return PickfacesApiFp(this.configuration).createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Delete a Pickface
|
|
1769
|
+
* @summary Delete Pickface
|
|
1770
|
+
* @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
|
|
1771
|
+
* @param {*} [options] Override http request option.
|
|
1772
|
+
* @throws {RequiredError}
|
|
1773
|
+
* @memberof PickfacesApi
|
|
1774
|
+
*/
|
|
1775
|
+
public deletePickface(requestParameters: PickfacesApiDeletePickfaceRequest, options?: RawAxiosRequestConfig) {
|
|
1776
|
+
return PickfacesApiFp(this.configuration).deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* Export pickfaces as a CSV file
|
|
1781
|
+
* @summary Export pickfaces
|
|
1782
|
+
* @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
|
|
1783
|
+
* @param {*} [options] Override http request option.
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
* @memberof PickfacesApi
|
|
1786
|
+
*/
|
|
1787
|
+
public exportPickfaces(requestParameters: PickfacesApiExportPickfacesRequest, options?: RawAxiosRequestConfig) {
|
|
1788
|
+
return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Get a pickface
|
|
1793
|
+
* @summary Get pickface
|
|
1794
|
+
* @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
* @memberof PickfacesApi
|
|
1798
|
+
*/
|
|
1799
|
+
public getPickface(requestParameters: PickfacesApiGetPickfaceRequest, options?: RawAxiosRequestConfig) {
|
|
1800
|
+
return PickfacesApiFp(this.configuration).getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Lists pickface container models
|
|
1805
|
+
* @summary Get pickface container models
|
|
1806
|
+
* @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
* @memberof PickfacesApi
|
|
1810
|
+
*/
|
|
1811
|
+
public getPickfaceContainerModels(requestParameters: PickfacesApiGetPickfaceContainerModelsRequest, options?: RawAxiosRequestConfig) {
|
|
1812
|
+
return PickfacesApiFp(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Lists all pickfaces available paginated into chunks
|
|
1817
|
+
* @summary List pickfaces
|
|
1818
|
+
* @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
|
|
1819
|
+
* @param {*} [options] Override http request option.
|
|
1820
|
+
* @throws {RequiredError}
|
|
1821
|
+
* @memberof PickfacesApi
|
|
1822
|
+
*/
|
|
1823
|
+
public getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig) {
|
|
1824
|
+
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));
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* Get a list of pickface logs
|
|
1829
|
+
* @summary Get pickface logs
|
|
1830
|
+
* @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
|
|
1831
|
+
* @param {*} [options] Override http request option.
|
|
1832
|
+
* @throws {RequiredError}
|
|
1833
|
+
* @memberof PickfacesApi
|
|
1834
|
+
*/
|
|
1835
|
+
public listPickfaceLogs(requestParameters: PickfacesApiListPickfaceLogsRequest, options?: RawAxiosRequestConfig) {
|
|
1836
|
+
return PickfacesApiFp(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Move stock from one pickface to another in a single transaction
|
|
1841
|
+
* @summary Move stock
|
|
1842
|
+
* @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
|
|
1843
|
+
* @param {*} [options] Override http request option.
|
|
1844
|
+
* @throws {RequiredError}
|
|
1845
|
+
* @memberof PickfacesApi
|
|
1846
|
+
*/
|
|
1847
|
+
public moveStock(requestParameters: PickfacesApiMoveStockRequest, options?: RawAxiosRequestConfig) {
|
|
1848
|
+
return PickfacesApiFp(this.configuration).moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Print a pickface label
|
|
1853
|
+
* @summary Print pickface label
|
|
1854
|
+
* @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
|
|
1855
|
+
* @param {*} [options] Override http request option.
|
|
1856
|
+
* @throws {RequiredError}
|
|
1857
|
+
* @memberof PickfacesApi
|
|
1858
|
+
*/
|
|
1859
|
+
public printPickfaceLabel(requestParameters: PickfacesApiPrintPickfaceLabelRequest, options?: RawAxiosRequestConfig) {
|
|
1860
|
+
return PickfacesApiFp(this.configuration).printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Suggest pickfaces for putting away stock
|
|
1865
|
+
* @summary Suggest pickfaces
|
|
1866
|
+
* @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
* @memberof PickfacesApi
|
|
1870
|
+
*/
|
|
1871
|
+
public suggestPickfaces(requestParameters: PickfacesApiSuggestPickfacesRequest, options?: RawAxiosRequestConfig) {
|
|
1872
|
+
return PickfacesApiFp(this.configuration).suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Update a Pickface
|
|
1877
|
+
* @summary Update Pickface
|
|
1878
|
+
* @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
|
|
1879
|
+
* @param {*} [options] Override http request option.
|
|
1880
|
+
* @throws {RequiredError}
|
|
1881
|
+
* @memberof PickfacesApi
|
|
1882
|
+
*/
|
|
1883
|
+
public updatePickface(requestParameters: PickfacesApiUpdatePickfaceRequest, options?: RawAxiosRequestConfig) {
|
|
1884
|
+
return PickfacesApiFp(this.configuration).updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* @export
|
|
1890
|
+
*/
|
|
1891
|
+
export const GetPickfacesFiltersEnum = {
|
|
1892
|
+
Empty: 'empty',
|
|
1893
|
+
Flagged: 'flagged'
|
|
1894
|
+
} as const;
|
|
1895
|
+
export type GetPickfacesFiltersEnum = typeof GetPickfacesFiltersEnum[keyof typeof GetPickfacesFiltersEnum];
|
|
1896
|
+
|
|
1897
|
+
|