Skip to main content

Function: getOnboardingAgreements()

getOnboardingAgreements(contractor): Promise<OnboardingAgreement[]>

Defined in: src/server/services/agreements.ts:72

The agreements a contractor must sign, in sign order, with their merged body and signed-state.

When an agreement package has been generated, its documents come from the frozen merge_snapshot (immutable — what the contractor sees and signs can't drift from what we hash). Otherwise it falls back to the legacy flow: DB templates override the built-in defaults per kind, flat-merged; required defaults are always included so a company with no package/templates yet still onboards.

Parameters

contractor

AgreementContractor

Returns

Promise<OnboardingAgreement[]>