@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.
Files changed (64) 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/create-article/create-article.mjs +1 -1
  4. package/actions/create-blog/create-blog.mjs +1 -1
  5. package/actions/create-custom-collection/create-custom-collection.mjs +1 -1
  6. package/actions/create-customer/create-customer.mjs +1 -1
  7. package/actions/create-fulfillment/create-fulfillment.mjs +77 -0
  8. package/actions/create-metafield/create-metafield.mjs +1 -1
  9. package/actions/create-metaobject/create-metaobject.mjs +1 -1
  10. package/actions/create-order/create-order.mjs +1 -1
  11. package/actions/create-page/create-page.mjs +1 -1
  12. package/actions/create-product/create-product.mjs +1 -1
  13. package/actions/create-product-variant/create-product-variant.mjs +1 -1
  14. package/actions/create-smart-collection/create-smart-collection.mjs +1 -1
  15. package/actions/delete-article/delete-article.mjs +1 -1
  16. package/actions/delete-blog/delete-blog.mjs +1 -1
  17. package/actions/delete-metafield/delete-metafield.mjs +1 -1
  18. package/actions/delete-page/delete-page.mjs +1 -1
  19. package/actions/get-articles/get-articles.mjs +1 -1
  20. package/actions/get-metafields/get-metafields.mjs +1 -1
  21. package/actions/get-metaobjects/get-metaobjects.mjs +1 -1
  22. package/actions/get-order/get-order.mjs +1 -1
  23. package/actions/get-pages/get-pages.mjs +1 -1
  24. package/actions/refund-order/refund-order.mjs +100 -0
  25. package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +1 -1
  26. package/actions/search-customers/search-customers.mjs +1 -1
  27. package/actions/search-fulfillment-orders/search-fulfillment-orders.mjs +40 -0
  28. package/actions/search-orders/search-orders.mjs +1 -1
  29. package/actions/search-product-variant/search-product-variant.mjs +1 -1
  30. package/actions/search-products/search-products.mjs +1 -1
  31. package/actions/update-article/update-article.mjs +1 -1
  32. package/actions/update-customer/update-customer.mjs +1 -1
  33. package/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs +68 -0
  34. package/actions/update-inventory-level/update-inventory-level.mjs +1 -1
  35. package/actions/update-metafield/update-metafield.mjs +1 -1
  36. package/actions/update-metaobject/update-metaobject.mjs +1 -1
  37. package/actions/update-page/update-page.mjs +1 -1
  38. package/actions/update-product/update-product.mjs +1 -1
  39. package/actions/update-product-variant/update-product-variant.mjs +1 -1
  40. package/common/mutations.mjs +88 -0
  41. package/common/queries.mjs +604 -32
  42. package/package.json +1 -1
  43. package/shopify_developer_app.app.mjs +72 -1
  44. package/sources/cart-updated/cart-updated.mjs +25 -0
  45. package/sources/inventory-level-updated/inventory-level-updated.mjs +25 -0
  46. package/sources/new-abandoned-cart/new-abandoned-cart.mjs +1 -1
  47. package/sources/new-article/new-article.mjs +1 -1
  48. package/sources/new-cancelled-order/new-cancelled-order.mjs +1 -1
  49. package/sources/new-cart-created/new-cart-created.mjs +25 -0
  50. package/sources/new-customer-created/new-customer-created.mjs +1 -1
  51. package/sources/new-draft-order/new-draft-order.mjs +1 -1
  52. package/sources/new-event-emitted/new-event-emitted.mjs +1 -1
  53. package/sources/new-fulfillment-event/new-fulfillment-event.mjs +1 -1
  54. package/sources/new-order-created/new-order-created.mjs +1 -1
  55. package/sources/new-order-fulfilled/new-order-fulfilled.mjs +1 -1
  56. package/sources/new-page/new-page.mjs +1 -1
  57. package/sources/new-paid-order/new-paid-order.mjs +1 -1
  58. package/sources/new-product-created/new-product-created.mjs +1 -1
  59. package/sources/new-product-updated/new-product-updated.mjs +1 -1
  60. package/sources/new-refund-created/new-refund-created.mjs +1 -1
  61. package/sources/new-updated-customer/new-updated-customer.mjs +1 -1
  62. package/sources/new-updated-order/new-updated-order.mjs +1 -1
  63. package/sources/product-added-to-custom-collection/product-added-to-custom-collection.mjs +1 -1
  64. package/sources/shop-update/shop-update.mjs +25 -0
@@ -116,9 +116,97 @@ const UPDATE_PRODUCT = `
116
116
  }
117
117
  `;
118
118
 
119
+ const REFUND_ORDER = `
120
+ mutation RefundLineItem($input: RefundInput!) {
121
+ refundCreate(input: $input) {
122
+ refund {
123
+ id
124
+ totalRefundedSet {
125
+ presentmentMoney {
126
+ amount
127
+ currencyCode
128
+ }
129
+ }
130
+ order {
131
+ id
132
+ totalPriceSet {
133
+ presentmentMoney {
134
+ amount
135
+ currencyCode
136
+ }
137
+ }
138
+ }
139
+ refundLineItems(first: 10) {
140
+ nodes {
141
+ id
142
+ lineItem {
143
+ id
144
+ title
145
+ quantity
146
+ product {
147
+ id
148
+ title
149
+ }
150
+ variant {
151
+ id
152
+ title
153
+ price
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ userErrors {
160
+ field
161
+ message
162
+ }
163
+ }
164
+ }
165
+ `;
166
+
167
+ const UPDATE_FULFILLMENT_TRACKING_INFO = `
168
+ mutation FulfillmentTrackingInfoUpdate($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {
169
+ fulfillmentTrackingInfoUpdate(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {
170
+ fulfillment {
171
+ id
172
+ status
173
+ trackingInfo {
174
+ company
175
+ number
176
+ url
177
+ }
178
+ }
179
+ userErrors {
180
+ field
181
+ message
182
+ }
183
+ }
184
+ }
185
+ `;
186
+
187
+ const CREATE_FULFILLMENT = `
188
+ mutation fulfillmentCreate($fulfillment: FulfillmentInput!, $message: String) {
189
+ fulfillmentCreate(fulfillment: $fulfillment, message: $message) {
190
+ fulfillment {
191
+ id
192
+ name
193
+ status
194
+ createdAt
195
+ }
196
+ userErrors {
197
+ field
198
+ message
199
+ }
200
+ }
201
+ }
202
+ `;
203
+
119
204
  export default {
120
205
  CREATE_ORDER,
121
206
  CREATE_CUSTOMER,
122
207
  UPDATE_CUSTOMER,
123
208
  UPDATE_PRODUCT,
209
+ REFUND_ORDER,
210
+ UPDATE_FULFILLMENT_TRACKING_INFO,
211
+ CREATE_FULFILLMENT,
124
212
  };