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 mailOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const mailOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'mail',
],
resource: ['mail'],
},
},
options: [
@@ -40,12 +36,8 @@ export const mailFields: INodeProperties[] = [
description: 'Email address of the sender of the email',
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
resource: ['mail'],
operation: ['send'],
},
},
},
@@ -58,12 +50,8 @@ export const mailFields: INodeProperties[] = [
description: 'Name of the sender of the email',
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
resource: ['mail'],
operation: ['send'],
},
},
},
@@ -76,12 +64,8 @@ export const mailFields: INodeProperties[] = [
description: 'Comma-separated list of recipient email addresses',
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
resource: ['mail'],
operation: ['send'],
},
},
},
@@ -93,15 +77,9 @@ export const mailFields: INodeProperties[] = [
description: 'Subject of the email to send',
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
dynamicTemplate: [
false,
],
resource: ['mail'],
operation: ['send'],
dynamicTemplate: [false],
},
},
},
@@ -114,12 +92,8 @@ export const mailFields: INodeProperties[] = [
description: 'Whether this email will contain a dynamic template',
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
resource: ['mail'],
operation: ['send'],
},
},
},
@@ -141,15 +115,9 @@ export const mailFields: INodeProperties[] = [
],
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
dynamicTemplate: [
false,
],
resource: ['mail'],
operation: ['send'],
dynamicTemplate: [false],
},
},
},
@@ -165,15 +133,9 @@ export const mailFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
dynamicTemplate: [
false,
],
resource: ['mail'],
operation: ['send'],
dynamicTemplate: [false],
},
},
},
@@ -181,22 +143,17 @@ export const mailFields: INodeProperties[] = [
displayName: 'Template Name or ID',
name: 'templateId',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: [],
typeOptions: {
loadOptionsMethod: 'getTemplateIds',
},
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
dynamicTemplate: [
true,
],
resource: ['mail'],
operation: ['send'],
dynamicTemplate: [true],
},
},
},
@@ -211,15 +168,9 @@ export const mailFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
dynamicTemplate: [
true,
],
resource: ['mail'],
operation: ['send'],
dynamicTemplate: [true],
},
},
options: [
@@ -253,12 +204,8 @@ export const mailFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'mail',
],
operation: [
'send',
],
resource: ['mail'],
operation: ['send'],
},
},
options: [
@@ -274,21 +221,24 @@ export const mailFields: INodeProperties[] = [
name: 'bccEmail',
type: 'string',
default: '',
description: 'Comma-separated list of emails of the recipients of a blind carbon copy of the email',
description:
'Comma-separated list of emails of the recipients of a blind carbon copy of the email',
},
{
displayName: 'Categories',
name: 'categories',
type: 'string',
default: '',
description: 'Comma-separated list of categories. Each category name may not exceed 255 characters.',
description:
'Comma-separated list of categories. Each category name may not exceed 255 characters.',
},
{
displayName: 'CC Email',
name: 'ccEmail',
type: 'string',
default: '',
description: 'Comma-separated list of emails of the recipients of a carbon copy of the email',
description:
'Comma-separated list of emails of the recipients of a carbon copy of the email',
},
{
displayName: 'Enable Sandbox',
@@ -341,7 +291,8 @@ export const mailFields: INodeProperties[] = [
name: 'sendAt',
type: 'dateTime',
default: '',
description: 'When to deliver the email. Scheduling more than 72 hours in advance is forbidden.',
description:
'When to deliver the email. Scheduling more than 72 hours in advance is forbidden.',
},
],
},
@@ -349,35 +300,35 @@ export const mailFields: INodeProperties[] = [
export type SendMailBody = {
personalizations: Array<{
to: EmailName[],
subject?: string,
cc?: EmailName[],
bcc?: EmailName[],
dynamic_template_data?: { [key: string]: string },
send_at?: number,
}>,
to: EmailName[];
subject?: string;
cc?: EmailName[];
bcc?: EmailName[];
dynamic_template_data?: { [key: string]: string };
send_at?: number;
}>;
ip_pool_name?: string;
from: EmailName,
template_id?: string,
from: EmailName;
template_id?: string;
content?: Array<{
type: string,
value: string,
}>,
categories?: string[],
headers?: { [key: string]: string },
type: string;
value: string;
}>;
categories?: string[];
headers?: { [key: string]: string };
attachments?: Array<{
content: string,
filename: string,
type: string,
}>,
content: string;
filename: string;
type: string;
}>;
mail_settings: {
sandbox_mode: {
enable: boolean,
},
},
enable: boolean;
};
};
};
type EmailName = {
email: string,
name?: string,
email: string;
name?: string;
};