2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-06-15 15:47:44 -07:00
|
|
|
|
2022-07-24 08:36:17 -07:00
|
|
|
const scopes = ['https://www.googleapis.com/auth/tasks'];
|
2020-06-15 15:47:44 -07:00
|
|
|
|
|
|
|
export class GoogleTasksOAuth2Api implements ICredentialType {
|
|
|
|
name = 'googleTasksOAuth2Api';
|
|
|
|
extends = ['googleOAuth2Api'];
|
|
|
|
displayName = 'Google Tasks OAuth2 API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'google';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-06-15 15:47:44 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: scopes.join(' '),
|
2020-06-17 14:15:54 -07:00
|
|
|
},
|
2020-06-15 15:47:44 -07:00
|
|
|
];
|
|
|
|
}
|