-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
64 lines (54 loc) · 1.12 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { HTMLAttributes } from 'react'
export type DayTypeID = 'F' | 'S' | ''
export type DayType =
| 'Fin de Semana'
| 'Dia Laborable'
| 'Fin de Semana'
| 'Festivo Laboral'
export type DayColor = 'AZUL' | 'ROJO' | 'BLANCO'
export interface CalendarItem {
fecha: number
tipoId: DayTypeID
tipoDs: DayType
color: DayColor
}
export interface Calendar {
errorCode: number
errorMessage: null | string
data: CalendarItem[]
}
export interface DayOfMonth {
day: number
type: string
id: DayTypeID
color: DayColor
}
export interface EmployeeDetails {
id: number
first_name: string
last_name: string
total_holidays: number
}
export interface Employee {
'//': string
data: EmployeeDetails[]
}
export interface HolidaysCalendarProps {
employees: EmployeeDetails[] | null
// calendar: CalendarItem[] | null
}
export interface IconProps extends HTMLAttributes<SVGElement> {
name: 'user'
size?: string
width?: string
height?: string
href?: string
}
export interface VacationsTaken {
[id: number]: {
[month: string]: number[]
}
}
export interface VacationsLeft {
[id: number]: number
}