-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
38 lines (34 loc) · 696 Bytes
/
types.ts
File metadata and controls
38 lines (34 loc) · 696 Bytes
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
export enum Tab {
Time = 'Time',
Absence = 'Absence',
Timesheet = 'Timesheet',
}
export interface UserInfo {
firstName: string;
lastName: string;
employeeId: string;
deviceName: string;
}
export interface TimeLog extends UserInfo {
action: 'IN' | 'OUT';
timestamp: string;
rawTimestamp: number;
latitude?: number;
longitude?: number;
accuracy?: number;
deviceId: string;
userAgent: string;
duration?: string;
}
export interface AbsenceLog extends UserInfo {
date: string;
reason: string;
submitted: string;
}
export interface LocationState {
latitude?: number;
longitude?: number;
accuracy?: number;
error?: string;
status: string;
}