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 organizationOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const organizationOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'organization',
],
resource: ['organization'],
},
},
options: [
@@ -52,7 +48,6 @@ export const organizationOperations: INodeProperties[] = [
];
export const organizationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* organization:create */
/* -------------------------------------------------------------------------- */
@@ -64,12 +59,8 @@ export const organizationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'create',
],
resource: ['organization'],
operation: ['create'],
},
},
description: 'The name of the organization',
@@ -82,12 +73,8 @@ export const organizationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'create',
],
resource: ['organization'],
operation: ['create'],
},
},
description: 'The domain name of the organization',
@@ -100,12 +87,8 @@ export const organizationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'create',
],
resource: ['organization'],
operation: ['create'],
},
},
options: [
@@ -117,7 +100,8 @@ export const organizationFields: INodeProperties[] = [
loadOptionsMethod: 'getPersons',
},
default: [],
description: 'Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
],
},
@@ -132,12 +116,8 @@ export const organizationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'update',
],
resource: ['organization'],
operation: ['update'],
},
},
description: 'Unique identifier for the organization',
@@ -150,12 +130,8 @@ export const organizationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'update',
],
resource: ['organization'],
operation: ['update'],
},
},
options: [
@@ -181,7 +157,8 @@ export const organizationFields: INodeProperties[] = [
loadOptionsMethod: 'getPersons',
},
default: [],
description: 'Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
],
},
@@ -196,12 +173,8 @@ export const organizationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'get',
],
resource: ['organization'],
operation: ['get'],
},
},
description: 'Unique identifier for the organization',
@@ -214,12 +187,8 @@ export const organizationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'get',
],
resource: ['organization'],
operation: ['get'],
},
},
options: [
@@ -241,12 +210,8 @@ export const organizationFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'getAll',
],
resource: ['organization'],
operation: ['getAll'],
},
},
default: false,
@@ -258,15 +223,9 @@ export const organizationFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['organization'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -284,12 +243,8 @@ export const organizationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'getAll',
],
resource: ['organization'],
operation: ['getAll'],
},
},
options: [
@@ -298,7 +253,8 @@ export const organizationFields: INodeProperties[] = [
name: 'term',
type: 'string',
default: '',
description: 'A string used to search all the organizations in your teams address book. This could be an email address, a first name or a last name.',
description:
'A string used to search all the organizations in your teams address book. This could be an email address, a first name or a last name.',
},
{
displayName: 'With Interaction Dates',
@@ -320,12 +276,8 @@ export const organizationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'delete',
],
resource: ['organization'],
operation: ['delete'],
},
},
description: 'Unique identifier for the organization',