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