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';
|
|
|
|
|
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
|
|
|
|
export {
|
|
|
|
getAll,
|
|
|
|
get,
|
|
|
|
mute,
|
|
|
|
del as delete,
|
|
|
|
create,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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: {
|
|
|
|
resource: [
|
|
|
|
'rmm',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
|
|
|
description: 'Retrieve all RMM Alerts',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get all 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[];
|