n8n/packages/nodes-base/nodes/Misp/descriptions/WarninglistDescription.ts
Iván Ovejero 45e2830555
Add MISP node (#2126)
*  Create MISP node

*  Improvements

*  Refactor tags type

*  Refactor tag into eventTag

*  Add required params to feed:create

*  Change endpoint for tag:getAll

*  Add description to role ID

*  Small improvements

*  Improvements

* 🔥 Remove empty file

*  Add sharing group ID param

* 🔥 Remove param with no effect

* 🔨 Refactor sharing group to remove duplication

* 🔥 Remove param with no effect

*  Validate URL in feed resource

* ✏️ Rename Inviter param

* ✏️ Reword dynamic list param descriptions

*  Clean up error handling

* 👕 Nodelinter pass

* 🔥 Remove unused import

* 🔨 Change param to color type

*  Improvements

*  Fix color

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-09-18 22:45:57 +02:00

99 lines
1.6 KiB
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
export const warninglistOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'warninglist',
],
},
},
noDataExpression: true,
options: [
{
name: 'Get',
value: 'get',
},
{
name: 'Get All',
value: 'getAll',
},
],
default: 'get',
},
];
export const warninglistFields: INodeProperties[] = [
// ----------------------------------------
// warninglist: get
// ----------------------------------------
{
displayName: 'Warninglist ID',
name: 'warninglistId',
description: 'Numeric ID of the warninglist',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'warninglist',
],
operation: [
'get',
],
},
},
},
// ----------------------------------------
// warninglist: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'warninglist',
],
operation: [
'getAll',
],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: [
'warninglist',
],
operation: [
'getAll',
],
returnAll: [
false,
],
},
},
},
];