{ "kind": "open-flow-workflow", "version": 1, "name": "Look Up Domain DNS Records with Uproc", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_c3fdb7dce0a00d95": { "name": "Enter a domain", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "domain" } ] }, "n_a3c960092688918b": { "inputs": { "domain": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_c3fdb7dce0a00d95", "output": "domain" } ] } }, "name": "Prepare DNS lookup", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "domain" } ], "outputs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "body" } ], "name": "Prepare DNS lookup", "moduleId": "n_02575c204019fb8f", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_ff70939a97756128": { "inputs": { "url": { "kind": "value", "value": "https://api.uproc.io/api/v2/process" }, "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_a3c960092688918b", "output": "body" } ] }, "auth.username": { "kind": "unset" }, "auth.password": { "kind": "unset" } }, "name": "Look up DNS records", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "url" }, { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "auth.username" }, { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "auth.password" } ], "outputs": [ { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": false, "handle": "headers" } ], "name": "Look up DNS records", "executor": { "method": "POST", "query": { "mode": "fields", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "json", "authentication": { "type": "basic" }, "responseFormat": "json", "statusPolicy": "success", "kind": "http-request" } } }, "n_6976bcae65043475": { "name": "DNS response", "kind": "outputs", "outputDefs": [ { "jsonSchema": {}, "nullable": true, "handle": "response" } ], "outputMappings": { "response": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_ff70939a97756128", "output": "body" } ] } } } }, "edges": [ { "source": "n_c3fdb7dce0a00d95", "target": "n_a3c960092688918b" }, { "source": "n_a3c960092688918b", "target": "n_ff70939a97756128" }, { "source": "n_ff70939a97756128", "target": "n_6976bcae65043475" } ] } }, "modules": { "n_02575c204019fb8f": { "name": "Prepare DNS lookup", "imports": [], "source": "export default function dns({domain}) { if(typeof domain!=='string'||!domain)throw Error('Enter a domain');return {body:{processor:'get-domain-records',params:{domain}}}; }\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }