0.3.5 • Published 9 months ago

@openfn/language-telerivet v0.3.5

Weekly downloads
-
License
LGPLv3
Repository
github
Last release
9 months ago

Language Telerivet

Language Pack for sending messages using the telerivet API.

Documentation

Configuration

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

Send message

Current send expression:

send(
  fields(
    field('to_number', dataValue('recipient_number')),
    field('content', dataValue('recipient_text')),
    // Lots of optional parameters...
    field('message_type', 'sms'),
    field('route_id', dataValue('some_route'))
  )
);

sendBulk messages - WIP

Current sendBulk expression:

send(fields(
  field("content", dataValue("recipient_text")),
  field("to_numbers", [
        "+14155550123",
        "+14255550234",
        "+16505550345"
    ]
  // Lots of optional parameters...
  field("message_type", "sms"),
  field("route_id", dataValue("some_route"))
))

Note that "recipient_text" may be a concatenation like this:

field('content', function (state) {
  return dataValue('salutation')(state).concat(
    '. ',
    dataValue('last_name')(state),
    ', )'
  );
});

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

0.3.5

9 months ago

0.3.4

9 months ago

0.3.3

10 months ago

0.3.0

1 year ago

0.3.2

11 months ago

0.3.1

11 months ago

0.2.1

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago