@teemill/pickfaces 0.12.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.openapi-generator/FILES +6 -24
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +2297 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1480 -0
  9. package/dist/api.js +1243 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1480 -0
  17. package/dist/esm/api.js +1236 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -3
  25. package/dist/esm/index.js +13 -3
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/PickfacesApi.d.ts +0 -189
  33. package/dist/apis/PickfacesApi.js +0 -569
  34. package/dist/apis/index.d.ts +0 -1
  35. package/dist/apis/index.js +0 -19
  36. package/dist/esm/apis/PickfacesApi.d.ts +0 -189
  37. package/dist/esm/apis/PickfacesApi.js +0 -565
  38. package/dist/esm/apis/index.d.ts +0 -1
  39. package/dist/esm/apis/index.js +0 -3
  40. package/dist/esm/models/ApiError.d.ts +0 -37
  41. package/dist/esm/models/ApiError.js +0 -42
  42. package/dist/esm/models/ContainerModel.d.ts +0 -61
  43. package/dist/esm/models/ContainerModel.js +0 -54
  44. package/dist/esm/models/ContainerModels.d.ts +0 -32
  45. package/dist/esm/models/ContainerModels.js +0 -39
  46. package/dist/esm/models/CreatePickfaceRequest.d.ts +0 -37
  47. package/dist/esm/models/CreatePickfaceRequest.js +0 -40
  48. package/dist/esm/models/CreatePickfaceRequestDimensions.d.ts +0 -43
  49. package/dist/esm/models/CreatePickfaceRequestDimensions.js +0 -42
  50. package/dist/esm/models/GetPickfaces200Response.d.ts +0 -38
  51. package/dist/esm/models/GetPickfaces200Response.js +0 -41
  52. package/dist/esm/models/ListPickfaceLogs200Response.d.ts +0 -38
  53. package/dist/esm/models/ListPickfaceLogs200Response.js +0 -41
  54. package/dist/esm/models/ModelError.d.ts +0 -37
  55. package/dist/esm/models/ModelError.js +0 -46
  56. package/dist/esm/models/MoveStockRequest.d.ts +0 -43
  57. package/dist/esm/models/MoveStockRequest.js +0 -48
  58. package/dist/esm/models/Pickface.d.ts +0 -83
  59. package/dist/esm/models/Pickface.js +0 -58
  60. package/dist/esm/models/PickfaceContainerModel.d.ts +0 -37
  61. package/dist/esm/models/PickfaceContainerModel.js +0 -40
  62. package/dist/esm/models/PickfaceContentsInner.d.ts +0 -58
  63. package/dist/esm/models/PickfaceContentsInner.js +0 -49
  64. package/dist/esm/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
  65. package/dist/esm/models/PickfaceContentsInnerApplicationsInner.js +0 -40
  66. package/dist/esm/models/PickfaceContentsInnerMetadata.d.ts +0 -43
  67. package/dist/esm/models/PickfaceContentsInnerMetadata.js +0 -42
  68. package/dist/esm/models/PickfaceContentsInnerQuantity.d.ts +0 -43
  69. package/dist/esm/models/PickfaceContentsInnerQuantity.js +0 -42
  70. package/dist/esm/models/PickfaceLastPicked.d.ts +0 -55
  71. package/dist/esm/models/PickfaceLastPicked.js +0 -46
  72. package/dist/esm/models/PickfaceLastRestocked.d.ts +0 -55
  73. package/dist/esm/models/PickfaceLastRestocked.js +0 -46
  74. package/dist/esm/models/PickfaceLog.d.ts +0 -55
  75. package/dist/esm/models/PickfaceLog.js +0 -46
  76. package/dist/esm/models/PickfaceLogUser.d.ts +0 -37
  77. package/dist/esm/models/PickfaceLogUser.js +0 -45
  78. package/dist/esm/models/PickfaceModel.d.ts +0 -37
  79. package/dist/esm/models/PickfaceModel.js +0 -40
  80. package/dist/esm/models/PickfaceModels.d.ts +0 -32
  81. package/dist/esm/models/PickfaceModels.js +0 -39
  82. package/dist/esm/models/UpdatePickfaceRequest.d.ts +0 -44
  83. package/dist/esm/models/UpdatePickfaceRequest.js +0 -43
  84. package/dist/esm/models/UpdatePickfaceRequestContents.d.ts +0 -37
  85. package/dist/esm/models/UpdatePickfaceRequestContents.js +0 -40
  86. package/dist/esm/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
  87. package/dist/esm/models/UpdatePickfaceRequestContentsInner.js +0 -45
  88. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
  89. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -51
  90. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
  91. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -51
  92. package/dist/esm/models/index.d.ts +0 -19
  93. package/dist/esm/models/index.js +0 -21
  94. package/dist/esm/runtime.d.ts +0 -187
  95. package/dist/esm/runtime.js +0 -333
  96. package/dist/models/ApiError.d.ts +0 -37
  97. package/dist/models/ApiError.js +0 -49
  98. package/dist/models/ContainerModel.d.ts +0 -61
  99. package/dist/models/ContainerModel.js +0 -61
  100. package/dist/models/ContainerModels.d.ts +0 -32
  101. package/dist/models/ContainerModels.js +0 -46
  102. package/dist/models/CreatePickfaceRequest.d.ts +0 -37
  103. package/dist/models/CreatePickfaceRequest.js +0 -47
  104. package/dist/models/CreatePickfaceRequestDimensions.d.ts +0 -43
  105. package/dist/models/CreatePickfaceRequestDimensions.js +0 -49
  106. package/dist/models/GetPickfaces200Response.d.ts +0 -38
  107. package/dist/models/GetPickfaces200Response.js +0 -48
  108. package/dist/models/ListPickfaceLogs200Response.d.ts +0 -38
  109. package/dist/models/ListPickfaceLogs200Response.js +0 -48
  110. package/dist/models/ModelError.d.ts +0 -37
  111. package/dist/models/ModelError.js +0 -53
  112. package/dist/models/MoveStockRequest.d.ts +0 -43
  113. package/dist/models/MoveStockRequest.js +0 -55
  114. package/dist/models/Pickface.d.ts +0 -83
  115. package/dist/models/Pickface.js +0 -65
  116. package/dist/models/PickfaceContainerModel.d.ts +0 -37
  117. package/dist/models/PickfaceContainerModel.js +0 -47
  118. package/dist/models/PickfaceContentsInner.d.ts +0 -58
  119. package/dist/models/PickfaceContentsInner.js +0 -56
  120. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
  121. package/dist/models/PickfaceContentsInnerApplicationsInner.js +0 -47
  122. package/dist/models/PickfaceContentsInnerMetadata.d.ts +0 -43
  123. package/dist/models/PickfaceContentsInnerMetadata.js +0 -49
  124. package/dist/models/PickfaceContentsInnerQuantity.d.ts +0 -43
  125. package/dist/models/PickfaceContentsInnerQuantity.js +0 -49
  126. package/dist/models/PickfaceLastPicked.d.ts +0 -55
  127. package/dist/models/PickfaceLastPicked.js +0 -53
  128. package/dist/models/PickfaceLastRestocked.d.ts +0 -55
  129. package/dist/models/PickfaceLastRestocked.js +0 -53
  130. package/dist/models/PickfaceLog.d.ts +0 -55
  131. package/dist/models/PickfaceLog.js +0 -53
  132. package/dist/models/PickfaceLogUser.d.ts +0 -37
  133. package/dist/models/PickfaceLogUser.js +0 -52
  134. package/dist/models/PickfaceModel.d.ts +0 -37
  135. package/dist/models/PickfaceModel.js +0 -47
  136. package/dist/models/PickfaceModels.d.ts +0 -32
  137. package/dist/models/PickfaceModels.js +0 -46
  138. package/dist/models/UpdatePickfaceRequest.d.ts +0 -44
  139. package/dist/models/UpdatePickfaceRequest.js +0 -50
  140. package/dist/models/UpdatePickfaceRequestContents.d.ts +0 -37
  141. package/dist/models/UpdatePickfaceRequestContents.js +0 -47
  142. package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
  143. package/dist/models/UpdatePickfaceRequestContentsInner.js +0 -52
  144. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
  145. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -58
  146. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
  147. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -58
  148. package/dist/models/index.d.ts +0 -19
  149. package/dist/models/index.js +0 -37
  150. package/dist/runtime.d.ts +0 -187
  151. package/dist/runtime.js +0 -349
  152. package/src/apis/PickfacesApi.ts +0 -821
  153. package/src/apis/index.ts +0 -3
  154. package/src/index.ts +0 -5
  155. package/src/models/ApiError.ts +0 -69
  156. package/src/models/ContainerModel.ts +0 -103
  157. package/src/models/ContainerModels.ts +0 -67
  158. package/src/models/CreatePickfaceRequest.ts +0 -68
  159. package/src/models/CreatePickfaceRequestDimensions.ts +0 -76
  160. package/src/models/GetPickfaces200Response.ts +0 -75
  161. package/src/models/ListPickfaceLogs200Response.ts +0 -75
  162. package/src/models/ModelError.ts +0 -74
  163. package/src/models/MoveStockRequest.ts +0 -79
  164. package/src/models/Pickface.ts +0 -149
  165. package/src/models/PickfaceContainerModel.ts +0 -68
  166. package/src/models/PickfaceContentsInner.ts +0 -111
  167. package/src/models/PickfaceContentsInnerApplicationsInner.ts +0 -68
  168. package/src/models/PickfaceContentsInnerMetadata.ts +0 -76
  169. package/src/models/PickfaceContentsInnerQuantity.ts +0 -76
  170. package/src/models/PickfaceLastPicked.ts +0 -92
  171. package/src/models/PickfaceLastRestocked.ts +0 -92
  172. package/src/models/PickfaceLog.ts +0 -92
  173. package/src/models/PickfaceLogUser.ts +0 -73
  174. package/src/models/PickfaceModel.ts +0 -68
  175. package/src/models/PickfaceModels.ts +0 -67
  176. package/src/models/UpdatePickfaceRequest.ts +0 -83
  177. package/src/models/UpdatePickfaceRequestContents.ts +0 -68
  178. package/src/models/UpdatePickfaceRequestContentsInner.ts +0 -77
  179. package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +0 -81
  180. package/src/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.ts +0 -81
  181. package/src/models/index.ts +0 -21
  182. package/src/runtime.ts +0 -441
@@ -0,0 +1,1236 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pickfaces API
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.14.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ 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
+ * Issue an empty pickface
290
+ * @summary Issue empty pickface
291
+ * @param {string} project What project it is
292
+ * @param {string} pickfaceId Unique identifier of a pickface
293
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ issueEmptyPickface: (project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueEmptyPickfaceRequest, options = {}) {
298
+ // verify required parameter 'project' is not null or undefined
299
+ assertParamExists('issueEmptyPickface', 'project', project);
300
+ // verify required parameter 'pickfaceId' is not null or undefined
301
+ assertParamExists('issueEmptyPickface', 'pickfaceId', pickfaceId);
302
+ // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
303
+ assertParamExists('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest);
304
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
305
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
306
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
307
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
308
+ let baseOptions;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ }
312
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
313
+ const localVarHeaderParameter = {};
314
+ const localVarQueryParameter = {};
315
+ // authentication session-oauth required
316
+ // oauth required
317
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
318
+ // authentication api-key required
319
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
320
+ if (project !== undefined) {
321
+ localVarQueryParameter['project'] = project;
322
+ }
323
+ localVarHeaderParameter['Content-Type'] = 'application/json';
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
+ localVarRequestOptions.data = serializeDataIfNeeded(issueEmptyPickfaceRequest, localVarRequestOptions, configuration);
328
+ return {
329
+ url: toPathString(localVarUrlObj),
330
+ options: localVarRequestOptions,
331
+ };
332
+ }),
333
+ /**
334
+ * Issue a pickface with wrong contents
335
+ * @summary Issue wrong contents pickface
336
+ * @param {string} project What project it is
337
+ * @param {string} pickfaceId Unique identifier of a pickface
338
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ issueWrongContentsPickface: (project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueWrongContentsPickfaceRequest, options = {}) {
343
+ // verify required parameter 'project' is not null or undefined
344
+ assertParamExists('issueWrongContentsPickface', 'project', project);
345
+ // verify required parameter 'pickfaceId' is not null or undefined
346
+ assertParamExists('issueWrongContentsPickface', 'pickfaceId', pickfaceId);
347
+ // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
348
+ assertParamExists('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest);
349
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
350
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
353
+ let baseOptions;
354
+ if (configuration) {
355
+ baseOptions = configuration.baseOptions;
356
+ }
357
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
358
+ const localVarHeaderParameter = {};
359
+ const localVarQueryParameter = {};
360
+ // authentication session-oauth required
361
+ // oauth required
362
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
363
+ // authentication api-key required
364
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
365
+ if (project !== undefined) {
366
+ localVarQueryParameter['project'] = project;
367
+ }
368
+ localVarHeaderParameter['Content-Type'] = 'application/json';
369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
372
+ localVarRequestOptions.data = serializeDataIfNeeded(issueWrongContentsPickfaceRequest, localVarRequestOptions, configuration);
373
+ return {
374
+ url: toPathString(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ };
377
+ }),
378
+ /**
379
+ * Get a list of pickface logs
380
+ * @summary Get pickface logs
381
+ * @param {string} project What project it is
382
+ * @param {string} pickfaceId Unique identifier of a pickface
383
+ * @param {number} [pageToken] Page reference token
384
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ 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 = {}) {
389
+ // verify required parameter 'project' is not null or undefined
390
+ assertParamExists('listPickfaceLogs', 'project', project);
391
+ // verify required parameter 'pickfaceId' is not null or undefined
392
+ assertParamExists('listPickfaceLogs', 'pickfaceId', pickfaceId);
393
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/logs`
394
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
397
+ let baseOptions;
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ }
401
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
402
+ const localVarHeaderParameter = {};
403
+ const localVarQueryParameter = {};
404
+ // authentication session-oauth required
405
+ // oauth required
406
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
407
+ // authentication api-key required
408
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
409
+ if (project !== undefined) {
410
+ localVarQueryParameter['project'] = project;
411
+ }
412
+ if (pageToken !== undefined) {
413
+ localVarQueryParameter['pageToken'] = pageToken;
414
+ }
415
+ if (pageSize !== undefined) {
416
+ localVarQueryParameter['pageSize'] = pageSize;
417
+ }
418
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
419
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
420
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
421
+ return {
422
+ url: toPathString(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ };
425
+ }),
426
+ /**
427
+ * Move stock from one pickface to another in a single transaction
428
+ * @summary Move stock
429
+ * @param {string} project What project it is
430
+ * @param {string} pickfaceId Unique identifier of a pickface
431
+ * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ 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 = {}) {
436
+ // verify required parameter 'project' is not null or undefined
437
+ assertParamExists('moveStock', 'project', project);
438
+ // verify required parameter 'pickfaceId' is not null or undefined
439
+ assertParamExists('moveStock', 'pickfaceId', pickfaceId);
440
+ // verify required parameter 'moveStockRequest' is not null or undefined
441
+ assertParamExists('moveStock', 'moveStockRequest', moveStockRequest);
442
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/stock/move`
443
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
446
+ let baseOptions;
447
+ if (configuration) {
448
+ baseOptions = configuration.baseOptions;
449
+ }
450
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
451
+ const localVarHeaderParameter = {};
452
+ const localVarQueryParameter = {};
453
+ // authentication session-oauth required
454
+ // oauth required
455
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
456
+ // authentication api-key required
457
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
458
+ if (project !== undefined) {
459
+ localVarQueryParameter['project'] = project;
460
+ }
461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ localVarRequestOptions.data = serializeDataIfNeeded(moveStockRequest, localVarRequestOptions, configuration);
466
+ return {
467
+ url: toPathString(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ }),
471
+ /**
472
+ * Print a pickface label
473
+ * @summary Print pickface label
474
+ * @param {string} project What project it is
475
+ * @param {string} pickfaceId Unique identifier of a pickface
476
+ * @param {string} deviceRef Unique identifier of a warehouse device
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ 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 = {}) {
481
+ // verify required parameter 'project' is not null or undefined
482
+ assertParamExists('printPickfaceLabel', 'project', project);
483
+ // verify required parameter 'pickfaceId' is not null or undefined
484
+ assertParamExists('printPickfaceLabel', 'pickfaceId', pickfaceId);
485
+ // verify required parameter 'deviceRef' is not null or undefined
486
+ assertParamExists('printPickfaceLabel', 'deviceRef', deviceRef);
487
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/print`
488
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
491
+ let baseOptions;
492
+ if (configuration) {
493
+ baseOptions = configuration.baseOptions;
494
+ }
495
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
496
+ const localVarHeaderParameter = {};
497
+ const localVarQueryParameter = {};
498
+ // authentication session-oauth required
499
+ // oauth required
500
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
501
+ // authentication api-key required
502
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
503
+ if (project !== undefined) {
504
+ localVarQueryParameter['project'] = project;
505
+ }
506
+ if (deviceRef !== undefined) {
507
+ localVarQueryParameter['deviceRef'] = deviceRef;
508
+ }
509
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
512
+ return {
513
+ url: toPathString(localVarUrlObj),
514
+ options: localVarRequestOptions,
515
+ };
516
+ }),
517
+ /**
518
+ * Resolves an issue on a pickface
519
+ * @summary Resolve pickface issue
520
+ * @param {string} project What project it is
521
+ * @param {string} pickfaceId Unique identifier of a pickface
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ resolvePickfaceIssue: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
526
+ // verify required parameter 'project' is not null or undefined
527
+ assertParamExists('resolvePickfaceIssue', 'project', project);
528
+ // verify required parameter 'pickfaceId' is not null or undefined
529
+ assertParamExists('resolvePickfaceIssue', 'pickfaceId', pickfaceId);
530
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
531
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
534
+ let baseOptions;
535
+ if (configuration) {
536
+ baseOptions = configuration.baseOptions;
537
+ }
538
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
539
+ const localVarHeaderParameter = {};
540
+ const localVarQueryParameter = {};
541
+ // authentication session-oauth required
542
+ // oauth required
543
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
544
+ // authentication api-key required
545
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
546
+ if (project !== undefined) {
547
+ localVarQueryParameter['project'] = project;
548
+ }
549
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
550
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
551
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
552
+ return {
553
+ url: toPathString(localVarUrlObj),
554
+ options: localVarRequestOptions,
555
+ };
556
+ }),
557
+ /**
558
+ * Suggest pickfaces for putting away stock
559
+ * @summary Suggest pickfaces
560
+ * @param {string} project What project it is
561
+ * @param {string} variantRef Unique identifier of a warehouse variant
562
+ * @param {number} quantity Number of variants
563
+ * @param {number} [pageToken] Page reference token
564
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ 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 = {}) {
569
+ // verify required parameter 'project' is not null or undefined
570
+ assertParamExists('suggestPickfaces', 'project', project);
571
+ // verify required parameter 'variantRef' is not null or undefined
572
+ assertParamExists('suggestPickfaces', 'variantRef', variantRef);
573
+ // verify required parameter 'quantity' is not null or undefined
574
+ assertParamExists('suggestPickfaces', 'quantity', quantity);
575
+ const localVarPath = `/v1/pickfaces/suggest`;
576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
578
+ let baseOptions;
579
+ if (configuration) {
580
+ baseOptions = configuration.baseOptions;
581
+ }
582
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
583
+ const localVarHeaderParameter = {};
584
+ const localVarQueryParameter = {};
585
+ // authentication session-oauth required
586
+ // oauth required
587
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
588
+ // authentication api-key required
589
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
590
+ if (project !== undefined) {
591
+ localVarQueryParameter['project'] = project;
592
+ }
593
+ if (variantRef !== undefined) {
594
+ localVarQueryParameter['variantRef'] = variantRef;
595
+ }
596
+ if (quantity !== undefined) {
597
+ localVarQueryParameter['quantity'] = quantity;
598
+ }
599
+ if (pageToken !== undefined) {
600
+ localVarQueryParameter['pageToken'] = pageToken;
601
+ }
602
+ if (pageSize !== undefined) {
603
+ localVarQueryParameter['pageSize'] = pageSize;
604
+ }
605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
607
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
608
+ return {
609
+ url: toPathString(localVarUrlObj),
610
+ options: localVarRequestOptions,
611
+ };
612
+ }),
613
+ /**
614
+ * Update a Pickface
615
+ * @summary Update Pickface
616
+ * @param {string} project What project it is
617
+ * @param {string} pickfaceId Unique identifier of a pickface
618
+ * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ 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 = {}) {
623
+ // verify required parameter 'project' is not null or undefined
624
+ assertParamExists('updatePickface', 'project', project);
625
+ // verify required parameter 'pickfaceId' is not null or undefined
626
+ assertParamExists('updatePickface', 'pickfaceId', pickfaceId);
627
+ // verify required parameter 'updatePickfaceRequest' is not null or undefined
628
+ assertParamExists('updatePickface', 'updatePickfaceRequest', updatePickfaceRequest);
629
+ const localVarPath = `/v1/pickfaces/{pickfaceId}`
630
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
631
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
632
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
633
+ let baseOptions;
634
+ if (configuration) {
635
+ baseOptions = configuration.baseOptions;
636
+ }
637
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
638
+ const localVarHeaderParameter = {};
639
+ const localVarQueryParameter = {};
640
+ // authentication session-oauth required
641
+ // oauth required
642
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
643
+ // authentication api-key required
644
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
645
+ if (project !== undefined) {
646
+ localVarQueryParameter['project'] = project;
647
+ }
648
+ localVarHeaderParameter['Content-Type'] = 'application/json';
649
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
651
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
652
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePickfaceRequest, localVarRequestOptions, configuration);
653
+ return {
654
+ url: toPathString(localVarUrlObj),
655
+ options: localVarRequestOptions,
656
+ };
657
+ }),
658
+ };
659
+ };
660
+ /**
661
+ * PickfacesApi - functional programming interface
662
+ * @export
663
+ */
664
+ export const PickfacesApiFp = function (configuration) {
665
+ const localVarAxiosParamCreator = PickfacesApiAxiosParamCreator(configuration);
666
+ return {
667
+ /**
668
+ * Create a Pickface
669
+ * @summary Create Pickface
670
+ * @param {string} project What project it is
671
+ * @param {CreatePickfaceRequest} createPickfaceRequest Create pickface schema
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ createPickface(project, createPickfaceRequest, options) {
676
+ return __awaiter(this, void 0, void 0, function* () {
677
+ var _a, _b, _c;
678
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPickface(project, createPickfaceRequest, options);
679
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
680
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.createPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
682
+ });
683
+ },
684
+ /**
685
+ * Delete a Pickface
686
+ * @summary Delete Pickface
687
+ * @param {string} project What project it is
688
+ * @param {string} pickfaceId Unique identifier of a pickface
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ deletePickface(project, pickfaceId, options) {
693
+ return __awaiter(this, void 0, void 0, function* () {
694
+ var _a, _b, _c;
695
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePickface(project, pickfaceId, options);
696
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
697
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.deletePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
699
+ });
700
+ },
701
+ /**
702
+ * Export pickfaces as a CSV file
703
+ * @summary Export pickfaces
704
+ * @param {string} project What project it is
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ exportPickfaces(project, options) {
709
+ return __awaiter(this, void 0, void 0, function* () {
710
+ var _a, _b, _c;
711
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPickfaces(project, options);
712
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
713
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.exportPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
714
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
715
+ });
716
+ },
717
+ /**
718
+ * Get a pickface
719
+ * @summary Get pickface
720
+ * @param {string} project What project it is
721
+ * @param {string} pickfaceId Unique identifier of a pickface
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ getPickface(project, pickfaceId, options) {
726
+ return __awaiter(this, void 0, void 0, function* () {
727
+ var _a, _b, _c;
728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickface(project, pickfaceId, 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.getPickface']) === 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
+ * Lists pickface container models
736
+ * @summary Get pickface container models
737
+ * @param {string} project What project it is
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ getPickfaceContainerModels(project, options) {
742
+ return __awaiter(this, void 0, void 0, function* () {
743
+ var _a, _b, _c;
744
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaceContainerModels(project, options);
745
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
746
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaceContainerModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
748
+ });
749
+ },
750
+ /**
751
+ * Lists all pickfaces available paginated into chunks
752
+ * @summary List pickfaces
753
+ * @param {string} project What project it is
754
+ * @param {string} [search] Search term to filter based on pickface code
755
+ * @param {number} [pageToken] Page reference token
756
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
757
+ * @param {Array<GetPickfacesFiltersEnum>} [filters] Filters to apply to the request
758
+ * @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.
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options) {
763
+ return __awaiter(this, void 0, void 0, function* () {
764
+ var _a, _b, _c;
765
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPickfaces(project, search, pageToken, pageSize, filters, sortBy, options);
766
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
767
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.getPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
768
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
769
+ });
770
+ },
771
+ /**
772
+ * Issue an empty pickface
773
+ * @summary Issue empty pickface
774
+ * @param {string} project What project it is
775
+ * @param {string} pickfaceId Unique identifier of a pickface
776
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options) {
781
+ return __awaiter(this, void 0, void 0, function* () {
782
+ var _a, _b, _c;
783
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options);
784
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
785
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.issueEmptyPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
786
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
787
+ });
788
+ },
789
+ /**
790
+ * Issue a pickface with wrong contents
791
+ * @summary Issue wrong contents pickface
792
+ * @param {string} project What project it is
793
+ * @param {string} pickfaceId Unique identifier of a pickface
794
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options) {
799
+ return __awaiter(this, void 0, void 0, function* () {
800
+ var _a, _b, _c;
801
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options);
802
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
803
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.issueWrongContentsPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
804
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
805
+ });
806
+ },
807
+ /**
808
+ * Get a list of pickface logs
809
+ * @summary Get pickface logs
810
+ * @param {string} project What project it is
811
+ * @param {string} pickfaceId Unique identifier of a pickface
812
+ * @param {number} [pageToken] Page reference token
813
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options) {
818
+ return __awaiter(this, void 0, void 0, function* () {
819
+ var _a, _b, _c;
820
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPickfaceLogs(project, pickfaceId, pageToken, pageSize, options);
821
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
822
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.listPickfaceLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
823
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
824
+ });
825
+ },
826
+ /**
827
+ * Move stock from one pickface to another in a single transaction
828
+ * @summary Move stock
829
+ * @param {string} project What project it is
830
+ * @param {string} pickfaceId Unique identifier of a pickface
831
+ * @param {MoveStockRequest} moveStockRequest Move stock from one pickface to another
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ moveStock(project, pickfaceId, moveStockRequest, options) {
836
+ return __awaiter(this, void 0, void 0, function* () {
837
+ var _a, _b, _c;
838
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.moveStock(project, pickfaceId, moveStockRequest, options);
839
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
840
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.moveStock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
841
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
842
+ });
843
+ },
844
+ /**
845
+ * Print a pickface label
846
+ * @summary Print pickface label
847
+ * @param {string} project What project it is
848
+ * @param {string} pickfaceId Unique identifier of a pickface
849
+ * @param {string} deviceRef Unique identifier of a warehouse device
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ */
853
+ printPickfaceLabel(project, pickfaceId, deviceRef, options) {
854
+ return __awaiter(this, void 0, void 0, function* () {
855
+ var _a, _b, _c;
856
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.printPickfaceLabel(project, pickfaceId, deviceRef, options);
857
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
858
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.printPickfaceLabel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
859
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
860
+ });
861
+ },
862
+ /**
863
+ * Resolves an issue on a pickface
864
+ * @summary Resolve pickface issue
865
+ * @param {string} project What project it is
866
+ * @param {string} pickfaceId Unique identifier of a pickface
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ resolvePickfaceIssue(project, pickfaceId, options) {
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ var _a, _b, _c;
873
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resolvePickfaceIssue(project, pickfaceId, options);
874
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
875
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.resolvePickfaceIssue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
876
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
877
+ });
878
+ },
879
+ /**
880
+ * Suggest pickfaces for putting away stock
881
+ * @summary Suggest pickfaces
882
+ * @param {string} project What project it is
883
+ * @param {string} variantRef Unique identifier of a warehouse variant
884
+ * @param {number} quantity Number of variants
885
+ * @param {number} [pageToken] Page reference token
886
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options) {
891
+ return __awaiter(this, void 0, void 0, function* () {
892
+ var _a, _b, _c;
893
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestPickfaces(project, variantRef, quantity, pageToken, pageSize, options);
894
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
895
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.suggestPickfaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
896
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
897
+ });
898
+ },
899
+ /**
900
+ * Update a Pickface
901
+ * @summary Update Pickface
902
+ * @param {string} project What project it is
903
+ * @param {string} pickfaceId Unique identifier of a pickface
904
+ * @param {UpdatePickfaceRequest} updatePickfaceRequest Update pickface schema
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ updatePickface(project, pickfaceId, updatePickfaceRequest, options) {
909
+ return __awaiter(this, void 0, void 0, function* () {
910
+ var _a, _b, _c;
911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePickface(project, pickfaceId, updatePickfaceRequest, options);
912
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PickfacesApi.updatePickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
915
+ });
916
+ },
917
+ };
918
+ };
919
+ /**
920
+ * PickfacesApi - factory interface
921
+ * @export
922
+ */
923
+ export const PickfacesApiFactory = function (configuration, basePath, axios) {
924
+ const localVarFp = PickfacesApiFp(configuration);
925
+ return {
926
+ /**
927
+ * Create a Pickface
928
+ * @summary Create Pickface
929
+ * @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ createPickface(requestParameters, options) {
934
+ return localVarFp.createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(axios, basePath));
935
+ },
936
+ /**
937
+ * Delete a Pickface
938
+ * @summary Delete Pickface
939
+ * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ deletePickface(requestParameters, options) {
944
+ return localVarFp.deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
945
+ },
946
+ /**
947
+ * Export pickfaces as a CSV file
948
+ * @summary Export pickfaces
949
+ * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ exportPickfaces(requestParameters, options) {
954
+ return localVarFp.exportPickfaces(requestParameters.project, options).then((request) => request(axios, basePath));
955
+ },
956
+ /**
957
+ * Get a pickface
958
+ * @summary Get pickface
959
+ * @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ getPickface(requestParameters, options) {
964
+ return localVarFp.getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
965
+ },
966
+ /**
967
+ * Lists pickface container models
968
+ * @summary Get pickface container models
969
+ * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ getPickfaceContainerModels(requestParameters, options) {
974
+ return localVarFp.getPickfaceContainerModels(requestParameters.project, options).then((request) => request(axios, basePath));
975
+ },
976
+ /**
977
+ * Lists all pickfaces available paginated into chunks
978
+ * @summary List pickfaces
979
+ * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ getPickfaces(requestParameters, options) {
984
+ return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(axios, basePath));
985
+ },
986
+ /**
987
+ * Issue an empty pickface
988
+ * @summary Issue empty pickface
989
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ issueEmptyPickface(requestParameters, options) {
994
+ return localVarFp.issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(axios, basePath));
995
+ },
996
+ /**
997
+ * Issue a pickface with wrong contents
998
+ * @summary Issue wrong contents pickface
999
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ */
1003
+ issueWrongContentsPickface(requestParameters, options) {
1004
+ return localVarFp.issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(axios, basePath));
1005
+ },
1006
+ /**
1007
+ * Get a list of pickface logs
1008
+ * @summary Get pickface logs
1009
+ * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ listPickfaceLogs(requestParameters, options) {
1014
+ return localVarFp.listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1015
+ },
1016
+ /**
1017
+ * Move stock from one pickface to another in a single transaction
1018
+ * @summary Move stock
1019
+ * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ moveStock(requestParameters, options) {
1024
+ return localVarFp.moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(axios, basePath));
1025
+ },
1026
+ /**
1027
+ * Print a pickface label
1028
+ * @summary Print pickface label
1029
+ * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ printPickfaceLabel(requestParameters, options) {
1034
+ return localVarFp.printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
1035
+ },
1036
+ /**
1037
+ * Resolves an issue on a pickface
1038
+ * @summary Resolve pickface issue
1039
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ resolvePickfaceIssue(requestParameters, options) {
1044
+ return localVarFp.resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
1045
+ },
1046
+ /**
1047
+ * Suggest pickfaces for putting away stock
1048
+ * @summary Suggest pickfaces
1049
+ * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ suggestPickfaces(requestParameters, options) {
1054
+ return localVarFp.suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1055
+ },
1056
+ /**
1057
+ * Update a Pickface
1058
+ * @summary Update Pickface
1059
+ * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ */
1063
+ updatePickface(requestParameters, options) {
1064
+ return localVarFp.updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(axios, basePath));
1065
+ },
1066
+ };
1067
+ };
1068
+ /**
1069
+ * PickfacesApi - object-oriented interface
1070
+ * @export
1071
+ * @class PickfacesApi
1072
+ * @extends {BaseAPI}
1073
+ */
1074
+ export class PickfacesApi extends BaseAPI {
1075
+ /**
1076
+ * Create a Pickface
1077
+ * @summary Create Pickface
1078
+ * @param {PickfacesApiCreatePickfaceRequest} requestParameters Request parameters.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ * @memberof PickfacesApi
1082
+ */
1083
+ createPickface(requestParameters, options) {
1084
+ return PickfacesApiFp(this.configuration).createPickface(requestParameters.project, requestParameters.createPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1085
+ }
1086
+ /**
1087
+ * Delete a Pickface
1088
+ * @summary Delete Pickface
1089
+ * @param {PickfacesApiDeletePickfaceRequest} requestParameters Request parameters.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ * @memberof PickfacesApi
1093
+ */
1094
+ deletePickface(requestParameters, options) {
1095
+ return PickfacesApiFp(this.configuration).deletePickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1096
+ }
1097
+ /**
1098
+ * Export pickfaces as a CSV file
1099
+ * @summary Export pickfaces
1100
+ * @param {PickfacesApiExportPickfacesRequest} requestParameters Request parameters.
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ * @memberof PickfacesApi
1104
+ */
1105
+ exportPickfaces(requestParameters, options) {
1106
+ return PickfacesApiFp(this.configuration).exportPickfaces(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1107
+ }
1108
+ /**
1109
+ * Get a pickface
1110
+ * @summary Get pickface
1111
+ * @param {PickfacesApiGetPickfaceRequest} requestParameters Request parameters.
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ * @memberof PickfacesApi
1115
+ */
1116
+ getPickface(requestParameters, options) {
1117
+ return PickfacesApiFp(this.configuration).getPickface(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1118
+ }
1119
+ /**
1120
+ * Lists pickface container models
1121
+ * @summary Get pickface container models
1122
+ * @param {PickfacesApiGetPickfaceContainerModelsRequest} requestParameters Request parameters.
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ * @memberof PickfacesApi
1126
+ */
1127
+ getPickfaceContainerModels(requestParameters, options) {
1128
+ return PickfacesApiFp(this.configuration).getPickfaceContainerModels(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1129
+ }
1130
+ /**
1131
+ * Lists all pickfaces available paginated into chunks
1132
+ * @summary List pickfaces
1133
+ * @param {PickfacesApiGetPickfacesRequest} requestParameters Request parameters.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ * @memberof PickfacesApi
1137
+ */
1138
+ getPickfaces(requestParameters, options) {
1139
+ 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));
1140
+ }
1141
+ /**
1142
+ * Issue an empty pickface
1143
+ * @summary Issue empty pickface
1144
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
1145
+ * @param {*} [options] Override http request option.
1146
+ * @throws {RequiredError}
1147
+ * @memberof PickfacesApi
1148
+ */
1149
+ issueEmptyPickface(requestParameters, options) {
1150
+ return PickfacesApiFp(this.configuration).issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1151
+ }
1152
+ /**
1153
+ * Issue a pickface with wrong contents
1154
+ * @summary Issue wrong contents pickface
1155
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ * @memberof PickfacesApi
1159
+ */
1160
+ issueWrongContentsPickface(requestParameters, options) {
1161
+ return PickfacesApiFp(this.configuration).issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1162
+ }
1163
+ /**
1164
+ * Get a list of pickface logs
1165
+ * @summary Get pickface logs
1166
+ * @param {PickfacesApiListPickfaceLogsRequest} requestParameters Request parameters.
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ * @memberof PickfacesApi
1170
+ */
1171
+ listPickfaceLogs(requestParameters, options) {
1172
+ return PickfacesApiFp(this.configuration).listPickfaceLogs(requestParameters.project, requestParameters.pickfaceId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1173
+ }
1174
+ /**
1175
+ * Move stock from one pickface to another in a single transaction
1176
+ * @summary Move stock
1177
+ * @param {PickfacesApiMoveStockRequest} requestParameters Request parameters.
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ * @memberof PickfacesApi
1181
+ */
1182
+ moveStock(requestParameters, options) {
1183
+ return PickfacesApiFp(this.configuration).moveStock(requestParameters.project, requestParameters.pickfaceId, requestParameters.moveStockRequest, options).then((request) => request(this.axios, this.basePath));
1184
+ }
1185
+ /**
1186
+ * Print a pickface label
1187
+ * @summary Print pickface label
1188
+ * @param {PickfacesApiPrintPickfaceLabelRequest} requestParameters Request parameters.
1189
+ * @param {*} [options] Override http request option.
1190
+ * @throws {RequiredError}
1191
+ * @memberof PickfacesApi
1192
+ */
1193
+ printPickfaceLabel(requestParameters, options) {
1194
+ return PickfacesApiFp(this.configuration).printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
1195
+ }
1196
+ /**
1197
+ * Resolves an issue on a pickface
1198
+ * @summary Resolve pickface issue
1199
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ * @memberof PickfacesApi
1203
+ */
1204
+ resolvePickfaceIssue(requestParameters, options) {
1205
+ return PickfacesApiFp(this.configuration).resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1206
+ }
1207
+ /**
1208
+ * Suggest pickfaces for putting away stock
1209
+ * @summary Suggest pickfaces
1210
+ * @param {PickfacesApiSuggestPickfacesRequest} requestParameters Request parameters.
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ * @memberof PickfacesApi
1214
+ */
1215
+ suggestPickfaces(requestParameters, options) {
1216
+ return PickfacesApiFp(this.configuration).suggestPickfaces(requestParameters.project, requestParameters.variantRef, requestParameters.quantity, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1217
+ }
1218
+ /**
1219
+ * Update a Pickface
1220
+ * @summary Update Pickface
1221
+ * @param {PickfacesApiUpdatePickfaceRequest} requestParameters Request parameters.
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ * @memberof PickfacesApi
1225
+ */
1226
+ updatePickface(requestParameters, options) {
1227
+ return PickfacesApiFp(this.configuration).updatePickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.updatePickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1228
+ }
1229
+ }
1230
+ /**
1231
+ * @export
1232
+ */
1233
+ export const GetPickfacesFiltersEnum = {
1234
+ Empty: 'empty',
1235
+ Flagged: 'flagged'
1236
+ };