@veeroute/lss-packer-angular 4.7.1599
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/README.md +156 -0
- package/api/api.d.ts +10 -0
- package/api/convertService.d.ts +44 -0
- package/api/convertServiceInterface.d.ts +28 -0
- package/api/packService.d.ts +162 -0
- package/api/packServiceInterface.d.ts +86 -0
- package/api/systemService.d.ts +63 -0
- package/api/systemServiceInterface.d.ts +30 -0
- package/api.module.d.ts +7 -0
- package/bundles/veeroute-lss-packer-angular.umd.js +1086 -0
- package/bundles/veeroute-lss-packer-angular.umd.js.map +1 -0
- package/cfg/method_groups.json +64 -0
- package/configuration.d.ts +80 -0
- package/encoder.d.ts +11 -0
- package/esm2015/api/api.js +11 -0
- package/esm2015/api/convertService.js +146 -0
- package/esm2015/api/convertServiceInterface.js +2 -0
- package/esm2015/api/packService.js +449 -0
- package/esm2015/api/packServiceInterface.js +2 -0
- package/esm2015/api/systemService.js +165 -0
- package/esm2015/api/systemServiceInterface.js +2 -0
- package/esm2015/api.module.js +33 -0
- package/esm2015/configuration.js +80 -0
- package/esm2015/encoder.js +19 -0
- package/esm2015/index.js +6 -0
- package/esm2015/model/calculationAsyncResult.js +2 -0
- package/esm2015/model/calculationInfo.js +2 -0
- package/esm2015/model/calculationSettings.js +13 -0
- package/esm2015/model/calculationState.js +2 -0
- package/esm2015/model/calculationStatus.js +26 -0
- package/esm2015/model/checkResult.js +13 -0
- package/esm2015/model/coordinates.js +13 -0
- package/esm2015/model/dimensions.js +13 -0
- package/esm2015/model/entityError.js +2 -0
- package/esm2015/model/entityErrorType.js +21 -0
- package/esm2015/model/entityPath.js +2 -0
- package/esm2015/model/entityType.js +23 -0
- package/esm2015/model/entityValidation.js +2 -0
- package/esm2015/model/entityValidationType.js +20 -0
- package/esm2015/model/inlineResponse400.js +2 -0
- package/esm2015/model/inlineResponse401.js +2 -0
- package/esm2015/model/inlineResponse402.js +2 -0
- package/esm2015/model/inlineResponse403.js +2 -0
- package/esm2015/model/inlineResponse404.js +2 -0
- package/esm2015/model/inlineResponse404Detail.js +2 -0
- package/esm2015/model/inlineResponse429.js +2 -0
- package/esm2015/model/inlineResponse500.js +2 -0
- package/esm2015/model/models.js +40 -0
- package/esm2015/model/packResult.js +2 -0
- package/esm2015/model/packSettings.js +2 -0
- package/esm2015/model/packStatistics.js +13 -0
- package/esm2015/model/packTask.js +2 -0
- package/esm2015/model/package.js +2 -0
- package/esm2015/model/packageLayout.js +2 -0
- package/esm2015/model/packageType.js +22 -0
- package/esm2015/model/product.js +2 -0
- package/esm2015/model/productGroupLayout.js +2 -0
- package/esm2015/model/productLayout.js +2 -0
- package/esm2015/model/renderTask.js +2 -0
- package/esm2015/model/schemaError.js +13 -0
- package/esm2015/model/serviceName.js +29 -0
- package/esm2015/model/tracedata.js +2 -0
- package/esm2015/model/unpackedItems.js +13 -0
- package/esm2015/model/validateResult.js +2 -0
- package/esm2015/model/versionResult.js +13 -0
- package/esm2015/variables.js +9 -0
- package/esm2015/veeroute-lss-packer-angular.js +5 -0
- package/fesm2015/veeroute-lss-packer-angular.js +1114 -0
- package/fesm2015/veeroute-lss-packer-angular.js.map +1 -0
- package/index.d.ts +5 -0
- package/model/calculationAsyncResult.d.ts +22 -0
- package/model/calculationInfo.d.ts +30 -0
- package/model/calculationSettings.d.ts +32 -0
- package/model/calculationState.d.ts +24 -0
- package/model/calculationStatus.d.ts +23 -0
- package/model/checkResult.d.ts +20 -0
- package/model/coordinates.d.ts +28 -0
- package/model/dimensions.d.ts +32 -0
- package/model/entityError.d.ts +27 -0
- package/model/entityErrorType.d.ts +18 -0
- package/model/entityPath.d.ts +23 -0
- package/model/entityType.d.ts +20 -0
- package/model/entityValidation.d.ts +27 -0
- package/model/entityValidationType.d.ts +17 -0
- package/model/inlineResponse400.d.ts +37 -0
- package/model/inlineResponse401.d.ts +22 -0
- package/model/inlineResponse402.d.ts +22 -0
- package/model/inlineResponse403.d.ts +22 -0
- package/model/inlineResponse404.d.ts +22 -0
- package/model/inlineResponse404Detail.d.ts +18 -0
- package/model/inlineResponse429.d.ts +22 -0
- package/model/inlineResponse500.d.ts +22 -0
- package/model/models.d.ts +39 -0
- package/model/packResult.d.ts +38 -0
- package/model/packSettings.d.ts +18 -0
- package/model/packStatistics.d.ts +40 -0
- package/model/packTask.d.ts +28 -0
- package/model/package.d.ts +31 -0
- package/model/packageLayout.d.ts +33 -0
- package/model/packageType.d.ts +19 -0
- package/model/product.d.ts +38 -0
- package/model/productGroupLayout.d.ts +29 -0
- package/model/productLayout.d.ts +24 -0
- package/model/renderTask.d.ts +31 -0
- package/model/schemaError.d.ts +24 -0
- package/model/serviceName.d.ts +26 -0
- package/model/tracedata.d.ts +38 -0
- package/model/unpackedItems.d.ts +24 -0
- package/model/validateResult.d.ts +23 -0
- package/model/versionResult.d.ts +28 -0
- package/package.json +27 -0
- package/variables.d.ts +8 -0
- package/veeroute-lss-packer-angular.d.ts +4 -0
- package/veeroute-lss-packer-angular.metadata.json +1 -0
|
@@ -0,0 +1,1086 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@veeroute/lss-packer-angular', ['exports', '@angular/core', '@angular/common/http'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veeroute = global.veeroute || {}, global.veeroute["lss-packer-angular"] = {}), global.ng.core, global.ng.common.http));
|
|
5
|
+
})(this, (function (exports, i0, i1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Custom HttpParameterCodec
|
|
30
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
31
|
+
*/
|
|
32
|
+
var CustomHttpParameterCodec = /** @class */ (function () {
|
|
33
|
+
function CustomHttpParameterCodec() {
|
|
34
|
+
}
|
|
35
|
+
CustomHttpParameterCodec.prototype.encodeKey = function (k) {
|
|
36
|
+
return encodeURIComponent(k);
|
|
37
|
+
};
|
|
38
|
+
CustomHttpParameterCodec.prototype.encodeValue = function (v) {
|
|
39
|
+
return encodeURIComponent(v);
|
|
40
|
+
};
|
|
41
|
+
CustomHttpParameterCodec.prototype.decodeKey = function (k) {
|
|
42
|
+
return decodeURIComponent(k);
|
|
43
|
+
};
|
|
44
|
+
CustomHttpParameterCodec.prototype.decodeValue = function (v) {
|
|
45
|
+
return decodeURIComponent(v);
|
|
46
|
+
};
|
|
47
|
+
return CustomHttpParameterCodec;
|
|
48
|
+
}());
|
|
49
|
+
|
|
50
|
+
var BASE_PATH = new i0.InjectionToken('basePath');
|
|
51
|
+
var COLLECTION_FORMATS = {
|
|
52
|
+
'csv': ',',
|
|
53
|
+
'tsv': ' ',
|
|
54
|
+
'ssv': ' ',
|
|
55
|
+
'pipes': '|'
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var Configuration = /** @class */ (function () {
|
|
59
|
+
function Configuration(configurationParameters) {
|
|
60
|
+
var _this = this;
|
|
61
|
+
if (configurationParameters === void 0) { configurationParameters = {}; }
|
|
62
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
63
|
+
this.username = configurationParameters.username;
|
|
64
|
+
this.password = configurationParameters.password;
|
|
65
|
+
this.accessToken = configurationParameters.accessToken;
|
|
66
|
+
this.basePath = configurationParameters.basePath;
|
|
67
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
68
|
+
this.encoder = configurationParameters.encoder;
|
|
69
|
+
if (configurationParameters.credentials) {
|
|
70
|
+
this.credentials = configurationParameters.credentials;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this.credentials = {};
|
|
74
|
+
}
|
|
75
|
+
// init default ApiKeyAuth credential
|
|
76
|
+
if (!this.credentials['ApiKeyAuth']) {
|
|
77
|
+
this.credentials['ApiKeyAuth'] = function () {
|
|
78
|
+
return typeof _this.accessToken === 'function'
|
|
79
|
+
? _this.accessToken()
|
|
80
|
+
: _this.accessToken;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Select the correct content-type to use for a request.
|
|
86
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
87
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
88
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
89
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
90
|
+
*/
|
|
91
|
+
Configuration.prototype.selectHeaderContentType = function (contentTypes) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
if (contentTypes.length === 0) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
var type = contentTypes.find(function (x) { return _this.isJsonMime(x); });
|
|
97
|
+
if (type === undefined) {
|
|
98
|
+
return contentTypes[0];
|
|
99
|
+
}
|
|
100
|
+
return type;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Select the correct accept content-type to use for a request.
|
|
104
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
105
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
106
|
+
* @param accepts - the array of content types that are available for selection.
|
|
107
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
108
|
+
*/
|
|
109
|
+
Configuration.prototype.selectHeaderAccept = function (accepts) {
|
|
110
|
+
var _this = this;
|
|
111
|
+
if (accepts.length === 0) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
var type = accepts.find(function (x) { return _this.isJsonMime(x); });
|
|
115
|
+
if (type === undefined) {
|
|
116
|
+
return accepts[0];
|
|
117
|
+
}
|
|
118
|
+
return type;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Check if the given MIME is a JSON MIME.
|
|
122
|
+
* JSON MIME examples:
|
|
123
|
+
* application/json
|
|
124
|
+
* application/json; charset=UTF8
|
|
125
|
+
* APPLICATION/JSON
|
|
126
|
+
* application/vnd.company+json
|
|
127
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
128
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
129
|
+
*/
|
|
130
|
+
Configuration.prototype.isJsonMime = function (mime) {
|
|
131
|
+
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
132
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
133
|
+
};
|
|
134
|
+
Configuration.prototype.lookupCredential = function (key) {
|
|
135
|
+
var value = this.credentials[key];
|
|
136
|
+
return typeof value === 'function'
|
|
137
|
+
? value()
|
|
138
|
+
: value;
|
|
139
|
+
};
|
|
140
|
+
return Configuration;
|
|
141
|
+
}());
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* VRt.Packer [PC]
|
|
145
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
146
|
+
*
|
|
147
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
148
|
+
* Contact: servicedesk@veeroute.com
|
|
149
|
+
*
|
|
150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
151
|
+
* https://openapi-generator.tech
|
|
152
|
+
* Do not edit the class manually.
|
|
153
|
+
*/
|
|
154
|
+
var ConvertService = /** @class */ (function () {
|
|
155
|
+
function ConvertService(httpClient, basePath, configuration) {
|
|
156
|
+
this.httpClient = httpClient;
|
|
157
|
+
this.basePath = 'https://api.edge.veeroute.tech';
|
|
158
|
+
this.defaultHeaders = new i1.HttpHeaders();
|
|
159
|
+
this.configuration = new Configuration();
|
|
160
|
+
if (configuration) {
|
|
161
|
+
this.configuration = configuration;
|
|
162
|
+
}
|
|
163
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
164
|
+
if (typeof basePath !== 'string') {
|
|
165
|
+
basePath = this.basePath;
|
|
166
|
+
}
|
|
167
|
+
this.configuration.basePath = basePath;
|
|
168
|
+
}
|
|
169
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
170
|
+
}
|
|
171
|
+
ConvertService.prototype.addToHttpParams = function (httpParams, value, key) {
|
|
172
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
173
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
177
|
+
}
|
|
178
|
+
return httpParams;
|
|
179
|
+
};
|
|
180
|
+
ConvertService.prototype.addToHttpParamsRecursive = function (httpParams, value, key) {
|
|
181
|
+
var _this = this;
|
|
182
|
+
if (value == null) {
|
|
183
|
+
return httpParams;
|
|
184
|
+
}
|
|
185
|
+
if (typeof value === "object") {
|
|
186
|
+
if (Array.isArray(value)) {
|
|
187
|
+
value.forEach(function (elem) { return httpParams = _this.addToHttpParamsRecursive(httpParams, elem, key); });
|
|
188
|
+
}
|
|
189
|
+
else if (value instanceof Date) {
|
|
190
|
+
if (key != null) {
|
|
191
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
throw Error("key may not be null if value is Date");
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
Object.keys(value).forEach(function (k) { return httpParams = _this.addToHttpParamsRecursive(httpParams, value[k], key != null ? key + "." + k : k); });
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
else if (key != null) {
|
|
202
|
+
httpParams = httpParams.append(key, value);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
throw Error("key may not be null if value is not object or array");
|
|
206
|
+
}
|
|
207
|
+
return httpParams;
|
|
208
|
+
};
|
|
209
|
+
ConvertService.prototype.runConvertToGltf = function (requestParameters, observe, reportProgress, options) {
|
|
210
|
+
if (observe === void 0) { observe = 'body'; }
|
|
211
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
212
|
+
var renderTaskPacker = requestParameters.renderTaskPacker;
|
|
213
|
+
if (renderTaskPacker === null || renderTaskPacker === undefined) {
|
|
214
|
+
throw new Error('Required parameter renderTaskPacker was null or undefined when calling runConvertToGltf.');
|
|
215
|
+
}
|
|
216
|
+
var localVarHeaders = this.defaultHeaders;
|
|
217
|
+
var localVarCredential;
|
|
218
|
+
// authentication (ApiKeyAuth) required
|
|
219
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
220
|
+
if (localVarCredential) {
|
|
221
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
222
|
+
}
|
|
223
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
224
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
225
|
+
// to determine the Accept header
|
|
226
|
+
var httpHeaderAccepts = [
|
|
227
|
+
'application/octet-stream',
|
|
228
|
+
'application/json'
|
|
229
|
+
];
|
|
230
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
231
|
+
}
|
|
232
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
233
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
234
|
+
}
|
|
235
|
+
var localVarHttpContext = options && options.context;
|
|
236
|
+
if (localVarHttpContext === undefined) {
|
|
237
|
+
localVarHttpContext = new i1.HttpContext();
|
|
238
|
+
}
|
|
239
|
+
// to determine the Content-Type header
|
|
240
|
+
var consumes = [
|
|
241
|
+
'application/json'
|
|
242
|
+
];
|
|
243
|
+
var httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
244
|
+
if (httpContentTypeSelected !== undefined) {
|
|
245
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
246
|
+
}
|
|
247
|
+
var responseType_ = 'json';
|
|
248
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
250
|
+
responseType_ = 'text';
|
|
251
|
+
}
|
|
252
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
253
|
+
responseType_ = 'json';
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
responseType_ = 'blob';
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return this.httpClient.post(this.configuration.basePath + "/packer/convert/gltf", renderTaskPacker, {
|
|
260
|
+
context: localVarHttpContext,
|
|
261
|
+
responseType: responseType_,
|
|
262
|
+
withCredentials: this.configuration.withCredentials,
|
|
263
|
+
headers: localVarHeaders,
|
|
264
|
+
observe: observe,
|
|
265
|
+
reportProgress: reportProgress
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
return ConvertService;
|
|
269
|
+
}());
|
|
270
|
+
ConvertService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConvertService_Factory() { return new ConvertService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(BASE_PATH, 8), i0__namespace.ɵɵinject(Configuration, 8)); }, token: ConvertService, providedIn: "root" });
|
|
271
|
+
ConvertService.decorators = [
|
|
272
|
+
{ type: i0.Injectable, args: [{
|
|
273
|
+
providedIn: 'root'
|
|
274
|
+
},] }
|
|
275
|
+
];
|
|
276
|
+
ConvertService.ctorParameters = function () { return [
|
|
277
|
+
{ type: i1.HttpClient },
|
|
278
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [BASE_PATH,] }] },
|
|
279
|
+
{ type: Configuration, decorators: [{ type: i0.Optional }] }
|
|
280
|
+
]; };
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* VRt.Packer [PC]
|
|
284
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
285
|
+
*
|
|
286
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
287
|
+
* Contact: servicedesk@veeroute.com
|
|
288
|
+
*
|
|
289
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
290
|
+
* https://openapi-generator.tech
|
|
291
|
+
* Do not edit the class manually.
|
|
292
|
+
*/
|
|
293
|
+
var PackService = /** @class */ (function () {
|
|
294
|
+
function PackService(httpClient, basePath, configuration) {
|
|
295
|
+
this.httpClient = httpClient;
|
|
296
|
+
this.basePath = 'https://api.edge.veeroute.tech';
|
|
297
|
+
this.defaultHeaders = new i1.HttpHeaders();
|
|
298
|
+
this.configuration = new Configuration();
|
|
299
|
+
if (configuration) {
|
|
300
|
+
this.configuration = configuration;
|
|
301
|
+
}
|
|
302
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
303
|
+
if (typeof basePath !== 'string') {
|
|
304
|
+
basePath = this.basePath;
|
|
305
|
+
}
|
|
306
|
+
this.configuration.basePath = basePath;
|
|
307
|
+
}
|
|
308
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
309
|
+
}
|
|
310
|
+
PackService.prototype.addToHttpParams = function (httpParams, value, key) {
|
|
311
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
312
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
316
|
+
}
|
|
317
|
+
return httpParams;
|
|
318
|
+
};
|
|
319
|
+
PackService.prototype.addToHttpParamsRecursive = function (httpParams, value, key) {
|
|
320
|
+
var _this = this;
|
|
321
|
+
if (value == null) {
|
|
322
|
+
return httpParams;
|
|
323
|
+
}
|
|
324
|
+
if (typeof value === "object") {
|
|
325
|
+
if (Array.isArray(value)) {
|
|
326
|
+
value.forEach(function (elem) { return httpParams = _this.addToHttpParamsRecursive(httpParams, elem, key); });
|
|
327
|
+
}
|
|
328
|
+
else if (value instanceof Date) {
|
|
329
|
+
if (key != null) {
|
|
330
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
throw Error("key may not be null if value is Date");
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
Object.keys(value).forEach(function (k) { return httpParams = _this.addToHttpParamsRecursive(httpParams, value[k], key != null ? key + "." + k : k); });
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
else if (key != null) {
|
|
341
|
+
httpParams = httpParams.append(key, value);
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
throw Error("key may not be null if value is not object or array");
|
|
345
|
+
}
|
|
346
|
+
return httpParams;
|
|
347
|
+
};
|
|
348
|
+
PackService.prototype.cancelPackCalculation = function (requestParameters, observe, reportProgress, options) {
|
|
349
|
+
if (observe === void 0) { observe = 'body'; }
|
|
350
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
351
|
+
var id = requestParameters.id;
|
|
352
|
+
if (id === null || id === undefined) {
|
|
353
|
+
throw new Error('Required parameter id was null or undefined when calling cancelPackCalculation.');
|
|
354
|
+
}
|
|
355
|
+
var localVarHeaders = this.defaultHeaders;
|
|
356
|
+
var localVarCredential;
|
|
357
|
+
// authentication (ApiKeyAuth) required
|
|
358
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
359
|
+
if (localVarCredential) {
|
|
360
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
361
|
+
}
|
|
362
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
363
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
364
|
+
// to determine the Accept header
|
|
365
|
+
var httpHeaderAccepts = [
|
|
366
|
+
'application/json'
|
|
367
|
+
];
|
|
368
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
369
|
+
}
|
|
370
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
371
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
372
|
+
}
|
|
373
|
+
var localVarHttpContext = options && options.context;
|
|
374
|
+
if (localVarHttpContext === undefined) {
|
|
375
|
+
localVarHttpContext = new i1.HttpContext();
|
|
376
|
+
}
|
|
377
|
+
var responseType_ = 'json';
|
|
378
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
379
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
380
|
+
responseType_ = 'text';
|
|
381
|
+
}
|
|
382
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
383
|
+
responseType_ = 'json';
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
responseType_ = 'blob';
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return this.httpClient.delete(this.configuration.basePath + "/packer/pack/calculation_async/" + encodeURIComponent(String(id)), {
|
|
390
|
+
context: localVarHttpContext,
|
|
391
|
+
responseType: responseType_,
|
|
392
|
+
withCredentials: this.configuration.withCredentials,
|
|
393
|
+
headers: localVarHeaders,
|
|
394
|
+
observe: observe,
|
|
395
|
+
reportProgress: reportProgress
|
|
396
|
+
});
|
|
397
|
+
};
|
|
398
|
+
PackService.prototype.deletePackResult = function (requestParameters, observe, reportProgress, options) {
|
|
399
|
+
if (observe === void 0) { observe = 'body'; }
|
|
400
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
401
|
+
var id = requestParameters.id;
|
|
402
|
+
if (id === null || id === undefined) {
|
|
403
|
+
throw new Error('Required parameter id was null or undefined when calling deletePackResult.');
|
|
404
|
+
}
|
|
405
|
+
var localVarHeaders = this.defaultHeaders;
|
|
406
|
+
var localVarCredential;
|
|
407
|
+
// authentication (ApiKeyAuth) required
|
|
408
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
409
|
+
if (localVarCredential) {
|
|
410
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
411
|
+
}
|
|
412
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
413
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
414
|
+
// to determine the Accept header
|
|
415
|
+
var httpHeaderAccepts = [
|
|
416
|
+
'application/json'
|
|
417
|
+
];
|
|
418
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
419
|
+
}
|
|
420
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
421
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
422
|
+
}
|
|
423
|
+
var localVarHttpContext = options && options.context;
|
|
424
|
+
if (localVarHttpContext === undefined) {
|
|
425
|
+
localVarHttpContext = new i1.HttpContext();
|
|
426
|
+
}
|
|
427
|
+
var responseType_ = 'json';
|
|
428
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
429
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
430
|
+
responseType_ = 'text';
|
|
431
|
+
}
|
|
432
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
433
|
+
responseType_ = 'json';
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
responseType_ = 'blob';
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return this.httpClient.delete(this.configuration.basePath + "/packer/pack/result/" + encodeURIComponent(String(id)), {
|
|
440
|
+
context: localVarHttpContext,
|
|
441
|
+
responseType: responseType_,
|
|
442
|
+
withCredentials: this.configuration.withCredentials,
|
|
443
|
+
headers: localVarHeaders,
|
|
444
|
+
observe: observe,
|
|
445
|
+
reportProgress: reportProgress
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
PackService.prototype.readPackCalculationState = function (requestParameters, observe, reportProgress, options) {
|
|
449
|
+
if (observe === void 0) { observe = 'body'; }
|
|
450
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
451
|
+
var id = requestParameters.id;
|
|
452
|
+
if (id === null || id === undefined) {
|
|
453
|
+
throw new Error('Required parameter id was null or undefined when calling readPackCalculationState.');
|
|
454
|
+
}
|
|
455
|
+
var localVarHeaders = this.defaultHeaders;
|
|
456
|
+
var localVarCredential;
|
|
457
|
+
// authentication (ApiKeyAuth) required
|
|
458
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
459
|
+
if (localVarCredential) {
|
|
460
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
461
|
+
}
|
|
462
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
463
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
464
|
+
// to determine the Accept header
|
|
465
|
+
var httpHeaderAccepts = [
|
|
466
|
+
'application/json'
|
|
467
|
+
];
|
|
468
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
469
|
+
}
|
|
470
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
471
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
472
|
+
}
|
|
473
|
+
var localVarHttpContext = options && options.context;
|
|
474
|
+
if (localVarHttpContext === undefined) {
|
|
475
|
+
localVarHttpContext = new i1.HttpContext();
|
|
476
|
+
}
|
|
477
|
+
var responseType_ = 'json';
|
|
478
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
479
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
480
|
+
responseType_ = 'text';
|
|
481
|
+
}
|
|
482
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
483
|
+
responseType_ = 'json';
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
responseType_ = 'blob';
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return this.httpClient.get(this.configuration.basePath + "/packer/pack/calculation_async/" + encodeURIComponent(String(id)), {
|
|
490
|
+
context: localVarHttpContext,
|
|
491
|
+
responseType: responseType_,
|
|
492
|
+
withCredentials: this.configuration.withCredentials,
|
|
493
|
+
headers: localVarHeaders,
|
|
494
|
+
observe: observe,
|
|
495
|
+
reportProgress: reportProgress
|
|
496
|
+
});
|
|
497
|
+
};
|
|
498
|
+
PackService.prototype.readPackResult = function (requestParameters, observe, reportProgress, options) {
|
|
499
|
+
if (observe === void 0) { observe = 'body'; }
|
|
500
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
501
|
+
var id = requestParameters.id;
|
|
502
|
+
if (id === null || id === undefined) {
|
|
503
|
+
throw new Error('Required parameter id was null or undefined when calling readPackResult.');
|
|
504
|
+
}
|
|
505
|
+
var localVarHeaders = this.defaultHeaders;
|
|
506
|
+
var localVarCredential;
|
|
507
|
+
// authentication (ApiKeyAuth) required
|
|
508
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
509
|
+
if (localVarCredential) {
|
|
510
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
511
|
+
}
|
|
512
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
513
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
514
|
+
// to determine the Accept header
|
|
515
|
+
var httpHeaderAccepts = [
|
|
516
|
+
'application/json'
|
|
517
|
+
];
|
|
518
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
519
|
+
}
|
|
520
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
521
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
522
|
+
}
|
|
523
|
+
var localVarHttpContext = options && options.context;
|
|
524
|
+
if (localVarHttpContext === undefined) {
|
|
525
|
+
localVarHttpContext = new i1.HttpContext();
|
|
526
|
+
}
|
|
527
|
+
var responseType_ = 'json';
|
|
528
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
529
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
530
|
+
responseType_ = 'text';
|
|
531
|
+
}
|
|
532
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
533
|
+
responseType_ = 'json';
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
responseType_ = 'blob';
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return this.httpClient.get(this.configuration.basePath + "/packer/pack/result/" + encodeURIComponent(String(id)), {
|
|
540
|
+
context: localVarHttpContext,
|
|
541
|
+
responseType: responseType_,
|
|
542
|
+
withCredentials: this.configuration.withCredentials,
|
|
543
|
+
headers: localVarHeaders,
|
|
544
|
+
observe: observe,
|
|
545
|
+
reportProgress: reportProgress
|
|
546
|
+
});
|
|
547
|
+
};
|
|
548
|
+
PackService.prototype.runPackCalculation = function (requestParameters, observe, reportProgress, options) {
|
|
549
|
+
if (observe === void 0) { observe = 'body'; }
|
|
550
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
551
|
+
var packTaskPacker = requestParameters.packTaskPacker;
|
|
552
|
+
if (packTaskPacker === null || packTaskPacker === undefined) {
|
|
553
|
+
throw new Error('Required parameter packTaskPacker was null or undefined when calling runPackCalculation.');
|
|
554
|
+
}
|
|
555
|
+
var localVarHeaders = this.defaultHeaders;
|
|
556
|
+
var localVarCredential;
|
|
557
|
+
// authentication (ApiKeyAuth) required
|
|
558
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
559
|
+
if (localVarCredential) {
|
|
560
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
561
|
+
}
|
|
562
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
563
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
564
|
+
// to determine the Accept header
|
|
565
|
+
var httpHeaderAccepts = [
|
|
566
|
+
'application/json'
|
|
567
|
+
];
|
|
568
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
569
|
+
}
|
|
570
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
571
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
572
|
+
}
|
|
573
|
+
var localVarHttpContext = options && options.context;
|
|
574
|
+
if (localVarHttpContext === undefined) {
|
|
575
|
+
localVarHttpContext = new i1.HttpContext();
|
|
576
|
+
}
|
|
577
|
+
// to determine the Content-Type header
|
|
578
|
+
var consumes = [
|
|
579
|
+
'application/json'
|
|
580
|
+
];
|
|
581
|
+
var httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
582
|
+
if (httpContentTypeSelected !== undefined) {
|
|
583
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
584
|
+
}
|
|
585
|
+
var responseType_ = 'json';
|
|
586
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
587
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
588
|
+
responseType_ = 'text';
|
|
589
|
+
}
|
|
590
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
591
|
+
responseType_ = 'json';
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
responseType_ = 'blob';
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return this.httpClient.post(this.configuration.basePath + "/packer/pack/calculation", packTaskPacker, {
|
|
598
|
+
context: localVarHttpContext,
|
|
599
|
+
responseType: responseType_,
|
|
600
|
+
withCredentials: this.configuration.withCredentials,
|
|
601
|
+
headers: localVarHeaders,
|
|
602
|
+
observe: observe,
|
|
603
|
+
reportProgress: reportProgress
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
PackService.prototype.runPackCalculationAsync = function (requestParameters, observe, reportProgress, options) {
|
|
607
|
+
if (observe === void 0) { observe = 'body'; }
|
|
608
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
609
|
+
var packTaskPacker = requestParameters.packTaskPacker;
|
|
610
|
+
if (packTaskPacker === null || packTaskPacker === undefined) {
|
|
611
|
+
throw new Error('Required parameter packTaskPacker was null or undefined when calling runPackCalculationAsync.');
|
|
612
|
+
}
|
|
613
|
+
var localVarHeaders = this.defaultHeaders;
|
|
614
|
+
var localVarCredential;
|
|
615
|
+
// authentication (ApiKeyAuth) required
|
|
616
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
617
|
+
if (localVarCredential) {
|
|
618
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
619
|
+
}
|
|
620
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
621
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
622
|
+
// to determine the Accept header
|
|
623
|
+
var httpHeaderAccepts = [
|
|
624
|
+
'application/json'
|
|
625
|
+
];
|
|
626
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
627
|
+
}
|
|
628
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
629
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
630
|
+
}
|
|
631
|
+
var localVarHttpContext = options && options.context;
|
|
632
|
+
if (localVarHttpContext === undefined) {
|
|
633
|
+
localVarHttpContext = new i1.HttpContext();
|
|
634
|
+
}
|
|
635
|
+
// to determine the Content-Type header
|
|
636
|
+
var consumes = [
|
|
637
|
+
'application/json'
|
|
638
|
+
];
|
|
639
|
+
var httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
640
|
+
if (httpContentTypeSelected !== undefined) {
|
|
641
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
642
|
+
}
|
|
643
|
+
var responseType_ = 'json';
|
|
644
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
645
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
646
|
+
responseType_ = 'text';
|
|
647
|
+
}
|
|
648
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
649
|
+
responseType_ = 'json';
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
responseType_ = 'blob';
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return this.httpClient.post(this.configuration.basePath + "/packer/pack/calculation_async", packTaskPacker, {
|
|
656
|
+
context: localVarHttpContext,
|
|
657
|
+
responseType: responseType_,
|
|
658
|
+
withCredentials: this.configuration.withCredentials,
|
|
659
|
+
headers: localVarHeaders,
|
|
660
|
+
observe: observe,
|
|
661
|
+
reportProgress: reportProgress
|
|
662
|
+
});
|
|
663
|
+
};
|
|
664
|
+
PackService.prototype.runPackValidation = function (requestParameters, observe, reportProgress, options) {
|
|
665
|
+
if (observe === void 0) { observe = 'body'; }
|
|
666
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
667
|
+
var packTaskPacker = requestParameters.packTaskPacker;
|
|
668
|
+
if (packTaskPacker === null || packTaskPacker === undefined) {
|
|
669
|
+
throw new Error('Required parameter packTaskPacker was null or undefined when calling runPackValidation.');
|
|
670
|
+
}
|
|
671
|
+
var localVarHeaders = this.defaultHeaders;
|
|
672
|
+
var localVarCredential;
|
|
673
|
+
// authentication (ApiKeyAuth) required
|
|
674
|
+
localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
|
|
675
|
+
if (localVarCredential) {
|
|
676
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
677
|
+
}
|
|
678
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
679
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
680
|
+
// to determine the Accept header
|
|
681
|
+
var httpHeaderAccepts = [
|
|
682
|
+
'application/json'
|
|
683
|
+
];
|
|
684
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
685
|
+
}
|
|
686
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
687
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
688
|
+
}
|
|
689
|
+
var localVarHttpContext = options && options.context;
|
|
690
|
+
if (localVarHttpContext === undefined) {
|
|
691
|
+
localVarHttpContext = new i1.HttpContext();
|
|
692
|
+
}
|
|
693
|
+
// to determine the Content-Type header
|
|
694
|
+
var consumes = [
|
|
695
|
+
'application/json'
|
|
696
|
+
];
|
|
697
|
+
var httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
698
|
+
if (httpContentTypeSelected !== undefined) {
|
|
699
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
700
|
+
}
|
|
701
|
+
var responseType_ = 'json';
|
|
702
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
703
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
704
|
+
responseType_ = 'text';
|
|
705
|
+
}
|
|
706
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
707
|
+
responseType_ = 'json';
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
responseType_ = 'blob';
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
return this.httpClient.post(this.configuration.basePath + "/packer/pack/validation", packTaskPacker, {
|
|
714
|
+
context: localVarHttpContext,
|
|
715
|
+
responseType: responseType_,
|
|
716
|
+
withCredentials: this.configuration.withCredentials,
|
|
717
|
+
headers: localVarHeaders,
|
|
718
|
+
observe: observe,
|
|
719
|
+
reportProgress: reportProgress
|
|
720
|
+
});
|
|
721
|
+
};
|
|
722
|
+
return PackService;
|
|
723
|
+
}());
|
|
724
|
+
PackService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PackService_Factory() { return new PackService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(BASE_PATH, 8), i0__namespace.ɵɵinject(Configuration, 8)); }, token: PackService, providedIn: "root" });
|
|
725
|
+
PackService.decorators = [
|
|
726
|
+
{ type: i0.Injectable, args: [{
|
|
727
|
+
providedIn: 'root'
|
|
728
|
+
},] }
|
|
729
|
+
];
|
|
730
|
+
PackService.ctorParameters = function () { return [
|
|
731
|
+
{ type: i1.HttpClient },
|
|
732
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [BASE_PATH,] }] },
|
|
733
|
+
{ type: Configuration, decorators: [{ type: i0.Optional }] }
|
|
734
|
+
]; };
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* VRt.Packer [PC]
|
|
738
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
739
|
+
*
|
|
740
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
741
|
+
* Contact: servicedesk@veeroute.com
|
|
742
|
+
*
|
|
743
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
744
|
+
* https://openapi-generator.tech
|
|
745
|
+
* Do not edit the class manually.
|
|
746
|
+
*/
|
|
747
|
+
var SystemService = /** @class */ (function () {
|
|
748
|
+
function SystemService(httpClient, basePath, configuration) {
|
|
749
|
+
this.httpClient = httpClient;
|
|
750
|
+
this.basePath = 'https://api.edge.veeroute.tech';
|
|
751
|
+
this.defaultHeaders = new i1.HttpHeaders();
|
|
752
|
+
this.configuration = new Configuration();
|
|
753
|
+
if (configuration) {
|
|
754
|
+
this.configuration = configuration;
|
|
755
|
+
}
|
|
756
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
757
|
+
if (typeof basePath !== 'string') {
|
|
758
|
+
basePath = this.basePath;
|
|
759
|
+
}
|
|
760
|
+
this.configuration.basePath = basePath;
|
|
761
|
+
}
|
|
762
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
763
|
+
}
|
|
764
|
+
SystemService.prototype.addToHttpParams = function (httpParams, value, key) {
|
|
765
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
766
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
767
|
+
}
|
|
768
|
+
else {
|
|
769
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
770
|
+
}
|
|
771
|
+
return httpParams;
|
|
772
|
+
};
|
|
773
|
+
SystemService.prototype.addToHttpParamsRecursive = function (httpParams, value, key) {
|
|
774
|
+
var _this = this;
|
|
775
|
+
if (value == null) {
|
|
776
|
+
return httpParams;
|
|
777
|
+
}
|
|
778
|
+
if (typeof value === "object") {
|
|
779
|
+
if (Array.isArray(value)) {
|
|
780
|
+
value.forEach(function (elem) { return httpParams = _this.addToHttpParamsRecursive(httpParams, elem, key); });
|
|
781
|
+
}
|
|
782
|
+
else if (value instanceof Date) {
|
|
783
|
+
if (key != null) {
|
|
784
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
throw Error("key may not be null if value is Date");
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
Object.keys(value).forEach(function (k) { return httpParams = _this.addToHttpParamsRecursive(httpParams, value[k], key != null ? key + "." + k : k); });
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
else if (key != null) {
|
|
795
|
+
httpParams = httpParams.append(key, value);
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
throw Error("key may not be null if value is not object or array");
|
|
799
|
+
}
|
|
800
|
+
return httpParams;
|
|
801
|
+
};
|
|
802
|
+
SystemService.prototype.check = function (observe, reportProgress, options) {
|
|
803
|
+
if (observe === void 0) { observe = 'body'; }
|
|
804
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
805
|
+
var localVarHeaders = this.defaultHeaders;
|
|
806
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
807
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
808
|
+
// to determine the Accept header
|
|
809
|
+
var httpHeaderAccepts = [
|
|
810
|
+
'application/json'
|
|
811
|
+
];
|
|
812
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
813
|
+
}
|
|
814
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
815
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
816
|
+
}
|
|
817
|
+
var localVarHttpContext = options && options.context;
|
|
818
|
+
if (localVarHttpContext === undefined) {
|
|
819
|
+
localVarHttpContext = new i1.HttpContext();
|
|
820
|
+
}
|
|
821
|
+
var responseType_ = 'json';
|
|
822
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
823
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
824
|
+
responseType_ = 'text';
|
|
825
|
+
}
|
|
826
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
827
|
+
responseType_ = 'json';
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
responseType_ = 'blob';
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
return this.httpClient.get(this.configuration.basePath + "/packer/system/check", {
|
|
834
|
+
context: localVarHttpContext,
|
|
835
|
+
responseType: responseType_,
|
|
836
|
+
withCredentials: this.configuration.withCredentials,
|
|
837
|
+
headers: localVarHeaders,
|
|
838
|
+
observe: observe,
|
|
839
|
+
reportProgress: reportProgress
|
|
840
|
+
});
|
|
841
|
+
};
|
|
842
|
+
SystemService.prototype.version = function (observe, reportProgress, options) {
|
|
843
|
+
if (observe === void 0) { observe = 'body'; }
|
|
844
|
+
if (reportProgress === void 0) { reportProgress = false; }
|
|
845
|
+
var localVarHeaders = this.defaultHeaders;
|
|
846
|
+
var localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
847
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
848
|
+
// to determine the Accept header
|
|
849
|
+
var httpHeaderAccepts = [
|
|
850
|
+
'application/json'
|
|
851
|
+
];
|
|
852
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
853
|
+
}
|
|
854
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
855
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
856
|
+
}
|
|
857
|
+
var localVarHttpContext = options && options.context;
|
|
858
|
+
if (localVarHttpContext === undefined) {
|
|
859
|
+
localVarHttpContext = new i1.HttpContext();
|
|
860
|
+
}
|
|
861
|
+
var responseType_ = 'json';
|
|
862
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
863
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
864
|
+
responseType_ = 'text';
|
|
865
|
+
}
|
|
866
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
867
|
+
responseType_ = 'json';
|
|
868
|
+
}
|
|
869
|
+
else {
|
|
870
|
+
responseType_ = 'blob';
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
return this.httpClient.get(this.configuration.basePath + "/packer/system/version", {
|
|
874
|
+
context: localVarHttpContext,
|
|
875
|
+
responseType: responseType_,
|
|
876
|
+
withCredentials: this.configuration.withCredentials,
|
|
877
|
+
headers: localVarHeaders,
|
|
878
|
+
observe: observe,
|
|
879
|
+
reportProgress: reportProgress
|
|
880
|
+
});
|
|
881
|
+
};
|
|
882
|
+
return SystemService;
|
|
883
|
+
}());
|
|
884
|
+
SystemService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SystemService_Factory() { return new SystemService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(BASE_PATH, 8), i0__namespace.ɵɵinject(Configuration, 8)); }, token: SystemService, providedIn: "root" });
|
|
885
|
+
SystemService.decorators = [
|
|
886
|
+
{ type: i0.Injectable, args: [{
|
|
887
|
+
providedIn: 'root'
|
|
888
|
+
},] }
|
|
889
|
+
];
|
|
890
|
+
SystemService.ctorParameters = function () { return [
|
|
891
|
+
{ type: i1.HttpClient },
|
|
892
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [BASE_PATH,] }] },
|
|
893
|
+
{ type: Configuration, decorators: [{ type: i0.Optional }] }
|
|
894
|
+
]; };
|
|
895
|
+
|
|
896
|
+
var APIS = [ConvertService, PackService, SystemService];
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* VRt.Packer [PC]
|
|
900
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
901
|
+
*
|
|
902
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
903
|
+
* Contact: servicedesk@veeroute.com
|
|
904
|
+
*
|
|
905
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
906
|
+
* https://openapi-generator.tech
|
|
907
|
+
* Do not edit the class manually.
|
|
908
|
+
*/
|
|
909
|
+
/**
|
|
910
|
+
* Calculation status: * `WAITING` - the calculation is waiting to start. * `IN_PROGRESS` - the calculation is in progress. * `FINISHED_IN_TIME` - the calculation was completed before the specified planning time. * `FINISHED_OUT_OF_TIME` - the calculation was completed because the specified planning time has expired. * `CANCELED` - the calculation was canceled because a cancel command was received. * `CANCELED_BY_TIMEOUT` - the calculation was canceled automatically because the waiting time in the queue was exceeded. * `FAILED` - the calculation failed with an error.
|
|
911
|
+
*/
|
|
912
|
+
exports.CalculationStatusPacker = void 0;
|
|
913
|
+
(function (CalculationStatusPacker) {
|
|
914
|
+
CalculationStatusPacker["WAITING"] = "WAITING";
|
|
915
|
+
CalculationStatusPacker["IN_PROGRESS"] = "IN_PROGRESS";
|
|
916
|
+
CalculationStatusPacker["FINISHED_IN_TIME"] = "FINISHED_IN_TIME";
|
|
917
|
+
CalculationStatusPacker["FINISHED_OUT_OF_TIME"] = "FINISHED_OUT_OF_TIME";
|
|
918
|
+
CalculationStatusPacker["CANCELED"] = "CANCELED";
|
|
919
|
+
CalculationStatusPacker["CANCELED_BY_TIMEOUT"] = "CANCELED_BY_TIMEOUT";
|
|
920
|
+
CalculationStatusPacker["FAILED"] = "FAILED";
|
|
921
|
+
})(exports.CalculationStatusPacker || (exports.CalculationStatusPacker = {}));
|
|
922
|
+
;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* VRt.Packer [PC]
|
|
926
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
927
|
+
*
|
|
928
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
929
|
+
* Contact: servicedesk@veeroute.com
|
|
930
|
+
*
|
|
931
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
932
|
+
* https://openapi-generator.tech
|
|
933
|
+
* Do not edit the class manually.
|
|
934
|
+
*/
|
|
935
|
+
/**
|
|
936
|
+
* Error type: * `UNIQUE_IDS_VIOLATION` - all keys must be unique * `INCONSISTENT_REFERENCE` - bad reference key
|
|
937
|
+
*/
|
|
938
|
+
exports.EntityErrorTypePacker = void 0;
|
|
939
|
+
(function (EntityErrorTypePacker) {
|
|
940
|
+
EntityErrorTypePacker["UNIQUE_IDS_VIOLATION"] = "UNIQUE_IDS_VIOLATION";
|
|
941
|
+
EntityErrorTypePacker["INCONSISTENT_REFERENCE"] = "INCONSISTENT_REFERENCE";
|
|
942
|
+
})(exports.EntityErrorTypePacker || (exports.EntityErrorTypePacker = {}));
|
|
943
|
+
;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* VRt.Packer [PC]
|
|
947
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
948
|
+
*
|
|
949
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
950
|
+
* Contact: servicedesk@veeroute.com
|
|
951
|
+
*
|
|
952
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
953
|
+
* https://openapi-generator.tech
|
|
954
|
+
* Do not edit the class manually.
|
|
955
|
+
*/
|
|
956
|
+
/**
|
|
957
|
+
* Entity type.
|
|
958
|
+
*/
|
|
959
|
+
exports.EntityTypePacker = void 0;
|
|
960
|
+
(function (EntityTypePacker) {
|
|
961
|
+
EntityTypePacker["TASK"] = "TASK";
|
|
962
|
+
EntityTypePacker["SETTINGS"] = "SETTINGS";
|
|
963
|
+
EntityTypePacker["PRODUCT"] = "PRODUCT";
|
|
964
|
+
EntityTypePacker["PACKAGE"] = "PACKAGE";
|
|
965
|
+
})(exports.EntityTypePacker || (exports.EntityTypePacker = {}));
|
|
966
|
+
;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* VRt.Packer [PC]
|
|
970
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
971
|
+
*
|
|
972
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
973
|
+
* Contact: servicedesk@veeroute.com
|
|
974
|
+
*
|
|
975
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
976
|
+
* https://openapi-generator.tech
|
|
977
|
+
* Do not edit the class manually.
|
|
978
|
+
*/
|
|
979
|
+
/**
|
|
980
|
+
* Validation type: * `NO_COMPATIBLE_PACKAGE` - product does not fit into any package
|
|
981
|
+
*/
|
|
982
|
+
exports.EntityValidationTypePacker = void 0;
|
|
983
|
+
(function (EntityValidationTypePacker) {
|
|
984
|
+
EntityValidationTypePacker["NO_COMPATIBLE_PACKAGE"] = "NO_COMPATIBLE_PACKAGE";
|
|
985
|
+
})(exports.EntityValidationTypePacker || (exports.EntityValidationTypePacker = {}));
|
|
986
|
+
;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* VRt.Packer [PC]
|
|
990
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
991
|
+
*
|
|
992
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
993
|
+
* Contact: servicedesk@veeroute.com
|
|
994
|
+
*
|
|
995
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
996
|
+
* https://openapi-generator.tech
|
|
997
|
+
* Do not edit the class manually.
|
|
998
|
+
*/
|
|
999
|
+
/**
|
|
1000
|
+
* Types of [packaging](#section/Description/Packaging-process): * `SLOT` - space in the transport box for a stack of pallets, the height limits the stack of pallets * `PALLET` - a pallet, the products are stacked on top of a pallet, with the help of a cardboard partition it can be divided into 2 - 6 parts, in each of which the same products are placed * `MIXBOX` - mix-box, the products are folded inside the box
|
|
1001
|
+
*/
|
|
1002
|
+
exports.PackageTypePacker = void 0;
|
|
1003
|
+
(function (PackageTypePacker) {
|
|
1004
|
+
PackageTypePacker["SLOT"] = "SLOT";
|
|
1005
|
+
PackageTypePacker["PALLET"] = "PALLET";
|
|
1006
|
+
PackageTypePacker["MIXBOX"] = "MIXBOX";
|
|
1007
|
+
})(exports.PackageTypePacker || (exports.PackageTypePacker = {}));
|
|
1008
|
+
;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* VRt.Packer [PC]
|
|
1012
|
+
* Veeroute Packer API. # Description The service is designed to calculate the placement of goods inside specified packages. ## Package types ### Pallet  *Mono pallet* If a pallet is fully equipped with the same product, then such a pallet is called mono-pallet, mono-pallet loading rules: 1. The maximum permissible height of the pallet with the goods laid on it: 1800 mm 1. Maximum permissible weight of the loaded pallet: 650 kg 1. Packages of goods may only be stacked parallel to the pallet walls. 1. It is allowed to rotate packages around the vertical Z axis and only at right angles. 1. To level the height between positions (for placing another pallet on top), empty spaces can be added to the stacking in layers. *Zoned pallet* After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one article is placed in each zone, the zones have the following restrictions: 1. Zones are rectangular. 1. The ratio between the sides of the zones can be any. 1. One side of any zone is always in contact with the edge of the pallet. 1. Allowable number of zones on a pallet: from 2 to 6. 1. Each zone is filled according to the rules for filling a mono-pallet. 1. The stacking height of all goods does not exceed 50 mm, so that another pallet can be placed on top of such a pallet. 1. It is allowed to form pallets with different stacking heights for different positions (the difference in heights is more than 50 mm), if these are the top pallets in a stack. ### Mix box  If the steps above fail to place the item in this way, so that the pallet has the required height or weight, mix boxes are used: 1. Mix boxes can only be placed in one layer. 1. In one mix-box there can be different goods, in this case it is divided by partitions similarly to the pallet (the only difference is that the height of the packed goods is not aligned). 1. Mix boxes can be mixed with items on one pallet. 1. One product can be packed in different mix boxes. ### Slot  Loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed. The slot has no physical body - so the dimensions of the `body` of the slot are zero. ## Coordinate system  The local coordinate system is used to indicate the location of packages and goods, in which the coordinates of a particular object are indicated relative to the near-left lower corner of the parent object, while: * Horizontal plane - **X**, **Y** axes * Vertical - **Z** axis ## Entity relationship diagram 
|
|
1013
|
+
*
|
|
1014
|
+
* The version of the OpenAPI document: 4.7.1599
|
|
1015
|
+
* Contact: servicedesk@veeroute.com
|
|
1016
|
+
*
|
|
1017
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1018
|
+
* https://openapi-generator.tech
|
|
1019
|
+
* Do not edit the class manually.
|
|
1020
|
+
*/
|
|
1021
|
+
/**
|
|
1022
|
+
* Service name.
|
|
1023
|
+
*/
|
|
1024
|
+
exports.ServiceNamePacker = void 0;
|
|
1025
|
+
(function (ServiceNamePacker) {
|
|
1026
|
+
ServiceNamePacker["UNIVERSAL"] = "UNIVERSAL";
|
|
1027
|
+
ServiceNamePacker["ROUTING"] = "ROUTING";
|
|
1028
|
+
ServiceNamePacker["ACCOUNT"] = "ACCOUNT";
|
|
1029
|
+
ServiceNamePacker["ADMIN"] = "ADMIN";
|
|
1030
|
+
ServiceNamePacker["STUDIO"] = "STUDIO";
|
|
1031
|
+
ServiceNamePacker["STOCK"] = "STOCK";
|
|
1032
|
+
ServiceNamePacker["PACKER"] = "PACKER";
|
|
1033
|
+
ServiceNamePacker["LONGHAUL"] = "LONGHAUL";
|
|
1034
|
+
ServiceNamePacker["CLUSTER"] = "CLUSTER";
|
|
1035
|
+
ServiceNamePacker["CARGOTIMETABLE"] = "CARGOTIMETABLE";
|
|
1036
|
+
})(exports.ServiceNamePacker || (exports.ServiceNamePacker = {}));
|
|
1037
|
+
;
|
|
1038
|
+
|
|
1039
|
+
var LssPackerApiModule = /** @class */ (function () {
|
|
1040
|
+
function LssPackerApiModule(parentModule, http) {
|
|
1041
|
+
if (parentModule) {
|
|
1042
|
+
throw new Error('LssPackerApiModule is already loaded. Import in your base AppModule only.');
|
|
1043
|
+
}
|
|
1044
|
+
if (!http) {
|
|
1045
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1046
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
LssPackerApiModule.forRoot = function (configurationFactory) {
|
|
1050
|
+
return {
|
|
1051
|
+
ngModule: LssPackerApiModule,
|
|
1052
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
return LssPackerApiModule;
|
|
1056
|
+
}());
|
|
1057
|
+
LssPackerApiModule.decorators = [
|
|
1058
|
+
{ type: i0.NgModule, args: [{
|
|
1059
|
+
imports: [],
|
|
1060
|
+
declarations: [],
|
|
1061
|
+
exports: [],
|
|
1062
|
+
providers: []
|
|
1063
|
+
},] }
|
|
1064
|
+
];
|
|
1065
|
+
LssPackerApiModule.ctorParameters = function () { return [
|
|
1066
|
+
{ type: LssPackerApiModule, decorators: [{ type: i0.Optional }, { type: i0.SkipSelf }] },
|
|
1067
|
+
{ type: i1.HttpClient, decorators: [{ type: i0.Optional }] }
|
|
1068
|
+
]; };
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Generated bundle index. Do not edit.
|
|
1072
|
+
*/
|
|
1073
|
+
|
|
1074
|
+
exports.APIS = APIS;
|
|
1075
|
+
exports.BASE_PATH = BASE_PATH;
|
|
1076
|
+
exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
|
|
1077
|
+
exports.Configuration = Configuration;
|
|
1078
|
+
exports.ConvertService = ConvertService;
|
|
1079
|
+
exports.LssPackerApiModule = LssPackerApiModule;
|
|
1080
|
+
exports.PackService = PackService;
|
|
1081
|
+
exports.SystemService = SystemService;
|
|
1082
|
+
|
|
1083
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1084
|
+
|
|
1085
|
+
}));
|
|
1086
|
+
//# sourceMappingURL=veeroute-lss-packer-angular.umd.js.map
|