From 4ad369cd8f7cae4340d34a58af6c07f4ef6f4e45 Mon Sep 17 00:00:00 2001 From: Amr Awad Date: Mon, 22 Sep 2025 16:24:35 +0100 Subject: [PATCH] add a 'dryRun' option to transactions import API (#5758) --- packages/api/methods.ts | 3 +++ upcoming-release-notes/5758.md | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 upcoming-release-notes/5758.md diff --git a/packages/api/methods.ts b/packages/api/methods.ts index e65e11ddf7..1347356f81 100644 --- a/packages/api/methods.ts +++ b/packages/api/methods.ts @@ -96,6 +96,7 @@ export function addTransactions( export interface ImportTransactionsOpts { defaultCleared?: boolean; + dryRun?: boolean; } export function importTransactions( @@ -103,11 +104,13 @@ export function importTransactions( transactions: ImportTransactionEntity[], opts: ImportTransactionsOpts = { defaultCleared: true, + dryRun: false, }, ) { return send('api/transactions-import', { accountId, transactions, + isPreview: opts.dryRun, opts, }); } diff --git a/upcoming-release-notes/5758.md b/upcoming-release-notes/5758.md new file mode 100644 index 0000000000..90120e5b7b --- /dev/null +++ b/upcoming-release-notes/5758.md @@ -0,0 +1,6 @@ +--- +category: Features +authors: [amrawadk] +--- + +Add 'dryRun' option to importTransactions API. \ No newline at end of file