Skip to content

Commit 3e554fd

Browse files
authored
Merge pull request #9 from mendableai/feature-google-drive
Add Folders to Google Drive Data Connector
2 parents 68e1408 + c91de8a commit 3e554fd

File tree

7 files changed

+105
-8586
lines changed

7 files changed

+105
-8586
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ This repository contains a collection of data connectors built by [Mendable AI](
2424
## Available Connectors
2525

2626
The following connectors are currently available:
27-
- ✅ Text
2827
- ✅ Files (.md, .txt, .pdf, .csv)
28+
- ✅ GitHub (Private and Public repos)
29+
- ✅ Google Drive
30+
- ✅ Text
2931
- ✅ Web Scraper (single urls, sitemap)
3032
- ✅ Zendesk
31-
- ✅ GitHub (Private and Public repos)
32-
- 🔄 Google Drive (In progress)
3333
- 🔄 Confluence (In progress)
34+
- 🔄 Jira (In progress)
35+
- 🔄 Notion (In progress)
36+
- 🔄 YouTube (In progress)
3437

3538
We are working hard on transitioning all of our connectors to this repository. If you need a connector that is not available here, please open an issue or submit a PR.
3639

example.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ GOOGLE_DRIVE_CLIENT_SECRET=<>
33
GOOGLE_DRIVE_REDIRECT_URI=<>
44
NANGO_SECRET_KEY=<>
55
SCRAPING_BEE_API_KEY=<>
6-
NANGO_CONNECTION_ID_TEST=<>
6+
NANGO_CONNECTION_ID_TEST=<>
7+
NANGO_CONNECTION_ID_GOOGLE_DRIVE_TEST=<>

package-lock.json

Lines changed: 0 additions & 8485 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"devDependencies": {
4444
"@babel/preset-env": "^7.23.8",
4545
"@babel/preset-typescript": "^7.23.3",
46+
"@types/dotenv": "^8.2.0",
4647
"@types/jest": "^29.5.11",
4748
"@types/pdf-parse": "^1.1.4",
4849
"@types/xml2js": "^0.4.14",

pnpm-lock.yaml

Lines changed: 9 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__tests__/providers/GoogleDrive/index.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { createDataConnector } from "../../../DataConnector";
22
import dotenv from "dotenv";
33
dotenv.config();
44

5-
65
test('Google Drive Provider Testing', async () => {
76
const googleDriveDataConnector = createDataConnector({
87
provider: 'google-drive',
98
});
109

1110
await googleDriveDataConnector.authorizeNango({
12-
nango_connection_id: process.env.NANGO_CONNECTION_ID_TEST,
13-
})
11+
nango_connection_id: process.env.NANGO_CONNECTION_ID_GOOGLE_DRIVE_TEST,
12+
});
1413

1514
const documents = await googleDriveDataConnector.getDocuments(); // { type: "accounts" }
1615
expect(documents.length).toBeGreaterThan(0);
@@ -21,4 +20,4 @@ test('Google Drive Provider Testing', async () => {
2120
expect(documents[0].metadata).not.toBe(null);
2221
expect(documents[0].metadata.sourceURL).not.toBe(null);
2322
expect(documents[0].metadata.mimeType).not.toBe(null);
24-
}, 30 * 1000); // 10 seconds
23+
}, 20 * 1000); // 20 seconds

0 commit comments

Comments
 (0)