n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
108 lines (107 loc) • 4.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.labelDescriptions = exports.labelOperationSelector = void 0;
const deduplicate_1 = require("../../../helpers/deduplicate");
const getLabels_descriptions_1 = require("./operations/getLabels.descriptions");
const postLabel_descriptions_1 = require("./operations/postLabel.descriptions");
const getLabel_descriptions_1 = require("./operations/getLabel.descriptions");
const patchLabel_descriptions_1 = require("./operations/patchLabel.descriptions");
const deleteLabel_descriptions_1 = require("./operations/deleteLabel.descriptions");
const postDevices_descriptions_1 = require("./operations/postDevices.descriptions");
const deleteDevices_descriptions_1 = require("./operations/deleteDevices.descriptions");
const getCategories_descriptions_1 = require("./operations/getCategories.descriptions");
/**
* Operation selector for the label resource
*/
exports.labelOperationSelector = {
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['label'],
domain: ['monitoring'],
},
},
options: [
{
name: 'Get Labels',
value: 'getLabels',
description: 'List Labels',
action: 'Get Labels',
},
{
name: 'Post Label',
value: 'postLabel',
description: 'Create Label',
action: 'Create post label',
},
{
name: 'Get Labels',
value: 'getLabels',
description: 'List Default Labels',
action: 'Get Labels',
},
{
name: 'Get Label',
value: 'getLabel',
description: 'Label details',
action: 'Get Label',
},
{
name: 'Patch Label',
value: 'patchLabel',
description: 'Update Label',
action: 'Update patch label',
},
{
name: 'Delete Label',
value: 'deleteLabel',
description: 'Delete Label',
action: 'Delete Label',
},
{
name: 'Post Label',
value: 'postLabel',
description: 'Associate Label to device',
action: 'Create post label',
},
{
name: 'Delete Label',
value: 'deleteLabel',
description: 'Unassociate Label from device',
action: 'Delete Label',
},
{
name: 'Post Devices',
value: 'postDevices',
description: 'Associate Label to a list of devices',
action: 'Create post devices',
},
{
name: 'Delete Devices',
value: 'deleteDevices',
description: 'Unassociate a label from a list of devices',
action: 'Delete Devices',
},
{
name: 'Get Categories',
value: 'getCategories',
description: 'List Label Categories',
action: 'Get Categories',
},
],
default: 'getLabels',
};
// Combined descriptions for all operations in this resource
exports.labelDescriptions = [exports.labelOperationSelector];
// Add each operation's descriptions
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, getLabels_descriptions_1.getLabelsDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, postLabel_descriptions_1.postLabelDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, getLabel_descriptions_1.getLabelDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, patchLabel_descriptions_1.patchLabelDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, deleteLabel_descriptions_1.deleteLabelDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, postDevices_descriptions_1.postDevicesDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, deleteDevices_descriptions_1.deleteDevicesDescription);
(0, deduplicate_1.addDescriptions)(exports.labelDescriptions, getCategories_descriptions_1.getCategoriesDescription);