@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
package/README.md
CHANGED
|
@@ -1,162 +1,163 @@
|
|
|
1
|
-
# @veeroute/lss-agro-angular@7.
|
|
1
|
+
# @veeroute/lss-agro-angular@7.22.2904
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
Veeroute Agro API. # Description The service is designed to calculate the work plan of production facilities. ## Objects overview  ### Field - produces a certain crop of a certain moisture content - products from the field can only be moved to the Elevator or Factory ### Elevator - consists of Gates, Dryers, short-term and long-term storage areas - dries the grain (if the moisture content of the crop is more than acceptable) - stores dry grain in short-term storage places (warehouses), while unloading and loading grain is allowed within one day - stores dry grain in long-term storage places (sleeves, trenches, mounds) - when stored in one storage, only one type of culture can be located - sells surplus grain to the Market - production processes inside the facility: drying, loading / unloading to a storage location, storage ### Factory - consists of Gates, Dryers, Bunkers, Consumers - [if drying is present] dries the grain (if the moisture content of the crop is more than allowed) - stores dry grain in Bunkers (short-term storage tied to a specific crop) - maintains a minimum supply of grain for consumption in the Bunkers - Consumes grain from Bunkers - buys the missing grain from the Market - production processes inside the facility: drying, loading / unloading to a storage location, storage, consumption ### Market - buys grain from elevators - sells grain to factories ## Project The project reflects the planned sequence of operations on agricultural crops, the types of operations are described below. ### HARVEST Crop harvesting: - between production facilities (Field and Elevator or Field) - the operation takes place within one day - on the Field there is a determination of grain moisture | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Field | - | | Destination | Elevator or Factory | Gate | ### DRY Drying culture: - inside the production facility (Elevator or Field) - duration of the operation - days - during the drying process, the mass and type of humidity changes (WET -> DRY) - the source indicates the mass of raw culture - in the appointment, the resulting mass of dry culture is indicated | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Elevator or Factory | Gate | | Destination | Elevator or Factory | Dryer | ### LOAD Loading culture from the Gate to the Storage Location (long-term, short-term, silo): - between parts of one production facility (Elevator or Field) - the operation takes place within one day | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|--------------------------------------------------| | Source | Elevator or Factory | Gate or Dryer | | Destination | Elevator or Factory | Storage location (long-term, short-term, bunker) | ### UNLOAD Unloading the culture from the storage place to the gate: - between parts of one production facility (Elevator) - the operation takes place within one day | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|--------------------------------------------------| | Source | Elevator | Storage location (long-term, short-term, bunker) | | Destination | Elevator | Gate | ### STORE Culture storage: - the operation takes place within one day - storage location does not change | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|--------------------------------------------------| | Source | Elevator or Factory | Storage location (long-term, short-term, bunker) | | Destination | Elevator or Factory | The same storage location | ### RELOCATE Transportation between production facilities: - between production facilities (Elevator and Field) - the operation takes place within one day | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Elevator | Gate | | Destination | Factory | Gate | ### CONSUMPTION Field crop consumption: - between parts of one production facility (Field) - the operation takes place within one day - consumption comes from the Bunker - in addition, we can consume directly from the Gate or Dryer without laying in the Bunker | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Factory | Hopper or Gate or Dryer | | Destination | Factory | Consumer | ### SELL Sale of culture: - between production facilities (Elevator and Market) - the operation takes place within one day | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Elevator | Gate | | Destination | Market | Contract | ### BUY Buying culture: - between production facilities (Market and Factory) - the operation takes place within one day | | Object (target_key) | Subobject (target_detail_key) | |-------------|---------------------|-------------------------------| | Source | Market | Contract | | Destination | Factory | Gate | ## Entity relationship diagram 
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The version of the OpenAPI document: 7.22.2904
|
|
6
6
|
|
|
7
|
+
## Building
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
// without configuring providers
|
|
10
|
-
import { LssAgroApiModule } from '@veeroute/lss-agro-angular';
|
|
11
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
9
|
+
To install the required dependencies and to build the typescript sources run:
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 {}
|
|
11
|
+
```console
|
|
12
|
+
npm install
|
|
13
|
+
npm run build
|
|
25
14
|
```
|
|
26
15
|
|
|
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
|
-
```
|
|
16
|
+
## Publishing
|
|
46
17
|
|
|
47
|
-
|
|
48
|
-
// configuring providers with an authentication service that manages your access tokens
|
|
49
|
-
import { LssAgroApiModule, Configuration } from '@veeroute/lss-agro-angular';
|
|
18
|
+
First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!)
|
|
50
19
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 {}
|
|
20
|
+
## Consuming
|
|
21
|
+
|
|
22
|
+
Navigate to the folder of your consuming project and run one of next commands.
|
|
23
|
+
|
|
24
|
+
_published:_
|
|
25
|
+
|
|
26
|
+
```console
|
|
27
|
+
npm install @veeroute/lss-agro-angular@7.22.2904 --save
|
|
70
28
|
```
|
|
71
29
|
|
|
72
|
-
|
|
73
|
-
import { DefaultApi } from '@veeroute/lss-agro-angular';
|
|
30
|
+
_without publishing (not recommended):_
|
|
74
31
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
32
|
+
```console
|
|
33
|
+
npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
|
|
78
34
|
```
|
|
79
35
|
|
|
80
|
-
|
|
81
|
-
This is to ensure that all services are treated as singletons.
|
|
36
|
+
_It's important to take the tgz file, otherwise you'll get trouble with links on windows_
|
|
82
37
|
|
|
83
|
-
|
|
38
|
+
_using `npm link`:_
|
|
84
39
|
|
|
85
|
-
In
|
|
86
|
-
you can create an alias name when importing the modules
|
|
87
|
-
in order to avoid naming conflicts:
|
|
40
|
+
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
88
41
|
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
42
|
+
```console
|
|
43
|
+
npm link
|
|
44
|
+
```
|
|
93
45
|
|
|
94
|
-
|
|
95
|
-
imports: [
|
|
96
|
-
LssAgroApiModule,
|
|
97
|
-
OtherApiModule,
|
|
98
|
-
// make sure to import the HttpClientModule in the AppModule only,
|
|
99
|
-
// see https://github.com/angular/angular/issues/20575
|
|
100
|
-
HttpClientModule
|
|
101
|
-
]
|
|
102
|
-
})
|
|
103
|
-
export class AppModule {
|
|
46
|
+
In your project:
|
|
104
47
|
|
|
105
|
-
|
|
48
|
+
```console
|
|
49
|
+
npm link @veeroute/lss-agro-angular
|
|
106
50
|
```
|
|
107
51
|
|
|
108
|
-
|
|
52
|
+
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
53
|
+
Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround.
|
|
54
|
+
Published packages are not effected by this issue.
|
|
55
|
+
|
|
56
|
+
### General usage
|
|
109
57
|
|
|
110
|
-
|
|
58
|
+
In your Angular project:
|
|
111
59
|
|
|
112
60
|
```typescript
|
|
113
|
-
import { BASE_PATH } from '@veeroute/lss-agro-angular';
|
|
114
61
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
62
|
+
import { ApplicationConfig } from '@angular/core';
|
|
63
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
64
|
+
import { provideApi } from '@veeroute/lss-agro-angular';
|
|
65
|
+
|
|
66
|
+
export const appConfig: ApplicationConfig = {
|
|
67
|
+
providers: [
|
|
68
|
+
// ...
|
|
69
|
+
provideHttpClient(),
|
|
70
|
+
provideApi()
|
|
71
|
+
],
|
|
72
|
+
};
|
|
118
73
|
```
|
|
119
74
|
|
|
120
|
-
|
|
75
|
+
**NOTE**
|
|
76
|
+
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
|
77
|
+
```typescript
|
|
78
|
+
import { LssAgroApiModule } from '@veeroute/lss-agro-angular';
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
If different from the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
121
82
|
|
|
122
83
|
```typescript
|
|
123
|
-
import {
|
|
84
|
+
import { ApplicationConfig } from '@angular/core';
|
|
85
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
86
|
+
import { provideApi } from '@veeroute/lss-agro-angular';
|
|
124
87
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
88
|
+
export const appConfig: ApplicationConfig = {
|
|
89
|
+
providers: [
|
|
90
|
+
// ...
|
|
91
|
+
provideHttpClient(),
|
|
92
|
+
provideApi('http://localhost:9999')
|
|
93
|
+
],
|
|
94
|
+
};
|
|
132
95
|
```
|
|
133
96
|
|
|
134
|
-
|
|
97
|
+
```typescript
|
|
98
|
+
// with a custom configuration
|
|
99
|
+
import { ApplicationConfig } from '@angular/core';
|
|
100
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
101
|
+
import { provideApi } from '@veeroute/lss-agro-angular';
|
|
135
102
|
|
|
136
|
-
|
|
103
|
+
export const appConfig: ApplicationConfig = {
|
|
104
|
+
providers: [
|
|
105
|
+
// ...
|
|
106
|
+
provideHttpClient(),
|
|
107
|
+
provideApi({
|
|
108
|
+
withCredentials: true,
|
|
109
|
+
username: 'user',
|
|
110
|
+
password: 'password'
|
|
111
|
+
})
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
```
|
|
137
115
|
|
|
138
116
|
```typescript
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
117
|
+
// with factory building a custom configuration
|
|
118
|
+
import { ApplicationConfig } from '@angular/core';
|
|
119
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
120
|
+
import { provideApi, Configuration } from '@veeroute/lss-agro-angular';
|
|
121
|
+
|
|
122
|
+
export const appConfig: ApplicationConfig = {
|
|
123
|
+
providers: [
|
|
124
|
+
// ...
|
|
125
|
+
provideHttpClient(),
|
|
126
|
+
{
|
|
127
|
+
provide: Configuration,
|
|
128
|
+
useFactory: (authService: AuthService) => new Configuration({
|
|
129
|
+
basePath: 'http://localhost:9999',
|
|
130
|
+
withCredentials: true,
|
|
131
|
+
username: authService.getUsername(),
|
|
132
|
+
password: authService.getPassword(),
|
|
133
|
+
}),
|
|
134
|
+
deps: [AuthService],
|
|
135
|
+
multi: false
|
|
136
|
+
}
|
|
137
|
+
],
|
|
142
138
|
};
|
|
143
139
|
```
|
|
144
140
|
|
|
145
|
-
|
|
141
|
+
### Using multiple OpenAPI files / APIs
|
|
142
|
+
|
|
143
|
+
In order to use multiple APIs generated from different OpenAPI files,
|
|
144
|
+
you can create an alias name when importing the modules
|
|
145
|
+
in order to avoid naming conflicts:
|
|
146
146
|
|
|
147
147
|
```typescript
|
|
148
|
-
import {
|
|
148
|
+
import { provideApi as provideUserApi } from 'my-user-api-path';
|
|
149
|
+
import { provideApi as provideAdminApi } from 'my-admin-api-path';
|
|
150
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
149
151
|
import { environment } from '../environments/environment';
|
|
150
152
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
export class AppModule { }
|
|
153
|
+
export const appConfig: ApplicationConfig = {
|
|
154
|
+
providers: [
|
|
155
|
+
// ...
|
|
156
|
+
provideHttpClient(),
|
|
157
|
+
provideUserApi(environment.basePath),
|
|
158
|
+
provideAdminApi(environment.basePath),
|
|
159
|
+
],
|
|
160
|
+
};
|
|
160
161
|
```
|
|
161
162
|
|
|
162
163
|
### Customizing path parameter encoding
|
package/api/planService.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CalculationAsyncResultAgro } from '../model/calculationAsyncResult';
|
|
4
4
|
import { CalculationStateAgro } from '../model/calculationState';
|
|
@@ -6,17 +6,12 @@ import { PlanResultAgro } from '../model/planResult';
|
|
|
6
6
|
import { PlanTaskAgro } from '../model/planTask';
|
|
7
7
|
import { ValidateResultAgro } from '../model/validateResult';
|
|
8
8
|
import { Configuration } from '../configuration';
|
|
9
|
+
import { BaseService } from '../api.base.service';
|
|
9
10
|
import { PlanServiceInterface, CancelPlanCalculationRequestParams, DeletePlanResultRequestParams, ReadPlanResultRequestParams, ReadPlanStateRequestParams, RunPlanCalculationRequestParams, RunPlanCalculationAsyncRequestParams, RunPlanClipRequestParams, RunPlanValidationRequestParams } from './planServiceInterface';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class PlanService implements PlanServiceInterface {
|
|
12
|
+
export declare class PlanService extends BaseService implements PlanServiceInterface {
|
|
12
13
|
protected httpClient: HttpClient;
|
|
13
|
-
|
|
14
|
-
defaultHeaders: HttpHeaders;
|
|
15
|
-
configuration: Configuration;
|
|
16
|
-
encoder: HttpParameterCodec;
|
|
17
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
18
|
-
private addToHttpParams;
|
|
19
|
-
private addToHttpParamsRecursive;
|
|
14
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
20
15
|
/**
|
|
21
16
|
* Cancel calculation
|
|
22
17
|
* Cancel calculation process by the calculation identifier.
|
package/api/systemService.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CheckResultAgro } from '../model/checkResult';
|
|
4
4
|
import { VersionResultAgro } from '../model/versionResult';
|
|
5
5
|
import { Configuration } from '../configuration';
|
|
6
|
+
import { BaseService } from '../api.base.service';
|
|
6
7
|
import { SystemServiceInterface, FileRequestParams } from './systemServiceInterface';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SystemService implements SystemServiceInterface {
|
|
9
|
+
export declare class SystemService extends BaseService implements SystemServiceInterface {
|
|
9
10
|
protected httpClient: HttpClient;
|
|
10
|
-
|
|
11
|
-
defaultHeaders: HttpHeaders;
|
|
12
|
-
configuration: Configuration;
|
|
13
|
-
encoder: HttpParameterCodec;
|
|
14
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
|
-
private addToHttpParams;
|
|
16
|
-
private addToHttpParamsRecursive;
|
|
11
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
17
12
|
/**
|
|
18
13
|
* Checking the availability
|
|
19
14
|
* Checking the service availability.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VRt.Agro [AG]
|
|
3
|
+
*
|
|
4
|
+
* The version of the OpenAPI document: 7.22.2904
|
|
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, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
|
11
|
+
import { Configuration } from './configuration';
|
|
12
|
+
export declare class BaseService {
|
|
13
|
+
protected basePath: string;
|
|
14
|
+
defaultHeaders: HttpHeaders;
|
|
15
|
+
configuration: Configuration;
|
|
16
|
+
encoder: HttpParameterCodec;
|
|
17
|
+
constructor(basePath?: string | string[], configuration?: Configuration);
|
|
18
|
+
protected canConsumeForm(consumes: string[]): boolean;
|
|
19
|
+
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep?: boolean): HttpParams;
|
|
20
|
+
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep?: boolean): HttpParams;
|
|
21
|
+
}
|
package/configuration.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
1
|
+
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
|
2
2
|
import { Param } from './param';
|
|
3
3
|
export interface ConfigurationParameters {
|
|
4
4
|
/**
|
|
@@ -71,7 +71,7 @@ export declare class Configuration {
|
|
|
71
71
|
credentials: {
|
|
72
72
|
[key: string]: string | (() => string | undefined);
|
|
73
73
|
};
|
|
74
|
-
constructor(
|
|
74
|
+
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }?: ConfigurationParameters);
|
|
75
75
|
/**
|
|
76
76
|
* Select the correct content-type to use for a request.
|
|
77
77
|
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
@@ -100,5 +100,7 @@ export declare class Configuration {
|
|
|
100
100
|
*/
|
|
101
101
|
isJsonMime(mime: string): boolean;
|
|
102
102
|
lookupCredential(key: string): string | undefined;
|
|
103
|
+
addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
|
|
104
|
+
addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams;
|
|
103
105
|
private defaultEncodeParam;
|
|
104
106
|
}
|