@pipedream/shopify_developer_app 0.7.1 → 0.8.1
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 +604 -16
- 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.8",
|
|
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.8",
|
|
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.6",
|
|
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.8",
|
|
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.2",
|
|
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.9",
|
|
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.9",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
shopify,
|
package/common/queries.mjs
CHANGED
|
@@ -1,21 +1,306 @@
|
|
|
1
1
|
const GET_ORDER = `
|
|
2
|
-
query
|
|
2
|
+
query GetOrder($id: ID!, $first: Int, $after: String) {
|
|
3
3
|
order(id: $id) {
|
|
4
4
|
id
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
name
|
|
6
|
+
createdAt
|
|
7
|
+
updatedAt
|
|
8
|
+
processedAt
|
|
9
|
+
cancelledAt
|
|
10
|
+
cancelReason
|
|
11
|
+
closedAt
|
|
12
|
+
confirmed
|
|
13
|
+
note
|
|
14
|
+
tags
|
|
15
|
+
test
|
|
16
|
+
currencyCode
|
|
17
|
+
displayFinancialStatus
|
|
18
|
+
displayFulfillmentStatus
|
|
19
|
+
closed
|
|
20
|
+
requiresShipping
|
|
21
|
+
riskLevel
|
|
22
|
+
customerAcceptsMarketing
|
|
23
|
+
paymentGatewayNames
|
|
24
|
+
|
|
25
|
+
totalPriceSet {
|
|
26
|
+
shopMoney {
|
|
27
|
+
amount
|
|
28
|
+
currencyCode
|
|
29
|
+
}
|
|
30
|
+
presentmentMoney {
|
|
31
|
+
amount
|
|
32
|
+
currencyCode
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
subtotalPriceSet {
|
|
37
|
+
shopMoney {
|
|
38
|
+
amount
|
|
39
|
+
currencyCode
|
|
40
|
+
}
|
|
41
|
+
presentmentMoney {
|
|
42
|
+
amount
|
|
43
|
+
currencyCode
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
currentTotalPriceSet {
|
|
48
|
+
shopMoney {
|
|
49
|
+
amount
|
|
50
|
+
currencyCode
|
|
51
|
+
}
|
|
52
|
+
presentmentMoney {
|
|
53
|
+
amount
|
|
54
|
+
currencyCode
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
totalDiscountsSet {
|
|
59
|
+
shopMoney {
|
|
60
|
+
amount
|
|
61
|
+
currencyCode
|
|
62
|
+
}
|
|
63
|
+
presentmentMoney {
|
|
64
|
+
amount
|
|
65
|
+
currencyCode
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
totalShippingPriceSet {
|
|
70
|
+
shopMoney {
|
|
71
|
+
amount
|
|
72
|
+
currencyCode
|
|
73
|
+
}
|
|
74
|
+
presentmentMoney {
|
|
75
|
+
amount
|
|
76
|
+
currencyCode
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
totalTaxSet {
|
|
81
|
+
shopMoney {
|
|
82
|
+
amount
|
|
83
|
+
currencyCode
|
|
84
|
+
}
|
|
85
|
+
presentmentMoney {
|
|
86
|
+
amount
|
|
87
|
+
currencyCode
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
customer {
|
|
92
|
+
id
|
|
93
|
+
displayName
|
|
94
|
+
firstName
|
|
95
|
+
lastName
|
|
96
|
+
email
|
|
97
|
+
phone
|
|
98
|
+
note
|
|
99
|
+
createdAt
|
|
100
|
+
updatedAt
|
|
101
|
+
verifiedEmail
|
|
102
|
+
tags
|
|
103
|
+
defaultAddress {
|
|
7
104
|
id
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
105
|
+
address1
|
|
106
|
+
address2
|
|
107
|
+
city
|
|
108
|
+
province
|
|
109
|
+
zip
|
|
110
|
+
country
|
|
111
|
+
countryCodeV2
|
|
112
|
+
company
|
|
113
|
+
firstName
|
|
114
|
+
lastName
|
|
115
|
+
phone
|
|
12
116
|
}
|
|
13
|
-
|
|
14
|
-
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
billingAddress {
|
|
120
|
+
address1
|
|
121
|
+
address2
|
|
122
|
+
city
|
|
123
|
+
province
|
|
124
|
+
zip
|
|
125
|
+
country
|
|
126
|
+
countryCodeV2
|
|
127
|
+
company
|
|
128
|
+
firstName
|
|
129
|
+
lastName
|
|
130
|
+
phone
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
shippingAddress {
|
|
134
|
+
address1
|
|
135
|
+
address2
|
|
136
|
+
city
|
|
137
|
+
province
|
|
138
|
+
zip
|
|
139
|
+
country
|
|
140
|
+
countryCodeV2
|
|
141
|
+
company
|
|
142
|
+
firstName
|
|
143
|
+
lastName
|
|
144
|
+
phone
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
lineItems(first: 250) {
|
|
148
|
+
edges {
|
|
149
|
+
node {
|
|
150
|
+
id
|
|
151
|
+
title
|
|
152
|
+
quantity
|
|
153
|
+
variantTitle
|
|
154
|
+
vendor
|
|
155
|
+
fulfillmentStatus
|
|
156
|
+
fulfillableQuantity
|
|
157
|
+
refundableQuantity
|
|
158
|
+
requiresShipping
|
|
159
|
+
restockable
|
|
160
|
+
|
|
161
|
+
originalUnitPriceSet {
|
|
162
|
+
shopMoney {
|
|
163
|
+
amount
|
|
164
|
+
currencyCode
|
|
165
|
+
}
|
|
166
|
+
presentmentMoney {
|
|
167
|
+
amount
|
|
168
|
+
currencyCode
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
discountedUnitPriceSet {
|
|
173
|
+
shopMoney {
|
|
174
|
+
amount
|
|
175
|
+
currencyCode
|
|
176
|
+
}
|
|
177
|
+
presentmentMoney {
|
|
178
|
+
amount
|
|
179
|
+
currencyCode
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
totalDiscountSet {
|
|
184
|
+
shopMoney {
|
|
185
|
+
amount
|
|
186
|
+
currencyCode
|
|
187
|
+
}
|
|
188
|
+
presentmentMoney {
|
|
189
|
+
amount
|
|
190
|
+
currencyCode
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
variant {
|
|
195
|
+
id
|
|
196
|
+
title
|
|
197
|
+
sku
|
|
198
|
+
barcode
|
|
199
|
+
inventoryItem {
|
|
200
|
+
id
|
|
201
|
+
measurement {
|
|
202
|
+
weight {
|
|
203
|
+
value
|
|
204
|
+
unit
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
inventoryQuantity
|
|
209
|
+
price
|
|
210
|
+
compareAtPrice
|
|
211
|
+
availableForSale
|
|
212
|
+
image {
|
|
213
|
+
url
|
|
214
|
+
altText
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
product {
|
|
219
|
+
id
|
|
220
|
+
title
|
|
221
|
+
handle
|
|
222
|
+
vendor
|
|
223
|
+
productType
|
|
224
|
+
tags
|
|
225
|
+
status
|
|
226
|
+
createdAt
|
|
227
|
+
updatedAt
|
|
228
|
+
images(first: 1) {
|
|
229
|
+
edges {
|
|
230
|
+
node {
|
|
231
|
+
url
|
|
232
|
+
altText
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
taxLines {
|
|
239
|
+
title
|
|
240
|
+
rate
|
|
241
|
+
ratePercentage
|
|
242
|
+
priceSet {
|
|
243
|
+
shopMoney {
|
|
244
|
+
amount
|
|
245
|
+
currencyCode
|
|
246
|
+
}
|
|
247
|
+
presentmentMoney {
|
|
248
|
+
amount
|
|
249
|
+
currencyCode
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
discountAllocations {
|
|
255
|
+
allocatedAmountSet {
|
|
256
|
+
shopMoney {
|
|
257
|
+
amount
|
|
258
|
+
currencyCode
|
|
259
|
+
}
|
|
260
|
+
presentmentMoney {
|
|
261
|
+
amount
|
|
262
|
+
currencyCode
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
discountApplication {
|
|
266
|
+
... on DiscountCodeApplication {
|
|
267
|
+
code
|
|
268
|
+
}
|
|
269
|
+
... on AutomaticDiscountApplication {
|
|
270
|
+
title
|
|
271
|
+
}
|
|
272
|
+
... on ManualDiscountApplication {
|
|
273
|
+
title
|
|
274
|
+
description
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
15
279
|
}
|
|
16
280
|
}
|
|
17
|
-
|
|
18
|
-
|
|
281
|
+
|
|
282
|
+
shippingLine {
|
|
283
|
+
title
|
|
284
|
+
code
|
|
285
|
+
source
|
|
286
|
+
carrierIdentifier
|
|
287
|
+
requestedFulfillmentService {
|
|
288
|
+
id
|
|
289
|
+
serviceName
|
|
290
|
+
handle
|
|
291
|
+
}
|
|
292
|
+
deliveryCategory
|
|
293
|
+
originalPriceSet {
|
|
294
|
+
shopMoney {
|
|
295
|
+
amount
|
|
296
|
+
currencyCode
|
|
297
|
+
}
|
|
298
|
+
presentmentMoney {
|
|
299
|
+
amount
|
|
300
|
+
currencyCode
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
discountedPriceSet {
|
|
19
304
|
shopMoney {
|
|
20
305
|
amount
|
|
21
306
|
currencyCode
|
|
@@ -25,11 +310,166 @@ const GET_ORDER = `
|
|
|
25
310
|
currencyCode
|
|
26
311
|
}
|
|
27
312
|
}
|
|
28
|
-
|
|
29
|
-
|
|
313
|
+
taxLines {
|
|
314
|
+
title
|
|
315
|
+
rate
|
|
316
|
+
ratePercentage
|
|
317
|
+
priceSet {
|
|
318
|
+
shopMoney {
|
|
319
|
+
amount
|
|
320
|
+
currencyCode
|
|
321
|
+
}
|
|
322
|
+
presentmentMoney {
|
|
323
|
+
amount
|
|
324
|
+
currencyCode
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
fulfillments {
|
|
331
|
+
id
|
|
332
|
+
status
|
|
333
|
+
displayStatus
|
|
334
|
+
createdAt
|
|
335
|
+
updatedAt
|
|
336
|
+
estimatedDeliveryAt
|
|
337
|
+
inTransitAt
|
|
338
|
+
deliveredAt
|
|
339
|
+
service {
|
|
340
|
+
id
|
|
341
|
+
serviceName
|
|
342
|
+
handle
|
|
343
|
+
}
|
|
344
|
+
fulfillmentLineItems(first: 250) {
|
|
345
|
+
edges {
|
|
346
|
+
node {
|
|
347
|
+
id
|
|
348
|
+
quantity
|
|
349
|
+
lineItem {
|
|
350
|
+
id
|
|
351
|
+
title
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
transactions(first: 250) {
|
|
359
|
+
id
|
|
360
|
+
status
|
|
361
|
+
kind
|
|
362
|
+
gateway
|
|
363
|
+
test
|
|
364
|
+
createdAt
|
|
365
|
+
processedAt
|
|
366
|
+
amountSet {
|
|
367
|
+
shopMoney {
|
|
368
|
+
amount
|
|
369
|
+
currencyCode
|
|
370
|
+
}
|
|
371
|
+
presentmentMoney {
|
|
372
|
+
amount
|
|
373
|
+
currencyCode
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
fees {
|
|
377
|
+
amount {
|
|
378
|
+
amount
|
|
379
|
+
currencyCode
|
|
380
|
+
}
|
|
381
|
+
flatFee {
|
|
382
|
+
amount
|
|
383
|
+
currencyCode
|
|
384
|
+
}
|
|
385
|
+
rate
|
|
386
|
+
rateName
|
|
387
|
+
type
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
refunds {
|
|
392
|
+
id
|
|
393
|
+
createdAt
|
|
394
|
+
note
|
|
395
|
+
totalRefundedSet {
|
|
396
|
+
shopMoney {
|
|
397
|
+
amount
|
|
398
|
+
currencyCode
|
|
399
|
+
}
|
|
400
|
+
presentmentMoney {
|
|
401
|
+
amount
|
|
402
|
+
currencyCode
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
refundLineItems(first: 250) {
|
|
406
|
+
edges {
|
|
407
|
+
node {
|
|
408
|
+
id
|
|
409
|
+
quantity
|
|
410
|
+
restockType
|
|
411
|
+
location {
|
|
412
|
+
id
|
|
413
|
+
name
|
|
414
|
+
}
|
|
415
|
+
lineItem {
|
|
416
|
+
id
|
|
417
|
+
title
|
|
418
|
+
quantity
|
|
419
|
+
}
|
|
420
|
+
subtotalSet {
|
|
421
|
+
shopMoney {
|
|
422
|
+
amount
|
|
423
|
+
currencyCode
|
|
424
|
+
}
|
|
425
|
+
presentmentMoney {
|
|
426
|
+
amount
|
|
427
|
+
currencyCode
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
totalTaxSet {
|
|
431
|
+
shopMoney {
|
|
432
|
+
amount
|
|
433
|
+
currencyCode
|
|
434
|
+
}
|
|
435
|
+
presentmentMoney {
|
|
436
|
+
amount
|
|
437
|
+
currencyCode
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
transactions {
|
|
444
|
+
nodes {
|
|
30
445
|
id
|
|
446
|
+
status
|
|
447
|
+
kind
|
|
448
|
+
gateway
|
|
449
|
+
amountSet {
|
|
450
|
+
shopMoney {
|
|
451
|
+
amount
|
|
452
|
+
currencyCode
|
|
453
|
+
}
|
|
454
|
+
presentmentMoney {
|
|
455
|
+
amount
|
|
456
|
+
currencyCode
|
|
457
|
+
}
|
|
458
|
+
}
|
|
31
459
|
}
|
|
32
|
-
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
metafields (first: $first, after: $after) {
|
|
464
|
+
nodes {
|
|
465
|
+
id
|
|
466
|
+
key
|
|
467
|
+
namespace
|
|
468
|
+
value
|
|
469
|
+
type
|
|
470
|
+
}
|
|
471
|
+
pageInfo {
|
|
472
|
+
endCursor
|
|
33
473
|
}
|
|
34
474
|
}
|
|
35
475
|
}
|
|
@@ -104,11 +544,143 @@ const GET_DRAFT_ORDER = `
|
|
|
104
544
|
`;
|
|
105
545
|
|
|
106
546
|
const LIST_ORDERS = `
|
|
107
|
-
query ($first: Int, $after: String, $reverse: Boolean){
|
|
108
|
-
orders(first: $first, after: $after, reverse: $reverse) {
|
|
547
|
+
query ($first: Int, $after: String, $reverse: Boolean, $query: String){
|
|
548
|
+
orders(first: $first, after: $after, reverse: $reverse, query: $query) {
|
|
109
549
|
nodes {
|
|
110
550
|
id
|
|
551
|
+
name
|
|
552
|
+
createdAt
|
|
111
553
|
updatedAt
|
|
554
|
+
processedAt
|
|
555
|
+
currencyCode
|
|
556
|
+
displayFinancialStatus
|
|
557
|
+
displayFulfillmentStatus
|
|
558
|
+
closed
|
|
559
|
+
confirmed
|
|
560
|
+
test
|
|
561
|
+
note
|
|
562
|
+
tags
|
|
563
|
+
totalPriceSet {
|
|
564
|
+
shopMoney {
|
|
565
|
+
amount
|
|
566
|
+
currencyCode
|
|
567
|
+
}
|
|
568
|
+
presentmentMoney {
|
|
569
|
+
amount
|
|
570
|
+
currencyCode
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
subtotalPriceSet {
|
|
574
|
+
shopMoney {
|
|
575
|
+
amount
|
|
576
|
+
currencyCode
|
|
577
|
+
}
|
|
578
|
+
presentmentMoney {
|
|
579
|
+
amount
|
|
580
|
+
currencyCode
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
totalTaxSet {
|
|
584
|
+
shopMoney {
|
|
585
|
+
amount
|
|
586
|
+
currencyCode
|
|
587
|
+
}
|
|
588
|
+
presentmentMoney {
|
|
589
|
+
amount
|
|
590
|
+
currencyCode
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
totalShippingPriceSet {
|
|
594
|
+
shopMoney {
|
|
595
|
+
amount
|
|
596
|
+
currencyCode
|
|
597
|
+
}
|
|
598
|
+
presentmentMoney {
|
|
599
|
+
amount
|
|
600
|
+
currencyCode
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
customer {
|
|
604
|
+
id
|
|
605
|
+
displayName
|
|
606
|
+
firstName
|
|
607
|
+
lastName
|
|
608
|
+
email
|
|
609
|
+
phone
|
|
610
|
+
defaultAddress {
|
|
611
|
+
id
|
|
612
|
+
address1
|
|
613
|
+
address2
|
|
614
|
+
city
|
|
615
|
+
province
|
|
616
|
+
zip
|
|
617
|
+
country
|
|
618
|
+
company
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
shippingAddress {
|
|
622
|
+
address1
|
|
623
|
+
address2
|
|
624
|
+
city
|
|
625
|
+
province
|
|
626
|
+
zip
|
|
627
|
+
country
|
|
628
|
+
company
|
|
629
|
+
firstName
|
|
630
|
+
lastName
|
|
631
|
+
}
|
|
632
|
+
lineItems(first: 50) {
|
|
633
|
+
edges {
|
|
634
|
+
node {
|
|
635
|
+
id
|
|
636
|
+
title
|
|
637
|
+
quantity
|
|
638
|
+
variantTitle
|
|
639
|
+
vendor
|
|
640
|
+
fulfillmentStatus
|
|
641
|
+
originalUnitPriceSet {
|
|
642
|
+
shopMoney {
|
|
643
|
+
amount
|
|
644
|
+
currencyCode
|
|
645
|
+
}
|
|
646
|
+
presentmentMoney {
|
|
647
|
+
amount
|
|
648
|
+
currencyCode
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
variant {
|
|
652
|
+
id
|
|
653
|
+
title
|
|
654
|
+
sku
|
|
655
|
+
price
|
|
656
|
+
image {
|
|
657
|
+
url
|
|
658
|
+
altText
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
product {
|
|
662
|
+
id
|
|
663
|
+
title
|
|
664
|
+
handle
|
|
665
|
+
vendor
|
|
666
|
+
productType
|
|
667
|
+
images(first: 1) {
|
|
668
|
+
edges {
|
|
669
|
+
node {
|
|
670
|
+
url
|
|
671
|
+
altText
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
fulfillments {
|
|
680
|
+
id
|
|
681
|
+
status
|
|
682
|
+
displayStatus
|
|
683
|
+
}
|
|
112
684
|
metafields (first: $first) {
|
|
113
685
|
nodes {
|
|
114
686
|
id
|
|
@@ -121,6 +693,7 @@ const LIST_ORDERS = `
|
|
|
121
693
|
}
|
|
122
694
|
pageInfo {
|
|
123
695
|
endCursor
|
|
696
|
+
hasNextPage
|
|
124
697
|
}
|
|
125
698
|
}
|
|
126
699
|
}
|
|
@@ -154,6 +727,21 @@ const LIST_CUSTOMERS = `
|
|
|
154
727
|
nodes {
|
|
155
728
|
id
|
|
156
729
|
displayName
|
|
730
|
+
email
|
|
731
|
+
phone
|
|
732
|
+
addresses (first: $first) {
|
|
733
|
+
address1
|
|
734
|
+
address2
|
|
735
|
+
city
|
|
736
|
+
country
|
|
737
|
+
company
|
|
738
|
+
}
|
|
739
|
+
orders (first: $first) {
|
|
740
|
+
nodes {
|
|
741
|
+
id
|
|
742
|
+
createdAt
|
|
743
|
+
}
|
|
744
|
+
}
|
|
157
745
|
metafields (first: $first) {
|
|
158
746
|
nodes {
|
|
159
747
|
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.10",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|