Skip to content

Commit b5e83dc

Browse files
authored
Google Docs - Create File From Template - support templates in shared drives (#19109)
* support shared drives * pnpm-lock.yaml * update
1 parent f2d854b commit b5e83dc

File tree

3 files changed

+48
-8
lines changed

3 files changed

+48
-8
lines changed

components/google_docs/actions/create-document-from-template/create-document-from-template.mjs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,42 @@ export default {
1313
...others,
1414
key: "google_docs-create-document-from-template",
1515
name: "Create New Document From Template",
16-
version: "0.0.6",
16+
version: "0.0.7",
1717
description,
1818
type,
1919
props: {
2020
googleDrive: app,
2121
...props,
22+
drive: {
23+
propDefinition: [
24+
app,
25+
"watchedDrive",
26+
],
27+
optional: true,
28+
},
2229
templateId: {
2330
propDefinition: [
2431
app,
2532
"docId",
33+
(c) => ({
34+
driveId: app.methods.getDriveId(c.drive),
35+
}),
2636
],
2737
label: "Template",
2838
description:
2939
"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}}`.",
3040
},
41+
folderId: {
42+
propDefinition: [
43+
app,
44+
"folderId",
45+
(c) => ({
46+
drive: c.drive,
47+
}),
48+
],
49+
description:
50+
"Select the folder of the newly created Google Doc and/or PDF, or use a custom expression to reference a folder ID from a previous step.",
51+
optional: true,
52+
},
3153
},
3254
};

components/google_docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/google_docs",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"description": "Pipedream Google_docs Components",
55
"main": "google_docs.app.mjs",
66
"keywords": [
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@googleapis/docs": "^3.3.0",
17-
"@pipedream/google_drive": "^1.1.1",
17+
"@pipedream/google_drive": "^1.3.1",
1818
"markdown-it": "^14.1.0"
1919
}
2020
}

pnpm-lock.yaml

Lines changed: 23 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)