mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 07:04:06 -08:00
26 lines
503 B
TypeScript
26 lines
503 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
const scopes = [
|
|
'https://www.googleapis.com/auth/cloud-translation',
|
|
];
|
|
|
|
export class GoogleTranslateOAuth2Api implements ICredentialType {
|
|
name = 'googleTranslateOAuth2Api';
|
|
extends = [
|
|
'googleOAuth2Api',
|
|
];
|
|
displayName = 'Google Translate OAuth2 API';
|
|
documentationUrl = 'google';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden',
|
|
default: scopes.join(' '),
|
|
},
|
|
];
|
|
}
|