feat: (Google Sheets Trigger Node): Trigger for Google Sheets

This commit is contained in:
Michael Kret
2023-01-17 15:21:16 +02:00
committed by GitHub
parent ce1f4efea7
commit e839a81cc5
9 changed files with 934 additions and 8 deletions

View File

@@ -0,0 +1,27 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/spreadsheets',
'https://www.googleapis.com/auth/drive.metadata',
];
export class GoogleSheetsTriggerOAuth2Api implements ICredentialType {
name = 'googleSheetsTriggerOAuth2Api';
extends = ['googleOAuth2Api'];
displayName = 'Google Sheets Trigger OAuth2 API';
documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: scopes.join(' '),
},
];
}