@pipedream/google_drive 1.4.0 → 1.4.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.
@@ -9,7 +9,7 @@ export default {
9
9
  key: "google_drive-create-file-from-template",
10
10
  name: "Create New File From Template",
11
11
  description: "Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. [See documentation](https://www.npmjs.com/package/google-docs-mustaches)",
12
- version: "0.1.17",
12
+ version: "0.1.18",
13
13
  annotations: {
14
14
  destructiveHint: true,
15
15
  openWorldHint: true,
@@ -23,6 +23,7 @@ export default {
23
23
  googleDrive,
24
24
  "watchedDrive",
25
25
  ],
26
+ label: "Drive Containing Template",
26
27
  optional: true,
27
28
  },
28
29
  templateId: {
@@ -36,12 +37,20 @@ export default {
36
37
  description:
37
38
  "Select the template document you'd like to use as the template, or use a custom expression to reference a document ID from a previous step. Template documents should contain placeholders in the format `{{xyz}}`.",
38
39
  },
40
+ destinationDrive: {
41
+ propDefinition: [
42
+ googleDrive,
43
+ "watchedDrive",
44
+ ],
45
+ label: "Destination Drive",
46
+ optional: true,
47
+ },
39
48
  folderId: {
40
49
  propDefinition: [
41
50
  googleDrive,
42
51
  "folderId",
43
52
  (c) => ({
44
- drive: c.drive,
53
+ drive: c.destinationDrive,
45
54
  }),
46
55
  ],
47
56
  description:
@@ -79,7 +88,7 @@ export default {
79
88
  mode: this.mode,
80
89
  };
81
90
 
82
- const isSharedDrive = this.drive && this.drive !== "My Drive";
91
+ const isSharedDrive = this.destinationDrive && this.destinationDrive !== "My Drive";
83
92
 
84
93
  const client = new Mustaches.default({
85
94
  token: () => this.googleDrive.$auth.oauth_access_token,
@@ -147,7 +156,7 @@ export default {
147
156
  await this.googleDrive.updateFile(googleDocId, {
148
157
  fields: "*",
149
158
  removeParents: file.parents.join(","),
150
- addParents: this.folderId || this.drive,
159
+ addParents: this.folderId || this.destinationDrive,
151
160
  supportsAllDrives: true,
152
161
  });
153
162
  }
@@ -157,7 +166,7 @@ export default {
157
166
  await this.googleDrive.updateFile(pdfId, {
158
167
  fields: "*",
159
168
  removeParents: pdf.parents.join(","),
160
- addParents: this.folderId || this.drive,
169
+ addParents: this.folderId || this.destinationDrive,
161
170
  supportsAllDrives: true,
162
171
  });
163
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_drive",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Pipedream Google_drive Components",
5
5
  "main": "google_drive.app.mjs",
6
6
  "keywords": [