A local-first personal finance app
add a 'dryRun' option to transactions import API (#5758)
Amr Awad4ad369cd8f7c
diff --git a/packages/api/methods.ts b/packages/api/methods.tsindex 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.mdnew file mode 100644index 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