@openfn/language-telerivet 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -3
- package/types/Adaptor.d.ts +6 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-telerivet",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "telerivet Language Pack for OpenFn",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"author": "Open Function Group",
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
"JSONPath": "^0.10.0",
|
|
16
16
|
"lodash-fp": "^0.10.4",
|
|
17
17
|
"superagent": "^3.7.0",
|
|
18
|
-
"@openfn/language-common": "2.
|
|
18
|
+
"@openfn/language-common": "2.3.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@openfn/simple-ast": "0.4.1",
|
|
22
21
|
"assertion-error": "^1.1.0",
|
|
23
22
|
"chai": "^3.5.0",
|
|
24
23
|
"deep-eql": "^0.1.3",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Execute a sequence of operations.
|
|
3
3
|
* Wraps `@openfn/language-common/execute`, and prepends initial state for telerivet.
|
|
4
|
-
* @example
|
|
5
|
-
* execute(
|
|
6
|
-
* create('foo'),
|
|
7
|
-
* delete('bar')
|
|
8
|
-
* )(state)
|
|
9
4
|
* @private
|
|
10
5
|
* @param {Operations} operations - Operations to be performed.
|
|
11
6
|
* @returns {Operation}
|
|
@@ -13,10 +8,12 @@
|
|
|
13
8
|
export function execute(...operations: Operations): Operation;
|
|
14
9
|
/**
|
|
15
10
|
* Send a message
|
|
16
|
-
* @example
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
11
|
+
* @example <caption>Send a message</caption>
|
|
12
|
+
* send({
|
|
13
|
+
* to_number: "+1234567890",
|
|
14
|
+
* content: "Hello from Telerivet",
|
|
15
|
+
* route_id: "PN123",
|
|
16
|
+
* });
|
|
20
17
|
* @function
|
|
21
18
|
* @param {object} sendData - Payload data for the message
|
|
22
19
|
* @returns {Operation}
|