web/src/types/Service.ts

47 lines · 817 bytes

 1
 2
 3export interface ShortService {
 4  name: string;
 5  description: string;
 6  url: string;
 7}
 8
 9export interface Service {
10  name: string;
11  description: string;
12  url: string;
13  github?: string;
14  icon?: string;
15  followWith?: string;
16  securityAudited?: boolean;
17  openSource?: boolean;
18  acceptsCrypto?: boolean;
19  tosdrId?: string;
20  iosApp?: string;
21  androidApp?: string;
22  discordInvite?: string;
23  subreddit?: string;
24}
25
26export interface Section {
27  name: string;
28  services: Service[];
29  intro?: string;
30  notableMentions?: ShortService[] | string;
31  furtherInfo?: string;
32  wordOfWarning?: string;
33  alternativeTo?: string[];
34}
35
36export interface Category {
37  name: string;
38  sections: Section[];
39}
40
41
42export interface AwesomePrivacy {
43  categories: Array<{
44    name: string;
45    sections: Array<Section>;
46  }>;
47}