israeli-banks-actual-budget-importer 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.7.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.6.1...v1.7.0) (2025-12-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * add logging for first 5 scraped transactions ([47dc4e9](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/47dc4e956395edcddc3779fe252bc15b9ce9d3ca))
7
+
8
+ ## [1.6.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.6.0...v1.6.1) (2025-12-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update transaction notes to use memo instead of status ([1483fdb](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/1483fdbd35c2e23106ab561926df79797c5b09f8))
14
+
1
15
  # [1.6.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.5.3...v1.6.0) (2025-12-02)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.0",
2
+ "version": "1.7.0",
3
3
  "name": "israeli-banks-actual-budget-importer",
4
4
  "module": "index.ts",
5
5
  "type": "module",
package/src/utils.ts CHANGED
@@ -49,15 +49,22 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
49
49
 
50
50
  const accountBalance = result.accounts![0].balance!;
51
51
  const payees: PayeeEntity[] = await actual.getPayees();
52
+
53
+ // Print first 5 scraped transactions for debugging
54
+ log('SCRAPED_TRANSACTIONS_SAMPLE', {sample: transactions.slice(0, 5)});
55
+
52
56
  const mappedTransactions = transactions.map(async x => ({
53
57
  date: moment(x.date).format('YYYY-MM-DD'),
54
58
  amount: actual.utils.amountToInteger(x.chargedAmount),
55
59
  payee: _.find(payees, {name: x.description})?.id ?? (await actual.createPayee({name: x.description})),
56
60
  imported_payee: x.description,
57
- notes: x.status,
61
+ notes: x.memo,
58
62
  imported_id: `${x.identifier}-${moment(x.date).format('YYYY-MM-DD HH:mm:ss')}`,
59
63
  }));
60
64
 
65
+ // Print first 5 mapped transactions for debugging
66
+ log('MAPPED_TRANSACTIONS_SAMPLE', {sample: await Promise.all(mappedTransactions.slice(0, 5))});
67
+
61
68
  stdout.mute();
62
69
  const importResult = await actual.importTransactions(bank.actualAccountId, await Promise.all(mappedTransactions), {defaultCleared: true});
63
70
  stdout.unmute();