From 6350bae0a80fdf9ca6c39436a37181d3545de128 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 26 May 2025 14:17:23 -0400 Subject: [PATCH 1/2] add detailType prop --- .../eventbridge-send-event.mjs | 18 ++++++++++-------- components/aws/package.json | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs b/components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs index 754657f96dc86..12703f1fce4e5 100644 --- a/components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs +++ b/components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs @@ -1,16 +1,12 @@ import aws from "../../aws.app.mjs"; import common from "../../common/common-eventbridge.mjs"; -import { toSingleLineString } from "../../common/utils.mjs"; export default { ...common, key: "aws-eventbridge-send-event", - name: "EventBridge - Send event to Event Bus", - description: toSingleLineString(` - Sends an event to an EventBridge event bus. - [See docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-eventbridge/classes/puteventscommand.html) - `), - version: "0.4.1", + name: "EventBridge - Send Event to Event Bus", + description: "Sends an event to an EventBridge event bus. [See documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eventbridge/command/PutEventsCommand/)", + version: "0.4.2", type: "action", props: { aws: common.props.aws, @@ -23,13 +19,19 @@ export default { ], optional: false, }, + detailType: { + type: "string", + label: "Detail Type", + description: "Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail. Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that does not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.", + optional: true, + }, }, async run({ $ }) { const params = { Entries: [ { Detail: JSON.stringify(this.eventData), - DetailType: Object.keys(this.eventData).join(" "), + DetailType: this.detailType || Object.keys(this.eventData).join(" "), EventBusName: this.eventBusName, Source: "pipedream", }, diff --git a/components/aws/package.json b/components/aws/package.json index d877e074bddb6..2c6204beb39a0 100644 --- a/components/aws/package.json +++ b/components/aws/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/aws", - "version": "0.7.8", + "version": "0.7.9", "description": "Pipedream Aws Components", "main": "aws.app.mjs", "keywords": [ @@ -29,7 +29,7 @@ "@aws-sdk/s3-request-presigner": "^3.609.0", "@aws-sdk/signature-v4-crt": "^3.731.0", "@pipedream/helper_functions": "^0.3.6", - "@pipedream/platform": "^1.6.3", + "@pipedream/platform": "^3.0.3", "adm-zip": "^0.5.10", "dedent": "^1.5.1", "mailparser": "^3.6.6", From 755ad3152b83f5c174b9e951e19480c0d7cf9478 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Mon, 26 May 2025 14:18:26 -0400 Subject: [PATCH 2/2] pnpm-lock.yaml --- pnpm-lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04842669c8cd6..61c18bc8ad087 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1186,8 +1186,8 @@ importers: specifier: ^0.3.6 version: 0.3.13 '@pipedream/platform': - specifier: ^1.6.3 - version: 1.6.6 + specifier: ^3.0.3 + version: 3.0.3 adm-zip: specifier: ^0.5.10 version: 0.5.16