israeli-banks-actual-budget-importer 1.2.0 → 1.2.1
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/.github/workflows/main.yml +2 -3
- package/.releaserc +6 -1
- package/CHANGELOG.md +48 -0
- package/README.md +13 -22
- package/package.json +6 -6
- package/src/index.ts +6 -0
- package/src/utils.ts +1 -1
|
@@ -31,9 +31,8 @@ jobs:
|
|
|
31
31
|
env:
|
|
32
32
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
run: echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
34
|
+
- name: Make repo writable for BuildKit
|
|
35
|
+
run: sudo chmod -R 777 $GITHUB_WORKSPACE/.yarn
|
|
37
36
|
|
|
38
37
|
- name: Semantic Release
|
|
39
38
|
run: yarn semantic-release
|
package/.releaserc
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"@semantic-release/npm",
|
|
14
14
|
"@semantic-release/changelog",
|
|
15
15
|
"@semantic-release/git",
|
|
16
|
-
"@semantic-release
|
|
16
|
+
["@codedependant/semantic-release-docker", {
|
|
17
|
+
"dockerBuildQuiet": false,
|
|
18
|
+
"dockerBuildFlags": {
|
|
19
|
+
"progress": "plain"
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
17
22
|
]
|
|
18
23
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
## [1.2.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.2.0...v1.2.1) (2025-05-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add dockerBuildFlags configuration to semantic-release-docker plugin ([49c0b58](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/49c0b58ee7204745b64693da958a248f3bfe8155))
|
|
7
|
+
* add newline at end of .releaserc file ([d28f51d](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/d28f51d18b84c868c35ee4681abc5d6f51b2910a))
|
|
8
|
+
* comment out ghcr.io authentication step and update semantic-release-docker plugin configuration ([a5f389c](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/a5f389c52649b99f2db0f0b5293144178c968549))
|
|
9
|
+
* correct casing of 'executablePath' in scraper configuration ([b122168](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b1221688ae0f9912b8d51f4a42e2f7ff57349443))
|
|
10
|
+
* remove ghcr.io authentication step from workflow ([421853b](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/421853bbaa03faa67436aa08954ce3b8e1467baa))
|
|
11
|
+
* replace immediate process exit with delayed exit using setTimeout ([9751cea](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/9751cea84c250d0946e0f15106b46904f7cbd23a))
|
|
12
|
+
* update dependencies and add semantic-release-docker plugin ([83257aa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/83257aa2e342accac105d9f38fe854e4942bcec5))
|
|
13
|
+
* update permissions for BuildKit to ensure writable access ([9232656](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/92326568e347c497d5b4cff37ce58adf72189eed))
|
|
14
|
+
* update semantic-release-docker plugin configuration to disable quiet mode ([590b210](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/590b2101b4bb7c21d30fd513b2fac9c05cab8967))
|
|
15
|
+
|
|
16
|
+
## [1.2.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.2.0...v1.2.1) (2025-05-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* add dockerBuildFlags configuration to semantic-release-docker plugin ([49c0b58](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/49c0b58ee7204745b64693da958a248f3bfe8155))
|
|
22
|
+
* add newline at end of .releaserc file ([d28f51d](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/d28f51d18b84c868c35ee4681abc5d6f51b2910a))
|
|
23
|
+
* comment out ghcr.io authentication step and update semantic-release-docker plugin configuration ([a5f389c](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/a5f389c52649b99f2db0f0b5293144178c968549))
|
|
24
|
+
* correct casing of 'executablePath' in scraper configuration ([b122168](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b1221688ae0f9912b8d51f4a42e2f7ff57349443))
|
|
25
|
+
* replace immediate process exit with delayed exit using setTimeout ([9751cea](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/9751cea84c250d0946e0f15106b46904f7cbd23a))
|
|
26
|
+
* update dependencies and add semantic-release-docker plugin ([83257aa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/83257aa2e342accac105d9f38fe854e4942bcec5))
|
|
27
|
+
* update semantic-release-docker plugin configuration to disable quiet mode ([590b210](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/590b2101b4bb7c21d30fd513b2fac9c05cab8967))
|
|
28
|
+
|
|
29
|
+
## [1.2.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.2.0...v1.2.1) (2025-05-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* add newline at end of .releaserc file ([d28f51d](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/d28f51d18b84c868c35ee4681abc5d6f51b2910a))
|
|
35
|
+
* comment out ghcr.io authentication step and update semantic-release-docker plugin configuration ([a5f389c](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/a5f389c52649b99f2db0f0b5293144178c968549))
|
|
36
|
+
* correct casing of 'executablePath' in scraper configuration ([b122168](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b1221688ae0f9912b8d51f4a42e2f7ff57349443))
|
|
37
|
+
* replace immediate process exit with delayed exit using setTimeout ([9751cea](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/9751cea84c250d0946e0f15106b46904f7cbd23a))
|
|
38
|
+
* update dependencies and add semantic-release-docker plugin ([83257aa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/83257aa2e342accac105d9f38fe854e4942bcec5))
|
|
39
|
+
|
|
40
|
+
## [1.2.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.2.0...v1.2.1) (2025-05-12)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* correct casing of 'executablePath' in scraper configuration ([b122168](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b1221688ae0f9912b8d51f4a42e2f7ff57349443))
|
|
46
|
+
* replace immediate process exit with delayed exit using setTimeout ([9751cea](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/9751cea84c250d0946e0f15106b46904f7cbd23a))
|
|
47
|
+
* update dependencies and add semantic-release-docker plugin ([83257aa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/83257aa2e342accac105d9f38fe854e4942bcec5))
|
|
48
|
+
|
|
1
49
|
# [1.2.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.1.0...v1.2.0) (2025-04-16)
|
|
2
50
|
|
|
3
51
|
|
package/README.md
CHANGED
|
@@ -7,27 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
This project provides an importer from Israeli banks (via [israeli-bank-scrapers](https://github.com/eshaham/israeli-bank-scrapers)) into [Actual Budget](https://github.com/actualbudget/actual).
|
|
9
9
|
|
|
10
|
-
## Table of Contents
|
|
11
|
-
|
|
12
|
-
- [Israeli Banks → Actual Budget](#israeli-banks--actual-budget)
|
|
13
|
-
- [Table of Contents](#table-of-contents)
|
|
14
|
-
- [Features](#features)
|
|
15
|
-
- [Installation](#installation)
|
|
16
|
-
- [Docker](#docker)
|
|
17
|
-
- [Prerequisites](#prerequisites)
|
|
18
|
-
- [Steps](#steps)
|
|
19
|
-
- [Configuration](#configuration)
|
|
20
|
-
- [Configuration Structure](#configuration-structure)
|
|
21
|
-
- [Usage](#usage)
|
|
22
|
-
- [Development](#development)
|
|
23
|
-
- [Overview](#overview)
|
|
24
|
-
- [Project Structure](#project-structure)
|
|
25
|
-
- [TypeScript \& Linting](#typescript--linting)
|
|
26
|
-
- [Testing \& Linting](#testing--linting)
|
|
27
|
-
- [Contributing](#contributing)
|
|
28
|
-
- [License](#license)
|
|
29
|
-
- [Acknowledgments](#acknowledgments)
|
|
30
|
-
|
|
31
10
|
## Features
|
|
32
11
|
|
|
33
12
|
1. **Multi Bank Support**: Supports all of the institutions that the [israeli-bank-scrapers](https://github.com/eshaham/israeli-bank-scrapers) library covers (Bank Hapoalim, Cal, Leumi, Discount, etc.).
|
|
@@ -43,7 +22,19 @@ This project provides an importer from Israeli banks (via [israeli-bank-scrapers
|
|
|
43
22
|
## Installation
|
|
44
23
|
|
|
45
24
|
### Docker
|
|
46
|
-
|
|
25
|
+
https://hub.docker.com/r/tomerh2001/israeli-banks-actual-budget-importer
|
|
26
|
+
#### Example
|
|
27
|
+
```yml
|
|
28
|
+
services:
|
|
29
|
+
importer:
|
|
30
|
+
image: tomerh2001/israeli-banks-actual-budget-importer:latest
|
|
31
|
+
cap_add:
|
|
32
|
+
- SYS_ADMIN
|
|
33
|
+
volumes:
|
|
34
|
+
- ./config.json:/app/config.json
|
|
35
|
+
- ./cache:/app/cache # Optional
|
|
36
|
+
- ./chrome-data:/app/chrome-data # Optional (Can be used to solve 2FA issues like with hapoalim)
|
|
37
|
+
```
|
|
47
38
|
|
|
48
39
|
### Prerequisites
|
|
49
40
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.1",
|
|
3
3
|
"name": "israeli-banks-actual-budget-importer",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"@semantic-release/changelog": "^6.0.3",
|
|
13
13
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
14
14
|
"@semantic-release/git": "^10.0.1",
|
|
15
|
-
"@semantic-release/github": "^11.0.
|
|
15
|
+
"@semantic-release/github": "^11.0.2",
|
|
16
16
|
"@semantic-release/npm": "^12.0.1",
|
|
17
17
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
18
18
|
"@types/lodash": "^4.17.16",
|
|
19
|
-
"@types/papaparse": "^5.3.
|
|
19
|
+
"@types/papaparse": "^5.3.16",
|
|
20
20
|
"bun-types": "latest",
|
|
21
21
|
"papaparse": "^5.5.2",
|
|
22
22
|
"semantic-release": "^24.2.3",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"packageManager": "yarn@4.7.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@actual-app/api": "^25.
|
|
29
|
-
"israeli-bank-scrapers": "^5.4.
|
|
28
|
+
"@actual-app/api": "^25.5.0",
|
|
29
|
+
"israeli-bank-scrapers": "^5.4.7",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
31
|
"moment": "^2.30.1",
|
|
32
32
|
"p-queue": "^8.1.0",
|
|
33
|
-
"tsx": "^4.19.
|
|
33
|
+
"tsx": "^4.19.4"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/* eslint-disable unicorn/no-process-exit */
|
|
1
2
|
/* eslint-disable no-await-in-loop */
|
|
2
3
|
/* eslint-disable n/file-extension-in-import */
|
|
3
4
|
|
|
5
|
+
import process from 'node:process';
|
|
4
6
|
import {type CompanyTypes} from 'israeli-bank-scrapers';
|
|
5
7
|
import _ from 'lodash';
|
|
6
8
|
import actual from '@actual-app/api';
|
|
7
9
|
import Queue from 'p-queue';
|
|
10
|
+
import moment from 'moment';
|
|
8
11
|
import config from '../config.json' assert {type: 'json'};
|
|
9
12
|
import type {ConfigBank} from './config.d.ts';
|
|
10
13
|
import {scrapeAndImportTransactions} from './utils.ts';
|
|
@@ -25,4 +28,7 @@ for (const [companyId, bank] of _.entries(config.banks) as Array<[CompanyTypes,
|
|
|
25
28
|
|
|
26
29
|
await queue.onIdle();
|
|
27
30
|
await actual.shutdown();
|
|
31
|
+
|
|
28
32
|
console.log('Done');
|
|
33
|
+
|
|
34
|
+
setTimeout(() => process.exit(0), moment.duration(5, 'seconds').asMilliseconds());
|
package/src/utils.ts
CHANGED
|
@@ -15,7 +15,7 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
|
|
|
15
15
|
const scraper = createScraper({
|
|
16
16
|
companyId,
|
|
17
17
|
startDate: moment().subtract(6, 'month').toDate(),
|
|
18
|
-
|
|
18
|
+
executablePath: '/opt/homebrew/bin/chromium',
|
|
19
19
|
args: ['--user-data-dir=/app/chrome-data'],
|
|
20
20
|
additionalTransactionInformation: true,
|
|
21
21
|
verbose: false,
|