Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/xola/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/xola",
"version": "0.1.0",
"version": "0.2.0",
"description": "Pipedream Xola Components",
"main": "xola.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default {
...common,
key: "xola-new-order-created-instant",
name: "New Order Created (Instant)",
description: "Emit new event when a new order is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
version: "0.0.1",
description: "Emit new event when a new order is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction). **This source has been deprecated. Please use the 'New Purchase Created (Instant)' source instead.**",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import common from "../common/webhook.mjs";
import sampleEmit from "./test-event.mjs";

export default {
...common,
key: "xola-new-purchase-created-instant",
name: "New Purchase Created (Instant)",
description: "Emit new event when a new purchase is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
version: "0.0.1",
type: "source",
dedupe: "unique",
methods: {
...common.methods,
getEventName() {
return "purchase.create";
},
generateMeta(body) {
const { data } = body;
return {
id: data.id,
summary: `New Purchase Created ${data.id}`,
ts: Date.now(),
};
},
},
sampleEmit,
};
Loading
Loading