Rebuild company overview analysis page
This commit is contained in:
61
lib/types.ts
61
lib/types.ts
@@ -672,6 +672,63 @@ export type CompanyAiReportDetail = CompanyAiReport & {
|
||||
primaryDocument: string | null;
|
||||
};
|
||||
|
||||
export type CompanyProfile = {
|
||||
description: string | null;
|
||||
exchange: string | null;
|
||||
industry: string | null;
|
||||
country: string | null;
|
||||
website: string | null;
|
||||
fiscalYearEnd: string | null;
|
||||
employeeCount: number | null;
|
||||
source: 'sec_derived' | 'unavailable';
|
||||
};
|
||||
|
||||
export type CompanyValuationSnapshot = {
|
||||
sharesOutstanding: number | null;
|
||||
marketCap: number | null;
|
||||
enterpriseValue: number | null;
|
||||
trailingPe: number | null;
|
||||
evToRevenue: number | null;
|
||||
evToEbitda: number | null;
|
||||
source: 'derived' | 'partial' | 'unavailable';
|
||||
};
|
||||
|
||||
export type CompanyBullBear = {
|
||||
source: 'ai_synthesized' | 'memo_fallback' | 'unavailable';
|
||||
bull: string[];
|
||||
bear: string[];
|
||||
updatedAt: string | null;
|
||||
};
|
||||
|
||||
export type RecentDevelopmentKind = '8-K' | '10-K' | '10-Q' | 'press_release' | 'news';
|
||||
|
||||
export type RecentDevelopmentItem = {
|
||||
id: string;
|
||||
kind: RecentDevelopmentKind;
|
||||
title: string;
|
||||
url: string | null;
|
||||
source: string;
|
||||
publishedAt: string;
|
||||
summary: string | null;
|
||||
accessionNumber: string | null;
|
||||
};
|
||||
|
||||
export type RecentDevelopmentsWeeklySnapshot = {
|
||||
summary: string;
|
||||
highlights: string[];
|
||||
itemCount: number;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
updatedAt: string;
|
||||
source: 'ai_synthesized' | 'heuristic';
|
||||
};
|
||||
|
||||
export type RecentDevelopments = {
|
||||
status: 'ready' | 'partial' | 'unavailable';
|
||||
items: RecentDevelopmentItem[];
|
||||
weeklySnapshot: RecentDevelopmentsWeeklySnapshot | null;
|
||||
};
|
||||
|
||||
export type CompanyAnalysis = {
|
||||
company: {
|
||||
ticker: string;
|
||||
@@ -708,6 +765,10 @@ export type CompanyAnalysis = {
|
||||
debt: number | null;
|
||||
netMargin: number | null;
|
||||
};
|
||||
companyProfile: CompanyProfile;
|
||||
valuationSnapshot: CompanyValuationSnapshot;
|
||||
bullBear: CompanyBullBear;
|
||||
recentDevelopments: RecentDevelopments;
|
||||
};
|
||||
|
||||
export type NavGroup = 'overview' | 'research' | 'portfolio';
|
||||
|
||||
Reference in New Issue
Block a user