@pipedream/google_drive 0.6.7 → 0.6.9
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/README.md +6 -0
- package/actions/list-files/list-files.mjs +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,3 +8,9 @@ Using the Google Drive API, you can build applications that:
|
|
|
8
8
|
- Search for files
|
|
9
9
|
- Track changes to files
|
|
10
10
|
- And much more!
|
|
11
|
+
|
|
12
|
+
## Troubleshooting
|
|
13
|
+
|
|
14
|
+
[Google Advanced Protection Program](https://support.google.com/accounts/answer/7539956?hl=en) must be disabled in order to use the Google Drive app on Pipedream.
|
|
15
|
+
|
|
16
|
+
If you encounter the error "Google cannot give this app access to your account data because Advanced Protection is turned on for your Google Account", you will need to disable this setting as it blocks third-party apps from accessing Google Drive.
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "google_drive-list-files",
|
|
6
6
|
name: "List Files",
|
|
7
7
|
description: "List files from a specific folder. [See the docs](https://developers.google.com/drive/api/v3/reference/files/list) for more information",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
googleDrive,
|
|
@@ -40,6 +40,12 @@ export default {
|
|
|
40
40
|
type: "string",
|
|
41
41
|
optional: true,
|
|
42
42
|
},
|
|
43
|
+
trashed: {
|
|
44
|
+
label: "Trashed",
|
|
45
|
+
type: "boolean",
|
|
46
|
+
description: "List trashed files or non-trashed files. Keep it empty to include both.",
|
|
47
|
+
optional: true,
|
|
48
|
+
},
|
|
43
49
|
},
|
|
44
50
|
async run({ $ }) {
|
|
45
51
|
const opts = getListFilesOpts(this.drive, {
|
|
@@ -53,6 +59,11 @@ export default {
|
|
|
53
59
|
? " AND "
|
|
54
60
|
: ""}name contains '${this.filterText}'`;
|
|
55
61
|
}
|
|
62
|
+
if (typeof this.trashed !== "undefined") {
|
|
63
|
+
opts.q += `${opts.q
|
|
64
|
+
? " AND "
|
|
65
|
+
: ""}trashed=${this.trashed}`;
|
|
66
|
+
}
|
|
56
67
|
if (this.fields) {
|
|
57
68
|
opts.fields = this.fields;
|
|
58
69
|
}
|