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 timeEntryOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const timeEntryOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'timeEntry',
],
resource: ['timeEntry'],
},
},
options: [
@@ -46,7 +42,6 @@ export const timeEntryOperations: INodeProperties[] = [
];
export const timeEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntry:create */
/* -------------------------------------------------------------------------- */
@@ -58,12 +53,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
},
@@ -74,12 +65,8 @@ export const timeEntryFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'timeEntry',
],
operation: ['create'],
resource: ['timeEntry'],
},
},
default: {},
@@ -110,13 +97,12 @@ export const timeEntryFields: INodeProperties[] = [
name: 'customFieldId',
type: 'options',
typeOptions: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadCustomFieldsForWorkspace',
},
default: '',
description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -148,11 +134,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Project Name or ID',
name: 'projectId',
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: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadProjectsForWorkspace',
},
default: '',
@@ -162,11 +147,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tagIds',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadTagsForWorkspace',
},
default: [],
@@ -191,12 +175,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'delete',
],
resource: ['timeEntry'],
operation: ['delete'],
},
},
},
@@ -211,12 +191,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'get',
],
resource: ['timeEntry'],
operation: ['get'],
},
},
},
@@ -227,12 +203,8 @@ export const timeEntryFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'timeEntry',
],
operation: ['get'],
resource: ['timeEntry'],
},
},
default: {},
@@ -242,14 +214,16 @@ export const timeEntryFields: INodeProperties[] = [
name: 'consider-duration-format',
type: 'boolean',
default: false,
description: 'Whether to return the time entry\'s duration rounded to minutes or seconds based on duration format (hh:mm or hh:mm:ss) from workspace settings',
description:
"Whether to return the time entry's duration rounded to minutes or seconds based on duration format (hh:mm or hh:mm:ss) from workspace settings",
},
{
displayName: 'Hydrated',
name: 'hydrated',
type: 'boolean',
default: false,
description: 'Whether to return the time entry\'s project, task and tags in full and not just their IDs',
description:
"Whether to return the time entry's project, task and tags in full and not just their IDs",
},
],
},
@@ -264,12 +238,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
},
@@ -280,12 +250,8 @@ export const timeEntryFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'timeEntry',
],
operation: ['update'],
resource: ['timeEntry'],
},
},
default: {},
@@ -316,13 +282,12 @@ export const timeEntryFields: INodeProperties[] = [
name: 'customFieldId',
type: 'options',
typeOptions: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadCustomFieldsForWorkspace',
},
default: '',
description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -354,11 +319,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Project Name or ID',
name: 'projectId',
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: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadProjectsForWorkspace',
},
default: '',
@@ -374,11 +338,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tagIds',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsDependsOn: [
'workspaceId',
],
loadOptionsDependsOn: ['workspaceId'],
loadOptionsMethod: 'loadTagsForWorkspace',
},
default: [],