Fix api in lib folder.

This commit is contained in:
Elisiário Couto
2025-09-08 19:08:30 +01:00
committed by Elisiário Couto
parent 26487cff89
commit abacfd78c8
7 changed files with 137 additions and 21 deletions

View File

@@ -11,21 +11,22 @@ export interface Account {
}
export interface Transaction {
id: string;
internal_id?: string;
internal_transaction_id: string | null;
account_id: string;
amount: number;
currency: string;
description: string;
transaction_date: string;
date: string;
status: string;
// Optional fields that may be present in some transactions
booking_date?: string;
value_date?: string;
creditor_name?: string;
debtor_name?: string;
reference?: string;
category?: string;
created_at: string;
updated_at: string;
created_at?: string;
updated_at?: string;
}
// Type for raw transaction data from API (before sanitization)
@@ -68,7 +69,7 @@ export interface Bank {
export interface ApiResponse<T> {
data: T;
message?: string;
status: string;
success: boolean;
}
export interface PaginatedResponse<T> {