Files
template-app/modules/documents/contract/index.ts
T

46 lines
1014 B
TypeScript

// The public API of the documents module: what a page, another module and the OpenAPI document
// may import. Nothing here reaches core/, adapters/ or a driver.
export {
DEFAULT_EXCLUDED_PAGE_CLASSES,
DOCUMENT_STATUSES,
type DocumentStatus,
FAILURE_CODES,
type FailureCode,
LINE_NOTES,
LINE_STATUSES,
LINE_VERIFICATIONS,
type LineNote,
type LineStatus,
type LineVerification,
PAGE_CLASSES,
type PageClass,
pageClassesOf,
} from "./constants.js"
export { DOCUMENTS_ENTITIES, documents, lines } from "./entities.js"
export {
EXPORT_CREATED,
LINE_EDITED,
LINE_TARGET_KEY,
type LineChange,
type LineView,
lineChangeSchema,
lineViewSchema,
MAX_MODEL_LINES,
type ModelLines,
modelLineSchema,
modelLinesSchema,
OCR_JOB,
PROCESSOR_KEY,
READABLE_CONTENT_TYPES,
} from "./lines.js"
export {
type DocumentView,
documentGet,
documentList,
documentViewSchema,
exportCreate,
lineEdit,
} from "./procedures.js"
export { REVIEW_PROCEDURES } from "./review.js"