{
  "name": "currents",
  "display_name": "Currents",
  "description": "Interact with the Currents API for test orchestration and analytics",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "currentsApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "run",
      "description": "Test action rules (skip, quarantine, tag)"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/Currents/Currents.node.ts",
  "routing": {
    "base_url": "https://api.currents.dev/v1",
    "auth_headers": [
      [
        "Authorization",
        "Bearer {{apiKey}}"
      ]
    ],
    "auth_query": [],
    "credential_name": "currentsApi",
    "operations": [
      {
        "value": "create",
        "method": "POST",
        "url": "/actions",
        "body": ""
      },
      {
        "value": "delete",
        "method": "DELETE",
        "url": "/actions/{{$parameter[",
        "body": ""
      },
      {
        "value": "disable",
        "method": "PUT",
        "url": "/actions/{{$parameter[",
        "body": ""
      },
      {
        "value": "enable",
        "method": "PUT",
        "url": "/actions/{{$parameter[",
        "body": ""
      },
      {
        "value": "get",
        "method": "GET",
        "url": "/actions/{{$parameter[",
        "body": ""
      },
      {
        "value": "getAll",
        "method": "GET",
        "url": "/actions",
        "body": ""
      },
      {
        "value": "update",
        "method": "PUT",
        "url": "/actions/{{$parameter[",
        "body": ""
      },
      {
        "value": "getInsights",
        "method": "GET",
        "url": "/projects/{{$parameter[",
        "body": ""
      },
      {
        "value": "cancel",
        "method": "PUT",
        "url": "/runs/{{$parameter[",
        "body": ""
      },
      {
        "value": "cancelGithub",
        "method": "PUT",
        "url": "/runs/cancel-ci/github",
        "body": ""
      },
      {
        "value": "find",
        "method": "GET",
        "url": "/runs/find",
        "body": ""
      },
      {
        "value": "reset",
        "method": "PUT",
        "url": "/runs/{{$parameter[",
        "body": ""
      },
      {
        "value": "generate",
        "method": "POST",
        "url": "/signature/test",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "authors",
        "send_type": "query",
        "dest_key": "authors",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "branches",
        "send_type": "query",
        "dest_key": "branches",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "groups",
        "send_type": "query",
        "dest_key": "groups",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "tags",
        "send_type": "query",
        "dest_key": "tags",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "actionId",
        "send_type": "query",
        "dest_key": "projectId",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "search",
        "send_type": "query",
        "dest_key": "search",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "Expired",
        "send_type": "query",
        "dest_key": "status",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "name",
        "send_type": "body",
        "dest_key": "name",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "Tag",
        "send_type": "body",
        "dest_key": "action",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "actionTags",
        "send_type": "body",
        "dest_key": "action",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "matcherValue",
        "send_type": "body",
        "dest_key": "matcher",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "description",
        "send_type": "body",
        "dest_key": "description",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "expiresAfter",
        "send_type": "body",
        "dest_key": "expiresAfter",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "action"
        ]
      },
      {
        "param_name": "dateStart",
        "send_type": "query",
        "dest_key": "date_start",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "dateEnd",
        "send_type": "query",
        "dest_key": "date_end",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "limit",
        "send_type": "query",
        "dest_key": "limit",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "Skipped",
        "send_type": "query",
        "dest_key": "status",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "startingAfter",
        "send_type": "query",
        "dest_key": "starting_after",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "endingBefore",
        "send_type": "query",
        "dest_key": "ending_before",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "testResult"
        ]
      },
      {
        "param_name": "resolution",
        "send_type": "query",
        "dest_key": "resolution",
        "applies_to_operations": [
          "getInsights"
        ],
        "applies_to_resources": [
          "project"
        ]
      },
      {
        "param_name": "machineIds",
        "send_type": "body",
        "dest_key": "machineId",
        "applies_to_operations": [
          "reset"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "isBatchedOr8n",
        "send_type": "body",
        "dest_key": "isBatchedOr8n",
        "applies_to_operations": [
          "reset"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "githubRunId",
        "send_type": "body",
        "dest_key": "githubRunId",
        "applies_to_operations": [
          "cancelGithub"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "githubRunAttempt",
        "send_type": "body",
        "dest_key": "githubRunAttempt",
        "applies_to_operations": [
          "cancelGithub"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "projectId",
        "send_type": "body",
        "dest_key": "projectId",
        "applies_to_operations": [
          "cancelGithub"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "ciBuildId",
        "send_type": "body",
        "dest_key": "ciBuildId",
        "applies_to_operations": [
          "cancelGithub"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "ciBuildId",
        "send_type": "query",
        "dest_key": "projectId",
        "applies_to_operations": [
          "find",
          "getAll"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "branch",
        "send_type": "query",
        "dest_key": "branch",
        "applies_to_operations": [
          "find"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "Timeout",
        "send_type": "query",
        "dest_key": "completion_state",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "Running",
        "send_type": "query",
        "dest_key": "status",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "OR",
        "send_type": "query",
        "dest_key": "tag_operator",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "run"
        ]
      },
      {
        "param_name": "specNameFilter",
        "send_type": "query",
        "dest_key": "specNameFilter",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "specFile"
        ]
      },
      {
        "param_name": "includeFailedInDuration",
        "send_type": "query",
        "dest_key": "includeFailedInDuration",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "specFile"
        ]
      },
      {
        "param_name": "order",
        "send_type": "query",
        "dest_key": "order",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "specFile"
        ]
      },
      {
        "param_name": "Descending",
        "send_type": "query",
        "dest_key": "dir",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "specFile"
        ]
      },
      {
        "param_name": "page",
        "send_type": "query",
        "dest_key": "page",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "specFile"
        ]
      },
      {
        "param_name": "minExecutions",
        "send_type": "query",
        "dest_key": "min_executions",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "test"
        ]
      },
      {
        "param_name": "spec",
        "send_type": "query",
        "dest_key": "spec",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "test"
        ]
      },
      {
        "param_name": "title",
        "send_type": "query",
        "dest_key": "title",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "test"
        ]
      },
      {
        "param_name": "Title",
        "send_type": "query",
        "dest_key": "order",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "test"
        ]
      },
      {
        "param_name": "metric_settings",
        "send_type": "query",
        "dest_key": "metric_settings",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "test"
        ]
      },
      {
        "param_name": "Generate",
        "send_type": "body",
        "dest_key": "projectId",
        "applies_to_operations": [
          "generate"
        ],
        "applies_to_resources": [
          "signature"
        ]
      },
      {
        "param_name": "specFilePath",
        "send_type": "body",
        "dest_key": "specFilePath",
        "applies_to_operations": [
          "generate"
        ],
        "applies_to_resources": [
          "signature"
        ]
      },
      {
        "param_name": "testTitle",
        "send_type": "body",
        "dest_key": "testTitle",
        "applies_to_operations": [
          "generate"
        ],
        "applies_to_resources": [
          "signature"
        ]
      }
    ]
  }
}