From c28d7aeffc9cbf7b262c01c31b1d9d0f5e1a4a4c Mon Sep 17 00:00:00 2001 From: olsch01 Date: Wed, 25 Feb 2026 15:32:55 -0500 Subject: [PATCH] Fix TypeScript: export interfaces for controller return type resolution Co-Authored-By: Claude Opus 4.6 --- .../investment-planning/investment-planning.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/modules/investment-planning/investment-planning.service.ts b/backend/src/modules/investment-planning/investment-planning.service.ts index dc2b54d..ea4ecdd 100644 --- a/backend/src/modules/investment-planning/investment-planning.service.ts +++ b/backend/src/modules/investment-planning/investment-planning.service.ts @@ -5,7 +5,7 @@ import { DataSource } from 'typeorm'; // ── Interfaces ── -interface AccountBalance { +export interface AccountBalance { id: string; account_number: string; name: string; @@ -15,7 +15,7 @@ interface AccountBalance { balance: string; } -interface InvestmentAccount { +export interface InvestmentAccount { id: string; name: string; institution: string; @@ -28,7 +28,7 @@ interface InvestmentAccount { current_value: string; } -interface CdRate { +export interface CdRate { bank_name: string; apy: string; min_deposit: string | null; @@ -37,7 +37,7 @@ interface CdRate { fetched_at: string; } -interface Recommendation { +export interface Recommendation { type: 'cd_ladder' | 'new_investment' | 'reallocation' | 'maturity_action' | 'liquidity_warning' | 'general'; priority: 'high' | 'medium' | 'low'; title: string; @@ -51,7 +51,7 @@ interface Recommendation { rationale: string; } -interface AIResponse { +export interface AIResponse { recommendations: Recommendation[]; overall_assessment: string; risk_notes: string[];