open-agreements
Version:
Open-source legal template filling CLI and library
50 lines • 3.75 kB
TypeScript
export { ClosingChecklistSchema, type ClosingChecklist } from './schemas.js';
export { ChecklistPatchModeEnum, JsonPointerSchema, PatchCitationSchema, ChecklistPatchSourceEventSchema, ChecklistPatchOperationSchema, ChecklistPatchEnvelopeSchema, ChecklistPatchApplyRequestSchema, type ChecklistPatchMode, type JsonPointer, type PatchCitation, type ChecklistPatchSourceEvent, type ChecklistPatchOperation, type ChecklistPatchEnvelope, type ChecklistPatchApplyRequest, } from './patch-schemas.js';
export { CHECKLIST_PATCH_VALIDATION_TTL_MS, DANGEROUS_KEYS, applyChecklistPatchOperations, computeChecklistPatchHash, validateChecklistPatch, getChecklistPatchValidationArtifact, setChecklistPatchValidationStore, getChecklistPatchValidationStore, type ChecklistPatchValidationErrorCode, type ChecklistPatchValidationDiagnostic, type ResolvedChecklistPatchOperation, type ChecklistPatchValidationArtifact, type ChecklistPatchValidationStore, type ValidateChecklistPatchInput, type ChecklistPatchValidationSuccess, type ChecklistPatchValidationFailure, type ChecklistPatchValidationResult, } from './patch-validator.js';
export { applyChecklistPatch, setChecklistAppliedPatchStore, getChecklistAppliedPatchStore, setChecklistProposedPatchStore, getChecklistProposedPatchStore, type ChecklistAppliedPatchRecord, type ChecklistAppliedPatchStore, type ChecklistProposedPatchRecord, type ChecklistProposedPatchStore, type ChecklistPatchApplyErrorCode, type ChecklistPatchApplyFailure, type ChecklistPatchApplySuccess, type ChecklistPatchApplyResult, type ApplyChecklistPatchInput, } from './patch-apply.js';
export { humanStatus, STATUS_LABELS, reverseHumanStatus, REVERSE_STATUS_LABELS } from './status-labels.js';
export { createChecklist, listChecklists, resolveChecklist, getChecklistState, saveChecklistState, appendHistory, getHistory, ChecklistStateSchema, type ChecklistState, type ChecklistMeta, type ChecklistSummary, type HistoryRecord, } from './state-manager.js';
export { appendJsonl, readJsonl } from './jsonl-stores.js';
export { formatChecklistDocx } from './format-checklist-docx.js';
export { importChecklistFromDocx, type DocxImportOptions, type DocxImportWarning, type DocxImportWarningCode, type DocxImportSummary, type DocxImportResult, type DocxImportFailure, type DocxImportErrorCode, type DocxImportOutcome, } from './docx-import.js';
export { classifyRow, getDirectChildRows, getDirectChildCells, getCellText, findTableByHeaders, isControlRow, extractRenderVersion, DOCUMENTS_HEADERS, ACTION_ITEMS_HEADERS, ISSUES_HEADERS, RENDER_VERSION_MARKER, type RowType, } from './docx-table-helpers.js';
export interface TemplateDocumentRow {
entry_id: string;
title: string;
link: string;
status: string;
responsible: string;
}
export interface TemplateActionRow {
item_id: string;
description: string;
status: string;
assigned_to: string;
due_date: string;
}
export interface TemplateIssueRow {
issue_id: string;
title: string;
status: string;
summary: string;
citation: string;
}
export interface ChecklistTemplateContext {
deal_name: string;
updated_at: string;
documents: TemplateDocumentRow[];
action_items: TemplateActionRow[];
open_issues: TemplateIssueRow[];
}
/**
* Build template values for the closing-checklist DOCX template.
*
* Layout (5-column):
* - Stage headers as bold section rows
* - Entry rows: ID | Title | Link | Status | Responsible
* - Citations as indented sub-rows under their entry
* - Signatories as bracket-checkbox sub-rows
* - Linked actions/issues as bracket-checkbox sub-rows
*/
export declare function buildChecklistTemplateContext(data: unknown): ChecklistTemplateContext;
//# sourceMappingURL=index.d.ts.map