@veeroute/lss-routing-angular 7.21.2852 → 7.23.2924
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 +118 -117
- package/api/matrixService.d.ts +4 -9
- package/api/matrixServiceInterface.d.ts +1 -1
- package/api/routeService.d.ts +4 -9
- package/api/routeServiceInterface.d.ts +1 -1
- package/api/systemService.d.ts +4 -9
- package/api/systemServiceInterface.d.ts +1 -1
- package/api.base.service.d.ts +21 -0
- package/configuration.d.ts +4 -2
- package/esm2022/api/matrixService.mjs +15 -85
- package/esm2022/api/matrixServiceInterface.mjs +1 -1
- package/esm2022/api/routeService.mjs +15 -85
- package/esm2022/api/routeServiceInterface.mjs +1 -1
- package/esm2022/api/systemService.mjs +32 -118
- package/esm2022/api/systemServiceInterface.mjs +1 -1
- package/esm2022/api.base.service.mjs +79 -0
- package/esm2022/configuration.mjs +33 -17
- package/esm2022/index.mjs +2 -1
- package/esm2022/model/attribute.mjs +2 -2
- package/esm2022/model/checkResult.mjs +2 -2
- package/esm2022/model/general400.mjs +1 -1
- package/esm2022/model/general402.mjs +1 -1
- package/esm2022/model/general404.mjs +1 -1
- package/esm2022/model/general404Detail.mjs +1 -1
- package/esm2022/model/general429.mjs +1 -1
- package/esm2022/model/general500.mjs +1 -1
- package/esm2022/model/geoSettings.mjs +1 -1
- package/esm2022/model/geopoint.mjs +2 -2
- package/esm2022/model/matrixResult.mjs +1 -1
- package/esm2022/model/matrixTask.mjs +1 -1
- package/esm2022/model/route.mjs +1 -1
- package/esm2022/model/routeLeg.mjs +1 -1
- package/esm2022/model/routeResult.mjs +1 -1
- package/esm2022/model/routeStatistics.mjs +1 -1
- package/esm2022/model/routeStep.mjs +1 -1
- package/esm2022/model/routeTask.mjs +1 -1
- package/esm2022/model/routeWaypoint.mjs +1 -1
- package/esm2022/model/routingMatrix.mjs +1 -1
- package/esm2022/model/routingMatrixWaypoint.mjs +1 -1
- package/esm2022/model/schemaError.mjs +2 -2
- package/esm2022/model/service.mjs +2 -2
- package/esm2022/model/timeWindow.mjs +2 -2
- package/esm2022/model/tracedata.mjs +1 -1
- package/esm2022/model/trackpoint.mjs +2 -2
- package/esm2022/model/transportType.mjs +2 -2
- package/esm2022/model/versionResult.mjs +2 -2
- package/esm2022/provide-api.mjs +15 -0
- package/fesm2022/veeroute-lss-routing-angular.mjs +165 -284
- package/fesm2022/veeroute-lss-routing-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/model/attribute.d.ts +1 -1
- package/model/checkResult.d.ts +1 -1
- package/model/general400.d.ts +1 -1
- package/model/general402.d.ts +1 -1
- package/model/general404.d.ts +1 -1
- package/model/general404Detail.d.ts +1 -1
- package/model/general429.d.ts +1 -1
- package/model/general500.d.ts +1 -1
- package/model/geoSettings.d.ts +1 -1
- package/model/geopoint.d.ts +1 -1
- package/model/matrixResult.d.ts +1 -1
- package/model/matrixTask.d.ts +1 -1
- package/model/route.d.ts +1 -1
- package/model/routeLeg.d.ts +1 -1
- package/model/routeResult.d.ts +1 -1
- package/model/routeStatistics.d.ts +5 -2
- package/model/routeStep.d.ts +1 -1
- package/model/routeTask.d.ts +1 -1
- package/model/routeWaypoint.d.ts +1 -1
- package/model/routingMatrix.d.ts +1 -1
- package/model/routingMatrixWaypoint.d.ts +1 -1
- package/model/schemaError.d.ts +1 -1
- package/model/service.d.ts +1 -1
- package/model/timeWindow.d.ts +1 -1
- package/model/tracedata.d.ts +1 -1
- package/model/trackpoint.d.ts +1 -1
- package/model/transportType.d.ts +1 -1
- package/model/versionResult.d.ts +1 -1
- package/package.json +1 -1
- package/provide-api.d.ts +3 -0
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpContext } from '@angular/common/http';
|
|
5
5
|
|
|
6
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
7
|
+
const COLLECTION_FORMATS = {
|
|
8
|
+
'csv': ',',
|
|
9
|
+
'tsv': ' ',
|
|
10
|
+
'ssv': ' ',
|
|
11
|
+
'pipes': '|'
|
|
12
|
+
};
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* Custom HttpParameterCodec
|
|
8
16
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
@@ -22,14 +30,6 @@ class CustomHttpParameterCodec {
|
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
26
|
-
const COLLECTION_FORMATS = {
|
|
27
|
-
'csv': ',',
|
|
28
|
-
'tsv': ' ',
|
|
29
|
-
'ssv': ' ',
|
|
30
|
-
'pipes': '|'
|
|
31
|
-
};
|
|
32
|
-
|
|
33
33
|
class Configuration {
|
|
34
34
|
/**
|
|
35
35
|
* @deprecated Since 5.0. Use credentials instead
|
|
@@ -61,26 +61,30 @@ class Configuration {
|
|
|
61
61
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
62
62
|
*/
|
|
63
63
|
credentials;
|
|
64
|
-
constructor(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
77
|
-
}
|
|
78
|
-
if (configurationParameters.credentials) {
|
|
79
|
-
this.credentials = configurationParameters.credentials;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
this.credentials = {};
|
|
64
|
+
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
|
|
65
|
+
if (apiKeys) {
|
|
66
|
+
this.apiKeys = apiKeys;
|
|
67
|
+
}
|
|
68
|
+
if (username !== undefined) {
|
|
69
|
+
this.username = username;
|
|
70
|
+
}
|
|
71
|
+
if (password !== undefined) {
|
|
72
|
+
this.password = password;
|
|
73
|
+
}
|
|
74
|
+
if (accessToken !== undefined) {
|
|
75
|
+
this.accessToken = accessToken;
|
|
83
76
|
}
|
|
77
|
+
if (basePath !== undefined) {
|
|
78
|
+
this.basePath = basePath;
|
|
79
|
+
}
|
|
80
|
+
if (withCredentials !== undefined) {
|
|
81
|
+
this.withCredentials = withCredentials;
|
|
82
|
+
}
|
|
83
|
+
if (encoder) {
|
|
84
|
+
this.encoder = encoder;
|
|
85
|
+
}
|
|
86
|
+
this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
|
|
87
|
+
this.credentials = credentials ?? {};
|
|
84
88
|
// init default ApiKeyAuth credential
|
|
85
89
|
if (!this.credentials['ApiKeyAuth']) {
|
|
86
90
|
this.credentials['ApiKeyAuth'] = () => {
|
|
@@ -144,6 +148,18 @@ class Configuration {
|
|
|
144
148
|
? value()
|
|
145
149
|
: value;
|
|
146
150
|
}
|
|
151
|
+
addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
|
|
152
|
+
const value = this.lookupCredential(credentialKey);
|
|
153
|
+
return value
|
|
154
|
+
? headers.set(headerName, (prefix ?? '') + value)
|
|
155
|
+
: headers;
|
|
156
|
+
}
|
|
157
|
+
addCredentialToQuery(credentialKey, paramName, query) {
|
|
158
|
+
const value = this.lookupCredential(credentialKey);
|
|
159
|
+
return value
|
|
160
|
+
? query.set(paramName, value)
|
|
161
|
+
: query;
|
|
162
|
+
}
|
|
147
163
|
defaultEncodeParam(param) {
|
|
148
164
|
// This implementation exists as fallback for missing configuration
|
|
149
165
|
// and for backwards compatibility to older typescript-angular generator versions.
|
|
@@ -162,24 +178,19 @@ class Configuration {
|
|
|
162
178
|
/**
|
|
163
179
|
* VRt.Routing [RT]
|
|
164
180
|
*
|
|
165
|
-
* The version of the OpenAPI document: 7.
|
|
181
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
166
182
|
* Contact: servicedesk@veeroute.com
|
|
167
183
|
*
|
|
168
184
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
169
185
|
* Do not edit the class manually.
|
|
170
186
|
*/
|
|
171
|
-
|
|
172
|
-
class MatrixService {
|
|
173
|
-
httpClient;
|
|
187
|
+
class BaseService {
|
|
174
188
|
basePath = 'https://api.edge7.veeroute.cloud';
|
|
175
189
|
defaultHeaders = new HttpHeaders();
|
|
176
|
-
configuration
|
|
190
|
+
configuration;
|
|
177
191
|
encoder;
|
|
178
|
-
constructor(
|
|
179
|
-
this.
|
|
180
|
-
if (configuration) {
|
|
181
|
-
this.configuration = configuration;
|
|
182
|
-
}
|
|
192
|
+
constructor(basePath, configuration) {
|
|
193
|
+
this.configuration = configuration || new Configuration();
|
|
183
194
|
if (typeof this.configuration.basePath !== 'string') {
|
|
184
195
|
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
185
196
|
if (firstBasePath != undefined) {
|
|
@@ -192,43 +203,69 @@ class MatrixService {
|
|
|
192
203
|
}
|
|
193
204
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
194
205
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
canConsumeForm(consumes) {
|
|
207
|
+
return consumes.indexOf('multipart/form-data') !== -1;
|
|
208
|
+
}
|
|
209
|
+
addToHttpParams(httpParams, value, key, isDeep = false) {
|
|
210
|
+
// If the value is an object (but not a Date), recursively add its keys.
|
|
211
|
+
if (typeof value === 'object' && !(value instanceof Date)) {
|
|
212
|
+
return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
|
|
202
213
|
}
|
|
203
|
-
return httpParams;
|
|
214
|
+
return this.addToHttpParamsRecursive(httpParams, value, key);
|
|
204
215
|
}
|
|
205
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
206
|
-
if (value
|
|
216
|
+
addToHttpParamsRecursive(httpParams, value, key, isDeep = false) {
|
|
217
|
+
if (value === null || value === undefined) {
|
|
207
218
|
return httpParams;
|
|
208
219
|
}
|
|
209
|
-
if (typeof value ===
|
|
220
|
+
if (typeof value === 'object') {
|
|
221
|
+
// If JSON format is preferred, key must be provided.
|
|
222
|
+
if (key != null) {
|
|
223
|
+
return isDeep
|
|
224
|
+
? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams)
|
|
225
|
+
: httpParams.append(key, JSON.stringify(value));
|
|
226
|
+
}
|
|
227
|
+
// Otherwise, if it's an array, add each element.
|
|
210
228
|
if (Array.isArray(value)) {
|
|
211
229
|
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
212
230
|
}
|
|
213
231
|
else if (value instanceof Date) {
|
|
214
232
|
if (key != null) {
|
|
215
|
-
httpParams = httpParams.append(key, value.toISOString()
|
|
233
|
+
httpParams = httpParams.append(key, value.toISOString());
|
|
216
234
|
}
|
|
217
235
|
else {
|
|
218
236
|
throw Error("key may not be null if value is Date");
|
|
219
237
|
}
|
|
220
238
|
}
|
|
221
239
|
else {
|
|
222
|
-
Object.keys(value).forEach(k =>
|
|
240
|
+
Object.keys(value).forEach(k => {
|
|
241
|
+
const paramKey = key ? `${key}.${k}` : k;
|
|
242
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
|
|
243
|
+
});
|
|
223
244
|
}
|
|
245
|
+
return httpParams;
|
|
224
246
|
}
|
|
225
247
|
else if (key != null) {
|
|
226
|
-
|
|
248
|
+
return httpParams.append(key, value);
|
|
227
249
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
250
|
+
throw Error("key may not be null if value is not object or array");
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* VRt.Routing [RT]
|
|
256
|
+
*
|
|
257
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
258
|
+
* Contact: servicedesk@veeroute.com
|
|
259
|
+
*
|
|
260
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
261
|
+
* Do not edit the class manually.
|
|
262
|
+
*/
|
|
263
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
264
|
+
class MatrixService extends BaseService {
|
|
265
|
+
httpClient;
|
|
266
|
+
constructor(httpClient, basePath, configuration) {
|
|
267
|
+
super(basePath, configuration);
|
|
268
|
+
this.httpClient = httpClient;
|
|
232
269
|
}
|
|
233
270
|
runMatrixCalculation(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
234
271
|
const matrixTaskRouting = requestParameters?.matrixTaskRouting;
|
|
@@ -236,31 +273,16 @@ class MatrixService {
|
|
|
236
273
|
throw new Error('Required parameter matrixTaskRouting was null or undefined when calling runMatrixCalculation.');
|
|
237
274
|
}
|
|
238
275
|
let localVarHeaders = this.defaultHeaders;
|
|
239
|
-
let localVarCredential;
|
|
240
276
|
// authentication (ApiKeyAuth) required
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
246
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
247
|
-
// to determine the Accept header
|
|
248
|
-
const httpHeaderAccepts = [
|
|
249
|
-
'application/json'
|
|
250
|
-
];
|
|
251
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
252
|
-
}
|
|
277
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
278
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
279
|
+
'application/json'
|
|
280
|
+
]);
|
|
253
281
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
254
282
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
255
283
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
localVarHttpContext = new HttpContext();
|
|
259
|
-
}
|
|
260
|
-
let localVarTransferCache = options && options.transferCache;
|
|
261
|
-
if (localVarTransferCache === undefined) {
|
|
262
|
-
localVarTransferCache = true;
|
|
263
|
-
}
|
|
284
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
285
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
264
286
|
// to determine the Content-Type header
|
|
265
287
|
const consumes = [
|
|
266
288
|
'application/json'
|
|
@@ -282,11 +304,12 @@ class MatrixService {
|
|
|
282
304
|
}
|
|
283
305
|
}
|
|
284
306
|
let localVarPath = `/routing/matrix/calculation`;
|
|
285
|
-
|
|
307
|
+
const { basePath, withCredentials } = this.configuration;
|
|
308
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
286
309
|
context: localVarHttpContext,
|
|
287
310
|
body: matrixTaskRouting,
|
|
288
311
|
responseType: responseType_,
|
|
289
|
-
withCredentials:
|
|
312
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
290
313
|
headers: localVarHeaders,
|
|
291
314
|
observe: observe,
|
|
292
315
|
transferCache: localVarTransferCache,
|
|
@@ -313,73 +336,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
313
336
|
/**
|
|
314
337
|
* VRt.Routing [RT]
|
|
315
338
|
*
|
|
316
|
-
* The version of the OpenAPI document: 7.
|
|
339
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
317
340
|
* Contact: servicedesk@veeroute.com
|
|
318
341
|
*
|
|
319
342
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
320
343
|
* Do not edit the class manually.
|
|
321
344
|
*/
|
|
322
345
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
323
|
-
class RouteService {
|
|
346
|
+
class RouteService extends BaseService {
|
|
324
347
|
httpClient;
|
|
325
|
-
basePath = 'https://api.edge7.veeroute.cloud';
|
|
326
|
-
defaultHeaders = new HttpHeaders();
|
|
327
|
-
configuration = new Configuration();
|
|
328
|
-
encoder;
|
|
329
348
|
constructor(httpClient, basePath, configuration) {
|
|
349
|
+
super(basePath, configuration);
|
|
330
350
|
this.httpClient = httpClient;
|
|
331
|
-
if (configuration) {
|
|
332
|
-
this.configuration = configuration;
|
|
333
|
-
}
|
|
334
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
335
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
336
|
-
if (firstBasePath != undefined) {
|
|
337
|
-
basePath = firstBasePath;
|
|
338
|
-
}
|
|
339
|
-
if (typeof basePath !== 'string') {
|
|
340
|
-
basePath = this.basePath;
|
|
341
|
-
}
|
|
342
|
-
this.configuration.basePath = basePath;
|
|
343
|
-
}
|
|
344
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
345
|
-
}
|
|
346
|
-
// @ts-ignore
|
|
347
|
-
addToHttpParams(httpParams, value, key) {
|
|
348
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
349
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
353
|
-
}
|
|
354
|
-
return httpParams;
|
|
355
|
-
}
|
|
356
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
357
|
-
if (value == null) {
|
|
358
|
-
return httpParams;
|
|
359
|
-
}
|
|
360
|
-
if (typeof value === "object") {
|
|
361
|
-
if (Array.isArray(value)) {
|
|
362
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
363
|
-
}
|
|
364
|
-
else if (value instanceof Date) {
|
|
365
|
-
if (key != null) {
|
|
366
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
throw Error("key may not be null if value is Date");
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
else if (key != null) {
|
|
377
|
-
httpParams = httpParams.append(key, value);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
throw Error("key may not be null if value is not object or array");
|
|
381
|
-
}
|
|
382
|
-
return httpParams;
|
|
383
351
|
}
|
|
384
352
|
runRouteCalculation(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
385
353
|
const routeTaskRouting = requestParameters?.routeTaskRouting;
|
|
@@ -387,31 +355,16 @@ class RouteService {
|
|
|
387
355
|
throw new Error('Required parameter routeTaskRouting was null or undefined when calling runRouteCalculation.');
|
|
388
356
|
}
|
|
389
357
|
let localVarHeaders = this.defaultHeaders;
|
|
390
|
-
let localVarCredential;
|
|
391
358
|
// authentication (ApiKeyAuth) required
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
397
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
398
|
-
// to determine the Accept header
|
|
399
|
-
const httpHeaderAccepts = [
|
|
400
|
-
'application/json'
|
|
401
|
-
];
|
|
402
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
403
|
-
}
|
|
359
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
360
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
361
|
+
'application/json'
|
|
362
|
+
]);
|
|
404
363
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
405
364
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
406
365
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
localVarHttpContext = new HttpContext();
|
|
410
|
-
}
|
|
411
|
-
let localVarTransferCache = options && options.transferCache;
|
|
412
|
-
if (localVarTransferCache === undefined) {
|
|
413
|
-
localVarTransferCache = true;
|
|
414
|
-
}
|
|
366
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
367
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
415
368
|
// to determine the Content-Type header
|
|
416
369
|
const consumes = [
|
|
417
370
|
'application/json'
|
|
@@ -433,11 +386,12 @@ class RouteService {
|
|
|
433
386
|
}
|
|
434
387
|
}
|
|
435
388
|
let localVarPath = `/routing/route/calculation`;
|
|
436
|
-
|
|
389
|
+
const { basePath, withCredentials } = this.configuration;
|
|
390
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
437
391
|
context: localVarHttpContext,
|
|
438
392
|
body: routeTaskRouting,
|
|
439
393
|
responseType: responseType_,
|
|
440
|
-
withCredentials:
|
|
394
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
441
395
|
headers: localVarHeaders,
|
|
442
396
|
observe: observe,
|
|
443
397
|
transferCache: localVarTransferCache,
|
|
@@ -464,95 +418,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
464
418
|
/**
|
|
465
419
|
* VRt.Routing [RT]
|
|
466
420
|
*
|
|
467
|
-
* The version of the OpenAPI document: 7.
|
|
421
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
468
422
|
* Contact: servicedesk@veeroute.com
|
|
469
423
|
*
|
|
470
424
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
471
425
|
* Do not edit the class manually.
|
|
472
426
|
*/
|
|
473
427
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
474
|
-
class SystemService {
|
|
428
|
+
class SystemService extends BaseService {
|
|
475
429
|
httpClient;
|
|
476
|
-
basePath = 'https://api.edge7.veeroute.cloud';
|
|
477
|
-
defaultHeaders = new HttpHeaders();
|
|
478
|
-
configuration = new Configuration();
|
|
479
|
-
encoder;
|
|
480
430
|
constructor(httpClient, basePath, configuration) {
|
|
431
|
+
super(basePath, configuration);
|
|
481
432
|
this.httpClient = httpClient;
|
|
482
|
-
if (configuration) {
|
|
483
|
-
this.configuration = configuration;
|
|
484
|
-
}
|
|
485
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
486
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
487
|
-
if (firstBasePath != undefined) {
|
|
488
|
-
basePath = firstBasePath;
|
|
489
|
-
}
|
|
490
|
-
if (typeof basePath !== 'string') {
|
|
491
|
-
basePath = this.basePath;
|
|
492
|
-
}
|
|
493
|
-
this.configuration.basePath = basePath;
|
|
494
|
-
}
|
|
495
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
496
|
-
}
|
|
497
|
-
// @ts-ignore
|
|
498
|
-
addToHttpParams(httpParams, value, key) {
|
|
499
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
500
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
504
|
-
}
|
|
505
|
-
return httpParams;
|
|
506
|
-
}
|
|
507
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
508
|
-
if (value == null) {
|
|
509
|
-
return httpParams;
|
|
510
|
-
}
|
|
511
|
-
if (typeof value === "object") {
|
|
512
|
-
if (Array.isArray(value)) {
|
|
513
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
514
|
-
}
|
|
515
|
-
else if (value instanceof Date) {
|
|
516
|
-
if (key != null) {
|
|
517
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
throw Error("key may not be null if value is Date");
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
else {
|
|
524
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
else if (key != null) {
|
|
528
|
-
httpParams = httpParams.append(key, value);
|
|
529
|
-
}
|
|
530
|
-
else {
|
|
531
|
-
throw Error("key may not be null if value is not object or array");
|
|
532
|
-
}
|
|
533
|
-
return httpParams;
|
|
534
433
|
}
|
|
535
434
|
check(observe = 'body', reportProgress = false, options) {
|
|
536
435
|
let localVarHeaders = this.defaultHeaders;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
const httpHeaderAccepts = [
|
|
541
|
-
'application/json'
|
|
542
|
-
];
|
|
543
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
544
|
-
}
|
|
436
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
437
|
+
'application/json'
|
|
438
|
+
]);
|
|
545
439
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
546
440
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
547
441
|
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
localVarHttpContext = new HttpContext();
|
|
551
|
-
}
|
|
552
|
-
let localVarTransferCache = options && options.transferCache;
|
|
553
|
-
if (localVarTransferCache === undefined) {
|
|
554
|
-
localVarTransferCache = true;
|
|
555
|
-
}
|
|
442
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
443
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
556
444
|
let responseType_ = 'json';
|
|
557
445
|
if (localVarHttpHeaderAcceptSelected) {
|
|
558
446
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -566,10 +454,11 @@ class SystemService {
|
|
|
566
454
|
}
|
|
567
455
|
}
|
|
568
456
|
let localVarPath = `/routing/system/check`;
|
|
569
|
-
|
|
457
|
+
const { basePath, withCredentials } = this.configuration;
|
|
458
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
570
459
|
context: localVarHttpContext,
|
|
571
460
|
responseType: responseType_,
|
|
572
|
-
withCredentials:
|
|
461
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
573
462
|
headers: localVarHeaders,
|
|
574
463
|
observe: observe,
|
|
575
464
|
transferCache: localVarTransferCache,
|
|
@@ -582,27 +471,16 @@ class SystemService {
|
|
|
582
471
|
throw new Error('Required parameter filename was null or undefined when calling file.');
|
|
583
472
|
}
|
|
584
473
|
let localVarHeaders = this.defaultHeaders;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
'text/plain',
|
|
591
|
-
'application/json'
|
|
592
|
-
];
|
|
593
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
594
|
-
}
|
|
474
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
475
|
+
'text/html',
|
|
476
|
+
'text/plain',
|
|
477
|
+
'application/json'
|
|
478
|
+
]);
|
|
595
479
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
596
480
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
597
481
|
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
localVarHttpContext = new HttpContext();
|
|
601
|
-
}
|
|
602
|
-
let localVarTransferCache = options && options.transferCache;
|
|
603
|
-
if (localVarTransferCache === undefined) {
|
|
604
|
-
localVarTransferCache = true;
|
|
605
|
-
}
|
|
482
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
483
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
606
484
|
let responseType_ = 'json';
|
|
607
485
|
if (localVarHttpHeaderAcceptSelected) {
|
|
608
486
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -616,10 +494,11 @@ class SystemService {
|
|
|
616
494
|
}
|
|
617
495
|
}
|
|
618
496
|
let localVarPath = `/routing/file/${this.configuration.encodeParam({ name: "filename", value: filename, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
619
|
-
|
|
497
|
+
const { basePath, withCredentials } = this.configuration;
|
|
498
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
620
499
|
context: localVarHttpContext,
|
|
621
500
|
responseType: responseType_,
|
|
622
|
-
withCredentials:
|
|
501
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
623
502
|
headers: localVarHeaders,
|
|
624
503
|
observe: observe,
|
|
625
504
|
transferCache: localVarTransferCache,
|
|
@@ -628,25 +507,14 @@ class SystemService {
|
|
|
628
507
|
}
|
|
629
508
|
version(observe = 'body', reportProgress = false, options) {
|
|
630
509
|
let localVarHeaders = this.defaultHeaders;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
const httpHeaderAccepts = [
|
|
635
|
-
'application/json'
|
|
636
|
-
];
|
|
637
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
638
|
-
}
|
|
510
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
511
|
+
'application/json'
|
|
512
|
+
]);
|
|
639
513
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
640
514
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
641
515
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
localVarHttpContext = new HttpContext();
|
|
645
|
-
}
|
|
646
|
-
let localVarTransferCache = options && options.transferCache;
|
|
647
|
-
if (localVarTransferCache === undefined) {
|
|
648
|
-
localVarTransferCache = true;
|
|
649
|
-
}
|
|
516
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
517
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
650
518
|
let responseType_ = 'json';
|
|
651
519
|
if (localVarHttpHeaderAcceptSelected) {
|
|
652
520
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -660,10 +528,11 @@ class SystemService {
|
|
|
660
528
|
}
|
|
661
529
|
}
|
|
662
530
|
let localVarPath = `/routing/system/version`;
|
|
663
|
-
|
|
531
|
+
const { basePath, withCredentials } = this.configuration;
|
|
532
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
664
533
|
context: localVarHttpContext,
|
|
665
534
|
responseType: responseType_,
|
|
666
|
-
withCredentials:
|
|
535
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
667
536
|
headers: localVarHeaders,
|
|
668
537
|
observe: observe,
|
|
669
538
|
transferCache: localVarTransferCache,
|
|
@@ -692,7 +561,7 @@ const APIS = [MatrixService, RouteService, SystemService];
|
|
|
692
561
|
/**
|
|
693
562
|
* VRt.Routing [RT]
|
|
694
563
|
*
|
|
695
|
-
* The version of the OpenAPI document: 7.
|
|
564
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
696
565
|
* Contact: servicedesk@veeroute.com
|
|
697
566
|
*
|
|
698
567
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -702,7 +571,7 @@ const APIS = [MatrixService, RouteService, SystemService];
|
|
|
702
571
|
/**
|
|
703
572
|
* VRt.Routing [RT]
|
|
704
573
|
*
|
|
705
|
-
* The version of the OpenAPI document: 7.
|
|
574
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
706
575
|
* Contact: servicedesk@veeroute.com
|
|
707
576
|
*
|
|
708
577
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -712,7 +581,7 @@ const APIS = [MatrixService, RouteService, SystemService];
|
|
|
712
581
|
/**
|
|
713
582
|
* VRt.Routing [RT]
|
|
714
583
|
*
|
|
715
|
-
* The version of the OpenAPI document: 7.
|
|
584
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
716
585
|
* Contact: servicedesk@veeroute.com
|
|
717
586
|
*
|
|
718
587
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -722,7 +591,7 @@ const APIS = [MatrixService, RouteService, SystemService];
|
|
|
722
591
|
/**
|
|
723
592
|
* VRt.Routing [RT]
|
|
724
593
|
*
|
|
725
|
-
* The version of the OpenAPI document: 7.
|
|
594
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
726
595
|
* Contact: servicedesk@veeroute.com
|
|
727
596
|
*
|
|
728
597
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -732,7 +601,7 @@ const APIS = [MatrixService, RouteService, SystemService];
|
|
|
732
601
|
/**
|
|
733
602
|
* VRt.Routing [RT]
|
|
734
603
|
*
|
|
735
|
-
* The version of the OpenAPI document: 7.
|
|
604
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
736
605
|
* Contact: servicedesk@veeroute.com
|
|
737
606
|
*
|
|
738
607
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -756,7 +625,7 @@ var ServiceRouting;
|
|
|
756
625
|
/**
|
|
757
626
|
* VRt.Routing [RT]
|
|
758
627
|
*
|
|
759
|
-
* The version of the OpenAPI document: 7.
|
|
628
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
760
629
|
* Contact: servicedesk@veeroute.com
|
|
761
630
|
*
|
|
762
631
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -766,7 +635,7 @@ var ServiceRouting;
|
|
|
766
635
|
/**
|
|
767
636
|
* VRt.Routing [RT]
|
|
768
637
|
*
|
|
769
|
-
* The version of the OpenAPI document: 7.
|
|
638
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
770
639
|
* Contact: servicedesk@veeroute.com
|
|
771
640
|
*
|
|
772
641
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -776,7 +645,7 @@ var ServiceRouting;
|
|
|
776
645
|
/**
|
|
777
646
|
* VRt.Routing [RT]
|
|
778
647
|
*
|
|
779
|
-
* The version of the OpenAPI document: 7.
|
|
648
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
780
649
|
* Contact: servicedesk@veeroute.com
|
|
781
650
|
*
|
|
782
651
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -808,7 +677,7 @@ var TransportTypeRouting;
|
|
|
808
677
|
/**
|
|
809
678
|
* VRt.Routing [RT]
|
|
810
679
|
*
|
|
811
|
-
* The version of the OpenAPI document: 7.
|
|
680
|
+
* The version of the OpenAPI document: 7.23.2924
|
|
812
681
|
* Contact: servicedesk@veeroute.com
|
|
813
682
|
*
|
|
814
683
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -851,9 +720,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
851
720
|
type: Optional
|
|
852
721
|
}] }] });
|
|
853
722
|
|
|
723
|
+
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
|
724
|
+
function provideApi(configOrBasePath) {
|
|
725
|
+
return makeEnvironmentProviders([
|
|
726
|
+
typeof configOrBasePath === "string"
|
|
727
|
+
? { provide: BASE_PATH, useValue: configOrBasePath }
|
|
728
|
+
: {
|
|
729
|
+
provide: Configuration,
|
|
730
|
+
useValue: new Configuration({ ...configOrBasePath }),
|
|
731
|
+
},
|
|
732
|
+
]);
|
|
733
|
+
}
|
|
734
|
+
|
|
854
735
|
/**
|
|
855
736
|
* Generated bundle index. Do not edit.
|
|
856
737
|
*/
|
|
857
738
|
|
|
858
|
-
export { APIS, BASE_PATH, COLLECTION_FORMATS, Configuration, LssRoutingApiModule, MatrixService, RouteService, ServiceRouting, SystemService, TransportTypeRouting };
|
|
739
|
+
export { APIS, BASE_PATH, COLLECTION_FORMATS, Configuration, LssRoutingApiModule, MatrixService, RouteService, ServiceRouting, SystemService, TransportTypeRouting, provideApi };
|
|
859
740
|
//# sourceMappingURL=veeroute-lss-routing-angular.mjs.map
|