@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/mutations.mjs
CHANGED
|
@@ -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
|
};
|