@openfn/language-openfn
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Language OpenFn

Adaptor for building expressions and operations to interact with the OpenFn v1 API.

Documentation

request

request({
  method: 'get',
  path: 'jobs',
  params: {
    project_id: 490,
  },
});
request(
  {
    method: 'post',
    path: 'jobs',
    data: {
      trigger_id: 1,
      expression: 'steps()',
    },
  },
  state => {
    console.log('cool callback!');
    return state;
  }
);

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    0
    • latest

Version History

Package Sidebar

Install

npm i @openfn/language-openfn

Weekly Downloads

26

Version

1.4.0

License

LGPLv3

Unpacked Size

69.8 kB

Total Files

10

Last publish

Collaborators

  • mtuchi
  • elias-ba
  • stuartc-openfn
  • taylordowns2000