UNPKG

n8n-nodes-arubacentral

Version:

n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities

38 lines (37 loc) 1.68 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.labelOperations = void 0; exports.hasLabelOperation = hasLabelOperation; const logger_1 = require("../../../helpers/logger"); const getLabels_methods_1 = require("./operations/getLabels.methods"); const postLabel_methods_1 = require("./operations/postLabel.methods"); const getLabel_methods_1 = require("./operations/getLabel.methods"); const patchLabel_methods_1 = require("./operations/patchLabel.methods"); const deleteLabel_methods_1 = require("./operations/deleteLabel.methods"); const postDevices_methods_1 = require("./operations/postDevices.methods"); const deleteDevices_methods_1 = require("./operations/deleteDevices.methods"); const getCategories_methods_1 = require("./operations/getCategories.methods"); /** * All operations available for the label resource */ exports.labelOperations = { getLabels: getLabels_methods_1.getLabels, postLabel: postLabel_methods_1.postLabel, getLabel: getLabel_methods_1.getLabel, patchLabel: patchLabel_methods_1.patchLabel, deleteLabel: deleteLabel_methods_1.deleteLabel, postDevices: postDevices_methods_1.postDevices, deleteDevices: deleteDevices_methods_1.deleteDevices, getCategories: getCategories_methods_1.getCategories, }; /** * Check if a label operation exists * * @param operation Operation name to check * @returns boolean indicating if the operation exists */ function hasLabelOperation(operation) { const exists = !!exports.labelOperations[operation]; logger_1.logger.debug('monitoring:label:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`); return exists; }