n8n/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts
Iván Ovejero 62c096710f
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
2023-10-27 14:15:02 +02:00

70 lines
1.5 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
import * as create from './create';
import * as deactive from './deactive';
import * as getAll from './getAll';
import * as getByEmail from './getByEmail';
import * as getById from './getById';
import * as invite from './invite';
export { create, deactive, getAll, getByEmail, getById, invite };
export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['user'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a new user',
action: 'Create a user',
},
{
name: 'Deactive',
value: 'deactive',
description:
'Deactivates the user and revokes all its sessions by archiving its user object',
action: 'Deactivate a user',
},
{
name: 'Get By Email',
value: 'getByEmail',
description: 'Get a user by email',
action: 'Get a user by email',
},
{
name: 'Get By ID',
value: 'getById',
description: 'Get a user by ID',
action: 'Get a user by ID',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many users',
action: 'Get many users',
},
{
name: 'Invite',
value: 'invite',
description: 'Invite user to team',
action: 'Invite a user',
},
],
default: '',
},
...create.description,
...deactive.description,
...getAll.description,
...getByEmail.description,
...getById.description,
...invite.description,
];