mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -8,9 +8,7 @@ export const taskOpeations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
resource: ['task'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -44,10 +42,9 @@ export const taskOpeations: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export const taskFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Workspace ID',
|
||||
name: 'workspaceId',
|
||||
@@ -56,12 +53,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
description: 'Create resources under the given workspace',
|
||||
@@ -74,12 +67,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
description: 'The title of the task',
|
||||
@@ -92,12 +81,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -113,7 +98,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'listID',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Put the new task in a list ("project"). Omit this param to have the task be private.',
|
||||
description:
|
||||
'Put the new task in a list ("project"). Omit this param to have the task be private.',
|
||||
},
|
||||
{
|
||||
displayName: 'Starts On',
|
||||
@@ -134,14 +120,16 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'mirrorParentSubscribers',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this task will be a subtask, and this is true, the parent tasks\'s subscribers will be mirrored to this one',
|
||||
description:
|
||||
"Whether this task will be a subtask, and this is true, the parent tasks's subscribers will be mirrored to this one",
|
||||
},
|
||||
{
|
||||
displayName: 'Mirror Parent Tags',
|
||||
name: 'mirrorParentTags',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this task will be a subtask, and this is true, the parent tasks\'s tags will be mirrored to this one',
|
||||
description:
|
||||
"Whether this task will be a subtask, and this is true, the parent tasks's tags will be mirrored to this one",
|
||||
},
|
||||
{
|
||||
displayName: 'Note Content',
|
||||
@@ -151,7 +139,7 @@ export const taskFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'Provide the content for the task\'s note',
|
||||
description: "Provide the content for the task's note",
|
||||
},
|
||||
{
|
||||
displayName: 'Note Mime Type',
|
||||
@@ -221,9 +209,9 @@ export const taskFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Workspace ID',
|
||||
name: 'workspaceId',
|
||||
@@ -232,12 +220,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
description: 'Create resources under the given workspace',
|
||||
@@ -250,12 +234,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -267,12 +247,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -302,7 +278,8 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'listID',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Put the new task in a list ("project"). Omit this param to have the task be private.',
|
||||
description:
|
||||
'Put the new task in a list ("project"). Omit this param to have the task be private.',
|
||||
},
|
||||
{
|
||||
displayName: 'Starts On',
|
||||
@@ -323,14 +300,16 @@ export const taskFields: INodeProperties[] = [
|
||||
name: 'mirrorParentSubscribers',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this task will be a subtask, and this is true, the parent tasks\'s subscribers will be mirrored to this one',
|
||||
description:
|
||||
"Whether this task will be a subtask, and this is true, the parent tasks's subscribers will be mirrored to this one",
|
||||
},
|
||||
{
|
||||
displayName: 'Mirror Parent Tags',
|
||||
name: 'mirrorParentTags',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this task will be a subtask, and this is true, the parent tasks\'s tags will be mirrored to this one',
|
||||
description:
|
||||
"Whether this task will be a subtask, and this is true, the parent tasks's tags will be mirrored to this one",
|
||||
},
|
||||
{
|
||||
displayName: 'Note Content',
|
||||
@@ -340,7 +319,7 @@ export const taskFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'Provide the content for the task\'s note',
|
||||
description: "Provide the content for the task's note",
|
||||
},
|
||||
{
|
||||
displayName: 'Note Mime Type',
|
||||
@@ -407,9 +386,9 @@ export const taskFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Task ID',
|
||||
name: 'taskId',
|
||||
@@ -418,12 +397,8 @@ export const taskFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -435,12 +410,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -470,21 +441,17 @@ export const taskFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* task:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -496,15 +463,9 @@ export const taskFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -522,12 +483,8 @@ export const taskFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'task',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['task'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
Reference in New Issue
Block a user