@veeroute/lss-agro-angular 5.11.1826

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.
Files changed (148) hide show
  1. package/README.md +156 -0
  2. package/api/api.d.ts +7 -0
  3. package/api/planService.d.ts +154 -0
  4. package/api/planServiceInterface.d.ts +84 -0
  5. package/api/systemService.d.ts +74 -0
  6. package/api/systemServiceInterface.d.ts +37 -0
  7. package/api.module.d.ts +11 -0
  8. package/cfg/method_groups.json +64 -0
  9. package/configuration.d.ts +80 -0
  10. package/encoder.d.ts +11 -0
  11. package/esm2020/api/api.mjs +8 -0
  12. package/esm2020/api/planService.mjs +450 -0
  13. package/esm2020/api/planServiceInterface.mjs +2 -0
  14. package/esm2020/api/systemService.mjs +210 -0
  15. package/esm2020/api/systemServiceInterface.mjs +2 -0
  16. package/esm2020/api.module.mjs +40 -0
  17. package/esm2020/configuration.mjs +80 -0
  18. package/esm2020/encoder.mjs +19 -0
  19. package/esm2020/index.mjs +6 -0
  20. package/esm2020/model/attribute.mjs +11 -0
  21. package/esm2020/model/bunker.mjs +2 -0
  22. package/esm2020/model/calculationAsyncResult.mjs +2 -0
  23. package/esm2020/model/calculationInfo.mjs +2 -0
  24. package/esm2020/model/calculationSettings.mjs +11 -0
  25. package/esm2020/model/calculationState.mjs +2 -0
  26. package/esm2020/model/calculationStatus.mjs +24 -0
  27. package/esm2020/model/capacityForecastElement.mjs +2 -0
  28. package/esm2020/model/chamber.mjs +2 -0
  29. package/esm2020/model/checkResult.mjs +11 -0
  30. package/esm2020/model/consumer.mjs +2 -0
  31. package/esm2020/model/costForecastElement.mjs +2 -0
  32. package/esm2020/model/crop.mjs +2 -0
  33. package/esm2020/model/cropType.mjs +19 -0
  34. package/esm2020/model/dateWindow.mjs +11 -0
  35. package/esm2020/model/dryer.mjs +2 -0
  36. package/esm2020/model/elevator.mjs +2 -0
  37. package/esm2020/model/entityError.mjs +2 -0
  38. package/esm2020/model/entityErrorType.mjs +21 -0
  39. package/esm2020/model/entityPath.mjs +2 -0
  40. package/esm2020/model/entityType.mjs +32 -0
  41. package/esm2020/model/entityValidation.mjs +2 -0
  42. package/esm2020/model/entityValidationType.mjs +19 -0
  43. package/esm2020/model/factory.mjs +2 -0
  44. package/esm2020/model/field.mjs +2 -0
  45. package/esm2020/model/gate.mjs +2 -0
  46. package/esm2020/model/humidityForecastElement.mjs +2 -0
  47. package/esm2020/model/inlineResponse400.mjs +2 -0
  48. package/esm2020/model/inlineResponse401.mjs +2 -0
  49. package/esm2020/model/inlineResponse402.mjs +2 -0
  50. package/esm2020/model/inlineResponse404.mjs +2 -0
  51. package/esm2020/model/inlineResponse404Detail.mjs +2 -0
  52. package/esm2020/model/inlineResponse429.mjs +2 -0
  53. package/esm2020/model/inlineResponse500.mjs +2 -0
  54. package/esm2020/model/leftover.mjs +11 -0
  55. package/esm2020/model/market.mjs +2 -0
  56. package/esm2020/model/models.mjs +60 -0
  57. package/esm2020/model/movementMatrixElement.mjs +11 -0
  58. package/esm2020/model/objectType.mjs +21 -0
  59. package/esm2020/model/operation.mjs +2 -0
  60. package/esm2020/model/operationMeasurements.mjs +11 -0
  61. package/esm2020/model/operationTarget.mjs +2 -0
  62. package/esm2020/model/operationType.mjs +25 -0
  63. package/esm2020/model/planResult.mjs +2 -0
  64. package/esm2020/model/planSettings.mjs +2 -0
  65. package/esm2020/model/planStatistics.mjs +11 -0
  66. package/esm2020/model/planTask.mjs +2 -0
  67. package/esm2020/model/priceForecastElement.mjs +2 -0
  68. package/esm2020/model/pricelist.mjs +2 -0
  69. package/esm2020/model/productivityForecastElement.mjs +2 -0
  70. package/esm2020/model/projectConfiguration.mjs +19 -0
  71. package/esm2020/model/projectSettings.mjs +2 -0
  72. package/esm2020/model/schemaError.mjs +11 -0
  73. package/esm2020/model/serviceName.mjs +28 -0
  74. package/esm2020/model/silo.mjs +2 -0
  75. package/esm2020/model/storage.mjs +2 -0
  76. package/esm2020/model/tracedata.mjs +2 -0
  77. package/esm2020/model/unplannedItems.mjs +11 -0
  78. package/esm2020/model/validateResult.mjs +2 -0
  79. package/esm2020/model/versionResult.mjs +11 -0
  80. package/esm2020/variables.mjs +9 -0
  81. package/esm2020/veeroute-lss-agro-angular.mjs +5 -0
  82. package/fesm2015/veeroute-lss-agro-angular.mjs +1010 -0
  83. package/fesm2015/veeroute-lss-agro-angular.mjs.map +1 -0
  84. package/fesm2020/veeroute-lss-agro-angular.mjs +1114 -0
  85. package/fesm2020/veeroute-lss-agro-angular.mjs.map +1 -0
  86. package/index.d.ts +5 -0
  87. package/model/attribute.d.ts +22 -0
  88. package/model/bunker.d.ts +32 -0
  89. package/model/calculationAsyncResult.d.ts +20 -0
  90. package/model/calculationInfo.d.ts +28 -0
  91. package/model/calculationSettings.d.ts +30 -0
  92. package/model/calculationState.d.ts +22 -0
  93. package/model/calculationStatus.d.ts +21 -0
  94. package/model/capacityForecastElement.d.ts +20 -0
  95. package/model/chamber.d.ts +33 -0
  96. package/model/checkResult.d.ts +18 -0
  97. package/model/consumer.d.ts +31 -0
  98. package/model/costForecastElement.d.ts +20 -0
  99. package/model/crop.d.ts +39 -0
  100. package/model/cropType.d.ts +16 -0
  101. package/model/dateWindow.d.ts +22 -0
  102. package/model/dryer.d.ts +23 -0
  103. package/model/elevator.d.ts +40 -0
  104. package/model/entityError.d.ts +25 -0
  105. package/model/entityErrorType.d.ts +18 -0
  106. package/model/entityPath.d.ts +21 -0
  107. package/model/entityType.d.ts +29 -0
  108. package/model/entityValidation.d.ts +25 -0
  109. package/model/entityValidationType.d.ts +16 -0
  110. package/model/factory.d.ts +40 -0
  111. package/model/field.d.ts +41 -0
  112. package/model/gate.d.ts +36 -0
  113. package/model/humidityForecastElement.d.ts +20 -0
  114. package/model/inlineResponse400.d.ts +35 -0
  115. package/model/inlineResponse401.d.ts +20 -0
  116. package/model/inlineResponse402.d.ts +20 -0
  117. package/model/inlineResponse404.d.ts +20 -0
  118. package/model/inlineResponse404Detail.d.ts +16 -0
  119. package/model/inlineResponse429.d.ts +20 -0
  120. package/model/inlineResponse500.d.ts +20 -0
  121. package/model/leftover.d.ts +34 -0
  122. package/model/market.d.ts +28 -0
  123. package/model/models.d.ts +59 -0
  124. package/model/movementMatrixElement.d.ts +34 -0
  125. package/model/objectType.d.ts +18 -0
  126. package/model/operation.d.ts +25 -0
  127. package/model/operationMeasurements.d.ts +22 -0
  128. package/model/operationTarget.d.ts +39 -0
  129. package/model/operationType.d.ts +22 -0
  130. package/model/planResult.d.ts +36 -0
  131. package/model/planSettings.d.ts +18 -0
  132. package/model/planStatistics.d.ts +42 -0
  133. package/model/planTask.d.ts +51 -0
  134. package/model/priceForecastElement.d.ts +20 -0
  135. package/model/pricelist.d.ts +36 -0
  136. package/model/productivityForecastElement.d.ts +20 -0
  137. package/model/projectConfiguration.d.ts +16 -0
  138. package/model/projectSettings.d.ts +28 -0
  139. package/model/schemaError.d.ts +22 -0
  140. package/model/serviceName.d.ts +25 -0
  141. package/model/silo.d.ts +40 -0
  142. package/model/storage.d.ts +32 -0
  143. package/model/tracedata.d.ts +36 -0
  144. package/model/unplannedItems.d.ts +30 -0
  145. package/model/validateResult.d.ts +21 -0
  146. package/model/versionResult.d.ts +26 -0
  147. package/package.json +39 -0
  148. package/variables.d.ts +8 -0
@@ -0,0 +1,1010 @@
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.Agro [AG]
115
+ *
116
+ * The version of the OpenAPI document: 5.11.1826
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 PlanService {
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
+ cancelPlanCalculation(requestParameters, observe = 'body', reportProgress = false, options) {
177
+ const id = requestParameters.id;
178
+ if (id === null || id === undefined) {
179
+ throw new Error('Required parameter id was null or undefined when calling cancelPlanCalculation.');
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/json'
193
+ ];
194
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
195
+ }
196
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
197
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
198
+ }
199
+ let localVarHttpContext = options && options.context;
200
+ if (localVarHttpContext === undefined) {
201
+ localVarHttpContext = new HttpContext();
202
+ }
203
+ let responseType_ = 'json';
204
+ if (localVarHttpHeaderAcceptSelected) {
205
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
206
+ responseType_ = 'text';
207
+ }
208
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
209
+ responseType_ = 'json';
210
+ }
211
+ else {
212
+ responseType_ = 'blob';
213
+ }
214
+ }
215
+ return this.httpClient.delete(`${this.configuration.basePath}/agro/plan/calculation_async/${encodeURIComponent(String(id))}`, {
216
+ context: localVarHttpContext,
217
+ responseType: responseType_,
218
+ withCredentials: this.configuration.withCredentials,
219
+ headers: localVarHeaders,
220
+ observe: observe,
221
+ reportProgress: reportProgress
222
+ });
223
+ }
224
+ deletePlanResult(requestParameters, observe = 'body', reportProgress = false, options) {
225
+ const id = requestParameters.id;
226
+ if (id === null || id === undefined) {
227
+ throw new Error('Required parameter id was null or undefined when calling deletePlanResult.');
228
+ }
229
+ let localVarHeaders = this.defaultHeaders;
230
+ let localVarCredential;
231
+ // authentication (ApiKeyAuth) required
232
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
233
+ if (localVarCredential) {
234
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
235
+ }
236
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
237
+ if (localVarHttpHeaderAcceptSelected === undefined) {
238
+ // to determine the Accept header
239
+ const httpHeaderAccepts = [
240
+ 'application/json'
241
+ ];
242
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
243
+ }
244
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
245
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
246
+ }
247
+ let localVarHttpContext = options && options.context;
248
+ if (localVarHttpContext === undefined) {
249
+ localVarHttpContext = new HttpContext();
250
+ }
251
+ let responseType_ = 'json';
252
+ if (localVarHttpHeaderAcceptSelected) {
253
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
254
+ responseType_ = 'text';
255
+ }
256
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
257
+ responseType_ = 'json';
258
+ }
259
+ else {
260
+ responseType_ = 'blob';
261
+ }
262
+ }
263
+ return this.httpClient.delete(`${this.configuration.basePath}/agro/plan/result/${encodeURIComponent(String(id))}`, {
264
+ context: localVarHttpContext,
265
+ responseType: responseType_,
266
+ withCredentials: this.configuration.withCredentials,
267
+ headers: localVarHeaders,
268
+ observe: observe,
269
+ reportProgress: reportProgress
270
+ });
271
+ }
272
+ readPlanCalculationState(requestParameters, observe = 'body', reportProgress = false, options) {
273
+ const id = requestParameters.id;
274
+ if (id === null || id === undefined) {
275
+ throw new Error('Required parameter id was null or undefined when calling readPlanCalculationState.');
276
+ }
277
+ let localVarHeaders = this.defaultHeaders;
278
+ let localVarCredential;
279
+ // authentication (ApiKeyAuth) required
280
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
281
+ if (localVarCredential) {
282
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
283
+ }
284
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
285
+ if (localVarHttpHeaderAcceptSelected === undefined) {
286
+ // to determine the Accept header
287
+ const httpHeaderAccepts = [
288
+ 'application/json'
289
+ ];
290
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
291
+ }
292
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
293
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
294
+ }
295
+ let localVarHttpContext = options && options.context;
296
+ if (localVarHttpContext === undefined) {
297
+ localVarHttpContext = new HttpContext();
298
+ }
299
+ let responseType_ = 'json';
300
+ if (localVarHttpHeaderAcceptSelected) {
301
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
302
+ responseType_ = 'text';
303
+ }
304
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
305
+ responseType_ = 'json';
306
+ }
307
+ else {
308
+ responseType_ = 'blob';
309
+ }
310
+ }
311
+ return this.httpClient.get(`${this.configuration.basePath}/agro/plan/calculation_async/${encodeURIComponent(String(id))}`, {
312
+ context: localVarHttpContext,
313
+ responseType: responseType_,
314
+ withCredentials: this.configuration.withCredentials,
315
+ headers: localVarHeaders,
316
+ observe: observe,
317
+ reportProgress: reportProgress
318
+ });
319
+ }
320
+ readPlanResult(requestParameters, observe = 'body', reportProgress = false, options) {
321
+ const id = requestParameters.id;
322
+ if (id === null || id === undefined) {
323
+ throw new Error('Required parameter id was null or undefined when calling readPlanResult.');
324
+ }
325
+ let localVarHeaders = this.defaultHeaders;
326
+ let localVarCredential;
327
+ // authentication (ApiKeyAuth) required
328
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
329
+ if (localVarCredential) {
330
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
331
+ }
332
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
333
+ if (localVarHttpHeaderAcceptSelected === undefined) {
334
+ // to determine the Accept header
335
+ const httpHeaderAccepts = [
336
+ 'application/json'
337
+ ];
338
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
339
+ }
340
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
341
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
342
+ }
343
+ let localVarHttpContext = options && options.context;
344
+ if (localVarHttpContext === undefined) {
345
+ localVarHttpContext = new HttpContext();
346
+ }
347
+ let responseType_ = 'json';
348
+ if (localVarHttpHeaderAcceptSelected) {
349
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
350
+ responseType_ = 'text';
351
+ }
352
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
353
+ responseType_ = 'json';
354
+ }
355
+ else {
356
+ responseType_ = 'blob';
357
+ }
358
+ }
359
+ return this.httpClient.get(`${this.configuration.basePath}/agro/plan/result/${encodeURIComponent(String(id))}`, {
360
+ context: localVarHttpContext,
361
+ responseType: responseType_,
362
+ withCredentials: this.configuration.withCredentials,
363
+ headers: localVarHeaders,
364
+ observe: observe,
365
+ reportProgress: reportProgress
366
+ });
367
+ }
368
+ runPlanCalculation(requestParameters, observe = 'body', reportProgress = false, options) {
369
+ const planTaskAgro = requestParameters.planTaskAgro;
370
+ if (planTaskAgro === null || planTaskAgro === undefined) {
371
+ throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanCalculation.');
372
+ }
373
+ let localVarHeaders = this.defaultHeaders;
374
+ let localVarCredential;
375
+ // authentication (ApiKeyAuth) required
376
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
377
+ if (localVarCredential) {
378
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
379
+ }
380
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
381
+ if (localVarHttpHeaderAcceptSelected === undefined) {
382
+ // to determine the Accept header
383
+ const httpHeaderAccepts = [
384
+ 'application/json'
385
+ ];
386
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
387
+ }
388
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
389
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
390
+ }
391
+ let localVarHttpContext = options && options.context;
392
+ if (localVarHttpContext === undefined) {
393
+ localVarHttpContext = new HttpContext();
394
+ }
395
+ // to determine the Content-Type header
396
+ const consumes = [
397
+ 'application/json'
398
+ ];
399
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
400
+ if (httpContentTypeSelected !== undefined) {
401
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
402
+ }
403
+ let responseType_ = 'json';
404
+ if (localVarHttpHeaderAcceptSelected) {
405
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
406
+ responseType_ = 'text';
407
+ }
408
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
409
+ responseType_ = 'json';
410
+ }
411
+ else {
412
+ responseType_ = 'blob';
413
+ }
414
+ }
415
+ return this.httpClient.post(`${this.configuration.basePath}/agro/plan/calculation`, planTaskAgro, {
416
+ context: localVarHttpContext,
417
+ responseType: responseType_,
418
+ withCredentials: this.configuration.withCredentials,
419
+ headers: localVarHeaders,
420
+ observe: observe,
421
+ reportProgress: reportProgress
422
+ });
423
+ }
424
+ runPlanCalculationAsync(requestParameters, observe = 'body', reportProgress = false, options) {
425
+ const planTaskAgro = requestParameters.planTaskAgro;
426
+ if (planTaskAgro === null || planTaskAgro === undefined) {
427
+ throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanCalculationAsync.');
428
+ }
429
+ let localVarHeaders = this.defaultHeaders;
430
+ let localVarCredential;
431
+ // authentication (ApiKeyAuth) required
432
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
433
+ if (localVarCredential) {
434
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
435
+ }
436
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
437
+ if (localVarHttpHeaderAcceptSelected === undefined) {
438
+ // to determine the Accept header
439
+ const httpHeaderAccepts = [
440
+ 'application/json'
441
+ ];
442
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
443
+ }
444
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
445
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
446
+ }
447
+ let localVarHttpContext = options && options.context;
448
+ if (localVarHttpContext === undefined) {
449
+ localVarHttpContext = new HttpContext();
450
+ }
451
+ // to determine the Content-Type header
452
+ const consumes = [
453
+ 'application/json'
454
+ ];
455
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
456
+ if (httpContentTypeSelected !== undefined) {
457
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
458
+ }
459
+ let responseType_ = 'json';
460
+ if (localVarHttpHeaderAcceptSelected) {
461
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
462
+ responseType_ = 'text';
463
+ }
464
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
465
+ responseType_ = 'json';
466
+ }
467
+ else {
468
+ responseType_ = 'blob';
469
+ }
470
+ }
471
+ return this.httpClient.post(`${this.configuration.basePath}/agro/plan/calculation_async`, planTaskAgro, {
472
+ context: localVarHttpContext,
473
+ responseType: responseType_,
474
+ withCredentials: this.configuration.withCredentials,
475
+ headers: localVarHeaders,
476
+ observe: observe,
477
+ reportProgress: reportProgress
478
+ });
479
+ }
480
+ runPlanValidation(requestParameters, observe = 'body', reportProgress = false, options) {
481
+ const planTaskAgro = requestParameters.planTaskAgro;
482
+ if (planTaskAgro === null || planTaskAgro === undefined) {
483
+ throw new Error('Required parameter planTaskAgro was null or undefined when calling runPlanValidation.');
484
+ }
485
+ let localVarHeaders = this.defaultHeaders;
486
+ let localVarCredential;
487
+ // authentication (ApiKeyAuth) required
488
+ localVarCredential = this.configuration.lookupCredential('ApiKeyAuth');
489
+ if (localVarCredential) {
490
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
491
+ }
492
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
493
+ if (localVarHttpHeaderAcceptSelected === undefined) {
494
+ // to determine the Accept header
495
+ const httpHeaderAccepts = [
496
+ 'application/json'
497
+ ];
498
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
499
+ }
500
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
501
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
502
+ }
503
+ let localVarHttpContext = options && options.context;
504
+ if (localVarHttpContext === undefined) {
505
+ localVarHttpContext = new HttpContext();
506
+ }
507
+ // to determine the Content-Type header
508
+ const consumes = [
509
+ 'application/json'
510
+ ];
511
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
512
+ if (httpContentTypeSelected !== undefined) {
513
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
514
+ }
515
+ let responseType_ = 'json';
516
+ if (localVarHttpHeaderAcceptSelected) {
517
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
518
+ responseType_ = 'text';
519
+ }
520
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
521
+ responseType_ = 'json';
522
+ }
523
+ else {
524
+ responseType_ = 'blob';
525
+ }
526
+ }
527
+ return this.httpClient.post(`${this.configuration.basePath}/agro/plan/validation`, planTaskAgro, {
528
+ context: localVarHttpContext,
529
+ responseType: responseType_,
530
+ withCredentials: this.configuration.withCredentials,
531
+ headers: localVarHeaders,
532
+ observe: observe,
533
+ reportProgress: reportProgress
534
+ });
535
+ }
536
+ }
537
+ PlanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PlanService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
538
+ PlanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PlanService, providedIn: 'root' });
539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: PlanService, decorators: [{
540
+ type: Injectable,
541
+ args: [{
542
+ providedIn: 'root'
543
+ }]
544
+ }], ctorParameters: function () {
545
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
546
+ type: Optional
547
+ }, {
548
+ type: Inject,
549
+ args: [BASE_PATH]
550
+ }] }, { type: Configuration, decorators: [{
551
+ type: Optional
552
+ }] }];
553
+ } });
554
+
555
+ /**
556
+ * VRt.Agro [AG]
557
+ *
558
+ * The version of the OpenAPI document: 5.11.1826
559
+ * Contact: servicedesk@veeroute.com
560
+ *
561
+ * NOTE: This class is auto generated by OpenAPI Generator.
562
+ * Do not edit the class manually.
563
+ */
564
+ class SystemService {
565
+ constructor(httpClient, basePath, configuration) {
566
+ this.httpClient = httpClient;
567
+ this.basePath = 'https://api.edge.veeroute.tech';
568
+ this.defaultHeaders = new HttpHeaders();
569
+ this.configuration = new Configuration();
570
+ if (configuration) {
571
+ this.configuration = configuration;
572
+ }
573
+ if (typeof this.configuration.basePath !== 'string') {
574
+ if (typeof basePath !== 'string') {
575
+ basePath = this.basePath;
576
+ }
577
+ this.configuration.basePath = basePath;
578
+ }
579
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
580
+ }
581
+ addToHttpParams(httpParams, value, key) {
582
+ if (typeof value === "object" && value instanceof Date === false) {
583
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
584
+ }
585
+ else {
586
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
587
+ }
588
+ return httpParams;
589
+ }
590
+ addToHttpParamsRecursive(httpParams, value, key) {
591
+ if (value == null) {
592
+ return httpParams;
593
+ }
594
+ if (typeof value === "object") {
595
+ if (Array.isArray(value)) {
596
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
597
+ }
598
+ else if (value instanceof Date) {
599
+ if (key != null) {
600
+ httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
601
+ }
602
+ else {
603
+ throw Error("key may not be null if value is Date");
604
+ }
605
+ }
606
+ else {
607
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
608
+ }
609
+ }
610
+ else if (key != null) {
611
+ httpParams = httpParams.append(key, value);
612
+ }
613
+ else {
614
+ throw Error("key may not be null if value is not object or array");
615
+ }
616
+ return httpParams;
617
+ }
618
+ check(observe = 'body', reportProgress = false, options) {
619
+ let localVarHeaders = this.defaultHeaders;
620
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
621
+ if (localVarHttpHeaderAcceptSelected === undefined) {
622
+ // to determine the Accept header
623
+ const httpHeaderAccepts = [
624
+ 'application/json'
625
+ ];
626
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
627
+ }
628
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
629
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
630
+ }
631
+ let localVarHttpContext = options && options.context;
632
+ if (localVarHttpContext === undefined) {
633
+ localVarHttpContext = new HttpContext();
634
+ }
635
+ let responseType_ = 'json';
636
+ if (localVarHttpHeaderAcceptSelected) {
637
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
638
+ responseType_ = 'text';
639
+ }
640
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
641
+ responseType_ = 'json';
642
+ }
643
+ else {
644
+ responseType_ = 'blob';
645
+ }
646
+ }
647
+ return this.httpClient.get(`${this.configuration.basePath}/agro/system/check`, {
648
+ context: localVarHttpContext,
649
+ responseType: responseType_,
650
+ withCredentials: this.configuration.withCredentials,
651
+ headers: localVarHeaders,
652
+ observe: observe,
653
+ reportProgress: reportProgress
654
+ });
655
+ }
656
+ file(requestParameters, observe = 'body', reportProgress = false, options) {
657
+ const filename = requestParameters.filename;
658
+ if (filename === null || filename === undefined) {
659
+ throw new Error('Required parameter filename was null or undefined when calling file.');
660
+ }
661
+ let localVarHeaders = this.defaultHeaders;
662
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
663
+ if (localVarHttpHeaderAcceptSelected === undefined) {
664
+ // to determine the Accept header
665
+ const httpHeaderAccepts = [
666
+ 'text/html',
667
+ 'text/plain',
668
+ 'application/json'
669
+ ];
670
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
671
+ }
672
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
673
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
674
+ }
675
+ let localVarHttpContext = options && options.context;
676
+ if (localVarHttpContext === undefined) {
677
+ localVarHttpContext = new HttpContext();
678
+ }
679
+ let responseType_ = 'json';
680
+ if (localVarHttpHeaderAcceptSelected) {
681
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
682
+ responseType_ = 'text';
683
+ }
684
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
685
+ responseType_ = 'json';
686
+ }
687
+ else {
688
+ responseType_ = 'blob';
689
+ }
690
+ }
691
+ return this.httpClient.get(`${this.configuration.basePath}/agro/file/${encodeURIComponent(String(filename))}`, {
692
+ context: localVarHttpContext,
693
+ responseType: responseType_,
694
+ withCredentials: this.configuration.withCredentials,
695
+ headers: localVarHeaders,
696
+ observe: observe,
697
+ reportProgress: reportProgress
698
+ });
699
+ }
700
+ version(observe = 'body', reportProgress = false, options) {
701
+ let localVarHeaders = this.defaultHeaders;
702
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
703
+ if (localVarHttpHeaderAcceptSelected === undefined) {
704
+ // to determine the Accept header
705
+ const httpHeaderAccepts = [
706
+ 'application/json'
707
+ ];
708
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
709
+ }
710
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
711
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
712
+ }
713
+ let localVarHttpContext = options && options.context;
714
+ if (localVarHttpContext === undefined) {
715
+ localVarHttpContext = new HttpContext();
716
+ }
717
+ let responseType_ = 'json';
718
+ if (localVarHttpHeaderAcceptSelected) {
719
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
720
+ responseType_ = 'text';
721
+ }
722
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
723
+ responseType_ = 'json';
724
+ }
725
+ else {
726
+ responseType_ = 'blob';
727
+ }
728
+ }
729
+ return this.httpClient.get(`${this.configuration.basePath}/agro/system/version`, {
730
+ context: localVarHttpContext,
731
+ responseType: responseType_,
732
+ withCredentials: this.configuration.withCredentials,
733
+ headers: localVarHeaders,
734
+ observe: observe,
735
+ reportProgress: reportProgress
736
+ });
737
+ }
738
+ }
739
+ SystemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: SystemService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
740
+ SystemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: SystemService, providedIn: 'root' });
741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: SystemService, decorators: [{
742
+ type: Injectable,
743
+ args: [{
744
+ providedIn: 'root'
745
+ }]
746
+ }], ctorParameters: function () {
747
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
748
+ type: Optional
749
+ }, {
750
+ type: Inject,
751
+ args: [BASE_PATH]
752
+ }] }, { type: Configuration, decorators: [{
753
+ type: Optional
754
+ }] }];
755
+ } });
756
+
757
+ const APIS = [PlanService, SystemService];
758
+
759
+ /**
760
+ * VRt.Agro [AG]
761
+ *
762
+ * The version of the OpenAPI document: 5.11.1826
763
+ * Contact: servicedesk@veeroute.com
764
+ *
765
+ * NOTE: This class is auto generated by OpenAPI Generator.
766
+ * Do not edit the class manually.
767
+ */
768
+ /**
769
+ * 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.
770
+ */
771
+ var CalculationStatusAgro;
772
+ (function (CalculationStatusAgro) {
773
+ CalculationStatusAgro["WAITING"] = "WAITING";
774
+ CalculationStatusAgro["IN_PROGRESS"] = "IN_PROGRESS";
775
+ CalculationStatusAgro["FINISHED_IN_TIME"] = "FINISHED_IN_TIME";
776
+ CalculationStatusAgro["FINISHED_OUT_OF_TIME"] = "FINISHED_OUT_OF_TIME";
777
+ CalculationStatusAgro["CANCELED"] = "CANCELED";
778
+ CalculationStatusAgro["CANCELED_BY_TIMEOUT"] = "CANCELED_BY_TIMEOUT";
779
+ CalculationStatusAgro["FAILED"] = "FAILED";
780
+ })(CalculationStatusAgro || (CalculationStatusAgro = {}));
781
+ ;
782
+
783
+ /**
784
+ * VRt.Agro [AG]
785
+ *
786
+ * The version of the OpenAPI document: 5.11.1826
787
+ * Contact: servicedesk@veeroute.com
788
+ *
789
+ * NOTE: This class is auto generated by OpenAPI Generator.
790
+ * Do not edit the class manually.
791
+ */
792
+ /**
793
+ * Crop type.
794
+ */
795
+ var CropTypeAgro;
796
+ (function (CropTypeAgro) {
797
+ CropTypeAgro["DRY"] = "DRY";
798
+ CropTypeAgro["WET"] = "WET";
799
+ })(CropTypeAgro || (CropTypeAgro = {}));
800
+ ;
801
+
802
+ /**
803
+ * VRt.Agro [AG]
804
+ *
805
+ * The version of the OpenAPI document: 5.11.1826
806
+ * Contact: servicedesk@veeroute.com
807
+ *
808
+ * NOTE: This class is auto generated by OpenAPI Generator.
809
+ * Do not edit the class manually.
810
+ */
811
+ /**
812
+ * Error type: * `UNIQUE_IDS_VIOLATION` - all keys must be unique * `INCONSISTENT_REFERENCE` - bad reference key * `INVALID_TIMELINE` - time window crossing * `INVALID_DATEWINDOW` - window ends before it starts
813
+ */
814
+ var EntityErrorTypeAgro;
815
+ (function (EntityErrorTypeAgro) {
816
+ EntityErrorTypeAgro["UNIQUE_IDS_VIOLATION"] = "UNIQUE_IDS_VIOLATION";
817
+ EntityErrorTypeAgro["INCONSISTENT_REFERENCE"] = "INCONSISTENT_REFERENCE";
818
+ EntityErrorTypeAgro["INVALID_TIMELINE"] = "INVALID_TIMELINE";
819
+ EntityErrorTypeAgro["INVALID_DATEWINDOW"] = "INVALID_DATEWINDOW";
820
+ })(EntityErrorTypeAgro || (EntityErrorTypeAgro = {}));
821
+ ;
822
+
823
+ /**
824
+ * VRt.Agro [AG]
825
+ *
826
+ * The version of the OpenAPI document: 5.11.1826
827
+ * Contact: servicedesk@veeroute.com
828
+ *
829
+ * NOTE: This class is auto generated by OpenAPI Generator.
830
+ * Do not edit the class manually.
831
+ */
832
+ /**
833
+ * Entity type.
834
+ */
835
+ var EntityTypeAgro;
836
+ (function (EntityTypeAgro) {
837
+ EntityTypeAgro["TASK"] = "TASK";
838
+ EntityTypeAgro["SETTINGS"] = "SETTINGS";
839
+ EntityTypeAgro["CROP"] = "CROP";
840
+ EntityTypeAgro["FIELD"] = "FIELD";
841
+ EntityTypeAgro["ELEVATOR"] = "ELEVATOR";
842
+ EntityTypeAgro["FACTORY"] = "FACTORY";
843
+ EntityTypeAgro["MARKET"] = "MARKET";
844
+ EntityTypeAgro["STORAGE"] = "STORAGE";
845
+ EntityTypeAgro["SILO"] = "SILO";
846
+ EntityTypeAgro["BUNKER"] = "BUNKER";
847
+ EntityTypeAgro["DRYER"] = "DRYER";
848
+ EntityTypeAgro["GATE"] = "GATE";
849
+ EntityTypeAgro["CONSUMER"] = "CONSUMER";
850
+ EntityTypeAgro["LEFTOVER"] = "LEFTOVER";
851
+ EntityTypeAgro["FORECAST_ELEMENT"] = "FORECAST_ELEMENT";
852
+ })(EntityTypeAgro || (EntityTypeAgro = {}));
853
+ ;
854
+
855
+ /**
856
+ * VRt.Agro [AG]
857
+ *
858
+ * The version of the OpenAPI document: 5.11.1826
859
+ * Contact: servicedesk@veeroute.com
860
+ *
861
+ * NOTE: This class is auto generated by OpenAPI Generator.
862
+ * Do not edit the class manually.
863
+ */
864
+ /**
865
+ * Validation type: * `NO_COMPATIBLE_STORAGE` - no compatible storage locations * `NO_AVAILABLE_MOVEMENT` - the object is not in the movement matrix
866
+ */
867
+ var EntityValidationTypeAgro;
868
+ (function (EntityValidationTypeAgro) {
869
+ EntityValidationTypeAgro["COMPATIBLE_STORAGE"] = "NO_COMPATIBLE_STORAGE";
870
+ EntityValidationTypeAgro["AVAILABLE_MOVEMENT"] = "NO_AVAILABLE_MOVEMENT";
871
+ })(EntityValidationTypeAgro || (EntityValidationTypeAgro = {}));
872
+ ;
873
+
874
+ /**
875
+ * VRt.Agro [AG]
876
+ *
877
+ * The version of the OpenAPI document: 5.11.1826
878
+ * Contact: servicedesk@veeroute.com
879
+ *
880
+ * NOTE: This class is auto generated by OpenAPI Generator.
881
+ * Do not edit the class manually.
882
+ */
883
+ /**
884
+ * Object type.
885
+ */
886
+ var ObjectTypeAgro;
887
+ (function (ObjectTypeAgro) {
888
+ ObjectTypeAgro["FIELD"] = "FIELD";
889
+ ObjectTypeAgro["ELEVATOR"] = "ELEVATOR";
890
+ ObjectTypeAgro["FACTORY"] = "FACTORY";
891
+ ObjectTypeAgro["MARKET"] = "MARKET";
892
+ })(ObjectTypeAgro || (ObjectTypeAgro = {}));
893
+ ;
894
+
895
+ /**
896
+ * VRt.Agro [AG]
897
+ *
898
+ * The version of the OpenAPI document: 5.11.1826
899
+ * Contact: servicedesk@veeroute.com
900
+ *
901
+ * NOTE: This class is auto generated by OpenAPI Generator.
902
+ * Do not edit the class manually.
903
+ */
904
+ /**
905
+ * Operation type.
906
+ */
907
+ var OperationTypeAgro;
908
+ (function (OperationTypeAgro) {
909
+ OperationTypeAgro["HARVEST"] = "HARVEST";
910
+ OperationTypeAgro["STORAGE"] = "STORAGE";
911
+ OperationTypeAgro["DRYING"] = "DRYING";
912
+ OperationTypeAgro["MOVEMENT"] = "MOVEMENT";
913
+ OperationTypeAgro["TRANSFER"] = "TRANSFER";
914
+ OperationTypeAgro["CONSUMPTION"] = "CONSUMPTION";
915
+ OperationTypeAgro["SELLING"] = "SELLING";
916
+ OperationTypeAgro["BUYING"] = "BUYING";
917
+ })(OperationTypeAgro || (OperationTypeAgro = {}));
918
+ ;
919
+
920
+ /**
921
+ * VRt.Agro [AG]
922
+ *
923
+ * The version of the OpenAPI document: 5.11.1826
924
+ * Contact: servicedesk@veeroute.com
925
+ *
926
+ * NOTE: This class is auto generated by OpenAPI Generator.
927
+ * Do not edit the class manually.
928
+ */
929
+ /**
930
+ * Target function type.
931
+ */
932
+ var ProjectConfigurationAgro;
933
+ (function (ProjectConfigurationAgro) {
934
+ ProjectConfigurationAgro["DISTANCE"] = "OPTIMIZE_DISTANCE";
935
+ ProjectConfigurationAgro["COST"] = "OPTIMIZE_COST";
936
+ })(ProjectConfigurationAgro || (ProjectConfigurationAgro = {}));
937
+ ;
938
+
939
+ /**
940
+ * VRt.Agro [AG]
941
+ *
942
+ * The version of the OpenAPI document: 5.11.1826
943
+ * Contact: servicedesk@veeroute.com
944
+ *
945
+ * NOTE: This class is auto generated by OpenAPI Generator.
946
+ * Do not edit the class manually.
947
+ */
948
+ /**
949
+ * Service name.
950
+ */
951
+ var ServiceNameAgro;
952
+ (function (ServiceNameAgro) {
953
+ ServiceNameAgro["UNIVERSAL"] = "UNIVERSAL";
954
+ ServiceNameAgro["ROUTING"] = "ROUTING";
955
+ ServiceNameAgro["ACCOUNT"] = "ACCOUNT";
956
+ ServiceNameAgro["ADMIN"] = "ADMIN";
957
+ ServiceNameAgro["STUDIO"] = "STUDIO";
958
+ ServiceNameAgro["PACKER"] = "PACKER";
959
+ ServiceNameAgro["AGRO"] = "AGRO";
960
+ ServiceNameAgro["STOCK"] = "STOCK";
961
+ ServiceNameAgro["LONGHAUL"] = "LONGHAUL";
962
+ ServiceNameAgro["CLUSTER"] = "CLUSTER";
963
+ ServiceNameAgro["CARGOTIMETABLE"] = "CARGOTIMETABLE";
964
+ })(ServiceNameAgro || (ServiceNameAgro = {}));
965
+ ;
966
+
967
+ class LssAgroApiModule {
968
+ constructor(parentModule, http) {
969
+ if (parentModule) {
970
+ throw new Error('LssAgroApiModule is already loaded. Import in your base AppModule only.');
971
+ }
972
+ if (!http) {
973
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
974
+ 'See also https://github.com/angular/angular/issues/20575');
975
+ }
976
+ }
977
+ static forRoot(configurationFactory) {
978
+ return {
979
+ ngModule: LssAgroApiModule,
980
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
981
+ };
982
+ }
983
+ }
984
+ LssAgroApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LssAgroApiModule, deps: [{ token: LssAgroApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
985
+ LssAgroApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: LssAgroApiModule });
986
+ LssAgroApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LssAgroApiModule });
987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LssAgroApiModule, decorators: [{
988
+ type: NgModule,
989
+ args: [{
990
+ imports: [],
991
+ declarations: [],
992
+ exports: [],
993
+ providers: []
994
+ }]
995
+ }], ctorParameters: function () {
996
+ return [{ type: LssAgroApiModule, decorators: [{
997
+ type: Optional
998
+ }, {
999
+ type: SkipSelf
1000
+ }] }, { type: i1.HttpClient, decorators: [{
1001
+ type: Optional
1002
+ }] }];
1003
+ } });
1004
+
1005
+ /**
1006
+ * Generated bundle index. Do not edit.
1007
+ */
1008
+
1009
+ export { APIS, BASE_PATH, COLLECTION_FORMATS, CalculationStatusAgro, Configuration, CropTypeAgro, EntityErrorTypeAgro, EntityTypeAgro, EntityValidationTypeAgro, LssAgroApiModule, ObjectTypeAgro, OperationTypeAgro, PlanService, ProjectConfigurationAgro, ServiceNameAgro, SystemService };
1010
+ //# sourceMappingURL=veeroute-lss-agro-angular.mjs.map