-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (Google Sheets Trigger Node): Trigger for Google Sheets
- Loading branch information
1 parent
ce1f4ef
commit e839a81
Showing
9 changed files
with
934 additions
and
8 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/nodes-base/credentials/GoogleSheetsTriggerOAuth2Api.credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(' '), | ||
}, | ||
]; | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/nodes-base/nodes/Google/Sheet/GoogleSheetsTrigger.node.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"node": "n8n-nodes-base.googleSheetsTrigger", | ||
"nodeVersion": "1.0", | ||
"codexVersion": "1.0", | ||
"categories": ["Data & Storage", "Productivity"], | ||
"resources": { | ||
"credentialDocumentation": [ | ||
{ | ||
"url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/" | ||
} | ||
], | ||
"primaryDocumentation": [ | ||
{ | ||
"url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.googlesheetstrigger/" | ||
} | ||
], | ||
"generic": [] | ||
}, | ||
"alias": ["CSV", "Spreadsheet", "GS"] | ||
} |
Oops, something went wrong.