Skip to content

Commit c0edb4b

Browse files
15819 feature sendgrid attachment props (#15842)
* [FEATURE] SendGrid - Attachment props #15819 Actions - Send Email Single Recipient - Send Email Multiple Recipients * pnpm update * some adjusts * some adjusts * pnpm update * some adjusts * Update components/sendgrid/actions/send-email-single-recipient/send-email-single-recipient.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent a60f0f8 commit c0edb4b

File tree

26 files changed

+149
-72
lines changed

26 files changed

+149
-72
lines changed

components/sendgrid/actions/add-email-to-global-suppression/add-email-to-global-suppression.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-add-email-to-global-suppression",
66
name: "Add Email to Global Suppression",
77
description: "Allows you to add one or more email addresses to the global suppressions group. [See the docs here](https://sendgrid.api-docs.io/v3.0/suppressions-global-suppressions/add-recipient-addresses-to-the-global-suppression-group)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

components/sendgrid/actions/add-or-update-contact/add-or-update-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "sendgrid-add-or-update-contact",
77
name: "Add or Update Contact",
88
description: "Adds or updates a contact. [See the docs here](https://docs.sendgrid.com/api-reference/contacts/add-or-update-a-contact)",
9-
version: "0.0.4",
9+
version: "0.0.5",
1010
type: "action",
1111
props: {
1212
...common.props,

components/sendgrid/actions/common/common.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ export default {
9393
* @param {object} value the value to check for returning `undefined`.
9494
*/
9595
convertEmptyStringToUndefined(value) {
96+
if (Array.isArray(value) && value.length === 0) {
97+
return undefined;
98+
}
9699
if (value === "" || value === null) {
97100
return undefined;
98101
}
@@ -171,6 +174,11 @@ export default {
171174
}
172175
return asmConfig;
173176
},
174-
177+
checkTmp(filename) {
178+
if (!filename.startsWith("/tmp")) {
179+
return `/tmp/${filename}`;
180+
}
181+
return filename;
182+
},
175183
},
176184
};

components/sendgrid/actions/create-contact-list/create-contact-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-create-contact-list",
66
name: "Create Contact List",
77
description: "Allows you to create a new contact list. [See the docs here](https://docs.sendgrid.com/api-reference/lists/create-list)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

components/sendgrid/actions/create-send/create-send.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "sendgrid-create-send",
88
name: "Create Send",
99
description: "Create a single send. [See the docs here](https://www.twilio.com/docs/sendgrid/api-reference/single-sends/create-single-send)",
10-
version: "0.0.1",
10+
version: "0.0.2",
1111
type: "action",
1212
props: {
1313
...common.props,

components/sendgrid/actions/delete-blocks/delete-blocks.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-delete-blocks",
66
name: "Delete Blocks",
77
description: "Allows you to delete all email addresses on your blocks list. [See the docs here](https://docs.sendgrid.com/api-reference/blocks-api/delete-blocks)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

components/sendgrid/actions/delete-bounces/delete-bounces.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-delete-bounces",
66
name: "Delete Bounces",
77
description: "Allows you to delete all emails on your bounces list. [See the docs here](https://docs.sendgrid.com/api-reference/bounces-api/delete-bounces)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

components/sendgrid/actions/delete-contacts/delete-contacts.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-delete-contacts",
66
name: "Delete Contacts",
77
description: "Allows you to delete one or more contacts. [See the docs here](https://docs.sendgrid.com/api-reference/contacts/delete-contacts)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

components/sendgrid/actions/delete-global-suppression/delete-global-suppression.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "sendgrid-delete-global-suppression",
77
name: "Delete Global Suppression",
88
description: "Allows you to remove an email address from the global suppressions group. [See the docs here](https://docs.sendgrid.com/api-reference/suppressions-global-suppressions/delete-a-global-suppression)",
9-
version: "0.0.4",
9+
version: "0.0.5",
1010
type: "action",
1111
props: {
1212
...common.props,

components/sendgrid/actions/delete-list/delete-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "sendgrid-delete-list",
66
name: "Delete List",
77
description: "Allows you to delete a specific contact list. [See the docs here](https://docs.sendgrid.com/api-reference/lists/delete-a-list)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
type: "action",
1010
props: {
1111
...common.props,

0 commit comments

Comments
 (0)