-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.tsx
95 lines (84 loc) · 1.47 KB
/
types.tsx
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
export type Position = {
lat: number;
lng: number;
};
export type PowerStation = {
id: string;
name: string;
fuelType: FuelType;
country: string;
region: Region;
position: Position;
age: Age;
description?: string;
powerOutput?: number;
operator?: Entity;
owner?: Entity;
images?: {
large: Image;
full: Image;
};
};
export type Region = {
id: string;
name: string;
};
export type Country = {
id: string;
name: string;
};
export type FuelType = {
id: string;
name: string;
shorthand: string;
rGBColor: string;
icon: string;
};
export type PowerStationMarker = {
colour: string;
powerStation: PowerStation;
};
export type Marks = {
value: number;
label: string;
};
export type ItemLabel = {
[key: string]: { label: string };
};
export type Entity = {
id: string;
name: string;
controversies?: string;
role_id: string[];
country_id?: string[];
leadership?: Entity[];
entityType?: string;
role?: string;
country?: Country;
image?: string;
details?: string;
established?: Date;
};
export type Age = {
commissionStart?: Date;
commissionEnd: Date;
decommissionStart?: Date;
decommissionEnd?: Date;
years: number;
};
export type EntityRole = {
id: string;
role: string;
entity_id: string;
entity?: Entity;
personPolitician_id: string;
personPolitician?: Entity;
};
export type Image = {
id: string;
url: string;
filename: string;
width: number;
height: number;
type: string;
};