DataTypes.ts 1.18 KB
Newer Older
Hanadi's avatar
Hanadi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export type FrostProjection = string[];

export type FrostBaseEntity = {
    "@iot.id"?: string;
    [key: string]: any;
}

export type FrostThing = FrostBaseEntity & {
    name?: string;
    description?: string;
    properties?: any;
}
export type GeoLocation = any;

export type FrostLocation = FrostBaseEntity & {
    name?: string;
    description?: string;
    encodingType?: string;
    location?: GeoLocation;
    properties?: any;
}

export type FrostFeatureOfInterest = FrostBaseEntity & {
    name?: string;
    description?: string;
    encodingType?: string;
    feature?: GeoLocation;
    properties?: any;
}

export type FrostDatastreamInput = FrostBaseEntity & {
    name: string;
    description: string;
    observationType: string;
    unitOfMeasurement: {
        name: string;
        symbol: string;
        definition: string;
    };
    ObservedProperty: FrostBaseEntity;
    Sensor: FrostBaseEntity;
    Thing: FrostBaseEntity;
}

export type FrostObservationInput = FrostBaseEntity & {
    phenomenonTime: string;
    result: number;
    resultQuality: number;
    resultTime: string;
    FeatureOfInterest: FrostBaseEntity;
    parameters?: any;
    Datastream: FrostBaseEntity;
}