mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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 userOpeations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -50,7 +48,6 @@ export const userOpeations: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export const userFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -61,12 +58,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -82,12 +75,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -99,15 +88,9 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -125,12 +108,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -166,7 +145,6 @@ export const userFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -176,12 +154,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -209,12 +183,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
description: 'View by value',
|
||||
@@ -229,12 +199,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -253,7 +219,6 @@ export const userFields: INodeProperties[] = [
|
||||
value: 'userId',
|
||||
description: 'Automatically generated identifier for the user',
|
||||
},
|
||||
|
||||
],
|
||||
default: 'id',
|
||||
description: 'The property via which to query the user',
|
||||
@@ -266,12 +231,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
description: 'Value of the property to identify the user to update',
|
||||
@@ -286,24 +247,22 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'User ID',
|
||||
value: 'userId',
|
||||
description: 'A unique string identifier for the user. It is required on creation if an email is not supplied.',
|
||||
description:
|
||||
'A unique string identifier for the user. It is required on creation if an email is not supplied.',
|
||||
},
|
||||
{
|
||||
name: 'Email',
|
||||
value: 'email',
|
||||
description: 'The user\'s email address. It is required on creation if a user_id is not supplied.',
|
||||
description:
|
||||
"The user's email address. It is required on creation if a user_id is not supplied.",
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
@@ -317,12 +276,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
description: 'Unique string identifier value',
|
||||
@@ -334,13 +289,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: false,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create', 'update'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -352,13 +302,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create', 'update'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -377,24 +322,19 @@ export const userFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getCompanies',
|
||||
},
|
||||
default: [],
|
||||
description: 'Identifies the companies this user belongs to. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Identifies the companies this user belongs to. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/operation': [
|
||||
'update',
|
||||
],
|
||||
'/resource': [
|
||||
'user',
|
||||
],
|
||||
'/operation': ['update'],
|
||||
'/resource': ['user'],
|
||||
},
|
||||
hide: {
|
||||
'/updateBy': [
|
||||
'email',
|
||||
],
|
||||
'/updateBy': ['email'],
|
||||
},
|
||||
},
|
||||
type: 'string',
|
||||
@@ -430,18 +370,11 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'userId',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/operation': [
|
||||
'update',
|
||||
],
|
||||
'/resource': [
|
||||
'user',
|
||||
],
|
||||
'/operation': ['update'],
|
||||
'/resource': ['user'],
|
||||
},
|
||||
hide: {
|
||||
'/updateBy': [
|
||||
'email',
|
||||
'userId',
|
||||
],
|
||||
'/updateBy': ['email', 'userId'],
|
||||
},
|
||||
},
|
||||
type: 'string',
|
||||
@@ -462,7 +395,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
options: [],
|
||||
description: 'Whether to instruct Intercom to update the users last_request_at value to the current API service time in UTC',
|
||||
description:
|
||||
'Whether to instruct Intercom to update the users last_request_at value to the current API service time in UTC',
|
||||
},
|
||||
{
|
||||
displayName: 'UTM Campaign',
|
||||
@@ -510,20 +444,14 @@ export const userFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
jsonParameters: [
|
||||
true,
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['create', 'update'],
|
||||
jsonParameters: [true],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'A hash of key/value pairs to represent custom data you want to attribute to a user',
|
||||
description:
|
||||
'A hash of key/value pairs to represent custom data you want to attribute to a user',
|
||||
},
|
||||
{
|
||||
displayName: 'Custom Attributes',
|
||||
@@ -536,16 +464,9 @@ export const userFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
],
|
||||
jsonParameters: [
|
||||
false,
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['create', 'update'],
|
||||
jsonParameters: [false],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -568,6 +489,7 @@ export const userFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
],
|
||||
description: 'A hash of key/value pairs to represent custom data you want to attribute to a user',
|
||||
description:
|
||||
'A hash of key/value pairs to represent custom data you want to attribute to a user',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user