@teemill/pickfaces 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/.openapi-generator/FILES +7 -24
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1897 -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 +1245 -0
  9. package/dist/api.js +997 -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 +1245 -0
  17. package/dist/esm/api.js +990 -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 -0
  25. package/dist/esm/index.js +15 -0
  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 +18 -4
  31. package/tsconfig.esm.json +7 -0
  32. package/tsconfig.json +4 -6
  33. package/dist/apis/PickfacesApi.d.ts +0 -189
  34. package/dist/apis/PickfacesApi.js +0 -870
  35. package/dist/apis/index.d.ts +0 -1
  36. package/dist/apis/index.js +0 -19
  37. package/dist/models/ApiError.d.ts +0 -37
  38. package/dist/models/ApiError.js +0 -49
  39. package/dist/models/ContainerModel.d.ts +0 -61
  40. package/dist/models/ContainerModel.js +0 -61
  41. package/dist/models/ContainerModels.d.ts +0 -32
  42. package/dist/models/ContainerModels.js +0 -46
  43. package/dist/models/CreatePickfaceRequest.d.ts +0 -37
  44. package/dist/models/CreatePickfaceRequest.js +0 -47
  45. package/dist/models/CreatePickfaceRequestDimensions.d.ts +0 -43
  46. package/dist/models/CreatePickfaceRequestDimensions.js +0 -49
  47. package/dist/models/GetPickfaces200Response.d.ts +0 -38
  48. package/dist/models/GetPickfaces200Response.js +0 -48
  49. package/dist/models/ListPickfaceLogs200Response.d.ts +0 -38
  50. package/dist/models/ListPickfaceLogs200Response.js +0 -48
  51. package/dist/models/ModelError.d.ts +0 -37
  52. package/dist/models/ModelError.js +0 -53
  53. package/dist/models/MoveStockRequest.d.ts +0 -43
  54. package/dist/models/MoveStockRequest.js +0 -55
  55. package/dist/models/Pickface.d.ts +0 -83
  56. package/dist/models/Pickface.js +0 -65
  57. package/dist/models/PickfaceContainerModel.d.ts +0 -37
  58. package/dist/models/PickfaceContainerModel.js +0 -47
  59. package/dist/models/PickfaceContentsInner.d.ts +0 -58
  60. package/dist/models/PickfaceContentsInner.js +0 -56
  61. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
  62. package/dist/models/PickfaceContentsInnerApplicationsInner.js +0 -47
  63. package/dist/models/PickfaceContentsInnerMetadata.d.ts +0 -43
  64. package/dist/models/PickfaceContentsInnerMetadata.js +0 -49
  65. package/dist/models/PickfaceContentsInnerQuantity.d.ts +0 -43
  66. package/dist/models/PickfaceContentsInnerQuantity.js +0 -49
  67. package/dist/models/PickfaceLastPicked.d.ts +0 -55
  68. package/dist/models/PickfaceLastPicked.js +0 -53
  69. package/dist/models/PickfaceLastRestocked.d.ts +0 -55
  70. package/dist/models/PickfaceLastRestocked.js +0 -53
  71. package/dist/models/PickfaceLog.d.ts +0 -55
  72. package/dist/models/PickfaceLog.js +0 -53
  73. package/dist/models/PickfaceLogUser.d.ts +0 -37
  74. package/dist/models/PickfaceLogUser.js +0 -52
  75. package/dist/models/PickfaceModel.d.ts +0 -37
  76. package/dist/models/PickfaceModel.js +0 -47
  77. package/dist/models/PickfaceModels.d.ts +0 -32
  78. package/dist/models/PickfaceModels.js +0 -46
  79. package/dist/models/UpdatePickfaceRequest.d.ts +0 -44
  80. package/dist/models/UpdatePickfaceRequest.js +0 -50
  81. package/dist/models/UpdatePickfaceRequestContents.d.ts +0 -37
  82. package/dist/models/UpdatePickfaceRequestContents.js +0 -47
  83. package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
  84. package/dist/models/UpdatePickfaceRequestContentsInner.js +0 -52
  85. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
  86. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -58
  87. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
  88. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -58
  89. package/dist/models/index.d.ts +0 -19
  90. package/dist/models/index.js +0 -37
  91. package/dist/runtime.d.ts +0 -187
  92. package/dist/runtime.js +0 -565
  93. package/src/apis/PickfacesApi.ts +0 -821
  94. package/src/apis/index.ts +0 -3
  95. package/src/index.ts +0 -5
  96. package/src/models/ApiError.ts +0 -69
  97. package/src/models/ContainerModel.ts +0 -103
  98. package/src/models/ContainerModels.ts +0 -67
  99. package/src/models/CreatePickfaceRequest.ts +0 -68
  100. package/src/models/CreatePickfaceRequestDimensions.ts +0 -76
  101. package/src/models/GetPickfaces200Response.ts +0 -75
  102. package/src/models/ListPickfaceLogs200Response.ts +0 -75
  103. package/src/models/ModelError.ts +0 -74
  104. package/src/models/MoveStockRequest.ts +0 -79
  105. package/src/models/Pickface.ts +0 -149
  106. package/src/models/PickfaceContainerModel.ts +0 -68
  107. package/src/models/PickfaceContentsInner.ts +0 -111
  108. package/src/models/PickfaceContentsInnerApplicationsInner.ts +0 -68
  109. package/src/models/PickfaceContentsInnerMetadata.ts +0 -76
  110. package/src/models/PickfaceContentsInnerQuantity.ts +0 -76
  111. package/src/models/PickfaceLastPicked.ts +0 -92
  112. package/src/models/PickfaceLastRestocked.ts +0 -92
  113. package/src/models/PickfaceLog.ts +0 -92
  114. package/src/models/PickfaceLogUser.ts +0 -73
  115. package/src/models/PickfaceModel.ts +0 -68
  116. package/src/models/PickfaceModels.ts +0 -67
  117. package/src/models/UpdatePickfaceRequest.ts +0 -83
  118. package/src/models/UpdatePickfaceRequestContents.ts +0 -68
  119. package/src/models/UpdatePickfaceRequestContentsInner.ts +0 -77
  120. package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +0 -81
  121. package/src/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.ts +0 -81
  122. package/src/models/index.ts +0 -21
  123. package/src/runtime.ts +0 -441
@@ -0,0 +1,990 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pickfaces API
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.13.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const UpdatePickfaceRequestContentsInnerQuantityOperationEnum = {
30
+ Add: 'add',
31
+ Subtract: 'subtract'
32
+ };
33
+ /**
34
+ * PickfacesApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const PickfacesApiAxiosParamCreator = function (configuration) {
38
+ return {
39
+ /**
40
+ * Create a Pickface
41
+ * @summary Create Pickface
42
+ * @param {string} project What project it is
43
+ * @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createPickface: (project_1, createPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, createPickfaceRequest_1, ...args_1], void 0, function* (project, createPickfaceRequest, options = {}) {
48
+ // verify required parameter 'project' is not null or undefined
49
+ assertParamExists('createPickface', 'project', project);
50
+ // verify required parameter 'createPickfaceRequest' is not null or undefined
51
+ assertParamExists('createPickface', 'createPickfaceRequest', createPickfaceRequest);
52
+ const localVarPath = `/v1/pickfaces`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
60
+ const localVarHeaderParameter = {};
61
+ const localVarQueryParameter = {};
62
+ // authentication session-oauth required
63
+ // oauth required
64
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
65
+ // authentication api-key required
66
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
67
+ if (project !== undefined) {
68
+ localVarQueryParameter['project'] = project;
69
+ }
70
+ localVarHeaderParameter['Content-Type'] = 'application/json';
71
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
74
+ localVarRequestOptions.data = serializeDataIfNeeded(createPickfaceRequest, localVarRequestOptions, configuration);
75
+ return {
76
+ url: toPathString(localVarUrlObj),
77
+ options: localVarRequestOptions,
78
+ };
79
+ }),
80
+ /**
81
+ * Delete a Pickface
82
+ * @summary Delete Pickface
83
+ * @param {string} project What project it is
84
+ * @param {string} pickfaceId Unique identifier of a pickface
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ deletePickface: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
89
+ // verify required parameter 'project' is not null or undefined
90
+ assertParamExists('deletePickface', 'project', project);
91
+ // verify required parameter 'pickfaceId' is not null or undefined
92
+ assertParamExists('deletePickface', 'pickfaceId', pickfaceId);
93
+ const localVarPath = `/v1/pickfaces/{pickfaceId}`
94
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
102
+ const localVarHeaderParameter = {};
103
+ const localVarQueryParameter = {};
104
+ // authentication session-oauth required
105
+ // oauth required
106
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
107
+ // authentication api-key required
108
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
109
+ if (project !== undefined) {
110
+ localVarQueryParameter['project'] = project;
111
+ }
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
115
+ return {
116
+ url: toPathString(localVarUrlObj),
117
+ options: localVarRequestOptions,
118
+ };
119
+ }),
120
+ /**
121
+ * Export pickfaces as a CSV file
122
+ * @summary Export pickfaces
123
+ * @param {string} project What project it is
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ exportPickfaces: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
128
+ // verify required parameter 'project' is not null or undefined
129
+ assertParamExists('exportPickfaces', 'project', project);
130
+ const localVarPath = `/v1/pickfaces/export`;
131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
133
+ let baseOptions;
134
+ if (configuration) {
135
+ baseOptions = configuration.baseOptions;
136
+ }
137
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
138
+ const localVarHeaderParameter = {};
139
+ const localVarQueryParameter = {};
140
+ // authentication session-oauth required
141
+ // oauth required
142
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
143
+ // authentication api-key required
144
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
145
+ if (project !== undefined) {
146
+ localVarQueryParameter['project'] = project;
147
+ }
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ * Get a pickface
158
+ * @summary Get pickface
159
+ * @param {string} project What project it is
160
+ * @param {string} pickfaceId Unique identifier of a pickface
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ getPickface: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
165
+ // verify required parameter 'project' is not null or undefined
166
+ assertParamExists('getPickface', 'project', project);
167
+ // verify required parameter 'pickfaceId' is not null or undefined
168
+ assertParamExists('getPickface', 'pickfaceId', pickfaceId);
169
+ const localVarPath = `/v1/pickfaces/{pickfaceId}`
170
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
173
+ let baseOptions;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ }
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
178
+ const localVarHeaderParameter = {};
179
+ const localVarQueryParameter = {};
180
+ // authentication session-oauth required
181
+ // oauth required
182
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
183
+ // authentication api-key required
184
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
185
+ if (project !== undefined) {
186
+ localVarQueryParameter['project'] = project;
187
+ }
188
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ };
195
+ }),
196
+ /**
197
+ * Lists pickface container models
198
+ * @summary Get pickface container models
199
+ * @param {string} project What project it is
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getPickfaceContainerModels: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
204
+ // verify required parameter 'project' is not null or undefined
205
+ assertParamExists('getPickfaceContainerModels', 'project', project);
206
+ const localVarPath = `/v1/pickfaces/container-models`;
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ }
213
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
214
+ const localVarHeaderParameter = {};
215
+ const localVarQueryParameter = {};
216
+ // authentication session-oauth required
217
+ // oauth required
218
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
219
+ // authentication api-key required
220
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
221
+ if (project !== undefined) {
222
+ localVarQueryParameter['project'] = project;
223
+ }
224
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ }),
232
+ /**
233
+ * Lists all pickfaces available paginated into chunks
234
+ * @summary List pickfaces
235
+ * @param {string} project What project it is
236
+ * @param {string} [search] Search term to filter based on pickface code
237
+ * @param {number} [pageToken] Page reference token
238
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
239
+ * @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
240
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ getPickfaces: (project_1, search_1, pageToken_1, pageSize_1, filters_1, sortBy_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, filters_1, sortBy_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, filters, sortBy, options = {}) {
245
+ // verify required parameter 'project' is not null or undefined
246
+ assertParamExists('getPickfaces', 'project', project);
247
+ const localVarPath = `/v1/pickfaces`;
248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
250
+ let baseOptions;
251
+ if (configuration) {
252
+ baseOptions = configuration.baseOptions;
253
+ }
254
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
+ const localVarHeaderParameter = {};
256
+ const localVarQueryParameter = {};
257
+ // authentication session-oauth required
258
+ // oauth required
259
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
260
+ // authentication api-key required
261
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
262
+ if (project !== undefined) {
263
+ localVarQueryParameter['project'] = project;
264
+ }
265
+ if (search !== undefined) {
266
+ localVarQueryParameter['search'] = search;
267
+ }
268
+ if (pageToken !== undefined) {
269
+ localVarQueryParameter['pageToken'] = pageToken;
270
+ }
271
+ if (pageSize !== undefined) {
272
+ localVarQueryParameter['pageSize'] = pageSize;
273
+ }
274
+ if (filters) {
275
+ localVarQueryParameter['filters'] = filters;
276
+ }
277
+ if (sortBy) {
278
+ localVarQueryParameter['sortBy'] = sortBy;
279
+ }
280
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
+ return {
284
+ url: toPathString(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ };
287
+ }),
288
+ /**
289
+ * Get a list of pickface logs
290
+ * @summary Get pickface logs
291
+ * @param {string} project What project it is
292
+ * @param {string} pickfaceId Unique identifier of a pickface
293
+ * @param {number} [pageToken] Page reference token
294
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ listPickfaceLogs: (project_1, pickfaceId_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, pickfaceId, pageToken, pageSize, options = {}) {
299
+ // verify required parameter 'project' is not null or undefined
300
+ assertParamExists('listPickfaceLogs', 'project', project);
301
+ // verify required parameter 'pickfaceId' is not null or undefined
302
+ assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId);
303
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
304
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ if (configuration) {
309
+ baseOptions = configuration.baseOptions;
310
+ }
311
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
312
+ const localVarHeaderParameter = {};
313
+ const localVarQueryParameter = {};
314
+ // authentication session-oauth required
315
+ // oauth required
316
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
317
+ // authentication api-key required
318
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
319
+ if (project !== undefined) {
320
+ localVarQueryParameter['project'] = project;
321
+ }
322
+ if (pageToken !== undefined) {
323
+ localVarQueryParameter['pageToken'] = pageToken;
324
+ }
325
+ if (pageSize !== undefined) {
326
+ localVarQueryParameter['pageSize'] = pageSize;
327
+ }
328
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
329
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
+ return {
332
+ url: toPathString(localVarUrlObj),
333
+ options: localVarRequestOptions,
334
+ };
335
+ }),
336
+ /**
337
+ * Move stock from one pickface to another in a single transaction
338
+ * @summary Move stock
339
+ * @param {string} project What project it is
340
+ * @param {string} pickfaceId Unique identifier of a pickface
341
+ * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ moveStock: (project_1, pickfaceId_1, moveStockRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, moveStockRequest_1, ...args_1], void 0, function* (project, pickfaceId, moveStockRequest, options = {}) {
346
+ // verify required parameter 'project' is not null or undefined
347
+ assertParamExists('moveStock', 'project', project);
348
+ // verify required parameter 'pickfaceId' is not null or undefined
349
+ assertParamExists('moveStock', 'pickfaceId', pickfaceId);
350
+ // verify required parameter 'moveStockRequest' is not null or undefined
351
+ assertParamExists('moveStock', 'moveStockRequest', moveStockRequest);
352
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
353
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
356
+ let baseOptions;
357
+ if (configuration) {
358
+ baseOptions = configuration.baseOptions;
359
+ }
360
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
361
+ const localVarHeaderParameter = {};
362
+ const localVarQueryParameter = {};
363
+ // authentication session-oauth required
364
+ // oauth required
365
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
366
+ // authentication api-key required
367
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
368
+ if (project !== undefined) {
369
+ localVarQueryParameter['project'] = project;
370
+ }
371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
375
+ localVarRequestOptions.data = serializeDataIfNeeded(moveStockRequest, localVarRequestOptions, configuration);
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ }),
381
+ /**
382
+ * Print a pickface label
383
+ * @summary Print pickface label
384
+ * @param {string} project What project it is
385
+ * @param {string} pickfaceId Unique identifier of a pickface
386
+ * @param {string} deviceRef Unique identifier of a warehouse device
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ printPickfaceLabel: (project_1, pickfaceId_1, deviceRef_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, deviceRef_1, ...args_1], void 0, function* (project, pickfaceId, deviceRef, options = {}) {
391
+ // verify required parameter 'project' is not null or undefined
392
+ assertParamExists('printPickfaceLabel', 'project', project);
393
+ // verify required parameter 'pickfaceId' is not null or undefined
394
+ assertParamExists('printPickfaceLabel', 'pickfaceId', pickfaceId);
395
+ // verify required parameter 'deviceRef' is not null or undefined
396
+ assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef);
397
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
398
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
401
+ let baseOptions;
402
+ if (configuration) {
403
+ baseOptions = configuration.baseOptions;
404
+ }
405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
406
+ const localVarHeaderParameter = {};
407
+ const localVarQueryParameter = {};
408
+ // authentication session-oauth required
409
+ // oauth required
410
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
411
+ // authentication api-key required
412
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
413
+ if (project !== undefined) {
414
+ localVarQueryParameter['project'] = project;
415
+ }
416
+ if (deviceRef !== undefined) {
417
+ localVarQueryParameter['deviceRef'] = deviceRef;
418
+ }
419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
421
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
422
+ return {
423
+ url: toPathString(localVarUrlObj),
424
+ options: localVarRequestOptions,
425
+ };
426
+ }),
427
+ /**
428
+ * Suggest pickfaces for putting away stock
429
+ * @summary Suggest pickfaces
430
+ * @param {string} project What project it is
431
+ * @param {string} variantRef Unique identifier of a warehouse variant
432
+ * @param {number} quantity Number of variants
433
+ * @param {number} [pageToken] Page reference token
434
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ suggestPickfaces: (project_1, variantRef_1, quantity_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, variantRef_1, quantity_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, variantRef, quantity, pageToken, pageSize, options = {}) {
439
+ // verify required parameter 'project' is not null or undefined
440
+ assertParamExists('suggestPickfaces', 'project', project);
441
+ // verify required parameter 'variantRef' is not null or undefined
442
+ assertParamExists('suggestPickfaces', 'variantRef', variantRef);
443
+ // verify required parameter 'quantity' is not null or undefined
444
+ assertParamExists('suggestPickfaces', 'quantity', quantity);
445
+ const localVarPath = `/v1/pickfaces/suggest`;
446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
448
+ let baseOptions;
449
+ if (configuration) {
450
+ baseOptions = configuration.baseOptions;
451
+ }
452
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
453
+ const localVarHeaderParameter = {};
454
+ const localVarQueryParameter = {};
455
+ // authentication session-oauth required
456
+ // oauth required
457
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
458
+ // authentication api-key required
459
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
460
+ if (project !== undefined) {
461
+ localVarQueryParameter['project'] = project;
462
+ }
463
+ if (variantRef !== undefined) {
464
+ localVarQueryParameter['variantRef'] = variantRef;
465
+ }
466
+ if (quantity !== undefined) {
467
+ localVarQueryParameter['quantity'] = quantity;
468
+ }
469
+ if (pageToken !== undefined) {
470
+ localVarQueryParameter['pageToken'] = pageToken;
471
+ }
472
+ if (pageSize !== undefined) {
473
+ localVarQueryParameter['pageSize'] = pageSize;
474
+ }
475
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
478
+ return {
479
+ url: toPathString(localVarUrlObj),
480
+ options: localVarRequestOptions,
481
+ };
482
+ }),
483
+ /**
484
+ * Update a Pickface
485
+ * @summary Update Pickface
486
+ * @param {string} project What project it is
487
+ * @param {string} pickfaceId Unique identifier of a pickface
488
+ * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ updatePickface: (project_1, pickfaceId_1, updatePickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, updatePickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, updatePickfaceRequest, options = {}) {
493
+ // verify required parameter 'project' is not null or undefined
494
+ assertParamExists('updatePickface', 'project', project);
495
+ // verify required parameter 'pickfaceId' is not null or undefined
496
+ assertParamExists('updatePickface', 'pickfaceId', pickfaceId);
497
+ // verify required parameter 'updatePickfaceRequest' is not null or undefined
498
+ assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest);
499
+ const localVarPath = `/v1/pickfaces/{pickfaceId}`
500
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ // authentication session-oauth required
511
+ // oauth required
512
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
513
+ // authentication api-key required
514
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
515
+ if (project !== undefined) {
516
+ localVarQueryParameter['project'] = project;
517
+ }
518
+ localVarHeaderParameter['Content-Type'] = 'application/json';
519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePickfaceRequest, localVarRequestOptions, configuration);
523
+ return {
524
+ url: toPathString(localVarUrlObj),
525
+ options: localVarRequestOptions,
526
+ };
527
+ }),
528
+ };
529
+ };
530
+ /**
531
+ * PickfacesApi - functional programming interface
532
+ * @export
533
+ */
534
+ export const PickfacesApiFp = function (configuration) {
535
+ const localVarAxiosParamCreator = PickfacesApiAxiosParamCreator(configuration);
536
+ return {
537
+ /**
538
+ * Create a Pickface
539
+ * @summary Create Pickface
540
+ * @param {string} project What project it is
541
+ * @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ createPickface(project, createPickfaceRequest, options) {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ var _a, _b, _c;
548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPickface(project, createPickfaceRequest, options);
549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
550
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.createPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
552
+ });
553
+ },
554
+ /**
555
+ * Delete a Pickface
556
+ * @summary Delete Pickface
557
+ * @param {string} project What project it is
558
+ * @param {string} pickfaceId Unique identifier of a pickface
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ deletePickface(project, pickfaceId, options) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ var _a, _b, _c;
565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePickface(project, pickfaceId, options);
566
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
567
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.deletePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
568
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
569
+ });
570
+ },
571
+ /**
572
+ * Export pickfaces as a CSV file
573
+ * @summary Export pickfaces
574
+ * @param {string} project What project it is
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ exportPickfaces(project, options) {
579
+ return __awaiter(this, void 0, void 0, function* () {
580
+ var _a, _b, _c;
581
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, options);
582
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
583
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.exportPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
584
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
585
+ });
586
+ },
587
+ /**
588
+ * Get a pickface
589
+ * @summary Get pickface
590
+ * @param {string} project What project it is
591
+ * @param {string} pickfaceId Unique identifier of a pickface
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ getPickface(project, pickfaceId, options) {
596
+ return __awaiter(this, void 0, void 0, function* () {
597
+ var _a, _b, _c;
598
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickface(project, pickfaceId, options);
599
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
600
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
601
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
602
+ });
603
+ },
604
+ /**
605
+ * Lists pickface container models
606
+ * @summary Get pickface container models
607
+ * @param {string} project What project it is
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ getPickfaceContainerModels(project, options) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ var _a, _b, _c;
614
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaceContainerModels(project, options);
615
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
616
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaceContainerModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
617
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
618
+ });
619
+ },
620
+ /**
621
+ * Lists all pickfaces available paginated into chunks
622
+ * @summary List pickfaces
623
+ * @param {string} project What project it is
624
+ * @param {string} [search] Search term to filter based on pickface code
625
+ * @param {number} [pageToken] Page reference token
626
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
627
+ * @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
628
+ * @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.
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options) {
633
+ return __awaiter(this, void 0, void 0, function* () {
634
+ var _a, _b, _c;
635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options);
636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
637
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
639
+ });
640
+ },
641
+ /**
642
+ * Get a list of pickface logs
643
+ * @summary Get pickface logs
644
+ * @param {string} project What project it is
645
+ * @param {string} pickfaceId Unique identifier of a pickface
646
+ * @param {number} [pageToken] Page reference token
647
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options) {
652
+ return __awaiter(this, void 0, void 0, function* () {
653
+ var _a, _b, _c;
654
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options);
655
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
656
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.listPickfaceLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
657
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ });
659
+ },
660
+ /**
661
+ * Move stock from one pickface to another in a single transaction
662
+ * @summary Move stock
663
+ * @param {string} project What project it is
664
+ * @param {string} pickfaceId Unique identifier of a pickface
665
+ * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ moveStock(project, pickfaceId, moveStockRequest, options) {
670
+ return __awaiter(this, void 0, void 0, function* () {
671
+ var _a, _b, _c;
672
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.moveStock(project, pickfaceId, moveStockRequest, options);
673
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
674
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.moveStock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
676
+ });
677
+ },
678
+ /**
679
+ * Print a pickface label
680
+ * @summary Print pickface label
681
+ * @param {string} project What project it is
682
+ * @param {string} pickfaceId Unique identifier of a pickface
683
+ * @param {string} deviceRef Unique identifier of a warehouse device
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ printPickfaceLabel(project, pickfaceId, deviceRef, options) {
688
+ return __awaiter(this, void 0, void 0, function* () {
689
+ var _a, _b, _c;
690
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.printPickfaceLabel(project, pickfaceId, deviceRef, options);
691
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
692
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.printPickfaceLabel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
694
+ });
695
+ },
696
+ /**
697
+ * Suggest pickfaces for putting away stock
698
+ * @summary Suggest pickfaces
699
+ * @param {string} project What project it is
700
+ * @param {string} variantRef Unique identifier of a warehouse variant
701
+ * @param {number} quantity Number of variants
702
+ * @param {number} [pageToken] Page reference token
703
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options) {
708
+ return __awaiter(this, void 0, void 0, function* () {
709
+ var _a, _b, _c;
710
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options);
711
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
712
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.suggestPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
713
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
714
+ });
715
+ },
716
+ /**
717
+ * Update a Pickface
718
+ * @summary Update Pickface
719
+ * @param {string} project What project it is
720
+ * @param {string} pickfaceId Unique identifier of a pickface
721
+ * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ updatePickface(project, pickfaceId, updatePickfaceRequest, options) {
726
+ return __awaiter(this, void 0, void 0, function* () {
727
+ var _a, _b, _c;
728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
730
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.updatePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
731
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
+ });
733
+ },
734
+ };
735
+ };
736
+ /**
737
+ * PickfacesApi - factory interface
738
+ * @export
739
+ */
740
+ export const PickfacesApiFactory = function (configuration, basePath, axios) {
741
+ const localVarFp = PickfacesApiFp(configuration);
742
+ return {
743
+ /**
744
+ * Create a Pickface
745
+ * @summary Create Pickface
746
+ * @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ createPickface(requestParameters, options) {
751
+ return localVarFp.createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(axios, basePath));
752
+ },
753
+ /**
754
+ * Delete a Pickface
755
+ * @summary Delete Pickface
756
+ * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ deletePickface(requestParameters, options) {
761
+ return localVarFp.deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
762
+ },
763
+ /**
764
+ * Export pickfaces as a CSV file
765
+ * @summary Export pickfaces
766
+ * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ exportPickfaces(requestParameters, options) {
771
+ return localVarFp.exportPickfaces(requestParameters.project, options).then((request) => request(axios, basePath));
772
+ },
773
+ /**
774
+ * Get a pickface
775
+ * @summary Get pickface
776
+ * @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ getPickface(requestParameters, options) {
781
+ return localVarFp.getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
782
+ },
783
+ /**
784
+ * Lists pickface container models
785
+ * @summary Get pickface container models
786
+ * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ getPickfaceContainerModels(requestParameters, options) {
791
+ return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
792
+ },
793
+ /**
794
+ * Lists all pickfaces available paginated into chunks
795
+ * @summary List pickfaces
796
+ * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ getPickfaces(requestParameters, options) {
801
+ return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(axios, basePath));
802
+ },
803
+ /**
804
+ * Get a list of pickface logs
805
+ * @summary Get pickface logs
806
+ * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ listPickfaceLogs(requestParameters, options) {
811
+ return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
812
+ },
813
+ /**
814
+ * Move stock from one pickface to another in a single transaction
815
+ * @summary Move stock
816
+ * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ */
820
+ moveStock(requestParameters, options) {
821
+ return localVarFp.moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(axios, basePath));
822
+ },
823
+ /**
824
+ * Print a pickface label
825
+ * @summary Print pickface label
826
+ * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ printPickfaceLabel(requestParameters, options) {
831
+ return localVarFp.printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
832
+ },
833
+ /**
834
+ * Suggest pickfaces for putting away stock
835
+ * @summary Suggest pickfaces
836
+ * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ suggestPickfaces(requestParameters, options) {
841
+ return localVarFp.suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
842
+ },
843
+ /**
844
+ * Update a Pickface
845
+ * @summary Update Pickface
846
+ * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ updatePickface(requestParameters, options) {
851
+ return localVarFp.updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(axios, basePath));
852
+ },
853
+ };
854
+ };
855
+ /**
856
+ * PickfacesApi - object-oriented interface
857
+ * @export
858
+ * @class PickfacesApi
859
+ * @extends {BaseAPI}
860
+ */
861
+ export class PickfacesApi extends BaseAPI {
862
+ /**
863
+ * Create a Pickface
864
+ * @summary Create Pickface
865
+ * @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ * @memberof PickfacesApi
869
+ */
870
+ createPickface(requestParameters, options) {
871
+ return PickfacesApiFp(this.configuration).createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
872
+ }
873
+ /**
874
+ * Delete a Pickface
875
+ * @summary Delete Pickface
876
+ * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ * @memberof PickfacesApi
880
+ */
881
+ deletePickface(requestParameters, options) {
882
+ return PickfacesApiFp(this.configuration).deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
883
+ }
884
+ /**
885
+ * Export pickfaces as a CSV file
886
+ * @summary Export pickfaces
887
+ * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ * @memberof PickfacesApi
891
+ */
892
+ exportPickfaces(requestParameters, options) {
893
+ return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
894
+ }
895
+ /**
896
+ * Get a pickface
897
+ * @summary Get pickface
898
+ * @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ * @memberof PickfacesApi
902
+ */
903
+ getPickface(requestParameters, options) {
904
+ return PickfacesApiFp(this.configuration).getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
905
+ }
906
+ /**
907
+ * Lists pickface container models
908
+ * @summary Get pickface container models
909
+ * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ * @memberof PickfacesApi
913
+ */
914
+ getPickfaceContainerModels(requestParameters, options) {
915
+ return PickfacesApiFp(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
916
+ }
917
+ /**
918
+ * Lists all pickfaces available paginated into chunks
919
+ * @summary List pickfaces
920
+ * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ * @memberof PickfacesApi
924
+ */
925
+ getPickfaces(requestParameters, options) {
926
+ 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));
927
+ }
928
+ /**
929
+ * Get a list of pickface logs
930
+ * @summary Get pickface logs
931
+ * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
932
+ * @param {*} [options] Override http request option.
933
+ * @throws {RequiredError}
934
+ * @memberof PickfacesApi
935
+ */
936
+ listPickfaceLogs(requestParameters, options) {
937
+ return PickfacesApiFp(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
938
+ }
939
+ /**
940
+ * Move stock from one pickface to another in a single transaction
941
+ * @summary Move stock
942
+ * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ * @memberof PickfacesApi
946
+ */
947
+ moveStock(requestParameters, options) {
948
+ return PickfacesApiFp(this.configuration).moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(this.axios, this.basePath));
949
+ }
950
+ /**
951
+ * Print a pickface label
952
+ * @summary Print pickface label
953
+ * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ * @memberof PickfacesApi
957
+ */
958
+ printPickfaceLabel(requestParameters, options) {
959
+ return PickfacesApiFp(this.configuration).printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
960
+ }
961
+ /**
962
+ * Suggest pickfaces for putting away stock
963
+ * @summary Suggest pickfaces
964
+ * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ * @memberof PickfacesApi
968
+ */
969
+ suggestPickfaces(requestParameters, options) {
970
+ return PickfacesApiFp(this.configuration).suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
971
+ }
972
+ /**
973
+ * Update a Pickface
974
+ * @summary Update Pickface
975
+ * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
976
+ * @param {*} [options] Override http request option.
977
+ * @throws {RequiredError}
978
+ * @memberof PickfacesApi
979
+ */
980
+ updatePickface(requestParameters, options) {
981
+ return PickfacesApiFp(this.configuration).updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(this.axios, this.basePath));
982
+ }
983
+ }
984
+ /**
985
+ * @export
986
+ */
987
+ export const GetPickfacesFiltersEnum = {
988
+ Empty: 'empty',
989
+ Flagged: 'flagged'
990
+ };