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 operationFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
@@ -12,7 +10,8 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Database to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Database to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getDatabaseIds',
|
||||
},
|
||||
@@ -23,11 +22,10 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'databaseId',
|
||||
],
|
||||
loadOptionsDependsOn: ['databaseId'],
|
||||
loadOptionsMethod: 'getTableIds',
|
||||
},
|
||||
},
|
||||
@@ -41,9 +39,7 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -60,9 +56,7 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -91,10 +85,7 @@ export const operationFields: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
operation: ['create', 'update'],
|
||||
},
|
||||
},
|
||||
default: 'defineBelow',
|
||||
@@ -106,17 +97,13 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
dataToSend: [
|
||||
'autoMapInputData',
|
||||
],
|
||||
operation: ['create', 'update'],
|
||||
dataToSend: ['autoMapInputData'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
|
||||
description:
|
||||
'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
|
||||
placeholder: 'Enter properties...',
|
||||
},
|
||||
{
|
||||
@@ -130,13 +117,8 @@ export const operationFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
dataToSend: [
|
||||
'defineBelow',
|
||||
],
|
||||
operation: ['create', 'update'],
|
||||
dataToSend: ['defineBelow'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -149,11 +131,10 @@ export const operationFields: INodeProperties[] = [
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'fieldId',
|
||||
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>',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'tableId',
|
||||
],
|
||||
loadOptionsDependsOn: ['tableId'],
|
||||
loadOptionsMethod: 'getTableFields',
|
||||
},
|
||||
default: '',
|
||||
@@ -178,9 +159,7 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -199,9 +178,7 @@ export const operationFields: INodeProperties[] = [
|
||||
description: 'Whether to return all results or only up to a given limit',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -217,12 +194,8 @@ export const operationFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -234,9 +207,7 @@ export const operationFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -260,11 +231,10 @@ export const operationFields: INodeProperties[] = [
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'Field to compare. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Field to compare. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'tableId',
|
||||
],
|
||||
loadOptionsDependsOn: ['tableId'],
|
||||
loadOptionsMethod: 'getTableFields',
|
||||
},
|
||||
},
|
||||
@@ -287,17 +257,17 @@ export const operationFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Date After Date',
|
||||
value: 'date_after',
|
||||
description: 'Field after this date. Format: \'YYYY-MM-DD\'.',
|
||||
description: "Field after this date. Format: 'YYYY-MM-DD'.",
|
||||
},
|
||||
{
|
||||
name: 'Date Before Date',
|
||||
value: 'date_before',
|
||||
description: 'Field before this date. Format: \'YYYY-MM-DD\'.',
|
||||
description: "Field before this date. Format: 'YYYY-MM-DD'.",
|
||||
},
|
||||
{
|
||||
name: 'Date Equal',
|
||||
value: 'date_equal',
|
||||
description: 'Field is date. Format: \'YYYY-MM-DD\'.',
|
||||
description: "Field is date. Format: 'YYYY-MM-DD'.",
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Month',
|
||||
@@ -317,7 +287,7 @@ export const operationFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Date Not Equal',
|
||||
value: 'date_not_equal',
|
||||
description: 'Field is not date. Format: \'YYYY-MM-DD\'.',
|
||||
description: "Field is not date. Format: 'YYYY-MM-DD'.",
|
||||
},
|
||||
{
|
||||
name: 'Equal',
|
||||
@@ -410,7 +380,8 @@ export const operationFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
default: 'AND',
|
||||
description: 'This works only if two or more filters are provided. Defaults to <code>AND</code>',
|
||||
description:
|
||||
'This works only if two or more filters are provided. Defaults to <code>AND</code>',
|
||||
},
|
||||
{
|
||||
displayName: 'Search Term',
|
||||
@@ -439,11 +410,10 @@ export const operationFields: INodeProperties[] = [
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'Field name to sort by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Field name to sort by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'tableId',
|
||||
],
|
||||
loadOptionsDependsOn: ['tableId'],
|
||||
loadOptionsMethod: 'getTableFields',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user