Skip to main content

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

readonly endDate: CalendarDate

Defined in: src/lib/pay/index.ts:85


hours

readonly hours: 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

readonly leaveType: "unpaid_leave" | "holiday"

Defined in: src/lib/pay/index.ts:81

'holiday' is paid PTO (credited as worked); 'unpaid_leave' is never credited.


startDate

readonly startDate: CalendarDate

Defined in: src/lib/pay/index.ts:84


status

readonly status: "pending" | "approved" | "rejected"

Defined in: src/lib/pay/index.ts:83

Only 'approved' leave is credited; 'pending'/'rejected' are ignored.