29 lines
410 B
TypeScript
29 lines
410 B
TypeScript
export interface Category {
|
|
id: string,
|
|
name: string,
|
|
}
|
|
|
|
export interface Tag {
|
|
id: string,
|
|
name: string,
|
|
}
|
|
|
|
export interface Amount{
|
|
currency: string,
|
|
val: string,
|
|
}
|
|
|
|
export interface Transaction{
|
|
id: string,
|
|
description: string,
|
|
time: string,
|
|
category?: Category,
|
|
tags?: Tag[],
|
|
amount?:
|
|
}
|
|
|
|
export interface TransactionGroup {
|
|
group_title: string,
|
|
transactions?: Transaction[],
|
|
}
|