@pipedream/brevo
Version:
Pipedream Brevo Components
47 lines (45 loc) • 1.05 kB
JavaScript
import options from "../../common/options.mjs";
import common from "../common-webhook.mjs";
import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "brevo-transactional-webhook",
name: "New Transactional Webhook (Instant)",
description: "Emit new event when triggered by a transactional 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.transactionalEventOptions,
},
},
methods: {
...common.methods,
getEventNames() {
return this.events;
},
getHookDescription() {
return this.description;
},
getEventType() {
return "transactional";
},
generateMeta(body) {
const meta = {
...body,
};
return meta;
},
},
sampleEmit,
};