@teemill/pickfaces 0.12.2 → 0.14.0

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