n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
74 lines (73 loc) • 3.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.insightsDescriptions = exports.insightsOperationSelector = void 0;
const deduplicate_1 = require("../../../helpers/deduplicate");
const getInsightsNetwork_descriptions_1 = require("./operations/getInsightsNetwork.descriptions");
const getInsightsSite_descriptions_1 = require("./operations/getInsightsSite.descriptions");
const getInsightsAp_descriptions_1 = require("./operations/getInsightsAp.descriptions");
const getInsightsClient_descriptions_1 = require("./operations/getInsightsClient.descriptions");
const getInsightsGateway_descriptions_1 = require("./operations/getInsightsGateway.descriptions");
const getInsightsSwitch_descriptions_1 = require("./operations/getInsightsSwitch.descriptions");
/**
* Operation selector for the insights resource
*/
exports.insightsOperationSelector = {
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['insights'],
domain: ['aiops'],
},
},
options: [
{
name: 'List AI Insights for a Network',
value: 'getInsightsNetwork',
description: 'Get the list of insights for a network for a given time duration',
action: 'List AI insights for a network',
},
{
name: 'List AI Insights for a Site',
value: 'getInsightsSite',
description: 'Get the list of insights for a site for a given time duration',
action: 'List AI insights for a site',
},
{
name: 'List AI Insights for an AP',
value: 'getInsightsAp',
description: 'Get the list of insights for an access point for a given time duration',
action: 'List AI insights for an AP',
},
{
name: 'List AI Insights for a Client',
value: 'getInsightsClient',
description: 'Get the list of insights for a client for a given time duration',
action: 'List AI insights for a client',
},
{
name: 'List AI Insights for a Gateway',
value: 'getInsightsGateway',
description: 'Get the list of insights for a gateway for a given time duration',
action: 'List AI insights for a gateway',
},
{
name: 'List AI Insights for a Switch',
value: 'getInsightsSwitch',
description: 'Get the list of insights for a switch for a given time duration',
action: 'List AI insights for a switch',
},
],
default: 'getInsightsNetwork',
};
// Combined descriptions for all operations in this resource
exports.insightsDescriptions = [exports.insightsOperationSelector];
// Add each operation's descriptions
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsNetwork_descriptions_1.getInsightsNetworkDescription);
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsSite_descriptions_1.getInsightsSiteDescription);
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsAp_descriptions_1.getInsightsApDescription);
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsClient_descriptions_1.getInsightsClientDescription);
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsGateway_descriptions_1.getInsightsGatewayDescription);
(0, deduplicate_1.addDescriptions)(exports.insightsDescriptions, getInsightsSwitch_descriptions_1.getInsightsSwitchDescription);