Interface: PackageDocument
Defined in: src/server/services/agreements/documents.ts:16
The single place the agreement package's signable/printable bodies are produced. The PDF, the text a contractor signs, and the text we hash all flow through here, so they can never diverge — which is the whole point of a deterministic merge (no gap between what was shown and what was agreed).
Pure (no I/O, no server-only) so it is unit-testable and so package.ts can freeze the rendered
documents into the agreement snapshot at generation time. Re-derivation then reads those frozen
strings rather than re-rendering from code, so a later edit to AGREEMENT_BODIES can never change an
already-sealed package.
Properties
body
body:
string
Defined in: src/server/services/agreements/documents.ts:22
the final merged text — the authoritative artifact that is hashed and signed
kind
kind:
"ica"|"exhibit_a"|"exhibit_b"|"exhibit_c"|"exhibit_d"
Defined in: src/server/services/agreements/documents.ts:17
signOrder
signOrder:
number
Defined in: src/server/services/agreements/documents.ts:20
0-based order within the package (the cover is not a signable document)
title
title:
string
Defined in: src/server/services/agreements/documents.ts:18