2022-01-07 09:19:24 -08:00
|
|
|
import * as get from './get';
|
|
|
|
import * as getAll from './getAll';
|
|
|
|
import * as create from './create';
|
|
|
|
import * as del from './del';
|
|
|
|
import * as mute from './mute';
|
|
|
|
|
2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2022-01-07 09:19:24 -08:00
|
|
|
|
2022-08-17 08:50:24 -07:00
|
|
|
export { getAll, get, mute, del as delete, create };
|
2022-01-07 09:19:24 -08:00
|
|
|
|
|
|
|
export const descriptions = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2022-01-07 09:19:24 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['rmm'],
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create new RMM Alert',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create an RMM alert',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Delete',
|
|
|
|
value: 'delete',
|
|
|
|
description: 'Delete RMM Alert',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Delete an RMM alert',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Retrieve RMM Alert',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get an RMM alert',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
2022-09-07 07:51:14 -07:00
|
|
|
name: 'Get Many',
|
2022-01-07 09:19:24 -08:00
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
description: 'Retrieve many RMM Alerts',
|
2022-09-08 08:10:13 -07:00
|
|
|
action: 'Get many RMM alerts',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mute',
|
|
|
|
value: 'mute',
|
|
|
|
description: 'Mute RMM Alert',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Mute an RMM alert',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'getAll',
|
|
|
|
},
|
|
|
|
...getAll.description,
|
|
|
|
...get.description,
|
|
|
|
...create.description,
|
|
|
|
...del.description,
|
|
|
|
...mute.description,
|
|
|
|
] as INodeProperties[];
|