AndesOps-AI / frontend /lib /types.ts
Álvaro Valenzuela Valdes
fix: Replace str with string in types
ed7c3f7
raw
history blame
1.28 kB
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;
};