-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.ts
85 lines (79 loc) · 1.57 KB
/
types.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
export interface Roms {
name: string;
id: string;
about: string;
website: string;
wiki: string;
download: string;
}
export interface Devices {
brand?: string;
name?: string;
codename: string;
specs: Record<string, string>;
roms: ROM[];
}
export interface ROM {
id: ID;
photo?: string;
gapps?: string;
recovery?: string;
maintainer?: string;
changelog?: null | string;
cpu?: string;
ram?: string;
wifi?: string;
supported_versions?: SupportedVersion[];
repostories?: string[];
url?: string;
group?: string;
xda_thread?: string;
maintainer_url?: string;
maintainer_name?: string;
active?: boolean;
download?: string;
github?: string;
donation_link?: string;
romtype?: Romtype;
version?: string;
developer?: string;
}
export enum ID {
Ancientos = 'ancientos',
Aospk = 'AOSPK',
Arrowos = 'arrowos',
Blissroms = 'blissroms',
CalyxOS = 'CalyxOS',
Calyxos = 'calyxos',
Cherishos = 'cherishos',
Crdroid = 'crdroid',
Dotos = 'dotos',
Evolutionx = 'evolutionx',
Grapheneos = 'grapheneos',
Havocos = 'havocos',
Legionos = 'legionos',
Lineageos = 'lineageos',
Pixelexperience = 'pixelexperience',
Pixelextended = 'pixelextended',
Pixyos = 'pixyos',
Potato = 'potato',
Revengeos = 'revengeos',
Sakura = 'sakura',
Sparkos = 'sparkos',
Syberia = 'syberia',
}
export enum Romtype {
Official = 'OFFICIAL',
}
export interface SupportedVersion {
version_code: VersionCode;
xda_thread?: string;
stable?: boolean;
deprecated: boolean;
telegram_url?: string;
}
export enum VersionCode {
Eleven = 'eleven',
ElevenPlus = 'eleven_plus',
Twelve = 'twelve',
}