migrate services.js to ts

This commit is contained in:
MaysWind
2025-01-05 17:00:25 +08:00
parent 41d34af4c7
commit 454e97c9f1
37 changed files with 1294 additions and 764 deletions
+26
View File
@@ -0,0 +1,26 @@
import type { TransactionGeoLocationResponse } from './transaction.ts';
export interface ImportTransactionResponse {
readonly type: number;
readonly categoryId: string;
readonly originalCategoryName: string;
readonly time: number;
readonly utcOffset: number;
readonly sourceAccountId: string;
readonly originalSourceAccountName: string;
readonly originalSourceAccountCurrency: string;
readonly destinationAccountId?: string;
readonly originalDestinationAccountName?: string;
readonly originalDestinationAccountCurrency?: string;
readonly sourceAmount: number;
readonly destinationAmount?: number;
readonly tagIds: string[];
readonly originalTagNames: string[];
readonly comment: string;
readonly geoLocation?: TransactionGeoLocationResponse;
}
export interface ImportTransactionResponsePageWrapper {
readonly items: ImportTransactionResponse[];
readonly totalCount: number;
}