mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const attachmentOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const attachmentOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -46,7 +42,6 @@ export const attachmentOperations: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export const attachmentFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment common fields */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -55,20 +50,16 @@ export const attachmentFields: INodeProperties[] = [
|
||||
displayName: 'Table Name or ID',
|
||||
name: 'tableName',
|
||||
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: {
|
||||
loadOptionsMethod: 'getTables',
|
||||
},
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'upload',
|
||||
'getAll',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['upload', 'getAll'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -84,16 +75,13 @@ export const attachmentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'upload',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['upload'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'Sys_id of the record in the table specified in Table Name that you want to attach the file to',
|
||||
description:
|
||||
'Sys_id of the record in the table specified in Table Name that you want to attach the file to',
|
||||
},
|
||||
{
|
||||
displayName: 'Input Data Field Name',
|
||||
@@ -103,12 +91,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'upload',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['upload'],
|
||||
},
|
||||
},
|
||||
description: 'Name of the binary property that contains the data to upload',
|
||||
@@ -120,12 +104,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'upload',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['upload'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -149,12 +129,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -170,12 +146,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -190,12 +162,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -207,15 +175,9 @@ export const attachmentFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -233,13 +195,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'getAll',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['get', 'getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -251,16 +208,9 @@ export const attachmentFields: INodeProperties[] = [
|
||||
description: 'Field name where downloaded data will be placed',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'getAll',
|
||||
],
|
||||
download: [
|
||||
true,
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['get', 'getAll'],
|
||||
download: [true],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -271,12 +221,8 @@ export const attachmentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'attachment',
|
||||
],
|
||||
operation: [
|
||||
'get', 'getAll',
|
||||
],
|
||||
resource: ['attachment'],
|
||||
operation: ['get', 'getAll'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
|
||||
Reference in New Issue
Block a user