-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
99 lines (98 loc) · 1.86 KB
/
types.d.ts
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
96
97
98
99
export interface LatestIndonesianData {
DataTotalKumulatif: {
OrangDalamPemantauan: number;
PasienDalamPengawasan: number;
TotalSpesimen: number;
TotalSpesimenPositif: number;
TotalSpesimenNegatif: number;
};
Total: {
JumlahPositif: number;
JumlahDirawat: number;
JumlahSembuh: number;
JumlahMeninggal: number;
};
Penambahan: {
TimeStamp: string;
Positif: number;
Sembuh: number;
Meninggal: number;
Dirawat: number;
};
Harian: DailyUpdateData[];
}
export interface DailyUpdateData {
UnixTimeStamp: number;
ISOTimeStamp: string;
Penambahan: {
Positif: number;
Sembuh: number;
Meninggal: number;
Dirawat: number;
};
Kumulatif: {
Positif: number;
Sembuh: number;
Meninggal: number;
Dirawat: number;
};
}
export interface LatestProvinceData {
LastUpdate: string;
ProvinceList: ProvinceData[];
}
export interface ProvinceData {
ProvinceName:
| "DKI JAKARTA"
| "JAWA BARAT"
| "JAWA TENGAH"
| "JAWA TIMUR"
| "BANTEN"
| "DAERAH ISTIMEWA YOGYAKARTA"
| "KALIMANTAN TIMUR"
| "BALI"
| "RIAU"
| "SUMATERA UTARA"
| "SULAWESI SELATAN"
| "SUMATERA BARAT"
| "KALIMANTAN SELATAN"
| "SUMATERA SELATAN"
| "NUSA TENGGARA TIMUR"
| "LAMPUNG"
| "KEPULAUAN RIAU"
| "KEPULAUAN BANGKA BELITUNG"
| "KALIMANTAN BARAT"
| "SULAWESI TENGAH"
| "KALIMANTAN TENGAH"
| "SULAWESI UTARA"
| "PAPUA"
| "ACEH"
| "KALIMANTAN UTARA"
| "NUSA TENGGARA BARAT"
| "JAMBI"
| "PAPUA BARAT"
| "BENGKULU"
| "SULAWESI TENGGARA"
| "MALUKU"
| "SULAWESI BARAT"
| "MALUKU UTARA"
| "GORONTALO"
| "LAMPUNG TENGAH";
Total: {
Kasus: number;
Sembuh: number;
Meninggal: number;
Dirawat: number;
};
Penambahan: {
Positif: number;
Sembuh: number;
Meninggal: number;
};
PenambahanHarian: DailyProvinceUpdate[];
}
export interface DailyProvinceUpdate {
Tanggal: string;
Penambahan: number;
PenambahanKumulatif: number;
}