Version : 2025.11.22
This commit is contained in:
32
types.ts
Normal file
32
types.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
export enum OperationType {
|
||||
INCOME = 'income',
|
||||
EXPENSE = 'expense',
|
||||
}
|
||||
|
||||
export interface Operation {
|
||||
id: string;
|
||||
balanceId: string;
|
||||
name: string;
|
||||
description: string;
|
||||
group: string;
|
||||
amount: number;
|
||||
type: OperationType;
|
||||
date: string;
|
||||
invoice?: string;
|
||||
}
|
||||
|
||||
export interface Balance {
|
||||
id: string;
|
||||
name: string;
|
||||
initialAmount: number;
|
||||
position: number;
|
||||
}
|
||||
|
||||
export interface Association {
|
||||
id: string;
|
||||
name: string;
|
||||
password: string;
|
||||
balances: Balance[];
|
||||
operations: Operation[];
|
||||
}
|
||||
Reference in New Issue
Block a user