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';
import { LANGUAGES } from '../constants';
export const requesterOperations: INodeProperties[] = [
@@ -11,9 +9,7 @@ export const requesterOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'requester',
],
resource: ['requester'],
},
},
options: [
@@ -64,12 +60,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'create',
],
resource: ['requester'],
operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'create',
],
resource: ['requester'],
operation: ['create'],
},
},
},
@@ -97,12 +85,8 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'create',
],
resource: ['requester'],
operation: ['create'],
},
},
options: [
@@ -123,7 +107,8 @@ export const requesterFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -150,7 +135,8 @@ export const requesterFields: INodeProperties[] = [
{
displayName: 'Location Name or ID',
name: 'location_id',
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>',
type: 'options',
default: '',
typeOptions: {
@@ -207,12 +193,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'delete',
],
resource: ['requester'],
operation: ['delete'],
},
},
},
@@ -229,12 +211,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'get',
],
resource: ['requester'],
operation: ['get'],
},
},
},
@@ -250,12 +228,8 @@ export const requesterFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'getAll',
],
resource: ['requester'],
operation: ['getAll'],
},
},
},
@@ -270,15 +244,9 @@ export const requesterFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['requester'],
operation: ['getAll'],
returnAll: [false],
},
},
},
@@ -290,19 +258,16 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'getAll',
],
resource: ['requester'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Department Name or ID',
name: 'department_id',
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>',
type: 'options',
default: '',
typeOptions: {
@@ -338,7 +303,8 @@ export const requesterFields: INodeProperties[] = [
displayName: 'Location Name or ID',
name: 'location_id',
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: 'getLocations',
@@ -377,12 +343,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'update',
],
resource: ['requester'],
operation: ['update'],
},
},
},
@@ -394,12 +356,8 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'requester',
],
operation: [
'update',
],
resource: ['requester'],
operation: ['update'],
},
},
options: [
@@ -420,7 +378,8 @@ export const requesterFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -455,7 +414,8 @@ export const requesterFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
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: 'getLocations',
},