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 threadOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const threadOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -62,12 +58,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -80,12 +72,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -98,12 +86,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -117,12 +101,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['thread'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -174,10 +154,7 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'send_reply',
|
||||
'prefill_message',
|
||||
],
|
||||
action: ['send_reply', 'prefill_message'],
|
||||
},
|
||||
},
|
||||
description: 'The text for the action button',
|
||||
@@ -187,7 +164,8 @@ export const threadFields: INodeProperties[] = [
|
||||
displayName: 'Type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
description: 'The type of the button. (Currently only <code>action</code> is available).',
|
||||
description:
|
||||
'The type of the button. (Currently only <code>action</code> is available).',
|
||||
options: [
|
||||
{
|
||||
name: 'Action',
|
||||
@@ -202,9 +180,7 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'open_url',
|
||||
],
|
||||
action: ['open_url'],
|
||||
},
|
||||
},
|
||||
description: 'URL to redirect',
|
||||
@@ -219,7 +195,8 @@ export const threadFields: INodeProperties[] = [
|
||||
name: 'binaryProperties',
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
description: 'Name of the property that holds the binary data. Multiple can be defined separated by comma.',
|
||||
description:
|
||||
'Name of the property that holds the binary data. Multiple can be defined separated by comma.',
|
||||
},
|
||||
{
|
||||
displayName: 'Direct Mention Names or IDs',
|
||||
@@ -227,12 +204,11 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'multiOptions',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsDependsOn: [
|
||||
'workspaceId',
|
||||
],
|
||||
loadOptionsDependsOn: ['workspaceId'],
|
||||
},
|
||||
default: [],
|
||||
description: 'The users that are directly mentioned. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The users that are directly mentioned. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Recipient Names or IDs',
|
||||
@@ -240,12 +216,11 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'multiOptions',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsDependsOn: [
|
||||
'workspaceId',
|
||||
],
|
||||
loadOptionsDependsOn: ['workspaceId'],
|
||||
},
|
||||
default: [],
|
||||
description: 'The users that will attached to the thread. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The users that will attached to the thread. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Send as Integration',
|
||||
@@ -273,13 +248,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['get', 'delete'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -295,12 +265,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -312,12 +278,8 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['thread'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -329,15 +291,9 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['thread'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -355,12 +311,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['thread'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -390,7 +342,8 @@ export const threadFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
description: 'A filter can be one of <code>attached_to_me</code>, <code>everyone</code> and <code>is_starred</code>',
|
||||
description:
|
||||
'A filter can be one of <code>attached_to_me</code>, <code>everyone</code> and <code>is_starred</code>',
|
||||
},
|
||||
{
|
||||
displayName: 'Newer Than',
|
||||
@@ -419,12 +372,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['thread'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -438,12 +387,8 @@ export const threadFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'thread',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['thread'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -495,10 +440,7 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'send_reply',
|
||||
'prefill_message',
|
||||
],
|
||||
action: ['send_reply', 'prefill_message'],
|
||||
},
|
||||
},
|
||||
description: 'The text for the action button',
|
||||
@@ -508,7 +450,8 @@ export const threadFields: INodeProperties[] = [
|
||||
displayName: 'Type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
description: 'The type of the button. (Currently only <code>action</code> is available).',
|
||||
description:
|
||||
'The type of the button. (Currently only <code>action</code> is available).',
|
||||
options: [
|
||||
{
|
||||
name: 'Action',
|
||||
@@ -523,9 +466,7 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
action: [
|
||||
'open_url',
|
||||
],
|
||||
action: ['open_url'],
|
||||
},
|
||||
},
|
||||
description: 'URL to redirect',
|
||||
@@ -540,7 +481,8 @@ export const threadFields: INodeProperties[] = [
|
||||
name: 'binaryProperties',
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
description: 'Name of the property that holds the binary data. Multiple can be defined separated by comma.',
|
||||
description:
|
||||
'Name of the property that holds the binary data. Multiple can be defined separated by comma.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content',
|
||||
@@ -555,12 +497,11 @@ export const threadFields: INodeProperties[] = [
|
||||
type: 'multiOptions',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsDependsOn: [
|
||||
'workspaceId',
|
||||
],
|
||||
loadOptionsDependsOn: ['workspaceId'],
|
||||
},
|
||||
default: [],
|
||||
description: 'The users that are directly mentioned. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The users that are directly mentioned. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
|
||||
Reference in New Issue
Block a user