File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed
components/shopify_developer_app Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change @@ -3,24 +3,24 @@ import common from "../common/webhook-metafields.mjs";
33
44export 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+ } ;
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments