mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
62c096710f
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
77 lines
1.8 KiB
TypeScript
77 lines
1.8 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import * as create from './create';
|
|
import * as del from './del';
|
|
import * as members from './members';
|
|
import * as restore from './restore';
|
|
import * as addUser from './addUser';
|
|
import * as statistics from './statistics';
|
|
import * as search from './search';
|
|
|
|
export { create, del as delete, members, restore, addUser, statistics, search };
|
|
|
|
export const descriptions: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['channel'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Add User',
|
|
value: 'addUser',
|
|
description: 'Add a user to a channel',
|
|
action: 'Add a user to a channel',
|
|
},
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a new channel',
|
|
action: 'Create a channel',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Soft delete a channel',
|
|
action: 'Delete a channel',
|
|
},
|
|
{
|
|
name: 'Member',
|
|
value: 'members',
|
|
description: 'Get a page of members for a channel',
|
|
action: 'Get a page of members for a channel',
|
|
},
|
|
{
|
|
name: 'Restore',
|
|
value: 'restore',
|
|
description: 'Restores a soft deleted channel',
|
|
action: 'Restore a soft-deleted channel',
|
|
},
|
|
{
|
|
name: 'Search',
|
|
value: 'search',
|
|
description: 'Search for a channel',
|
|
action: 'Search for a channel',
|
|
},
|
|
{
|
|
name: 'Statistics',
|
|
value: 'statistics',
|
|
description: 'Get statistics for a channel',
|
|
action: 'Get statistics for a channel',
|
|
},
|
|
],
|
|
default: 'create',
|
|
},
|
|
...create.description,
|
|
...del.description,
|
|
...members.description,
|
|
...restore.description,
|
|
...addUser.description,
|
|
...statistics.description,
|
|
...search.description,
|
|
];
|