File size: 842 Bytes
2dddd1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
export interface Wallet {
    id: number;
    name: string;
    type: string;
    currency: string;
}

export interface Transaction {
    id: number;
    type: 'income' | 'expense' | 'transfer';
    amount: number;
    currency: string;
    wallet_id: number;
    to_wallet_id?: number | null;
    category?: string;
    note?: string;
    date: string;
    country_id?: string;
}

export interface Exchange {
    id: number;
    from_amount: number;
    from_currency: string;
    from_wallet_id: number;
    to_amount: number;
    to_currency: string;
    to_wallet_id: number;
    rate: number;
    date: string;
    note?: string;
}

export interface Loan {
    id: number;
    person: string;
    type: 'borrowed_from_me' | 'owed_by_me';
    amount: number;
    currency: string;
    paid: number;
    date: string;
    note?: string;
}