UNPKG

n8n-nodes-octavehq

Version:

Octave is the AI-powered messaging brain for B2B go-to-market teams, helping articulate product value, synthesize customer interaction data, and deploy consistent, effective messaging across all channels.

33 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exportedProperties = void 0; exports.execute = execute; const n8n_workflow_1 = require("n8n-workflow"); const OctaveApiRequest_1 = require("../../transport/OctaveApiRequest"); const utils_1 = require("../utils"); const properties = [ { displayName: 'Job OId', name: 'jobOId', type: 'string', required: true, default: '', description: 'The OId of the workflow run job to check', }, ]; const displayOptions = { show: { resource: ['workflow'], operation: ['runStatus'], }, }; exports.exportedProperties = (0, utils_1.applyDisplayOptions)(displayOptions, properties); async function execute(itemIndex) { const jobOId = this.getNodeParameter('jobOId', itemIndex); if (!jobOId) { throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Job OId is required.', { itemIndex }); } const response = await OctaveApiRequest_1.octaveApiRequest.call(this, 'GET', '/api/v2/workflows/run/status', {}, { jobOId }); return [this.helpers.returnJsonArray(response)]; } //# sourceMappingURL=runStatus.operation.js.map