-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
106 lines (100 loc) · 1.98 KB
/
types.d.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
export interface Information {
contact: Contact;
links: Link[];
}
export interface Meta {
home: MetaLanguage;
imprint: MetaLanguage;
}
export interface MetaLanguage {
[key: string]: MetaInfo;
}
export interface MetaInfo {
title: string;
description?: string;
}
export interface Content {
profile: string[];
intro: Intro;
sections: SectionsEntity[];
skills: SkillsEntity[];
projects: ProjectsEntity[];
employment: EmploymentEntity[];
education: EducationEntity[];
testimonials: TestimonialsEntity[];
}
export interface Contact {
name: string;
street: string;
zip: number;
location: string;
phone: string;
mail: string;
web: string;
birthdate: string;
}
export interface Link {
id: string;
url: string;
usage: Usage[];
}
type Usage = 'intro' | 'contact';
export interface Intro {
h2: string;
p: string[];
}
export interface SectionsEntity {
id: string;
h2: string;
sub: string;
p: string[];
}
export interface ContactInfo {
email: string;
phone: string;
socialMedia: SocialMedia;
}
export interface SocialMedia {
twitter: string;
linkedin: string;
github: string;
}
export interface SkillsEntity {
category: string;
label: string;
period?: number;
level?: string;
percentage?: number;
top?: boolean;
}
export interface ProjectsEntity {
start: string;
end?: string;
position: string;
company?: string;
location?: string;
description: string;
skills?: string[];
projectLink?: string;
}
export interface EmploymentEntity {
start: string;
end: string;
position: string;
company: string;
location: string;
description: string;
skills?: string[];
}
export interface EducationEntity {
date: number;
title: string;
field?: string;
institute?: string;
location?: string;
}
export interface TestimonialsEntity {
name: string;
company: string;
statement?: string[];
}