-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
42 lines (36 loc) · 868 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
40
41
42
/**
* Format: yyyy/mm/dd
*/
export type TimeDataDateString = `${number}/${number}/${number}`
export interface TimeData {
/**
* The start date for the time data.
* Format: yyyy/mm/dd
*/
dateMin?: TimeDataDateString
/**
* The end date for the time data.
* Format: yyyy/mm/dd
*/
dateMax?: TimeDataDateString
/**
* Data from the 'Time Data' sheet.
* Keyed by Employee Number.
*/
timeData: Record<string, TimeDataEmployee>
/**
* Data from the 'Approved Time Data' sheet.
* Keyed by Employee Number.
*/
approvedTimeData: Record<string, TimeDataEmployee>
}
export interface TimeDataEmployee {
employeeNumber: string
employeeName: string
payCodes: Record<string, TimeDataPayCode>
}
export interface TimeDataPayCode {
payCode: string
payCodeDescription: string
hours: Record<TimeDataDateString, number>
}