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