-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.ts
111 lines (107 loc) · 1.71 KB
/
schema.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
107
108
109
110
111
export interface PortfolioDto {
about: {
desc: Text[];
},
headline: {
desc: Text[]
},
projects: {
name: string,
desc: Text[],
link: string
startDate: string,
endDate: string,
}[],
socials: {
name: string,
desc: Text[],
link: string
}[],
articles: {
name: string,
desc: Text[],
link: string,
}[],
publications: {
name: string,
desc: Text[],
link: string,
}[],
press: {
name: string,
desc: Text[],
link: string
}[],
research: {
name: string,
desc: Text[],
link: string,
startDate: string,
endDate: string
}[],
positions: {
name: string,
desc: Text[],
link: string,
startDate: string,
endDate: string,
files: File[]
}[],
awards: {
name: string,
dateReceived: string,
}[],
certifications: {
name: string,
link: string,
dateReceived: string,
}[],
education: {
name: string,
desc: Text[];
link: string;
startDate: string;
endDate: string;
}[],
skills: {
name: string
}[]
}
export interface Page {
id: any,
name?: string,
desc?: Text[],
type?: string,
link?: string,
published?: boolean,
startDate?: string,
endDate?: string
files?: File[];
}
export interface Text {
text:string,
link: { url:string} | null,
bold: boolean,
italic: boolean,
strikethrough: boolean,
underline: boolean,
code: boolean,
color: "default" | "red"
}
export interface File {
url: string
}
export type Category =
| "about"
| "headline"
| "project"
| "social"
| "article"
| "publication"
| "press"
| "research"
| "position"
| "award"
| "certification"
| "education"
| "skill"