Skip to main content

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​

readonly approvedOverage: 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​

readonly assignmentsByContractor: 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​

readonly contractorById: 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​

readonly entriesByAssignment: ReadonlyMap<string, PayEntryRow[]>

Defined in: src/server/services/payInputs.ts:116


entriesEnd​

readonly entriesEnd: 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​

readonly entriesStart: 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​

readonly facilityNameById: ReadonlyMap<string, string>

Defined in: src/server/services/payInputs.ts:115


holidaysConfig​

readonly holidaysConfig: HolidaysConfig

Defined in: src/server/services/payInputs.ts:119


leavesByContractor​

readonly leavesByContractor: ReadonlyMap<string, PayLeaveRow[]>

Defined in: src/server/services/payInputs.ts:117