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:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const userOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const userOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -62,12 +58,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -79,12 +71,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -99,34 +87,28 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.',
|
||||
description:
|
||||
'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Domain Name or ID',
|
||||
name: 'domain',
|
||||
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: 'getDomains',
|
||||
},
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -137,16 +119,13 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The username that will be set to the user. Example: If you domain is example.com and you set the username to jhon then the user\'s final email address will be jhon@example.com.',
|
||||
description:
|
||||
"The username that will be set to the user. Example: If you domain is example.com and you set the username to jhon then the user's final email address will be jhon@example.com.",
|
||||
},
|
||||
{
|
||||
displayName: 'Make Admin',
|
||||
@@ -155,12 +134,8 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -174,12 +149,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['create'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -310,7 +281,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'primary',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this is the user\'s primary phone number. A user may only have one primary phone number.',
|
||||
description:
|
||||
"Whether this is the user's primary phone number. A user may only have one primary phone number.",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -373,16 +345,13 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['delete'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The value can be the user\'s primary email address, alias email address, or unique user ID',
|
||||
description:
|
||||
"The value can be the user's primary email address, alias email address, or unique user ID",
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:get */
|
||||
@@ -394,16 +363,13 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The value can be the user\'s primary email address, alias email address, or unique user ID',
|
||||
description:
|
||||
"The value can be the user's primary email address, alias email address, or unique user ID",
|
||||
},
|
||||
{
|
||||
displayName: 'Projection',
|
||||
@@ -429,12 +395,8 @@ export const userFields: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: 'basic',
|
||||
@@ -448,12 +410,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -463,16 +421,15 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'multiOptions',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/projection': [
|
||||
'custom',
|
||||
],
|
||||
'/projection': ['custom'],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getSchemas',
|
||||
},
|
||||
default: [],
|
||||
description: 'A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'View Type',
|
||||
@@ -482,16 +439,19 @@ export const userFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Admin View',
|
||||
value: 'admin_view',
|
||||
description: 'Results include both administrator-only and domain-public fields for the user',
|
||||
description:
|
||||
'Results include both administrator-only and domain-public fields for the user',
|
||||
},
|
||||
{
|
||||
name: 'Descending',
|
||||
value: 'DESCENDING',
|
||||
description: 'Results only include fields for the user that are publicly visible to other users in the domain',
|
||||
description:
|
||||
'Results only include fields for the user that are publicly visible to other users in the domain',
|
||||
},
|
||||
],
|
||||
default: 'admin_view',
|
||||
description: 'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
|
||||
description:
|
||||
'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -504,12 +464,8 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -521,15 +477,9 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['user'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -563,12 +513,8 @@ export const userFields: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: 'basic',
|
||||
@@ -582,12 +528,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -597,23 +539,23 @@ export const userFields: INodeProperties[] = [
|
||||
type: 'multiOptions',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/projection': [
|
||||
'custom',
|
||||
],
|
||||
'/projection': ['custom'],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getSchemas',
|
||||
},
|
||||
default: [],
|
||||
description: 'A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Customer',
|
||||
name: 'customer',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The unique ID for the customer\'s G Suite account. In case of a multi-domain account, to fetch all groups for a customer, fill this field instead of domain.',
|
||||
description:
|
||||
"The unique ID for the customer's G Suite account. In case of a multi-domain account, to fetch all groups for a customer, fill this field instead of domain.",
|
||||
},
|
||||
{
|
||||
displayName: 'Domain',
|
||||
@@ -648,7 +590,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'query',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Free text search terms to find users that match these terms in any field, except for extended properties. For more information on constructing user queries, see <a href="https://developers.google.com/admin-sdk/directory/v1/guides/search-users">Search for Users</a>.',
|
||||
description:
|
||||
'Free text search terms to find users that match these terms in any field, except for extended properties. For more information on constructing user queries, see <a href="https://developers.google.com/admin-sdk/directory/v1/guides/search-users">Search for Users</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Show Deleted',
|
||||
@@ -682,16 +625,19 @@ export const userFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Admin View',
|
||||
value: 'admin_view',
|
||||
description: 'Results include both administrator-only and domain-public fields for the user',
|
||||
description:
|
||||
'Results include both administrator-only and domain-public fields for the user',
|
||||
},
|
||||
{
|
||||
name: 'Descending',
|
||||
value: 'DESCENDING',
|
||||
description: 'Results only include fields for the user that are publicly visible to other users in the domain',
|
||||
description:
|
||||
'Results only include fields for the user that are publicly visible to other users in the domain',
|
||||
},
|
||||
],
|
||||
default: 'admin_view',
|
||||
description: 'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
|
||||
description:
|
||||
'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -705,16 +651,13 @@ export const userFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The value can be the user\'s primary email address, alias email address, or unique user ID',
|
||||
description:
|
||||
"The value can be the user's primary email address, alias email address, or unique user ID",
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
@@ -724,12 +667,8 @@ export const userFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: ['update'],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -764,7 +703,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.',
|
||||
description:
|
||||
'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.',
|
||||
},
|
||||
{
|
||||
displayName: 'Phones',
|
||||
@@ -884,7 +824,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'primary',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this is the user\'s primary phone number. A user may only have one primary phone number.',
|
||||
description:
|
||||
"Whether this is the user's primary phone number. A user may only have one primary phone number.",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -895,7 +836,8 @@ export const userFields: INodeProperties[] = [
|
||||
name: 'primaryEmail',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The user\'s primary email address. This property is required in a request to create a user account. The primaryEmail must be unique and cannot be an alias of another user.',
|
||||
description:
|
||||
"The user's primary email address. This property is required in a request to create a user account. The primaryEmail must be unique and cannot be an alias of another user.",
|
||||
},
|
||||
{
|
||||
displayName: 'Secondary Emails',
|
||||
|
||||
Reference in New Issue
Block a user