@openfn/language-magpi 1.2.0 → 1.2.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.
- package/ast.json +41 -36
- package/package.json +3 -2
package/ast.json
CHANGED
|
@@ -102,15 +102,15 @@
|
|
|
102
102
|
"description": null,
|
|
103
103
|
"type": null
|
|
104
104
|
},
|
|
105
|
-
{
|
|
106
|
-
"title": "example",
|
|
107
|
-
"description": "fn(state => {\n // do some things to state\n return state;\n});"
|
|
108
|
-
},
|
|
109
105
|
{
|
|
110
106
|
"title": "function",
|
|
111
107
|
"description": null,
|
|
112
108
|
"name": null
|
|
113
109
|
},
|
|
110
|
+
{
|
|
111
|
+
"title": "example",
|
|
112
|
+
"description": "fn(state => {\n // do some things to state\n return state;\n});"
|
|
113
|
+
},
|
|
114
114
|
{
|
|
115
115
|
"title": "param",
|
|
116
116
|
"description": "is the function",
|
|
@@ -146,15 +146,15 @@
|
|
|
146
146
|
"description": null,
|
|
147
147
|
"type": null
|
|
148
148
|
},
|
|
149
|
-
{
|
|
150
|
-
"title": "example",
|
|
151
|
-
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
|
|
152
|
-
},
|
|
153
149
|
{
|
|
154
150
|
"title": "function",
|
|
155
151
|
"description": null,
|
|
156
152
|
"name": null
|
|
157
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"title": "example",
|
|
156
|
+
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
|
|
157
|
+
},
|
|
158
158
|
{
|
|
159
159
|
"title": "param",
|
|
160
160
|
"description": "The condition that returns true",
|
|
@@ -198,15 +198,15 @@
|
|
|
198
198
|
"description": null,
|
|
199
199
|
"type": null
|
|
200
200
|
},
|
|
201
|
-
{
|
|
202
|
-
"title": "example",
|
|
203
|
-
"description": "sourceValue('$.key')"
|
|
204
|
-
},
|
|
205
201
|
{
|
|
206
202
|
"title": "function",
|
|
207
203
|
"description": null,
|
|
208
204
|
"name": null
|
|
209
205
|
},
|
|
206
|
+
{
|
|
207
|
+
"title": "example",
|
|
208
|
+
"description": "sourceValue('$.key')"
|
|
209
|
+
},
|
|
210
210
|
{
|
|
211
211
|
"title": "param",
|
|
212
212
|
"description": "JSONPath referencing a point in `state`.",
|
|
@@ -241,15 +241,15 @@
|
|
|
241
241
|
"description": null,
|
|
242
242
|
"type": null
|
|
243
243
|
},
|
|
244
|
-
{
|
|
245
|
-
"title": "example",
|
|
246
|
-
"description": "dataPath('key')"
|
|
247
|
-
},
|
|
248
244
|
{
|
|
249
245
|
"title": "function",
|
|
250
246
|
"description": null,
|
|
251
247
|
"name": null
|
|
252
248
|
},
|
|
249
|
+
{
|
|
250
|
+
"title": "example",
|
|
251
|
+
"description": "dataPath('key')"
|
|
252
|
+
},
|
|
253
253
|
{
|
|
254
254
|
"title": "param",
|
|
255
255
|
"description": "JSONPath referencing a point in `data`.",
|
|
@@ -284,15 +284,15 @@
|
|
|
284
284
|
"description": null,
|
|
285
285
|
"type": null
|
|
286
286
|
},
|
|
287
|
-
{
|
|
288
|
-
"title": "example",
|
|
289
|
-
"description": "dataValue('key')"
|
|
290
|
-
},
|
|
291
287
|
{
|
|
292
288
|
"title": "function",
|
|
293
289
|
"description": null,
|
|
294
290
|
"name": null
|
|
295
291
|
},
|
|
292
|
+
{
|
|
293
|
+
"title": "example",
|
|
294
|
+
"description": "dataValue('key')"
|
|
295
|
+
},
|
|
296
296
|
{
|
|
297
297
|
"title": "param",
|
|
298
298
|
"description": "JSONPath referencing a point in `data`.",
|
|
@@ -327,15 +327,15 @@
|
|
|
327
327
|
"description": null,
|
|
328
328
|
"type": null
|
|
329
329
|
},
|
|
330
|
-
{
|
|
331
|
-
"title": "example",
|
|
332
|
-
"description": "lastReferenceValue('key')"
|
|
333
|
-
},
|
|
334
330
|
{
|
|
335
331
|
"title": "function",
|
|
336
332
|
"description": null,
|
|
337
333
|
"name": null
|
|
338
334
|
},
|
|
335
|
+
{
|
|
336
|
+
"title": "example",
|
|
337
|
+
"description": "lastReferenceValue('key')"
|
|
338
|
+
},
|
|
339
339
|
{
|
|
340
340
|
"title": "param",
|
|
341
341
|
"description": "JSONPath referencing a point in `references`.",
|
|
@@ -371,15 +371,15 @@
|
|
|
371
371
|
"description": null,
|
|
372
372
|
"type": null
|
|
373
373
|
},
|
|
374
|
-
{
|
|
375
|
-
"title": "example",
|
|
376
|
-
"description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
|
|
377
|
-
},
|
|
378
374
|
{
|
|
379
375
|
"title": "function",
|
|
380
376
|
"description": null,
|
|
381
377
|
"name": null
|
|
382
378
|
},
|
|
379
|
+
{
|
|
380
|
+
"title": "example",
|
|
381
|
+
"description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
|
|
382
|
+
},
|
|
383
383
|
{
|
|
384
384
|
"title": "param",
|
|
385
385
|
"description": "JSONPath referencing a point in `state`.",
|
|
@@ -424,15 +424,15 @@
|
|
|
424
424
|
"description": null,
|
|
425
425
|
"type": null
|
|
426
426
|
},
|
|
427
|
-
{
|
|
428
|
-
"title": "example",
|
|
429
|
-
"description": "field('destination_field_name__c', 'value')"
|
|
430
|
-
},
|
|
431
427
|
{
|
|
432
428
|
"title": "function",
|
|
433
429
|
"description": null,
|
|
434
430
|
"name": null
|
|
435
431
|
},
|
|
432
|
+
{
|
|
433
|
+
"title": "example",
|
|
434
|
+
"description": "field('destination_field_name__c', 'value')"
|
|
435
|
+
},
|
|
436
436
|
{
|
|
437
437
|
"title": "param",
|
|
438
438
|
"description": "Name of the field",
|
|
@@ -476,15 +476,15 @@
|
|
|
476
476
|
"description": null,
|
|
477
477
|
"type": null
|
|
478
478
|
},
|
|
479
|
-
{
|
|
480
|
-
"title": "example",
|
|
481
|
-
"description": "fields(list_of_fields)"
|
|
482
|
-
},
|
|
483
479
|
{
|
|
484
480
|
"title": "function",
|
|
485
481
|
"description": null,
|
|
486
482
|
"name": null
|
|
487
483
|
},
|
|
484
|
+
{
|
|
485
|
+
"title": "example",
|
|
486
|
+
"description": "fields(list_of_fields)"
|
|
487
|
+
},
|
|
488
488
|
{
|
|
489
489
|
"title": "param",
|
|
490
490
|
"description": "a list of fields",
|
|
@@ -529,6 +529,11 @@
|
|
|
529
529
|
"description": null,
|
|
530
530
|
"name": null
|
|
531
531
|
},
|
|
532
|
+
{
|
|
533
|
+
"title": "public",
|
|
534
|
+
"description": null,
|
|
535
|
+
"type": null
|
|
536
|
+
},
|
|
532
537
|
{
|
|
533
538
|
"title": "param",
|
|
534
539
|
"description": null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-magpi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A Magpi Language Pack for OpenFn",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"author": "Open Function Group",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"configuration-schema.json"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@openfn/language-common": "^
|
|
15
|
+
"@openfn/language-common": "^2.0.1",
|
|
16
16
|
"JSONPath": "^0.10.0",
|
|
17
17
|
"js2xmlparser": "^3.0.0",
|
|
18
18
|
"lodash-fp": "^0.10.4",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
40
40
|
"import": "./dist/index.js",
|
|
41
|
+
"types": "./types/index.d.ts",
|
|
41
42
|
"require": "./dist/index.cjs"
|
|
42
43
|
},
|
|
43
44
|
"./package.json": "./package.json"
|