export type TenderItem = { correlative?: number; product_code?: string; category?: string; name: string; description?: string; quantity: number; unit: string; }; export type TenderAttachment = { name: string; url: string; }; export type Tender = { code: string; name: string; description: string; buyer: string; buyer_region?: string; status: string; status_code?: string; type?: string; currency?: string; closing_date: string | null; publication_date?: string | null; 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; strategic_roadmap?: string; audit_log: string[]; }; export type OCItem = { correlative?: number; product_code?: string; name: string; description?: string; quantity: number; unit: string; price?: number; total?: number; }; export type PurchaseOrder = { code: string; name: string; status: string; status_code?: string; buyer: string; buyer_rut?: string; provider: string; provider_rut?: string; date_creation: string | null; total_amount: number | null; currency: string | null; type?: string; items?: OCItem[]; }; export type AnalysisHistoryItem = { tender_code: string; tender_name: string; analyzed_at: string; analysis: AnalysisResult; };