Skip to main content

Function: getLatestAgreementPackage()

getLatestAgreementPackage(contractorId): Promise<any>

Defined in: src/server/services/agreements/package.ts:115

The contractor's most-recent package row (ANY status), or null. Used for DISPLAY + re-derivation: a sealed (completed) package must still drive the views and the signed bodies, so this is the latest by generation — not the open one. Mutations that need the still-open package (seal, the regenerate-in-place in createAgreementPackage) filter to NON_TERMINAL themselves.

Parameters

contractorId

string

Returns

Promise<any>