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 objectOperations: INodeProperties[] = [
{
@@ -38,9 +36,7 @@ export const objectOperations: INodeProperties[] = [
],
displayOptions: {
show: {
resource: [
'object',
],
resource: ['object'],
},
},
},
@@ -59,12 +55,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'create',
],
resource: ['object'],
operation: ['create'],
},
},
},
@@ -79,12 +71,8 @@ export const objectFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'create',
],
resource: ['object'],
operation: ['create'],
},
},
options: [
@@ -123,13 +111,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'get',
'delete',
],
resource: ['object'],
operation: ['get', 'delete'],
},
},
},
@@ -142,13 +125,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'get',
'delete',
],
resource: ['object'],
operation: ['get', 'delete'],
},
},
},
@@ -165,12 +143,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'update',
],
resource: ['object'],
operation: ['update'],
},
},
},
@@ -183,12 +157,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'update',
],
resource: ['object'],
operation: ['update'],
},
},
},
@@ -203,12 +173,8 @@ export const objectFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'update',
],
resource: ['object'],
operation: ['update'],
},
},
options: [
@@ -247,12 +213,8 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'getAll',
],
resource: ['object'],
operation: ['getAll'],
},
},
},
@@ -262,12 +224,8 @@ export const objectFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'getAll',
],
resource: ['object'],
operation: ['getAll'],
},
},
default: false,
@@ -279,15 +237,9 @@ export const objectFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['object'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -304,12 +256,8 @@ export const objectFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'object',
],
operation: [
'getAll',
],
resource: ['object'],
operation: ['getAll'],
},
},
},
@@ -319,12 +267,8 @@ export const objectFields: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'object',
],
operation: ['getAll'],
resource: ['object'],
},
},
default: {},
@@ -340,9 +284,7 @@ export const objectFields: INodeProperties[] = [
},
displayOptions: {
show: {
'/jsonParameters': [
false,
],
'/jsonParameters': [false],
},
},
default: {},
@@ -377,52 +319,62 @@ export const objectFields: INodeProperties[] = [
{
name: 'Is Empty',
value: 'is_empty',
description: 'Use to test whether a thing\'s given field is empty, for all field types',
description:
"Use to test whether a thing's given field is empty, for all field types",
},
{
name: 'Is Not Empty',
value: 'is_not_empty',
description: 'Use to test whether a thing\'s given field is not empty, for all field types',
description:
"Use to test whether a thing's given field is not empty, for all field types",
},
{
name: 'Text Contains',
value: 'text contains',
description: 'Use to test if a text field contains a string, for text fields only',
description:
'Use to test if a text field contains a string, for text fields only',
},
{
name: 'Not Text Contains',
value: 'not text contains',
description: 'Use to test if a text field does not contain a string, for text fields only',
description:
'Use to test if a text field does not contain a string, for text fields only',
},
{
name: 'Greater Than',
value: 'greater than',
description: 'Use to compare a thing\'s field value relative to a string or number, for text, number, and date fields',
description:
"Use to compare a thing's field value relative to a string or number, for text, number, and date fields",
},
{
name: 'Less Than',
value: 'less than',
description: 'Use to compare a thing\'s field value relative to a string or number, for text, number, and date fields',
description:
"Use to compare a thing's field value relative to a string or number, for text, number, and date fields",
},
{
name: 'In',
value: 'in',
description: 'Use to test whether a thing\'s field is in a list, for all field types',
description:
"Use to test whether a thing's field is in a list, for all field types",
},
{
name: 'Not In',
value: 'not in',
description: 'Use to test whether a thing\'s field is not in a list, for all field types',
description:
"Use to test whether a thing's field is not in a list, for all field types",
},
{
name: 'Contains',
value: 'contains',
description: 'Use to test whether a list field contains an entry, for list fields only',
description:
'Use to test whether a list field contains an entry, for list fields only',
},
{
name: 'Not Contains',
value: 'not contains',
description: 'Use to test whether a list field does not contains an entry, for list fields only',
description:
'Use to test whether a list field does not contains an entry, for list fields only',
},
{
name: 'Empty',
@@ -432,12 +384,14 @@ export const objectFields: INodeProperties[] = [
{
name: 'Not Empty',
value: 'not empty',
description: 'Use to test whether a list field is not empty, for list fields only',
description:
'Use to test whether a list field is not empty, for list fields only',
},
{
name: 'Geographic Search',
value: 'geographic_search',
description: 'Use to test if the current thing is within a radius from a central address. To use this, the value sent with the constraint must have an address and a range. See <a href="https://manual.bubble.io/core-resources/api/data-api">link</a>.',
description:
'Use to test if the current thing is within a radius from a central address. To use this, the value sent with the constraint must have an address and a range. See <a href="https://manual.bubble.io/core-resources/api/data-api">link</a>.',
},
],
default: '',
@@ -448,12 +402,7 @@ export const objectFields: INodeProperties[] = [
type: 'string',
displayOptions: {
hide: {
constraint_type: [
'is_empty',
'is_not_empty',
'empty',
'not empty',
],
constraint_type: ['is_empty', 'is_not_empty', 'empty', 'not empty'],
},
},
default: '',
@@ -470,13 +419,12 @@ export const objectFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
'/jsonParameters': [
true,
],
'/jsonParameters': [true],
},
},
placeholder: `[ { "key": "name", "constraint_type": "text contains", "value": "cafe" } , { "key": "address", "constraint_type": "geographic_search", "value": { "range":10, "origin_address":"New York" } } ]`,
description: 'Refine the list that is returned by the Data API with search constraints, exactly as you define a search in Bubble. See <a href="https://manual.bubble.io/core-resources/api/data-api#search-constraints">link</a>.',
description:
'Refine the list that is returned by the Data API with search constraints, exactly as you define a search in Bubble. See <a href="https://manual.bubble.io/core-resources/api/data-api#search-constraints">link</a>.',
},
{
displayName: 'Sort',
@@ -497,7 +445,8 @@ export const objectFields: INodeProperties[] = [
name: 'sort_field',
type: 'string',
default: '',
description: 'Specify the field to use for sorting. Either use a fielddefined for the current typeor use <code>_random_sorting</code> to get the entries in a random order.',
description:
'Specify the field to use for sorting. Either use a fielddefined for the current typeor use <code>_random_sorting</code> to get the entries in a random order.',
},
{
displayName: 'Descending',
@@ -510,7 +459,8 @@ export const objectFields: INodeProperties[] = [
name: 'geo_reference',
type: 'string',
default: '',
description: 'When the field\'s type is geographic address, you need to add another parameter geo_reference and provide an address as a string',
description:
"When the field's type is geographic address, you need to add another parameter geo_reference and provide an address as a string",
},
],
},