refactor: Format nodes-base package (A-F) (#3800)

* 🔨 prettier formated nodes - A

* 🔨 prettier formated nodes - B

*  prettier formated nodes - C

*  prettier formated nodes - D

*  prettier formated nodes - E-F

* 🎨 Adjust nodes-base formatting command (#3805)

* Format additional files in nodes A-F (#3811)

*  fixes

* 🎨 Add Mindee to ignored dirs

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Michael Kret
2022-08-01 23:47:55 +03:00
committed by GitHub
parent 2c17e6f3ca
commit 0ecbb4a19d
411 changed files with 12906 additions and 20148 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const announcementOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const announcementOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'announcement',
],
resource: ['announcement'],
},
},
options: [
@@ -63,12 +59,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'create',
],
resource: ['announcement'],
operation: ['create'],
},
},
},
@@ -81,12 +73,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'create',
],
resource: ['announcement'],
operation: ['create'],
},
},
},
@@ -112,12 +100,8 @@ export const announcementFields: INodeProperties[] = [
],
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'create',
],
resource: ['announcement'],
operation: ['create'],
},
},
},
@@ -130,12 +114,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'create',
],
resource: ['announcement'],
operation: ['create'],
},
},
},
@@ -147,12 +127,8 @@ export const announcementFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'create',
],
resource: ['announcement'],
operation: ['create'],
},
},
options: [
@@ -161,14 +137,16 @@ export const announcementFields: INodeProperties[] = [
name: 'additional_emails',
type: 'string',
default: '',
description: 'Comma-separated additional email addresses to which the announcement needs to be sent',
description:
'Comma-separated additional email addresses to which the announcement needs to be sent',
},
{
displayName: 'Department Names or IDs',
name: 'departments',
type: 'multiOptions',
default: [],
description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -202,12 +180,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'delete',
],
resource: ['announcement'],
operation: ['delete'],
},
},
},
@@ -224,12 +198,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'get',
],
resource: ['announcement'],
operation: ['get'],
},
},
},
@@ -245,12 +215,8 @@ export const announcementFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'getAll',
],
resource: ['announcement'],
operation: ['getAll'],
},
},
},
@@ -265,15 +231,9 @@ export const announcementFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['announcement'],
operation: ['getAll'],
returnAll: [false],
},
},
},
@@ -290,12 +250,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'update',
],
resource: ['announcement'],
operation: ['update'],
},
},
},
@@ -307,12 +263,8 @@ export const announcementFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'announcement',
],
operation: [
'update',
],
resource: ['announcement'],
operation: ['update'],
},
},
options: [
@@ -321,7 +273,8 @@ export const announcementFields: INodeProperties[] = [
name: 'additional_emails',
type: 'string',
default: '',
description: 'Comma-separated additional email addresses to which the announcement needs to be sent',
description:
'Comma-separated additional email addresses to which the announcement needs to be sent',
},
{
displayName: 'Body',
@@ -335,7 +288,8 @@ export const announcementFields: INodeProperties[] = [
name: 'departments',
type: 'multiOptions',
default: [],
description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},