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,10 +1,6 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
const resource = [
|
||||
'user',
|
||||
];
|
||||
const resource = ['user'];
|
||||
|
||||
export const userOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -58,11 +54,9 @@ export const userOperations: INodeProperties[] = [
|
||||
],
|
||||
default: 'me',
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
export const userFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -74,9 +68,7 @@ export const userFields: INodeProperties[] = [
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource,
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -89,12 +81,8 @@ export const userFields: INodeProperties[] = [
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource,
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -113,9 +101,7 @@ export const userFields: INodeProperties[] = [
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource,
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -157,9 +143,7 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -177,9 +161,7 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
operation: ['delete'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -195,9 +177,7 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -211,9 +191,7 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -228,9 +206,7 @@ export const userFields: INodeProperties[] = [
|
||||
placeholder: 'name@email.com',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -245,9 +221,7 @@ export const userFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -272,7 +246,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'can_see_rates',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.',
|
||||
description:
|
||||
'Whether the user can see billable rates on projects. Only applicable to Project Managers.',
|
||||
},
|
||||
{
|
||||
displayName: 'Cost Rate',
|
||||
@@ -282,7 +257,8 @@ export const userFields: INodeProperties[] = [
|
||||
minValue: 0,
|
||||
},
|
||||
default: 0,
|
||||
description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount',
|
||||
description:
|
||||
'The cost rate to use for this user when calculating a project’s costs vs billable amount',
|
||||
},
|
||||
{
|
||||
displayName: 'Default Hourly Rate',
|
||||
@@ -339,7 +315,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-url-missing-protocol
|
||||
description: 'The user’s timezone. Defaults to the company’s timezone. See a list of <a href="/api-v2/introduction/overview/supported-timezones/">supported time zones</a>.',
|
||||
description:
|
||||
'The user’s timezone. Defaults to the company’s timezone. See a list of <a href="/api-v2/introduction/overview/supported-timezones/">supported time zones</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Weekly Capacity',
|
||||
@@ -349,7 +326,8 @@ export const userFields: INodeProperties[] = [
|
||||
minValue: 0,
|
||||
},
|
||||
default: 126000,
|
||||
description: 'The number of hours per week this person is available to work in seconds. Defaults to <code class="language-plaintext highlighter-rouge">126000</code> seconds (35 hours).',
|
||||
description:
|
||||
'The number of hours per week this person is available to work in seconds. Defaults to <code class="language-plaintext highlighter-rouge">126000</code> seconds (35 hours).',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -365,9 +343,7 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -380,9 +356,7 @@ export const userFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource,
|
||||
},
|
||||
},
|
||||
@@ -407,7 +381,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'can_see_rates',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.',
|
||||
description:
|
||||
'Whether the user can see billable rates on projects. Only applicable to Project Managers.',
|
||||
},
|
||||
{
|
||||
displayName: 'Cost Rate',
|
||||
@@ -417,7 +392,8 @@ export const userFields: INodeProperties[] = [
|
||||
minValue: 0,
|
||||
},
|
||||
default: 0,
|
||||
description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount',
|
||||
description:
|
||||
'The cost rate to use for this user when calculating a project’s costs vs billable amount',
|
||||
},
|
||||
{
|
||||
displayName: 'Default Hourly Rate',
|
||||
@@ -496,7 +472,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-url-missing-protocol
|
||||
description: 'The user’s timezone. Defaults to the company’s timezone. See a list of <a href="/api-v2/introduction/overview/supported-timezones/">supported time zones</a>.',
|
||||
description:
|
||||
'The user’s timezone. Defaults to the company’s timezone. See a list of <a href="/api-v2/introduction/overview/supported-timezones/">supported time zones</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Weekly Capacity',
|
||||
@@ -506,9 +483,9 @@ export const userFields: INodeProperties[] = [
|
||||
minValue: 0,
|
||||
},
|
||||
default: 126000,
|
||||
description: 'The number of hours per week this person is available to work in seconds. Defaults to <code class="language-plaintext highlighter-rouge">126000</code> seconds (35 hours).',
|
||||
description:
|
||||
'The number of hours per week this person is available to work in seconds. Defaults to <code class="language-plaintext highlighter-rouge">126000</code> seconds (35 hours).',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user