File size: 931 Bytes
ee28fb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

export enum FamilyMember {
  PAPA = 'Papà',
  MAMMA = 'Mamma',
  FIGLIO_GRANDE = 'Figlio grande',
  FIGLIA = 'Figlia',
  NONNI = 'Nonni',
  TUTTI = 'Tutti',
  OSPITI = 'Ospiti'
}

export interface UserProfile {
  id: string;
  name: FamilyMember;
  color: string;
  profile: string;
}

export interface Transaction {
  id: string;
  date: string;
  amount: number;
  category: string;
  subcategory?: string;
  payer: FamilyMember;
  description: string;
  type: 'INCOME' | 'EXPENSE';
}

export interface CalendarEvent {
  id: string;
  title: string;
  start: string;
  end: string;
  location?: string;
  participants: FamilyMember[];
  weatherForecast?: string;
}

export interface SmartNote {
  id: string;
  title: string;
  content: string;
  category: string;
  lastModified: string;
  linkedTransactionId?: string;
}

export interface ChatMessage {
  role: 'user' | 'assistant';
  content: string;
  timestamp: string;
}