n8n/packages/nodes-base/nodes/Misp/descriptions/GalaxyDescription.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

125 lines
2 KiB
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
export const galaxyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'galaxy',
],
},
},
noDataExpression: true,
options: [
{
name: 'Delete',
value: 'delete',
},
{
name: 'Get',
value: 'get',
},
{
name: 'Get All',
value: 'getAll',
},
],
default: 'get',
},
];
export const galaxyFields: INodeProperties[] = [
// ----------------------------------------
// galaxy: delete
// ----------------------------------------
{
displayName: 'Galaxy ID',
name: 'galaxyId',
description: 'UUID or numeric ID of the galaxy',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'galaxy',
],
operation: [
'delete',
],
},
},
},
// ----------------------------------------
// galaxy: get
// ----------------------------------------
{
displayName: 'Galaxy ID',
name: 'galaxyId',
description: 'UUID or numeric ID of the galaxy',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'galaxy',
],
operation: [
'get',
],
},
},
},
// ----------------------------------------
// galaxy: 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: [
'galaxy',
],
operation: [
'getAll',
],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: [
'galaxy',
],
operation: [
'getAll',
],
returnAll: [
false,
],
},
},
},
];