forked from paritytech/polkadot-hub-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
39 lines (37 loc) · 935 Bytes
/
types.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
export type Employee = {
id: string
displayName: string
firstName: string
lastName: string
preferredName: string | null
jobTitle: string
workPhone: string | null
workEmail: string
department: string
location: string
division: string
pronouns: string | null
supervisor: string
photoUploaded: boolean
photoUrl: string
canUploadPhoto: number
customRiotID: string
}
export type EmployeeWithExtraFields = Pick<
Employee,
'id' | 'workEmail' | 'firstName' | 'lastName'
> & { [key: string]: any }
export type EmployeeTimeOffRequest = {
id: string
employeeId: string
status: {
status: 'approved' | 'denied' | 'superseded' | 'requested' | 'canceled'
}
name: string
start: string // YYYY-MM-DD
end: string
created: string
type: { id: string; name: string }
amount: { unit: 'days' | 'hours'; amount: '6' }
dates: Record<string, string> // { 'YYYY-MM-DD': '0' | '1' | '4' | ... }
}