feat(TheHive Node): Overhaul (#6457)
This commit is contained in:
104
packages/nodes-base/nodes/TheHiveProject/actions/case/index.ts
Normal file
104
packages/nodes-base/nodes/TheHiveProject/actions/case/index.ts
Normal file
@@ -0,0 +1,104 @@
|
||||
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,
|
||||
];
|
||||
Reference in New Issue
Block a user