@pipedream/google_drive 1.12.0 → 1.12.1

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.
@@ -156,6 +156,15 @@ export default {
156
156
  optional: true,
157
157
  default: false,
158
158
  },
159
+ changesPageSize: {
160
+ type: "integer",
161
+ label: "Changes Page Size",
162
+ description: "Maximum number of changes to fetch per API call (1-1000). Lower values reduce memory usage and the risk of execution timeouts or out-of-memory errors on active drives.",
163
+ min: 1,
164
+ max: 1000,
165
+ default: 100,
166
+ optional: true,
167
+ },
159
168
  filePath: {
160
169
  type: "string",
161
170
  label: "File Path or URL",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [
@@ -14,7 +14,7 @@ export default {
14
14
  key: "google_drive-changes-to-files-in-drive",
15
15
  name: "Changes to Files in Drive",
16
16
  description: "Emit new event when a change is made to one of the specified files. [See the documentation](https://developers.google.com/drive/api/v3/reference/changes/watch)",
17
- version: "0.0.10",
17
+ version: "0.0.11",
18
18
  type: "source",
19
19
  dedupe: "unique",
20
20
  props: {
@@ -132,8 +132,6 @@ export default {
132
132
  },
133
133
  async processChanges(changedFiles, headers) {
134
134
  console.log(`Processing ${changedFiles.length} changed files`);
135
- console.log(`Changed files: ${JSON.stringify(changedFiles, null, 2)}!!!`);
136
- console.log(`Files: ${this.files}!!!`);
137
135
 
138
136
  const filteredFiles = this.checkMinimumInterval(changedFiles);
139
137
  for (const file of filteredFiles) {
@@ -29,7 +29,7 @@ export default {
29
29
  key: "google_drive-changes-to-specific-files-shared-drive",
30
30
  name: "Changes to Specific Files (Shared Drive)",
31
31
  description: "Watches for changes to specific files in a shared drive, emitting an event when a change is made to one of those files",
32
- version: "0.3.10",
32
+ version: "0.3.11",
33
33
  type: "source",
34
34
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
35
35
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -137,8 +137,6 @@ export default {
137
137
  },
138
138
  async processChanges(changedFiles, headers) {
139
139
  console.log(`Processing ${changedFiles.length} changed files`);
140
- console.log(`Changed files: ${JSON.stringify(changedFiles, null, 2)}!!!`);
141
- console.log(`Files: ${this.files}!!!`);
142
140
 
143
141
  const filteredFiles = this.checkMinimumInterval(changedFiles);
144
142
  for (const file of filteredFiles) {
@@ -33,11 +33,10 @@ export default {
33
33
  hidden: true,
34
34
  },
35
35
  changesPageSize: {
36
- type: "integer",
37
- label: "Changes Page Size",
38
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
39
- default: 1000,
40
- optional: true,
36
+ propDefinition: [
37
+ googleDrive,
38
+ "changesPageSize",
39
+ ],
41
40
  },
42
41
  },
43
42
  hooks: {
@@ -11,7 +11,7 @@ export default {
11
11
  key: "google_drive-new-files-instant",
12
12
  name: "New Files (Instant)",
13
13
  description: "Emit new event when a new file is added in your linked Google Drive",
14
- version: "0.2.10",
14
+ version: "0.2.11",
15
15
  type: "source",
16
16
  dedupe: "unique",
17
17
  props: {
@@ -8,7 +8,7 @@ export default {
8
8
  key: "google_drive-new-files-instant-polling",
9
9
  name: "New Files (Polling)",
10
10
  description: "Emit new event when a new file is added in your linked Google Drive",
11
- version: "0.0.8",
11
+ version: "0.0.9",
12
12
  type: "source",
13
13
  dedupe: "unique",
14
14
  props: {
@@ -46,11 +46,10 @@ export default {
46
46
  default: [],
47
47
  },
48
48
  changesPageSize: {
49
- type: "integer",
50
- label: "Changes Page Size",
51
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
52
- default: 1000,
53
- optional: true,
49
+ propDefinition: [
50
+ googleDrive,
51
+ "changesPageSize",
52
+ ],
54
53
  },
55
54
  },
56
55
  hooks: {
@@ -151,7 +150,6 @@ export default {
151
150
  this.googleDrive.listChanges(pageToken, driveId, this.changesPageSize);
152
151
 
153
152
  for await (const changedFilesPage of changedFilesStream) {
154
- console.log("Changed files page:", changedFilesPage);
155
153
  const {
156
154
  changedFiles,
157
155
  nextPageToken,
@@ -7,7 +7,7 @@ export default {
7
7
  key: "google_drive-new-files-shared-drive",
8
8
  name: "New Files (Shared Drive)",
9
9
  description: "Emit new event when a new file is added in your shared Google Drive",
10
- version: "0.1.10",
10
+ version: "0.1.11",
11
11
  type: "source",
12
12
  dedupe: "unique",
13
13
  props: {
@@ -50,11 +50,10 @@ export default {
50
50
  optional: true,
51
51
  },
52
52
  changesPageSize: {
53
- type: "integer",
54
- label: "Changes Page Size",
55
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
56
- default: 1000,
57
- optional: true,
53
+ propDefinition: [
54
+ googleDrive,
55
+ "changesPageSize",
56
+ ],
58
57
  },
59
58
  },
60
59
  hooks: {
@@ -18,7 +18,7 @@ export default {
18
18
  name: "New or Modified Comments (Instant)",
19
19
  description:
20
20
  "Emit new event when a comment is created or modified in the selected file",
21
- version: "1.0.19",
21
+ version: "1.0.20",
22
22
  type: "source",
23
23
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
24
24
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -26,7 +26,7 @@ export default {
26
26
  key: "google_drive-new-or-modified-files",
27
27
  name: "New or Modified Files (Instant)",
28
28
  description: "Emit new event when a file in the selected Drive is created, modified or trashed.",
29
- version: "0.4.10",
29
+ version: "0.4.11",
30
30
  type: "source",
31
31
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
32
32
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -155,8 +155,6 @@ export default {
155
155
  fields: "parents",
156
156
  })).parents;
157
157
 
158
- console.log(file); // see what file was processed
159
-
160
158
  if (!this.shouldProcess(file)) {
161
159
  console.log(`Skipping file ${file.name}`);
162
160
  continue;
@@ -9,7 +9,7 @@ export default {
9
9
  key: "google_drive-new-or-modified-files-polling",
10
10
  name: "New or Modified Files (Polling)",
11
11
  description: "Emit new event when a file in the selected Drive is created, modified or trashed. [See the documentation](https://developers.google.com/drive/api/v3/reference/changes/list)",
12
- version: "0.0.10",
12
+ version: "0.0.11",
13
13
  type: "source",
14
14
  dedupe: "unique",
15
15
  props: {
@@ -67,11 +67,10 @@ export default {
67
67
  optional: true,
68
68
  },
69
69
  changesPageSize: {
70
- type: "integer",
71
- label: "Changes Page Size",
72
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
73
- default: 1000,
74
- optional: true,
70
+ propDefinition: [
71
+ googleDrive,
72
+ "changesPageSize",
73
+ ],
75
74
  },
76
75
  },
77
76
  hooks: {
@@ -189,7 +188,6 @@ export default {
189
188
  this.googleDrive.listChanges(pageToken, driveId, this.changesPageSize);
190
189
 
191
190
  for await (const changedFilesPage of changedFilesStream) {
192
- console.log("Changed files page:", changedFilesPage);
193
191
  const {
194
192
  changedFiles,
195
193
  nextPageToken,
@@ -21,7 +21,7 @@ export default {
21
21
  key: "google_drive-new-or-modified-folders",
22
22
  name: "New or Modified Folders (Instant)",
23
23
  description: "Emit new event when a folder is created or modified in the selected Drive",
24
- version: "0.2.13",
24
+ version: "0.2.14",
25
25
  type: "source",
26
26
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
27
27
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
@@ -12,7 +12,7 @@ export default {
12
12
  key: "google_drive-new-or-modified-folders-polling",
13
13
  name: "New or Modified Folders (Polling)",
14
14
  description: "Emit new event when a folder is created or modified in the selected Drive",
15
- version: "0.0.9",
15
+ version: "0.0.10",
16
16
  type: "source",
17
17
  dedupe: "unique",
18
18
  props: {
@@ -51,11 +51,10 @@ export default {
51
51
  optional: true,
52
52
  },
53
53
  changesPageSize: {
54
- type: "integer",
55
- label: "Changes Page Size",
56
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
57
- default: 1000,
58
- optional: true,
54
+ propDefinition: [
55
+ googleDrive,
56
+ "changesPageSize",
57
+ ],
59
58
  },
60
59
  },
61
60
  hooks: {
@@ -192,7 +191,6 @@ export default {
192
191
  this.googleDrive.listChanges(pageToken, driveId, this.changesPageSize);
193
192
 
194
193
  for await (const changedFilesPage of changedFilesStream) {
195
- console.log("Changed files page:", changedFilesPage);
196
194
  const {
197
195
  changedFiles,
198
196
  nextPageToken,
@@ -8,7 +8,7 @@ export default {
8
8
  key: "google_drive-new-spreadsheet-polling",
9
9
  name: "New Spreadsheet (Polling)",
10
10
  description: "Emit new event when a new spreadsheet is created in a drive.",
11
- version: "0.0.8",
11
+ version: "0.0.9",
12
12
  type: "source",
13
13
  dedupe: "unique",
14
14
  props: {
@@ -45,11 +45,10 @@ export default {
45
45
  optional: true,
46
46
  },
47
47
  changesPageSize: {
48
- type: "integer",
49
- label: "Changes Page Size",
50
- description: "Maximum number of changes to fetch per API call. Lower values reduce the risk of execution timeouts on active drives.",
51
- default: 1000,
52
- optional: true,
48
+ propDefinition: [
49
+ googleDrive,
50
+ "changesPageSize",
51
+ ],
53
52
  },
54
53
  },
55
54
  hooks: {
@@ -149,7 +148,6 @@ export default {
149
148
  this.googleDrive.listChanges(pageToken, driveId, this.changesPageSize);
150
149
 
151
150
  for await (const changedFilesPage of changedFilesStream) {
152
- console.log("Changed files page:", changedFilesPage);
153
151
  const {
154
152
  changedFiles,
155
153
  nextPageToken,