- add DatasetApiService wit HttpService

- Interfaces for stations and phenomena
This commit is contained in:
Arno Kaimbacher 2021-08-24 13:38:52 +02:00
parent 5740a5ddc3
commit 7857e2c5bb
13 changed files with 2495 additions and 1446 deletions

View file

@ -0,0 +1,5 @@
export interface HttpRequestOptions {
forceUpdate?: boolean;
basicAuthToken?: string;
expirationAtMs?: number;
}

View file

@ -0,0 +1,4 @@
export interface Phenomenon {
id: string;
label: string;
}

View 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;
}