From f31eac73b4657217bd645570eb71d746588ee4f4 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 17 Nov 2025 13:41:33 -0500 Subject: [PATCH 1/3] support shared drives --- .../create-document-from-template.mjs | 24 ++++++++++++++++++- components/google_docs/package.json | 4 ++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs b/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs index 7d20c47721d96..484094b544c44 100644 --- a/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs +++ b/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs @@ -13,20 +13,42 @@ export default { ...others, key: "google_docs-create-document-from-template", name: "Create New Document From Template", - version: "0.0.6", + version: "0.0.7", description, type, props: { googleDrive: app, ...props, + drive: { + propDefinition: [ + app, + "watchedDrive", + ], + optional: true, + }, templateId: { propDefinition: [ app, "docId", + (c) => ({ + driveId: c.drive, + }), ], label: "Template", description: "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}}`.", }, + folderId: { + propDefinition: [ + app, + "folderId", + (c) => ({ + drive: c.drive, + }), + ], + description: + "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.", + optional: true, + }, }, }; diff --git a/components/google_docs/package.json b/components/google_docs/package.json index 0f0ddef623818..a4c3571b4d34c 100644 --- a/components/google_docs/package.json +++ b/components/google_docs/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/google_docs", - "version": "0.6.1", + "version": "0.6.2", "description": "Pipedream Google_docs Components", "main": "google_docs.app.mjs", "keywords": [ @@ -14,7 +14,7 @@ }, "dependencies": { "@googleapis/docs": "^3.3.0", - "@pipedream/google_drive": "^1.1.1", + "@pipedream/google_drive": "^1.3.1", "markdown-it": "^14.1.0" } } From 382459d6f356311fe2308e549a0be556d964d55b Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 17 Nov 2025 13:42:10 -0500 Subject: [PATCH 2/3] pnpm-lock.yaml --- pnpm-lock.yaml | 91 ++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 371fdcebb630f..a1d6e51d503f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -996,8 +996,7 @@ importers: components/apex_27: {} - components/api2convert: - specifiers: {} + components/api2convert: {} components/api2pdf: {} @@ -2704,8 +2703,7 @@ importers: components/chmeetings: {} - components/chroma_cloud: - specifiers: {} + components/chroma_cloud: {} components/chucknorris: dependencies: @@ -2955,8 +2953,7 @@ importers: specifier: ^3.1.0 version: 3.1.1 - components/clockodo: - specifiers: {} + components/clockodo: {} components/clockwork_recruiting: dependencies: @@ -5203,8 +5200,7 @@ importers: components/fingertip: {} - components/finlight_me: - specifiers: {} + components/finlight_me: {} components/finmei: dependencies: @@ -5526,8 +5522,7 @@ importers: specifier: ^3.0.0 version: 3.0.0 - components/fraudlogix: - specifiers: {} + components/fraudlogix: {} components/freeagent: dependencies: @@ -5926,8 +5921,7 @@ importers: components/glide: {} - components/global_exchange_rates: - specifiers: {} + components/global_exchange_rates: {} components/globalping: {} @@ -6191,8 +6185,8 @@ importers: specifier: ^3.3.0 version: 3.4.0 '@pipedream/google_drive': - specifier: ^1.1.1 - version: 1.2.0 + specifier: ^1.3.1 + version: 1.3.1 markdown-it: specifier: ^14.1.0 version: 14.1.0 @@ -7937,8 +7931,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/kualitee: - specifiers: {} + components/kualitee: {} components/kucoin_futures: dependencies: @@ -9582,8 +9575,7 @@ importers: specifier: ^8.3.2 version: 8.3.2 - components/mythictext: - specifiers: {} + components/mythictext: {} components/n1n: {} @@ -11682,8 +11674,7 @@ importers: specifier: ^1.6.8 version: 1.6.8 - components/profileapi: - specifiers: {} + components/profileapi: {} components/profitwell: dependencies: @@ -11848,8 +11839,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/qase: - specifiers: {} + components/qase: {} components/qdrant: dependencies: @@ -12257,8 +12247,7 @@ importers: specifier: ^1.6.8 version: 1.6.8 - components/release0: - specifiers: {} + components/release0: {} components/relevance_ai: dependencies: @@ -12759,8 +12748,7 @@ importers: components/sage_accounting: {} - components/sage_crm: - specifiers: {} + components/sage_crm: {} components/sage_intacct: {} @@ -13604,8 +13592,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/signatureapi: - specifiers: {} + components/signatureapi: {} components/signaturely: dependencies: @@ -14014,8 +14001,7 @@ importers: specifier: ^1.6.8 version: 1.6.8 - components/socialkit: - specifiers: {} + components/socialkit: {} components/softledger: {} @@ -14568,8 +14554,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/swidoc: - specifiers: {} + components/swidoc: {} components/swiftype: {} @@ -14861,8 +14846,7 @@ importers: specifier: ^2.29.4 version: 2.30.1 - components/testrail: - specifiers: {} + components/testrail: {} components/tettra: dependencies: @@ -15196,8 +15180,7 @@ importers: specifier: ^0.1.4 version: 0.1.4 - components/toolhouse: - specifiers: {} + components/toolhouse: {} components/topdesk: dependencies: @@ -15223,8 +15206,7 @@ importers: specifier: ^1.6.8 version: 1.6.8 - components/trackabi: - specifiers: {} + components/trackabi: {} components/trackingtime: dependencies: @@ -15414,11 +15396,9 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/turtlink: - specifiers: {} + components/turtlink: {} - components/tuskr: - specifiers: {} + components/tuskr: {} components/tutor_lms: {} @@ -16211,8 +16191,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 - components/webcrawler_api: - specifiers: {} + components/webcrawler_api: {} components/webflow: dependencies: @@ -20591,6 +20570,9 @@ packages: '@pipedream/google_drive@1.2.0': resolution: {integrity: sha512-SOv35Ye7YZ+qVscpo/T9dPqUGS3P0HZxUdNjJYXYj28cZX6l/tVcGa9LdUcpJaN6N8y6mTSwkF1fdGroBxjp6A==} + '@pipedream/google_drive@1.3.1': + resolution: {integrity: sha512-+6qq3lb4rfB8S48dSmgOPa/qJTtI80d8QFnoTiMOAtLsPGNtZjVB0ZJakKUqEWsdhm1GU9AW/YpbjBs93bXBNA==} + '@pipedream/helper_functions@0.3.13': resolution: {integrity: sha512-67zXT5rMccSYEeQCEKjO0g/U2Wnc3q1ErRWt0sivqJEF/KYqAb3tWmznDYGACbC8L6ML0WWSWRy7nEGt5Vyuaw==} @@ -31441,17 +31423,17 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net supports-color@10.2.2: resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} @@ -38305,6 +38287,21 @@ snapshots: - encoding - supports-color + '@pipedream/google_drive@1.3.1': + dependencies: + '@googleapis/drive': 2.4.0 + '@pipedream/platform': 3.1.1 + cron-parser: 4.9.0 + google-docs-mustaches: 1.2.2 + got: 13.0.0 + lodash: 4.17.21 + mime-db: 1.54.0 + uuid: 8.3.2 + transitivePeerDependencies: + - debug + - encoding + - supports-color + '@pipedream/helper_functions@0.3.13': dependencies: '@pipedream/platform': 1.6.8 From 623a127f326e92324202f77eaa655498cfc5ea0d Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Tue, 18 Nov 2025 12:22:10 -0500 Subject: [PATCH 3/3] update --- .../create-document-from-template.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs b/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs index 484094b544c44..182b11c5f3e04 100644 --- a/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs +++ b/components/google_docs/actions/create-document-from-template/create-document-from-template.mjs @@ -31,7 +31,7 @@ export default { app, "docId", (c) => ({ - driveId: c.drive, + driveId: app.methods.getDriveId(c.drive), }), ], label: "Template",