Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts
Iván Ovejero 88dea330b9 refactor: Apply more eslint-plugin-n8n-nodes-base rules (#3534)
*  Update `lintfix` script

*  Run baseline `lintfix`

* 🔥 Remove unneeded exceptions (#3538)

* 🔥 Remove exceptions for `node-param-default-wrong-for-simplify`

* 🔥 Remove exceptions for `node-param-placeholder-miscased-id`

*  Update version

* 👕 Apply `node-param-placeholder-missing` (#3542)

* 👕 Apply `filesystem-wrong-cred-filename` (#3543)

* 👕 Apply `node-param-description-missing-from-dynamic-options` (#3545)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-class-description-empty-string` (#3546)

* 👕 Apply `node-class-description-icon-not-svg` (#3548)

* 👕 Apply `filesystem-wrong-node-filename` (#3549)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Expand lintings to credentials (#3550)

* 👕 Apply `node-param-multi-options-type-unsorted-items` (#3552)

*  fix

*  Minor fixes

Co-authored-by: Michael Kret <michael.k@radency.com>

* 👕 Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541)

*  Add new lint rule, node-param-description-wrong-for-dynamic-multi-options

*  Fix with updated linting rules

*  Minor fixes

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-boolean-without-whether` (#3553)

*  fix

* Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537)

* 👕 Add exceptions

* 👕 Add exception

* ✏️ Alphabetize rules

*  Restore `lintfix` command

Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00

182 lines
3.2 KiB
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
export const inviteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an invite for a company/user',
},
],
default: 'create',
},
];
export const inviteFields: INodeProperties[] = [
{
displayName: 'Email',
name: 'email',
type: 'string',
placeholder: 'name@email.com',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
operation: [
'create',
],
},
},
},
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
operation: [
'create',
],
},
},
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
operation: [
'create',
],
},
},
},
{
displayName: 'Message',
name: 'message',
description: 'Message for the invitee',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
operation: [
'create',
],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'invite',
],
operation: [
'create',
],
},
},
default: {},
options: [
{
displayName: 'Days to Resolve Issue',
description: 'Minimum days to resolve a scorecard issue',
name: 'days_to_resolve_issue',
type: 'number',
default: 0,
},
{
displayName: 'Domain',
description: 'Invitee company domain',
name: 'domain',
type: 'string',
default: '',
},
{
displayName: 'Grade to Maintain',
description: 'Request the invitee\'s organisation to maintain a minimum grade',
name: 'grade_to_maintain',
type: 'string',
default: '',
},
{
displayName: 'Is Organisation Point of Contact',
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'Is the invitee organisation\'s point of contact',
name: 'is_organization_point_of_contact',
type: 'boolean',
default: false,
},
{
displayName: 'Issue Description',
name: 'issue_desc',
type: 'string',
default: '',
},
{
displayName: 'Issue Title',
name: 'issue_title',
type: 'string',
default: '',
},
{
displayName: 'Issue Type',
name: 'issue_type',
type: 'string',
default: '',
},
{
displayName: 'Send Me a Copy',
name: 'sendme_copy',
description: 'Whether to send a copy of the invite to the requesting user',
type: 'boolean',
default: false,
},
{
displayName: 'Target URL',
name: 'target_url',
type: 'string',
description: 'Optional URL to take the invitee to when arriving to the platform',
default: '',
},
],
},
];