@pipedream/shopify_developer_app 0.7.1 → 0.8.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 +1 -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 +1 -1
- 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 +1 -1
- package/actions/get-pages/get-pages.mjs +1 -1
- package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +1 -1
- package/actions/search-customers/search-customers.mjs +1 -1
- package/actions/search-orders/search-orders.mjs +40 -0
- 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 +1 -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 +1 -1
- package/actions/update-product-variant/update-product-variant.mjs +1 -1
- package/common/queries.mjs +65 -2
- package/package.json +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-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
|
@@ -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.
|
|
7
|
+
version: "0.0.7",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
shopify,
|
|
@@ -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.
|
|
8
|
+
version: "0.0.7",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
shopify,
|
|
@@ -5,7 +5,7 @@ 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.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
shopify,
|
|
@@ -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.
|
|
7
|
+
version: "0.0.7",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
shopify,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import shopify from "../../shopify_developer_app.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "shopify_developer_app-search-orders",
|
|
5
|
+
name: "Search for Orders",
|
|
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.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
props: {
|
|
10
|
+
shopify,
|
|
11
|
+
query: {
|
|
12
|
+
type: "string",
|
|
13
|
+
label: "Query",
|
|
14
|
+
description: "The search query",
|
|
15
|
+
optional: true,
|
|
16
|
+
},
|
|
17
|
+
max: {
|
|
18
|
+
type: "integer",
|
|
19
|
+
label: "Max Records",
|
|
20
|
+
description: "Optionally limit the maximum number of records to return. Leave blank to retrieve all records.",
|
|
21
|
+
optional: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
async run({ $ }) {
|
|
25
|
+
const orders = await this.shopify.getPaginated({
|
|
26
|
+
resourceFn: this.shopify.listOrders,
|
|
27
|
+
resourceKeys: [
|
|
28
|
+
"orders",
|
|
29
|
+
],
|
|
30
|
+
variables: {
|
|
31
|
+
query: this.query,
|
|
32
|
+
},
|
|
33
|
+
max: this.max,
|
|
34
|
+
});
|
|
35
|
+
$.export("$summary", `Found ${orders.length} order${orders.length === 1
|
|
36
|
+
? ""
|
|
37
|
+
: "s"}`);
|
|
38
|
+
return orders;
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -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.
|
|
9
|
+
version: "0.0.8",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
shopify,
|
|
@@ -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.
|
|
9
|
+
version: "0.0.8",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
shopify,
|
package/common/queries.mjs
CHANGED
|
@@ -14,6 +14,30 @@ const GET_ORDER = `
|
|
|
14
14
|
endCursor
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
customer {
|
|
18
|
+
id
|
|
19
|
+
displayName
|
|
20
|
+
email
|
|
21
|
+
phone
|
|
22
|
+
addresses (first: $first) {
|
|
23
|
+
address1
|
|
24
|
+
address2
|
|
25
|
+
city
|
|
26
|
+
zip
|
|
27
|
+
country
|
|
28
|
+
company
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
totalPriceSet {
|
|
32
|
+
shopMoney {
|
|
33
|
+
amount
|
|
34
|
+
currencyCode
|
|
35
|
+
}
|
|
36
|
+
presentmentMoney {
|
|
37
|
+
amount
|
|
38
|
+
currencyCode
|
|
39
|
+
}
|
|
40
|
+
}
|
|
17
41
|
suggestedRefund(refundLineItems: $refundLineItems) {
|
|
18
42
|
subtotalSet {
|
|
19
43
|
shopMoney {
|
|
@@ -104,11 +128,35 @@ const GET_DRAFT_ORDER = `
|
|
|
104
128
|
`;
|
|
105
129
|
|
|
106
130
|
const LIST_ORDERS = `
|
|
107
|
-
query ($first: Int, $after: String, $reverse: Boolean){
|
|
108
|
-
orders(first: $first, after: $after, reverse: $reverse) {
|
|
131
|
+
query ($first: Int, $after: String, $reverse: Boolean, $query: String){
|
|
132
|
+
orders(first: $first, after: $after, reverse: $reverse, query: $query) {
|
|
109
133
|
nodes {
|
|
110
134
|
id
|
|
111
135
|
updatedAt
|
|
136
|
+
customer {
|
|
137
|
+
id
|
|
138
|
+
displayName
|
|
139
|
+
email
|
|
140
|
+
phone
|
|
141
|
+
addresses (first: $first) {
|
|
142
|
+
address1
|
|
143
|
+
address2
|
|
144
|
+
city
|
|
145
|
+
zip
|
|
146
|
+
country
|
|
147
|
+
company
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
totalPriceSet {
|
|
151
|
+
shopMoney {
|
|
152
|
+
amount
|
|
153
|
+
currencyCode
|
|
154
|
+
}
|
|
155
|
+
presentmentMoney {
|
|
156
|
+
amount
|
|
157
|
+
currencyCode
|
|
158
|
+
}
|
|
159
|
+
}
|
|
112
160
|
metafields (first: $first) {
|
|
113
161
|
nodes {
|
|
114
162
|
id
|
|
@@ -154,6 +202,21 @@ const LIST_CUSTOMERS = `
|
|
|
154
202
|
nodes {
|
|
155
203
|
id
|
|
156
204
|
displayName
|
|
205
|
+
email
|
|
206
|
+
phone
|
|
207
|
+
addresses (first: $first) {
|
|
208
|
+
address1
|
|
209
|
+
address2
|
|
210
|
+
city
|
|
211
|
+
country
|
|
212
|
+
company
|
|
213
|
+
}
|
|
214
|
+
orders (first: $first) {
|
|
215
|
+
nodes {
|
|
216
|
+
id
|
|
217
|
+
createdAt
|
|
218
|
+
}
|
|
219
|
+
}
|
|
157
220
|
metafields (first: $first) {
|
|
158
221
|
nodes {
|
|
159
222
|
id
|
package/package.json
CHANGED
|
@@ -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.9",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|