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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

105 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-09-04 08:15:52 -07:00
import type { INodeProperties } from 'n8n-workflow';
import * as addAttachment from './addAttachment.operation';
import * as create from './create.operation';
import * as deleteAttachment from './deleteAttachment.operation';
import * as deleteCase from './deleteCase.operation';
import * as executeResponder from './executeResponder.operation';
import * as get from './get.operation';
import * as getAttachment from './getAttachment.operation';
import * as search from './search.operation';
import * as getTimeline from './getTimeline.operation';
import * as update from './update.operation';
export {
addAttachment,
create,
deleteAttachment,
deleteCase,
executeResponder,
get,
search,
getAttachment,
getTimeline,
update,
};
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
default: 'create',
type: 'options',
noDataExpression: true,
required: true,
options: [
{
name: 'Add Attachment',
value: 'addAttachment',
action: 'Add attachment to a case',
},
{
name: 'Create',
value: 'create',
action: 'Create a case',
},
{
name: 'Delete Attachment',
value: 'deleteAttachment',
action: 'Delete attachment from a case',
},
{
name: 'Delete Case',
value: 'deleteCase',
action: 'Delete an case',
},
{
name: 'Execute Responder',
value: 'executeResponder',
action: 'Execute responder on a case',
},
{
name: 'Get',
value: 'get',
action: 'Get a case',
},
{
name: 'Get Attachment',
value: 'getAttachment',
action: 'Get attachment from a case',
},
{
name: 'Get Timeline',
value: 'getTimeline',
action: 'Get timeline of a case',
},
{
name: 'Search',
value: 'search',
action: 'Search cases',
},
{
name: 'Update',
value: 'update',
action: 'Update a case',
},
],
displayOptions: {
show: {
resource: ['case'],
},
},
},
...addAttachment.description,
...create.description,
...deleteAttachment.description,
...deleteCase.description,
...executeResponder.description,
...get.description,
...getAttachment.description,
...search.description,
...getTimeline.description,
...update.description,
];