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

0.3.2 • Public • Published

Language ResourceMap

Language Pack for building expressions and operations for working with the resourcemap API.

Documentation

We are working towards this to start: https://github.com/instedd/resourcemap/wiki/REST_API#create-site

Configuration

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

Expressions

submitSite(collectionId, fields)

submitSite(
  303,
  fields(
    field('name', dataValue('sampleText')),
    field('lat', 48.86),
    field('lon', 2.35),
    field('properties', function (state) {
      return {
        Comment: state.data.sampleText,
        phone: '85512345678',
      };
    })
  )
);

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

Readme

Keywords

none

Package Sidebar

Install

npm i @openfn/language-resourcemap

Weekly Downloads

0

Version

0.3.2

License

LGPLv3

Unpacked Size

65.5 kB

Total Files

10

Last publish

Collaborators

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