mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
6f95121fac
* 👕 Add `action` to `INodePropertyOptions` * 👕 Apply `node-param-operation-option-without-action` * ✏️ Fix add/remove phrasing * ✏️ Fix email template phrasing * ✏️ Fix add/remove phrasing * ✏️ Fix custom fields phrasing * ✏️ Fix job report phrasing * ✏️ Fix query phrasing * ✏️ Various phrasing fixes * ✏️ Fix final phrasings * ✏️ Remove `conversation` * ✏️ Fix plural
81 lines
1.5 KiB
TypeScript
81 lines
1.5 KiB
TypeScript
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';
|
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
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 All',
|
|
value: 'getAll',
|
|
description: 'Retrieve all users',
|
|
action: 'Get all users',
|
|
},
|
|
{
|
|
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: '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,
|
|
];
|
|
|