api/src/types.ts

37 lines · 679 bytes

 1
 2export interface ShortService {
 3  name: string;
 4  description: string;
 5  url: string;
 6}
 7
 8export interface Service extends ShortService {
 9  github?: string;
10  codeberg?: string;
11  git?: string;
12  icon?: string;
13  followWith?: string;
14  securityAudited?: boolean;
15  openSource?: boolean;
16  acceptsCrypto?: boolean;
17  tosdrId?: number;
18}
19
20export interface Section {
21  name: string;
22  services: Service[];
23  intro?: string;
24  notableMentions?: ShortService[] | string;
25  furtherInfo?: string;
26  wordOfWarning?: string;
27  alternativeTo?: string[];
28}
29
30export interface Category {
31  name: string;
32  sections: Section[];
33}
34
35export interface AwesomePrivacy {
36  categories: Category[];
37}