mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const draftOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const draftOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
resource: ['draft'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -54,13 +50,8 @@ export const draftFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
'get',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['delete', 'get'],
|
||||
},
|
||||
},
|
||||
placeholder: 'r-3254521568507167962',
|
||||
@@ -74,12 +65,8 @@ export const draftFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
placeholder: 'Hello World!',
|
||||
@@ -91,12 +78,8 @@ export const draftFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -110,15 +93,9 @@ export const draftFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
includeHtml: [
|
||||
true,
|
||||
],
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
includeHtml: [true],
|
||||
resource: ['draft'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
description: 'The HTML message body',
|
||||
@@ -131,16 +108,13 @@ export const draftFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
placeholder: 'Hello World!',
|
||||
description: 'The message body. If HTML formatted, then you have to add and activate the option "HTML content" in the "Additional Options" section.',
|
||||
description:
|
||||
'The message body. If HTML formatted, then you have to add and activate the option "HTML content" in the "Additional Options" section.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -149,12 +123,8 @@ export const draftFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -213,7 +183,8 @@ export const draftFields: INodeProperties[] = [
|
||||
name: 'property',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Name of the binary property containing the data to be added to the email as an attachment. Multiple properties can be set separated by comma.',
|
||||
description:
|
||||
'Name of the binary property containing the data to be added to the email as an attachment. Multiple properties can be set separated by comma.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -230,12 +201,8 @@ export const draftFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['draft'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -247,15 +214,11 @@ export const draftFields: INodeProperties[] = [
|
||||
default: 'attachment_',
|
||||
displayOptions: {
|
||||
hide: {
|
||||
format: [
|
||||
'full',
|
||||
'metadata',
|
||||
'minimal',
|
||||
'raw',
|
||||
],
|
||||
format: ['full', 'metadata', 'minimal', 'raw'],
|
||||
},
|
||||
},
|
||||
description: 'Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0"',
|
||||
description:
|
||||
'Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0"',
|
||||
},
|
||||
{
|
||||
displayName: 'Format',
|
||||
@@ -265,7 +228,8 @@ export const draftFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Full',
|
||||
value: 'full',
|
||||
description: 'Returns the full email message data with body content parsed in the payload field',
|
||||
description:
|
||||
'Returns the full email message data with body content parsed in the payload field',
|
||||
},
|
||||
{
|
||||
name: 'Metadata',
|
||||
@@ -275,17 +239,20 @@ export const draftFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Minimal',
|
||||
value: 'minimal',
|
||||
description: 'Returns only email message ID and labels; does not return the email headers, body, or payload',
|
||||
description:
|
||||
'Returns only email message ID and labels; does not return the email headers, body, or payload',
|
||||
},
|
||||
{
|
||||
name: 'RAW',
|
||||
value: 'raw',
|
||||
description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used',
|
||||
description:
|
||||
'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used',
|
||||
},
|
||||
{
|
||||
name: 'Resolved',
|
||||
value: 'resolved',
|
||||
description: 'Returns the full email with all data resolved and attachments saved as binary data',
|
||||
description:
|
||||
'Returns the full email with all data resolved and attachments saved as binary data',
|
||||
},
|
||||
],
|
||||
default: 'resolved',
|
||||
@@ -303,12 +270,8 @@ export const draftFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['draft'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -320,15 +283,9 @@ export const draftFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['draft'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -346,12 +303,8 @@ export const draftFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'draft',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['draft'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -362,16 +315,11 @@ export const draftFields: INodeProperties[] = [
|
||||
default: 'attachment_',
|
||||
displayOptions: {
|
||||
hide: {
|
||||
format: [
|
||||
'full',
|
||||
'ids',
|
||||
'metadata',
|
||||
'minimal',
|
||||
'raw',
|
||||
],
|
||||
format: ['full', 'ids', 'metadata', 'minimal', 'raw'],
|
||||
},
|
||||
},
|
||||
description: 'Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0"',
|
||||
description:
|
||||
'Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0"',
|
||||
},
|
||||
{
|
||||
displayName: 'Format',
|
||||
@@ -381,7 +329,8 @@ export const draftFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Full',
|
||||
value: 'full',
|
||||
description: 'Returns the full email message data with body content parsed in the payload field',
|
||||
description:
|
||||
'Returns the full email message data with body content parsed in the payload field',
|
||||
},
|
||||
{
|
||||
name: 'IDs',
|
||||
@@ -396,17 +345,20 @@ export const draftFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Minimal',
|
||||
value: 'minimal',
|
||||
description: 'Returns only email message ID and labels; does not return the email headers, body, or payload',
|
||||
description:
|
||||
'Returns only email message ID and labels; does not return the email headers, body, or payload',
|
||||
},
|
||||
{
|
||||
name: 'RAW',
|
||||
value: 'raw',
|
||||
description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used',
|
||||
description:
|
||||
'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used',
|
||||
},
|
||||
{
|
||||
name: 'Resolved',
|
||||
value: 'resolved',
|
||||
description: 'Returns the full email with all data resolved and attachments saved as binary data',
|
||||
description:
|
||||
'Returns the full email with all data resolved and attachments saved as binary data',
|
||||
},
|
||||
],
|
||||
default: 'resolved',
|
||||
|
||||
Reference in New Issue
Block a user