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,22 +1,10 @@
import { IExecuteFunctions } from 'n8n-core';
import {
IExecuteFunctions,
} from 'n8n-core';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { IData } from './Interface';
import {
IData,
} from './Interface';
import {
googleApiRequest,
} from './GenericFunctions';
import { googleApiRequest } from './GenericFunctions';
export class GoogleCloudNaturalLanguage implements INodeType {
description: INodeTypeDescription = {
@@ -60,9 +48,7 @@ export class GoogleCloudNaturalLanguage implements INodeType {
noDataExpression: true,
displayOptions: {
show: {
resource: [
'document',
],
resource: ['document'],
},
},
options: [
@@ -92,13 +78,12 @@ export class GoogleCloudNaturalLanguage implements INodeType {
},
],
default: 'content',
description: 'The source of the document: a string containing the content or a Google Cloud Storage URI',
description:
'The source of the document: a string containing the content or a Google Cloud Storage URI',
required: true,
displayOptions: {
show: {
operation: [
'analyzeSentiment',
],
operation: ['analyzeSentiment'],
},
},
},
@@ -107,16 +92,13 @@ export class GoogleCloudNaturalLanguage implements INodeType {
name: 'content',
type: 'string',
default: '',
description: 'The content of the input in string format. Cloud audit logging exempt since it is based on user data.',
description:
'The content of the input in string format. Cloud audit logging exempt since it is based on user data.',
required: true,
displayOptions: {
show: {
operation: [
'analyzeSentiment',
],
source: [
'content',
],
operation: ['analyzeSentiment'],
source: ['content'],
},
},
},
@@ -125,16 +107,13 @@ export class GoogleCloudNaturalLanguage implements INodeType {
name: 'gcsContentUri',
type: 'string',
default: '',
description: 'The Google Cloud Storage URI where the file content is located. This URI must be of the form: <code>gs://bucket_name/object_name</code>. For more details, see <a href="https://cloud.google.com/storage/docs/reference-uris.">reference</a>.',
description:
'The Google Cloud Storage URI where the file content is located. This URI must be of the form: <code>gs://bucket_name/object_name</code>. For more details, see <a href="https://cloud.google.com/storage/docs/reference-uris.">reference</a>.',
required: true,
displayOptions: {
show: {
operation: [
'analyzeSentiment',
],
source: [
'gcsContentUri',
],
operation: ['analyzeSentiment'],
source: ['gcsContentUri'],
},
},
},
@@ -144,9 +123,7 @@ export class GoogleCloudNaturalLanguage implements INodeType {
type: 'collection',
displayOptions: {
show: {
operation: [
'analyzeSentiment',
],
operation: ['analyzeSentiment'],
},
},
default: {},
@@ -266,7 +243,8 @@ export class GoogleCloudNaturalLanguage implements INodeType {
],
default: 'en',
placeholder: '',
description: 'The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.',
description:
'The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.',
},
],
},
@@ -306,7 +284,12 @@ export class GoogleCloudNaturalLanguage implements INodeType {
body.document.language = options.language as string;
}
const response = await googleApiRequest.call(this, 'POST', `/v1/documents:analyzeSentiment`, body);
const response = await googleApiRequest.call(
this,
'POST',
`/v1/documents:analyzeSentiment`,
body,
);
responseData.push(response);
}
}