mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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 taskOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const taskOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -59,19 +55,16 @@ export const taskFields: INodeProperties[] = [
|
||||
displayName: 'TaskList Name or ID',
|
||||
name: 'task',
|
||||
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: 'getTasks',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -84,12 +77,8 @@ export const taskFields: INodeProperties[] = [
|
||||
description: 'Title of the task',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -101,12 +90,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -115,7 +100,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'completed',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.',
|
||||
description:
|
||||
'Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.',
|
||||
},
|
||||
{
|
||||
displayName: 'Deleted',
|
||||
@@ -143,14 +129,16 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'parent',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Parent task identifier. If the task is created at the top level, this parameter is omitted.',
|
||||
description:
|
||||
'Parent task identifier. If the task is created at the top level, this parameter is omitted.',
|
||||
},
|
||||
{
|
||||
displayName: 'Previous',
|
||||
name: 'previous',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||
description:
|
||||
'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||
},
|
||||
{
|
||||
displayName: 'Status',
|
||||
@@ -169,7 +157,6 @@ export const taskFields: INodeProperties[] = [
|
||||
default: '',
|
||||
description: 'Current status of the task',
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -179,19 +166,16 @@ export const taskFields: INodeProperties[] = [
|
||||
displayName: 'TaskList Name or ID',
|
||||
name: 'task',
|
||||
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: 'getTasks',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['delete'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -203,12 +187,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['delete'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -220,19 +200,16 @@ export const taskFields: INodeProperties[] = [
|
||||
displayName: 'TaskList Name or ID',
|
||||
name: 'task',
|
||||
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: 'getTasks',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -244,12 +221,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -261,19 +234,16 @@ export const taskFields: INodeProperties[] = [
|
||||
displayName: 'TaskList Name or ID',
|
||||
name: 'task',
|
||||
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: 'getTasks',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -284,12 +254,8 @@ export const taskFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -301,15 +267,9 @@ export const taskFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['task'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -327,12 +287,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -341,14 +297,16 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'completedMax',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Upper bound for a task completion date (as a RFC 3339 timestamp) to filter by',
|
||||
description:
|
||||
'Upper bound for a task completion date (as a RFC 3339 timestamp) to filter by',
|
||||
},
|
||||
{
|
||||
displayName: 'Completed Min',
|
||||
name: 'completedMin',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Lower bound for a task completion date (as a RFC 3339 timestamp) to filter by',
|
||||
description:
|
||||
'Lower bound for a task completion date (as a RFC 3339 timestamp) to filter by',
|
||||
},
|
||||
{
|
||||
displayName: 'Due Min',
|
||||
@@ -370,7 +328,8 @@ export const taskFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-unencoded-angle-brackets
|
||||
description: 'Whether completed tasks are returned in the result. <strong>Show Hidden</strong> must also be True to show tasks completed in first party clients such as the web UI or Google\'s mobile apps.',
|
||||
description:
|
||||
"Whether completed tasks are returned in the result. <strong>Show Hidden</strong> must also be True to show tasks completed in first party clients such as the web UI or Google's mobile apps.",
|
||||
},
|
||||
{
|
||||
displayName: 'Show Deleted',
|
||||
@@ -391,7 +350,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'updatedMin',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Lower bound for a task last modification time (as a RFC 3339 timestamp) to filter by',
|
||||
description:
|
||||
'Lower bound for a task last modification time (as a RFC 3339 timestamp) to filter by',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -402,19 +362,16 @@ export const taskFields: INodeProperties[] = [
|
||||
displayName: 'TaskList Name or ID',
|
||||
name: 'task',
|
||||
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: 'getTasks',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -426,12 +383,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -444,12 +397,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -458,7 +407,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'completed',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.',
|
||||
description:
|
||||
'Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.',
|
||||
},
|
||||
|
||||
{
|
||||
@@ -490,7 +440,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'previous',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||
description:
|
||||
'Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted.',
|
||||
},
|
||||
{
|
||||
displayName: 'Status',
|
||||
|
||||
Reference in New Issue
Block a user