ymanager/webapp/src/app/models/requests.model.ts @ 405b9b17
1 |
import {RequestStatus, VacationType} from '../enums/common.enum'; |
---|---|
2 |
import {Time} from '@angular/common'; |
3 |
|
4 |
export interface VacationRequest { |
5 |
id: number; |
6 |
firstName: string; |
7 |
lastName: string; |
8 |
date: Date; |
9 |
from: Time; |
10 |
to: Time; |
11 |
type: VacationType; |
12 |
timestamp: Date; |
13 |
}
|
14 |
|
15 |
|
16 |
export interface AuthorizationRequest { |
17 |
id: number; |
18 |
firstName: string; |
19 |
lastName: string; |
20 |
timestamp: Date; |
21 |
}
|
22 |
|
23 |
/**
|
24 |
* bude se mazat
|
25 |
*/
|
26 |
export interface Requests { |
27 |
vacation: [ |
28 |
{
|
29 |
id: number; |
30 |
user: { |
31 |
name: { |
32 |
first: string; |
33 |
last: string; |
34 |
};
|
35 |
};
|
36 |
date: Date; |
37 |
from: Time; |
38 |
to: Time; |
39 |
type: VacationType; |
40 |
status: RequestStatus; |
41 |
}
|
42 |
];
|
43 |
authorization: [ |
44 |
{
|
45 |
id: number; |
46 |
user: { |
47 |
name: { |
48 |
first: string; |
49 |
last: string; |
50 |
};
|
51 |
};
|
52 |
date: Date; |
53 |
}
|
54 |
];
|
55 |
}
|
56 |
|
57 |
export interface UserRequest { |
58 |
id: number; |
59 |
status: RequestStatus; |
60 |
}
|