Skip to main content

Function: generateAgreementPackage()

generateAgreementPackage(contractorId): Promise<GeneratedAgreement>

Defined in: src/server/services/agreements/generate.ts:18

Render a preview of the contractor's agreement-package PDF on demand from the live tables (build the merge data, render the documents, render the PDF). This is the un-sealed preview; the sealed PDF is rendered from the persisted snapshot in sealAgreementPackage. Both go through the same frozen documents, so the preview and the sealed artifact are the same text.

Parameters​

contractorId​

string

Returns​

Promise<GeneratedAgreement>