api/src/types.ts

35 lines · 642 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  icon?: string;
11  followWith?: string;
12  securityAudited?: boolean;
13  openSource?: boolean;
14  acceptsCrypto?: boolean;
15  tosdrId?: number;
16}
17
18export interface Section {
19  name: string;
20  services: Service[];
21  intro?: string;
22  notableMentions?: ShortService[] | string;
23  furtherInfo?: string;
24  wordOfWarning?: string;
25  alternativeTo?: string[];
26}
27
28export interface Category {
29  name: string;
30  sections: Section[];
31}
32
33export interface AwesomePrivacy {
34  categories: Category[];
35}