diff --git a/components/gmail/actions/create-draft/create-draft.mjs b/components/gmail/actions/create-draft/create-draft.mjs index f49f472d96a22..7b1d4c0f41407 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.5", + version: "0.1.0", type: "action", props: { gmail, @@ -73,6 +73,18 @@ export default { "mimeType", ], }, + fromEmail: { + propDefinition: [ + gmail, + "fromEmail", + ], + }, + signature: { + propDefinition: [ + gmail, + "signature", + ], + }, }, async run({ $ }) { this.attachmentFilenames = utils.parseArray(this.attachmentFilenames); diff --git a/components/gmail/gmail.app.mjs b/components/gmail/gmail.app.mjs index a313d79147730..73b3e7baee7e7 100644 --- a/components/gmail/gmail.app.mjs +++ b/components/gmail/gmail.app.mjs @@ -118,7 +118,7 @@ export default { signature: { type: "string", label: "Signature", - description: "An HTML signature composed in the Gmail Web UI that will be included in the message", + description: "An HTML signature composed in the Gmail Web UI that will be included in the message. Only works with the `HTML` body type.", optional: true, async options() { const { sendAs } = await this.listSignatures(); @@ -319,6 +319,10 @@ export default { } if (props.bodyType === constants.BODY_TYPES.HTML) { + if (props.signature) { + props.body += props.signature; + } + opts.html = props.body; } else { opts.text = props.body; diff --git a/components/gmail/package.json b/components/gmail/package.json index 5db6e3f772f94..f2507ae772f5e 100644 --- a/components/gmail/package.json +++ b/components/gmail/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/gmail", - "version": "0.3.0", + "version": "0.3.1", "description": "Pipedream Gmail Components", "main": "gmail.app.mjs", "keywords": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b5b5497385c6..172ca08fbe63f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3176,8 +3176,7 @@ importers: components/danny_test_app: {} - components/dappier: - specifiers: {} + components/dappier: {} components/darksky_api: dependencies: