pmtool / src /types /Leave.ts
devarshia5's picture
Upload 487 files
d97b8f9 verified
Raw
History Blame Contribute Delete
832 Bytes
export type LeaveStatus = 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
export type LeaveType =
| 'Sick'
| 'Casual'
| 'Annual'
| 'Maternity'
| 'Paternity'
| 'Bereavement'
| 'Unpaid'
| 'Other';
export interface Leave {
id: string;
employeeId: string;
type: LeaveType;
startDate: string;
endDate: string;
reason: string;
status: LeaveStatus;
appliedDate: string;
actionDate?: string;
actionBy?: string;
actionNotes?: string;
attachments?: string[];
}
export interface LeaveFilter {
status?: LeaveStatus | 'All';
type?: LeaveType | 'All';
employeeId?: string;
year?: number;
searchTerm?: string;
}
export interface EmployeeBasicInfo {
id: string;
name: string;
email: string;
department?: string;
position?: string;
}