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 messageOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const messageOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
resource: ['message'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -60,13 +56,8 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'delete',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['get', 'delete'],
|
||||
},
|
||||
},
|
||||
placeholder: '172ce2c4a72cc243',
|
||||
@@ -80,12 +71,8 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['reply'],
|
||||
},
|
||||
},
|
||||
placeholder: '172ce2c4a72cc243',
|
||||
@@ -99,12 +86,8 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['reply'],
|
||||
},
|
||||
},
|
||||
placeholder: 'CAHNQoFsC6JMMbOBJgtjsqN0eEc+gDg2a=SQj-tWUebQeHMDgqQ@mail.gmail.com',
|
||||
@@ -118,13 +101,8 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
'send',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['reply', 'send'],
|
||||
},
|
||||
},
|
||||
placeholder: 'Hello World!',
|
||||
@@ -136,13 +114,8 @@ export const messageFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'send',
|
||||
'reply',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['send', 'reply'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -156,16 +129,9 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
includeHtml: [
|
||||
true,
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
'send',
|
||||
],
|
||||
includeHtml: [true],
|
||||
resource: ['message'],
|
||||
operation: ['reply', 'send'],
|
||||
},
|
||||
},
|
||||
description: 'The HTML message body',
|
||||
@@ -178,13 +144,8 @@ export const messageFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
'send',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['reply', 'send'],
|
||||
},
|
||||
},
|
||||
description: 'Plain text message body',
|
||||
@@ -201,13 +162,8 @@ export const messageFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'reply',
|
||||
'send',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['reply', 'send'],
|
||||
},
|
||||
},
|
||||
placeholder: 'info@example.com',
|
||||
@@ -220,13 +176,8 @@ export const messageFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'send',
|
||||
'reply',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['send', 'reply'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -249,7 +200,8 @@ export const messageFields: 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.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -287,7 +239,8 @@ export const messageFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
placeholder: 'Name <test@gmail.com>',
|
||||
default: '',
|
||||
description: 'The name displayed in your contacts inboxes. It has to be in the format: "Display-Name <name@gmail.com>". The email address has to match the email address of the logged in user for the API',
|
||||
description:
|
||||
'The name displayed in your contacts inboxes. It has to be in the format: "Display-Name <name@gmail.com>". The email address has to match the email address of the logged in user for the API',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -298,12 +251,8 @@ export const messageFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['message'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -316,7 +265,8 @@ export const messageFields: 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',
|
||||
@@ -326,17 +276,20 @@ export const messageFields: 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',
|
||||
@@ -349,15 +302,11 @@ export const messageFields: 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"',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -371,12 +320,8 @@ export const messageFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['message'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -388,15 +333,9 @@ export const messageFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['message'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -414,12 +353,8 @@ export const messageFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['message'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -430,16 +365,11 @@ export const messageFields: 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',
|
||||
@@ -449,7 +379,8 @@ export const messageFields: 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',
|
||||
@@ -464,17 +395,20 @@ export const messageFields: 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',
|
||||
@@ -495,7 +429,8 @@ export const messageFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getLabels',
|
||||
},
|
||||
default: [],
|
||||
description: 'Only return messages with labels that match all of the specified label IDs. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Only return messages with labels that match all of the specified label IDs. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Query',
|
||||
@@ -505,9 +440,9 @@ export const messageFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.',
|
||||
description:
|
||||
'Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user