Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/shopify_developer_app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/shopify_developer_app",
"version": "0.4.1",
"version": "0.5.0",
"description": "Pipedream Shopify (Developer App) Components",
"main": "shopify_developer_app.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

export default {
...common,
key: "shopify_developer_app-new-shipment",
name: "New Shipment (Instant)",
key: "shopify_developer_app-new-fulfillment-event",
name: "New Fulfillment Event (Instant)",
type: "source",
description: "Emit new event for each new fulfillment event for a store.",
version: "0.0.4",
version: "0.0.1",
dedupe: "unique",
methods: {
...common.methods,
getTopic() {
return constants.EVENT_TOPIC.ORDERS_FULFILLED;
return constants.EVENT_TOPIC.FULFILLMENT_EVENTS_CREATE;
},
generateMeta(resource) {
const ts = Date.parse(resource.updated_at);
return {
id: ts,
summary: `New Shipped Order ${resource.id}.`,
summary: `New Fulfillment Event ${resource.id}.`,
ts,
};
},
},
};
};

Check failure on line 26 in components/shopify_developer_app/sources/new-fulfillment-event/new-fulfillment-event.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Newline required at end of file but not found
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import constants from "../common/constants.mjs";
import common from "../common/webhook-metafields.mjs";

export default {
...common,
key: "shopify_developer_app-new-order-fulfilled",
name: "New Order Fulfilled (Instant)",
type: "source",
description: "Emit new event whenever an order is fulfilled.",
version: "0.0.1",
dedupe: "unique",
methods: {
...common.methods,
getTopic() {
return constants.EVENT_TOPIC.ORDERS_FULFILLED;
},
generateMeta(resource) {
const ts = Date.parse(resource.updated_at);
return {
id: ts,
summary: `New Fulfilled Order ${resource.id}.`,
ts,
};
},
},
};
Loading