@pipedream/shopify_developer_app 0.8.0 → 0.9.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-fulfillment/create-fulfillment.mjs +77 -0
- 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/refund-order/refund-order.mjs +100 -0
- 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-fulfillment-orders/search-fulfillment-orders.mjs +40 -0
- package/actions/search-orders/search-orders.mjs +1 -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 +1 -1
- package/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs +68 -0
- 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/mutations.mjs +88 -0
- package/common/queries.mjs +604 -32
- package/package.json +1 -1
- package/shopify_developer_app.app.mjs +72 -1
- package/sources/cart-updated/cart-updated.mjs +25 -0
- package/sources/inventory-level-updated/inventory-level-updated.mjs +25 -0
- 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 +25 -0
- 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 +25 -0
package/common/queries.mjs
CHANGED
|
@@ -1,45 +1,369 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
12
29
|
}
|
|
13
|
-
|
|
14
|
-
|
|
30
|
+
presentmentMoney {
|
|
31
|
+
amount
|
|
32
|
+
currencyCode
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
subtotalPriceSet {
|
|
37
|
+
shopMoney {
|
|
38
|
+
amount
|
|
39
|
+
currencyCode
|
|
40
|
+
}
|
|
41
|
+
presentmentMoney {
|
|
42
|
+
amount
|
|
43
|
+
currencyCode
|
|
15
44
|
}
|
|
16
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
|
+
|
|
17
91
|
customer {
|
|
18
92
|
id
|
|
19
93
|
displayName
|
|
94
|
+
firstName
|
|
95
|
+
lastName
|
|
20
96
|
email
|
|
21
97
|
phone
|
|
22
|
-
|
|
98
|
+
note
|
|
99
|
+
createdAt
|
|
100
|
+
updatedAt
|
|
101
|
+
verifiedEmail
|
|
102
|
+
tags
|
|
103
|
+
defaultAddress {
|
|
104
|
+
id
|
|
23
105
|
address1
|
|
24
106
|
address2
|
|
25
107
|
city
|
|
108
|
+
province
|
|
26
109
|
zip
|
|
27
110
|
country
|
|
111
|
+
countryCodeV2
|
|
28
112
|
company
|
|
113
|
+
firstName
|
|
114
|
+
lastName
|
|
115
|
+
phone
|
|
29
116
|
}
|
|
30
117
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
+
}
|
|
35
279
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
280
|
+
}
|
|
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 {
|
|
304
|
+
shopMoney {
|
|
305
|
+
amount
|
|
306
|
+
currencyCode
|
|
307
|
+
}
|
|
308
|
+
presentmentMoney {
|
|
309
|
+
amount
|
|
310
|
+
currencyCode
|
|
311
|
+
}
|
|
312
|
+
}
|
|
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
|
+
}
|
|
39
355
|
}
|
|
40
356
|
}
|
|
41
|
-
|
|
42
|
-
|
|
357
|
+
|
|
358
|
+
transactions(first: 250) {
|
|
359
|
+
id
|
|
360
|
+
status
|
|
361
|
+
kind
|
|
362
|
+
gateway
|
|
363
|
+
test
|
|
364
|
+
createdAt
|
|
365
|
+
processedAt
|
|
366
|
+
amountSet {
|
|
43
367
|
shopMoney {
|
|
44
368
|
amount
|
|
45
369
|
currencyCode
|
|
@@ -49,11 +373,103 @@ const GET_ORDER = `
|
|
|
49
373
|
currencyCode
|
|
50
374
|
}
|
|
51
375
|
}
|
|
52
|
-
|
|
53
|
-
|
|
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 {
|
|
54
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
|
+
}
|
|
55
459
|
}
|
|
56
|
-
|
|
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
|
|
57
473
|
}
|
|
58
474
|
}
|
|
59
475
|
}
|
|
@@ -127,36 +543,156 @@ const GET_DRAFT_ORDER = `
|
|
|
127
543
|
}
|
|
128
544
|
`;
|
|
129
545
|
|
|
546
|
+
const GET_FULFILLMENT_ORDER = `
|
|
547
|
+
query LocationsForMoveList($fulfillmentOrderId: ID!, $first: Int) {
|
|
548
|
+
fulfillmentOrder(id: $fulfillmentOrderId) {
|
|
549
|
+
lineItems (first: $first) {
|
|
550
|
+
nodes {
|
|
551
|
+
id
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
`;
|
|
557
|
+
|
|
130
558
|
const LIST_ORDERS = `
|
|
131
559
|
query ($first: Int, $after: String, $reverse: Boolean, $query: String){
|
|
132
560
|
orders(first: $first, after: $after, reverse: $reverse, query: $query) {
|
|
133
561
|
nodes {
|
|
134
562
|
id
|
|
563
|
+
name
|
|
564
|
+
createdAt
|
|
135
565
|
updatedAt
|
|
566
|
+
processedAt
|
|
567
|
+
currencyCode
|
|
568
|
+
displayFinancialStatus
|
|
569
|
+
displayFulfillmentStatus
|
|
570
|
+
closed
|
|
571
|
+
confirmed
|
|
572
|
+
test
|
|
573
|
+
note
|
|
574
|
+
tags
|
|
575
|
+
totalPriceSet {
|
|
576
|
+
shopMoney {
|
|
577
|
+
amount
|
|
578
|
+
currencyCode
|
|
579
|
+
}
|
|
580
|
+
presentmentMoney {
|
|
581
|
+
amount
|
|
582
|
+
currencyCode
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
subtotalPriceSet {
|
|
586
|
+
shopMoney {
|
|
587
|
+
amount
|
|
588
|
+
currencyCode
|
|
589
|
+
}
|
|
590
|
+
presentmentMoney {
|
|
591
|
+
amount
|
|
592
|
+
currencyCode
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
totalTaxSet {
|
|
596
|
+
shopMoney {
|
|
597
|
+
amount
|
|
598
|
+
currencyCode
|
|
599
|
+
}
|
|
600
|
+
presentmentMoney {
|
|
601
|
+
amount
|
|
602
|
+
currencyCode
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
totalShippingPriceSet {
|
|
606
|
+
shopMoney {
|
|
607
|
+
amount
|
|
608
|
+
currencyCode
|
|
609
|
+
}
|
|
610
|
+
presentmentMoney {
|
|
611
|
+
amount
|
|
612
|
+
currencyCode
|
|
613
|
+
}
|
|
614
|
+
}
|
|
136
615
|
customer {
|
|
137
616
|
id
|
|
138
617
|
displayName
|
|
618
|
+
firstName
|
|
619
|
+
lastName
|
|
139
620
|
email
|
|
140
621
|
phone
|
|
141
|
-
|
|
622
|
+
defaultAddress {
|
|
623
|
+
id
|
|
142
624
|
address1
|
|
143
625
|
address2
|
|
144
626
|
city
|
|
627
|
+
province
|
|
145
628
|
zip
|
|
146
629
|
country
|
|
147
630
|
company
|
|
148
631
|
}
|
|
149
632
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
633
|
+
shippingAddress {
|
|
634
|
+
address1
|
|
635
|
+
address2
|
|
636
|
+
city
|
|
637
|
+
province
|
|
638
|
+
zip
|
|
639
|
+
country
|
|
640
|
+
company
|
|
641
|
+
firstName
|
|
642
|
+
lastName
|
|
643
|
+
}
|
|
644
|
+
lineItems(first: 50) {
|
|
645
|
+
edges {
|
|
646
|
+
node {
|
|
647
|
+
id
|
|
648
|
+
title
|
|
649
|
+
quantity
|
|
650
|
+
variantTitle
|
|
651
|
+
vendor
|
|
652
|
+
fulfillmentStatus
|
|
653
|
+
originalUnitPriceSet {
|
|
654
|
+
shopMoney {
|
|
655
|
+
amount
|
|
656
|
+
currencyCode
|
|
657
|
+
}
|
|
658
|
+
presentmentMoney {
|
|
659
|
+
amount
|
|
660
|
+
currencyCode
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
variant {
|
|
664
|
+
id
|
|
665
|
+
title
|
|
666
|
+
sku
|
|
667
|
+
price
|
|
668
|
+
image {
|
|
669
|
+
url
|
|
670
|
+
altText
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
product {
|
|
674
|
+
id
|
|
675
|
+
title
|
|
676
|
+
handle
|
|
677
|
+
vendor
|
|
678
|
+
productType
|
|
679
|
+
images(first: 1) {
|
|
680
|
+
edges {
|
|
681
|
+
node {
|
|
682
|
+
url
|
|
683
|
+
altText
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
158
689
|
}
|
|
159
690
|
}
|
|
691
|
+
fulfillments {
|
|
692
|
+
id
|
|
693
|
+
status
|
|
694
|
+
displayStatus
|
|
695
|
+
}
|
|
160
696
|
metafields (first: $first) {
|
|
161
697
|
nodes {
|
|
162
698
|
id
|
|
@@ -169,6 +705,7 @@ const LIST_ORDERS = `
|
|
|
169
705
|
}
|
|
170
706
|
pageInfo {
|
|
171
707
|
endCursor
|
|
708
|
+
hasNextPage
|
|
172
709
|
}
|
|
173
710
|
}
|
|
174
711
|
}
|
|
@@ -234,11 +771,46 @@ const LIST_CUSTOMERS = `
|
|
|
234
771
|
}
|
|
235
772
|
`;
|
|
236
773
|
|
|
774
|
+
const LIST_FULFILLMENT_ORDERS = `
|
|
775
|
+
query ($first: Int, $after: String, $query: String) {
|
|
776
|
+
fulfillmentOrders(first: $first, after: $after, query: $query) {
|
|
777
|
+
nodes {
|
|
778
|
+
id
|
|
779
|
+
status
|
|
780
|
+
createdAt
|
|
781
|
+
updatedAt
|
|
782
|
+
fulfillAt
|
|
783
|
+
orderId
|
|
784
|
+
orderName
|
|
785
|
+
fulfillments (first: $first) {
|
|
786
|
+
nodes {
|
|
787
|
+
id
|
|
788
|
+
name
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
lineItems (first: $first) {
|
|
792
|
+
nodes {
|
|
793
|
+
id
|
|
794
|
+
productTitle
|
|
795
|
+
totalQuantity
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
pageInfo {
|
|
800
|
+
endCursor
|
|
801
|
+
hasNextPage
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
`;
|
|
806
|
+
|
|
237
807
|
export default {
|
|
238
808
|
GET_ORDER,
|
|
239
809
|
GET_CUSTOMER,
|
|
240
810
|
GET_DRAFT_ORDER,
|
|
811
|
+
GET_FULFILLMENT_ORDER,
|
|
241
812
|
LIST_ORDERS,
|
|
242
813
|
LIST_DRAFT_ORDERS,
|
|
243
814
|
LIST_CUSTOMERS,
|
|
815
|
+
LIST_FULFILLMENT_ORDERS,
|
|
244
816
|
};
|