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,22 +1,19 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const customResourceOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Custom Resource Name or ID',
|
||||
name: 'customResource',
|
||||
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: 'getModels',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -28,9 +25,7 @@ export const customResourceOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -84,12 +79,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -101,7 +92,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'fieldName',
|
||||
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: 'getModelFields',
|
||||
@@ -129,13 +121,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['get', 'delete'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -148,12 +135,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['custom'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -167,15 +150,9 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
default: 50,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['custom'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -192,13 +169,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['getAll', 'get'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -207,13 +179,12 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
displayName: 'Fields to Include',
|
||||
name: 'fieldsList',
|
||||
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>',
|
||||
default: [],
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getModelFields',
|
||||
loadOptionsDependsOn: [
|
||||
'customResource',
|
||||
],
|
||||
loadOptionsDependsOn: ['customResource'],
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -231,12 +202,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
placeholder: 'Add condition',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -248,12 +215,11 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'fieldName',
|
||||
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: {
|
||||
loadOptionsDependsOn: [
|
||||
'customResource',
|
||||
],
|
||||
loadOptionsDependsOn: ['customResource'],
|
||||
loadOptionsMethod: 'getModelFields',
|
||||
},
|
||||
},
|
||||
@@ -328,12 +294,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -350,12 +312,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'custom',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['custom'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -367,7 +325,8 @@ export const customResourceDescription: INodeProperties[] = [
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'fieldName',
|
||||
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: 'getModelFields',
|
||||
|
||||
Reference in New Issue
Block a user