File size: 1,278 Bytes
b8e6434
ed7c3f7
b8e6434
ed7c3f7
b8e6434
 
 
ed7c3f7
 
b8e6434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
export type TenderItem = {
  name: string;
  quantity: number;
  unit: string;
};

export type TenderAttachment = {
  name: string;
  url: string;
};

export type Tender = {
  code: string;
  name: string;
  buyer: string;
  status: string;
  closing_date: string;
  description: string;
  estimated_amount: number | null;
  source: string;
  region?: string;
  sector?: string;
  items?: TenderItem[];
  attachments?: TenderAttachment[];
};

export type CompanyProfile = {
  name: string;
  industry: string;
  services: string[];
  experience: string;
  certifications: string[];
  regions: string[];
  documents_available: string[];
};

export type RiskItem = {
  title: string;
  severity: "High" | "Medium" | "Low";
  explanation: string;
};

export type ActionItem = {
  task: string;
  priority: string;
  owner: string;
  timeline: string;
};

export type AnalysisResult = {
  fit_score: number;
  decision: string;
  executive_summary: string;
  key_requirements: string[];
  risks: RiskItem[];
  compliance_gaps: string[];
  action_plan: ActionItem[];
  proposal_draft: string;
  report_markdown: string;
  audit_log: string[];
};

export type AnalysisHistoryItem = {
  tender_code: string;
  tender_name: string;
  analyzed_at: string;
  analysis: AnalysisResult;
};