Interface: PayLeaveRequest
Defined in: src/lib/pay/index.ts:79
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:85
hours
readonlyhours:number
Defined in: src/lib/pay/index.ts:87
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:81
'holiday' is paid PTO (credited as worked); 'unpaid_leave' is never credited.
startDate
readonlystartDate:CalendarDate
Defined in: src/lib/pay/index.ts:84
status
readonlystatus:"pending"|"approved"|"rejected"
Defined in: src/lib/pay/index.ts:83
Only 'approved' leave is credited; 'pending'/'rejected' are ignored.