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:
@@ -8,9 +8,7 @@ export const customerOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -50,9 +48,9 @@ export const customerOperations: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export const customerFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Resolve Data',
|
||||
name: 'resolveData',
|
||||
@@ -60,16 +58,13 @@ export const customerFields: INodeProperties[] = [
|
||||
default: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
|
||||
description: 'By default the response only contain the ID to resource. If this option gets activated, it will resolve the data automatically.',
|
||||
description:
|
||||
'By default the response only contain the ID to resource. If this option gets activated, it will resolve the data automatically.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -79,12 +74,8 @@ export const customerFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -103,7 +94,8 @@ export const customerFields: INodeProperties[] = [
|
||||
name: 'firstName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'First name of the customer. When defined it must be between 1 and 40 characters.',
|
||||
description:
|
||||
'First name of the customer. When defined it must be between 1 and 40 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Gender',
|
||||
@@ -178,12 +170,8 @@ export const customerFields: INodeProperties[] = [
|
||||
type: 'fixedCollection',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -220,7 +208,8 @@ export const customerFields: INodeProperties[] = [
|
||||
displayName: 'Country Name or ID',
|
||||
name: 'country',
|
||||
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: 'getCountriesCodes',
|
||||
},
|
||||
@@ -246,12 +235,8 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -326,12 +311,8 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -382,12 +363,8 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -446,12 +423,8 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -538,12 +511,8 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -563,21 +532,17 @@ export const customerFields: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -589,15 +554,9 @@ export const customerFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['customer'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -614,12 +573,8 @@ export const customerFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['customer'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -700,13 +655,14 @@ export const customerFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'Advanced search <a href="https://developer.helpscout.com/mailbox-api/endpoints/customers/list/#query">Examples</a>',
|
||||
description:
|
||||
'Advanced search <a href="https://developer.helpscout.com/mailbox-api/endpoints/customers/list/#query">Examples</a>',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Customer ID',
|
||||
name: 'customerId',
|
||||
@@ -715,18 +671,14 @@ export const customerFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['customer'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customer:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Customer ID',
|
||||
name: 'customerId',
|
||||
@@ -734,12 +686,8 @@ export const customerFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -751,12 +699,8 @@ export const customerFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'customer',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['customer'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -775,7 +719,8 @@ export const customerFields: INodeProperties[] = [
|
||||
name: 'firstName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'First name of the customer. When defined it must be between 1 and 40 characters.',
|
||||
description:
|
||||
'First name of the customer. When defined it must be between 1 and 40 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Gender',
|
||||
|
||||
Reference in New Issue
Block a user