summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 00:17:11 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-18 00:17:11 -0700
commitadb3ee2fbf0b0686afc3e51b2bccc3423448ded9 (patch)
tree446999973237d07dd5d7cc01785f8a0d1f0e9ba4 /frontend
parent28f9aae05d8b46a3fe6ca3d5bbce34634604db05 (diff)
feat: add FinancialRow/Statement/Response frontend types
Diffstat (limited to 'frontend')
-rw-r--r--frontend/types/api.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/types/api.ts b/frontend/types/api.ts
index 84dfd19..3cc93e4 100644
--- a/frontend/types/api.ts
+++ b/frontend/types/api.ts
@@ -99,3 +99,24 @@ export type WatchlistResponse = {
items: WatchlistItem[];
limit: number;
};
+
+export type FinancialRow = {
+ label: string;
+ indent: number;
+ is_total: boolean;
+ is_section: boolean;
+ is_margin: boolean;
+ values: (number | null)[];
+};
+
+export type FinancialStatement = {
+ columns: string[];
+ rows: FinancialRow[];
+};
+
+export type FinancialsResponse = {
+ period: "annual" | "quarterly";
+ income: FinancialStatement;
+ balance: FinancialStatement;
+ cash_flow: FinancialStatement;
+};