Add company analysis view with financials, price history, filings, and AI reports
This commit is contained in:
34
lib/types.ts
34
lib/types.ts
@@ -93,3 +93,37 @@ export type PortfolioInsight = {
|
||||
content: string;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type CompanyFinancialPoint = {
|
||||
filingDate: string;
|
||||
filingType: Filing['filing_type'];
|
||||
revenue: number | null;
|
||||
netIncome: number | null;
|
||||
totalAssets: number | null;
|
||||
cash: number | null;
|
||||
debt: number | null;
|
||||
};
|
||||
|
||||
export type CompanyAiReport = {
|
||||
accessionNumber: string;
|
||||
filingDate: string;
|
||||
filingType: Filing['filing_type'];
|
||||
provider: string;
|
||||
model: string;
|
||||
summary: string;
|
||||
};
|
||||
|
||||
export type CompanyAnalysis = {
|
||||
company: {
|
||||
ticker: string;
|
||||
companyName: string;
|
||||
sector: string | null;
|
||||
cik: string | null;
|
||||
};
|
||||
quote: number;
|
||||
position: Holding | null;
|
||||
priceHistory: Array<{ date: string; close: number }>;
|
||||
financials: CompanyFinancialPoint[];
|
||||
filings: Filing[];
|
||||
aiReports: CompanyAiReport[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user