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.
29 lines • 980 B
JavaScript
;
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: 'Solution OId',
name: 'oId',
type: 'string',
required: true,
default: '',
description: 'The OId of the solution to retrieve',
},
];
const displayOptions = {
show: {
resource: ['solution'],
operation: ['get'],
},
};
exports.exportedProperties = (0, utils_1.applyDisplayOptions)(displayOptions, properties);
async function execute(itemIndex) {
const oId = this.getNodeParameter('oId', itemIndex);
const response = await OctaveApiRequest_1.octaveApiRequest.call(this, 'GET', '/api/v2/solution/get', {}, { oId });
return [this.helpers.returnJsonArray(response)];
}
//# sourceMappingURL=get.operation.js.map