@pipedream/google_drive 0.4.4 → 0.4.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.
@@ -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.0.1",
8
+ version: "0.0.2",
9
9
  type: "action",
10
10
  props: {
11
11
  googleDrive,
@@ -34,12 +34,25 @@ export default {
34
34
  description: "The paths of the fields you want included in the response. If not specified, the response includes a default set of fields specific to this method. For development you can use the special value `*` to return all fields, but you'll achieve greater performance by only selecting the fields you need.\n\n**eg:** `files(id,mimeType,name,webContentLink,webViewLink)`",
35
35
  optional: true,
36
36
  },
37
+ filterText: {
38
+ label: "Filter Text",
39
+ description: "Filter by file name that contains a specific text",
40
+ type: "string",
41
+ optional: true,
42
+ },
37
43
  },
38
44
  async run({ $ }) {
39
- const opts = getListFilesOpts(this.drive);
45
+ const opts = getListFilesOpts(this.drive, {
46
+ q: "",
47
+ });
40
48
  if (this.folderId) {
41
49
  opts.q = `"${this.folderId}" in parents`;
42
50
  }
51
+ if (this.filterText) {
52
+ opts.q += `${opts.q
53
+ ? " AND "
54
+ : ""}name contains '${this.filterText}'`;
55
+ }
43
56
  if (this.fields) {
44
57
  opts.fields = this.fields;
45
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [
@@ -4,7 +4,7 @@ export default {
4
4
  key: "google_drive-new-shared-drive",
5
5
  name: "New Shared Drive",
6
6
  description: "Emits a new event any time a shared drive is created.",
7
- version: "0.0.9",
7
+ version: "0.0.10",
8
8
  type: "source",
9
9
  dedupe: "unique",
10
10
  props: {
@@ -15,7 +15,7 @@ export default {
15
15
  description: "Interval to poll the Google Drive API for new shared drives",
16
16
  type: "$.interface.timer",
17
17
  default: {
18
- intervalSeconds: 60 * 15, // 30 minutes
18
+ intervalSeconds: 15 * 60, // 30 minutes
19
19
  },
20
20
  },
21
21
  },