@pipedream/shopify_developer_app 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/actions/add-product-to-custom-collection/add-product-to-custom-collection.mjs +1 -1
  2. package/actions/add-tags/add-tags.mjs +1 -1
  3. package/actions/create-article/create-article.mjs +1 -1
  4. package/actions/create-blog/create-blog.mjs +1 -1
  5. package/actions/create-custom-collection/create-custom-collection.mjs +1 -1
  6. package/actions/create-customer/create-customer.mjs +6 -1
  7. package/actions/create-fulfillment/create-fulfillment.mjs +82 -0
  8. package/actions/create-metafield/create-metafield.mjs +1 -1
  9. package/actions/create-metaobject/create-metaobject.mjs +1 -1
  10. package/actions/create-order/create-order.mjs +7 -2
  11. package/actions/create-page/create-page.mjs +1 -1
  12. package/actions/create-product/create-product.mjs +1 -1
  13. package/actions/create-product-variant/create-product-variant.mjs +1 -1
  14. package/actions/create-smart-collection/create-smart-collection.mjs +1 -1
  15. package/actions/delete-article/delete-article.mjs +1 -1
  16. package/actions/delete-blog/delete-blog.mjs +1 -1
  17. package/actions/delete-metafield/delete-metafield.mjs +1 -1
  18. package/actions/delete-page/delete-page.mjs +1 -1
  19. package/actions/get-articles/get-articles.mjs +1 -1
  20. package/actions/get-metafields/get-metafields.mjs +1 -1
  21. package/actions/get-metaobjects/get-metaobjects.mjs +1 -1
  22. package/actions/get-order/get-order.mjs +7 -2
  23. package/actions/get-pages/get-pages.mjs +1 -1
  24. package/actions/refund-order/refund-order.mjs +105 -0
  25. package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +1 -1
  26. package/actions/search-customers/search-customers.mjs +6 -1
  27. package/actions/search-fulfillment-orders/search-fulfillment-orders.mjs +45 -0
  28. package/actions/search-orders/search-orders.mjs +6 -1
  29. package/actions/search-product-variant/search-product-variant.mjs +1 -1
  30. package/actions/search-products/search-products.mjs +1 -1
  31. package/actions/update-article/update-article.mjs +1 -1
  32. package/actions/update-customer/update-customer.mjs +6 -1
  33. package/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs +73 -0
  34. package/actions/update-inventory-level/update-inventory-level.mjs +1 -1
  35. package/actions/update-metafield/update-metafield.mjs +1 -1
  36. package/actions/update-metaobject/update-metaobject.mjs +1 -1
  37. package/actions/update-page/update-page.mjs +1 -1
  38. package/actions/update-product/update-product.mjs +6 -1
  39. package/actions/update-product-variant/update-product-variant.mjs +1 -1
  40. package/common/mutations.mjs +88 -0
  41. package/common/queries.mjs +47 -0
  42. package/package.json +2 -2
  43. package/shopify_developer_app.app.mjs +72 -1
  44. package/sources/cart-updated/cart-updated.mjs +25 -0
  45. package/sources/draft-order-updated/draft-order-updated.mjs +26 -0
  46. package/sources/draft-order-updated/test-event.mjs +147 -0
  47. package/sources/inventory-level-updated/inventory-level-updated.mjs +25 -0
  48. package/sources/new-abandoned-cart/new-abandoned-cart.mjs +1 -1
  49. package/sources/new-article/new-article.mjs +1 -1
  50. package/sources/new-cancelled-order/new-cancelled-order.mjs +1 -1
  51. package/sources/new-cart-created/new-cart-created.mjs +25 -0
  52. package/sources/new-customer-created/new-customer-created.mjs +1 -1
  53. package/sources/new-draft-order/new-draft-order.mjs +1 -1
  54. package/sources/new-event-emitted/new-event-emitted.mjs +1 -1
  55. package/sources/new-fulfillment-event/new-fulfillment-event.mjs +1 -1
  56. package/sources/new-order-created/new-order-created.mjs +1 -1
  57. package/sources/new-order-fulfilled/new-order-fulfilled.mjs +1 -1
  58. package/sources/new-page/new-page.mjs +1 -1
  59. package/sources/new-paid-order/new-paid-order.mjs +1 -1
  60. package/sources/new-product-created/new-product-created.mjs +1 -1
  61. package/sources/new-product-updated/new-product-updated.mjs +1 -1
  62. package/sources/new-refund-created/new-refund-created.mjs +1 -1
  63. package/sources/new-updated-customer/new-updated-customer.mjs +1 -1
  64. package/sources/new-updated-order/new-updated-order.mjs +1 -1
  65. package/sources/product-added-to-custom-collection/product-added-to-custom-collection.mjs +1 -1
  66. package/sources/shop-update/shop-update.mjs +25 -0
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Product Created (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event for each product added to a store.",
9
- version: "0.0.12",
9
+ version: "0.0.14",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-new-product-updated",
6
6
  name: "New Product Updated (Instant)",
7
7
  description: "Emit new event for each product updated in a store.",
8
- version: "0.0.10",
8
+ version: "0.0.12",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  props: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-new-refund-created",
6
6
  name: "New Refund Created (Instant)",
7
7
  description: "Emit new event when a new refund is created.",
8
- version: "0.0.9",
8
+ version: "0.0.11",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Updated Customer (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event each time a customer's information is updated.",
9
- version: "0.0.12",
9
+ version: "0.0.14",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Updated Order (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event each time an order is updated.",
9
- version: "0.0.12",
9
+ version: "0.0.14",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-product-added-to-custom-collection",
14
- version: "0.0.8",
14
+ version: "0.0.10",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -0,0 +1,25 @@
1
+ import common from "../common/webhook.mjs";
2
+
3
+ export default {
4
+ ...common,
5
+ key: "shopify_developer_app-shop-update",
6
+ name: "Shop Updated (Instant)",
7
+ description: "Emit new event when a shop is updated.",
8
+ version: "0.0.2",
9
+ type: "source",
10
+ dedupe: "unique",
11
+ methods: {
12
+ ...common.methods,
13
+ getTopic() {
14
+ return "SHOP_UPDATE";
15
+ },
16
+ generateMeta(resource) {
17
+ const ts = Date.parse(resource.updated_at);
18
+ return {
19
+ id: `${resource.id}-${ts}`,
20
+ summary: `Shop Updated ${resource.id}`,
21
+ ts,
22
+ };
23
+ },
24
+ },
25
+ };