@seneca/nordigen-provider
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Seneca Nordigen-Provider

Seneca Nordigen-Provider is a plugin for Seneca

Provides access to the Nordigen API using the Seneca provider convention. Nordigen API entities are represented as Seneca entities so that they can be accessed using the Seneca entity API and messages.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Quick Example

// Setup - get the key value (<SECRET>) separately from a vault or
// environment variable.
Seneca()
  .use('promisify')
  .use('entity')
  .use('provider', {
    provider: {
      nordigen: {
        keys: {
          secretId: { value: '<API-ID>' },
          secretKey: { value: '<API-KEY>' },
        }
      }
    }
  })
  .use('nordigen-provider')

let list = await seneca.entity('provider/nordigen/institution')
  .list$({country: 'IE'})

Console.log('IE institutions', list)

Install

$ npm install @seneca/nordigen-provider

Options

None.

Action Patterns

Action Descriptions

« "role":"entity","base":"nordigen","cmd":"list","name":"institution","zone":"provider" »

No description provided.


« "sys":"provider","get":"info","provider":"nordigen" »

Get information about the provider.


Testing

Note that since full tests can only bve run locally with valid API keys, coverage is not generate by Github Actions, and the local coverage is checked into git.

TODO: fix @seneca/doc

Package Sidebar

Install

npm i @seneca/nordigen-provider

Weekly Downloads

12

Version

0.5.1

License

MIT

Unpacked Size

16.6 kB

Total Files

12

Last publish

Collaborators

  • lmscunha
  • alex01
  • lilsweetcaligula
  • stokesriona
  • rjrodger