mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
[N8N-4995](https://linear.app/n8n/issue/N8N-4995) --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import * as create from './create.operation';
|
|
import * as get from './get.operation';
|
|
import * as getAll from './getAll.operation';
|
|
import * as del from './delete.operation';
|
|
import * as update from './update.operation';
|
|
|
|
export { create, del as delete, get, getAll, update };
|
|
|
|
export const description: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['event'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a new event',
|
|
action: 'Create an event',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete an event',
|
|
action: 'Delete an event',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Retrieve an event',
|
|
action: 'Get an event',
|
|
},
|
|
{
|
|
name: 'Get Many',
|
|
value: 'getAll',
|
|
description: 'List and search events',
|
|
action: 'Get many events',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update an event',
|
|
action: 'Update an event',
|
|
},
|
|
],
|
|
default: 'getAll',
|
|
},
|
|
|
|
...create.description,
|
|
...del.description,
|
|
...get.description,
|
|
...getAll.description,
|
|
...update.description,
|
|
];
|