mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const campaignOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -48,9 +46,7 @@ export const campaignOperations: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -69,15 +65,12 @@ export const campaignFields: INodeProperties[] = [
|
||||
},
|
||||
default: [],
|
||||
required: true,
|
||||
description: 'The ID of the campaign to add the contact to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The ID of the campaign to add the contact to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'addContact',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['addContact'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -90,12 +83,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The email of the contact to add to the campaign',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'addContact',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['addContact'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -107,12 +96,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'addContact',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['addContact'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -213,12 +198,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The name of the campaign to create',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -235,12 +216,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The ID of the campaign to retrieve',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -256,12 +233,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'Whether to return all results or only up to a given limit',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -277,15 +250,9 @@ export const campaignFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -302,12 +269,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The ID of the campaign to pause. The campaign must be in RUNNING mode.',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'pause',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['pause'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -324,12 +287,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The ID of the campaign to start. Email provider and contacts must be set.',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'start',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['start'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -343,18 +302,15 @@ export const campaignFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The ID of the campaign to duplicate. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The ID of the campaign to duplicate. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getCampaigns',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'duplicate',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['duplicate'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -367,12 +323,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
description: 'The name of the new campaign to create',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'duplicate',
|
||||
],
|
||||
resource: ['campaign'],
|
||||
operation: ['duplicate'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -384,12 +336,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'duplicate',
|
||||
],
|
||||
resource: [
|
||||
'campaign',
|
||||
],
|
||||
operation: ['duplicate'],
|
||||
resource: ['campaign'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -412,7 +360,8 @@ export const campaignFields: INodeProperties[] = [
|
||||
name: 'copyMails',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Whether to copy all the steps of the email sequence from the original campaign',
|
||||
description:
|
||||
'Whether to copy all the steps of the email sequence from the original campaign',
|
||||
},
|
||||
{
|
||||
displayName: 'Copy Global Settings',
|
||||
|
||||
Reference in New Issue
Block a user