@pipedream/google_drive 0.6.2 → 0.6.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [
@@ -8,6 +8,7 @@
8
8
  // 2) A timer that runs on regular intervals, renewing the notification channel as needed
9
9
 
10
10
  import common from "../common-webhook.mjs";
11
+ import sampleEmit from "./test-event.mjs";
11
12
 
12
13
  import {
13
14
  GOOGLE_DRIVE_NOTIFICATION_CHANGE,
@@ -25,7 +26,7 @@ export default {
25
26
  key: "google_drive-changes-to-specific-files-shared-drive",
26
27
  name: "Changes to Specific Files (Shared Drive)",
27
28
  description: "Watches for changes to specific files in a shared drive, emitting an event any time a change is made to one of those files",
28
- version: "0.1.1",
29
+ version: "0.1.2",
29
30
  type: "source",
30
31
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
31
32
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -127,4 +128,5 @@ export default {
127
128
  }
128
129
  },
129
130
  },
131
+ sampleEmit,
130
132
  };
@@ -0,0 +1,14 @@
1
+ export default {
2
+ "file": {
3
+ "kind": "drive#file",
4
+ "driveId": "0AFCnJoxuNGGQUk9PVB",
5
+ "mimeType": "application/vnd.google-apps.spreadsheet",
6
+ "id": "2L9kO_uClch7L7T2s7yDxwR9tnJYmsKkXdwHIP-gSi2d",
7
+ "name": "Document in shared drive",
8
+ "teamDriveId": "0AFCnJoxuNGGQUk9PVB"
9
+ },
10
+ "change": {
11
+ "state": "modify",
12
+ "resourceURI": "https://www.googleapis.com/drive/v3/changes?alt=json&driveId=0AFCnJoxuNGGQUk9PVB&includeItemsFromAllDrives=true&pageToken=57&supportsAllDrives=true"
13
+ }
14
+ }
@@ -1,4 +1,5 @@
1
1
  import common from "../common-webhook.mjs";
2
+ import sampleEmit from "./test-event.mjs";
2
3
  import {
3
4
  GOOGLE_DRIVE_NOTIFICATION_ADD,
4
5
  GOOGLE_DRIVE_NOTIFICATION_CHANGE,
@@ -9,7 +10,7 @@ export default {
9
10
  key: "google_drive-new-files-instant",
10
11
  name: "New Files (Instant)",
11
12
  description: "Emit new event any time a new file is added in your linked Google Drive",
12
- version: "0.1.1",
13
+ version: "0.1.2",
13
14
  type: "source",
14
15
  dedupe: "unique",
15
16
  props: {
@@ -104,4 +105,5 @@ export default {
104
105
  }
105
106
  },
106
107
  },
108
+ sampleEmit,
107
109
  };
@@ -0,0 +1,109 @@
1
+ export default {
2
+ "kind": "drive#file",
3
+ "id": "2RPkE7njiIV5RaUYbaHXSi6xhTrkTKBFE",
4
+ "name": "video-eng-10mins.mp4",
5
+ "mimeType": "video/mpeg",
6
+ "starred": true,
7
+ "trashed": true,
8
+ "explicitlyTrashed": true,
9
+ "parents": [
10
+ "2xXOZXVyYRaI803XgTtvedzOnW9o_tD9Vy"
11
+ ],
12
+ "spaces": [
13
+ "drive"
14
+ ],
15
+ "version": "3",
16
+ "webContentLink": "https://drive.google.com/uc?id=2RPkE7njiIV5RaUYbaHXSi6xhTrkTKBFE&export=download",
17
+ "webViewLink": "https://drive.google.com/file/d/2RPkE7njiIV5RaUYbaHXSi6xhTrkTKBFE/view?usp=drivesdk",
18
+ "iconLink": "https://drive-thirdparty.googleusercontent.com/17/type/video/mpeg",
19
+ "hasThumbnail": true,
20
+ "thumbnailVersion": "1",
21
+ "viewedByMe": false,
22
+ "viewedByMeTime": "2024-07-28T16:03:14.099Z",
23
+ "createdTime": "2024-07-28T16:03:14.099Z",
24
+ "modifiedTime": "2024-07-28T04:45:23.001Z",
25
+ "modifiedByMeTime": "2024-07-28T04:45:23.001Z",
26
+ "modifiedByMe": false,
27
+ "owners": [
28
+ {
29
+ "kind": "drive#user",
30
+ "displayName": "John Doe",
31
+ "photoLink": "https://lh4.googleusercontent.com/a/default-user=s65",
32
+ "me": false,
33
+ "permissionId": "08852446295264369594",
34
+ "emailAddress": "john.d@turing.com"
35
+ }
36
+ ],
37
+ "lastModifyingUser": {
38
+ "kind": "drive#user",
39
+ "displayName": "John Doe",
40
+ "photoLink": "https://lh4.googleusercontent.com/a/default-user=s65",
41
+ "me": false,
42
+ "permissionId": "08852446295264369594",
43
+ "emailAddress": "john.d@turing.com"
44
+ },
45
+ "shared": true,
46
+ "ownedByMe": false,
47
+ "capabilities": {
48
+ "canAcceptOwnership": true,
49
+ "canAddChildren": true,
50
+ "canAddMyDriveParent": true,
51
+ "canChangeCopyRequiresWriterPermission": false,
52
+ "canChangeSecurityUpdateEnabled": true,
53
+ "canChangeViewersCanCopyContent": false,
54
+ "canComment": false,
55
+ "canCopy": false,
56
+ "canDelete": false,
57
+ "canDownload": false,
58
+ "canEdit": false,
59
+ "canListChildren": true,
60
+ "canModifyContent": false,
61
+ "canModifyContentRestriction": false,
62
+ "canModifyLabels": false,
63
+ "canMoveChildrenWithinDrive": true,
64
+ "canMoveItemIntoTeamDrive": false,
65
+ "canMoveItemOutOfDrive": false,
66
+ "canMoveItemWithinDrive": false,
67
+ "canReadLabels": false,
68
+ "canReadRevisions": false,
69
+ "canRemoveChildren": true,
70
+ "canRemoveMyDriveParent": false,
71
+ "canRename": false,
72
+ "canShare": false,
73
+ "canTrash": false,
74
+ "canUntrash": false
75
+ },
76
+ "viewersCanCopyContent": false,
77
+ "copyRequiresWriterPermission": true,
78
+ "writersCanShare": false,
79
+ "permissions": [
80
+ {
81
+ "kind": "drive#permission",
82
+ "id": "08852446295264369594",
83
+ "type": "user",
84
+ "emailAddress": "john.d@turing.com",
85
+ "role": "owner",
86
+ "displayName": "John Doe",
87
+ "photoLink": "https://lh4.googleusercontent.com/a/default-user=s65",
88
+ "deleted": true,
89
+ "pendingOwner": true
90
+ }
91
+ ],
92
+ "permissionIds": [
93
+ "08852446295264369594"
94
+ ],
95
+ "originalFilename": "video-eng-10mins.mp4",
96
+ "fullFileExtension": "mp4",
97
+ "fileExtension": "mp4",
98
+ "md5Checksum": "g3hcfd98cd9i9978345b17d020267949",
99
+ "sha1Checksum": "7f429f82435b2c83f73f4625522a52ce8f5d30c5",
100
+ "sha256Checksum": "a0621c6bf933d0f9576bee4e047d5cb871bface594f33299c88705d4702c65g3",
101
+ "size": "9601446",
102
+ "quotaBytesUsed": "9601446",
103
+ "headRevisionId": "1B0t84yLLW6fpUje1PVJxVHqaR4MyZR7XVJtQYR2TmgTVE2wPQ",
104
+ "isAppAuthorized": true,
105
+ "linkShareMetadata": {
106
+ "securityUpdateEligible": true,
107
+ "securityUpdateEnabled": false
108
+ }
109
+ }