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.

40 lines 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exportedProperties = void 0; exports.execute = execute; const OctaveApiRequest_1 = require("../../transport/OctaveApiRequest"); const utils_1 = require("../utils"); const properties = [ { displayName: 'Resource OId', name: 'oId', type: 'string', required: true, default: '', description: 'The OId of the resource to retrieve', }, { displayName: 'Check Storage Task Status', name: 'checkStorageTaskStatus', type: 'boolean', default: false, description: 'Whether to also check the async storage task status', }, ]; const displayOptions = { show: { resource: ['resource'], operation: ['get'], }, }; exports.exportedProperties = (0, utils_1.applyDisplayOptions)(displayOptions, properties); async function execute(itemIndex) { const oId = this.getNodeParameter('oId', itemIndex); const checkStorageTaskStatus = this.getNodeParameter('checkStorageTaskStatus', itemIndex); const qs = { oId }; if (checkStorageTaskStatus) qs.checkStorageTaskStatus = true; const response = await OctaveApiRequest_1.octaveApiRequest.call(this, 'GET', '/api/v2/resource/get', {}, qs); return [this.helpers.returnJsonArray(response)]; } //# sourceMappingURL=get.operation.js.map