generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (45 loc) · 987 Bytes
/
types.ts
File metadata and controls
50 lines (45 loc) · 987 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
41
42
43
44
45
46
47
48
49
50
export interface FinancialStats {
expected: number;
overdue: number;
currency: string;
}
export interface RiskProfile {
level: 'LOW' | 'MEDIUM' | 'HIGH';
description: string;
factor: number; // 0 to 100 for visual bar
}
export interface ActionItem {
type: 'REMINDER' | 'ESCALATION' | 'SETTLEMENT';
title: string;
draftContent: string;
}
export interface AnalysisResult {
summary: string;
invoiceDetails: {
number: string;
dueDate: string;
amount: string;
status: string;
};
findings: string[];
financialStats: FinancialStats;
riskProfile: RiskProfile;
clientBehaviorAnalysis: string;
confidenceAssessment: {
level: 'High' | 'Medium' | 'Low';
reason: string;
};
recommendedActions: ActionItem[];
}
export interface UploadedFile {
id: string;
file: File;
preview: string;
type: 'image' | 'pdf' | 'other';
}
export interface ChatMessage {
id: string;
role: 'user' | 'model';
text: string;
timestamp: Date;
}