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