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: ['calendar'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a new calendar',
|
|
action: 'Create a calendar',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete a calendar',
|
|
action: 'Delete a calendar',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Retrieve a calendar',
|
|
action: 'Get a calendar',
|
|
},
|
|
{
|
|
name: 'Get Many',
|
|
value: 'getAll',
|
|
description: 'List and search calendars',
|
|
action: 'Get many calendars',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update a calendar',
|
|
action: 'Update a calendar',
|
|
},
|
|
],
|
|
default: 'getAll',
|
|
},
|
|
|
|
...create.description,
|
|
...del.description,
|
|
...get.description,
|
|
...getAll.description,
|
|
...update.description,
|
|
];
|