@openfn/language-resourcemap 0.4.0 → 0.4.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 +41 -36
  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": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
290
- },
291
287
  {
292
288
  "title": "function",
293
289
  "description": null,
294
290
  "name": null
295
291
  },
292
+ {
293
+ "title": "example",
294
+ "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
295
+ },
296
296
  {
297
297
  "title": "param",
298
298
  "description": "JSONPath referencing a point in `state`.",
@@ -337,15 +337,15 @@
337
337
  "description": null,
338
338
  "type": null
339
339
  },
340
- {
341
- "title": "example",
342
- "description": "field('destination_field_name__c', 'value')"
343
- },
344
340
  {
345
341
  "title": "function",
346
342
  "description": null,
347
343
  "name": null
348
344
  },
345
+ {
346
+ "title": "example",
347
+ "description": "field('destination_field_name__c', 'value')"
348
+ },
349
349
  {
350
350
  "title": "param",
351
351
  "description": "Name of the field",
@@ -389,15 +389,15 @@
389
389
  "description": null,
390
390
  "type": null
391
391
  },
392
- {
393
- "title": "example",
394
- "description": "fields(list_of_fields)"
395
- },
396
392
  {
397
393
  "title": "function",
398
394
  "description": null,
399
395
  "name": null
400
396
  },
397
+ {
398
+ "title": "example",
399
+ "description": "fields(list_of_fields)"
400
+ },
401
401
  {
402
402
  "title": "param",
403
403
  "description": "a list of fields",
@@ -442,6 +442,11 @@
442
442
  "description": null,
443
443
  "name": null
444
444
  },
445
+ {
446
+ "title": "public",
447
+ "description": null,
448
+ "type": null
449
+ },
445
450
  {
446
451
  "title": "param",
447
452
  "description": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-resourcemap",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Resourcemap Language Pack for OpenFn",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",
@@ -12,8 +12,8 @@
12
12
  "configuration-schema.json"
13
13
  ],
14
14
  "dependencies": {
15
- "@openfn/language-common": "^1.14.0",
16
- "request": "^2.88.2"
15
+ "request": "^2.88.2",
16
+ "@openfn/language-common": "2.0.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@openfn/simple-ast": "0.4.1",
@@ -33,6 +33,7 @@
33
33
  "exports": {
34
34
  ".": {
35
35
  "import": "./dist/index.js",
36
+ "types": "./types/index.d.ts",
36
37
  "require": "./dist/index.cjs"
37
38
  },
38
39
  "./package.json": "./package.json"