@teemill/pickfaces 0.12.1 → 0.12.2
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.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/PickfacesApi.d.ts +1 -1
- package/dist/apis/PickfacesApi.js +424 -725
- package/dist/esm/apis/PickfacesApi.d.ts +189 -0
- package/dist/esm/apis/PickfacesApi.js +565 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/ContainerModel.d.ts +61 -0
- package/dist/esm/models/ContainerModel.js +54 -0
- package/dist/esm/models/ContainerModels.d.ts +32 -0
- package/dist/esm/models/ContainerModels.js +39 -0
- package/dist/esm/models/CreatePickfaceRequest.d.ts +37 -0
- package/dist/esm/models/CreatePickfaceRequest.js +40 -0
- package/dist/esm/models/CreatePickfaceRequestDimensions.d.ts +43 -0
- package/dist/esm/models/CreatePickfaceRequestDimensions.js +42 -0
- package/dist/esm/models/GetPickfaces200Response.d.ts +38 -0
- package/dist/esm/models/GetPickfaces200Response.js +41 -0
- package/dist/esm/models/ListPickfaceLogs200Response.d.ts +38 -0
- package/dist/esm/models/ListPickfaceLogs200Response.js +41 -0
- package/dist/esm/models/ModelError.d.ts +37 -0
- package/dist/esm/models/ModelError.js +46 -0
- package/dist/esm/models/MoveStockRequest.d.ts +43 -0
- package/dist/esm/models/MoveStockRequest.js +48 -0
- package/dist/esm/models/Pickface.d.ts +83 -0
- package/dist/esm/models/Pickface.js +58 -0
- package/dist/esm/models/PickfaceContainerModel.d.ts +37 -0
- package/dist/esm/models/PickfaceContainerModel.js +40 -0
- package/dist/esm/models/PickfaceContentsInner.d.ts +58 -0
- package/dist/esm/models/PickfaceContentsInner.js +49 -0
- package/dist/esm/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
- package/dist/esm/models/PickfaceContentsInnerApplicationsInner.js +40 -0
- package/dist/esm/models/PickfaceContentsInnerMetadata.d.ts +43 -0
- package/dist/esm/models/PickfaceContentsInnerMetadata.js +42 -0
- package/dist/esm/models/PickfaceContentsInnerQuantity.d.ts +43 -0
- package/dist/esm/models/PickfaceContentsInnerQuantity.js +42 -0
- package/dist/esm/models/PickfaceLastPicked.d.ts +55 -0
- package/dist/esm/models/PickfaceLastPicked.js +46 -0
- package/dist/esm/models/PickfaceLastRestocked.d.ts +55 -0
- package/dist/esm/models/PickfaceLastRestocked.js +46 -0
- package/dist/esm/models/PickfaceLog.d.ts +55 -0
- package/dist/esm/models/PickfaceLog.js +46 -0
- package/dist/esm/models/PickfaceLogUser.d.ts +37 -0
- package/dist/esm/models/PickfaceLogUser.js +45 -0
- package/dist/esm/models/PickfaceModel.d.ts +37 -0
- package/dist/esm/models/PickfaceModel.js +40 -0
- package/dist/esm/models/PickfaceModels.d.ts +32 -0
- package/dist/esm/models/PickfaceModels.js +39 -0
- package/dist/esm/models/UpdatePickfaceRequest.d.ts +44 -0
- package/dist/esm/models/UpdatePickfaceRequest.js +43 -0
- package/dist/esm/models/UpdatePickfaceRequestContents.d.ts +37 -0
- package/dist/esm/models/UpdatePickfaceRequestContents.js +40 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInner.d.ts +38 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInner.js +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.js +51 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +51 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/ContainerModel.d.ts +1 -1
- package/dist/models/ContainerModel.js +1 -1
- package/dist/models/ContainerModels.d.ts +1 -1
- package/dist/models/ContainerModels.js +2 -2
- package/dist/models/CreatePickfaceRequest.d.ts +1 -1
- package/dist/models/CreatePickfaceRequest.js +1 -1
- package/dist/models/GetPickfaces200Response.d.ts +1 -1
- package/dist/models/GetPickfaces200Response.js +2 -2
- package/dist/models/ListPickfaceLogs200Response.d.ts +1 -1
- package/dist/models/ListPickfaceLogs200Response.js +2 -2
- package/dist/models/ModelError.js +2 -2
- package/dist/models/MoveStockRequest.d.ts +1 -1
- package/dist/models/MoveStockRequest.js +1 -1
- package/dist/models/Pickface.d.ts +1 -1
- package/dist/models/Pickface.js +5 -5
- package/dist/models/PickfaceContainerModel.d.ts +1 -1
- package/dist/models/PickfaceContainerModel.js +1 -1
- package/dist/models/PickfaceContentsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInner.js +4 -4
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.js +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.js +1 -1
- package/dist/models/PickfaceLastPicked.d.ts +1 -1
- package/dist/models/PickfaceLastPicked.js +1 -1
- package/dist/models/PickfaceLastRestocked.d.ts +1 -1
- package/dist/models/PickfaceLastRestocked.js +1 -1
- package/dist/models/PickfaceLog.d.ts +1 -1
- package/dist/models/PickfaceLog.js +1 -1
- package/dist/models/PickfaceLogUser.js +2 -2
- package/dist/models/PickfaceModels.js +1 -1
- package/dist/models/UpdatePickfaceRequest.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequest.js +2 -2
- package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInner.js +2 -2
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/PickfacesApi.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/ContainerModel.ts +1 -1
- package/src/models/ContainerModels.ts +1 -1
- package/src/models/CreatePickfaceRequest.ts +1 -1
- package/src/models/GetPickfaces200Response.ts +1 -1
- package/src/models/ListPickfaceLogs200Response.ts +1 -1
- package/src/models/MoveStockRequest.ts +1 -1
- package/src/models/Pickface.ts +1 -1
- package/src/models/PickfaceContainerModel.ts +1 -1
- package/src/models/PickfaceContentsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerMetadata.ts +1 -1
- package/src/models/PickfaceContentsInnerQuantity.ts +1 -1
- package/src/models/PickfaceLastPicked.ts +1 -1
- package/src/models/PickfaceLastRestocked.ts +1 -1
- package/src/models/PickfaceLog.ts +1 -1
- package/src/models/UpdatePickfaceRequest.ts +1 -1
- package/src/models/UpdatePickfaceRequestContentsInner.ts +1 -1
- package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +1 -1
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -5,39 +5,13 @@
|
|
|
5
5
|
* Pickfaces API
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.12.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
15
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
16
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
17
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -47,819 +21,544 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
47
21
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
22
|
});
|
|
49
23
|
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
25
|
exports.GetPickfacesFiltersEnum = exports.PickfacesApi = void 0;
|
|
79
|
-
|
|
80
|
-
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
81
28
|
/**
|
|
82
29
|
*
|
|
83
30
|
*/
|
|
84
|
-
|
|
85
|
-
__extends(PickfacesApi, _super);
|
|
86
|
-
function PickfacesApi() {
|
|
87
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
88
|
-
}
|
|
31
|
+
class PickfacesApi extends runtime.BaseAPI {
|
|
89
32
|
/**
|
|
90
33
|
* Create a Pickface
|
|
91
34
|
* Create Pickface
|
|
92
35
|
*/
|
|
93
|
-
|
|
94
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
123
|
-
}
|
|
124
|
-
return [4 /*yield*/, this.request({
|
|
125
|
-
path: "/v1/pickfaces",
|
|
126
|
-
method: 'POST',
|
|
127
|
-
headers: headerParameters,
|
|
128
|
-
query: queryParameters,
|
|
129
|
-
body: (0, index_1.CreatePickfaceRequestToJSON)(requestParameters.createPickfaceRequest),
|
|
130
|
-
}, initOverrides)];
|
|
131
|
-
case 3:
|
|
132
|
-
response = _c.sent();
|
|
133
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
134
|
-
}
|
|
135
|
-
});
|
|
36
|
+
createPickfaceRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
39
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createPickface.');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters.createPickfaceRequest === null || requestParameters.createPickfaceRequest === undefined) {
|
|
42
|
+
throw new runtime.RequiredError('createPickfaceRequest', 'Required parameter requestParameters.createPickfaceRequest was null or undefined when calling createPickface.');
|
|
43
|
+
}
|
|
44
|
+
const queryParameters = {};
|
|
45
|
+
if (requestParameters.project !== undefined) {
|
|
46
|
+
queryParameters['project'] = requestParameters.project;
|
|
47
|
+
}
|
|
48
|
+
const headerParameters = {};
|
|
49
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
50
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
51
|
+
// oauth required
|
|
52
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
53
|
+
}
|
|
54
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
55
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
56
|
+
}
|
|
57
|
+
const response = yield this.request({
|
|
58
|
+
path: `/v1/pickfaces`,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
body: (0, index_1.CreatePickfaceRequestToJSON)(requestParameters.createPickfaceRequest),
|
|
63
|
+
}, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PickfaceFromJSON)(jsonValue));
|
|
136
65
|
});
|
|
137
|
-
}
|
|
66
|
+
}
|
|
138
67
|
/**
|
|
139
68
|
* Create a Pickface
|
|
140
69
|
* Create Pickface
|
|
141
70
|
*/
|
|
142
|
-
|
|
143
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
project: project, createPickfaceRequest: createPickfaceRequest,
|
|
149
|
-
}, initOverrides)];
|
|
150
|
-
case 1:
|
|
151
|
-
response = _a.sent();
|
|
152
|
-
return [4 /*yield*/, response.value()];
|
|
153
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
71
|
+
createPickface(project, createPickfaceRequest, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.createPickfaceRaw({
|
|
74
|
+
project: project, createPickfaceRequest: createPickfaceRequest,
|
|
75
|
+
}, initOverrides);
|
|
76
|
+
return yield response.value();
|
|
156
77
|
});
|
|
157
|
-
}
|
|
78
|
+
}
|
|
158
79
|
/**
|
|
159
80
|
* Delete a Pickface
|
|
160
81
|
* Delete Pickface
|
|
161
82
|
*/
|
|
162
|
-
|
|
163
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
190
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
191
|
-
}
|
|
192
|
-
return [4 /*yield*/, this.request({
|
|
193
|
-
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
194
|
-
method: 'DELETE',
|
|
195
|
-
headers: headerParameters,
|
|
196
|
-
query: queryParameters,
|
|
197
|
-
}, initOverrides)];
|
|
198
|
-
case 3:
|
|
199
|
-
response = _c.sent();
|
|
200
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
83
|
+
deletePickfaceRaw(requestParameters, initOverrides) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
86
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deletePickface.');
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling deletePickface.');
|
|
90
|
+
}
|
|
91
|
+
const queryParameters = {};
|
|
92
|
+
if (requestParameters.project !== undefined) {
|
|
93
|
+
queryParameters['project'] = requestParameters.project;
|
|
94
|
+
}
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
// oauth required
|
|
98
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
99
|
+
}
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
102
|
+
}
|
|
103
|
+
const response = yield this.request({
|
|
104
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
105
|
+
method: 'DELETE',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.VoidApiResponse(response);
|
|
203
110
|
});
|
|
204
|
-
}
|
|
111
|
+
}
|
|
205
112
|
/**
|
|
206
113
|
* Delete a Pickface
|
|
207
114
|
* Delete Pickface
|
|
208
115
|
*/
|
|
209
|
-
|
|
210
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
project: project, pickfaceId: pickfaceId,
|
|
215
|
-
}, initOverrides)];
|
|
216
|
-
case 1:
|
|
217
|
-
_a.sent();
|
|
218
|
-
return [2 /*return*/];
|
|
219
|
-
}
|
|
220
|
-
});
|
|
116
|
+
deletePickface(project, pickfaceId, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
yield this.deletePickfaceRaw({
|
|
119
|
+
project: project, pickfaceId: pickfaceId,
|
|
120
|
+
}, initOverrides);
|
|
221
121
|
});
|
|
222
|
-
}
|
|
122
|
+
}
|
|
223
123
|
/**
|
|
224
124
|
* Export pickfaces as a CSV file
|
|
225
125
|
* Export pickfaces
|
|
226
126
|
*/
|
|
227
|
-
|
|
228
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
252
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
253
|
-
}
|
|
254
|
-
return [4 /*yield*/, this.request({
|
|
255
|
-
path: "/v1/pickfaces/export",
|
|
256
|
-
method: 'GET',
|
|
257
|
-
headers: headerParameters,
|
|
258
|
-
query: queryParameters,
|
|
259
|
-
}, initOverrides)];
|
|
260
|
-
case 3:
|
|
261
|
-
response = _c.sent();
|
|
262
|
-
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
263
|
-
}
|
|
264
|
-
});
|
|
127
|
+
exportPickfacesRaw(requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
130
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling exportPickfaces.');
|
|
131
|
+
}
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
if (requestParameters.project !== undefined) {
|
|
134
|
+
queryParameters['project'] = requestParameters.project;
|
|
135
|
+
}
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
// oauth required
|
|
139
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
140
|
+
}
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
143
|
+
}
|
|
144
|
+
const response = yield this.request({
|
|
145
|
+
path: `/v1/pickfaces/export`,
|
|
146
|
+
method: 'GET',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.BlobApiResponse(response);
|
|
265
151
|
});
|
|
266
|
-
}
|
|
152
|
+
}
|
|
267
153
|
/**
|
|
268
154
|
* Export pickfaces as a CSV file
|
|
269
155
|
* Export pickfaces
|
|
270
156
|
*/
|
|
271
|
-
|
|
272
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
project: project,
|
|
278
|
-
}, initOverrides)];
|
|
279
|
-
case 1:
|
|
280
|
-
response = _a.sent();
|
|
281
|
-
return [4 /*yield*/, response.value()];
|
|
282
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
283
|
-
}
|
|
284
|
-
});
|
|
157
|
+
exportPickfaces(project, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const response = yield this.exportPickfacesRaw({
|
|
160
|
+
project: project,
|
|
161
|
+
}, initOverrides);
|
|
162
|
+
return yield response.value();
|
|
285
163
|
});
|
|
286
|
-
}
|
|
164
|
+
}
|
|
287
165
|
/**
|
|
288
166
|
* Get a pickface
|
|
289
167
|
* Get pickface
|
|
290
168
|
*/
|
|
291
|
-
|
|
292
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
319
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
320
|
-
}
|
|
321
|
-
return [4 /*yield*/, this.request({
|
|
322
|
-
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
323
|
-
method: 'GET',
|
|
324
|
-
headers: headerParameters,
|
|
325
|
-
query: queryParameters,
|
|
326
|
-
}, initOverrides)];
|
|
327
|
-
case 3:
|
|
328
|
-
response = _c.sent();
|
|
329
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
330
|
-
}
|
|
331
|
-
});
|
|
169
|
+
getPickfaceRaw(requestParameters, initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
172
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickface.');
|
|
173
|
+
}
|
|
174
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
175
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling getPickface.');
|
|
176
|
+
}
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
if (requestParameters.project !== undefined) {
|
|
179
|
+
queryParameters['project'] = requestParameters.project;
|
|
180
|
+
}
|
|
181
|
+
const headerParameters = {};
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
// oauth required
|
|
184
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
185
|
+
}
|
|
186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
187
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
188
|
+
}
|
|
189
|
+
const response = yield this.request({
|
|
190
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
191
|
+
method: 'GET',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
}, initOverrides);
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PickfaceFromJSON)(jsonValue));
|
|
332
196
|
});
|
|
333
|
-
}
|
|
197
|
+
}
|
|
334
198
|
/**
|
|
335
199
|
* Get a pickface
|
|
336
200
|
* Get pickface
|
|
337
201
|
*/
|
|
338
|
-
|
|
339
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
project: project, pickfaceId: pickfaceId,
|
|
345
|
-
}, initOverrides)];
|
|
346
|
-
case 1:
|
|
347
|
-
response = _a.sent();
|
|
348
|
-
return [4 /*yield*/, response.value()];
|
|
349
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
350
|
-
}
|
|
351
|
-
});
|
|
202
|
+
getPickface(project, pickfaceId, initOverrides) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const response = yield this.getPickfaceRaw({
|
|
205
|
+
project: project, pickfaceId: pickfaceId,
|
|
206
|
+
}, initOverrides);
|
|
207
|
+
return yield response.value();
|
|
352
208
|
});
|
|
353
|
-
}
|
|
209
|
+
}
|
|
354
210
|
/**
|
|
355
211
|
* Lists pickface container models
|
|
356
212
|
* Get pickface container models
|
|
357
213
|
*/
|
|
358
|
-
|
|
359
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
384
|
-
}
|
|
385
|
-
return [4 /*yield*/, this.request({
|
|
386
|
-
path: "/v1/pickfaces/container-models",
|
|
387
|
-
method: 'GET',
|
|
388
|
-
headers: headerParameters,
|
|
389
|
-
query: queryParameters,
|
|
390
|
-
}, initOverrides)];
|
|
391
|
-
case 3:
|
|
392
|
-
response = _c.sent();
|
|
393
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContainerModelsFromJSON)(jsonValue); })];
|
|
394
|
-
}
|
|
395
|
-
});
|
|
214
|
+
getPickfaceContainerModelsRaw(requestParameters, initOverrides) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
217
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickfaceContainerModels.');
|
|
218
|
+
}
|
|
219
|
+
const queryParameters = {};
|
|
220
|
+
if (requestParameters.project !== undefined) {
|
|
221
|
+
queryParameters['project'] = requestParameters.project;
|
|
222
|
+
}
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
// oauth required
|
|
226
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
227
|
+
}
|
|
228
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
229
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
230
|
+
}
|
|
231
|
+
const response = yield this.request({
|
|
232
|
+
path: `/v1/pickfaces/container-models`,
|
|
233
|
+
method: 'GET',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
}, initOverrides);
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ContainerModelsFromJSON)(jsonValue));
|
|
396
238
|
});
|
|
397
|
-
}
|
|
239
|
+
}
|
|
398
240
|
/**
|
|
399
241
|
* Lists pickface container models
|
|
400
242
|
* Get pickface container models
|
|
401
243
|
*/
|
|
402
|
-
|
|
403
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
project: project,
|
|
409
|
-
}, initOverrides)];
|
|
410
|
-
case 1:
|
|
411
|
-
response = _a.sent();
|
|
412
|
-
return [4 /*yield*/, response.value()];
|
|
413
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
414
|
-
}
|
|
415
|
-
});
|
|
244
|
+
getPickfaceContainerModels(project, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const response = yield this.getPickfaceContainerModelsRaw({
|
|
247
|
+
project: project,
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
return yield response.value();
|
|
416
250
|
});
|
|
417
|
-
}
|
|
251
|
+
}
|
|
418
252
|
/**
|
|
419
253
|
* Lists all pickfaces available paginated into chunks
|
|
420
254
|
* List pickfaces
|
|
421
255
|
*/
|
|
422
|
-
|
|
423
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
459
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
460
|
-
}
|
|
461
|
-
return [4 /*yield*/, this.request({
|
|
462
|
-
path: "/v1/pickfaces",
|
|
463
|
-
method: 'GET',
|
|
464
|
-
headers: headerParameters,
|
|
465
|
-
query: queryParameters,
|
|
466
|
-
}, initOverrides)];
|
|
467
|
-
case 3:
|
|
468
|
-
response = _c.sent();
|
|
469
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue); })];
|
|
470
|
-
}
|
|
471
|
-
});
|
|
256
|
+
getPickfacesRaw(requestParameters, initOverrides) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
259
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickfaces.');
|
|
260
|
+
}
|
|
261
|
+
const queryParameters = {};
|
|
262
|
+
if (requestParameters.project !== undefined) {
|
|
263
|
+
queryParameters['project'] = requestParameters.project;
|
|
264
|
+
}
|
|
265
|
+
if (requestParameters.search !== undefined) {
|
|
266
|
+
queryParameters['search'] = requestParameters.search;
|
|
267
|
+
}
|
|
268
|
+
if (requestParameters.pageToken !== undefined) {
|
|
269
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
270
|
+
}
|
|
271
|
+
if (requestParameters.pageSize !== undefined) {
|
|
272
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
273
|
+
}
|
|
274
|
+
if (requestParameters.filters) {
|
|
275
|
+
queryParameters['filters'] = requestParameters.filters;
|
|
276
|
+
}
|
|
277
|
+
const headerParameters = {};
|
|
278
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
279
|
+
// oauth required
|
|
280
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
281
|
+
}
|
|
282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
284
|
+
}
|
|
285
|
+
const response = yield this.request({
|
|
286
|
+
path: `/v1/pickfaces`,
|
|
287
|
+
method: 'GET',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue));
|
|
472
292
|
});
|
|
473
|
-
}
|
|
293
|
+
}
|
|
474
294
|
/**
|
|
475
295
|
* Lists all pickfaces available paginated into chunks
|
|
476
296
|
* List pickfaces
|
|
477
297
|
*/
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
return __generator(this, function (_a) {
|
|
483
|
-
switch (_a.label) {
|
|
484
|
-
case 0: return [4 /*yield*/, this.getPickfacesRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
485
|
-
case 1:
|
|
486
|
-
response = _a.sent();
|
|
487
|
-
return [4 /*yield*/, response.value()];
|
|
488
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
489
|
-
}
|
|
490
|
-
});
|
|
298
|
+
getPickfaces(project, optionalParameters = {}, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const response = yield this.getPickfacesRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
301
|
+
return yield response.value();
|
|
491
302
|
});
|
|
492
|
-
}
|
|
303
|
+
}
|
|
493
304
|
/**
|
|
494
305
|
* Get a list of pickface logs
|
|
495
306
|
* Get pickface logs
|
|
496
307
|
*/
|
|
497
|
-
|
|
498
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
531
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
532
|
-
}
|
|
533
|
-
return [4 /*yield*/, this.request({
|
|
534
|
-
path: "/v1/pickfaces/{pickfaceId}/logs".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
535
|
-
method: 'GET',
|
|
536
|
-
headers: headerParameters,
|
|
537
|
-
query: queryParameters,
|
|
538
|
-
}, initOverrides)];
|
|
539
|
-
case 3:
|
|
540
|
-
response = _c.sent();
|
|
541
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListPickfaceLogs200ResponseFromJSON)(jsonValue); })];
|
|
542
|
-
}
|
|
543
|
-
});
|
|
308
|
+
listPickfaceLogsRaw(requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
311
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listPickfaceLogs.');
|
|
312
|
+
}
|
|
313
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
314
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling listPickfaceLogs.');
|
|
315
|
+
}
|
|
316
|
+
const queryParameters = {};
|
|
317
|
+
if (requestParameters.project !== undefined) {
|
|
318
|
+
queryParameters['project'] = requestParameters.project;
|
|
319
|
+
}
|
|
320
|
+
if (requestParameters.pageToken !== undefined) {
|
|
321
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
322
|
+
}
|
|
323
|
+
if (requestParameters.pageSize !== undefined) {
|
|
324
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
325
|
+
}
|
|
326
|
+
const headerParameters = {};
|
|
327
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
328
|
+
// oauth required
|
|
329
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
330
|
+
}
|
|
331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
333
|
+
}
|
|
334
|
+
const response = yield this.request({
|
|
335
|
+
path: `/v1/pickfaces/{pickfaceId}/logs`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
336
|
+
method: 'GET',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
}, initOverrides);
|
|
340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListPickfaceLogs200ResponseFromJSON)(jsonValue));
|
|
544
341
|
});
|
|
545
|
-
}
|
|
342
|
+
}
|
|
546
343
|
/**
|
|
547
344
|
* Get a list of pickface logs
|
|
548
345
|
* Get pickface logs
|
|
549
346
|
*/
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
return __generator(this, function (_a) {
|
|
555
|
-
switch (_a.label) {
|
|
556
|
-
case 0: return [4 /*yield*/, this.listPickfaceLogsRaw(__assign({ project: project, pickfaceId: pickfaceId }, optionalParameters), initOverrides)];
|
|
557
|
-
case 1:
|
|
558
|
-
response = _a.sent();
|
|
559
|
-
return [4 /*yield*/, response.value()];
|
|
560
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
561
|
-
}
|
|
562
|
-
});
|
|
347
|
+
listPickfaceLogs(project, pickfaceId, optionalParameters = {}, initOverrides) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
const response = yield this.listPickfaceLogsRaw(Object.assign({ project: project, pickfaceId: pickfaceId }, optionalParameters), initOverrides);
|
|
350
|
+
return yield response.value();
|
|
563
351
|
});
|
|
564
|
-
}
|
|
352
|
+
}
|
|
565
353
|
/**
|
|
566
354
|
* Move stock from one pickface to another in a single transaction
|
|
567
355
|
* Move stock
|
|
568
356
|
*/
|
|
569
|
-
|
|
570
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
602
|
-
}
|
|
603
|
-
return [4 /*yield*/, this.request({
|
|
604
|
-
path: "/v1/pickfaces/{pickfaceId}/stock/move".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
605
|
-
method: 'POST',
|
|
606
|
-
headers: headerParameters,
|
|
607
|
-
query: queryParameters,
|
|
608
|
-
body: (0, index_1.MoveStockRequestToJSON)(requestParameters.moveStockRequest),
|
|
609
|
-
}, initOverrides)];
|
|
610
|
-
case 3:
|
|
611
|
-
response = _c.sent();
|
|
612
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
613
|
-
}
|
|
614
|
-
});
|
|
357
|
+
moveStockRaw(requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
360
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling moveStock.');
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
363
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling moveStock.');
|
|
364
|
+
}
|
|
365
|
+
if (requestParameters.moveStockRequest === null || requestParameters.moveStockRequest === undefined) {
|
|
366
|
+
throw new runtime.RequiredError('moveStockRequest', 'Required parameter requestParameters.moveStockRequest was null or undefined when calling moveStock.');
|
|
367
|
+
}
|
|
368
|
+
const queryParameters = {};
|
|
369
|
+
if (requestParameters.project !== undefined) {
|
|
370
|
+
queryParameters['project'] = requestParameters.project;
|
|
371
|
+
}
|
|
372
|
+
const headerParameters = {};
|
|
373
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
374
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
375
|
+
// oauth required
|
|
376
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
377
|
+
}
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
380
|
+
}
|
|
381
|
+
const response = yield this.request({
|
|
382
|
+
path: `/v1/pickfaces/{pickfaceId}/stock/move`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
383
|
+
method: 'POST',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: (0, index_1.MoveStockRequestToJSON)(requestParameters.moveStockRequest),
|
|
387
|
+
}, initOverrides);
|
|
388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PickfaceFromJSON)(jsonValue));
|
|
615
389
|
});
|
|
616
|
-
}
|
|
390
|
+
}
|
|
617
391
|
/**
|
|
618
392
|
* Move stock from one pickface to another in a single transaction
|
|
619
393
|
* Move stock
|
|
620
394
|
*/
|
|
621
|
-
|
|
622
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
project: project, pickfaceId: pickfaceId, moveStockRequest: moveStockRequest,
|
|
628
|
-
}, initOverrides)];
|
|
629
|
-
case 1:
|
|
630
|
-
response = _a.sent();
|
|
631
|
-
return [4 /*yield*/, response.value()];
|
|
632
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
633
|
-
}
|
|
634
|
-
});
|
|
395
|
+
moveStock(project, pickfaceId, moveStockRequest, initOverrides) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
const response = yield this.moveStockRaw({
|
|
398
|
+
project: project, pickfaceId: pickfaceId, moveStockRequest: moveStockRequest,
|
|
399
|
+
}, initOverrides);
|
|
400
|
+
return yield response.value();
|
|
635
401
|
});
|
|
636
|
-
}
|
|
402
|
+
}
|
|
637
403
|
/**
|
|
638
404
|
* Print a pickface label
|
|
639
405
|
* Print pickface label
|
|
640
406
|
*/
|
|
641
|
-
|
|
642
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
675
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
676
|
-
}
|
|
677
|
-
return [4 /*yield*/, this.request({
|
|
678
|
-
path: "/v1/pickfaces/{pickfaceId}/print".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
679
|
-
method: 'GET',
|
|
680
|
-
headers: headerParameters,
|
|
681
|
-
query: queryParameters,
|
|
682
|
-
}, initOverrides)];
|
|
683
|
-
case 3:
|
|
684
|
-
response = _c.sent();
|
|
685
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
686
|
-
}
|
|
687
|
-
});
|
|
407
|
+
printPickfaceLabelRaw(requestParameters, initOverrides) {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
410
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling printPickfaceLabel.');
|
|
411
|
+
}
|
|
412
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
413
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling printPickfaceLabel.');
|
|
414
|
+
}
|
|
415
|
+
if (requestParameters.deviceRef === null || requestParameters.deviceRef === undefined) {
|
|
416
|
+
throw new runtime.RequiredError('deviceRef', 'Required parameter requestParameters.deviceRef was null or undefined when calling printPickfaceLabel.');
|
|
417
|
+
}
|
|
418
|
+
const queryParameters = {};
|
|
419
|
+
if (requestParameters.project !== undefined) {
|
|
420
|
+
queryParameters['project'] = requestParameters.project;
|
|
421
|
+
}
|
|
422
|
+
if (requestParameters.deviceRef !== undefined) {
|
|
423
|
+
queryParameters['deviceRef'] = requestParameters.deviceRef;
|
|
424
|
+
}
|
|
425
|
+
const headerParameters = {};
|
|
426
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
427
|
+
// oauth required
|
|
428
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
429
|
+
}
|
|
430
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
431
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
432
|
+
}
|
|
433
|
+
const response = yield this.request({
|
|
434
|
+
path: `/v1/pickfaces/{pickfaceId}/print`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
435
|
+
method: 'GET',
|
|
436
|
+
headers: headerParameters,
|
|
437
|
+
query: queryParameters,
|
|
438
|
+
}, initOverrides);
|
|
439
|
+
return new runtime.VoidApiResponse(response);
|
|
688
440
|
});
|
|
689
|
-
}
|
|
441
|
+
}
|
|
690
442
|
/**
|
|
691
443
|
* Print a pickface label
|
|
692
444
|
* Print pickface label
|
|
693
445
|
*/
|
|
694
|
-
|
|
695
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
project: project, pickfaceId: pickfaceId, deviceRef: deviceRef,
|
|
700
|
-
}, initOverrides)];
|
|
701
|
-
case 1:
|
|
702
|
-
_a.sent();
|
|
703
|
-
return [2 /*return*/];
|
|
704
|
-
}
|
|
705
|
-
});
|
|
446
|
+
printPickfaceLabel(project, pickfaceId, deviceRef, initOverrides) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
yield this.printPickfaceLabelRaw({
|
|
449
|
+
project: project, pickfaceId: pickfaceId, deviceRef: deviceRef,
|
|
450
|
+
}, initOverrides);
|
|
706
451
|
});
|
|
707
|
-
}
|
|
452
|
+
}
|
|
708
453
|
/**
|
|
709
454
|
* Suggest pickfaces for putting away stock
|
|
710
455
|
* Suggest pickfaces
|
|
711
456
|
*/
|
|
712
|
-
|
|
713
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
755
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
756
|
-
}
|
|
757
|
-
return [4 /*yield*/, this.request({
|
|
758
|
-
path: "/v1/pickfaces/suggest",
|
|
759
|
-
method: 'GET',
|
|
760
|
-
headers: headerParameters,
|
|
761
|
-
query: queryParameters,
|
|
762
|
-
}, initOverrides)];
|
|
763
|
-
case 3:
|
|
764
|
-
response = _c.sent();
|
|
765
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue); })];
|
|
766
|
-
}
|
|
767
|
-
});
|
|
457
|
+
suggestPickfacesRaw(requestParameters, initOverrides) {
|
|
458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
460
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling suggestPickfaces.');
|
|
461
|
+
}
|
|
462
|
+
if (requestParameters.variantRef === null || requestParameters.variantRef === undefined) {
|
|
463
|
+
throw new runtime.RequiredError('variantRef', 'Required parameter requestParameters.variantRef was null or undefined when calling suggestPickfaces.');
|
|
464
|
+
}
|
|
465
|
+
if (requestParameters.quantity === null || requestParameters.quantity === undefined) {
|
|
466
|
+
throw new runtime.RequiredError('quantity', 'Required parameter requestParameters.quantity was null or undefined when calling suggestPickfaces.');
|
|
467
|
+
}
|
|
468
|
+
const queryParameters = {};
|
|
469
|
+
if (requestParameters.project !== undefined) {
|
|
470
|
+
queryParameters['project'] = requestParameters.project;
|
|
471
|
+
}
|
|
472
|
+
if (requestParameters.variantRef !== undefined) {
|
|
473
|
+
queryParameters['variantRef'] = requestParameters.variantRef;
|
|
474
|
+
}
|
|
475
|
+
if (requestParameters.quantity !== undefined) {
|
|
476
|
+
queryParameters['quantity'] = requestParameters.quantity;
|
|
477
|
+
}
|
|
478
|
+
if (requestParameters.pageToken !== undefined) {
|
|
479
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
480
|
+
}
|
|
481
|
+
if (requestParameters.pageSize !== undefined) {
|
|
482
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
483
|
+
}
|
|
484
|
+
const headerParameters = {};
|
|
485
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
486
|
+
// oauth required
|
|
487
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
488
|
+
}
|
|
489
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
491
|
+
}
|
|
492
|
+
const response = yield this.request({
|
|
493
|
+
path: `/v1/pickfaces/suggest`,
|
|
494
|
+
method: 'GET',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
}, initOverrides);
|
|
498
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue));
|
|
768
499
|
});
|
|
769
|
-
}
|
|
500
|
+
}
|
|
770
501
|
/**
|
|
771
502
|
* Suggest pickfaces for putting away stock
|
|
772
503
|
* Suggest pickfaces
|
|
773
504
|
*/
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
return __generator(this, function (_a) {
|
|
779
|
-
switch (_a.label) {
|
|
780
|
-
case 0: return [4 /*yield*/, this.suggestPickfacesRaw(__assign({ project: project, variantRef: variantRef, quantity: quantity }, optionalParameters), initOverrides)];
|
|
781
|
-
case 1:
|
|
782
|
-
response = _a.sent();
|
|
783
|
-
return [4 /*yield*/, response.value()];
|
|
784
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
785
|
-
}
|
|
786
|
-
});
|
|
505
|
+
suggestPickfaces(project, variantRef, quantity, optionalParameters = {}, initOverrides) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
const response = yield this.suggestPickfacesRaw(Object.assign({ project: project, variantRef: variantRef, quantity: quantity }, optionalParameters), initOverrides);
|
|
508
|
+
return yield response.value();
|
|
787
509
|
});
|
|
788
|
-
}
|
|
510
|
+
}
|
|
789
511
|
/**
|
|
790
512
|
* Update a Pickface
|
|
791
513
|
* Update Pickface
|
|
792
514
|
*/
|
|
793
|
-
|
|
794
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
826
|
-
}
|
|
827
|
-
return [4 /*yield*/, this.request({
|
|
828
|
-
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
829
|
-
method: 'PATCH',
|
|
830
|
-
headers: headerParameters,
|
|
831
|
-
query: queryParameters,
|
|
832
|
-
body: (0, index_1.UpdatePickfaceRequestToJSON)(requestParameters.updatePickfaceRequest),
|
|
833
|
-
}, initOverrides)];
|
|
834
|
-
case 3:
|
|
835
|
-
response = _c.sent();
|
|
836
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
837
|
-
}
|
|
838
|
-
});
|
|
515
|
+
updatePickfaceRaw(requestParameters, initOverrides) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
518
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updatePickface.');
|
|
519
|
+
}
|
|
520
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
521
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling updatePickface.');
|
|
522
|
+
}
|
|
523
|
+
if (requestParameters.updatePickfaceRequest === null || requestParameters.updatePickfaceRequest === undefined) {
|
|
524
|
+
throw new runtime.RequiredError('updatePickfaceRequest', 'Required parameter requestParameters.updatePickfaceRequest was null or undefined when calling updatePickface.');
|
|
525
|
+
}
|
|
526
|
+
const queryParameters = {};
|
|
527
|
+
if (requestParameters.project !== undefined) {
|
|
528
|
+
queryParameters['project'] = requestParameters.project;
|
|
529
|
+
}
|
|
530
|
+
const headerParameters = {};
|
|
531
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
532
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
533
|
+
// oauth required
|
|
534
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
535
|
+
}
|
|
536
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
537
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
538
|
+
}
|
|
539
|
+
const response = yield this.request({
|
|
540
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
541
|
+
method: 'PATCH',
|
|
542
|
+
headers: headerParameters,
|
|
543
|
+
query: queryParameters,
|
|
544
|
+
body: (0, index_1.UpdatePickfaceRequestToJSON)(requestParameters.updatePickfaceRequest),
|
|
545
|
+
}, initOverrides);
|
|
546
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PickfaceFromJSON)(jsonValue));
|
|
839
547
|
});
|
|
840
|
-
}
|
|
548
|
+
}
|
|
841
549
|
/**
|
|
842
550
|
* Update a Pickface
|
|
843
551
|
* Update Pickface
|
|
844
552
|
*/
|
|
845
|
-
|
|
846
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
project: project, pickfaceId: pickfaceId, updatePickfaceRequest: updatePickfaceRequest,
|
|
852
|
-
}, initOverrides)];
|
|
853
|
-
case 1:
|
|
854
|
-
response = _a.sent();
|
|
855
|
-
return [4 /*yield*/, response.value()];
|
|
856
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
857
|
-
}
|
|
858
|
-
});
|
|
553
|
+
updatePickface(project, pickfaceId, updatePickfaceRequest, initOverrides) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
const response = yield this.updatePickfaceRaw({
|
|
556
|
+
project: project, pickfaceId: pickfaceId, updatePickfaceRequest: updatePickfaceRequest,
|
|
557
|
+
}, initOverrides);
|
|
558
|
+
return yield response.value();
|
|
859
559
|
});
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
}(runtime.BaseAPI));
|
|
560
|
+
}
|
|
561
|
+
}
|
|
863
562
|
exports.PickfacesApi = PickfacesApi;
|
|
864
563
|
/**
|
|
865
564
|
* @export
|