mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const boardItemOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const boardItemOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -37,8 +33,8 @@ export const boardItemOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Create',
|
||||
value: 'create',
|
||||
description: 'Create an item in a board\'s group',
|
||||
action: 'Create an item in a board\'s group',
|
||||
description: "Create an item in a board's group",
|
||||
action: "Create an item in a board's group",
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
@@ -76,7 +72,6 @@ export const boardItemOperations: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export const boardItemFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* boardItem:addUpdate */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -88,12 +83,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'addUpdate',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['addUpdate'],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the item to add update to',
|
||||
@@ -106,12 +97,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'addUpdate',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['addUpdate'],
|
||||
},
|
||||
},
|
||||
description: 'The update text to add',
|
||||
@@ -130,15 +117,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Item ID',
|
||||
@@ -148,12 +132,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the item to to change column of',
|
||||
@@ -164,23 +144,18 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getColumns',
|
||||
loadOptionsDependsOn: [
|
||||
'boardId',
|
||||
],
|
||||
loadOptionsDependsOn: ['boardId'],
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The column\'s unique identifier. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The column\'s unique identifier. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Value',
|
||||
@@ -190,15 +165,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The column value in JSON format. Documentation can be found <a href="https://monday.com/developers/v2#mutations-section-columns-change-column-value">here</a>.',
|
||||
description:
|
||||
'The column value in JSON format. Documentation can be found <a href="https://monday.com/developers/v2#mutations-section-columns-change-column-value">here</a>.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* boardItem:changeMultipleColumnValues */
|
||||
@@ -214,15 +186,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeMultipleColumnValues',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeMultipleColumnValues'],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Item ID',
|
||||
@@ -232,15 +201,11 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeMultipleColumnValues',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeMultipleColumnValues'],
|
||||
},
|
||||
},
|
||||
description: 'Item\'s ID',
|
||||
description: "Item's ID",
|
||||
},
|
||||
{
|
||||
displayName: 'Column Values',
|
||||
@@ -250,15 +215,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'changeMultipleColumnValues',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['changeMultipleColumnValues'],
|
||||
},
|
||||
},
|
||||
description: 'The column fields and values in JSON format. Documentation can be found <a href="https://monday.com/developers/v2#mutations-section-columns-change-multiple-column-values">here</a>.',
|
||||
description:
|
||||
'The column fields and values in JSON format. Documentation can be found <a href="https://monday.com/developers/v2#mutations-section-columns-change-multiple-column-values">here</a>.',
|
||||
typeOptions: {
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
@@ -270,7 +232,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
displayName: 'Board Name or ID',
|
||||
name: 'boardId',
|
||||
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: {
|
||||
loadOptionsMethod: 'getBoards',
|
||||
},
|
||||
@@ -278,12 +241,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -291,23 +250,18 @@ export const boardItemFields: INodeProperties[] = [
|
||||
displayName: 'Group Name or ID',
|
||||
name: 'groupId',
|
||||
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>',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getGroups',
|
||||
loadOptionsDependsOn: [
|
||||
'boardId',
|
||||
],
|
||||
loadOptionsDependsOn: ['boardId'],
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -318,16 +272,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['boardItem'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The new item\'s name',
|
||||
description: "The new item's name",
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -336,12 +286,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['boardItem'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -369,15 +315,11 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
description: 'Item\'s ID',
|
||||
description: "Item's ID",
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* boardItem:get */
|
||||
@@ -390,15 +332,11 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
description: 'Item\'s ID (Multiple can be added separated by comma)',
|
||||
description: "Item's ID (Multiple can be added separated by comma)",
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* boardItem:getAll */
|
||||
@@ -407,7 +345,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
displayName: 'Board Name or ID',
|
||||
name: 'boardId',
|
||||
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>',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getBoards',
|
||||
@@ -415,12 +354,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -429,22 +364,17 @@ export const boardItemFields: INodeProperties[] = [
|
||||
name: 'groupId',
|
||||
default: '',
|
||||
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: {
|
||||
loadOptionsMethod: 'getGroups',
|
||||
loadOptionsDependsOn: [
|
||||
'boardId',
|
||||
],
|
||||
loadOptionsDependsOn: ['boardId'],
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -454,12 +384,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -471,15 +397,9 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -503,15 +423,12 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getByColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getByColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The unique identifier of the board. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Column Name or ID',
|
||||
@@ -519,23 +436,18 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getColumns',
|
||||
loadOptionsDependsOn: [
|
||||
'boardId',
|
||||
],
|
||||
loadOptionsDependsOn: ['boardId'],
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getByColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getByColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The column\'s unique identifier. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The column\'s unique identifier. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Column Value',
|
||||
@@ -545,12 +457,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getByColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getByColumnValue'],
|
||||
},
|
||||
},
|
||||
description: 'The column value to search items by',
|
||||
@@ -561,12 +469,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getByColumnValue',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getByColumnValue'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -578,15 +482,9 @@ export const boardItemFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'getByColumnValue',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['getByColumnValue'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -603,7 +501,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
displayName: 'Board Name or ID',
|
||||
name: 'boardId',
|
||||
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: {
|
||||
loadOptionsMethod: 'getBoards',
|
||||
},
|
||||
@@ -611,12 +510,8 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'move',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['move'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -627,38 +522,29 @@ export const boardItemFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'move',
|
||||
],
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: ['move'],
|
||||
resource: ['boardItem'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The item\'s ID',
|
||||
description: "The item's ID",
|
||||
},
|
||||
{
|
||||
displayName: 'Group Name or ID',
|
||||
name: 'groupId',
|
||||
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>',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getGroups',
|
||||
loadOptionsDependsOn: [
|
||||
'boardId',
|
||||
],
|
||||
loadOptionsDependsOn: ['boardId'],
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'boardItem',
|
||||
],
|
||||
operation: [
|
||||
'move',
|
||||
],
|
||||
resource: ['boardItem'],
|
||||
operation: ['move'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user