feat:新增ai分析,新增储值账户,优化通知规则

This commit is contained in:
2026-03-12 14:03:01 +08:00
parent 6a00875246
commit 6ca962a187
22 changed files with 1294 additions and 237 deletions

View File

@@ -1,4 +1,4 @@
export interface Transaction {
export interface Transaction {
id: string;
amount: number;
merchant: string;
@@ -6,11 +6,18 @@ export interface Transaction {
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' | 'applied' | 'suggested' | 'failed';
aiStatus?: 'idle' | 'running' | 'applied' | 'suggested' | 'failed';
aiModel?: string;
aiNormalizedMerchant?: string;
}