@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
package/README.md ADDED
@@ -0,0 +1,156 @@
1
+ ## @veeroute/lss-agro-angular@5.11.1826
2
+
3
+ ## General usage
4
+
5
+ In your Angular project:
6
+
7
+
8
+ ```
9
+ // without configuring providers
10
+ import { LssAgroApiModule } from '@veeroute/lss-agro-angular';
11
+ import { HttpClientModule } from '@angular/common/http';
12
+
13
+ @NgModule({
14
+ imports: [
15
+ LssAgroApiModule,
16
+ // make sure to import the HttpClientModule in the AppModule only,
17
+ // see https://github.com/angular/angular/issues/20575
18
+ HttpClientModule
19
+ ],
20
+ declarations: [ AppComponent ],
21
+ providers: [],
22
+ bootstrap: [ AppComponent ]
23
+ })
24
+ export class AppModule {}
25
+ ```
26
+
27
+ ```
28
+ // configuring providers
29
+ import { LssAgroApiModule, Configuration, ConfigurationParameters } from '@veeroute/lss-agro-angular';
30
+
31
+ export function apiConfigFactory (): Configuration {
32
+ const params: ConfigurationParameters = {
33
+ // set configuration parameters here.
34
+ }
35
+ return new Configuration(params);
36
+ }
37
+
38
+ @NgModule({
39
+ imports: [ LssAgroApiModule.forRoot(apiConfigFactory) ],
40
+ declarations: [ AppComponent ],
41
+ providers: [],
42
+ bootstrap: [ AppComponent ]
43
+ })
44
+ export class AppModule {}
45
+ ```
46
+
47
+ ```
48
+ // configuring providers with an authentication service that manages your access tokens
49
+ import { LssAgroApiModule, Configuration } from '@veeroute/lss-agro-angular';
50
+
51
+ @NgModule({
52
+ imports: [ LssAgroApiModule ],
53
+ declarations: [ AppComponent ],
54
+ providers: [
55
+ {
56
+ provide: Configuration,
57
+ useFactory: (authService: AuthService) => new Configuration(
58
+ {
59
+ basePath: environment.apiUrl,
60
+ accessToken: authService.getAccessToken.bind(authService)
61
+ }
62
+ ),
63
+ deps: [AuthService],
64
+ multi: false
65
+ }
66
+ ],
67
+ bootstrap: [ AppComponent ]
68
+ })
69
+ export class AppModule {}
70
+ ```
71
+
72
+ ```
73
+ import { DefaultApi } from '@veeroute/lss-agro-angular';
74
+
75
+ export class AppComponent {
76
+ constructor(private apiGateway: DefaultApi) { }
77
+ }
78
+ ```
79
+
80
+ Note: The LssAgroApiModule is restricted to being instantiated once app wide.
81
+ This is to ensure that all services are treated as singletons.
82
+
83
+ #### Using multiple OpenAPI files / APIs / LssAgroApiModules
84
+ In order to use multiple `LssAgroApiModules` generated from different OpenAPI files,
85
+ you can create an alias name when importing the modules
86
+ in order to avoid naming conflicts:
87
+ ```
88
+ import { LssAgroApiModule } from 'my-api-path';
89
+ import { LssAgroApiModule as OtherApiModule } from 'my-other-api-path';
90
+ import { HttpClientModule } from '@angular/common/http';
91
+
92
+ @NgModule({
93
+ imports: [
94
+ LssAgroApiModule,
95
+ OtherApiModule,
96
+ // make sure to import the HttpClientModule in the AppModule only,
97
+ // see https://github.com/angular/angular/issues/20575
98
+ HttpClientModule
99
+ ]
100
+ })
101
+ export class AppModule {
102
+
103
+ }
104
+ ```
105
+
106
+
107
+ ### Set service base path
108
+ If different than the generated base path, during app bootstrap, you can provide the base path to your service.
109
+
110
+ ```
111
+ import { BASE_PATH } from '@veeroute/lss-agro-angular';
112
+
113
+ bootstrap(AppComponent, [
114
+ { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
115
+ ]);
116
+ ```
117
+ or
118
+
119
+ ```
120
+ import { BASE_PATH } from '@veeroute/lss-agro-angular';
121
+
122
+ @NgModule({
123
+ imports: [],
124
+ declarations: [ AppComponent ],
125
+ providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
126
+ bootstrap: [ AppComponent ]
127
+ })
128
+ export class AppModule {}
129
+ ```
130
+
131
+
132
+ #### Using @angular/cli
133
+ First extend your `src/environments/*.ts` files by adding the corresponding base path:
134
+
135
+ ```
136
+ export const environment = {
137
+ production: false,
138
+ API_BASE_PATH: 'http://127.0.0.1:8080'
139
+ };
140
+ ```
141
+
142
+ In the src/app/app.module.ts:
143
+ ```
144
+ import { BASE_PATH } from '@veeroute/lss-agro-angular';
145
+ import { environment } from '../environments/environment';
146
+
147
+ @NgModule({
148
+ declarations: [
149
+ AppComponent
150
+ ],
151
+ imports: [ ],
152
+ providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
153
+ bootstrap: [ AppComponent ]
154
+ })
155
+ export class AppModule { }
156
+ ```
package/api/api.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './planService';
2
+ import { PlanService } from './planService';
3
+ export * from './planServiceInterface';
4
+ export * from './systemService';
5
+ import { SystemService } from './systemService';
6
+ export * from './systemServiceInterface';
7
+ export declare const APIS: (typeof PlanService | typeof SystemService)[];
@@ -0,0 +1,154 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CalculationAsyncResultAgro } from '../model/calculationAsyncResult';
4
+ import { CalculationStateAgro } from '../model/calculationState';
5
+ import { PlanResultAgro } from '../model/planResult';
6
+ import { ValidateResultAgro } from '../model/validateResult';
7
+ import { Configuration } from '../configuration';
8
+ import { PlanServiceInterface, CancelPlanCalculationRequestParams, DeletePlanResultRequestParams, ReadPlanCalculationStateRequestParams, ReadPlanResultRequestParams, RunPlanCalculationRequestParams, RunPlanCalculationAsyncRequestParams, RunPlanValidationRequestParams } from './planServiceInterface';
9
+ import * as i0 from "@angular/core";
10
+ export declare class PlanService implements PlanServiceInterface {
11
+ protected httpClient: HttpClient;
12
+ protected basePath: string;
13
+ defaultHeaders: HttpHeaders;
14
+ configuration: Configuration;
15
+ encoder: HttpParameterCodec;
16
+ constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
17
+ private addToHttpParams;
18
+ private addToHttpParamsRecursive;
19
+ /**
20
+ * Cancel calculation
21
+ * Cancel calculation process by the calculation identifier.
22
+ * @param requestParameters
23
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
24
+ * @param reportProgress flag to report request and response progress.
25
+ */
26
+ cancelPlanCalculation(requestParameters: CancelPlanCalculationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
27
+ httpHeaderAccept?: 'application/json';
28
+ context?: HttpContext;
29
+ }): Observable<any>;
30
+ cancelPlanCalculation(requestParameters: CancelPlanCalculationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
31
+ httpHeaderAccept?: 'application/json';
32
+ context?: HttpContext;
33
+ }): Observable<HttpResponse<any>>;
34
+ cancelPlanCalculation(requestParameters: CancelPlanCalculationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
35
+ httpHeaderAccept?: 'application/json';
36
+ context?: HttpContext;
37
+ }): Observable<HttpEvent<any>>;
38
+ /**
39
+ * Result removal
40
+ * Removal of the planning result by the calculation identifier.
41
+ * @param requestParameters
42
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
43
+ * @param reportProgress flag to report request and response progress.
44
+ */
45
+ deletePlanResult(requestParameters: DeletePlanResultRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
46
+ httpHeaderAccept?: 'application/json';
47
+ context?: HttpContext;
48
+ }): Observable<any>;
49
+ deletePlanResult(requestParameters: DeletePlanResultRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
50
+ httpHeaderAccept?: 'application/json';
51
+ context?: HttpContext;
52
+ }): Observable<HttpResponse<any>>;
53
+ deletePlanResult(requestParameters: DeletePlanResultRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
54
+ httpHeaderAccept?: 'application/json';
55
+ context?: HttpContext;
56
+ }): Observable<HttpEvent<any>>;
57
+ /**
58
+ * Calculation state
59
+ * Read calculation state by the calculation identifier.
60
+ * @param requestParameters
61
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
62
+ * @param reportProgress flag to report request and response progress.
63
+ */
64
+ readPlanCalculationState(requestParameters: ReadPlanCalculationStateRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
65
+ httpHeaderAccept?: 'application/json';
66
+ context?: HttpContext;
67
+ }): Observable<CalculationStateAgro>;
68
+ readPlanCalculationState(requestParameters: ReadPlanCalculationStateRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: 'application/json';
70
+ context?: HttpContext;
71
+ }): Observable<HttpResponse<CalculationStateAgro>>;
72
+ readPlanCalculationState(requestParameters: ReadPlanCalculationStateRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
73
+ httpHeaderAccept?: 'application/json';
74
+ context?: HttpContext;
75
+ }): Observable<HttpEvent<CalculationStateAgro>>;
76
+ /**
77
+ * Getting the result
78
+ * Getting the result based on the calculation identifier.
79
+ * @param requestParameters
80
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
81
+ * @param reportProgress flag to report request and response progress.
82
+ */
83
+ readPlanResult(requestParameters: ReadPlanResultRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
84
+ httpHeaderAccept?: 'application/json';
85
+ context?: HttpContext;
86
+ }): Observable<PlanResultAgro>;
87
+ readPlanResult(requestParameters: ReadPlanResultRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
88
+ httpHeaderAccept?: 'application/json';
89
+ context?: HttpContext;
90
+ }): Observable<HttpResponse<PlanResultAgro>>;
91
+ readPlanResult(requestParameters: ReadPlanResultRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
92
+ httpHeaderAccept?: 'application/json';
93
+ context?: HttpContext;
94
+ }): Observable<HttpEvent<PlanResultAgro>>;
95
+ /**
96
+ * Planning (SYNC)
97
+ * Production plan calculation.
98
+ * @param requestParameters
99
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
100
+ * @param reportProgress flag to report request and response progress.
101
+ */
102
+ runPlanCalculation(requestParameters: RunPlanCalculationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
103
+ httpHeaderAccept?: 'application/json';
104
+ context?: HttpContext;
105
+ }): Observable<PlanResultAgro>;
106
+ runPlanCalculation(requestParameters: RunPlanCalculationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
107
+ httpHeaderAccept?: 'application/json';
108
+ context?: HttpContext;
109
+ }): Observable<HttpResponse<PlanResultAgro>>;
110
+ runPlanCalculation(requestParameters: RunPlanCalculationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
111
+ httpHeaderAccept?: 'application/json';
112
+ context?: HttpContext;
113
+ }): Observable<HttpEvent<PlanResultAgro>>;
114
+ /**
115
+ * Planning (ASYNC)
116
+ * The result can be obtained using the [result](#operation/read_plan_result) method, removing - with [delete](#operation/delete_plan_result).
117
+ * @param requestParameters
118
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
119
+ * @param reportProgress flag to report request and response progress.
120
+ */
121
+ runPlanCalculationAsync(requestParameters: RunPlanCalculationAsyncRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
122
+ httpHeaderAccept?: 'application/json';
123
+ context?: HttpContext;
124
+ }): Observable<CalculationAsyncResultAgro>;
125
+ runPlanCalculationAsync(requestParameters: RunPlanCalculationAsyncRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
126
+ httpHeaderAccept?: 'application/json';
127
+ context?: HttpContext;
128
+ }): Observable<HttpResponse<CalculationAsyncResultAgro>>;
129
+ runPlanCalculationAsync(requestParameters: RunPlanCalculationAsyncRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
130
+ httpHeaderAccept?: 'application/json';
131
+ context?: HttpContext;
132
+ }): Observable<HttpEvent<CalculationAsyncResultAgro>>;
133
+ /**
134
+ * Data validation
135
+ * Checking data before planning.
136
+ * @param requestParameters
137
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
138
+ * @param reportProgress flag to report request and response progress.
139
+ */
140
+ runPlanValidation(requestParameters: RunPlanValidationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
141
+ httpHeaderAccept?: 'application/json';
142
+ context?: HttpContext;
143
+ }): Observable<ValidateResultAgro>;
144
+ runPlanValidation(requestParameters: RunPlanValidationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
145
+ httpHeaderAccept?: 'application/json';
146
+ context?: HttpContext;
147
+ }): Observable<HttpResponse<ValidateResultAgro>>;
148
+ runPlanValidation(requestParameters: RunPlanValidationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
149
+ httpHeaderAccept?: 'application/json';
150
+ context?: HttpContext;
151
+ }): Observable<HttpEvent<ValidateResultAgro>>;
152
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlanService, [null, { optional: true; }, { optional: true; }]>;
153
+ static ɵprov: i0.ɵɵInjectableDeclaration<PlanService>;
154
+ }
@@ -0,0 +1,84 @@
1
+ /**
2
+ * VRt.Agro [AG]
3
+ *
4
+ * The version of the OpenAPI document: 5.11.1826
5
+ * Contact: servicedesk@veeroute.com
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator.
8
+ * Do not edit the class manually.
9
+ */
10
+ import { HttpHeaders } from '@angular/common/http';
11
+ import { Observable } from 'rxjs';
12
+ import { CalculationAsyncResultAgro } from '../model/models';
13
+ import { CalculationStateAgro } from '../model/models';
14
+ import { PlanResultAgro } from '../model/models';
15
+ import { PlanTaskAgro } from '../model/models';
16
+ import { ValidateResultAgro } from '../model/models';
17
+ import { Configuration } from '../configuration';
18
+ export interface CancelPlanCalculationRequestParams {
19
+ id: string;
20
+ }
21
+ export interface DeletePlanResultRequestParams {
22
+ id: string;
23
+ }
24
+ export interface ReadPlanCalculationStateRequestParams {
25
+ id: string;
26
+ }
27
+ export interface ReadPlanResultRequestParams {
28
+ id: string;
29
+ }
30
+ export interface RunPlanCalculationRequestParams {
31
+ planTaskAgro: PlanTaskAgro;
32
+ }
33
+ export interface RunPlanCalculationAsyncRequestParams {
34
+ planTaskAgro: PlanTaskAgro;
35
+ }
36
+ export interface RunPlanValidationRequestParams {
37
+ planTaskAgro: PlanTaskAgro;
38
+ }
39
+ export interface PlanServiceInterface {
40
+ defaultHeaders: HttpHeaders;
41
+ configuration: Configuration;
42
+ /**
43
+ * Cancel calculation
44
+ * Cancel calculation process by the calculation identifier.
45
+ * @param requestParameters
46
+ */
47
+ cancelPlanCalculation(requestParameters: CancelPlanCalculationRequestParams, extraHttpRequestParams?: any): Observable<{}>;
48
+ /**
49
+ * Result removal
50
+ * Removal of the planning result by the calculation identifier.
51
+ * @param requestParameters
52
+ */
53
+ deletePlanResult(requestParameters: DeletePlanResultRequestParams, extraHttpRequestParams?: any): Observable<{}>;
54
+ /**
55
+ * Calculation state
56
+ * Read calculation state by the calculation identifier.
57
+ * @param requestParameters
58
+ */
59
+ readPlanCalculationState(requestParameters: ReadPlanCalculationStateRequestParams, extraHttpRequestParams?: any): Observable<CalculationStateAgro>;
60
+ /**
61
+ * Getting the result
62
+ * Getting the result based on the calculation identifier.
63
+ * @param requestParameters
64
+ */
65
+ readPlanResult(requestParameters: ReadPlanResultRequestParams, extraHttpRequestParams?: any): Observable<PlanResultAgro>;
66
+ /**
67
+ * Planning (SYNC)
68
+ * Production plan calculation.
69
+ * @param requestParameters
70
+ */
71
+ runPlanCalculation(requestParameters: RunPlanCalculationRequestParams, extraHttpRequestParams?: any): Observable<PlanResultAgro>;
72
+ /**
73
+ * Planning (ASYNC)
74
+ * The result can be obtained using the [result](#operation/read_plan_result) method, removing - with [delete](#operation/delete_plan_result).
75
+ * @param requestParameters
76
+ */
77
+ runPlanCalculationAsync(requestParameters: RunPlanCalculationAsyncRequestParams, extraHttpRequestParams?: any): Observable<CalculationAsyncResultAgro>;
78
+ /**
79
+ * Data validation
80
+ * Checking data before planning.
81
+ * @param requestParameters
82
+ */
83
+ runPlanValidation(requestParameters: RunPlanValidationRequestParams, extraHttpRequestParams?: any): Observable<ValidateResultAgro>;
84
+ }
@@ -0,0 +1,74 @@
1
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CheckResultAgro } from '../model/checkResult';
4
+ import { VersionResultAgro } from '../model/versionResult';
5
+ import { Configuration } from '../configuration';
6
+ import { SystemServiceInterface, FileRequestParams } from './systemServiceInterface';
7
+ import * as i0 from "@angular/core";
8
+ export declare class SystemService implements SystemServiceInterface {
9
+ protected httpClient: HttpClient;
10
+ protected basePath: string;
11
+ defaultHeaders: HttpHeaders;
12
+ configuration: Configuration;
13
+ encoder: HttpParameterCodec;
14
+ constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
15
+ private addToHttpParams;
16
+ private addToHttpParamsRecursive;
17
+ /**
18
+ * Checking the availability
19
+ * Checking the service availability.
20
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
21
+ * @param reportProgress flag to report request and response progress.
22
+ */
23
+ check(observe?: 'body', reportProgress?: boolean, options?: {
24
+ httpHeaderAccept?: 'application/json';
25
+ context?: HttpContext;
26
+ }): Observable<CheckResultAgro>;
27
+ check(observe?: 'response', reportProgress?: boolean, options?: {
28
+ httpHeaderAccept?: 'application/json';
29
+ context?: HttpContext;
30
+ }): Observable<HttpResponse<CheckResultAgro>>;
31
+ check(observe?: 'events', reportProgress?: boolean, options?: {
32
+ httpHeaderAccept?: 'application/json';
33
+ context?: HttpContext;
34
+ }): Observable<HttpEvent<CheckResultAgro>>;
35
+ /**
36
+ * Getting the documentation
37
+ * Getting the file with this service documentation.
38
+ * @param requestParameters
39
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
40
+ * @param reportProgress flag to report request and response progress.
41
+ */
42
+ file(requestParameters: FileRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
43
+ httpHeaderAccept?: 'text/html' | 'text/plain' | 'application/json';
44
+ context?: HttpContext;
45
+ }): Observable<string>;
46
+ file(requestParameters: FileRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
47
+ httpHeaderAccept?: 'text/html' | 'text/plain' | 'application/json';
48
+ context?: HttpContext;
49
+ }): Observable<HttpResponse<string>>;
50
+ file(requestParameters: FileRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
51
+ httpHeaderAccept?: 'text/html' | 'text/plain' | 'application/json';
52
+ context?: HttpContext;
53
+ }): Observable<HttpEvent<string>>;
54
+ /**
55
+ * Getting the service version
56
+ * Getting the service version.
57
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
58
+ * @param reportProgress flag to report request and response progress.
59
+ */
60
+ version(observe?: 'body', reportProgress?: boolean, options?: {
61
+ httpHeaderAccept?: 'application/json';
62
+ context?: HttpContext;
63
+ }): Observable<VersionResultAgro>;
64
+ version(observe?: 'response', reportProgress?: boolean, options?: {
65
+ httpHeaderAccept?: 'application/json';
66
+ context?: HttpContext;
67
+ }): Observable<HttpResponse<VersionResultAgro>>;
68
+ version(observe?: 'events', reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: 'application/json';
70
+ context?: HttpContext;
71
+ }): Observable<HttpEvent<VersionResultAgro>>;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<SystemService, [null, { optional: true; }, { optional: true; }]>;
73
+ static ɵprov: i0.ɵɵInjectableDeclaration<SystemService>;
74
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * VRt.Agro [AG]
3
+ *
4
+ * The version of the OpenAPI document: 5.11.1826
5
+ * Contact: servicedesk@veeroute.com
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator.
8
+ * Do not edit the class manually.
9
+ */
10
+ import { HttpHeaders } from '@angular/common/http';
11
+ import { Observable } from 'rxjs';
12
+ import { CheckResultAgro } from '../model/models';
13
+ import { VersionResultAgro } from '../model/models';
14
+ import { Configuration } from '../configuration';
15
+ export interface FileRequestParams {
16
+ filename: string;
17
+ }
18
+ export interface SystemServiceInterface {
19
+ defaultHeaders: HttpHeaders;
20
+ configuration: Configuration;
21
+ /**
22
+ * Checking the availability
23
+ * Checking the service availability.
24
+ */
25
+ check(extraHttpRequestParams?: any): Observable<CheckResultAgro>;
26
+ /**
27
+ * Getting the documentation
28
+ * Getting the file with this service documentation.
29
+ * @param requestParameters
30
+ */
31
+ file(requestParameters: FileRequestParams, extraHttpRequestParams?: any): Observable<string>;
32
+ /**
33
+ * Getting the service version
34
+ * Getting the service version.
35
+ */
36
+ version(extraHttpRequestParams?: any): Observable<VersionResultAgro>;
37
+ }
@@ -0,0 +1,11 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { Configuration } from './configuration';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LssAgroApiModule {
6
+ static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<LssAgroApiModule>;
7
+ constructor(parentModule: LssAgroApiModule, http: HttpClient);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LssAgroApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LssAgroApiModule, never, never, never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<LssAgroApiModule>;
11
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "mapping": [
3
+ {
4
+ "method": "POST",
5
+ "uri": "/agro/plan/calculation",
6
+ "operation_id": "run_plan_calculation",
7
+ "group": "PLAN"
8
+ },
9
+ {
10
+ "method": "POST",
11
+ "uri": "/agro/plan/calculation_async",
12
+ "operation_id": "run_plan_calculation_async",
13
+ "group": "PLAN"
14
+ },
15
+ {
16
+ "method": "GET",
17
+ "uri": "/agro/plan/calculation_async/{id}",
18
+ "operation_id": "read_plan_calculation_state",
19
+ "group": "TRACE"
20
+ },
21
+ {
22
+ "method": "DELETE",
23
+ "uri": "/agro/plan/calculation_async/{id}",
24
+ "operation_id": "cancel_plan_calculation",
25
+ "group": "TRACE"
26
+ },
27
+ {
28
+ "method": "GET",
29
+ "uri": "/agro/plan/result/{id}",
30
+ "operation_id": "read_plan_result",
31
+ "group": "TRACE"
32
+ },
33
+ {
34
+ "method": "DELETE",
35
+ "uri": "/agro/plan/result/{id}",
36
+ "operation_id": "delete_plan_result",
37
+ "group": "TRACE"
38
+ },
39
+ {
40
+ "method": "POST",
41
+ "uri": "/agro/plan/validation",
42
+ "operation_id": "run_plan_validation",
43
+ "group": "VALIDATE"
44
+ },
45
+ {
46
+ "method": "GET",
47
+ "uri": "/agro/system/check",
48
+ "operation_id": "check",
49
+ "group": "NOTRACE"
50
+ },
51
+ {
52
+ "method": "GET",
53
+ "uri": "/agro/system/version",
54
+ "operation_id": "version",
55
+ "group": "NOTRACE"
56
+ },
57
+ {
58
+ "method": "GET",
59
+ "uri": "/agro/file/{filename}",
60
+ "operation_id": "file",
61
+ "group": "NOTRACE"
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,80 @@
1
+ import { HttpParameterCodec } from '@angular/common/http';
2
+ export interface ConfigurationParameters {
3
+ /**
4
+ * @deprecated Since 5.0. Use credentials instead
5
+ */
6
+ apiKeys?: {
7
+ [key: string]: string;
8
+ };
9
+ username?: string;
10
+ password?: string;
11
+ /**
12
+ * @deprecated Since 5.0. Use credentials instead
13
+ */
14
+ accessToken?: string | (() => string);
15
+ basePath?: string;
16
+ withCredentials?: boolean;
17
+ encoder?: HttpParameterCodec;
18
+ /**
19
+ * The keys are the names in the securitySchemes section of the OpenAPI
20
+ * document. They should map to the value used for authentication
21
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
22
+ */
23
+ credentials?: {
24
+ [key: string]: string | (() => string | undefined);
25
+ };
26
+ }
27
+ export declare class Configuration {
28
+ /**
29
+ * @deprecated Since 5.0. Use credentials instead
30
+ */
31
+ apiKeys?: {
32
+ [key: string]: string;
33
+ };
34
+ username?: string;
35
+ password?: string;
36
+ /**
37
+ * @deprecated Since 5.0. Use credentials instead
38
+ */
39
+ accessToken?: string | (() => string);
40
+ basePath?: string;
41
+ withCredentials?: boolean;
42
+ encoder?: HttpParameterCodec;
43
+ /**
44
+ * The keys are the names in the securitySchemes section of the OpenAPI
45
+ * document. They should map to the value used for authentication
46
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
47
+ */
48
+ credentials: {
49
+ [key: string]: string | (() => string | undefined);
50
+ };
51
+ constructor(configurationParameters?: ConfigurationParameters);
52
+ /**
53
+ * Select the correct content-type to use for a request.
54
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
55
+ * If no content type is found return the first found type if the contentTypes is not empty
56
+ * @param contentTypes - the array of content types that are available for selection
57
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
58
+ */
59
+ selectHeaderContentType(contentTypes: string[]): string | undefined;
60
+ /**
61
+ * Select the correct accept content-type to use for a request.
62
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
63
+ * If no content type is found return the first found type if the contentTypes is not empty
64
+ * @param accepts - the array of content types that are available for selection.
65
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
66
+ */
67
+ selectHeaderAccept(accepts: string[]): string | undefined;
68
+ /**
69
+ * Check if the given MIME is a JSON MIME.
70
+ * JSON MIME examples:
71
+ * application/json
72
+ * application/json; charset=UTF8
73
+ * APPLICATION/JSON
74
+ * application/vnd.company+json
75
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
76
+ * @return True if the given MIME is JSON, false otherwise.
77
+ */
78
+ isJsonMime(mime: string): boolean;
79
+ lookupCredential(key: string): string | undefined;
80
+ }