@veeroute/lss-agro-angular 7.21.2852 → 7.22.2904
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/planService.d.ts +4 -9
- package/api/planServiceInterface.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/planService.mjs +79 -249
- package/esm2022/api/planServiceInterface.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/bunker.mjs +1 -1
- package/esm2022/model/calculationAsyncResult.mjs +1 -1
- package/esm2022/model/calculationInfo.mjs +1 -1
- package/esm2022/model/calculationSettings.mjs +2 -2
- package/esm2022/model/calculationState.mjs +1 -1
- package/esm2022/model/calculationStatus.mjs +2 -2
- package/esm2022/model/capacityForecastElement.mjs +1 -1
- package/esm2022/model/chamber.mjs +1 -1
- package/esm2022/model/checkResult.mjs +2 -2
- package/esm2022/model/consumer.mjs +1 -1
- package/esm2022/model/contract.mjs +1 -1
- package/esm2022/model/contractType.mjs +2 -2
- package/esm2022/model/costForecastElement.mjs +1 -1
- package/esm2022/model/crop.mjs +1 -1
- package/esm2022/model/cropType.mjs +2 -2
- package/esm2022/model/custom400WithErrorsAndWarnings.mjs +1 -1
- package/esm2022/model/dateWindow.mjs +2 -2
- package/esm2022/model/dryer.mjs +1 -1
- package/esm2022/model/elevator.mjs +1 -1
- package/esm2022/model/entityError.mjs +1 -1
- package/esm2022/model/entityErrorType.mjs +2 -2
- package/esm2022/model/entityPath.mjs +1 -1
- package/esm2022/model/entityType.mjs +2 -2
- package/esm2022/model/entityWarning.mjs +1 -1
- package/esm2022/model/entityWarningType.mjs +2 -2
- package/esm2022/model/factory.mjs +1 -1
- package/esm2022/model/field.mjs +1 -1
- package/esm2022/model/gate.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/humidityForecastElement.mjs +1 -1
- package/esm2022/model/leftover.mjs +2 -2
- package/esm2022/model/manufacturingOperation.mjs +1 -1
- package/esm2022/model/market.mjs +1 -1
- package/esm2022/model/movementMatrixElement.mjs +2 -2
- package/esm2022/model/objectType.mjs +2 -2
- package/esm2022/model/operationMeasurements.mjs +2 -2
- package/esm2022/model/operationTarget.mjs +1 -1
- package/esm2022/model/operationType.mjs +2 -2
- package/esm2022/model/planResult.mjs +1 -1
- package/esm2022/model/planSettings.mjs +1 -1
- package/esm2022/model/planStatistics.mjs +2 -2
- package/esm2022/model/planTask.mjs +1 -1
- package/esm2022/model/priceForecastElement.mjs +1 -1
- package/esm2022/model/pricelist.mjs +1 -1
- package/esm2022/model/productivityForecastElement.mjs +1 -1
- package/esm2022/model/projectConfiguration.mjs +2 -2
- package/esm2022/model/projectSettings.mjs +1 -1
- package/esm2022/model/schemaError.mjs +2 -2
- package/esm2022/model/service.mjs +2 -2
- package/esm2022/model/silo.mjs +1 -1
- package/esm2022/model/stockForecastElement.mjs +1 -1
- package/esm2022/model/storage.mjs +1 -1
- package/esm2022/model/tracedata.mjs +1 -1
- package/esm2022/model/unplannedItems.mjs +2 -2
- package/esm2022/model/validateResult.mjs +1 -1
- package/esm2022/model/versionResult.mjs +2 -2
- package/esm2022/provide-api.mjs +15 -0
- package/fesm2022/veeroute-lss-agro-angular.mjs +226 -376
- package/fesm2022/veeroute-lss-agro-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/model/attribute.d.ts +1 -1
- package/model/bunker.d.ts +1 -1
- 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/capacityForecastElement.d.ts +1 -1
- package/model/chamber.d.ts +1 -1
- package/model/checkResult.d.ts +1 -1
- package/model/consumer.d.ts +1 -1
- package/model/contract.d.ts +1 -1
- package/model/contractType.d.ts +1 -1
- package/model/costForecastElement.d.ts +1 -1
- package/model/crop.d.ts +1 -1
- package/model/cropType.d.ts +1 -1
- package/model/custom400WithErrorsAndWarnings.d.ts +1 -1
- package/model/dateWindow.d.ts +1 -1
- package/model/dryer.d.ts +1 -1
- package/model/elevator.d.ts +4 -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/entityWarning.d.ts +1 -1
- package/model/entityWarningType.d.ts +1 -1
- package/model/factory.d.ts +4 -1
- package/model/field.d.ts +1 -1
- package/model/gate.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/humidityForecastElement.d.ts +1 -1
- package/model/leftover.d.ts +1 -1
- package/model/manufacturingOperation.d.ts +7 -1
- package/model/market.d.ts +1 -1
- package/model/movementMatrixElement.d.ts +1 -1
- package/model/objectType.d.ts +1 -1
- package/model/operationMeasurements.d.ts +1 -1
- package/model/operationTarget.d.ts +1 -1
- package/model/operationType.d.ts +1 -1
- package/model/planResult.d.ts +1 -1
- package/model/planSettings.d.ts +1 -1
- package/model/planStatistics.d.ts +1 -1
- package/model/planTask.d.ts +1 -1
- package/model/priceForecastElement.d.ts +1 -1
- package/model/pricelist.d.ts +1 -1
- package/model/productivityForecastElement.d.ts +1 -1
- package/model/projectConfiguration.d.ts +1 -1
- package/model/projectSettings.d.ts +1 -1
- package/model/schemaError.d.ts +1 -1
- package/model/service.d.ts +1 -1
- package/model/silo.d.ts +1 -1
- package/model/stockForecastElement.d.ts +1 -1
- package/model/storage.d.ts +1 -1
- package/model/tracedata.d.ts +1 -1
- package/model/unplannedItems.d.ts +1 -1
- package/model/validateResult.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, HttpParams } 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
|
-
this.encodeParam = configurationParameters.encodeParam;
|
|
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;
|
|
74
73
|
}
|
|
75
|
-
|
|
76
|
-
this.
|
|
74
|
+
if (accessToken !== undefined) {
|
|
75
|
+
this.accessToken = accessToken;
|
|
77
76
|
}
|
|
78
|
-
if (
|
|
79
|
-
this.
|
|
77
|
+
if (basePath !== undefined) {
|
|
78
|
+
this.basePath = basePath;
|
|
80
79
|
}
|
|
81
|
-
|
|
82
|
-
this.
|
|
80
|
+
if (withCredentials !== undefined) {
|
|
81
|
+
this.withCredentials = withCredentials;
|
|
83
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.Agro [AG]
|
|
164
180
|
*
|
|
165
|
-
* The version of the OpenAPI document: 7.
|
|
181
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
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 PlanService {
|
|
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 PlanService {
|
|
|
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
|
-
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
throw Error("key may not be null if value is not object or array");
|
|
248
|
+
return httpParams.append(key, value);
|
|
230
249
|
}
|
|
231
|
-
|
|
250
|
+
throw Error("key may not be null if value is not object or array");
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* VRt.Agro [AG]
|
|
256
|
+
*
|
|
257
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
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 PlanService extends BaseService {
|
|
265
|
+
httpClient;
|
|
266
|
+
constructor(httpClient, basePath, configuration) {
|
|
267
|
+
super(basePath, configuration);
|
|
268
|
+
this.httpClient = httpClient;
|
|
232
269
|
}
|
|
233
270
|
cancelPlanCalculation(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
234
271
|
const processCode = requestParameters?.processCode;
|
|
@@ -236,31 +273,16 @@ class PlanService {
|
|
|
236
273
|
throw new Error('Required parameter processCode was null or undefined when calling cancelPlanCalculation.');
|
|
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
|
let responseType_ = 'json';
|
|
265
287
|
if (localVarHttpHeaderAcceptSelected) {
|
|
266
288
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -274,10 +296,11 @@ class PlanService {
|
|
|
274
296
|
}
|
|
275
297
|
}
|
|
276
298
|
let localVarPath = `/agro/plan/calculation-async/${this.configuration.encodeParam({ name: "processCode", value: processCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
277
|
-
|
|
299
|
+
const { basePath, withCredentials } = this.configuration;
|
|
300
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
278
301
|
context: localVarHttpContext,
|
|
279
302
|
responseType: responseType_,
|
|
280
|
-
withCredentials:
|
|
303
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
281
304
|
headers: localVarHeaders,
|
|
282
305
|
observe: observe,
|
|
283
306
|
transferCache: localVarTransferCache,
|
|
@@ -290,31 +313,16 @@ class PlanService {
|
|
|
290
313
|
throw new Error('Required parameter processCode was null or undefined when calling deletePlanResult.');
|
|
291
314
|
}
|
|
292
315
|
let localVarHeaders = this.defaultHeaders;
|
|
293
|
-
let localVarCredential;
|
|
294
316
|
// authentication (ApiKeyAuth) required
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
300
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
301
|
-
// to determine the Accept header
|
|
302
|
-
const httpHeaderAccepts = [
|
|
303
|
-
'application/json'
|
|
304
|
-
];
|
|
305
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
306
|
-
}
|
|
317
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
318
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
319
|
+
'application/json'
|
|
320
|
+
]);
|
|
307
321
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
308
322
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
309
323
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
localVarHttpContext = new HttpContext();
|
|
313
|
-
}
|
|
314
|
-
let localVarTransferCache = options && options.transferCache;
|
|
315
|
-
if (localVarTransferCache === undefined) {
|
|
316
|
-
localVarTransferCache = true;
|
|
317
|
-
}
|
|
324
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
325
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
318
326
|
let responseType_ = 'json';
|
|
319
327
|
if (localVarHttpHeaderAcceptSelected) {
|
|
320
328
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -328,10 +336,11 @@ class PlanService {
|
|
|
328
336
|
}
|
|
329
337
|
}
|
|
330
338
|
let localVarPath = `/agro/plan/result/${this.configuration.encodeParam({ name: "processCode", value: processCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
331
|
-
|
|
339
|
+
const { basePath, withCredentials } = this.configuration;
|
|
340
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
332
341
|
context: localVarHttpContext,
|
|
333
342
|
responseType: responseType_,
|
|
334
|
-
withCredentials:
|
|
343
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
335
344
|
headers: localVarHeaders,
|
|
336
345
|
observe: observe,
|
|
337
346
|
transferCache: localVarTransferCache,
|
|
@@ -344,31 +353,16 @@ class PlanService {
|
|
|
344
353
|
throw new Error('Required parameter processCode was null or undefined when calling readPlanResult.');
|
|
345
354
|
}
|
|
346
355
|
let localVarHeaders = this.defaultHeaders;
|
|
347
|
-
let localVarCredential;
|
|
348
356
|
// authentication (ApiKeyAuth) required
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
354
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
355
|
-
// to determine the Accept header
|
|
356
|
-
const httpHeaderAccepts = [
|
|
357
|
-
'application/json'
|
|
358
|
-
];
|
|
359
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
360
|
-
}
|
|
357
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
358
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
359
|
+
'application/json'
|
|
360
|
+
]);
|
|
361
361
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
362
362
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
363
363
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
localVarHttpContext = new HttpContext();
|
|
367
|
-
}
|
|
368
|
-
let localVarTransferCache = options && options.transferCache;
|
|
369
|
-
if (localVarTransferCache === undefined) {
|
|
370
|
-
localVarTransferCache = true;
|
|
371
|
-
}
|
|
364
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
365
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
372
366
|
let responseType_ = 'json';
|
|
373
367
|
if (localVarHttpHeaderAcceptSelected) {
|
|
374
368
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -382,10 +376,11 @@ class PlanService {
|
|
|
382
376
|
}
|
|
383
377
|
}
|
|
384
378
|
let localVarPath = `/agro/plan/result/${this.configuration.encodeParam({ name: "processCode", value: processCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
385
|
-
|
|
379
|
+
const { basePath, withCredentials } = this.configuration;
|
|
380
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
386
381
|
context: localVarHttpContext,
|
|
387
382
|
responseType: responseType_,
|
|
388
|
-
withCredentials:
|
|
383
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
389
384
|
headers: localVarHeaders,
|
|
390
385
|
observe: observe,
|
|
391
386
|
transferCache: localVarTransferCache,
|
|
@@ -398,31 +393,16 @@ class PlanService {
|
|
|
398
393
|
throw new Error('Required parameter processCode was null or undefined when calling readPlanState.');
|
|
399
394
|
}
|
|
400
395
|
let localVarHeaders = this.defaultHeaders;
|
|
401
|
-
let localVarCredential;
|
|
402
396
|
// authentication (ApiKeyAuth) required
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
408
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
409
|
-
// to determine the Accept header
|
|
410
|
-
const httpHeaderAccepts = [
|
|
411
|
-
'application/json'
|
|
412
|
-
];
|
|
413
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
414
|
-
}
|
|
397
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
398
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
399
|
+
'application/json'
|
|
400
|
+
]);
|
|
415
401
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
416
402
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
417
403
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
localVarHttpContext = new HttpContext();
|
|
421
|
-
}
|
|
422
|
-
let localVarTransferCache = options && options.transferCache;
|
|
423
|
-
if (localVarTransferCache === undefined) {
|
|
424
|
-
localVarTransferCache = true;
|
|
425
|
-
}
|
|
404
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
405
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
426
406
|
let responseType_ = 'json';
|
|
427
407
|
if (localVarHttpHeaderAcceptSelected) {
|
|
428
408
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -436,10 +416,11 @@ class PlanService {
|
|
|
436
416
|
}
|
|
437
417
|
}
|
|
438
418
|
let localVarPath = `/agro/plan/state/${this.configuration.encodeParam({ name: "processCode", value: processCode, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
439
|
-
|
|
419
|
+
const { basePath, withCredentials } = this.configuration;
|
|
420
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
440
421
|
context: localVarHttpContext,
|
|
441
422
|
responseType: responseType_,
|
|
442
|
-
withCredentials:
|
|
423
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
443
424
|
headers: localVarHeaders,
|
|
444
425
|
observe: observe,
|
|
445
426
|
transferCache: localVarTransferCache,
|
|
@@ -452,31 +433,16 @@ class PlanService {
|
|
|
452
433
|
throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanCalculation.');
|
|
453
434
|
}
|
|
454
435
|
let localVarHeaders = this.defaultHeaders;
|
|
455
|
-
let localVarCredential;
|
|
456
436
|
// authentication (ApiKeyAuth) required
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
462
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
463
|
-
// to determine the Accept header
|
|
464
|
-
const httpHeaderAccepts = [
|
|
465
|
-
'application/json'
|
|
466
|
-
];
|
|
467
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
468
|
-
}
|
|
437
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
438
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
439
|
+
'application/json'
|
|
440
|
+
]);
|
|
469
441
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
470
442
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
471
443
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
localVarHttpContext = new HttpContext();
|
|
475
|
-
}
|
|
476
|
-
let localVarTransferCache = options && options.transferCache;
|
|
477
|
-
if (localVarTransferCache === undefined) {
|
|
478
|
-
localVarTransferCache = true;
|
|
479
|
-
}
|
|
444
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
445
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
480
446
|
// to determine the Content-Type header
|
|
481
447
|
const consumes = [
|
|
482
448
|
'application/json'
|
|
@@ -498,11 +464,12 @@ class PlanService {
|
|
|
498
464
|
}
|
|
499
465
|
}
|
|
500
466
|
let localVarPath = `/agro/plan/calculation`;
|
|
501
|
-
|
|
467
|
+
const { basePath, withCredentials } = this.configuration;
|
|
468
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
502
469
|
context: localVarHttpContext,
|
|
503
470
|
body: planTaskAgro,
|
|
504
471
|
responseType: responseType_,
|
|
505
|
-
withCredentials:
|
|
472
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
506
473
|
headers: localVarHeaders,
|
|
507
474
|
observe: observe,
|
|
508
475
|
transferCache: localVarTransferCache,
|
|
@@ -515,31 +482,16 @@ class PlanService {
|
|
|
515
482
|
throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanCalculationAsync.');
|
|
516
483
|
}
|
|
517
484
|
let localVarHeaders = this.defaultHeaders;
|
|
518
|
-
let localVarCredential;
|
|
519
485
|
// authentication (ApiKeyAuth) required
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
525
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
526
|
-
// to determine the Accept header
|
|
527
|
-
const httpHeaderAccepts = [
|
|
528
|
-
'application/json'
|
|
529
|
-
];
|
|
530
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
531
|
-
}
|
|
486
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
487
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
488
|
+
'application/json'
|
|
489
|
+
]);
|
|
532
490
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
533
491
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
534
492
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
localVarHttpContext = new HttpContext();
|
|
538
|
-
}
|
|
539
|
-
let localVarTransferCache = options && options.transferCache;
|
|
540
|
-
if (localVarTransferCache === undefined) {
|
|
541
|
-
localVarTransferCache = true;
|
|
542
|
-
}
|
|
493
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
494
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
543
495
|
// to determine the Content-Type header
|
|
544
496
|
const consumes = [
|
|
545
497
|
'application/json'
|
|
@@ -561,11 +513,12 @@ class PlanService {
|
|
|
561
513
|
}
|
|
562
514
|
}
|
|
563
515
|
let localVarPath = `/agro/plan/calculation-async`;
|
|
564
|
-
|
|
516
|
+
const { basePath, withCredentials } = this.configuration;
|
|
517
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
565
518
|
context: localVarHttpContext,
|
|
566
519
|
body: planTaskAgro,
|
|
567
520
|
responseType: responseType_,
|
|
568
|
-
withCredentials:
|
|
521
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
569
522
|
headers: localVarHeaders,
|
|
570
523
|
observe: observe,
|
|
571
524
|
transferCache: localVarTransferCache,
|
|
@@ -583,35 +536,18 @@ class PlanService {
|
|
|
583
536
|
}
|
|
584
537
|
const clipStrategy = requestParameters?.clipStrategy;
|
|
585
538
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
586
|
-
|
|
587
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, clipStrategy, 'clip_strategy');
|
|
588
|
-
}
|
|
539
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, clipStrategy, 'clip_strategy');
|
|
589
540
|
let localVarHeaders = this.defaultHeaders;
|
|
590
|
-
let localVarCredential;
|
|
591
541
|
// authentication (ApiKeyAuth) required
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
597
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
598
|
-
// to determine the Accept header
|
|
599
|
-
const httpHeaderAccepts = [
|
|
600
|
-
'application/json'
|
|
601
|
-
];
|
|
602
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
603
|
-
}
|
|
542
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
543
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
544
|
+
'application/json'
|
|
545
|
+
]);
|
|
604
546
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
605
547
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
606
548
|
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
localVarHttpContext = new HttpContext();
|
|
610
|
-
}
|
|
611
|
-
let localVarTransferCache = options && options.transferCache;
|
|
612
|
-
if (localVarTransferCache === undefined) {
|
|
613
|
-
localVarTransferCache = true;
|
|
614
|
-
}
|
|
549
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
550
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
615
551
|
// to determine the Content-Type header
|
|
616
552
|
const consumes = [
|
|
617
553
|
'application/json'
|
|
@@ -633,12 +569,13 @@ class PlanService {
|
|
|
633
569
|
}
|
|
634
570
|
}
|
|
635
571
|
let localVarPath = `/agro/plan/clip/${this.configuration.encodeParam({ name: "clipKey", value: clipKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
636
|
-
|
|
572
|
+
const { basePath, withCredentials } = this.configuration;
|
|
573
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
637
574
|
context: localVarHttpContext,
|
|
638
575
|
body: planTaskAgro,
|
|
639
576
|
params: localVarQueryParameters,
|
|
640
577
|
responseType: responseType_,
|
|
641
|
-
withCredentials:
|
|
578
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
642
579
|
headers: localVarHeaders,
|
|
643
580
|
observe: observe,
|
|
644
581
|
transferCache: localVarTransferCache,
|
|
@@ -651,31 +588,16 @@ class PlanService {
|
|
|
651
588
|
throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanValidation.');
|
|
652
589
|
}
|
|
653
590
|
let localVarHeaders = this.defaultHeaders;
|
|
654
|
-
let localVarCredential;
|
|
655
591
|
// authentication (ApiKeyAuth) required
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
661
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
662
|
-
// to determine the Accept header
|
|
663
|
-
const httpHeaderAccepts = [
|
|
664
|
-
'application/json'
|
|
665
|
-
];
|
|
666
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
667
|
-
}
|
|
592
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
593
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
594
|
+
'application/json'
|
|
595
|
+
]);
|
|
668
596
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
669
597
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
670
598
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
localVarHttpContext = new HttpContext();
|
|
674
|
-
}
|
|
675
|
-
let localVarTransferCache = options && options.transferCache;
|
|
676
|
-
if (localVarTransferCache === undefined) {
|
|
677
|
-
localVarTransferCache = true;
|
|
678
|
-
}
|
|
599
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
600
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
679
601
|
// to determine the Content-Type header
|
|
680
602
|
const consumes = [
|
|
681
603
|
'application/json'
|
|
@@ -697,11 +619,12 @@ class PlanService {
|
|
|
697
619
|
}
|
|
698
620
|
}
|
|
699
621
|
let localVarPath = `/agro/plan/validation`;
|
|
700
|
-
|
|
622
|
+
const { basePath, withCredentials } = this.configuration;
|
|
623
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
701
624
|
context: localVarHttpContext,
|
|
702
625
|
body: planTaskAgro,
|
|
703
626
|
responseType: responseType_,
|
|
704
|
-
withCredentials:
|
|
627
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
705
628
|
headers: localVarHeaders,
|
|
706
629
|
observe: observe,
|
|
707
630
|
transferCache: localVarTransferCache,
|
|
@@ -728,95 +651,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
728
651
|
/**
|
|
729
652
|
* VRt.Agro [AG]
|
|
730
653
|
*
|
|
731
|
-
* The version of the OpenAPI document: 7.
|
|
654
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
732
655
|
* Contact: servicedesk@veeroute.com
|
|
733
656
|
*
|
|
734
657
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
735
658
|
* Do not edit the class manually.
|
|
736
659
|
*/
|
|
737
660
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
738
|
-
class SystemService {
|
|
661
|
+
class SystemService extends BaseService {
|
|
739
662
|
httpClient;
|
|
740
|
-
basePath = 'https://api.edge7.veeroute.cloud';
|
|
741
|
-
defaultHeaders = new HttpHeaders();
|
|
742
|
-
configuration = new Configuration();
|
|
743
|
-
encoder;
|
|
744
663
|
constructor(httpClient, basePath, configuration) {
|
|
664
|
+
super(basePath, configuration);
|
|
745
665
|
this.httpClient = httpClient;
|
|
746
|
-
if (configuration) {
|
|
747
|
-
this.configuration = configuration;
|
|
748
|
-
}
|
|
749
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
750
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
751
|
-
if (firstBasePath != undefined) {
|
|
752
|
-
basePath = firstBasePath;
|
|
753
|
-
}
|
|
754
|
-
if (typeof basePath !== 'string') {
|
|
755
|
-
basePath = this.basePath;
|
|
756
|
-
}
|
|
757
|
-
this.configuration.basePath = basePath;
|
|
758
|
-
}
|
|
759
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
760
|
-
}
|
|
761
|
-
// @ts-ignore
|
|
762
|
-
addToHttpParams(httpParams, value, key) {
|
|
763
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
764
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
768
|
-
}
|
|
769
|
-
return httpParams;
|
|
770
|
-
}
|
|
771
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
772
|
-
if (value == null) {
|
|
773
|
-
return httpParams;
|
|
774
|
-
}
|
|
775
|
-
if (typeof value === "object") {
|
|
776
|
-
if (Array.isArray(value)) {
|
|
777
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
778
|
-
}
|
|
779
|
-
else if (value instanceof Date) {
|
|
780
|
-
if (key != null) {
|
|
781
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
throw Error("key may not be null if value is Date");
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
else if (key != null) {
|
|
792
|
-
httpParams = httpParams.append(key, value);
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
throw Error("key may not be null if value is not object or array");
|
|
796
|
-
}
|
|
797
|
-
return httpParams;
|
|
798
666
|
}
|
|
799
667
|
check(observe = 'body', reportProgress = false, options) {
|
|
800
668
|
let localVarHeaders = this.defaultHeaders;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
const httpHeaderAccepts = [
|
|
805
|
-
'application/json'
|
|
806
|
-
];
|
|
807
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
808
|
-
}
|
|
669
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
670
|
+
'application/json'
|
|
671
|
+
]);
|
|
809
672
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
810
673
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
811
674
|
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
localVarHttpContext = new HttpContext();
|
|
815
|
-
}
|
|
816
|
-
let localVarTransferCache = options && options.transferCache;
|
|
817
|
-
if (localVarTransferCache === undefined) {
|
|
818
|
-
localVarTransferCache = true;
|
|
819
|
-
}
|
|
675
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
676
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
820
677
|
let responseType_ = 'json';
|
|
821
678
|
if (localVarHttpHeaderAcceptSelected) {
|
|
822
679
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -830,10 +687,11 @@ class SystemService {
|
|
|
830
687
|
}
|
|
831
688
|
}
|
|
832
689
|
let localVarPath = `/agro/system/check`;
|
|
833
|
-
|
|
690
|
+
const { basePath, withCredentials } = this.configuration;
|
|
691
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
834
692
|
context: localVarHttpContext,
|
|
835
693
|
responseType: responseType_,
|
|
836
|
-
withCredentials:
|
|
694
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
837
695
|
headers: localVarHeaders,
|
|
838
696
|
observe: observe,
|
|
839
697
|
transferCache: localVarTransferCache,
|
|
@@ -846,27 +704,16 @@ class SystemService {
|
|
|
846
704
|
throw new Error('Required parameter filename was null or undefined when calling file.');
|
|
847
705
|
}
|
|
848
706
|
let localVarHeaders = this.defaultHeaders;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
'text/plain',
|
|
855
|
-
'application/json'
|
|
856
|
-
];
|
|
857
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
858
|
-
}
|
|
707
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
708
|
+
'text/html',
|
|
709
|
+
'text/plain',
|
|
710
|
+
'application/json'
|
|
711
|
+
]);
|
|
859
712
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
860
713
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
861
714
|
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
localVarHttpContext = new HttpContext();
|
|
865
|
-
}
|
|
866
|
-
let localVarTransferCache = options && options.transferCache;
|
|
867
|
-
if (localVarTransferCache === undefined) {
|
|
868
|
-
localVarTransferCache = true;
|
|
869
|
-
}
|
|
715
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
716
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
870
717
|
let responseType_ = 'json';
|
|
871
718
|
if (localVarHttpHeaderAcceptSelected) {
|
|
872
719
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -880,10 +727,11 @@ class SystemService {
|
|
|
880
727
|
}
|
|
881
728
|
}
|
|
882
729
|
let localVarPath = `/agro/file/${this.configuration.encodeParam({ name: "filename", value: filename, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
883
|
-
|
|
730
|
+
const { basePath, withCredentials } = this.configuration;
|
|
731
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
884
732
|
context: localVarHttpContext,
|
|
885
733
|
responseType: responseType_,
|
|
886
|
-
withCredentials:
|
|
734
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
887
735
|
headers: localVarHeaders,
|
|
888
736
|
observe: observe,
|
|
889
737
|
transferCache: localVarTransferCache,
|
|
@@ -892,25 +740,14 @@ class SystemService {
|
|
|
892
740
|
}
|
|
893
741
|
version(observe = 'body', reportProgress = false, options) {
|
|
894
742
|
let localVarHeaders = this.defaultHeaders;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
const httpHeaderAccepts = [
|
|
899
|
-
'application/json'
|
|
900
|
-
];
|
|
901
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
902
|
-
}
|
|
743
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
744
|
+
'application/json'
|
|
745
|
+
]);
|
|
903
746
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
904
747
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
905
748
|
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
localVarHttpContext = new HttpContext();
|
|
909
|
-
}
|
|
910
|
-
let localVarTransferCache = options && options.transferCache;
|
|
911
|
-
if (localVarTransferCache === undefined) {
|
|
912
|
-
localVarTransferCache = true;
|
|
913
|
-
}
|
|
749
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
750
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
914
751
|
let responseType_ = 'json';
|
|
915
752
|
if (localVarHttpHeaderAcceptSelected) {
|
|
916
753
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -924,10 +761,11 @@ class SystemService {
|
|
|
924
761
|
}
|
|
925
762
|
}
|
|
926
763
|
let localVarPath = `/agro/system/version`;
|
|
927
|
-
|
|
764
|
+
const { basePath, withCredentials } = this.configuration;
|
|
765
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
928
766
|
context: localVarHttpContext,
|
|
929
767
|
responseType: responseType_,
|
|
930
|
-
withCredentials:
|
|
768
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
931
769
|
headers: localVarHeaders,
|
|
932
770
|
observe: observe,
|
|
933
771
|
transferCache: localVarTransferCache,
|
|
@@ -956,7 +794,7 @@ const APIS = [PlanService, SystemService];
|
|
|
956
794
|
/**
|
|
957
795
|
* VRt.Agro [AG]
|
|
958
796
|
*
|
|
959
|
-
* The version of the OpenAPI document: 7.
|
|
797
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
960
798
|
* Contact: servicedesk@veeroute.com
|
|
961
799
|
*
|
|
962
800
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -966,7 +804,7 @@ const APIS = [PlanService, SystemService];
|
|
|
966
804
|
/**
|
|
967
805
|
* VRt.Agro [AG]
|
|
968
806
|
*
|
|
969
|
-
* The version of the OpenAPI document: 7.
|
|
807
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
970
808
|
* Contact: servicedesk@veeroute.com
|
|
971
809
|
*
|
|
972
810
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -976,7 +814,7 @@ const APIS = [PlanService, SystemService];
|
|
|
976
814
|
/**
|
|
977
815
|
* VRt.Agro [AG]
|
|
978
816
|
*
|
|
979
|
-
* The version of the OpenAPI document: 7.
|
|
817
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
980
818
|
* Contact: servicedesk@veeroute.com
|
|
981
819
|
*
|
|
982
820
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1000,7 +838,7 @@ var CalculationStatusAgro;
|
|
|
1000
838
|
/**
|
|
1001
839
|
* VRt.Agro [AG]
|
|
1002
840
|
*
|
|
1003
|
-
* The version of the OpenAPI document: 7.
|
|
841
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1004
842
|
* Contact: servicedesk@veeroute.com
|
|
1005
843
|
*
|
|
1006
844
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1010,7 +848,7 @@ var CalculationStatusAgro;
|
|
|
1010
848
|
/**
|
|
1011
849
|
* VRt.Agro [AG]
|
|
1012
850
|
*
|
|
1013
|
-
* The version of the OpenAPI document: 7.
|
|
851
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1014
852
|
* Contact: servicedesk@veeroute.com
|
|
1015
853
|
*
|
|
1016
854
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1030,7 +868,7 @@ var ContractTypeAgro;
|
|
|
1030
868
|
/**
|
|
1031
869
|
* VRt.Agro [AG]
|
|
1032
870
|
*
|
|
1033
|
-
* The version of the OpenAPI document: 7.
|
|
871
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1034
872
|
* Contact: servicedesk@veeroute.com
|
|
1035
873
|
*
|
|
1036
874
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1048,7 +886,7 @@ var CropTypeAgro;
|
|
|
1048
886
|
/**
|
|
1049
887
|
* VRt.Agro [AG]
|
|
1050
888
|
*
|
|
1051
|
-
* The version of the OpenAPI document: 7.
|
|
889
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1052
890
|
* Contact: servicedesk@veeroute.com
|
|
1053
891
|
*
|
|
1054
892
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1058,7 +896,7 @@ var CropTypeAgro;
|
|
|
1058
896
|
/**
|
|
1059
897
|
* VRt.Agro [AG]
|
|
1060
898
|
*
|
|
1061
|
-
* The version of the OpenAPI document: 7.
|
|
899
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1062
900
|
* Contact: servicedesk@veeroute.com
|
|
1063
901
|
*
|
|
1064
902
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1081,7 +919,7 @@ var EntityErrorTypeAgro;
|
|
|
1081
919
|
/**
|
|
1082
920
|
* VRt.Agro [AG]
|
|
1083
921
|
*
|
|
1084
|
-
* The version of the OpenAPI document: 7.
|
|
922
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1085
923
|
* Contact: servicedesk@veeroute.com
|
|
1086
924
|
*
|
|
1087
925
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1112,7 +950,7 @@ var EntityTypeAgro;
|
|
|
1112
950
|
/**
|
|
1113
951
|
* VRt.Agro [AG]
|
|
1114
952
|
*
|
|
1115
|
-
* The version of the OpenAPI document: 7.
|
|
953
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1116
954
|
* Contact: servicedesk@veeroute.com
|
|
1117
955
|
*
|
|
1118
956
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1131,7 +969,7 @@ var EntityWarningTypeAgro;
|
|
|
1131
969
|
/**
|
|
1132
970
|
* VRt.Agro [AG]
|
|
1133
971
|
*
|
|
1134
|
-
* The version of the OpenAPI document: 7.
|
|
972
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1135
973
|
* Contact: servicedesk@veeroute.com
|
|
1136
974
|
*
|
|
1137
975
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1141,7 +979,7 @@ var EntityWarningTypeAgro;
|
|
|
1141
979
|
/**
|
|
1142
980
|
* VRt.Agro [AG]
|
|
1143
981
|
*
|
|
1144
|
-
* The version of the OpenAPI document: 7.
|
|
982
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1145
983
|
* Contact: servicedesk@veeroute.com
|
|
1146
984
|
*
|
|
1147
985
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1151,7 +989,7 @@ var EntityWarningTypeAgro;
|
|
|
1151
989
|
/**
|
|
1152
990
|
* VRt.Agro [AG]
|
|
1153
991
|
*
|
|
1154
|
-
* The version of the OpenAPI document: 7.
|
|
992
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1155
993
|
* Contact: servicedesk@veeroute.com
|
|
1156
994
|
*
|
|
1157
995
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1171,7 +1009,7 @@ var ObjectTypeAgro;
|
|
|
1171
1009
|
/**
|
|
1172
1010
|
* VRt.Agro [AG]
|
|
1173
1011
|
*
|
|
1174
|
-
* The version of the OpenAPI document: 7.
|
|
1012
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1175
1013
|
* Contact: servicedesk@veeroute.com
|
|
1176
1014
|
*
|
|
1177
1015
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1181,7 +1019,7 @@ var ObjectTypeAgro;
|
|
|
1181
1019
|
/**
|
|
1182
1020
|
* VRt.Agro [AG]
|
|
1183
1021
|
*
|
|
1184
|
-
* The version of the OpenAPI document: 7.
|
|
1022
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1185
1023
|
* Contact: servicedesk@veeroute.com
|
|
1186
1024
|
*
|
|
1187
1025
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1206,7 +1044,7 @@ var OperationTypeAgro;
|
|
|
1206
1044
|
/**
|
|
1207
1045
|
* VRt.Agro [AG]
|
|
1208
1046
|
*
|
|
1209
|
-
* The version of the OpenAPI document: 7.
|
|
1047
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1210
1048
|
* Contact: servicedesk@veeroute.com
|
|
1211
1049
|
*
|
|
1212
1050
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1216,7 +1054,7 @@ var OperationTypeAgro;
|
|
|
1216
1054
|
/**
|
|
1217
1055
|
* VRt.Agro [AG]
|
|
1218
1056
|
*
|
|
1219
|
-
* The version of the OpenAPI document: 7.
|
|
1057
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1220
1058
|
* Contact: servicedesk@veeroute.com
|
|
1221
1059
|
*
|
|
1222
1060
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1234,7 +1072,7 @@ var ProjectConfigurationAgro;
|
|
|
1234
1072
|
/**
|
|
1235
1073
|
* VRt.Agro [AG]
|
|
1236
1074
|
*
|
|
1237
|
-
* The version of the OpenAPI document: 7.
|
|
1075
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1238
1076
|
* Contact: servicedesk@veeroute.com
|
|
1239
1077
|
*
|
|
1240
1078
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1244,7 +1082,7 @@ var ProjectConfigurationAgro;
|
|
|
1244
1082
|
/**
|
|
1245
1083
|
* VRt.Agro [AG]
|
|
1246
1084
|
*
|
|
1247
|
-
* The version of the OpenAPI document: 7.
|
|
1085
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1248
1086
|
* Contact: servicedesk@veeroute.com
|
|
1249
1087
|
*
|
|
1250
1088
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1268,7 +1106,7 @@ var ServiceAgro;
|
|
|
1268
1106
|
/**
|
|
1269
1107
|
* VRt.Agro [AG]
|
|
1270
1108
|
*
|
|
1271
|
-
* The version of the OpenAPI document: 7.
|
|
1109
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1272
1110
|
* Contact: servicedesk@veeroute.com
|
|
1273
1111
|
*
|
|
1274
1112
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1278,7 +1116,7 @@ var ServiceAgro;
|
|
|
1278
1116
|
/**
|
|
1279
1117
|
* VRt.Agro [AG]
|
|
1280
1118
|
*
|
|
1281
|
-
* The version of the OpenAPI document: 7.
|
|
1119
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
1282
1120
|
* Contact: servicedesk@veeroute.com
|
|
1283
1121
|
*
|
|
1284
1122
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -1321,9 +1159,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
1321
1159
|
type: Optional
|
|
1322
1160
|
}] }] });
|
|
1323
1161
|
|
|
1162
|
+
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
|
1163
|
+
function provideApi(configOrBasePath) {
|
|
1164
|
+
return makeEnvironmentProviders([
|
|
1165
|
+
typeof configOrBasePath === "string"
|
|
1166
|
+
? { provide: BASE_PATH, useValue: configOrBasePath }
|
|
1167
|
+
: {
|
|
1168
|
+
provide: Configuration,
|
|
1169
|
+
useValue: new Configuration({ ...configOrBasePath }),
|
|
1170
|
+
},
|
|
1171
|
+
]);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1324
1174
|
/**
|
|
1325
1175
|
* Generated bundle index. Do not edit.
|
|
1326
1176
|
*/
|
|
1327
1177
|
|
|
1328
|
-
export { APIS, BASE_PATH, COLLECTION_FORMATS, CalculationStatusAgro, Configuration, ContractTypeAgro, CropTypeAgro, EntityErrorTypeAgro, EntityTypeAgro, EntityWarningTypeAgro, LssAgroApiModule, ObjectTypeAgro, OperationTypeAgro, PlanService, ProjectConfigurationAgro, ServiceAgro, SystemService };
|
|
1178
|
+
export { APIS, BASE_PATH, COLLECTION_FORMATS, CalculationStatusAgro, Configuration, ContractTypeAgro, CropTypeAgro, EntityErrorTypeAgro, EntityTypeAgro, EntityWarningTypeAgro, LssAgroApiModule, ObjectTypeAgro, OperationTypeAgro, PlanService, ProjectConfigurationAgro, ServiceAgro, SystemService, provideApi };
|
|
1329
1179
|
//# sourceMappingURL=veeroute-lss-agro-angular.mjs.map
|