@openfn/language-beyonic 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.
package/ast.json CHANGED
@@ -1,5 +1,135 @@
1
1
  {
2
- "operations": [],
2
+ "operations": [
3
+ {
4
+ "name": "createPayment",
5
+ "params": [
6
+ "data"
7
+ ],
8
+ "docs": {
9
+ "description": "Create a payment",
10
+ "tags": [
11
+ {
12
+ "title": "example",
13
+ "description": "execute(\n createPayment(data)\n)(state)"
14
+ },
15
+ {
16
+ "title": "public",
17
+ "description": null,
18
+ "type": null
19
+ },
20
+ {
21
+ "title": "function",
22
+ "description": null,
23
+ "name": null
24
+ },
25
+ {
26
+ "title": "param",
27
+ "description": "Payload data for the payment",
28
+ "type": {
29
+ "type": "NameExpression",
30
+ "name": "object"
31
+ },
32
+ "name": "data"
33
+ },
34
+ {
35
+ "title": "returns",
36
+ "description": null,
37
+ "type": {
38
+ "type": "NameExpression",
39
+ "name": "Operation"
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ "valid": true
45
+ },
46
+ {
47
+ "name": "createContact",
48
+ "params": [
49
+ "data"
50
+ ],
51
+ "docs": {
52
+ "description": "Create a contact",
53
+ "tags": [
54
+ {
55
+ "title": "example",
56
+ "description": "execute(\n createContact(data)\n)(state)"
57
+ },
58
+ {
59
+ "title": "public",
60
+ "description": null,
61
+ "type": null
62
+ },
63
+ {
64
+ "title": "function",
65
+ "description": null,
66
+ "name": null
67
+ },
68
+ {
69
+ "title": "param",
70
+ "description": "Payload data for the contact",
71
+ "type": {
72
+ "type": "NameExpression",
73
+ "name": "object"
74
+ },
75
+ "name": "data"
76
+ },
77
+ {
78
+ "title": "returns",
79
+ "description": null,
80
+ "type": {
81
+ "type": "NameExpression",
82
+ "name": "Operation"
83
+ }
84
+ }
85
+ ]
86
+ },
87
+ "valid": true
88
+ },
89
+ {
90
+ "name": "createCollectionRequest",
91
+ "params": [
92
+ "data"
93
+ ],
94
+ "docs": {
95
+ "description": "Create a collection request",
96
+ "tags": [
97
+ {
98
+ "title": "example",
99
+ "description": "execute(\n createCollectionRequest(data)\n)(state)"
100
+ },
101
+ {
102
+ "title": "public",
103
+ "description": null,
104
+ "type": null
105
+ },
106
+ {
107
+ "title": "function",
108
+ "description": null,
109
+ "name": null
110
+ },
111
+ {
112
+ "title": "param",
113
+ "description": "Payload data for the collection request",
114
+ "type": {
115
+ "type": "NameExpression",
116
+ "name": "object"
117
+ },
118
+ "name": "data"
119
+ },
120
+ {
121
+ "title": "returns",
122
+ "description": null,
123
+ "type": {
124
+ "type": "NameExpression",
125
+ "name": "Operation"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "valid": true
131
+ }
132
+ ],
3
133
  "exports": [],
4
134
  "common": [
5
135
  {
@@ -15,15 +145,15 @@
15
145
  "description": null,
16
146
  "type": null
17
147
  },
18
- {
19
- "title": "example",
20
- "description": "fn(state => {\n // do some things to state\n return state;\n});"
21
- },
22
148
  {
23
149
  "title": "function",
24
150
  "description": null,
25
151
  "name": null
26
152
  },
153
+ {
154
+ "title": "example",
155
+ "description": "fn(state => {\n // do some things to state\n return state;\n});"
156
+ },
27
157
  {
28
158
  "title": "param",
29
159
  "description": "is the function",
@@ -59,15 +189,15 @@
59
189
  "description": null,
60
190
  "type": null
61
191
  },
62
- {
63
- "title": "example",
64
- "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
65
- },
66
192
  {
67
193
  "title": "function",
68
194
  "description": null,
69
195
  "name": null
70
196
  },
197
+ {
198
+ "title": "example",
199
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
200
+ },
71
201
  {
72
202
  "title": "param",
73
203
  "description": "The condition that returns true",
@@ -111,15 +241,15 @@
111
241
  "description": null,
112
242
  "type": null
113
243
  },
114
- {
115
- "title": "example",
116
- "description": "sourceValue('$.key')"
117
- },
118
244
  {
119
245
  "title": "function",
120
246
  "description": null,
121
247
  "name": null
122
248
  },
249
+ {
250
+ "title": "example",
251
+ "description": "sourceValue('$.key')"
252
+ },
123
253
  {
124
254
  "title": "param",
125
255
  "description": "JSONPath referencing a point in `state`.",
@@ -154,15 +284,15 @@
154
284
  "description": null,
155
285
  "type": null
156
286
  },
157
- {
158
- "title": "example",
159
- "description": "dataPath('key')"
160
- },
161
287
  {
162
288
  "title": "function",
163
289
  "description": null,
164
290
  "name": null
165
291
  },
292
+ {
293
+ "title": "example",
294
+ "description": "dataPath('key')"
295
+ },
166
296
  {
167
297
  "title": "param",
168
298
  "description": "JSONPath referencing a point in `data`.",
@@ -197,15 +327,15 @@
197
327
  "description": null,
198
328
  "type": null
199
329
  },
200
- {
201
- "title": "example",
202
- "description": "dataValue('key')"
203
- },
204
330
  {
205
331
  "title": "function",
206
332
  "description": null,
207
333
  "name": null
208
334
  },
335
+ {
336
+ "title": "example",
337
+ "description": "dataValue('key')"
338
+ },
209
339
  {
210
340
  "title": "param",
211
341
  "description": "JSONPath referencing a point in `data`.",
@@ -240,15 +370,15 @@
240
370
  "description": null,
241
371
  "type": null
242
372
  },
243
- {
244
- "title": "example",
245
- "description": "lastReferenceValue('key')"
246
- },
247
373
  {
248
374
  "title": "function",
249
375
  "description": null,
250
376
  "name": null
251
377
  },
378
+ {
379
+ "title": "example",
380
+ "description": "lastReferenceValue('key')"
381
+ },
252
382
  {
253
383
  "title": "param",
254
384
  "description": "JSONPath referencing a point in `references`.",
@@ -284,15 +414,15 @@
284
414
  "description": null,
285
415
  "type": null
286
416
  },
287
- {
288
- "title": "example",
289
- "description": "field('destination_field_name__c', 'value')"
290
- },
291
417
  {
292
418
  "title": "function",
293
419
  "description": null,
294
420
  "name": null
295
421
  },
422
+ {
423
+ "title": "example",
424
+ "description": "field('destination_field_name__c', 'value')"
425
+ },
296
426
  {
297
427
  "title": "param",
298
428
  "description": "Name of the field",
@@ -336,15 +466,15 @@
336
466
  "description": null,
337
467
  "type": null
338
468
  },
339
- {
340
- "title": "example",
341
- "description": "fields(list_of_fields)"
342
- },
343
469
  {
344
470
  "title": "function",
345
471
  "description": null,
346
472
  "name": null
347
473
  },
474
+ {
475
+ "title": "example",
476
+ "description": "fields(list_of_fields)"
477
+ },
348
478
  {
349
479
  "title": "param",
350
480
  "description": "a list of fields",
@@ -389,6 +519,11 @@
389
519
  "description": null,
390
520
  "name": null
391
521
  },
522
+ {
523
+ "title": "public",
524
+ "description": null,
525
+ "type": null
526
+ },
392
527
  {
393
528
  "title": "param",
394
529
  "description": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-beyonic",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "beyonic Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
@@ -23,10 +23,10 @@
23
23
  "configuration-schema.json"
24
24
  ],
25
25
  "dependencies": {
26
- "@openfn/language-common": "^1.14.0",
27
26
  "JSONPath": "^0.10.0",
28
27
  "lodash-fp": "^0.10.2",
29
- "superagent": "^8.0.0"
28
+ "superagent": "^8.0.0",
29
+ "@openfn/language-common": "2.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@openfn/simple-ast": "0.4.1",
@@ -17,6 +17,7 @@ export function execute(...operations: Operations): Operation;
17
17
  * execute(
18
18
  * createPayment(data)
19
19
  * )(state)
20
+ * @public
20
21
  * @function
21
22
  * @param {object} data - Payload data for the payment
22
23
  * @returns {Operation}
@@ -28,6 +29,7 @@ export function createPayment(data: object): Operation;
28
29
  * execute(
29
30
  * createContact(data)
30
31
  * )(state)
32
+ * @public
31
33
  * @function
32
34
  * @param {object} data - Payload data for the contact
33
35
  * @returns {Operation}
@@ -39,6 +41,7 @@ export function createContact(data: object): Operation;
39
41
  * execute(
40
42
  * createCollectionRequest(data)
41
43
  * )(state)
44
+ * @public
42
45
  * @function
43
46
  * @param {object} data - Payload data for the collection request
44
47
  * @returns {Operation}