26 lines
737 B
TypeScript
26 lines
737 B
TypeScript
import type {
|
|
FinancialStatementKind,
|
|
FinancialUnit
|
|
} from '@/lib/types';
|
|
import {
|
|
BALANCE_SHEET_METRIC_DEFINITIONS,
|
|
CASH_FLOW_STATEMENT_METRIC_DEFINITIONS,
|
|
INCOME_STATEMENT_METRIC_DEFINITIONS
|
|
} from '@/lib/financial-metrics';
|
|
|
|
export type CanonicalRowDefinition = {
|
|
key: string;
|
|
label: string;
|
|
category: string;
|
|
order: number;
|
|
unit: FinancialUnit;
|
|
localNames?: readonly string[];
|
|
labelIncludes?: readonly string[];
|
|
};
|
|
|
|
export const CANONICAL_ROW_DEFINITIONS: Record<Extract<FinancialStatementKind, 'income' | 'balance' | 'cash_flow'>, CanonicalRowDefinition[]> = {
|
|
income: INCOME_STATEMENT_METRIC_DEFINITIONS,
|
|
balance: BALANCE_SHEET_METRIC_DEFINITIONS,
|
|
cash_flow: CASH_FLOW_STATEMENT_METRIC_DEFINITIONS
|
|
};
|