Skip to content

Commit 48a17b6

Browse files
committed
[Deprecation] Xola - Deprecated order.* sources and introduced purchase.* sources
1 parent d20d528 commit 48a17b6

File tree

10 files changed

+1707
-7
lines changed

10 files changed

+1707
-7
lines changed

components/xola/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/xola",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Pipedream Xola Components",
55
"main": "xola.app.mjs",
66
"keywords": [

components/xola/sources/new-order-created-instant/new-order-created-instant.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default {
55
...common,
66
key: "xola-new-order-created-instant",
77
name: "New Order Created (Instant)",
8-
description: "Emit new event when a new order is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
9-
version: "0.0.1",
8+
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.**",
9+
version: "0.0.2",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import common from "../common/webhook.mjs";
2+
import sampleEmit from "./test-event.mjs";
3+
4+
export default {
5+
...common,
6+
key: "xola-new-purchase-created-instant",
7+
name: "New Purchase Created (Instant)",
8+
description: "Emit new event when a new purchase is created. [See the documentation](https://developers.xola.com/reference/webhook-introduction)",
9+
version: "0.0.1",
10+
type: "source",
11+
dedupe: "unique",
12+
methods: {
13+
...common.methods,
14+
getEventName() {
15+
return "purchase.create";
16+
},
17+
generateMeta(body) {
18+
const { data } = body;
19+
return {
20+
id: data.id,
21+
summary: `New Purchase Created ${data.id}`,
22+
ts: Date.now(),
23+
};
24+
},
25+
},
26+
sampleEmit,
27+
};

0 commit comments

Comments
 (0)