web/src/types/Service.ts

48 lines · 874 bytes

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