Files
echo/src/types/transaction.d.ts

24 lines
796 B
TypeScript

export interface Transaction {
id: string;
amount: number;
merchant: string;
category: string;
date: string;
note?: string;
syncStatus: 'pending' | 'synced' | 'error';
entryType?: 'expense' | 'income' | 'transfer';
fundSourceType?: 'cash' | 'bank' | 'credit' | 'stored_value' | 'merchant' | 'income_source' | 'external' | 'unknown';
fundSourceName?: string;
fundTargetType?: 'cash' | 'bank' | 'credit' | 'stored_value' | 'merchant' | 'income_source' | 'external' | 'unknown';
fundTargetName?: string;
impactExpense?: boolean;
impactIncome?: boolean;
aiCategory?: string;
aiTags?: string[];
aiConfidence?: number;
aiReason?: string;
aiStatus?: 'idle' | 'running' | 'applied' | 'suggested' | 'failed';
aiModel?: string;
aiNormalizedMerchant?: string;
}