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,7 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
INodePropertyOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
|
||||
|
||||
export const resource = {
|
||||
name: 'Asset',
|
||||
@@ -16,9 +13,7 @@ export const operations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
resource: [resource.value],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -42,17 +37,13 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'getAll',
|
||||
],
|
||||
resource: [resource.value],
|
||||
operation: ['get', 'getAll'],
|
||||
},
|
||||
},
|
||||
default: 'master',
|
||||
description: 'The ID for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".',
|
||||
description:
|
||||
'The ID for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -60,12 +51,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: [resource.value],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -77,15 +64,9 @@ export const fields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: [resource.value],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -103,12 +84,8 @@ export const fields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [resource.value],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -120,12 +97,8 @@ export const fields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
resource.value,
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [resource.value],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -135,7 +108,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'fields.title=n8n',
|
||||
description: 'Search for all data that matches the condition: {attribute}={value}. Attribute can use dot notation.',
|
||||
description:
|
||||
'Search for all data that matches the condition: {attribute}={value}. Attribute can use dot notation.',
|
||||
},
|
||||
{
|
||||
displayName: 'Exclude',
|
||||
@@ -143,7 +117,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'fields.tags[nin]=accessories,flowers',
|
||||
description: 'Search for all data that matches the condition: {attribute}[nin]={value}. Attribute can use dot notation.',
|
||||
description:
|
||||
'Search for all data that matches the condition: {attribute}[nin]={value}. Attribute can use dot notation.',
|
||||
},
|
||||
{
|
||||
displayName: 'Exist',
|
||||
@@ -151,7 +126,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'fields.tags[exists]=true',
|
||||
description: 'Search for all data that matches the condition: {attribute}[exists]={value}. Attribute can use dot notation.',
|
||||
description:
|
||||
'Search for all data that matches the condition: {attribute}[exists]={value}. Attribute can use dot notation.',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -159,7 +135,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
placeholder: 'fields.title',
|
||||
default: '',
|
||||
description: 'The select operator allows you to choose what fields to return from an entity. You can choose multiple values by combining comma-separated operators.',
|
||||
description:
|
||||
'The select operator allows you to choose what fields to return from an entity. You can choose multiple values by combining comma-separated operators.',
|
||||
},
|
||||
{
|
||||
displayName: 'Include',
|
||||
@@ -167,7 +144,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'fields.tags[in]=accessories,flowers',
|
||||
description: 'Search for all data that matches the condition: {attribute}[in]={value}. Attribute can use dot notation.',
|
||||
description:
|
||||
'Search for all data that matches the condition: {attribute}[in]={value}. Attribute can use dot notation.',
|
||||
},
|
||||
{
|
||||
displayName: 'Not Equal',
|
||||
@@ -175,7 +153,8 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'fields.title[ne]=n8n',
|
||||
description: 'Search for all data that matches the condition: {attribute}[ne]={value}. Attribute can use dot notation.',
|
||||
description:
|
||||
'Search for all data that matches the condition: {attribute}[ne]={value}. Attribute can use dot notation.',
|
||||
},
|
||||
{
|
||||
displayName: 'Order',
|
||||
@@ -183,14 +162,16 @@ export const fields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'sys.createdAt',
|
||||
description: 'You can order items in the response by specifying the order search parameter. You can use sys properties (such as sys.createdAt) or field values (such as fields.myCustomDateField) for ordering.',
|
||||
description:
|
||||
'You can order items in the response by specifying the order search parameter. You can use sys properties (such as sys.createdAt) or field values (such as fields.myCustomDateField) for ordering.',
|
||||
},
|
||||
{
|
||||
displayName: 'Query',
|
||||
name: 'query',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Full-text search is case insensitive and might return more results than expected. A query will only take values with more than 1 character.',
|
||||
description:
|
||||
'Full-text search is case insensitive and might return more results than expected. A query will only take values with more than 1 character.',
|
||||
},
|
||||
{
|
||||
displayName: 'RAW Data',
|
||||
|
||||
Reference in New Issue
Block a user