@openfn/language-facebook
Advanced tools
Comparing version 0.3.3 to 0.4.0
53
ast.json
@@ -93,2 +93,55 @@ { | ||
{ | ||
"name": "fnIf", | ||
"params": [ | ||
"condition", | ||
"operation" | ||
], | ||
"docs": { | ||
"description": "A custom operation that will only execute the function if the condition returns true", | ||
"tags": [ | ||
{ | ||
"title": "public", | ||
"description": null, | ||
"type": null | ||
}, | ||
{ | ||
"title": "example", | ||
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));" | ||
}, | ||
{ | ||
"title": "function", | ||
"description": null, | ||
"name": null | ||
}, | ||
{ | ||
"title": "param", | ||
"description": "The condition that returns true", | ||
"type": { | ||
"type": "NameExpression", | ||
"name": "Boolean" | ||
}, | ||
"name": "condition" | ||
}, | ||
{ | ||
"title": "param", | ||
"description": "The operation needed to be executed.", | ||
"type": { | ||
"type": "NameExpression", | ||
"name": "Operation" | ||
}, | ||
"name": "operation" | ||
}, | ||
{ | ||
"title": "returns", | ||
"description": null, | ||
"type": { | ||
"type": "NameExpression", | ||
"name": "Operation" | ||
} | ||
} | ||
] | ||
}, | ||
"valid": true | ||
}, | ||
{ | ||
"name": "sourceValue", | ||
@@ -95,0 +148,0 @@ "params": [ |
@@ -18,2 +18,3 @@ var __defProp = Object.defineProperty; | ||
fn: () => fn, | ||
fnIf: () => fnIf, | ||
lastReferenceValue: () => lastReferenceValue, | ||
@@ -36,2 +37,3 @@ merge: () => merge, | ||
fn, | ||
fnIf, | ||
alterState, | ||
@@ -115,2 +117,3 @@ each, | ||
fn, | ||
fnIf, | ||
lastReferenceValue, | ||
@@ -117,0 +120,0 @@ merge, |
{ | ||
"name": "@openfn/language-facebook", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "An Language Package for Facebook Messenger API", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.cjs", | ||
"dependencies": { | ||
"@openfn/language-common": "^1.12.0", | ||
"@openfn/language-common": "^1.14.0", | ||
"request": "^2.88.2" | ||
@@ -18,0 +18,0 @@ }, |
@@ -31,2 +31,2 @@ /** | ||
export function postMessage(params: object): Operation; | ||
export { field, fields, sourceValue, fn, alterState, each, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common"; | ||
export { field, fields, sourceValue, fn, fnIf, alterState, each, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common"; |
Sorry, the diff of this file is not supported yet
67385
831