UNPKG

@pipedream/brevo

Version:

Pipedream Brevo Components

47 lines (45 loc) 1.03 kB
import options from "../../common/options.mjs"; import common from "../common-webhook.mjs"; import sampleEmit from "./test-event.mjs"; export default { ...common, key: "brevo-marketing-webhook", name: "New Marketing Webhook (Instant)", description: "Emit new event when triggered by a marketing event", version: "0.0.1", type: "source", dedupe: "unique", props: { ...common.props, description: { type: "string", label: "Description", description: "Description of the webhook.", }, events: { type: "string[]", label: "Events", description: "Events triggering the webhook.", options: options.marketingEventOptions, }, }, methods: { ...common.methods, getEventNames() { return this.events; }, getHookDescription() { return this.description; }, getEventType() { return "marketing"; }, generateMeta(body) { const meta = { ...body, }; return meta; }, }, sampleEmit, };