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 bookmarkOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -38,9 +36,7 @@ export const bookmarkOperations: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -54,15 +50,12 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
displayName: 'Collection Name or ID',
|
||||
name: 'collectionId',
|
||||
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>',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -79,12 +72,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
description: 'Link of the bookmark to be created',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -96,12 +85,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -117,7 +102,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
name: 'order',
|
||||
type: 'number',
|
||||
default: 0,
|
||||
description: 'Sort order for the bookmark. For example, to move it to first place, enter 0.',
|
||||
description:
|
||||
'Sort order for the bookmark. For example, to move it to first place, enter 0.',
|
||||
},
|
||||
{
|
||||
displayName: 'Parse Metadata',
|
||||
@@ -155,12 +141,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
description: 'The ID of the bookmark to delete',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -177,12 +159,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
description: 'The ID of the bookmark to retrieve',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -199,15 +177,12 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
},
|
||||
default: [],
|
||||
required: true,
|
||||
description: 'The ID of the collection from which to retrieve all bookmarks. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The ID of the collection from which to retrieve all bookmarks. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -217,12 +192,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -234,15 +205,9 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -265,12 +230,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
description: 'The ID of the bookmark to update',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -282,12 +243,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'bookmark',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['bookmark'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -295,7 +252,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
displayName: 'Collection Name or ID',
|
||||
name: 'collectionId',
|
||||
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: 'getCollections',
|
||||
},
|
||||
@@ -313,7 +271,8 @@ export const bookmarkFields: INodeProperties[] = [
|
||||
name: 'order',
|
||||
type: 'number',
|
||||
default: 0,
|
||||
description: 'For example if you want to move bookmark to the first place set this field to 0',
|
||||
description:
|
||||
'For example if you want to move bookmark to the first place set this field to 0',
|
||||
},
|
||||
{
|
||||
displayName: 'Parse Metadata',
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const collectionOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -38,9 +36,7 @@ export const collectionOperations: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
resource: ['collection'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -59,12 +55,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
description: 'Title of the collection to create',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -76,12 +68,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -104,14 +92,15 @@ export const collectionFields: INodeProperties[] = [
|
||||
name: 'parentId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'ID of this collection\'s parent collection, if it is a child collection',
|
||||
description: "ID of this collection's parent collection, if it is a child collection",
|
||||
},
|
||||
{
|
||||
displayName: 'Sort Order',
|
||||
name: 'sort',
|
||||
type: 'number',
|
||||
default: 1,
|
||||
description: 'Descending sort order of this collection. The number is the position of the collection among all the collections with the same parent ID.',
|
||||
description:
|
||||
'Descending sort order of this collection. The number is the position of the collection among all the collections with the same parent ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'View',
|
||||
@@ -153,12 +142,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
description: 'The ID of the collection to delete',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -175,12 +160,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
description: 'The ID of the collection to retrieve',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -196,12 +177,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
default: 'parent',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -223,12 +200,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -240,15 +213,9 @@ export const collectionFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -271,12 +238,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
description: 'The ID of the collection to update',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -288,12 +251,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'collection',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['collection'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -303,7 +262,8 @@ export const collectionFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
placeholder: '',
|
||||
description: 'Name of the binary property containing the data for the image to upload as a cover',
|
||||
description:
|
||||
'Name of the binary property containing the data for the image to upload as a cover',
|
||||
},
|
||||
{
|
||||
displayName: 'Public',
|
||||
@@ -317,14 +277,15 @@ export const collectionFields: INodeProperties[] = [
|
||||
name: 'parentId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'ID of this collection\'s parent collection, if it is a child collection',
|
||||
description: "ID of this collection's parent collection, if it is a child collection",
|
||||
},
|
||||
{
|
||||
displayName: 'Sort Order',
|
||||
name: 'sort',
|
||||
type: 'number',
|
||||
default: 1,
|
||||
description: 'Descending sort order of this collection. The number is the position of the collection among all the collections with the same parent ID.',
|
||||
description:
|
||||
'Descending sort order of this collection. The number is the position of the collection among all the collections with the same parent ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const tagOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -23,9 +21,7 @@ export const tagOperations: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
resource: ['tag'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -43,15 +39,12 @@ export const tagFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['tag'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
description: 'One or more tags to delete. Enter comma-separated values to delete multiple tags.',
|
||||
description:
|
||||
'One or more tags to delete. Enter comma-separated values to delete multiple tags.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -61,12 +54,8 @@ export const tagFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
],
|
||||
resource: ['tag'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -78,7 +67,8 @@ export const tagFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getCollections',
|
||||
},
|
||||
default: '',
|
||||
description: 'It\'s possible to restrict remove action to just one collection. It\'s optional. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'It\'s possible to restrict remove action to just one collection. It\'s optional. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -91,12 +81,8 @@ export const tagFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['tag'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -108,15 +94,9 @@ export const tagFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['tag'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -134,12 +114,8 @@ export const tagFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'tag',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['tag'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -147,7 +123,8 @@ export const tagFields: INodeProperties[] = [
|
||||
displayName: 'Collection Name or ID',
|
||||
name: 'collectionId',
|
||||
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: 'getCollections',
|
||||
},
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const userOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -18,9 +16,7 @@ export const userOperations: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
resource: ['user'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -39,12 +35,8 @@ export const userFields: INodeProperties[] = [
|
||||
description: 'Whether to return details on the logged-in user',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -57,15 +49,9 @@ export const userFields: INodeProperties[] = [
|
||||
description: 'The ID of the user to retrieve',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
self: [
|
||||
false,
|
||||
],
|
||||
resource: ['user'],
|
||||
operation: ['get'],
|
||||
self: [false],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user