{ "kind": "open-flow-workflow", "version": 1, "name": "Fetch Bible Passages by Reference", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_0c777d01091d0bb2": { "name": "Provide passage references", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "array", "items": { "type": "string" } }, "nullable": true, "handle": "references" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "translation" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "version" } ] }, "n_099205fa2121b41b": { "inputs": { "references": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_0c777d01091d0bb2", "output": "references" } ] }, "translation": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_0c777d01091d0bb2", "output": "translation" } ] }, "version": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_0c777d01091d0bb2", "output": "version" } ] } }, "name": "Prepare GetBible query", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "array", "items": { "type": "string" } }, "nullable": true, "handle": "references" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "translation" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "version" } ], "outputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "url" } ], "name": "Prepare GetBible query", "moduleId": "n_adae61a66a8e4436", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_da5c0568fc530368": { "inputs": { "url": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_099205fa2121b41b", "output": "url" } ] } }, "name": "Fetch passages", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "url" } ], "outputs": [ { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": false, "handle": "headers" } ], "name": "Fetch passages", "executor": { "method": "GET", "query": { "mode": "fields", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "none", "authentication": { "type": "none" }, "responseFormat": "json", "statusPolicy": "success", "kind": "http-request" } } }, "n_fb55a9409e266f83": { "name": "Return passages", "kind": "outputs", "outputDefs": [ { "jsonSchema": {}, "nullable": true, "handle": "result" } ], "outputMappings": { "result": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_da5c0568fc530368", "output": "body" } ] } } } }, "edges": [ { "source": "n_0c777d01091d0bb2", "target": "n_099205fa2121b41b" }, { "source": "n_099205fa2121b41b", "target": "n_da5c0568fc530368" }, { "source": "n_da5c0568fc530368", "target": "n_fb55a9409e266f83" } ] } }, "modules": { "n_adae61a66a8e4436": { "name": "Prepare GetBible query", "imports": [], "source": "export default function getBible({references,translation,version}){const refs=Array.isArray(references)?references.join('; '):'John 3:16',v=version||'v2',t=translation||'kjv';return {url:'https://query.getbible.net/'+encodeURIComponent(v)+'/'+encodeURIComponent(t)+'/'+encodeURIComponent(refs)}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }