2020-10-22 02:36:42 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-10-22 02:36:42 -07:00
|
|
|
} 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';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-10-22 02:36:42 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-10-22 02:36:42 -07:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|