-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
69 lines (63 loc) · 1.42 KB
/
index.js
File metadata and controls
69 lines (63 loc) · 1.42 KB
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
import { z } from "zod"
export const Time = z.union([
z.int(),
z.object({
from: z.int(),
to: z.int().optional(),
})
])
export const Education = z.array(
z.object({
place: z.string(),
time: Time,
certification: z.union([
z.string(),
z.object({
title: z.string(),
extra: z.string(),
}),
]),
details: z.array(
z.union([
z.string(),
z.object({
title: z.string(),
content: z.string(),
})
])
)
})
)
export const Experience = z.array(
z.object({
place: z.string(),
positions: z.array(
z.object({
time: Time,
title: z.string(),
department: z.string().optional(),
details: z.array(z.string()),
})
)
})
)
export const Meta = z.object({
name: z.string(),
email: z.string().optional(),
phone: z.string().optional(),
location: z.string(),
websites: z.array(z.url()),
personal: z.string()
})
export const TechnicalSkills = z.array(
z.object({
headline: z.string(),
details: z.string()
})
)
export const Data = z.object({
education: Education,
experience: Experience,
meta: Meta,
technicalSkills: TechnicalSkills
})