mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -1,10 +1,6 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
activeCampaignDefaultGetAllProperties,
|
||||
} from './GenericFunctions';
|
||||
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';
|
||||
|
||||
export const accountOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -14,9 +10,7 @@ export const accountOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -67,15 +61,11 @@ export const accountFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
description: 'Account\'s name',
|
||||
description: "Account's name",
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -84,12 +74,8 @@ export const accountFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -99,7 +85,7 @@ export const accountFields: INodeProperties[] = [
|
||||
name: 'accountUrl',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Account\'s website',
|
||||
description: "Account's website",
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -124,7 +110,8 @@ export const accountFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getAccountCustomFields',
|
||||
},
|
||||
default: '',
|
||||
description: 'ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Field Value',
|
||||
@@ -149,12 +136,8 @@ export const accountFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: 0,
|
||||
@@ -169,12 +152,8 @@ export const accountFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -184,14 +163,14 @@ export const accountFields: INodeProperties[] = [
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Account\'s name',
|
||||
description: "Account's name",
|
||||
},
|
||||
{
|
||||
displayName: 'Account URL',
|
||||
name: 'accountUrl',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Account\'s website',
|
||||
description: "Account's website",
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -216,7 +195,8 @@ export const accountFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getAccountCustomFields',
|
||||
},
|
||||
default: '',
|
||||
description: 'ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Field Value',
|
||||
@@ -240,12 +220,8 @@ export const accountFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['delete'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: 0,
|
||||
@@ -261,12 +237,8 @@ export const accountFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: 0,
|
||||
@@ -284,12 +256,8 @@ export const accountFields: INodeProperties[] = [
|
||||
placeholder: 'Add Filter',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'account',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -303,5 +271,4 @@ export const accountFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user