@pipedream/google_drive 0.6.16 → 0.6.17

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 documentation](https://developers.google.com/drive/api/v3/reference/files/list) for more information",
8
- version: "0.1.4",
8
+ version: "0.1.5",
9
9
  type: "action",
10
10
  props: {
11
11
  googleDrive,
@@ -39,6 +39,7 @@ export default {
39
39
  description: "Filter by file name that contains a specific text",
40
40
  type: "string",
41
41
  optional: true,
42
+ reloadProps: true,
42
43
  },
43
44
  trashed: {
44
45
  label: "Trashed",
@@ -47,6 +48,22 @@ export default {
47
48
  optional: true,
48
49
  },
49
50
  },
51
+ async additionalProps() {
52
+ const props = {};
53
+ if (this.filterText) {
54
+ props.filterType = {
55
+ type: "string",
56
+ label: "Filter Type",
57
+ description: "Whether to return files with names containing the Filter Text or files with names that match the Filter Text exactly. Defaults to \"CONTAINS\"",
58
+ options: [
59
+ "CONTAINS",
60
+ "EXACT MATCH",
61
+ ],
62
+ default: "CONTAINS",
63
+ };
64
+ }
65
+ return props;
66
+ },
50
67
  async run({ $ }) {
51
68
  const opts = getListFilesOpts(this.drive, {
52
69
  q: "",
@@ -57,7 +74,9 @@ export default {
57
74
  if (this.filterText) {
58
75
  opts.q += `${opts.q
59
76
  ? " AND "
60
- : ""}name contains '${this.filterText}'`;
77
+ : ""}name ${this.filterType === "CONTAINS"
78
+ ? "contains"
79
+ : "="} '${this.filterText}'`;
61
80
  }
62
81
  if (typeof this.trashed !== "undefined") {
63
82
  opts.q += `${opts.q
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [