n8n/packages/nodes-base/nodes/TheHiveProject/actions/task/index.ts

65 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-09-04 08:15:52 -07:00
import type { INodeProperties } from 'n8n-workflow';
import * as create from './create.operation';
import * as deleteTask from './deleteTask.operation';
import * as executeResponder from './executeResponder.operation';
import * as get from './get.operation';
import * as search from './search.operation';
import * as update from './update.operation';
export { create, deleteTask, executeResponder, get, search, update };
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
default: 'create',
type: 'options',
noDataExpression: true,
required: true,
options: [
{
name: 'Create',
value: 'create',
action: 'Create a task',
},
{
name: 'Delete',
value: 'deleteTask',
action: 'Delete an task',
},
{
name: 'Execute Responder',
value: 'executeResponder',
action: 'Execute responder on a task',
},
{
name: 'Get',
value: 'get',
action: 'Get a task',
},
{
name: 'Search',
value: 'search',
action: 'Search tasks',
},
{
name: 'Update',
value: 'update',
action: 'Update a task',
},
],
displayOptions: {
show: {
resource: ['task'],
},
},
},
...create.description,
...deleteTask.description,
...executeResponder.description,
...get.description,
...search.description,
...update.description,
];