diff --git a/components/currents_api/currents_api.app.mjs b/components/currents_api/currents_api.app.mjs
index 8edebfef1e28e..068b060bc6089 100644
--- a/components/currents_api/currents_api.app.mjs
+++ b/components/currents_api/currents_api.app.mjs
@@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
-};
\ No newline at end of file
+};
diff --git a/components/gmail/actions/add-label-to-email/add-label-to-email.mjs b/components/gmail/actions/add-label-to-email/add-label-to-email.mjs
index ac27b17dbf3b7..774105970de27 100644
--- a/components/gmail/actions/add-label-to-email/add-label-to-email.mjs
+++ b/components/gmail/actions/add-label-to-email/add-label-to-email.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-add-label-to-email",
name: "Add Label to Email",
description: "Add label(s) to an email message. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/modify)",
- version: "0.0.6",
+ version: "0.0.7",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/approve-workflow/approve-workflow.mjs b/components/gmail/actions/approve-workflow/approve-workflow.mjs
index 2c0ecf1afcb08..caaf2062b2a45 100644
--- a/components/gmail/actions/approve-workflow/approve-workflow.mjs
+++ b/components/gmail/actions/approve-workflow/approve-workflow.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-approve-workflow",
name: "Approve Workflow",
description: "Suspend the workflow until approved by email. [See the documentation](https://pipedream.com/docs/code/nodejs/rerun#flowsuspend)",
- version: "0.0.2",
+ version: "0.0.3",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/create-draft/create-draft.mjs b/components/gmail/actions/create-draft/create-draft.mjs
index 2caecb090ff6a..5600d842ef4fe 100644
--- a/components/gmail/actions/create-draft/create-draft.mjs
+++ b/components/gmail/actions/create-draft/create-draft.mjs
@@ -6,7 +6,7 @@ export default {
key: "gmail-create-draft",
name: "Create Draft",
description: "Create a draft from your Google Workspace email account. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.drafts/create)",
- version: "0.0.4",
+ version: "0.0.5",
type: "action",
props: {
gmail,
@@ -46,6 +46,13 @@ export default {
"bodyType",
],
},
+ include_sent_via_pipedream_flag: {
+ type: "boolean",
+ optional: true,
+ default: true,
+ label: "Include link to Pipedream",
+ description: "Defaults to `true`, includes a link to Pipedream at the end of your email.",
+ },
attachmentFilenames: {
propDefinition: [
gmail,
diff --git a/components/gmail/actions/download-attachment/download-attachment.mjs b/components/gmail/actions/download-attachment/download-attachment.mjs
index 7df20e90e01f2..bdb1ae995b04e 100644
--- a/components/gmail/actions/download-attachment/download-attachment.mjs
+++ b/components/gmail/actions/download-attachment/download-attachment.mjs
@@ -7,7 +7,7 @@ export default {
key: "gmail-download-attachment",
name: "Download Attachment",
description: "Download an attachment by attachmentId to the /tmp directory. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages.attachments/get)",
- version: "0.0.4",
+ version: "0.0.5",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/find-email/find-email.mjs b/components/gmail/actions/find-email/find-email.mjs
index 10ecd205e4b89..df2f79355ad67 100644
--- a/components/gmail/actions/find-email/find-email.mjs
+++ b/components/gmail/actions/find-email/find-email.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-find-email",
name: "Find Email",
description: "Find an email using Google's Search Engine. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list)",
- version: "0.0.7",
+ version: "0.0.8",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/list-labels/list-labels.mjs b/components/gmail/actions/list-labels/list-labels.mjs
index 5588f7092e430..4d2ba114eb0bc 100644
--- a/components/gmail/actions/list-labels/list-labels.mjs
+++ b/components/gmail/actions/list-labels/list-labels.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-list-labels",
name: "List Labels",
description: "List all the existing labels in the connected account. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.labels/list)",
- version: "0.0.1",
+ version: "0.0.2",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/remove-label-from-email/remove-label-from-email.mjs b/components/gmail/actions/remove-label-from-email/remove-label-from-email.mjs
index b349f91353084..54db833a26298 100644
--- a/components/gmail/actions/remove-label-from-email/remove-label-from-email.mjs
+++ b/components/gmail/actions/remove-label-from-email/remove-label-from-email.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-remove-label-from-email",
name: "Remove Label from Email",
description: "Remove label(s) from an email message. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/modify)",
- version: "0.0.3",
+ version: "0.0.4",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/send-email/send-email.mjs b/components/gmail/actions/send-email/send-email.mjs
index 271402d401a4e..d5bca3696e21f 100644
--- a/components/gmail/actions/send-email/send-email.mjs
+++ b/components/gmail/actions/send-email/send-email.mjs
@@ -6,7 +6,7 @@ export default {
key: "gmail-send-email",
name: "Send Email",
description: "Send an email from your Google Workspace email account. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/send)",
- version: "0.1.7",
+ version: "0.1.8",
type: "action",
props: {
gmail,
@@ -64,6 +64,13 @@ export default {
"bodyType",
],
},
+ include_sent_via_pipedream_flag: {
+ type: "boolean",
+ optional: true,
+ default: true,
+ label: "Include link to Pipedream",
+ description: "Defaults to `true`, includes a link to Pipedream at the end of your email.",
+ },
attachmentFilenames: {
propDefinition: [
gmail,
diff --git a/components/gmail/actions/update-org-signature/update-org-signature.mjs b/components/gmail/actions/update-org-signature/update-org-signature.mjs
index 589619533f273..4b3a87d8949c9 100644
--- a/components/gmail/actions/update-org-signature/update-org-signature.mjs
+++ b/components/gmail/actions/update-org-signature/update-org-signature.mjs
@@ -8,7 +8,7 @@ export default {
name: "Update Signature for Email in Organization",
description: `Update the signature for a specific email address in an organization.
A Google Cloud service account with delegated domain-wide authority is required for this action. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs/update)`,
- version: "0.0.4",
+ version: "0.0.5",
type: "action",
props: {
gmail,
diff --git a/components/gmail/actions/update-primary-signature/update-primary-signature.mjs b/components/gmail/actions/update-primary-signature/update-primary-signature.mjs
index 5b227efa6d4d2..256c6dab14371 100644
--- a/components/gmail/actions/update-primary-signature/update-primary-signature.mjs
+++ b/components/gmail/actions/update-primary-signature/update-primary-signature.mjs
@@ -4,7 +4,7 @@ export default {
key: "gmail-update-primary-signature",
name: "Update Signature for Primary Email Address",
description: "Update the signature for the primary email address. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs/update)",
- version: "0.0.4",
+ version: "0.0.5",
type: "action",
props: {
gmail,
diff --git a/components/gmail/gmail.app.mjs b/components/gmail/gmail.app.mjs
index 35632c6042280..8cfe13504b4b0 100644
--- a/components/gmail/gmail.app.mjs
+++ b/components/gmail/gmail.app.mjs
@@ -318,10 +318,30 @@ export default {
}
}
+ let bodyContent = props.body;
+
+ // Add "Sent via Pipedream" if the flag is enabled
+ if (props.include_sent_via_pipedream_flag) {
+ const workflowId = process.env.PIPEDREAM_WORKFLOW_ID;
+ const baseLink = "https://pipedream.com";
+ const linkText = !workflowId
+ ? "Pipedream Connect"
+ : "Pipedream";
+ const link = !workflowId
+ ? `${baseLink}/connect`
+ : `${baseLink}/@/${workflowId}?o=a&a=gmail`;
+
+ if (props.bodyType === constants.BODY_TYPES.HTML) {
+ bodyContent = `${bodyContent}
Sent via ${linkText}`;
+ } else {
+ bodyContent = `${bodyContent}\n\nSent via ${linkText}: ${link}`;
+ }
+ }
+
if (props.bodyType === constants.BODY_TYPES.HTML) {
- opts.html = props.body;
+ opts.html = bodyContent;
} else {
- opts.text = props.body;
+ opts.text = bodyContent;
}
return opts;
diff --git a/components/gmail/package.json b/components/gmail/package.json
index 26fc311aedb71..479d4edabfe0a 100644
--- a/components/gmail/package.json
+++ b/components/gmail/package.json
@@ -1,6 +1,6 @@
{
"name": "@pipedream/gmail",
- "version": "0.2.2",
+ "version": "0.2.3",
"description": "Pipedream Gmail Components",
"main": "gmail.app.mjs",
"keywords": [
diff --git a/components/gmail/sources/new-attachment-received/new-attachment-received.mjs b/components/gmail/sources/new-attachment-received/new-attachment-received.mjs
index 9e0942fc3b608..1cfceaae96ccc 100644
--- a/components/gmail/sources/new-attachment-received/new-attachment-received.mjs
+++ b/components/gmail/sources/new-attachment-received/new-attachment-received.mjs
@@ -6,7 +6,7 @@ export default {
key: "gmail-new-attachment-received",
name: "New Attachment Received",
description: "Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.",
- version: "0.0.6",
+ version: "0.0.7",
type: "source",
dedupe: "unique",
props: {
diff --git a/components/gmail/sources/new-email-matching-search/new-email-matching-search.mjs b/components/gmail/sources/new-email-matching-search/new-email-matching-search.mjs
index 110f6fb12bd66..6c1715b740990 100644
--- a/components/gmail/sources/new-email-matching-search/new-email-matching-search.mjs
+++ b/components/gmail/sources/new-email-matching-search/new-email-matching-search.mjs
@@ -6,7 +6,7 @@ export default {
key: "gmail-new-email-matching-search",
name: "New Email Matching Search",
description: "Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.",
- version: "0.0.5",
+ version: "0.0.6",
type: "source",
dedupe: "unique",
props: {
diff --git a/components/gmail/sources/new-email-received/new-email-received.mjs b/components/gmail/sources/new-email-received/new-email-received.mjs
index 188082d9dba40..51ebbfa8c534d 100644
--- a/components/gmail/sources/new-email-received/new-email-received.mjs
+++ b/components/gmail/sources/new-email-received/new-email-received.mjs
@@ -15,7 +15,7 @@ export default {
name: "New Email Received",
description: "Emit new event when a new email is received.",
type: "source",
- version: "0.2.0",
+ version: "0.2.1",
dedupe: "unique",
props: {
gmail,
diff --git a/components/gmail/sources/new-labeled-email/new-labeled-email.mjs b/components/gmail/sources/new-labeled-email/new-labeled-email.mjs
index 5679b00a32226..22820b37b40f4 100644
--- a/components/gmail/sources/new-labeled-email/new-labeled-email.mjs
+++ b/components/gmail/sources/new-labeled-email/new-labeled-email.mjs
@@ -8,7 +8,7 @@ export default {
name: "New Labeled Email",
description: "Emit new event when a new email is labeled.",
type: "source",
- version: "0.0.7",
+ version: "0.0.8",
dedupe: "unique",
props: {
...common.props,
diff --git a/components/gmail/sources/new-sent-email/new-sent-email.mjs b/components/gmail/sources/new-sent-email/new-sent-email.mjs
index 5c42690dea4af..aa5e3b4235752 100644
--- a/components/gmail/sources/new-sent-email/new-sent-email.mjs
+++ b/components/gmail/sources/new-sent-email/new-sent-email.mjs
@@ -6,7 +6,7 @@ export default {
key: "gmail-new-sent-email",
name: "New Sent Email",
description: "Emit new event for each new email sent. (Maximum of 100 events emited per execution)",
- version: "0.0.6",
+ version: "0.0.7",
type: "source",
dedupe: "unique",
props: {
diff --git a/components/leverly/leverly.app.mjs b/components/leverly/leverly.app.mjs
index 3844ecdb13f72..0fc5a2cd73720 100644
--- a/components/leverly/leverly.app.mjs
+++ b/components/leverly/leverly.app.mjs
@@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
-};
\ No newline at end of file
+};
diff --git a/components/minerstat/minerstat.app.mjs b/components/minerstat/minerstat.app.mjs
index b6e5cfd6f50e4..80d5962c3213f 100644
--- a/components/minerstat/minerstat.app.mjs
+++ b/components/minerstat/minerstat.app.mjs
@@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
-};
\ No newline at end of file
+};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7a1d4d88dee47..641beabbbe706 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -3000,8 +3000,7 @@ importers:
components/current_rms: {}
- components/currents_api:
- specifiers: {}
+ components/currents_api: {}
components/customer_fields:
dependencies:
@@ -7055,8 +7054,7 @@ importers:
components/lettria: {}
- components/leverly:
- specifiers: {}
+ components/leverly: {}
components/levity: {}
@@ -7955,8 +7953,7 @@ importers:
components/mindstudio: {}
- components/minerstat:
- specifiers: {}
+ components/minerstat: {}
components/minio: {}