UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

60 lines 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.alertsFields = exports.alertsOperations = void 0; exports.alertsOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['alerts'], }, }, options: [ { name: 'Get', value: 'get', description: 'Get specific alert', routing: { request: { method: 'GET', url: '={{"/api/alert/" + $parameter.alertId}}', }, }, action: 'Get an alert', }, { name: 'Get Many', value: 'getAll', description: 'Get many alerts', routing: { request: { method: 'GET', url: '/api/alert/', }, }, action: 'Get many alerts', }, ], default: 'getAll', }, ]; exports.alertsFields = [ { displayName: 'Alert ID', name: 'alertId', type: 'string', required: true, placeholder: '0', displayOptions: { show: { resource: ['alerts'], operation: ['get'], }, }, default: '', }, ]; //# sourceMappingURL=AlertsDescription.js.map