-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
48 lines (41 loc) · 1.12 KB
/
types.ts
File metadata and controls
48 lines (41 loc) · 1.12 KB
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
export type UrgencyLevel = 'Low' | 'Medium' | 'High' | 'Critical – line stopped';
export type TicketStatus = 'Open' | 'In Progress' | 'Closed' | 'Archivé';
export type ProblemType = 'Mechanical' | 'Electrical' | 'Hydraulic' | 'Software/PLC' | 'Sensor' | 'Other';
export type LocationType = 'Zone 1' | 'Zone 2' | 'Zone 3' | 'Other';
export interface Comment {
date: string;
text: string;
}
export interface Ticket {
ticketId: string;
createdDate: string;
user: string; // Operator Name
userId: string; // Matricule
machine: string;
location: LocationType;
proties: UrgencyLevel;
problemeKind: ProblemType;
problemeDiscartion: string;
status: TicketStatus;
assignedTo: string;
comments: Comment[];
attachments: any[];
}
export interface User {
username: string;
role: 'operator' | 'manager' | 'maintenance';
}
export type UserRole = 'Operator' | 'Manager' | 'Maintenance';
export type UserStatus = 'Actif' | 'Inactif';
export interface AppUser {
id: string;
name: string;
login: string;
role: UserRole;
group: string;
status: UserStatus;
}
export interface Group {
id: string;
name: string;
}