forked from jamietso/SignaturePacketIDE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
40 lines (36 loc) · 997 Bytes
/
types.ts
File metadata and controls
40 lines (36 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export interface ProcessedDocument {
id: string;
name: string;
file: File;
pageCount: number;
status: 'pending' | 'processing' | 'completed' | 'error';
progress?: number; // 0 to 100
extractedPages: ExtractedSignaturePage[];
}
export interface ExtractedSignaturePage {
id: string;
documentId: string;
documentName: string;
pageIndex: number; // 0-based index
pageNumber: number; // 1-based human readable
partyName: string;
signatoryName: string; // The human signing
capacity: string;
copies: number;
thumbnailUrl: string; // Data URL of the page image
originalWidth: number;
originalHeight: number;
}
export type GroupingMode = 'agreement' | 'counterparty' | 'signatory';
export interface SignatureBlockExtraction {
isSignaturePage: boolean;
signatures: Array<{
partyName: string;
signatoryName: string;
capacity: string;
}>;
}
// Ensure PDF.js types are recognized globally as we load via CDN
declare global {
const pdfjsLib: any;
}