mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
2ec52cf207
* ✨ Add Google Docs node * Implement continueOnFail * Add insert:Table and insert/delete:TableRow,TableColumn * Lint fixes * Fix typos, casing and enhance code readability * Enhance code readability & apply review changes * ⚡ Review Google Docs node * Apply review changes * Minor fix * Improvements * Clean up * Enhance inputs descriptions * Removed unused type fields * Minor fix * ⚡ Small improvements * ⚡ Small change * Use Document URL insead of ID and support adding content at creation * Refactored node to make it more user friendly * Improve get operation * Add simple output to get operation * Add service account * Apply review suggestions * Improvements * Enable continueOnFail * ⚡ Minor improvements Co-authored-by: dali <servfrdali@yahoo.fr> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
28 lines
573 B
TypeScript
28 lines
573 B
TypeScript
import {
|
|
ICredentialType,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
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';
|
|
extends = [
|
|
'googleOAuth2Api',
|
|
];
|
|
displayName = 'Google Docs OAuth2 API';
|
|
documentationUrl = 'google';
|
|
properties = [
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: scopes.join(' '),
|
|
},
|
|
];
|
|
}
|