Updates to the @actual-budget/api package (#464)

* Make it easier to build the bundle.api.js for the API

* Remove budgetId parameter, move config to top level of API

* that’s a breaking change

* Add support for signing into the server in init()

* Add api.downloadBudget(syncId, { password }) method

* Fix lint errors

* Refactor: extract out getSyncError

* api/download-budget: sync if possible instead of downloading

* Don’t bother with fetching remote files and installing key if the file is local

* *groupId

* FIx lint issues

* Remove extra close+reopen

* Refactor out duplicate load-budget logic

* Trailing commas
This commit is contained in:
Jed Fox
2023-02-23 23:01:05 -05:00
committed by GitHub
parent 2a8b25a366
commit 93a1f8a944
9 changed files with 112 additions and 47 deletions

View File

@@ -22,7 +22,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build API
run: cd packages/loot-core && yarn build:api
run: cd packages/api && yarn build
web:
runs-on: ubuntu-latest