@openfn/language-facebook 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
@@ -59,15 +59,15 @@
59
59
  "description": null,
60
60
  "type": null
61
61
  },
62
- {
63
- "title": "example",
64
- "description": "fn(state => {\n // do some things to state\n return state;\n});"
65
- },
66
62
  {
67
63
  "title": "function",
68
64
  "description": null,
69
65
  "name": null
70
66
  },
67
+ {
68
+ "title": "example",
69
+ "description": "fn(state => {\n // do some things to state\n return state;\n});"
70
+ },
71
71
  {
72
72
  "title": "param",
73
73
  "description": "is the function",
@@ -103,15 +103,15 @@
103
103
  "description": null,
104
104
  "type": null
105
105
  },
106
- {
107
- "title": "example",
108
- "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
109
- },
110
106
  {
111
107
  "title": "function",
112
108
  "description": null,
113
109
  "name": null
114
110
  },
111
+ {
112
+ "title": "example",
113
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
114
+ },
115
115
  {
116
116
  "title": "param",
117
117
  "description": "The condition that returns true",
@@ -155,15 +155,15 @@
155
155
  "description": null,
156
156
  "type": null
157
157
  },
158
- {
159
- "title": "example",
160
- "description": "sourceValue('$.key')"
161
- },
162
158
  {
163
159
  "title": "function",
164
160
  "description": null,
165
161
  "name": null
166
162
  },
163
+ {
164
+ "title": "example",
165
+ "description": "sourceValue('$.key')"
166
+ },
167
167
  {
168
168
  "title": "param",
169
169
  "description": "JSONPath referencing a point in `state`.",
@@ -198,15 +198,15 @@
198
198
  "description": null,
199
199
  "type": null
200
200
  },
201
- {
202
- "title": "example",
203
- "description": "dataPath('key')"
204
- },
205
201
  {
206
202
  "title": "function",
207
203
  "description": null,
208
204
  "name": null
209
205
  },
206
+ {
207
+ "title": "example",
208
+ "description": "dataPath('key')"
209
+ },
210
210
  {
211
211
  "title": "param",
212
212
  "description": "JSONPath referencing a point in `data`.",
@@ -241,15 +241,15 @@
241
241
  "description": null,
242
242
  "type": null
243
243
  },
244
- {
245
- "title": "example",
246
- "description": "dataValue('key')"
247
- },
248
244
  {
249
245
  "title": "function",
250
246
  "description": null,
251
247
  "name": null
252
248
  },
249
+ {
250
+ "title": "example",
251
+ "description": "dataValue('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": "lastReferenceValue('key')"
290
- },
291
287
  {
292
288
  "title": "function",
293
289
  "description": null,
294
290
  "name": null
295
291
  },
292
+ {
293
+ "title": "example",
294
+ "description": "lastReferenceValue('key')"
295
+ },
296
296
  {
297
297
  "title": "param",
298
298
  "description": "JSONPath referencing a point in `references`.",
@@ -328,15 +328,15 @@
328
328
  "description": null,
329
329
  "type": null
330
330
  },
331
- {
332
- "title": "example",
333
- "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
334
- },
335
331
  {
336
332
  "title": "function",
337
333
  "description": null,
338
334
  "name": null
339
335
  },
336
+ {
337
+ "title": "example",
338
+ "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
339
+ },
340
340
  {
341
341
  "title": "param",
342
342
  "description": "JSONPath referencing a point in `state`.",
@@ -381,15 +381,15 @@
381
381
  "description": null,
382
382
  "type": null
383
383
  },
384
- {
385
- "title": "example",
386
- "description": "field('destination_field_name__c', 'value')"
387
- },
388
384
  {
389
385
  "title": "function",
390
386
  "description": null,
391
387
  "name": null
392
388
  },
389
+ {
390
+ "title": "example",
391
+ "description": "field('destination_field_name__c', 'value')"
392
+ },
393
393
  {
394
394
  "title": "param",
395
395
  "description": "Name of the field",
@@ -433,15 +433,15 @@
433
433
  "description": null,
434
434
  "type": null
435
435
  },
436
- {
437
- "title": "example",
438
- "description": "fields(list_of_fields)"
439
- },
440
436
  {
441
437
  "title": "function",
442
438
  "description": null,
443
439
  "name": null
444
440
  },
441
+ {
442
+ "title": "example",
443
+ "description": "fields(list_of_fields)"
444
+ },
445
445
  {
446
446
  "title": "param",
447
447
  "description": "a list of fields",
@@ -486,6 +486,11 @@
486
486
  "description": null,
487
487
  "name": null
488
488
  },
489
+ {
490
+ "title": "public",
491
+ "description": null,
492
+ "type": null
493
+ },
489
494
  {
490
495
  "title": "param",
491
496
  "description": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-facebook",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "An Language Package for Facebook Messenger API",
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",
@@ -34,6 +34,7 @@
34
34
  "exports": {
35
35
  ".": {
36
36
  "import": "./dist/index.js",
37
+ "types": "./types/index.d.ts",
37
38
  "require": "./dist/index.cjs"
38
39
  },
39
40
  "./package.json": "./package.json"