Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts
Ricardo Espinoza d0b896da38 Add SecurityScorecard node (#1371)
* Add SecurityScorecard node

* Move portfolio:edit fields to the main view.

The API request uses PUT so it will replace undefined fields if they are not set.

* Style improvements

*  Improvements to #1247

*  Improvements

*  Minor improvements on SecurityScorecard Node

Co-authored-by: Mika Luhta <12100880+mluhta@users.noreply.github.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-01-28 18:31:37 +01:00

179 lines
3.0 KiB
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
export const inviteOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
required: true,
displayOptions: {
show: {
resource: [
'invite',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an invite for a company/user',
},
],
default: 'create',
},
] as INodeProperties[];
export const inviteFields = [
{
displayName: 'Email',
name: 'email',
type: 'string',
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',
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: '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: '',
},
],
},
] as INodeProperties[];