- add DatasetApiService wit HttpService
- Interfaces for stations and phenomena
This commit is contained in:
parent
5740a5ddc3
commit
7857e2c5bb
13 changed files with 2495 additions and 1446 deletions
5
src/shared/models/http-requests.ts
Normal file
5
src/shared/models/http-requests.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
export interface HttpRequestOptions {
|
||||
forceUpdate?: boolean;
|
||||
basicAuthToken?: string;
|
||||
expirationAtMs?: number;
|
||||
}
|
4
src/shared/models/phenomenon.ts
Normal file
4
src/shared/models/phenomenon.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface Phenomenon {
|
||||
id: string;
|
||||
label: string;
|
||||
}
|
34
src/shared/models/station.ts
Normal file
34
src/shared/models/station.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
|
||||
export class Station {
|
||||
public id: string;
|
||||
public label: string;
|
||||
public geometry: GeoJSON.GeometryObject;
|
||||
public properties: StationProperties;
|
||||
}
|
||||
|
||||
export interface StationProperties {
|
||||
id: string;
|
||||
label: string;
|
||||
// timeseries: TimeseriesCollection | Timeseries;
|
||||
}
|
||||
|
||||
// export class TimeseriesCollection {
|
||||
// [key: string]: ParameterConstellation;
|
||||
// }
|
||||
|
||||
class Timeseries {
|
||||
public id: string;
|
||||
public label: string;
|
||||
public url: string;
|
||||
public uom: string;
|
||||
public internalId: string;
|
||||
public firstValue;
|
||||
public lastValue;
|
||||
public referenceValues;
|
||||
public station: Station;
|
||||
public parameters;
|
||||
public statusIntervals?;
|
||||
public hasData = false;
|
||||
public renderingHints;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue