From ad91b897fa1caeab55ef87c2c24dd05f6404a244 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Tue, 1 Jul 2025 12:02:13 -0400 Subject: [PATCH 1/2] add preview prop --- .../actions/create-document/create-document.mjs | 13 ++++++++++--- components/documint/package.json | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/documint/actions/create-document/create-document.mjs b/components/documint/actions/create-document/create-document.mjs index 93c13991d7dde..bb2852cd95f7a 100644 --- a/components/documint/actions/create-document/create-document.mjs +++ b/components/documint/actions/create-document/create-document.mjs @@ -2,7 +2,7 @@ import app from "../../documint.app.mjs"; export default { name: "Create Document", - version: "0.0.1", + version: "0.0.2", key: "documint-create-document", description: "Create a document. [See the documentation](https://documenter.getpostman.com/view/11741160/TVK5cLxQ#032798a4-6eb6-43cd-9c1b-9ba313f7d39c)", type: "action", @@ -19,6 +19,13 @@ export default { description: "Variables to merge with template. E.g. `{ \"company\": \"Pipedream\" }`", type: "object", }, + preview: { + type: "boolean", + label: "Preview", + description: "Set to `false` to create the document without a watermark", + optional: true, + default: true, + }, }, async run({ $ }) { const variables = typeof this.variables === "string" @@ -30,7 +37,7 @@ export default { templateId: this.templateId, params: { active: true, - preview: true, + preview: this.preview, }, data: { ...variables, @@ -38,7 +45,7 @@ export default { }); if (response) { - $.export("$summary", `Successfully created document with ID \`${response.id}\``); + $.export("$summary", `Successfully created document with ID \`${response._id}\``); } return response; diff --git a/components/documint/package.json b/components/documint/package.json index edf3612c890ae..7fc3246fc31ab 100644 --- a/components/documint/package.json +++ b/components/documint/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/documint", - "version": "0.1.0", + "version": "0.1.1", "description": "Pipedream Documint Components", "main": "documint.app.mjs", "keywords": [ @@ -13,6 +13,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^1.5.1" + "@pipedream/platform": "^3.1.0" } } From eb786002452b6a60ab9f9ae3646f85a12cb43e0a Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Tue, 1 Jul 2025 12:02:50 -0400 Subject: [PATCH 2/2] pnpm-lock.yaml --- pnpm-lock.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca0a6e13fd61f..c7168c42f3e70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3749,8 +3749,8 @@ importers: components/documint: dependencies: '@pipedream/platform': - specifier: ^1.5.1 - version: 1.6.6 + specifier: ^3.1.0 + version: 3.1.0 components/docupilot: dependencies: @@ -29612,22 +29612,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) + 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 supports-color@2.0.0: resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==}