@pipedream/google_drive 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import cronParser from "cron-parser";
|
|
2
|
+
import sampleEmit from "./test-event.mjs";
|
|
2
3
|
import includes from "lodash/includes.js";
|
|
3
4
|
import { v4 as uuid } from "uuid";
|
|
4
5
|
|
|
@@ -16,7 +17,7 @@ export default {
|
|
|
16
17
|
key: "google_drive-changes-to-specific-files",
|
|
17
18
|
name: "Changes to Specific Files",
|
|
18
19
|
description: "Watches for changes to specific files, emitting an event any time a change is made to one of those files. To watch for changes to [shared drive](https://support.google.com/a/users/answer/9310351) files, use the **Changes to Specific Files (Shared Drive)** source instead.",
|
|
19
|
-
version: "0.1.
|
|
20
|
+
version: "0.1.2",
|
|
20
21
|
type: "source",
|
|
21
22
|
// Dedupe events based on the "x-goog-message-number" header for the target channel:
|
|
22
23
|
// https://developers.google.com/drive/api/v3/push#making-watch-requests
|
|
@@ -223,4 +224,5 @@ export default {
|
|
|
223
224
|
|
|
224
225
|
this.processChange(file, headers);
|
|
225
226
|
},
|
|
227
|
+
sampleEmit,
|
|
226
228
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default JSON.parse("{\n \"file\": {\n \"kind\": \"drive#file\",\n \"id\": \"1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbTmw4Pt\",\n \"name\": \"Pipedream 2213\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n },\n \"change\": {\n \"state\": \"update\",\n \"resourceURI\": \"https://www.googleapis.com/drive/v3/files/1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbTmw4P?alt=json&supportsAllDrives=true\",\n \"changed\": \"properties\"\n }\n}")
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// 2) A timer that runs on regular intervals, renewing the notification channel as needed
|
|
10
10
|
|
|
11
11
|
import common from "../common-webhook.mjs";
|
|
12
|
+
import sampleEmit from "./test-event.mjs";
|
|
12
13
|
import {
|
|
13
14
|
GOOGLE_DRIVE_NOTIFICATION_ADD,
|
|
14
15
|
GOOGLE_DRIVE_NOTIFICATION_CHANGE,
|
|
@@ -20,7 +21,7 @@ export default {
|
|
|
20
21
|
key: "google_drive-new-or-modified-files",
|
|
21
22
|
name: "New or Modified Files",
|
|
22
23
|
description: "Emit new event any time any file in your linked Google Drive is added, modified, or deleted",
|
|
23
|
-
version: "0.1.
|
|
24
|
+
version: "0.1.2",
|
|
24
25
|
type: "source",
|
|
25
26
|
// Dedupe events based on the "x-goog-message-number" header for the target channel:
|
|
26
27
|
// https://developers.google.com/drive/api/v3/push#making-watch-requests
|
|
@@ -92,4 +93,5 @@ export default {
|
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
95
|
},
|
|
96
|
+
sampleEmit,
|
|
95
97
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default JSON.parse("{\n \"file\": {\n \"kind\": \"drive#file\",\n \"copyRequiresWriterPermission\": false,\n \"writersCanShare\": true,\n \"viewedByMe\": true,\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\",\n \"exportLinks\": {\n \"application/x-vnd.oasis.opendocument.spreadsheet\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbTmw4&exportFormat=ods\",\n \"text/tab-separated-values\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaTXnViTOo&exportFormat=tsv\",\n \"application/pdf\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaBViTOo&exportFormat=pdf\",\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbOo&exportFormat=xlsx\",\n \"text/csv\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbBViTOo&exportFormat=csv\",\n \"application/zip\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-VbTmw4Pt2BViTOo&exportFormat=zip\",\n \"application/vnd.oasis.opendocument.spreadsheet\": \"https://docs.google.com/spreadsheets/export?id=1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbViTOo&exportFormat=ods\"\n },\n \"parents\": [\n \"0ANs73yKKVA\"\n ],\n \"thumbnailLink\": \"https://docs.google.com/feeds/vt?gd=true&id=1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbTmw4&v=12&s=AMedNnoAAAAAZKWjrEqscucFpYCyRCJqnd0wtBiDtXYh&sz=s220\",\n \"iconLink\": \"https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.spreadsheet\",\n \"shared\": false,\n \"lastModifyingUser\": {\n \"displayName\": \"John Doe\",\n \"kind\": \"drive#user\",\n \"me\": true,\n \"permissionId\": \"077423361841532483\",\n \"emailAddress\": \"john@doe.com\",\n \"photoLink\": \"https://lh3.googleusercontent.com/a/default-user=s64\"\n },\n \"owners\": [\n {\n \"displayName\": \"John Doe\",\n \"kind\": \"drive#user\",\n \"me\": true,\n \"permissionId\": \"07742336189483\",\n \"emailAddress\": \"john@doe.com\",\n \"photoLink\": \"https://lh3.googleusercontent.com/a/default-user=s64\"\n }\n ],\n \"webViewLink\": \"https://docs.google.com/spreadsheets/d/1LmXTIQ0wqKP7T3-l9r127MaTXn3pVbTmwTOo/edit?usp=drivesdk\",\n \"size\": \"1024\",\n \"viewersCanCopyContent\": true,\n \"permissions\": [\n {\n \"id\": \"07742336184153259483\",\n \"displayName\": \"John Doe\",\n \"type\": \"user\",\n \"kind\": \"drive#permission\",\n \"photoLink\": \"https://lh3.googleusercontent.com/a/default-user=s64\",\n \"emailAddress\": \"john@doe.com\",\n \"role\": \"owner\",\n \"deleted\": false,\n \"pendingOwner\": false\n }\n ],\n \"hasThumbnail\": true,\n \"spaces\": [\n \"drive\"\n ],\n \"id\": \"1LmXTIQ0wqKP7T3-l9r127Maw4Pt2BViTOo\",\n \"name\": \"Pipedream 2213\",\n \"starred\": false,\n \"trashed\": false,\n \"explicitlyTrashed\": false,\n \"createdTime\": \"2023-02-06T15:13:33.023Z\",\n \"modifiedTime\": \"2023-06-28T12:52:54.570Z\",\n \"modifiedByMeTime\": \"2023-06-28T12:52:54.570Z\",\n \"viewedByMeTime\": \"2023-06-29T06:30:58.441Z\",\n \"quotaBytesUsed\": \"1024\",\n \"version\": \"53\",\n \"ownedByMe\": true,\n \"isAppAuthorized\": false,\n \"capabilities\": {\n \"canChangeViewersCanCopyContent\": true,\n \"canEdit\": true,\n \"canCopy\": true,\n \"canComment\": true,\n \"canAddChildren\": false,\n \"canDelete\": true,\n \"canDownload\": true,\n \"canListChildren\": false,\n \"canRemoveChildren\": false,\n \"canRename\": true,\n \"canTrash\": true,\n \"canReadRevisions\": true,\n \"canChangeCopyRequiresWriterPermission\": true,\n \"canMoveItemIntoTeamDrive\": true,\n \"canUntrash\": true,\n \"canModifyContent\": true,\n \"canMoveItemOutOfDrive\": true,\n \"canAddMyDriveParent\": false,\n \"canRemoveMyDriveParent\": true,\n \"canMoveItemWithinDrive\": true,\n \"canShare\": true,\n \"canMoveChildrenWithinDrive\": false,\n \"canModifyContentRestriction\": true,\n \"canChangeSecurityUpdateEnabled\": false,\n \"canAcceptOwnership\": false,\n \"canReadLabels\": true,\n \"canModifyLabels\": true\n },\n \"thumbnailVersion\": \"12\",\n \"modifiedByMe\": true,\n \"permissionIds\": [\n \"07742336184153259483\"\n ],\n \"linkShareMetadata\": {\n \"securityUpdateEligible\": false,\n \"securityUpdateEnabled\": true\n }\n }\n}")
|