n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const userOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const userOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'user',
],
resource: ['user'],
},
},
options: [
@@ -58,12 +54,8 @@ export const userFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
resource: ['user'],
operation: ['create'],
},
},
required: true,
@@ -76,12 +68,8 @@ export const userFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
resource: ['user'],
operation: ['create'],
},
},
default: {},
@@ -197,7 +185,7 @@ export const userFields: INodeProperties[] = [
name: 'user_password',
type: 'string',
default: '',
description: 'The user\'s password',
description: "The user's password",
},
{
displayName: 'Password Needs Reset',
@@ -221,7 +209,8 @@ export const userFields: INodeProperties[] = [
loadOptionsMethod: 'getUserRoles',
},
default: [],
description: 'Roles of the user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Roles of the user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Source',
@@ -270,12 +259,8 @@ export const userFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'user',
],
operation: ['getAll'],
resource: ['user'],
},
},
default: false,
@@ -287,15 +272,9 @@ export const userFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'user',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['user'],
returnAll: [false],
},
},
typeOptions: {
@@ -312,12 +291,8 @@ export const userFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'getAll',
],
resource: ['user'],
operation: ['getAll'],
},
},
default: {},
@@ -335,12 +310,11 @@ export const userFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getColumns',
loadOptionsDependsOn: [
'operation',
],
loadOptionsDependsOn: ['operation'],
},
default: [],
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
hint: 'String of comma separated values or an array of strings can be set in an expression',
},
{
@@ -348,7 +322,8 @@ export const userFields: INodeProperties[] = [
name: 'sysparm_query',
type: 'string',
default: '',
description: 'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
description:
'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
},
{
displayName: 'Return Values',
@@ -394,12 +369,8 @@ export const userFields: INodeProperties[] = [
],
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'get',
],
resource: ['user'],
operation: ['get'],
},
},
required: true,
@@ -412,15 +383,9 @@ export const userFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'get',
],
getOption: [
'user_name',
],
resource: ['user'],
operation: ['get'],
getOption: ['user_name'],
},
},
required: true,
@@ -433,15 +398,9 @@ export const userFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'get',
],
getOption: [
'id',
],
resource: ['user'],
operation: ['get'],
getOption: ['id'],
},
},
required: true,
@@ -454,12 +413,8 @@ export const userFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'delete',
],
resource: ['user'],
operation: ['delete'],
},
},
required: true,
@@ -472,12 +427,8 @@ export const userFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'get',
],
resource: ['user'],
operation: ['get'],
},
},
default: {},
@@ -495,12 +446,11 @@ export const userFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getColumns',
loadOptionsDependsOn: [
'operation',
],
loadOptionsDependsOn: ['operation'],
},
default: [],
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
hint: 'String of comma separated values or an array of strings can be set in an expression',
},
{
@@ -537,12 +487,8 @@ export const userFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'update',
],
resource: ['user'],
operation: ['update'],
},
},
required: true,
@@ -555,12 +501,8 @@ export const userFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'update',
],
resource: ['user'],
operation: ['update'],
},
},
default: {},
@@ -676,7 +618,7 @@ export const userFields: INodeProperties[] = [
name: 'user_password',
type: 'string',
default: '',
description: 'The user\'s password',
description: "The user's password",
},
{
displayName: 'Password Needs Reset',
@@ -700,7 +642,8 @@ export const userFields: INodeProperties[] = [
loadOptionsMethod: 'getUserRoles',
},
default: [],
description: 'Roles of the user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Roles of the user. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Source',