@openfn/language-openhim 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/ast.json +37 -32
  2. package/package.json +4 -3
package/ast.json CHANGED
@@ -15,15 +15,15 @@
15
15
  "description": null,
16
16
  "type": null
17
17
  },
18
- {
19
- "title": "example",
20
- "description": "fn(state => {\n // do some things to state\n return state;\n});"
21
- },
22
18
  {
23
19
  "title": "function",
24
20
  "description": null,
25
21
  "name": null
26
22
  },
23
+ {
24
+ "title": "example",
25
+ "description": "fn(state => {\n // do some things to state\n return state;\n});"
26
+ },
27
27
  {
28
28
  "title": "param",
29
29
  "description": "is the function",
@@ -59,15 +59,15 @@
59
59
  "description": null,
60
60
  "type": null
61
61
  },
62
- {
63
- "title": "example",
64
- "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
65
- },
66
62
  {
67
63
  "title": "function",
68
64
  "description": null,
69
65
  "name": null
70
66
  },
67
+ {
68
+ "title": "example",
69
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
70
+ },
71
71
  {
72
72
  "title": "param",
73
73
  "description": "The condition that returns true",
@@ -111,15 +111,15 @@
111
111
  "description": null,
112
112
  "type": null
113
113
  },
114
- {
115
- "title": "example",
116
- "description": "sourceValue('$.key')"
117
- },
118
114
  {
119
115
  "title": "function",
120
116
  "description": null,
121
117
  "name": null
122
118
  },
119
+ {
120
+ "title": "example",
121
+ "description": "sourceValue('$.key')"
122
+ },
123
123
  {
124
124
  "title": "param",
125
125
  "description": "JSONPath referencing a point in `state`.",
@@ -154,15 +154,15 @@
154
154
  "description": null,
155
155
  "type": null
156
156
  },
157
- {
158
- "title": "example",
159
- "description": "dataPath('key')"
160
- },
161
157
  {
162
158
  "title": "function",
163
159
  "description": null,
164
160
  "name": null
165
161
  },
162
+ {
163
+ "title": "example",
164
+ "description": "dataPath('key')"
165
+ },
166
166
  {
167
167
  "title": "param",
168
168
  "description": "JSONPath referencing a point in `data`.",
@@ -197,15 +197,15 @@
197
197
  "description": null,
198
198
  "type": null
199
199
  },
200
- {
201
- "title": "example",
202
- "description": "dataValue('key')"
203
- },
204
200
  {
205
201
  "title": "function",
206
202
  "description": null,
207
203
  "name": null
208
204
  },
205
+ {
206
+ "title": "example",
207
+ "description": "dataValue('key')"
208
+ },
209
209
  {
210
210
  "title": "param",
211
211
  "description": "JSONPath referencing a point in `data`.",
@@ -240,15 +240,15 @@
240
240
  "description": null,
241
241
  "type": null
242
242
  },
243
- {
244
- "title": "example",
245
- "description": "lastReferenceValue('key')"
246
- },
247
243
  {
248
244
  "title": "function",
249
245
  "description": null,
250
246
  "name": null
251
247
  },
248
+ {
249
+ "title": "example",
250
+ "description": "lastReferenceValue('key')"
251
+ },
252
252
  {
253
253
  "title": "param",
254
254
  "description": "JSONPath referencing a point in `references`.",
@@ -284,15 +284,15 @@
284
284
  "description": null,
285
285
  "type": null
286
286
  },
287
- {
288
- "title": "example",
289
- "description": "field('destination_field_name__c', 'value')"
290
- },
291
287
  {
292
288
  "title": "function",
293
289
  "description": null,
294
290
  "name": null
295
291
  },
292
+ {
293
+ "title": "example",
294
+ "description": "field('destination_field_name__c', 'value')"
295
+ },
296
296
  {
297
297
  "title": "param",
298
298
  "description": "Name of the field",
@@ -336,15 +336,15 @@
336
336
  "description": null,
337
337
  "type": null
338
338
  },
339
- {
340
- "title": "example",
341
- "description": "fields(list_of_fields)"
342
- },
343
339
  {
344
340
  "title": "function",
345
341
  "description": null,
346
342
  "name": null
347
343
  },
344
+ {
345
+ "title": "example",
346
+ "description": "fields(list_of_fields)"
347
+ },
348
348
  {
349
349
  "title": "param",
350
350
  "description": "a list of fields",
@@ -389,6 +389,11 @@
389
389
  "description": null,
390
390
  "name": null
391
391
  },
392
+ {
393
+ "title": "public",
394
+ "description": null,
395
+ "type": null
396
+ },
392
397
  {
393
398
  "title": "param",
394
399
  "description": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-openhim",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "openhim Language Pack for OpenFn",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",
@@ -13,9 +13,9 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "JSONPath": "^0.10.0",
16
- "@openfn/language-common": "^1.14.0",
17
16
  "lodash-fp": "^0.10.2",
18
- "superagent": "^3.7.0"
17
+ "superagent": "^3.7.0",
18
+ "@openfn/language-common": "2.0.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "assertion-error": "^1.0.1",
@@ -40,6 +40,7 @@
40
40
  "exports": {
41
41
  ".": {
42
42
  "import": "./dist/index.js",
43
+ "types": "./types/index.d.ts",
43
44
  "require": "./dist/index.cjs"
44
45
  },
45
46
  "./package.json": "./package.json"