2023-01-27 14:22:44 +03:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-04-05 13:29:26 +03:00
|
|
|
|
|
|
|
const scopes = [
|
|
|
|
'https://www.googleapis.com/auth/drive.file',
|
|
|
|
'https://www.googleapis.com/auth/presentations',
|
|
|
|
];
|
|
|
|
|
|
|
|
export class GoogleSlidesOAuth2Api implements ICredentialType {
|
|
|
|
name = 'googleSlidesOAuth2Api';
|
2022-12-02 23:54:28 +03:00
|
|
|
|
2022-07-24 18:36:17 +03:00
|
|
|
extends = ['googleOAuth2Api'];
|
2022-12-02 23:54:28 +03:00
|
|
|
|
2021-04-05 13:29:26 +03:00
|
|
|
displayName = 'Google Slides OAuth2 API';
|
2022-12-02 23:54:28 +03:00
|
|
|
|
2022-10-20 18:52:03 +03:00
|
|
|
documentationUrl = 'google/oauth-single-service';
|
2022-12-02 23:54:28 +03:00
|
|
|
|
2021-06-12 19:39:55 +03:00
|
|
|
properties: INodeProperties[] = [
|
2021-04-05 13:29:26 +03:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 19:39:55 +03:00
|
|
|
type: 'hidden',
|
2021-04-05 13:29:26 +03:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|