mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Google Docs node (#1831)
* ✨ 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>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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(' '),
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user