Interface: PayComputeInputs
Defined in: src/server/services/payInputs.ts:110
Everything the pay engine needs to price a scope's assignments for one period, loaded once.
Properties
approvedOverage
readonlyapprovedOverage:ReadonlyMap<string,ReadonlySet<string>>
Defined in: src/server/services/payInputs.ts:118
${contractorId}|${assignmentId} → Monday pay-week ISO starts whose
overage was approved (already snapped through overageApprovalWeekToPayWeek).
assignmentsByContractor
readonlyassignmentsByContractor:ReadonlyMap<string,PayAssignmentRow[]>
Defined in: src/server/services/payInputs.ts:113
The chosen active assignment version per (contractor, facility), grouped by contractor (pickAssignmentsPerContractor — deterministic so preview and close price the identical rate).
contractorById
readonlycontractorById:ReadonlyMap<string,PayContractorRow>
Defined in: src/server/services/payInputs.ts:114
Includes SOFT-DELETED contractors (deleted_at is exposed for exactly
this): pricing callers decide the skip — computePayRun skips them; estimateContractorPay
(the contractor's own view) deliberately does not.
entriesByAssignment
readonlyentriesByAssignment:ReadonlyMap<string,PayEntryRow[]>
Defined in: src/server/services/payInputs.ts:116
entriesEnd
readonlyentriesEnd:string
Defined in: src/server/services/payInputs.ts:112
Last day of the fetch window (the period end — in-period tail days stay visible to in-house pay and the close TOCTOU even though they settle next period).
entriesStart
readonlyentriesStart:string
Defined in: src/server/services/payInputs.ts:111
First day of the time-entry fetch window: the first settling week's Monday (ADR-0044), which may precede the period start.
facilityNameById
readonlyfacilityNameById:ReadonlyMap<string,string>
Defined in: src/server/services/payInputs.ts:115
holidaysConfig
readonlyholidaysConfig:HolidaysConfig
Defined in: src/server/services/payInputs.ts:119
leavesByContractor
readonlyleavesByContractor:ReadonlyMap<string,PayLeaveRow[]>
Defined in: src/server/services/payInputs.ts:117