mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
105 lines
2.2 KiB
TypeScript
105 lines
2.2 KiB
TypeScript
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,
|
|
];
|