2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-06-27 02:48:24 -07:00
|
|
|
|
|
|
|
const scopes = [
|
|
|
|
'https://www.googleapis.com/auth/documents',
|
|
|
|
'https://www.googleapis.com/auth/drive',
|
|
|
|
'https://www.googleapis.com/auth/drive.file',
|
|
|
|
];
|
|
|
|
|
|
|
|
export class GoogleDocsOAuth2Api implements ICredentialType {
|
|
|
|
name = 'googleDocsOAuth2Api';
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['googleOAuth2Api'];
|
2021-06-27 02:48:24 -07:00
|
|
|
displayName = 'Google Docs OAuth2 API';
|
|
|
|
documentationUrl = 'google';
|
2021-10-07 14:07:56 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-06-27 02:48:24 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'hidden',
|
2021-06-27 02:48:24 -07:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|