Files

35 lines
1.2 KiB
TypeScript

/**
* The N-1 reader (RUST_ARCHITECTURE_REVIEW III.3 rule 7, VI.3): the Zod schemas and readers
* the last TypeScript build shipped, copied verbatim from `packages/domain/src` at develop
* 1a7ee7d (the R2 starting point) into `./domain`. Never edited: a Rust-written report, draft,
* snapshot or envelope that these readers refuse would break a rollback to that build.
* Permanent, it outlives `packages/domain` (deleted at R5).
*/
export {
ReportSchema,
ReportArchiveEnvelopeSchema,
SheetSnapshotSchema,
AnatomicalSheetDocumentSchema,
BrandingSchema,
PdfLabelSetSchema,
readArchiveDocument,
readReportDocument,
assertSnapshot,
type Report,
type ReportArchiveEnvelope,
type ReportMigrationMap,
} from './domain'
/**
* The N-1 PDF reader (R4 plan B.2.2, O11): the byte-scan attachment reader of the R3 build
* and release 0.2.0, copied verbatim under `./scanner` (never edited). Since R4.8 it is the
* only TypeScript reader left: the application suites that compare an attachment's text with
* a frozen envelope read it here, as a rollback to that build would.
*/
export {
readAttachedDocument,
readAttachmentBytes,
ArchiveReadError,
type ArchiveReadErrorKind,
} from './scanner'