Fix TypeScript: export interfaces for controller return type resolution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import { DataSource } from 'typeorm';
|
|||||||
|
|
||||||
// ── Interfaces ──
|
// ── Interfaces ──
|
||||||
|
|
||||||
interface AccountBalance {
|
export interface AccountBalance {
|
||||||
id: string;
|
id: string;
|
||||||
account_number: string;
|
account_number: string;
|
||||||
name: string;
|
name: string;
|
||||||
@@ -15,7 +15,7 @@ interface AccountBalance {
|
|||||||
balance: string;
|
balance: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InvestmentAccount {
|
export interface InvestmentAccount {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
institution: string;
|
institution: string;
|
||||||
@@ -28,7 +28,7 @@ interface InvestmentAccount {
|
|||||||
current_value: string;
|
current_value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CdRate {
|
export interface CdRate {
|
||||||
bank_name: string;
|
bank_name: string;
|
||||||
apy: string;
|
apy: string;
|
||||||
min_deposit: string | null;
|
min_deposit: string | null;
|
||||||
@@ -37,7 +37,7 @@ interface CdRate {
|
|||||||
fetched_at: string;
|
fetched_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Recommendation {
|
export interface Recommendation {
|
||||||
type: 'cd_ladder' | 'new_investment' | 'reallocation' | 'maturity_action' | 'liquidity_warning' | 'general';
|
type: 'cd_ladder' | 'new_investment' | 'reallocation' | 'maturity_action' | 'liquidity_warning' | 'general';
|
||||||
priority: 'high' | 'medium' | 'low';
|
priority: 'high' | 'medium' | 'low';
|
||||||
title: string;
|
title: string;
|
||||||
@@ -51,7 +51,7 @@ interface Recommendation {
|
|||||||
rationale: string;
|
rationale: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AIResponse {
|
export interface AIResponse {
|
||||||
recommendations: Recommendation[];
|
recommendations: Recommendation[];
|
||||||
overall_assessment: string;
|
overall_assessment: string;
|
||||||
risk_notes: string[];
|
risk_notes: string[];
|
||||||
|
|||||||
Reference in New Issue
Block a user