Interface: PayLeaveRequest
Defined in: src/lib/pay/index.ts:80
A leave request spanning [startDate, endDate]. Only in-house admin pay reads these: an
approved 'holiday' request credits PTO as worked, prorated per day across the part that overlaps
the period (see holidayHoursInRange). 'unpaid_leave', and any non-approved status, contribute
nothing. Outsourced pay ignores leave entirely.
Properties
endDate
readonlyendDate:CalendarDate
Defined in: src/lib/pay/index.ts:86
hours
readonlyhours:number
Defined in: src/lib/pay/index.ts:88
Total leave hours across the whole span (prorated per-day across the part inside the period).
leaveType
readonlyleaveType:"unpaid_leave"|"holiday"
Defined in: src/lib/pay/index.ts:82
'holiday' is paid PTO (credited as worked); 'unpaid_leave' is never credited.
startDate
readonlystartDate:CalendarDate
Defined in: src/lib/pay/index.ts:85
status
readonlystatus:"approved"|"rejected"|"pending"
Defined in: src/lib/pay/index.ts:84
Only 'approved' leave is credited; 'pending'/'rejected' are ignored.