@pipedream/shopify_developer_app 0.9.0 → 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.
- package/actions/add-product-to-custom-collection/add-product-to-custom-collection.mjs +1 -1
- package/actions/add-tags/add-tags.mjs +1 -1
- package/actions/create-article/create-article.mjs +1 -1
- package/actions/create-blog/create-blog.mjs +1 -1
- package/actions/create-custom-collection/create-custom-collection.mjs +1 -1
- package/actions/create-customer/create-customer.mjs +6 -1
- package/actions/create-fulfillment/create-fulfillment.mjs +6 -1
- package/actions/create-metafield/create-metafield.mjs +1 -1
- package/actions/create-metaobject/create-metaobject.mjs +1 -1
- package/actions/create-order/create-order.mjs +7 -2
- package/actions/create-page/create-page.mjs +1 -1
- package/actions/create-product/create-product.mjs +1 -1
- package/actions/create-product-variant/create-product-variant.mjs +1 -1
- package/actions/create-smart-collection/create-smart-collection.mjs +1 -1
- package/actions/delete-article/delete-article.mjs +1 -1
- package/actions/delete-blog/delete-blog.mjs +1 -1
- package/actions/delete-metafield/delete-metafield.mjs +1 -1
- package/actions/delete-page/delete-page.mjs +1 -1
- package/actions/get-articles/get-articles.mjs +1 -1
- package/actions/get-metafields/get-metafields.mjs +1 -1
- package/actions/get-metaobjects/get-metaobjects.mjs +1 -1
- package/actions/get-order/get-order.mjs +7 -2
- package/actions/get-pages/get-pages.mjs +1 -1
- package/actions/refund-order/refund-order.mjs +7 -2
- package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +1 -1
- package/actions/search-customers/search-customers.mjs +6 -1
- package/actions/search-fulfillment-orders/search-fulfillment-orders.mjs +6 -1
- package/actions/search-orders/search-orders.mjs +6 -1
- package/actions/search-product-variant/search-product-variant.mjs +1 -1
- package/actions/search-products/search-products.mjs +1 -1
- package/actions/update-article/update-article.mjs +1 -1
- package/actions/update-customer/update-customer.mjs +6 -1
- package/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs +6 -1
- package/actions/update-inventory-level/update-inventory-level.mjs +1 -1
- package/actions/update-metafield/update-metafield.mjs +1 -1
- package/actions/update-metaobject/update-metaobject.mjs +1 -1
- package/actions/update-page/update-page.mjs +1 -1
- package/actions/update-product/update-product.mjs +6 -1
- package/actions/update-product-variant/update-product-variant.mjs +1 -1
- package/package.json +2 -2
- package/sources/cart-updated/cart-updated.mjs +1 -1
- package/sources/draft-order-updated/draft-order-updated.mjs +26 -0
- package/sources/draft-order-updated/test-event.mjs +147 -0
- package/sources/inventory-level-updated/inventory-level-updated.mjs +1 -1
- package/sources/new-abandoned-cart/new-abandoned-cart.mjs +1 -1
- package/sources/new-article/new-article.mjs +1 -1
- package/sources/new-cancelled-order/new-cancelled-order.mjs +1 -1
- package/sources/new-cart-created/new-cart-created.mjs +1 -1
- package/sources/new-customer-created/new-customer-created.mjs +1 -1
- package/sources/new-draft-order/new-draft-order.mjs +1 -1
- package/sources/new-event-emitted/new-event-emitted.mjs +1 -1
- package/sources/new-fulfillment-event/new-fulfillment-event.mjs +1 -1
- package/sources/new-order-created/new-order-created.mjs +1 -1
- package/sources/new-order-fulfilled/new-order-fulfilled.mjs +1 -1
- package/sources/new-page/new-page.mjs +1 -1
- package/sources/new-paid-order/new-paid-order.mjs +1 -1
- package/sources/new-product-created/new-product-created.mjs +1 -1
- package/sources/new-product-updated/new-product-updated.mjs +1 -1
- package/sources/new-refund-created/new-refund-created.mjs +1 -1
- package/sources/new-updated-customer/new-updated-customer.mjs +1 -1
- package/sources/new-updated-order/new-updated-order.mjs +1 -1
- package/sources/product-added-to-custom-collection/product-added-to-custom-collection.mjs +1 -1
- package/sources/shop-update/shop-update.mjs +1 -1
|
@@ -4,7 +4,12 @@ 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.
|
|
7
|
+
version: "0.0.10",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -4,7 +4,12 @@ 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
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import shopify from "../../shopify_developer_app.app.mjs";
|
|
2
1
|
import utils from "@pipedream/shopify/common/utils.mjs";
|
|
2
|
+
import shopify from "../../shopify_developer_app.app.mjs";
|
|
3
3
|
|
|
4
4
|
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.
|
|
8
|
+
version: "0.0.11",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
shopify,
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import shopify from "../../shopify_developer_app.app.mjs";
|
|
2
1
|
import { MAX_LIMIT } from "@pipedream/shopify/common/constants.mjs";
|
|
2
|
+
import shopify from "../../shopify_developer_app.app.mjs";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
key: "shopify_developer_app-get-order",
|
|
6
6
|
name: "Get Order",
|
|
7
7
|
description: "Retrieve an order by specifying the order ID. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/order)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.9",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
shopify,
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import shopify from "../../shopify_developer_app.app.mjs";
|
|
2
1
|
import { MAX_LIMIT } from "@pipedream/shopify/common/constants.mjs";
|
|
2
|
+
import shopify from "../../shopify_developer_app.app.mjs";
|
|
3
3
|
|
|
4
4
|
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
|
+
version: "0.0.3",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
shopify,
|
|
@@ -4,7 +4,12 @@ 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.
|
|
7
|
+
version: "0.0.10",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -4,7 +4,12 @@ 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
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "shopify_developer_app-search-orders",
|
|
5
5
|
name: "Search for Orders",
|
|
6
6
|
description: "Search for an order or a list of orders. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/orders)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.4",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -6,7 +6,12 @@ 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.
|
|
9
|
+
version: "0.0.11",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: true,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
shopify,
|
|
@@ -4,7 +4,12 @@ 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
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
shopify,
|
|
@@ -6,7 +6,12 @@ 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.
|
|
9
|
+
version: "0.0.11",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: true,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
shopify,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/shopify_developer_app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Pipedream Shopify (Developer App) Components",
|
|
5
5
|
"main": "shopify_developer_app.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^3.0
|
|
16
|
+
"@pipedream/platform": "^3.1.0",
|
|
17
17
|
"@pipedream/shopify": "^0.7.0",
|
|
18
18
|
"shopify-api-node": "^3.14.2"
|
|
19
19
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import common from "../common/webhook.mjs";
|
|
2
|
+
import sampleEmit from "./test-event.mjs";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
...common,
|
|
6
|
+
key: "shopify_developer_app-draft-order-updated",
|
|
7
|
+
name: "Draft Order Updated (Instant)",
|
|
8
|
+
type: "source",
|
|
9
|
+
description: "Emit new event for each draft order updated in a store.",
|
|
10
|
+
version: "0.0.1",
|
|
11
|
+
dedupe: "unique",
|
|
12
|
+
methods: {
|
|
13
|
+
...common.methods,
|
|
14
|
+
getTopic() {
|
|
15
|
+
return "DRAFT_ORDERS_UPDATE";
|
|
16
|
+
},
|
|
17
|
+
generateMeta(resource) {
|
|
18
|
+
return {
|
|
19
|
+
id: resource.id,
|
|
20
|
+
summary: `Draft order updated ${resource.id}`,
|
|
21
|
+
ts: Date.parse(resource.created_at),
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
sampleEmit,
|
|
26
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"id": 1234567890,
|
|
3
|
+
"note": null,
|
|
4
|
+
"email": "email@email.com",
|
|
5
|
+
"taxes_included": false,
|
|
6
|
+
"currency": "Currency",
|
|
7
|
+
"invoice_sent_at": null,
|
|
8
|
+
"created_at": "2024-08-21T01:22:42-04:00",
|
|
9
|
+
"updated_at": "2025-10-01T10:22:26-04:00",
|
|
10
|
+
"tax_exempt": false,
|
|
11
|
+
"completed_at": "2025-10-01T10:22:26-04:00",
|
|
12
|
+
"name": "#11",
|
|
13
|
+
"allow_discount_codes_in_checkout?": false,
|
|
14
|
+
"b2b?": false,
|
|
15
|
+
"status": "completed",
|
|
16
|
+
"line_items": [
|
|
17
|
+
{
|
|
18
|
+
"id": 1234567890,
|
|
19
|
+
"variant_id": 1234567890,
|
|
20
|
+
"product_id": 1234567890,
|
|
21
|
+
"title": "Product Title",
|
|
22
|
+
"variant_title": "Variant Title",
|
|
23
|
+
"sku": "1012",
|
|
24
|
+
"vendor": "Vendor Name",
|
|
25
|
+
"quantity": 1,
|
|
26
|
+
"requires_shipping": true,
|
|
27
|
+
"taxable": true,
|
|
28
|
+
"gift_card": false,
|
|
29
|
+
"fulfillment_service": "manual",
|
|
30
|
+
"grams": 5000,
|
|
31
|
+
"tax_lines": [
|
|
32
|
+
{
|
|
33
|
+
"rate": 0.1,
|
|
34
|
+
"title": "VAT",
|
|
35
|
+
"price": "101"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"applied_discount": null,
|
|
39
|
+
"name": "Product Title - Variant Title",
|
|
40
|
+
"properties": [],
|
|
41
|
+
"custom": false,
|
|
42
|
+
"price": "1011",
|
|
43
|
+
"admin_graphql_api_id": "gid://shopify/DraftOrderLineItem/1234567890"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"api_client_id": 1354745,
|
|
47
|
+
"shipping_address": {
|
|
48
|
+
"first_name": "First Name",
|
|
49
|
+
"address1": "123 Address",
|
|
50
|
+
"phone": null,
|
|
51
|
+
"city": "City",
|
|
52
|
+
"zip": null,
|
|
53
|
+
"province": null,
|
|
54
|
+
"country": "Country",
|
|
55
|
+
"last_name": "Last Name",
|
|
56
|
+
"address2": null,
|
|
57
|
+
"company": null,
|
|
58
|
+
"latitude": 14.058324,
|
|
59
|
+
"longitude": 108.277199,
|
|
60
|
+
"name": "First Name Last Name",
|
|
61
|
+
"country_code": "Country",
|
|
62
|
+
"province_code": null
|
|
63
|
+
},
|
|
64
|
+
"billing_address": {
|
|
65
|
+
"first_name": "First Name",
|
|
66
|
+
"address1": "123 Address",
|
|
67
|
+
"phone": null,
|
|
68
|
+
"city": "City",
|
|
69
|
+
"zip": null,
|
|
70
|
+
"province": null,
|
|
71
|
+
"country": "Country",
|
|
72
|
+
"last_name": "Last Name",
|
|
73
|
+
"address2": null,
|
|
74
|
+
"company": null,
|
|
75
|
+
"latitude": 14.058324,
|
|
76
|
+
"longitude": 108.277199,
|
|
77
|
+
"name": "First Name Last Name",
|
|
78
|
+
"country_code": "Country",
|
|
79
|
+
"province_code": null
|
|
80
|
+
},
|
|
81
|
+
"invoice_url": "https://vendor-name.myshopify.com/1234567890/invoices/1234567890",
|
|
82
|
+
"created_on_api_version_handle": null,
|
|
83
|
+
"applied_discount": null,
|
|
84
|
+
"order_id": 1234567890,
|
|
85
|
+
"shipping_line": null,
|
|
86
|
+
"tax_lines": [
|
|
87
|
+
{
|
|
88
|
+
"rate": 0.1,
|
|
89
|
+
"title": "VAT",
|
|
90
|
+
"price": "101"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"tags": "",
|
|
94
|
+
"note_attributes": [],
|
|
95
|
+
"total_price": "1112",
|
|
96
|
+
"subtotal_price": "1011",
|
|
97
|
+
"total_tax": "101",
|
|
98
|
+
"payment_terms": null,
|
|
99
|
+
"admin_graphql_api_id": "gid://shopify/DraftOrder/1160212185373",
|
|
100
|
+
"customer": {
|
|
101
|
+
"id": 1234567890,
|
|
102
|
+
"created_at": "2023-11-12T22:15:55-05:00",
|
|
103
|
+
"updated_at": "2025-10-01T10:22:26-04:00",
|
|
104
|
+
"first_name": "First Name",
|
|
105
|
+
"last_name": "Last Name",
|
|
106
|
+
"orders_count": 8,
|
|
107
|
+
"state": "disabled",
|
|
108
|
+
"total_spent": "12345.00",
|
|
109
|
+
"last_order_id": 1234567890,
|
|
110
|
+
"note": null,
|
|
111
|
+
"verified_email": true,
|
|
112
|
+
"multipass_identifier": null,
|
|
113
|
+
"tax_exempt": false,
|
|
114
|
+
"tags": "",
|
|
115
|
+
"last_order_name": "#11",
|
|
116
|
+
"email": "email@email.com",
|
|
117
|
+
"phone": null,
|
|
118
|
+
"currency": "Currency",
|
|
119
|
+
"tax_exemptions": [],
|
|
120
|
+
"email_marketing_consent": {
|
|
121
|
+
"state": "not_subscribed",
|
|
122
|
+
"opt_in_level": "single_opt_in",
|
|
123
|
+
"consent_updated_at": null
|
|
124
|
+
},
|
|
125
|
+
"sms_marketing_consent": null,
|
|
126
|
+
"admin_graphql_api_id": "gid://shopify/Customer/1234567890",
|
|
127
|
+
"default_address": {
|
|
128
|
+
"id": 1234567890,
|
|
129
|
+
"customer_id": 1234567890,
|
|
130
|
+
"first_name": "First Name",
|
|
131
|
+
"last_name": "Last Name",
|
|
132
|
+
"company": null,
|
|
133
|
+
"address1": "123 Address",
|
|
134
|
+
"address2": null,
|
|
135
|
+
"city": "City",
|
|
136
|
+
"province": null,
|
|
137
|
+
"country": "Country",
|
|
138
|
+
"zip": null,
|
|
139
|
+
"phone": null,
|
|
140
|
+
"name": "First Name Last Name",
|
|
141
|
+
"province_code": null,
|
|
142
|
+
"country_code": "Country",
|
|
143
|
+
"country_name": "Country",
|
|
144
|
+
"default": true
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -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.
|
|
8
|
+
version: "0.0.2",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
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.
|
|
8
|
+
version: "0.0.12",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|