[AI] Move ImportTransactionsOpts from api package to loot-core (#7053)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Matiss Janis Aboltins
2026-03-04 18:38:09 +00:00
committed by GitHub
parent cf05a7ea01
commit 286d05d187
3 changed files with 12 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import type {
APITagEntity,
} from 'loot-core/server/api-models';
import type { Query } from 'loot-core/shared/query';
import type { ImportTransactionsOpts } from 'loot-core/types/api-handlers';
import type { Handlers } from 'loot-core/types/handlers';
import type {
ImportTransactionEntity,
@@ -126,11 +127,6 @@ export function addTransactions(
});
}
export type ImportTransactionsOpts = {
defaultCleared?: boolean;
dryRun?: boolean;
};
export function importTransactions(
accountId: APIAccountEntity['id'],
transactions: ImportTransactionEntity[],

View File

@@ -1,6 +1,4 @@
// @ts-strict-ignore
import type { ImportTransactionsOpts } from '@actual-app/api';
import type { ImportTransactionsResult } from '../server/accounts/app';
import type {
APIAccountEntity,
@@ -23,6 +21,11 @@ import type {
TransactionEntity,
} from './models';
export type ImportTransactionsOpts = {
defaultCleared?: boolean;
dryRun?: boolean;
};
export type ApiHandlers = {
'api/batch-budget-start': () => Promise<void>;