* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
63 lines
1.0 KiB
TypeScript
63 lines
1.0 KiB
TypeScript
import type { RmmProperties } from '../../Interfaces';
|
|
|
|
export const rmmMuteDescription: RmmProperties = [
|
|
{
|
|
displayName: 'RMM Alert ID',
|
|
name: 'alertId',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['rmm'],
|
|
operation: ['mute'],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'Mute the RMM alert by ID',
|
|
},
|
|
{
|
|
displayName: 'Mute Period',
|
|
name: 'muteFor',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['rmm'],
|
|
operation: ['mute'],
|
|
},
|
|
},
|
|
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
|
|
options: [
|
|
{
|
|
name: '1 Hour',
|
|
value: '1-hour',
|
|
},
|
|
{
|
|
name: '1 Day',
|
|
value: '1-day',
|
|
},
|
|
{
|
|
name: '2 Days',
|
|
value: '2-days',
|
|
},
|
|
{
|
|
name: '1 Week',
|
|
value: '1-week',
|
|
},
|
|
{
|
|
name: '2 Weeks',
|
|
value: '2-weeks',
|
|
},
|
|
{
|
|
name: '1 Month',
|
|
value: '1-month',
|
|
},
|
|
{
|
|
name: 'Forever',
|
|
value: 'forever',
|
|
},
|
|
],
|
|
default: '',
|
|
description: 'Length of time to mute alert for',
|
|
},
|
|
];
|