@pipedream/shopify_developer_app 0.11.0 → 0.12.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 (73) 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/cancel-fulfillment/cancel-fulfillment.mjs +22 -0
  4. package/actions/cancel-fulfillment-order/cancel-fulfillment-order.mjs +22 -0
  5. package/actions/cancel-order/cancel-order.mjs +1 -1
  6. package/actions/create-article/create-article.mjs +1 -1
  7. package/actions/create-blog/create-blog.mjs +1 -1
  8. package/actions/create-custom-collection/create-custom-collection.mjs +1 -1
  9. package/actions/create-customer/create-customer.mjs +1 -1
  10. package/actions/create-fulfillment/create-fulfillment.mjs +1 -1
  11. package/actions/create-gift-card/create-gift-card.mjs +22 -0
  12. package/actions/create-metafield/create-metafield.mjs +1 -1
  13. package/actions/create-metaobject/create-metaobject.mjs +1 -1
  14. package/actions/create-order/create-order.mjs +1 -1
  15. package/actions/create-page/create-page.mjs +1 -1
  16. package/actions/create-product/create-product.mjs +1 -1
  17. package/actions/create-product-variant/create-product-variant.mjs +1 -1
  18. package/actions/create-return/create-return.mjs +22 -0
  19. package/actions/create-smart-collection/create-smart-collection.mjs +1 -1
  20. package/actions/delete-article/delete-article.mjs +1 -1
  21. package/actions/delete-blog/delete-blog.mjs +1 -1
  22. package/actions/delete-metafield/delete-metafield.mjs +1 -1
  23. package/actions/delete-page/delete-page.mjs +1 -1
  24. package/actions/get-articles/get-articles.mjs +1 -1
  25. package/actions/get-metafields/get-metafields.mjs +1 -1
  26. package/actions/get-metaobjects/get-metaobjects.mjs +1 -1
  27. package/actions/get-order/get-order.mjs +1 -1
  28. package/actions/get-pages/get-pages.mjs +1 -1
  29. package/actions/hold-fulfillment-order/hold-fulfillment-order.mjs +22 -0
  30. package/actions/refund-order/refund-order.mjs +1 -1
  31. package/actions/refund-return/refund-return.mjs +22 -0
  32. package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +1 -1
  33. package/actions/search-customers/search-customers.mjs +1 -1
  34. package/actions/search-fulfillment-orders/search-fulfillment-orders.mjs +1 -1
  35. package/actions/search-orders/search-orders.mjs +1 -1
  36. package/actions/search-product-variant/search-product-variant.mjs +1 -1
  37. package/actions/search-products/search-products.mjs +1 -1
  38. package/actions/send-order-invoice/send-order-invoice.mjs +1 -1
  39. package/actions/submit-cancellation-request/submit-cancellation-request.mjs +1 -1
  40. package/actions/update-article/update-article.mjs +1 -1
  41. package/actions/update-customer/update-customer.mjs +1 -1
  42. package/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs +1 -1
  43. package/actions/update-inventory-level/update-inventory-level.mjs +1 -1
  44. package/actions/update-metafield/update-metafield.mjs +1 -1
  45. package/actions/update-metaobject/update-metaobject.mjs +1 -1
  46. package/actions/update-page/update-page.mjs +1 -1
  47. package/actions/update-product/update-product.mjs +1 -1
  48. package/actions/update-product-variant/update-product-variant.mjs +1 -1
  49. package/common/mutations.mjs +109 -0
  50. package/package.json +2 -2
  51. package/shopify_developer_app.app.mjs +18 -0
  52. package/sources/cart-updated/cart-updated.mjs +1 -1
  53. package/sources/draft-order-updated/draft-order-updated.mjs +1 -1
  54. package/sources/inventory-level-updated/inventory-level-updated.mjs +1 -1
  55. package/sources/new-abandoned-cart/new-abandoned-cart.mjs +1 -1
  56. package/sources/new-article/new-article.mjs +1 -1
  57. package/sources/new-cancelled-order/new-cancelled-order.mjs +1 -1
  58. package/sources/new-cart-created/new-cart-created.mjs +1 -1
  59. package/sources/new-customer-created/new-customer-created.mjs +1 -1
  60. package/sources/new-draft-order/new-draft-order.mjs +1 -1
  61. package/sources/new-event-emitted/new-event-emitted.mjs +1 -1
  62. package/sources/new-fulfillment-event/new-fulfillment-event.mjs +1 -1
  63. package/sources/new-order-created/new-order-created.mjs +1 -1
  64. package/sources/new-order-fulfilled/new-order-fulfilled.mjs +1 -1
  65. package/sources/new-page/new-page.mjs +1 -1
  66. package/sources/new-paid-order/new-paid-order.mjs +1 -1
  67. package/sources/new-product-created/new-product-created.mjs +1 -1
  68. package/sources/new-product-updated/new-product-updated.mjs +1 -1
  69. package/sources/new-refund-created/new-refund-created.mjs +1 -1
  70. package/sources/new-updated-customer/new-updated-customer.mjs +1 -1
  71. package/sources/new-updated-order/new-updated-order.mjs +1 -1
  72. package/sources/product-added-to-custom-collection/product-added-to-custom-collection.mjs +1 -1
  73. package/sources/shop-update/shop-update.mjs +1 -1
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-add-product-to-custom-collection",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-add-tags",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/cancel-fulfillment/cancel-fulfillment.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-cancel-fulfillment",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/cancel-fulfillment-order/cancel-fulfillment-order.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-cancel-fulfillment-order",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-cancel-order",
14
- version: "0.0.1",
14
+ version: "0.0.2",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-article",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-blog",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-custom-collection",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "shopify_developer_app-create-customer",
5
5
  name: "Create Customer",
6
6
  description: "Create a new customer. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customercreate)",
7
- version: "0.0.15",
7
+ version: "0.0.16",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "shopify_developer_app-create-fulfillment",
5
5
  name: "Create Fulfillment",
6
6
  description: "Create a fulfillment. [See the documentation](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/fulfillmentcreate)",
7
- version: "0.0.7",
7
+ version: "0.0.8",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/create-gift-card/create-gift-card.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-create-gift-card",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -10,7 +10,7 @@ const {
10
10
  export default {
11
11
  ...others,
12
12
  key: "shopify_developer_app-create-metafield",
13
- version: "0.0.16",
13
+ version: "0.0.17",
14
14
  name,
15
15
  description,
16
16
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-metaobject",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-create-order",
6
6
  name: "Create Order",
7
7
  description: "Creates a new order. For full order object details [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/ordercreate)",
8
- version: "0.0.16",
8
+ version: "0.0.17",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-page",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-product",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-product-variant",
14
- version: "0.0.16",
14
+ version: "0.0.17",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/create-return/create-return.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-create-return",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-create-smart-collection",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-delete-article",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-delete-blog",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -9,7 +9,7 @@ const {
9
9
  export default {
10
10
  ...others,
11
11
  key: "shopify_developer_app-delete-metafield",
12
- version: "0.0.16",
12
+ version: "0.0.17",
13
13
  name,
14
14
  description,
15
15
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-delete-page",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-get-articles",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -8,7 +8,7 @@ const {
8
8
 
9
9
  export default {
10
10
  key: "shopify_developer_app-get-metafields",
11
- version: "0.0.16",
11
+ version: "0.0.17",
12
12
  name,
13
13
  description,
14
14
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-get-metaobjects",
14
- version: "0.0.16",
14
+ version: "0.0.17",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "shopify_developer_app-get-order",
7
7
  name: "Get Order",
8
8
  description: "Retrieve an order by specifying the order ID. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/order)",
9
- version: "0.0.15",
9
+ version: "0.0.16",
10
10
  annotations: {
11
11
  destructiveHint: false,
12
12
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-get-pages",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/hold-fulfillment-order/hold-fulfillment-order.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-hold-fulfillment-order",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-refund-order",
6
6
  name: "Refund Order",
7
7
  description: "Refund an order. [See the documentation](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/refundcreate)",
8
- version: "0.0.8",
8
+ version: "0.0.9",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -0,0 +1,22 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "@pipedream/shopify/actions/refund-return/refund-return.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, shopify);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "shopify_developer_app-refund-return",
14
+ version: "0.0.1",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ shopify,
20
+ ...props,
21
+ },
22
+ };
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-search-custom-collection-by-name",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "shopify_developer_app-search-customers",
5
5
  name: "Search for Customers",
6
6
  description: "Search for a customer or a list of customers. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/customers)",
7
- version: "0.0.15",
7
+ version: "0.0.16",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "shopify_developer_app-search-fulfillment-orders",
5
5
  name: "Search for Fulfillment Orders",
6
6
  description: "Search for a fulfillment order or a list of fulfillment orders. [See the documentation](https://shopify.dev/docs/api/admin-graphql/unstable/queries/fulfillmentorders)",
7
- version: "0.0.7",
7
+ version: "0.0.8",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-search-orders",
6
6
  name: "Search for Orders",
7
7
  description: "Search for an order or a list of orders. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/orders)",
8
- version: "0.0.10",
8
+ version: "0.0.11",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-search-product-variant",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-search-products",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-send-order-invoice",
6
6
  name: "Send Order Invoice",
7
7
  description: "Sends an invoice for an order. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/OrderInvoiceSend)",
8
- version: "0.0.3",
8
+ version: "0.0.4",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-submit-cancellation-request",
14
- version: "0.0.1",
14
+ version: "0.0.2",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-update-article",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "shopify_developer_app-update-customer",
7
7
  name: "Update Customer",
8
8
  description: "Update a existing customer. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerupdate)",
9
- version: "0.0.16",
9
+ version: "0.0.17",
10
10
  annotations: {
11
11
  destructiveHint: true,
12
12
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "shopify_developer_app-update-fulfillment-tracking-info",
5
5
  name: "Update Fulfillment Tracking Info",
6
6
  description: "Update the tracking info for a fulfillment. [See the documentation](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/fulfillmenttrackinginfoupdate)",
7
- version: "0.0.7",
7
+ version: "0.0.8",
8
8
  annotations: {
9
9
  destructiveHint: true,
10
10
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-update-inventory-level",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -9,7 +9,7 @@ const {
9
9
  export default {
10
10
  ...others,
11
11
  key: "shopify_developer_app-update-metafield",
12
- version: "0.0.16",
12
+ version: "0.0.17",
13
13
  name,
14
14
  description,
15
15
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-update-metaobject",
14
- version: "0.0.18",
14
+ version: "0.0.19",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-update-page",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "shopify_developer_app-update-product",
7
7
  name: "Update Product",
8
8
  description: "Update an existing product. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productupdate)",
9
- version: "0.0.16",
9
+ version: "0.0.17",
10
10
  annotations: {
11
11
  destructiveHint: true,
12
12
  openWorldHint: true,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-update-product-variant",
14
- version: "0.0.17",
14
+ version: "0.0.18",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -259,6 +259,109 @@ const FULFILLMENT_ORDER_SUBMIT_CANCELLATION_REQUEST = `
259
259
  }
260
260
  `;
261
261
 
262
+ const GIFT_CARD_CREATE = `
263
+ mutation giftCardCreate($input: GiftCardCreateInput!) {
264
+ giftCardCreate(input: $input) {
265
+ giftCard {
266
+ id
267
+ maskedCode
268
+ lastCharacters
269
+ expiresOn
270
+ note
271
+ }
272
+ giftCardCode
273
+ userErrors {
274
+ field
275
+ message
276
+ }
277
+ }
278
+ }
279
+ `;
280
+
281
+ const RETURN_CREATE = `
282
+ mutation returnCreate($returnInput: ReturnInput!) {
283
+ returnCreate(returnInput: $returnInput) {
284
+ return {
285
+ id
286
+ status
287
+ order {
288
+ id
289
+ }
290
+ }
291
+ userErrors {
292
+ field
293
+ message
294
+ }
295
+ }
296
+ }
297
+ `;
298
+
299
+ const RETURN_REFUND = `
300
+ mutation returnRefund($returnRefundInput: ReturnRefundInput!) {
301
+ returnRefund(returnRefundInput: $returnRefundInput) {
302
+ refund {
303
+ id
304
+ order {
305
+ id
306
+ }
307
+ }
308
+ userErrors {
309
+ field
310
+ message
311
+ }
312
+ }
313
+ }
314
+ `;
315
+
316
+ const FULFILLMENT_CANCEL = `
317
+ mutation fulfillmentCancel($id: ID!) {
318
+ fulfillmentCancel(id: $id) {
319
+ fulfillment {
320
+ id
321
+ status
322
+ }
323
+ userErrors {
324
+ field
325
+ message
326
+ }
327
+ }
328
+ }
329
+ `;
330
+
331
+ const FULFILLMENT_ORDER_CANCEL = `
332
+ mutation fulfillmentOrderCancel($id: ID!) {
333
+ fulfillmentOrderCancel(id: $id) {
334
+ fulfillmentOrder {
335
+ id
336
+ status
337
+ }
338
+ replacementFulfillmentOrder {
339
+ id
340
+ status
341
+ }
342
+ userErrors {
343
+ field
344
+ message
345
+ }
346
+ }
347
+ }
348
+ `;
349
+
350
+ const FULFILLMENT_ORDER_HOLD = `
351
+ mutation fulfillmentOrderHold($fulfillmentHold: FulfillmentOrderHoldInput!, $id: ID!) {
352
+ fulfillmentOrderHold(fulfillmentHold: $fulfillmentHold, id: $id) {
353
+ fulfillmentOrder {
354
+ id
355
+ status
356
+ }
357
+ userErrors {
358
+ field
359
+ message
360
+ }
361
+ }
362
+ }
363
+ `;
364
+
262
365
  export default {
263
366
  CREATE_ORDER,
264
367
  CREATE_CUSTOMER,
@@ -270,4 +373,10 @@ export default {
270
373
  ORDER_INVOICE_SEND,
271
374
  ORDER_CANCEL,
272
375
  FULFILLMENT_ORDER_SUBMIT_CANCELLATION_REQUEST,
376
+ GIFT_CARD_CREATE,
377
+ RETURN_CREATE,
378
+ RETURN_REFUND,
379
+ FULFILLMENT_CANCEL,
380
+ FULFILLMENT_ORDER_CANCEL,
381
+ FULFILLMENT_ORDER_HOLD,
273
382
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/shopify_developer_app",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Pipedream Shopify (Developer App) Components",
5
5
  "main": "shopify_developer_app.app.mjs",
6
6
  "keywords": [
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@pipedream/platform": "^3.1.1",
17
- "@pipedream/shopify": "^0.10.0",
17
+ "@pipedream/shopify": "^0.11.1",
18
18
  "shopify-api-node": "^3.14.2"
19
19
  }
20
20
  }
@@ -226,5 +226,23 @@ export default {
226
226
  variables,
227
227
  );
228
228
  },
229
+ createGiftCard(variables) {
230
+ return this._makeGraphQlRequest(mutations.GIFT_CARD_CREATE, variables);
231
+ },
232
+ createReturn(variables) {
233
+ return this._makeGraphQlRequest(mutations.RETURN_CREATE, variables);
234
+ },
235
+ refundReturn(variables) {
236
+ return this._makeGraphQlRequest(mutations.RETURN_REFUND, variables);
237
+ },
238
+ cancelFulfillment(variables) {
239
+ return this._makeGraphQlRequest(mutations.FULFILLMENT_CANCEL, variables);
240
+ },
241
+ cancelFulfillmentOrder(variables) {
242
+ return this._makeGraphQlRequest(mutations.FULFILLMENT_ORDER_CANCEL, variables);
243
+ },
244
+ holdFulfillmentOrder(variables) {
245
+ return this._makeGraphQlRequest(mutations.FULFILLMENT_ORDER_HOLD, variables);
246
+ },
229
247
  },
230
248
  };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-cart-updated",
6
6
  name: "Cart Updated (Instant)",
7
7
  description: "Emit new event when a cart is updated.",
8
- version: "0.0.7",
8
+ version: "0.0.8",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -7,7 +7,7 @@ export default {
7
7
  name: "Draft Order Updated (Instant)",
8
8
  type: "source",
9
9
  description: "Emit new event for each draft order updated in a store.",
10
- version: "0.0.7",
10
+ version: "0.0.8",
11
11
  dedupe: "unique",
12
12
  methods: {
13
13
  ...common.methods,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-inventory-level-updated",
6
6
  name: "Inventory Level Updated (Instant)",
7
7
  description: "Emit new event when an inventory level is updated.",
8
- version: "0.0.7",
8
+ version: "0.0.8",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-new-abandoned-cart",
14
- version: "0.0.16",
14
+ version: "0.0.17",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, shopify);
11
11
  export default {
12
12
  ...others,
13
13
  key: "shopify_developer_app-new-article",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Cancelled Order (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event each time a new order is cancelled.",
9
- version: "0.0.19",
9
+ version: "0.0.20",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-new-cart-created",
6
6
  name: "New Cart Created (Instant)",
7
7
  description: "Emit new event when a new cart is created.",
8
- version: "0.0.7",
8
+ version: "0.0.8",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Customer Created (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event for each new customer added to a store.",
9
- version: "0.0.19",
9
+ version: "0.0.20",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Draft Order (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event for each new draft order submitted to a store.",
9
- version: "0.0.19",
9
+ version: "0.0.20",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -7,7 +7,7 @@ export default {
7
7
  name: "New Event Emitted (Instant)",
8
8
  type: "source",
9
9
  description: "Emit new event for each new Shopify event.",
10
- version: "0.0.20",
10
+ version: "0.0.21",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Fulfillment Event (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event for each new fulfillment event for a store.",
9
- version: "0.0.17",
9
+ version: "0.0.18",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Order Created (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event for each new order submitted to a store.",
9
- version: "0.0.19",
9
+ version: "0.0.20",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Order Fulfilled (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event whenever an order is fulfilled.",
9
- version: "0.0.16",
9
+ version: "0.0.17",
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-new-page",
14
- version: "0.0.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -6,7 +6,7 @@ export default {
6
6
  name: "New Paid Order (Instant)",
7
7
  type: "source",
8
8
  description: "Emit new event each time a new order is paid.",
9
- version: "0.0.19",
9
+ version: "0.0.20",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -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.19",
9
+ version: "0.0.20",
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.17",
8
+ version: "0.0.18",
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.16",
8
+ version: "0.0.17",
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.19",
9
+ version: "0.0.20",
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.19",
9
+ version: "0.0.20",
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.15",
14
+ version: "0.0.16",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "shopify_developer_app-shop-update",
6
6
  name: "Shop Updated (Instant)",
7
7
  description: "Emit new event when a shop is updated.",
8
- version: "0.0.7",
8
+ version: "0.0.8",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {