Expand financials surfaces with ratios, KPIs, and cadence support
- Add bundled financial modeling pipeline (ratios, KPI dimensions/notes, trend series, standardization) - Introduce company financial bundles storage (Drizzle migration + repo wiring) - Refactor financials page/API/query flow to use surfaceKind + cadence and new response shapes
This commit is contained in:
@@ -15,8 +15,8 @@ import {
|
||||
} from '@/lib/api';
|
||||
import { queryKeys } from '@/lib/query/keys';
|
||||
import type {
|
||||
FinancialHistoryWindow,
|
||||
FinancialStatementKind
|
||||
FinancialCadence,
|
||||
FinancialSurfaceKind
|
||||
} from '@/lib/types';
|
||||
|
||||
export function companyAnalysisQueryOptions(ticker: string) {
|
||||
@@ -31,8 +31,8 @@ export function companyAnalysisQueryOptions(ticker: string) {
|
||||
|
||||
export function companyFinancialStatementsQueryOptions(input: {
|
||||
ticker: string;
|
||||
statement: FinancialStatementKind;
|
||||
window: FinancialHistoryWindow;
|
||||
surfaceKind: FinancialSurfaceKind;
|
||||
cadence: FinancialCadence;
|
||||
includeDimensions?: boolean;
|
||||
includeFacts?: boolean;
|
||||
factsCursor?: string | null;
|
||||
@@ -51,8 +51,8 @@ export function companyFinancialStatementsQueryOptions(input: {
|
||||
return queryOptions({
|
||||
queryKey: queryKeys.companyFinancialStatements(
|
||||
normalizedTicker,
|
||||
input.statement,
|
||||
input.window,
|
||||
input.surfaceKind,
|
||||
input.cadence,
|
||||
includeDimensions,
|
||||
includeFacts,
|
||||
factsCursor,
|
||||
@@ -62,8 +62,8 @@ export function companyFinancialStatementsQueryOptions(input: {
|
||||
),
|
||||
queryFn: () => getCompanyFinancialStatements({
|
||||
ticker: normalizedTicker,
|
||||
statement: input.statement,
|
||||
window: input.window,
|
||||
surfaceKind: input.surfaceKind,
|
||||
cadence: input.cadence,
|
||||
includeDimensions,
|
||||
includeFacts,
|
||||
factsCursor,
|
||||
|
||||
Reference in New Issue
Block a user