aboutsummaryrefslogtreecommitdiffstats
path: root/cli/src/types.ts
blob: eea7c9bed1e1ad5b6b91695a2958018ae5d70a94 (plain) (blame)
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
export type Sb1Tokens = {
    access_token: string
    expires_in: number
    refresh_token_expires_in: number
    refresh_token_absolute_expires_in: number
    token_type: string
    refresh_token: string
}

export type Sb1Account = {
    key: string
    accountNumber: string
    iban: string
    name: string
    balance: number
    availableBalance: number
    currencyCode: string
}

export type Sb1Transaction = {
    id: string
    nonUniqueId: string
    description: string
    cleanedDescription: string
    amount: number
    date: number
    typeCode: string
    typeText: string
    currencyCode: string
    bookingStatus: string
    accountName: string
    accountKey: string
}

export type ActualAccount = {
    id: string
    name: string
    type: string
    closed: boolean
}