cozy-bi-auth
v0.0.25
Published
Functions to deal with Linxo to BI id mapping and BI field encryption
Downloads
860
Readme
Goal
This package provides code for interacting with budget-insight APIs from Cozy.
It is used from cozy-home to let the user add a banking connection from a front-end connection form.
Linxo ids
Since we historically used Linxo, we have a mapping from Linxo bank ids to BI bank ids.
Update linxo mappings when a new connector is published
// Go to banking-konnectors repository root
LOG_LEVEL=error BI_DOMAIN=dev node src/bi/cli.js platform banks > /tmp/devbanks.json
LOG_LEVEL=error BI_DOMAIN=prod node src/bi/cli.js platform banks > /tmp/prodbanks.json
cd src/bi/bi-auth
yarn updateMappings dev /tmp/devbanks.json
yarn updateMappings prod /tmp/prodbanks.json
commit and publish
Publishing
This package is not automatically published. You have to do it manually at the moment.
Before publish, create a release branch and push it to gitlab
git checkout -b release_bi-auth_0.0.22
git push origin release_bi-auth_0.0.22
Locally publish build to npm
npm publish