From ee977d00dbefa9960e42cf82dc4662e95adf8e51 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 10:06:21 +0300 Subject: [PATCH 01/23] Create the "List Templates" action. --- .../docugenerate/actions/list-templates.mjs | 18 +++++++ components/docugenerate/docugenerate.app.mjs | 48 +++++++++++++++++-- 2 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 components/docugenerate/actions/list-templates.mjs diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs new file mode 100644 index 0000000000000..2abde19cbcc39 --- /dev/null +++ b/components/docugenerate/actions/list-templates.mjs @@ -0,0 +1,18 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-list-templates", + name: "List Templates", + description: "Retrieves a list of all templates in your DocuGenerate account", + version: "0.0.1", + type: "action", + props: { + app, + }, + async run({ $ }) { + const response = await this.app.listTemplates($); + + $.export("$summary", `Successfully retrieved ${response.data?.length || 0} templates`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index cec28d301296f..438c3ac0f995f 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -1,11 +1,51 @@ +import { axios } from "@pipedream/platform"; + export default { type: "app", app: "docugenerate", - propDefinitions: {}, + propDefinitions: { + templateId: { + type: "string", + label: "Template ID", + description: "The ID of the template you want to use", + async options() { + const response = await this.listTemplates(); + return response.data.map(template => ({ + label: template.name, + value: template.id, + })); + }, + }, + }, methods: { - // this.$auth contains connected account data - authKeys() { - console.log(Object.keys(this.$auth)); + getBaseUrl() { + return "https://api.docugenerate.com/v1"; + }, + getHeaders() { + return { + "Authorization": `${this.$auth.api_key}`, + "Content-Type": "application/json", + }; + }, + async makeRequest({ + $ = this, + method = "GET", + path, + ...args + }) { + const config = { + method, + url: `${this.getBaseUrl()}${path}`, + headers: this.getHeaders(), + ...args, + }; + return axios($, config); + }, + async listTemplates($ = this) { + return this.makeRequest({ + $, + path: "/templates", + }); }, }, }; \ No newline at end of file From d222ea580972cdff44af16561395946237b1eacb Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 10:34:40 +0300 Subject: [PATCH 02/23] Update "List Templates" action with the correct URL. --- components/docugenerate/actions/list-templates.mjs | 3 +-- components/docugenerate/docugenerate.app.mjs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index 2abde19cbcc39..cb84ab02a4c4d 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -11,8 +11,7 @@ export default { }, async run({ $ }) { const response = await this.app.listTemplates($); - - $.export("$summary", `Successfully retrieved ${response.data?.length || 0} templates`); + console.log(response); return response; }, }; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 438c3ac0f995f..6bb76c9c01bc6 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -44,7 +44,7 @@ export default { async listTemplates($ = this) { return this.makeRequest({ $, - path: "/templates", + path: "/template", }); }, }, From 82ea93fb8e762586f4b1a885b5a76ca26ecb98c4 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 10:52:33 +0300 Subject: [PATCH 03/23] Update for the "templateId" prop. --- components/docugenerate/docugenerate.app.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 6bb76c9c01bc6..0201e6363fe79 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -10,7 +10,7 @@ export default { description: "The ID of the template you want to use", async options() { const response = await this.listTemplates(); - return response.data.map(template => ({ + return response.map(template => ({ label: template.name, value: template.id, })); From 13365febdef72ff700894debb0d6bacffefba2e0 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 11:21:00 +0300 Subject: [PATCH 04/23] Add success message with $.export("$summary") --- components/docugenerate/actions/list-templates.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index cb84ab02a4c4d..ea19c79341c19 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -4,14 +4,14 @@ export default { key: "docugenerate-list-templates", name: "List Templates", description: "Retrieves a list of all templates in your DocuGenerate account", - version: "0.0.1", + version: "0.0.3", type: "action", props: { app, }, async run({ $ }) { const response = await this.app.listTemplates($); - console.log(response); + $.export("$summary", `Successfully retrieved ${response?.length || 0} templates`); return response; }, }; \ No newline at end of file From edf128f055b14c8344937379862b878df755aad2 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 15:17:20 +0300 Subject: [PATCH 05/23] Add the "Delete Template" action. --- .../docugenerate/actions/delete-template.mjs | 24 +++++++++++++++++++ .../docugenerate/actions/get-template.mjs | 24 +++++++++++++++++++ .../docugenerate/actions/list-templates.mjs | 1 + components/docugenerate/docugenerate.app.mjs | 17 +++++++++++-- 4 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 components/docugenerate/actions/delete-template.mjs create mode 100644 components/docugenerate/actions/get-template.mjs diff --git a/components/docugenerate/actions/delete-template.mjs b/components/docugenerate/actions/delete-template.mjs new file mode 100644 index 0000000000000..1d43d19b29c25 --- /dev/null +++ b/components/docugenerate/actions/delete-template.mjs @@ -0,0 +1,24 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-delete-template", + name: "Delete Template", + description: "Deletes a specific template from your DocuGenerate account", + version: "0.0.3", + type: "action", + props: { + app, + templateId: { + propDefinition: [ + app, + "templateId", + ], + }, + }, + async run({ $ }) { + const response = await this.app.deleteTemplate($, this.templateId); + + $.export("$summary", `Successfully deleted the template ${this.templateId}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/actions/get-template.mjs b/components/docugenerate/actions/get-template.mjs new file mode 100644 index 0000000000000..2cf091d5913ee --- /dev/null +++ b/components/docugenerate/actions/get-template.mjs @@ -0,0 +1,24 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-get-template", + name: "Get Template", + description: "Retrieves a specific template from your DocuGenerate account", + version: "0.0.3", + type: "action", + props: { + app, + templateId: { + propDefinition: [ + app, + "templateId", + ], + }, + }, + async run({ $ }) { + const response = await this.app.getTemplate($, this.templateId); + + $.export("$summary", `Successfully retrieved the template ${this.templateId}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index ea19c79341c19..e6295eee89154 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -11,6 +11,7 @@ export default { }, async run({ $ }) { const response = await this.app.listTemplates($); + $.export("$summary", `Successfully retrieved ${response?.length || 0} templates`); return response; }, diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 0201e6363fe79..b44a211c72f22 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -6,8 +6,8 @@ export default { propDefinitions: { templateId: { type: "string", - label: "Template ID", - description: "The ID of the template you want to use", + label: "Template", + description: "The selected template", async options() { const response = await this.listTemplates(); return response.map(template => ({ @@ -47,5 +47,18 @@ export default { path: "/template", }); }, + async getTemplate($ = this, templateId) { + return this.makeRequest({ + $, + path: `/template/${templateId}`, + }); + }, + async deleteTemplate($ = this, templateId) { + return this.makeRequest({ + $, + method: "DELETE", + path: `/template/${templateId}`, + }); + }, }, }; \ No newline at end of file From 33b92b76715d22bcf58af1b809f12fb540def034 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 15:51:16 +0300 Subject: [PATCH 06/23] Create the "List Documents" action. --- .../docugenerate/actions/delete-template.mjs | 2 +- .../docugenerate/actions/get-template.mjs | 2 +- .../docugenerate/actions/list-documents.mjs | 24 +++++++++++++++++++ .../docugenerate/actions/list-templates.mjs | 2 +- components/docugenerate/docugenerate.app.mjs | 6 +++++ 5 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 components/docugenerate/actions/list-documents.mjs diff --git a/components/docugenerate/actions/delete-template.mjs b/components/docugenerate/actions/delete-template.mjs index 1d43d19b29c25..dbd17a8a143cc 100644 --- a/components/docugenerate/actions/delete-template.mjs +++ b/components/docugenerate/actions/delete-template.mjs @@ -3,7 +3,7 @@ import app from "../docugenerate.app.mjs"; export default { key: "docugenerate-delete-template", name: "Delete Template", - description: "Deletes a specific template from your DocuGenerate account", + description: "Deletes a specific template", version: "0.0.3", type: "action", props: { diff --git a/components/docugenerate/actions/get-template.mjs b/components/docugenerate/actions/get-template.mjs index 2cf091d5913ee..65c1c6376f198 100644 --- a/components/docugenerate/actions/get-template.mjs +++ b/components/docugenerate/actions/get-template.mjs @@ -3,7 +3,7 @@ import app from "../docugenerate.app.mjs"; export default { key: "docugenerate-get-template", name: "Get Template", - description: "Retrieves a specific template from your DocuGenerate account", + description: "Retrieves a specific template", version: "0.0.3", type: "action", props: { diff --git a/components/docugenerate/actions/list-documents.mjs b/components/docugenerate/actions/list-documents.mjs new file mode 100644 index 0000000000000..9edc316e972ce --- /dev/null +++ b/components/docugenerate/actions/list-documents.mjs @@ -0,0 +1,24 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-list-documents", + name: "List Documents", + description: "Retrieves a list of documents generated from a template", + version: "0.0.1", + type: "action", + props: { + app, + templateId: { + propDefinition: [ + app, + "templateId", + ], + }, + }, + async run({ $ }) { + const response = await this.app.listDocuments($, this.templateId); + + $.export("$summary", `Successfully retrieved ${response?.length || 0} documents`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index e6295eee89154..4098bf2991af4 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -3,7 +3,7 @@ import app from "../docugenerate.app.mjs"; export default { key: "docugenerate-list-templates", name: "List Templates", - description: "Retrieves a list of all templates in your DocuGenerate account", + description: "Retrieves a list of all templates", version: "0.0.3", type: "action", props: { diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index b44a211c72f22..5063e8bd1cf12 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -60,5 +60,11 @@ export default { path: `/template/${templateId}`, }); }, + async listDocuments($ = this, templateId) { + return this.makeRequest({ + $, + path: `/document?template_id=${templateId}`, + }); + }, }, }; \ No newline at end of file From 7dd2c3a18c03e6f7e001c7ae2742206c924b2b10 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Fri, 22 Aug 2025 16:15:35 +0300 Subject: [PATCH 07/23] Add the "Get Document" action. --- .../docugenerate/actions/get-document.mjs | 23 +++++++++++++++++++ components/docugenerate/docugenerate.app.mjs | 6 +++++ 2 files changed, 29 insertions(+) create mode 100644 components/docugenerate/actions/get-document.mjs diff --git a/components/docugenerate/actions/get-document.mjs b/components/docugenerate/actions/get-document.mjs new file mode 100644 index 0000000000000..44058225e4579 --- /dev/null +++ b/components/docugenerate/actions/get-document.mjs @@ -0,0 +1,23 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-get-document", + name: "Get Document", + description: "Retrieves a specific document", + version: "0.0.1", + type: "action", + props: { + app, + documentId: { + type: "string", + label: "Document", + description: "ID of the document", + }, + }, + async run({ $ }) { + const response = await this.app.getDocument($, this.documentId); + + $.export("$summary", `Successfully retrieved the document ${this.documentId}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 5063e8bd1cf12..abcbddd807146 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -66,5 +66,11 @@ export default { path: `/document?template_id=${templateId}`, }); }, + async getDocument($ = this, documentId) { + return this.makeRequest({ + $, + path: `/document/${documentId}`, + }); + }, }, }; \ No newline at end of file From f64d548be1a8b1ea1e3dade9a2d13136ed6ff24d Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 20:31:58 +0300 Subject: [PATCH 08/23] Update the "Get Document" action. --- components/docugenerate/actions/get-document.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/docugenerate/actions/get-document.mjs b/components/docugenerate/actions/get-document.mjs index 44058225e4579..f32883826e1ce 100644 --- a/components/docugenerate/actions/get-document.mjs +++ b/components/docugenerate/actions/get-document.mjs @@ -4,14 +4,14 @@ export default { key: "docugenerate-get-document", name: "Get Document", description: "Retrieves a specific document", - version: "0.0.1", + version: "0.0.3", type: "action", props: { app, documentId: { type: "string", label: "Document", - description: "ID of the document", + description: "The ID of the document", }, }, async run({ $ }) { From 9e7c4a2e2c9315c1c7eba438bd082c4ccdce7762 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 20:43:17 +0300 Subject: [PATCH 09/23] Add the "Update Document" action. --- .../docugenerate/actions/update-document.mjs | 30 +++++++++++++++++++ components/docugenerate/docugenerate.app.mjs | 8 +++++ 2 files changed, 38 insertions(+) create mode 100644 components/docugenerate/actions/update-document.mjs diff --git a/components/docugenerate/actions/update-document.mjs b/components/docugenerate/actions/update-document.mjs new file mode 100644 index 0000000000000..c8d3e2b7458e0 --- /dev/null +++ b/components/docugenerate/actions/update-document.mjs @@ -0,0 +1,30 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-update-document", + name: "Update Document", + description: "Updates a specific document", + version: "0.0.2", + type: "action", + props: { + app, + documentId: { + type: "string", + label: "Document", + description: "The ID of the document", + }, + name: { + type: "string", + label: "Name", + description: "The new name for the document", + }, + }, + async run({ $ }) { + const response = await this.app.updateDocument($, this.documentId, { + name: this.name + }); + + $.export("$summary", `Successfully updated the document ${this.documentId}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index abcbddd807146..903168695be15 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -72,5 +72,13 @@ export default { path: `/document/${documentId}`, }); }, + async updateDocument($ = this, documentId, body) { + return this.makeRequest({ + $, + method: "PUT", + path: `/document/${documentId}`, + data: body, + }); + }, }, }; \ No newline at end of file From 8f23625ad81bd6d2eecdc2063ed8dd0c662ff6a8 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 20:50:38 +0300 Subject: [PATCH 10/23] Add the "Delete Document" action. --- .../docugenerate/actions/delete-document.mjs | 23 +++++++++++++++++++ components/docugenerate/docugenerate.app.mjs | 7 ++++++ 2 files changed, 30 insertions(+) create mode 100644 components/docugenerate/actions/delete-document.mjs diff --git a/components/docugenerate/actions/delete-document.mjs b/components/docugenerate/actions/delete-document.mjs new file mode 100644 index 0000000000000..01d61a772350a --- /dev/null +++ b/components/docugenerate/actions/delete-document.mjs @@ -0,0 +1,23 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-delete-document", + name: "Delete Document", + description: "Deletes a specific document", + version: "0.0.1", + type: "action", + props: { + app, + documentId: { + type: "string", + label: "Document", + description: "The ID of the document", + }, + }, + async run({ $ }) { + const response = await this.app.deleteDocument($, this.documentId); + + $.export("$summary", `Successfully deleted the document ${this.documentId}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 903168695be15..9460190b786e7 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -80,5 +80,12 @@ export default { data: body, }); }, + async deleteDocument($ = this, documentId) { + return this.makeRequest({ + $, + method: "DELETE", + path: `/document/${documentId}`, + }); + }, }, }; \ No newline at end of file From d3b9341c77dd51fc6dc7d711fe3c3a664cd3a319 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:24:49 +0300 Subject: [PATCH 11/23] Add "Generate Document" action. --- .../actions/generate-document.mjs | 54 +++++++++++++++++++ components/docugenerate/docugenerate.app.mjs | 8 +++ 2 files changed, 62 insertions(+) create mode 100644 components/docugenerate/actions/generate-document.mjs diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs new file mode 100644 index 0000000000000..225a489e42083 --- /dev/null +++ b/components/docugenerate/actions/generate-document.mjs @@ -0,0 +1,54 @@ +import app from "../docugenerate.app.mjs"; + +export default { + key: "docugenerate-generate-document", + name: "Generate Document", + description: "Generates a document from a template", + version: "0.0.1", + type: "action", + props: { + app, + templateId: { + propDefinition: [ + app, + "templateId", + ], + }, + name: { + type: "string", + label: "Name", + description: "Name of the generated document. Defaults to the template’s name.", + }, + format: { + type: "string", + label: "Format", + description: "Output format of the generated document. Defaults to .docx.", + options: [ + { label: 'Microsoft Word (.docx)', value: '.docx' }, + { label: 'Microsoft Word 2007 (.doc)', value: '.doc' }, + { label: 'OpenDocument Format (.odt)', value: '.odt' }, + { label: 'PDF (.pdf)', value: '.pdf' }, + { label: 'Plain Text (.txt)', value: '.txt' }, + { label: 'PNG (.png)', value: '.png' }, + ], + }, + data: { + type: "object", + label: "Template Data", + description: "Data that is used to generate the document.", + }, + }, + async run({ $ }) { + const body = { + template_id: this.templateId, + name: this.name, + format: this.format, + data: this.data, + }; + + const response = await this.app.generateDocument($, body); + + $.export("$summary", `Successfully generated document with ID: ${response.id}`); + return response; + }, +}; \ No newline at end of file diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 9460190b786e7..71c7361df0812 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -87,5 +87,13 @@ export default { path: `/document/${documentId}`, }); }, + async generateDocument($ = this, body) { + return this.makeRequest({ + $, + method: "POST", + path: "/document", + data: body, + }); + }, }, }; \ No newline at end of file From 99471ff52bbb3d8455f10f1e502656983e600d6e Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:26:44 +0300 Subject: [PATCH 12/23] Add "Generate Document" action. --- components/docugenerate/actions/generate-document.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index 225a489e42083..e9dd01bb68654 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -18,11 +18,13 @@ export default { type: "string", label: "Name", description: "Name of the generated document. Defaults to the template’s name.", + optional: true, }, format: { type: "string", label: "Format", description: "Output format of the generated document. Defaults to .docx.", + optional: true, options: [ { label: 'Microsoft Word (.docx)', value: '.docx' }, { label: 'Microsoft Word 2007 (.doc)', value: '.doc' }, From b3f30aa62ac8797844eadb7350608c49c3299170 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:27:08 +0300 Subject: [PATCH 13/23] Add optional fields. --- components/docugenerate/actions/generate-document.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index e9dd01bb68654..4c10d8e12070b 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-generate-document", name: "Generate Document", description: "Generates a document from a template", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, From e338990fb24117fd88915f93c8e8ae140b76039d Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:33:16 +0300 Subject: [PATCH 14/23] Update output format options. --- components/docugenerate/actions/generate-document.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index 4c10d8e12070b..934f949b630b9 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-generate-document", name: "Generate Document", description: "Generates a document from a template", - version: "0.0.2", + version: "0.0.3", type: "action", props: { app, @@ -26,17 +26,17 @@ export default { description: "Output format of the generated document. Defaults to .docx.", optional: true, options: [ + { label: 'PDF (.pdf)', value: '.pdf' }, { label: 'Microsoft Word (.docx)', value: '.docx' }, { label: 'Microsoft Word 2007 (.doc)', value: '.doc' }, { label: 'OpenDocument Format (.odt)', value: '.odt' }, - { label: 'PDF (.pdf)', value: '.pdf' }, { label: 'Plain Text (.txt)', value: '.txt' }, { label: 'PNG (.png)', value: '.png' }, ], }, data: { type: "object", - label: "Template Data", + label: "Data", description: "Data that is used to generate the document.", }, }, @@ -44,7 +44,7 @@ export default { const body = { template_id: this.templateId, name: this.name, - format: this.format, + output_format: this.format, data: this.data, }; From cb1c952e62fd5b6acbbbfedcb17aa0506f8d2c75 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:41:05 +0300 Subject: [PATCH 15/23] Update summary message. --- components/docugenerate/actions/generate-document.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index 934f949b630b9..6f024f11f2983 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -50,7 +50,7 @@ export default { const response = await this.app.generateDocument($, body); - $.export("$summary", `Successfully generated document with ID: ${response.id}`); + $.export("$summary", `Successfully generated the document ${response.id}`); return response; }, }; \ No newline at end of file From 128e97c106ebf582616eb4813e69539afdea7e11 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:42:22 +0300 Subject: [PATCH 16/23] Set version: "1.0.0" for all actions. --- components/docugenerate/actions/delete-document.mjs | 2 +- components/docugenerate/actions/delete-template.mjs | 2 +- components/docugenerate/actions/generate-document.mjs | 2 +- components/docugenerate/actions/get-document.mjs | 2 +- components/docugenerate/actions/get-template.mjs | 2 +- components/docugenerate/actions/list-documents.mjs | 2 +- components/docugenerate/actions/list-templates.mjs | 2 +- components/docugenerate/actions/update-document.mjs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/docugenerate/actions/delete-document.mjs b/components/docugenerate/actions/delete-document.mjs index 01d61a772350a..4a93e275316d0 100644 --- a/components/docugenerate/actions/delete-document.mjs +++ b/components/docugenerate/actions/delete-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-delete-document", name: "Delete Document", description: "Deletes a specific document", - version: "0.0.1", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/delete-template.mjs b/components/docugenerate/actions/delete-template.mjs index dbd17a8a143cc..64a8217c93f43 100644 --- a/components/docugenerate/actions/delete-template.mjs +++ b/components/docugenerate/actions/delete-template.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-delete-template", name: "Delete Template", description: "Deletes a specific template", - version: "0.0.3", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index 6f024f11f2983..428ad0c989054 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-generate-document", name: "Generate Document", description: "Generates a document from a template", - version: "0.0.3", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/get-document.mjs b/components/docugenerate/actions/get-document.mjs index f32883826e1ce..b4828be8eec0c 100644 --- a/components/docugenerate/actions/get-document.mjs +++ b/components/docugenerate/actions/get-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-get-document", name: "Get Document", description: "Retrieves a specific document", - version: "0.0.3", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/get-template.mjs b/components/docugenerate/actions/get-template.mjs index 65c1c6376f198..17659a5d6bc96 100644 --- a/components/docugenerate/actions/get-template.mjs +++ b/components/docugenerate/actions/get-template.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-get-template", name: "Get Template", description: "Retrieves a specific template", - version: "0.0.3", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/list-documents.mjs b/components/docugenerate/actions/list-documents.mjs index 9edc316e972ce..7a3698d932749 100644 --- a/components/docugenerate/actions/list-documents.mjs +++ b/components/docugenerate/actions/list-documents.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-list-documents", name: "List Documents", description: "Retrieves a list of documents generated from a template", - version: "0.0.1", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index 4098bf2991af4..2574616a244d2 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-list-templates", name: "List Templates", description: "Retrieves a list of all templates", - version: "0.0.3", + version: "1.0.0", type: "action", props: { app, diff --git a/components/docugenerate/actions/update-document.mjs b/components/docugenerate/actions/update-document.mjs index c8d3e2b7458e0..4f1b04d1768ea 100644 --- a/components/docugenerate/actions/update-document.mjs +++ b/components/docugenerate/actions/update-document.mjs @@ -4,7 +4,7 @@ export default { key: "docugenerate-update-document", name: "Update Document", description: "Updates a specific document", - version: "0.0.2", + version: "1.0.0", type: "action", props: { app, From d0d634791468f3246e1563af919b24a6f7615446 Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 22:44:42 +0300 Subject: [PATCH 17/23] Update package.json --- components/docugenerate/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/docugenerate/package.json b/components/docugenerate/package.json index 58227e2d13194..4a8896d18eec4 100644 --- a/components/docugenerate/package.json +++ b/components/docugenerate/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/docugenerate", - "version": "0.0.1", + "version": "1.0.0", "description": "Pipedream DocuGenerate Components", "main": "docugenerate.app.mjs", "keywords": [ @@ -8,7 +8,7 @@ "docugenerate" ], "homepage": "https://pipedream.com/apps/docugenerate", - "author": "Pipedream (https://pipedream.com/)", + "author": "DocuGenerate (https://www.docugenerate.com/)", "publishConfig": { "access": "public" } From a95e98f0784cbdadc281471e63ef4da9750b8a6d Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Sun, 24 Aug 2025 23:03:08 +0300 Subject: [PATCH 18/23] Update README file. --- components/docugenerate/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/components/docugenerate/README.md b/components/docugenerate/README.md index edbdb54fec2df..dda7f8de2af11 100644 --- a/components/docugenerate/README.md +++ b/components/docugenerate/README.md @@ -9,3 +9,25 @@ The DocuGenerate API lets you automate document creation and management tasks wi - **Automated Report Creation and Distribution**: Schedule a workflow to run weekly, gathering data from tools such as Google Sheets or a database. Use this data to create a tailored report via DocuGenerate and subsequently email the report to a list of stakeholders using an email service like SendGrid. - **Dynamic Invoice Creation from E-Commerce Platforms**: When a new order is placed on an e-commerce platform (like Shopify), trigger a Pipedream workflow that creates an invoice through the DocuGenerate API. Then, archive the invoice in cloud storage like Google Drive and update the order status within the e-commerce platform. + +# Getting Started + +## Obtaining Your API Key + +1. Sign up for a [DocuGenerate](https://www.docugenerate.com/) account +2. Get your unique API Key from the Developers tab in the [Settings](https://app.docugenerate.com/settings/developers) page +5. Copy the API Key for use in Pipedream + +## Connecting to Pipedream + +1. In your Pipedream workflow, add a DocuGenerate action +2. When prompted for authentication, paste your API Key +3. Test the connection by using the "List Templates" action + +## Generating Your First Document + +Use the "Generate Document" action with: +- **Template**: Select from your available templates +- **Data**: Provide JSON data matching your template merge tags (e.g., `{ "name": "John Doe" }`) +- **Name**: Set a custom document name (optional) +- **Format**: Choose your desired output format (optional) From 86b0a5321a068a7c4f4b46b7d4aa98fbb7ee5cce Mon Sep 17 00:00:00 2001 From: DocuGenerate Date: Mon, 25 Aug 2025 08:44:59 +0300 Subject: [PATCH 19/23] Fix step numbering in README. --- components/docugenerate/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docugenerate/README.md b/components/docugenerate/README.md index dda7f8de2af11..cfa08719e8200 100644 --- a/components/docugenerate/README.md +++ b/components/docugenerate/README.md @@ -16,7 +16,7 @@ The DocuGenerate API lets you automate document creation and management tasks wi 1. Sign up for a [DocuGenerate](https://www.docugenerate.com/) account 2. Get your unique API Key from the Developers tab in the [Settings](https://app.docugenerate.com/settings/developers) page -5. Copy the API Key for use in Pipedream +3. Copy the API Key for use in Pipedream ## Connecting to Pipedream From eb7bdcb1759b71cee785f64b5569acade1adbb44 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 29 Sep 2025 15:01:10 -0300 Subject: [PATCH 20/23] Running eslint --fix --- .../docugenerate/actions/delete-document.mjs | 4 +-- .../docugenerate/actions/delete-template.mjs | 4 +-- .../actions/generate-document.mjs | 34 ++++++++++++++----- .../docugenerate/actions/get-document.mjs | 4 +-- .../docugenerate/actions/get-template.mjs | 4 +-- .../docugenerate/actions/list-documents.mjs | 4 +-- .../docugenerate/actions/list-templates.mjs | 4 +-- .../docugenerate/actions/update-document.mjs | 6 ++-- components/docugenerate/docugenerate.app.mjs | 4 +-- 9 files changed, 43 insertions(+), 25 deletions(-) diff --git a/components/docugenerate/actions/delete-document.mjs b/components/docugenerate/actions/delete-document.mjs index 4a93e275316d0..847436069a42d 100644 --- a/components/docugenerate/actions/delete-document.mjs +++ b/components/docugenerate/actions/delete-document.mjs @@ -16,8 +16,8 @@ export default { }, async run({ $ }) { const response = await this.app.deleteDocument($, this.documentId); - + $.export("$summary", `Successfully deleted the document ${this.documentId}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/delete-template.mjs b/components/docugenerate/actions/delete-template.mjs index 64a8217c93f43..65e32f8bc86b9 100644 --- a/components/docugenerate/actions/delete-template.mjs +++ b/components/docugenerate/actions/delete-template.mjs @@ -17,8 +17,8 @@ export default { }, async run({ $ }) { const response = await this.app.deleteTemplate($, this.templateId); - + $.export("$summary", `Successfully deleted the template ${this.templateId}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document.mjs index 428ad0c989054..d6671a99767d4 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document.mjs @@ -26,12 +26,30 @@ export default { description: "Output format of the generated document. Defaults to .docx.", optional: true, options: [ - { label: 'PDF (.pdf)', value: '.pdf' }, - { label: 'Microsoft Word (.docx)', value: '.docx' }, - { label: 'Microsoft Word 2007 (.doc)', value: '.doc' }, - { label: 'OpenDocument Format (.odt)', value: '.odt' }, - { label: 'Plain Text (.txt)', value: '.txt' }, - { label: 'PNG (.png)', value: '.png' }, + { + label: "PDF (.pdf)", + value: ".pdf", + }, + { + label: "Microsoft Word (.docx)", + value: ".docx", + }, + { + label: "Microsoft Word 2007 (.doc)", + value: ".doc", + }, + { + label: "OpenDocument Format (.odt)", + value: ".odt", + }, + { + label: "Plain Text (.txt)", + value: ".txt", + }, + { + label: "PNG (.png)", + value: ".png", + }, ], }, data: { @@ -49,8 +67,8 @@ export default { }; const response = await this.app.generateDocument($, body); - + $.export("$summary", `Successfully generated the document ${response.id}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/get-document.mjs b/components/docugenerate/actions/get-document.mjs index b4828be8eec0c..b654479632fc3 100644 --- a/components/docugenerate/actions/get-document.mjs +++ b/components/docugenerate/actions/get-document.mjs @@ -16,8 +16,8 @@ export default { }, async run({ $ }) { const response = await this.app.getDocument($, this.documentId); - + $.export("$summary", `Successfully retrieved the document ${this.documentId}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/get-template.mjs b/components/docugenerate/actions/get-template.mjs index 17659a5d6bc96..5e560e383086b 100644 --- a/components/docugenerate/actions/get-template.mjs +++ b/components/docugenerate/actions/get-template.mjs @@ -17,8 +17,8 @@ export default { }, async run({ $ }) { const response = await this.app.getTemplate($, this.templateId); - + $.export("$summary", `Successfully retrieved the template ${this.templateId}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/list-documents.mjs b/components/docugenerate/actions/list-documents.mjs index 7a3698d932749..288fcbdefffef 100644 --- a/components/docugenerate/actions/list-documents.mjs +++ b/components/docugenerate/actions/list-documents.mjs @@ -17,8 +17,8 @@ export default { }, async run({ $ }) { const response = await this.app.listDocuments($, this.templateId); - + $.export("$summary", `Successfully retrieved ${response?.length || 0} documents`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates.mjs index 2574616a244d2..7c4e4ac370798 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates.mjs @@ -11,8 +11,8 @@ export default { }, async run({ $ }) { const response = await this.app.listTemplates($); - + $.export("$summary", `Successfully retrieved ${response?.length || 0} templates`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/actions/update-document.mjs b/components/docugenerate/actions/update-document.mjs index 4f1b04d1768ea..2a5e25fc951be 100644 --- a/components/docugenerate/actions/update-document.mjs +++ b/components/docugenerate/actions/update-document.mjs @@ -21,10 +21,10 @@ export default { }, async run({ $ }) { const response = await this.app.updateDocument($, this.documentId, { - name: this.name + name: this.name, }); - + $.export("$summary", `Successfully updated the document ${this.documentId}`); return response; }, -}; \ No newline at end of file +}; diff --git a/components/docugenerate/docugenerate.app.mjs b/components/docugenerate/docugenerate.app.mjs index 71c7361df0812..6ad6c1a1e53cf 100644 --- a/components/docugenerate/docugenerate.app.mjs +++ b/components/docugenerate/docugenerate.app.mjs @@ -10,7 +10,7 @@ export default { description: "The selected template", async options() { const response = await this.listTemplates(); - return response.map(template => ({ + return response.map((template) => ({ label: template.name, value: template.id, })); @@ -96,4 +96,4 @@ export default { }); }, }, -}; \ No newline at end of file +}; From 67aacce0be0dc5a6f5a8225b50f5c1b19c782124 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 29 Sep 2025 15:03:32 -0300 Subject: [PATCH 21/23] Moving actions to individual folders --- .../actions/{ => delete-document}/delete-document.mjs | 4 ++-- .../actions/{ => delete-template}/delete-template.mjs | 4 ++-- .../actions/{ => generate-document}/generate-document.mjs | 4 ++-- .../docugenerate/actions/{ => get-document}/get-document.mjs | 4 ++-- .../docugenerate/actions/{ => get-template}/get-template.mjs | 4 ++-- .../actions/{ => list-documents}/list-documents.mjs | 4 ++-- .../actions/{ => list-templates}/list-templates.mjs | 4 ++-- .../actions/{ => update-document}/update-document.mjs | 4 ++-- components/docugenerate/package.json | 5 ++++- 9 files changed, 20 insertions(+), 17 deletions(-) rename components/docugenerate/actions/{ => delete-document}/delete-document.mjs (88%) rename components/docugenerate/actions/{ => delete-template}/delete-template.mjs (87%) rename components/docugenerate/actions/{ => generate-document}/generate-document.mjs (96%) rename components/docugenerate/actions/{ => get-document}/get-document.mjs (88%) rename components/docugenerate/actions/{ => get-template}/get-template.mjs (87%) rename components/docugenerate/actions/{ => list-documents}/list-documents.mjs (88%) rename components/docugenerate/actions/{ => list-templates}/list-templates.mjs (84%) rename components/docugenerate/actions/{ => update-document}/update-document.mjs (90%) diff --git a/components/docugenerate/actions/delete-document.mjs b/components/docugenerate/actions/delete-document/delete-document.mjs similarity index 88% rename from components/docugenerate/actions/delete-document.mjs rename to components/docugenerate/actions/delete-document/delete-document.mjs index 847436069a42d..1d031bc2887ab 100644 --- a/components/docugenerate/actions/delete-document.mjs +++ b/components/docugenerate/actions/delete-document/delete-document.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-delete-document", name: "Delete Document", description: "Deletes a specific document", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/delete-template.mjs b/components/docugenerate/actions/delete-template/delete-template.mjs similarity index 87% rename from components/docugenerate/actions/delete-template.mjs rename to components/docugenerate/actions/delete-template/delete-template.mjs index 65e32f8bc86b9..84e195b0419d6 100644 --- a/components/docugenerate/actions/delete-template.mjs +++ b/components/docugenerate/actions/delete-template/delete-template.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-delete-template", name: "Delete Template", description: "Deletes a specific template", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/generate-document.mjs b/components/docugenerate/actions/generate-document/generate-document.mjs similarity index 96% rename from components/docugenerate/actions/generate-document.mjs rename to components/docugenerate/actions/generate-document/generate-document.mjs index d6671a99767d4..9488091ec1faa 100644 --- a/components/docugenerate/actions/generate-document.mjs +++ b/components/docugenerate/actions/generate-document/generate-document.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-generate-document", name: "Generate Document", description: "Generates a document from a template", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/get-document.mjs b/components/docugenerate/actions/get-document/get-document.mjs similarity index 88% rename from components/docugenerate/actions/get-document.mjs rename to components/docugenerate/actions/get-document/get-document.mjs index b654479632fc3..9f617caeec44f 100644 --- a/components/docugenerate/actions/get-document.mjs +++ b/components/docugenerate/actions/get-document/get-document.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-get-document", name: "Get Document", description: "Retrieves a specific document", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/get-template.mjs b/components/docugenerate/actions/get-template/get-template.mjs similarity index 87% rename from components/docugenerate/actions/get-template.mjs rename to components/docugenerate/actions/get-template/get-template.mjs index 5e560e383086b..9c7456b3296f4 100644 --- a/components/docugenerate/actions/get-template.mjs +++ b/components/docugenerate/actions/get-template/get-template.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-get-template", name: "Get Template", description: "Retrieves a specific template", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/list-documents.mjs b/components/docugenerate/actions/list-documents/list-documents.mjs similarity index 88% rename from components/docugenerate/actions/list-documents.mjs rename to components/docugenerate/actions/list-documents/list-documents.mjs index 288fcbdefffef..111ab1820adbd 100644 --- a/components/docugenerate/actions/list-documents.mjs +++ b/components/docugenerate/actions/list-documents/list-documents.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-list-documents", name: "List Documents", description: "Retrieves a list of documents generated from a template", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/list-templates.mjs b/components/docugenerate/actions/list-templates/list-templates.mjs similarity index 84% rename from components/docugenerate/actions/list-templates.mjs rename to components/docugenerate/actions/list-templates/list-templates.mjs index 7c4e4ac370798..8e39198cf1a84 100644 --- a/components/docugenerate/actions/list-templates.mjs +++ b/components/docugenerate/actions/list-templates/list-templates.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-list-templates", name: "List Templates", description: "Retrieves a list of all templates", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/actions/update-document.mjs b/components/docugenerate/actions/update-document/update-document.mjs similarity index 90% rename from components/docugenerate/actions/update-document.mjs rename to components/docugenerate/actions/update-document/update-document.mjs index 2a5e25fc951be..75fd7a74bd189 100644 --- a/components/docugenerate/actions/update-document.mjs +++ b/components/docugenerate/actions/update-document/update-document.mjs @@ -1,10 +1,10 @@ -import app from "../docugenerate.app.mjs"; +import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-update-document", name: "Update Document", description: "Updates a specific document", - version: "1.0.0", + version: "0.0.1", type: "action", props: { app, diff --git a/components/docugenerate/package.json b/components/docugenerate/package.json index 4a8896d18eec4..ae04c126ecbe3 100644 --- a/components/docugenerate/package.json +++ b/components/docugenerate/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/docugenerate", - "version": "1.0.0", + "version": "0.0.1", "description": "Pipedream DocuGenerate Components", "main": "docugenerate.app.mjs", "keywords": [ @@ -11,5 +11,8 @@ "author": "DocuGenerate (https://www.docugenerate.com/)", "publishConfig": { "access": "public" + }, + "dependencies": { + "@pipedream/platform": "^3.1.0" } } From 5bd9e80072d9538f1468a8a0345814371ed5fb40 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 29 Sep 2025 15:08:37 -0300 Subject: [PATCH 22/23] Adding docs links to descriptions --- .../delete-document/delete-document.mjs | 2 +- .../delete-template/delete-template.mjs | 2 +- .../generate-document/generate-document.mjs | 2 +- .../actions/get-document/get-document.mjs | 2 +- .../actions/get-template/get-template.mjs | 2 +- .../actions/list-documents/list-documents.mjs | 2 +- .../actions/list-templates/list-templates.mjs | 2 +- .../update-document/update-document.mjs | 2 +- pnpm-lock.yaml | 49 +++++-------------- 9 files changed, 19 insertions(+), 46 deletions(-) diff --git a/components/docugenerate/actions/delete-document/delete-document.mjs b/components/docugenerate/actions/delete-document/delete-document.mjs index 1d031bc2887ab..b0fac514a0712 100644 --- a/components/docugenerate/actions/delete-document/delete-document.mjs +++ b/components/docugenerate/actions/delete-document/delete-document.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-delete-document", name: "Delete Document", - description: "Deletes a specific document", + description: "Deletes a specific document. [See the documentation](https://api.docugenerate.com/#/Document/deleteDocument)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/delete-template/delete-template.mjs b/components/docugenerate/actions/delete-template/delete-template.mjs index 84e195b0419d6..ac68fcf5fc7f4 100644 --- a/components/docugenerate/actions/delete-template/delete-template.mjs +++ b/components/docugenerate/actions/delete-template/delete-template.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-delete-template", name: "Delete Template", - description: "Deletes a specific template", + description: "Deletes a specific template. [See the documentation](https://api.docugenerate.com/#/Template/deleteTemplate)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/generate-document/generate-document.mjs b/components/docugenerate/actions/generate-document/generate-document.mjs index 9488091ec1faa..2a90b6a2e9e0f 100644 --- a/components/docugenerate/actions/generate-document/generate-document.mjs +++ b/components/docugenerate/actions/generate-document/generate-document.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-generate-document", name: "Generate Document", - description: "Generates a document from a template", + description: "Generates a document from a template. [See the documentation](https://api.docugenerate.com/#/Document/generateDocument)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/get-document/get-document.mjs b/components/docugenerate/actions/get-document/get-document.mjs index 9f617caeec44f..a33b47b65e0c8 100644 --- a/components/docugenerate/actions/get-document/get-document.mjs +++ b/components/docugenerate/actions/get-document/get-document.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-get-document", name: "Get Document", - description: "Retrieves a specific document", + description: "Retrieves a specific document. [See the documentation](https://api.docugenerate.com/#/Document/getDocument)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/get-template/get-template.mjs b/components/docugenerate/actions/get-template/get-template.mjs index 9c7456b3296f4..db2b8a6711047 100644 --- a/components/docugenerate/actions/get-template/get-template.mjs +++ b/components/docugenerate/actions/get-template/get-template.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-get-template", name: "Get Template", - description: "Retrieves a specific template", + description: "Retrieves a specific template. [See the documentation](https://api.docugenerate.com/#/Template/getTemplate)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/list-documents/list-documents.mjs b/components/docugenerate/actions/list-documents/list-documents.mjs index 111ab1820adbd..f05b9ddef437c 100644 --- a/components/docugenerate/actions/list-documents/list-documents.mjs +++ b/components/docugenerate/actions/list-documents/list-documents.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-list-documents", name: "List Documents", - description: "Retrieves a list of documents generated from a template", + description: "Retrieves a list of documents generated from a template. [See the documentation](https://api.docugenerate.com/#/Document/queryDocuments)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/list-templates/list-templates.mjs b/components/docugenerate/actions/list-templates/list-templates.mjs index 8e39198cf1a84..adfe39d1d998c 100644 --- a/components/docugenerate/actions/list-templates/list-templates.mjs +++ b/components/docugenerate/actions/list-templates/list-templates.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-list-templates", name: "List Templates", - description: "Retrieves a list of all templates", + description: "Retrieves a list of all templates. [See the documentation](https://api.docugenerate.com/#/Template/queryTemplates)", version: "0.0.1", type: "action", props: { diff --git a/components/docugenerate/actions/update-document/update-document.mjs b/components/docugenerate/actions/update-document/update-document.mjs index 75fd7a74bd189..611d445374645 100644 --- a/components/docugenerate/actions/update-document/update-document.mjs +++ b/components/docugenerate/actions/update-document/update-document.mjs @@ -3,7 +3,7 @@ import app from "../../docugenerate.app.mjs"; export default { key: "docugenerate-update-document", name: "Update Document", - description: "Updates a specific document", + description: "Updates a specific document. [See the documentation](https://api.docugenerate.com/#/Document/updateDocument)", version: "0.0.1", type: "action", props: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00c8c360962ff..65c94c113d4a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1523,8 +1523,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/beeminder: - specifiers: {} + components/beeminder: {} components/belco: dependencies: @@ -3998,7 +3997,11 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/docugenerate: {} + components/docugenerate: + dependencies: + '@pipedream/platform': + specifier: ^3.1.0 + version: 3.1.0 components/documenso: dependencies: @@ -8035,8 +8038,7 @@ importers: specifier: ^1.6.5 version: 1.6.6 - components/lingvanex_translation_api: - specifiers: {} + components/lingvanex_translation_api: {} components/linkedin: dependencies: @@ -25843,9 +25845,6 @@ packages: generate-function@2.3.1: resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==} - generative-bayesian-network@2.1.70: - resolution: {integrity: sha512-nP0CNiVs/QS5ppMsGiEYN3dgAe3UTT1mpDth0wTh9uEyEO4e7y1Yr5PGDcTJsU0Lm3YM21yNzhuPbUg7etKHbQ==} - generic-pool@3.9.0: resolution: {integrity: sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==} engines: {node: '>= 4'} @@ -26292,10 +26291,6 @@ packages: resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true - header-generator@2.1.70: - resolution: {integrity: sha512-s2/jN4hIr/pDRZhXA1D2T72eO4f8Gi1mwYEIFLbU+OR7cjo+Tayrw4RlTN3dXPahrU/MBdjk9gv//MwxLoCpGQ==} - engines: {node: '>=16.0.0'} - heap-js@2.5.0: resolution: {integrity: sha512-kUGoI3p7u6B41z/dp33G6OaL7J4DRqRYwVmeIlwLClx7yaaAy7hoDExnuejTKtuDwfcatGmddHDEOjf6EyIxtQ==} engines: {node: '>=10.0.0'} @@ -30974,22 +30969,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - 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 + 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 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 + 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 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 + 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 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 + 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@10.0.0: resolution: {integrity: sha512-HRVVSbCCMbj7/kdWF9Q+bbckjBHLtHMEoJWlkmYzzdwhYMkjkOwubLM6t7NbWKjgKamGDrWL1++KrjUO1t9oAQ==} @@ -45401,11 +45396,6 @@ snapshots: dependencies: is-property: 1.0.2 - generative-bayesian-network@2.1.70: - dependencies: - adm-zip: 0.5.16 - tslib: 2.8.1 - generic-pool@3.9.0: {} gensync@1.0.0-beta.2: {} @@ -45854,16 +45844,6 @@ snapshots: gopd@1.2.0: {} - got-scraping@4.1.2: - dependencies: - got: 14.4.6 - header-generator: 2.1.70 - http2-wrapper: 2.2.1 - mimic-response: 4.0.0 - ow: 1.1.1 - quick-lru: 7.1.0 - tslib: 2.8.1 - got@11.8.6: dependencies: '@sindresorhus/is': 4.6.0 @@ -46108,13 +46088,6 @@ snapshots: he@1.2.0: {} - header-generator@2.1.70: - dependencies: - browserslist: 4.24.2 - generative-bayesian-network: 2.1.70 - ow: 0.28.2 - tslib: 2.8.1 - heap-js@2.5.0: {} help-me@3.0.0: From d21218f2341577a0229fe26c1ba8a7cdc70dcbf8 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 29 Sep 2025 15:44:27 -0300 Subject: [PATCH 23/23] Fixing package version --- components/docugenerate/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docugenerate/package.json b/components/docugenerate/package.json index ae04c126ecbe3..adb2f51b33ae3 100644 --- a/components/docugenerate/package.json +++ b/components/docugenerate/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/docugenerate", - "version": "0.0.1", + "version": "0.1.0", "description": "Pipedream DocuGenerate Components", "main": "docugenerate.app.mjs", "keywords": [