Skip to content

Commit 12d0ac1

Browse files
committed
trigger updates
1 parent 8cdf895 commit 12d0ac1

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

components/shopify_developer_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/shopify_developer_app",
3-
"version": "0.4.1",
3+
"version": "0.5.0",
44
"description": "Pipedream Shopify (Developer App) Components",
55
"main": "shopify_developer_app.app.mjs",
66
"keywords": [

components/shopify_developer_app/sources/new-shipment/new-shipment.mjs renamed to components/shopify_developer_app/sources/new-fulfillment-event/new-fulfillment-event.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ import common from "../common/webhook-metafields.mjs";
33

44
export default {
55
...common,
6-
key: "shopify_developer_app-new-shipment",
7-
name: "New Shipment (Instant)",
6+
key: "shopify_developer_app-new-fulfillment-event",
7+
name: "New Fulfillment Event (Instant)",
88
type: "source",
99
description: "Emit new event for each new fulfillment event for a store.",
10-
version: "0.0.4",
10+
version: "0.0.1",
1111
dedupe: "unique",
1212
methods: {
1313
...common.methods,
1414
getTopic() {
15-
return constants.EVENT_TOPIC.ORDERS_FULFILLED;
15+
return constants.EVENT_TOPIC.FULFILLMENT_EVENTS_CREATE;
1616
},
1717
generateMeta(resource) {
1818
const ts = Date.parse(resource.updated_at);
1919
return {
2020
id: ts,
21-
summary: `New Shipped Order ${resource.id}.`,
21+
summary: `New Fulfillment Event ${resource.id}.`,
2222
ts,
2323
};
2424
},
2525
},
26-
};
26+
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import constants from "../common/constants.mjs";
2+
import common from "../common/webhook-metafields.mjs";
3+
4+
export default {
5+
...common,
6+
key: "shopify_developer_app-new-order-fulfilled",
7+
name: "New Order Fulfilled (Instant)",
8+
type: "source",
9+
description: "Emit new event whenever an order is fulfilled.",
10+
version: "0.0.1",
11+
dedupe: "unique",
12+
methods: {
13+
...common.methods,
14+
getTopic() {
15+
return constants.EVENT_TOPIC.ORDERS_FULFILLED;
16+
},
17+
generateMeta(resource) {
18+
const ts = Date.parse(resource.updated_at);
19+
return {
20+
id: ts,
21+
summary: `New Fulfilled Order ${resource.id}.`,
22+
ts,
23+
};
24+
},
25+
},
26+
};

0 commit comments

Comments
 (0)