mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
45e2830555
* ✨ 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>
125 lines
2 KiB
TypeScript
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,
|
|
],
|
|
},
|
|
},
|
|
},
|
|
];
|