n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const documentOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const documentOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'document',
],
resource: ['document'],
},
},
options: [
@@ -44,7 +40,8 @@ export const documentFields: INodeProperties[] = [
displayName: 'Drive Name or ID',
name: 'driveId',
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: 'getDrives',
},
@@ -52,12 +49,8 @@ export const documentFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'document',
],
operation: ['create'],
resource: ['document'],
},
},
},
@@ -65,23 +58,18 @@ export const documentFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folderId',
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: {
loadOptionsDependsOn: [
'driveId',
],
loadOptionsDependsOn: ['driveId'],
loadOptionsMethod: 'getFolders',
},
default: '',
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'document',
],
operation: ['create'],
resource: ['document'],
},
},
},
@@ -93,12 +81,8 @@ export const documentFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'document',
],
operation: ['create'],
resource: ['document'],
},
},
},
@@ -113,12 +97,8 @@ export const documentFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'document',
],
operation: ['get'],
resource: ['document'],
},
},
default: '',
@@ -130,12 +110,8 @@ export const documentFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'document',
],
operation: ['get'],
resource: ['document'],
},
},
default: true,
@@ -152,12 +128,8 @@ export const documentFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'document',
],
operation: ['update'],
resource: ['document'],
},
},
default: '',
@@ -169,12 +141,8 @@ export const documentFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'document',
],
operation: ['update'],
resource: ['document'],
},
},
default: true,
@@ -202,12 +170,8 @@ export const documentFields: INodeProperties[] = [
},
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'document',
],
operation: ['update'],
resource: ['document'],
},
},
options: [
@@ -282,9 +246,7 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
object: [
'text',
],
object: ['text'],
},
},
description: 'The update action',
@@ -306,12 +268,7 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
object: [
'footer',
'header',
'namedRange',
'paragraphBullets',
],
object: ['footer', 'header', 'namedRange', 'paragraphBullets'],
},
},
description: 'The update action',
@@ -333,10 +290,7 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
object: [
'tableColumn',
'tableRow',
],
object: ['tableColumn', 'tableRow'],
},
},
description: 'The update action',
@@ -354,10 +308,7 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
object: [
'pageBreak',
'table',
],
object: ['pageBreak', 'table'],
},
},
description: 'The update action',
@@ -375,9 +326,7 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
object: [
'positionedObject',
],
object: ['positionedObject'],
},
},
description: 'The update action',
@@ -406,15 +355,8 @@ export const documentFields: INodeProperties[] = [
default: 'body',
displayOptions: {
show: {
object: [
'footer',
'header',
'paragraphBullets',
'namedRange',
],
action: [
'create',
],
object: ['footer', 'header', 'paragraphBullets', 'namedRange'],
action: ['create'],
},
},
},
@@ -422,24 +364,16 @@ export const documentFields: INodeProperties[] = [
displayName: 'Segment ID',
name: 'segmentId',
type: 'string',
description: 'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
description:
'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
default: '',
displayOptions: {
show: {
object: [
'footer',
'header',
'paragraphBullets',
'namedRange',
],
action: [
'create',
],
object: ['footer', 'header', 'paragraphBullets', 'namedRange'],
action: ['create'],
},
hide: {
insertSegment: [
'body',
],
insertSegment: ['body'],
},
},
},
@@ -454,13 +388,8 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'footer',
'header',
],
action: [
'create',
],
object: ['footer', 'header'],
action: ['create'],
},
},
},
@@ -473,12 +402,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'create',
],
object: ['namedRange'],
action: ['create'],
},
},
},
@@ -490,12 +415,8 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'create',
],
object: ['namedRange'],
action: ['create'],
},
},
},
@@ -507,12 +428,8 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'create',
],
object: ['namedRange'],
action: ['create'],
},
},
},
@@ -525,29 +442,28 @@ export const documentFields: INodeProperties[] = [
{
name: 'Bullet List',
value: 'BULLET_DISC_CIRCLE_SQUARE',
description: 'A bulleted list with a <code>DISC</code>, <code>CIRCLE</code> and <code>SQUARE</code> bullet glyph for the first 3 list nesting levels',
description:
'A bulleted list with a <code>DISC</code>, <code>CIRCLE</code> and <code>SQUARE</code> bullet glyph for the first 3 list nesting levels',
},
{
name: 'Checkbox List',
value: 'BULLET_CHECKBOX',
description: 'A bulleted list with CHECKBOX bullet glyphs for all list nesting levels',
description:
'A bulleted list with CHECKBOX bullet glyphs for all list nesting levels',
},
{
name: 'Numbered List',
value: 'NUMBERED_DECIMAL_NESTED',
description: 'A numbered list with <code>DECIMAL</code> numeric glyphs separated by periods, where each nesting level uses the previous nesting level\'s glyph as a prefix. For example: 1., 1.1., 2., 2.2 .',
description:
"A numbered list with <code>DECIMAL</code> numeric glyphs separated by periods, where each nesting level uses the previous nesting level's glyph as a prefix. For example: 1., 1.1., 2., 2.2 .",
},
],
description: 'The Preset pattern of bullet glyphs for list',
default: 'BULLET_DISC_CIRCLE_SQUARE',
displayOptions: {
show: {
object: [
'paragraphBullets',
],
action: [
'create',
],
object: ['paragraphBullets'],
action: ['create'],
},
},
},
@@ -556,16 +472,13 @@ export const documentFields: INodeProperties[] = [
displayName: 'Footer ID',
name: 'footerId',
type: 'string',
description: 'The ID of the footer to delete. To retrieve it, use the <code>get document</code> where you can find under <code>footers</code> attribute.',
description:
'The ID of the footer to delete. To retrieve it, use the <code>get document</code> where you can find under <code>footers</code> attribute.',
default: '',
displayOptions: {
show: {
object: [
'footer',
],
action: [
'delete',
],
object: ['footer'],
action: ['delete'],
},
},
},
@@ -574,16 +487,13 @@ export const documentFields: INodeProperties[] = [
displayName: 'Header ID',
name: 'headerId',
type: 'string',
description: 'The ID of the header to delete. To retrieve it, use the <code>get document</code> where you can find under <code>headers</code> attribute.',
description:
'The ID of the header to delete. To retrieve it, use the <code>get document</code> where you can find under <code>headers</code> attribute.',
default: '',
displayOptions: {
show: {
object: [
'header',
],
action: [
'delete',
],
object: ['header'],
action: ['delete'],
},
},
},
@@ -606,12 +516,8 @@ export const documentFields: INodeProperties[] = [
default: 'namedRangeId',
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'delete',
],
object: ['namedRange'],
action: ['delete'],
},
},
},
@@ -623,15 +529,9 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'delete',
],
namedRangeReference: [
'namedRangeId',
],
object: ['namedRange'],
action: ['delete'],
namedRangeReference: ['namedRangeId'],
},
},
},
@@ -643,15 +543,9 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'namedRange',
],
action: [
'delete',
],
namedRangeReference: [
'name',
],
object: ['namedRange'],
action: ['delete'],
namedRangeReference: ['name'],
},
},
},
@@ -661,16 +555,13 @@ export const documentFields: INodeProperties[] = [
displayName: 'Object ID',
name: 'objectId',
type: 'string',
description: 'The ID of the positioned object to delete (An object that is tied to a paragraph and positioned relative to its beginning), See the Google <a href="https://developers.google.com/docs/api/reference/rest/v1/PositionedObject">documentation</a>',
description:
'The ID of the positioned object to delete (An object that is tied to a paragraph and positioned relative to its beginning), See the Google <a href="https://developers.google.com/docs/api/reference/rest/v1/PositionedObject">documentation</a>',
default: '',
displayOptions: {
show: {
object: [
'positionedObject',
],
action: [
'delete',
],
object: ['positionedObject'],
action: ['delete'],
},
},
},
@@ -699,16 +590,8 @@ export const documentFields: INodeProperties[] = [
default: 'body',
displayOptions: {
show: {
object: [
'pageBreak',
'table',
'tableColumn',
'tableRow',
'text',
],
action: [
'insert',
],
object: ['pageBreak', 'table', 'tableColumn', 'tableRow', 'text'],
action: ['insert'],
},
},
},
@@ -716,25 +599,16 @@ export const documentFields: INodeProperties[] = [
displayName: 'Segment ID',
name: 'segmentId',
type: 'string',
description: 'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
description:
'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
default: '',
displayOptions: {
show: {
object: [
'pageBreak',
'table',
'tableColumn',
'tableRow',
'text',
],
action: [
'insert',
],
object: ['pageBreak', 'table', 'tableColumn', 'tableRow', 'text'],
action: ['insert'],
},
hide: {
insertSegment: [
'body',
],
insertSegment: ['body'],
},
},
},
@@ -747,7 +621,8 @@ export const documentFields: INodeProperties[] = [
{
name: 'At End of Specific Position',
value: 'endOfSegmentLocation',
description: 'Inserts the text at the end of a header, footer, footnote, or document body',
description:
'Inserts the text at the end of a header, footer, footnote, or document body',
},
{
name: 'At Index',
@@ -758,12 +633,8 @@ export const documentFields: INodeProperties[] = [
default: 'endOfSegmentLocation',
displayOptions: {
show: {
object: [
'pageBreak',
],
action: [
'insert',
],
object: ['pageBreak'],
action: ['insert'],
},
},
},
@@ -774,15 +645,9 @@ export const documentFields: INodeProperties[] = [
description: 'The zero-based index, relative to the beginning of the specified segment',
displayOptions: {
show: {
locationChoice: [
'location',
],
object: [
'pageBreak',
],
action: [
'insert',
],
locationChoice: ['location'],
object: ['pageBreak'],
action: ['insert'],
},
},
typeOptions: {
@@ -799,7 +664,8 @@ export const documentFields: INodeProperties[] = [
{
name: 'At End of Specific Position',
value: 'endOfSegmentLocation',
description: 'Inserts the text at the end of a header, footer, footnote, or document body',
description:
'Inserts the text at the end of a header, footer, footnote, or document body',
},
{
name: 'At Index',
@@ -810,12 +676,8 @@ export const documentFields: INodeProperties[] = [
default: 'endOfSegmentLocation',
displayOptions: {
show: {
object: [
'table',
],
action: [
'insert',
],
object: ['table'],
action: ['insert'],
},
},
},
@@ -823,18 +685,13 @@ export const documentFields: INodeProperties[] = [
displayName: 'Index',
name: 'index',
type: 'number',
description: 'The zero-based index, relative to the beginning of the specified segment (use index + 1 to refer to a table)',
description:
'The zero-based index, relative to the beginning of the specified segment (use index + 1 to refer to a table)',
displayOptions: {
show: {
locationChoice: [
'location',
],
object: [
'table',
],
action: [
'insert',
],
locationChoice: ['location'],
object: ['table'],
action: ['insert'],
},
},
default: 1,
@@ -850,12 +707,8 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'table',
],
action: [
'insert',
],
object: ['table'],
action: ['insert'],
},
},
},
@@ -867,12 +720,8 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'table',
],
action: [
'insert',
],
object: ['table'],
action: ['insert'],
},
},
},
@@ -885,7 +734,8 @@ export const documentFields: INodeProperties[] = [
{
name: 'At End of Specific Position',
value: 'endOfSegmentLocation',
description: 'Inserts the text at the end of a header, footer, footnote, or document body',
description:
'Inserts the text at the end of a header, footer, footnote, or document body',
},
{
name: 'At Index',
@@ -896,12 +746,8 @@ export const documentFields: INodeProperties[] = [
default: 'endOfSegmentLocation',
displayOptions: {
show: {
object: [
'text',
],
action: [
'insert',
],
object: ['text'],
action: ['insert'],
},
},
},
@@ -915,15 +761,9 @@ export const documentFields: INodeProperties[] = [
description: 'The zero-based index, relative to the beginning of the specified segment',
displayOptions: {
show: {
locationChoice: [
'location',
],
object: [
'text',
],
action: [
'insert',
],
locationChoice: ['location'],
object: ['text'],
action: ['insert'],
},
},
default: 1,
@@ -936,12 +776,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'text',
],
action: [
'insert',
],
object: ['text'],
action: ['insert'],
},
},
},
@@ -954,12 +790,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'text',
],
action: [
'replaceAll',
],
object: ['text'],
action: ['replaceAll'],
},
},
},
@@ -971,12 +803,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
object: [
'text',
],
action: [
'replaceAll',
],
object: ['text'],
action: ['replaceAll'],
},
},
},
@@ -988,12 +816,8 @@ export const documentFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
object: [
'text',
],
action: [
'replaceAll',
],
object: ['text'],
action: ['replaceAll'],
},
},
},
@@ -1020,14 +844,8 @@ export const documentFields: INodeProperties[] = [
default: 'body',
displayOptions: {
show: {
object: [
'paragraphBullets',
'tableColumn',
'tableRow',
],
action: [
'delete',
],
object: ['paragraphBullets', 'tableColumn', 'tableRow'],
action: ['delete'],
},
},
},
@@ -1035,23 +853,16 @@ export const documentFields: INodeProperties[] = [
displayName: 'Segment ID',
name: 'segmentId',
type: 'string',
description: 'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
description:
'The ID of the header, footer or footnote. The <code>Document → Get</code> operation lists all segment IDs (make sure you disable the <code>simple</code> toggle).',
default: '',
displayOptions: {
show: {
object: [
'paragraphBullets',
'tableColumn',
'tableRow',
],
action: [
'delete',
],
object: ['paragraphBullets', 'tableColumn', 'tableRow'],
action: ['delete'],
},
hide: {
insertSegment: [
'body',
],
insertSegment: ['body'],
},
},
},
@@ -1064,9 +875,7 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'paragraphBullets',
],
object: ['paragraphBullets'],
},
},
},
@@ -1078,9 +887,7 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'paragraphBullets',
],
object: ['paragraphBullets'],
},
},
},
@@ -1102,13 +909,8 @@ export const documentFields: INodeProperties[] = [
default: true,
displayOptions: {
show: {
object: [
'tableColumn',
'tableRow',
],
action: [
'insert',
],
object: ['tableColumn', 'tableRow'],
action: ['insert'],
},
},
},
@@ -1116,17 +918,15 @@ export const documentFields: INodeProperties[] = [
displayName: 'Index',
name: 'index',
type: 'number',
description: 'The zero-based index, relative to the beginning of the specified segment (use index + 1 to refer to a table)',
description:
'The zero-based index, relative to the beginning of the specified segment (use index + 1 to refer to a table)',
default: 1,
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
object: [
'tableColumn',
'tableRow',
],
object: ['tableColumn', 'tableRow'],
},
},
},
@@ -1138,10 +938,7 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'tableColumn',
'tableRow',
],
object: ['tableColumn', 'tableRow'],
},
},
},
@@ -1153,10 +950,7 @@ export const documentFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
object: [
'tableColumn',
'tableRow',
],
object: ['tableColumn', 'tableRow'],
},
},
},
@@ -1172,12 +966,8 @@ export const documentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'document',
],
operation: ['update'],
resource: ['document'],
},
},
options: [
@@ -1193,12 +983,14 @@ export const documentFields: INodeProperties[] = [
{
name: 'Target',
value: 'targetRevisionId',
description: 'Apply changes to the latest revision. Otherwise changes will not be processed.',
description:
'Apply changes to the latest revision. Otherwise changes will not be processed.',
},
{
name: 'Required',
value: 'requiredRevisionId',
description: 'Apply changes to the provided revision while incorporating other collaborators\' changes. This mode is used for the recent revision, Otherwise changes will not be processed.',
description:
"Apply changes to the provided revision while incorporating other collaborators' changes. This mode is used for the recent revision, Otherwise changes will not be processed.",
},
],
default: 'requiredRevisionId',