Add Cloud Natural Language node (#1181)

*  Add Cloud Natural Language node

* ⬆️ Set google-fonts-webpack-plugin to latest version

* 🐛 Rename method composite to compose

*  Improvements to Google Cloud Natural Language Node

Improvements to #1171

Co-authored-by: Tanay Pant <tanaypant@protonmail.com>
This commit is contained in:
Ricardo Espinoza
2020-11-19 03:04:20 -05:00
committed by GitHub
parent 79ccf6a2e9
commit cbc1b7f2a3
7 changed files with 436 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/cloud-language',
'https://www.googleapis.com/auth/cloud-platform',
];
export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType {
name = 'googleCloudNaturalLanguageOAuth2Api';
extends = [
'googleOAuth2Api',
];
displayName = 'Google Cloud Natural Language OAuth2 API';
documentationUrl = 'google';
properties = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
];
}