n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const recipientOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const recipientOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'recipient',
],
resource: ['recipient'],
},
},
options: [
@@ -45,7 +41,8 @@ const additionalRecipientFields: INodeProperties[] = [
name: 'recipientNotes',
type: 'string',
default: '',
description: 'Notes for this recipient: these are global notes that should not be task- or destination-specific',
description:
'Notes for this recipient: these are global notes that should not be task- or destination-specific',
},
{
displayName: 'Skip Recipient SMS Notifications',
@@ -60,7 +57,7 @@ const recipientName = {
displayName: 'Recipient Name',
name: 'recipientName',
type: 'string',
description: 'The recipient\'s complete name',
description: "The recipient's complete name",
default: '',
} as INodeProperties;
@@ -68,7 +65,8 @@ const recipientPhone = {
displayName: 'Recipient Phone',
name: 'recipientPhone',
type: 'string',
description: 'A unique, valid phone number as per the organization\'s country if there\'s no leading + sign. If a phone number has a leading + sign, it will disregard the organization\'s country setting.',
description:
"A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting.",
default: '',
} as INodeProperties;
@@ -82,7 +80,8 @@ const updateFields: INodeProperties[] = [
name: 'notes',
type: 'string',
default: '',
description: 'Notes for this recipient: these are global notes that should not be task- or destination-specific',
description:
'Notes for this recipient: these are global notes that should not be task- or destination-specific',
},
{
...recipientPhone,
@@ -130,12 +129,8 @@ export const recipientFields: INodeProperties[] = [
type: 'options',
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'get',
],
resource: ['recipient'],
operation: ['get'],
},
},
options: [
@@ -162,15 +157,9 @@ export const recipientFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'get',
],
getBy: [
'id',
],
resource: ['recipient'],
operation: ['get'],
getBy: ['id'],
},
},
default: '',
@@ -183,12 +172,8 @@ export const recipientFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'update',
],
resource: ['recipient'],
operation: ['update'],
},
},
default: '',
@@ -201,15 +186,9 @@ export const recipientFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'get',
],
getBy: [
'name',
],
resource: ['recipient'],
operation: ['get'],
getBy: ['name'],
},
},
default: '',
@@ -222,15 +201,9 @@ export const recipientFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'get',
],
getBy: [
'phone',
],
resource: ['recipient'],
operation: ['get'],
getBy: ['phone'],
},
},
default: '',
@@ -240,12 +213,8 @@ export const recipientFields: INodeProperties[] = [
{
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'create',
],
resource: ['recipient'],
operation: ['create'],
},
},
...recipientName,
@@ -254,12 +223,8 @@ export const recipientFields: INodeProperties[] = [
{
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'create',
],
resource: ['recipient'],
operation: ['create'],
},
},
...recipientPhone,
@@ -273,12 +238,8 @@ export const recipientFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'create',
],
resource: ['recipient'],
operation: ['create'],
},
},
options: additionalRecipientFields,
@@ -291,12 +252,8 @@ export const recipientFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'update',
],
resource: ['recipient'],
operation: ['update'],
},
},
options: updateFields,
@@ -309,12 +266,8 @@ export const recipientFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'recipient',
],
operation: [
'create',
],
resource: ['recipient'],
operation: ['create'],
},
},
options: [
@@ -323,7 +276,7 @@ export const recipientFields: INodeProperties[] = [
name: 'recipientSkipPhoneNumberValidation',
type: 'boolean',
default: false,
description: 'Whether to skip validation for this recipient\'s phone number',
description: "Whether to skip validation for this recipient's phone number",
},
],
},