Files
Abacus/types.ts
2025-11-23 16:34:11 +01:00

33 lines
514 B
TypeScript

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[];
}