@shoplygg/node 0.2.0 → 0.4.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/generated/api.d.ts +1284 -44
- package/generated/operations.js +32 -3
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/operations.js
CHANGED
|
@@ -173,14 +173,31 @@ export const OPERATIONS = [
|
|
|
173
173
|
{"id":"cartRecovery.update","name":"cartRecovery.update","method":"PUT","path":"/stores/{storeId}/cart-recovery","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
174
174
|
{"id":"cartRecovery.carts","name":"cartRecovery.carts","method":"GET","path":"/stores/{storeId}/cart-recovery/carts","params":[],"query":["range","from","to","tz","show","search","page"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
175
175
|
{"id":"cartRecovery.cart","name":"cartRecovery.cart","method":"GET","path":"/stores/{storeId}/cart-recovery/carts/{cartId}","params":["cartId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
176
|
-
{"id":"
|
|
176
|
+
{"id":"winBack.show","name":"winBack.show","method":"GET","path":"/stores/{storeId}/win-back","params":[],"query":["range","from","to","tz"],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
177
|
+
{"id":"winBack.update","name":"winBack.update","method":"PUT","path":"/stores/{storeId}/win-back","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
178
|
+
{"id":"winBack.buyers","name":"winBack.buyers","method":"GET","path":"/stores/{storeId}/win-back/buyers","params":[],"query":["show","search","page"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
179
|
+
{"id":"winBack.buyer","name":"winBack.buyer","method":"GET","path":"/stores/{storeId}/win-back/buyers/{buyerId}","params":["buyerId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
180
|
+
{"id":"subscribers.summary","name":"subscribers.summary","method":"GET","path":"/stores/{storeId}/subscribers/summary","params":[],"query":["range","from","to","tz"],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
181
|
+
{"id":"subscribers.asking","name":"subscribers.asking","method":"PUT","path":"/stores/{storeId}/subscribers/asking","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
182
|
+
{"id":"subscribers.list","name":"subscribers.list","method":"GET","path":"/stores/{storeId}/subscribers","params":[],"query":["show","search","page"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
183
|
+
{"id":"subscribers.export","name":"subscribers.export","method":"GET","path":"/stores/{storeId}/subscribers/export","params":[],"query":["show","search","check"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
184
|
+
{"id":"subscribers.unsubscribe","name":"subscribers.unsubscribe","method":"POST","path":"/stores/{storeId}/subscribers/unsubscribe","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
185
|
+
{"id":"customers.list","name":"customers.list","method":"GET","path":"/stores/{storeId}/customers","params":[],"query":["page","perPage","search","sort","only","tag","range","from","to","tz"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
177
186
|
{"id":"customers.create","name":"customers.create","method":"POST","path":"/stores/{storeId}/customers","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
178
|
-
{"id":"customers.export","name":"customers.export","method":"GET","path":"/stores/{storeId}/customers/export","params":[],"query":["search","sort","only","check","range","from","to","tz"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
187
|
+
{"id":"customers.export","name":"customers.export","method":"GET","path":"/stores/{storeId}/customers/export","params":[],"query":["search","sort","only","tag","check","range","from","to","tz"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
179
188
|
{"id":"customers.stats","name":"customers.stats","method":"GET","path":"/stores/{storeId}/customers/stats","params":[],"query":["range","from","to","tz"],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
180
189
|
{"id":"customers.show","name":"customers.show","method":"GET","path":"/stores/{storeId}/customers/{customerId}","params":["customerId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
181
190
|
{"id":"customers.setBalance","name":"customers.setBalance","method":"POST","path":"/stores/{storeId}/customers/{customerId}/balance","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
182
191
|
{"id":"customers.blacklist","name":"customers.blacklist","method":"POST","path":"/stores/{storeId}/customers/{customerId}/blacklist","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
183
192
|
{"id":"customers.unblacklist","name":"customers.unblacklist","method":"DELETE","path":"/stores/{storeId}/customers/{customerId}/blacklist","params":["customerId"],"query":["addresses"],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
193
|
+
{"id":"customerTags.list","name":"customerTags.list","method":"GET","path":"/stores/{storeId}/customer-tags","params":[],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
194
|
+
{"id":"customerTags.create","name":"customerTags.create","method":"POST","path":"/stores/{storeId}/customer-tags","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
195
|
+
{"id":"customerTags.automatic","name":"customerTags.automatic","method":"PUT","path":"/stores/{storeId}/customer-tags/automatic","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
196
|
+
{"id":"customerTags.update","name":"customerTags.update","method":"PUT","path":"/stores/{storeId}/customer-tags/{tagId}","params":["tagId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
197
|
+
{"id":"customerTags.delete","name":"customerTags.delete","method":"DELETE","path":"/stores/{storeId}/customer-tags/{tagId}","params":["tagId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
198
|
+
{"id":"customers.setTags","name":"customers.setTags","method":"PUT","path":"/stores/{storeId}/customers/{customerId}/tags","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
199
|
+
{"id":"customers.tag","name":"customers.tag","method":"PUT","path":"/stores/{storeId}/customers/{customerId}/tags/{tagId}","params":["customerId","tagId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
200
|
+
{"id":"customers.untag","name":"customers.untag","method":"DELETE","path":"/stores/{storeId}/customers/{customerId}/tags/{tagId}","params":["customerId","tagId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
184
201
|
{"id":"affiliates.list","name":"affiliates.list","method":"GET","path":"/stores/{storeId}/affiliates","params":[],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
185
202
|
{"id":"affiliates.create","name":"affiliates.create","method":"POST","path":"/stores/{storeId}/affiliates","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
186
203
|
{"id":"affiliates.update","name":"affiliates.update","method":"PUT","path":"/stores/{storeId}/affiliates/{affiliateId}","params":["affiliateId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
@@ -195,6 +212,13 @@ export const OPERATIONS = [
|
|
|
195
212
|
{"id":"affiliates.toStoreBalance","name":"affiliates.toStoreBalance","method":"POST","path":"/stores/{storeId}/affiliates/{affiliateId}/to-store-balance","params":["affiliateId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
196
213
|
{"id":"affiliateProgramme.show","name":"affiliateProgramme.show","method":"GET","path":"/stores/{storeId}/affiliate-programme","params":[],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
197
214
|
{"id":"affiliateProgramme.update","name":"affiliateProgramme.update","method":"PUT","path":"/stores/{storeId}/affiliate-programme","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
215
|
+
{"id":"tickets.list","name":"tickets.list","method":"GET","path":"/stores/{storeId}/support-tickets","params":[],"query":["show","search","page","perPage"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
216
|
+
{"id":"tickets.settings","name":"tickets.settings","method":"PUT","path":"/stores/{storeId}/support-tickets/settings","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
217
|
+
{"id":"tickets.get","name":"tickets.get","method":"GET","path":"/stores/{storeId}/support-tickets/{ticketId}","params":["ticketId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
218
|
+
{"id":"tickets.reply","name":"tickets.reply","method":"POST","path":"/stores/{storeId}/support-tickets/{ticketId}/reply","params":["ticketId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
219
|
+
{"id":"tickets.resolve","name":"tickets.resolve","method":"POST","path":"/stores/{storeId}/support-tickets/{ticketId}/resolve","params":["ticketId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
220
|
+
{"id":"tickets.reopen","name":"tickets.reopen","method":"POST","path":"/stores/{storeId}/support-tickets/{ticketId}/reopen","params":["ticketId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
221
|
+
{"id":"tickets.picture","name":"tickets.picture","method":"GET","path":"/stores/{storeId}/support-tickets/{ticketId}/pictures/{name}","params":["ticketId","name"],"query":[],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
198
222
|
{"id":"blacklist.list","name":"blacklist.list","method":"GET","path":"/stores/{storeId}/blacklist","params":[],"query":["page","perPage","status","type","search"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
199
223
|
{"id":"blacklist.create","name":"blacklist.create","method":"POST","path":"/stores/{storeId}/blacklist","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
200
224
|
{"id":"blacklist.export","name":"blacklist.export","method":"GET","path":"/stores/{storeId}/blacklist/export","params":[],"query":["status","type","search","check"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
@@ -287,7 +311,12 @@ export const OPERATIONS = [
|
|
|
287
311
|
{"id":"customer.subscriptions.pause","name":"subscriptions.pause","method":"POST","path":"/stores/{storeId}/customer/subscriptions/{subscriptionId}/pause","params":["subscriptionId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
288
312
|
{"id":"customer.subscriptions.resume","name":"subscriptions.resume","method":"POST","path":"/stores/{storeId}/customer/subscriptions/{subscriptionId}/resume","params":["subscriptionId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
289
313
|
{"id":"customer.subscriptions.card","name":"subscriptions.card","method":"POST","path":"/stores/{storeId}/customer/subscriptions/{subscriptionId}/card","params":["subscriptionId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
314
|
+
{"id":"customer.tickets.list","name":"tickets.list","method":"GET","path":"/stores/{storeId}/customer/tickets","params":[],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
315
|
+
{"id":"customer.tickets.create","name":"tickets.create","method":"POST","path":"/stores/{storeId}/customer/tickets","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
316
|
+
{"id":"customer.tickets.show","name":"tickets.show","method":"GET","path":"/stores/{storeId}/customer/tickets/{ticketId}","params":["ticketId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
317
|
+
{"id":"customer.tickets.reply","name":"tickets.reply","method":"POST","path":"/stores/{storeId}/customer/tickets/{ticketId}/reply","params":["ticketId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
318
|
+
{"id":"customer.tickets.resolve","name":"tickets.resolve","method":"POST","path":"/stores/{storeId}/customer/tickets/{ticketId}/resolve","params":["ticketId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":true,"signedIn":true,"idempotent":false},
|
|
290
319
|
];
|
|
291
320
|
|
|
292
321
|
/** Every webhook event, by name. */
|
|
293
|
-
export const EVENTS = ["order.created","order.payment_started","order.paid","order.delivered","order.redelivered","order.email_failed","order.cancelled","order.refunded","order.disputed","order.chargeback","order.payment_submitted","order.rerouted","review.created","review.removed","review.flag_declined","stock.low","stock.out","product.created","product.updated","product.deleted","customer.created","customer.balance_changed","affiliate.created","affiliate.payout_requested","affiliate.payout_answered","affiliate.balance_changed","subscription.started","subscription.renewed","subscription.cancelled","subscription.ended","subscription.paused","subscription.resumed","subscription.charge_failed","cart.email_sent","cart.recovered","cart.unsubscribed","routing.processor_paused","routing.processor_resumed","dispute.opened","dispute.updated","dispute.won","dispute.lost","dispute.closed","app.connected","app.disconnected","fraud.checkout_blocked","webhook.test"];
|
|
322
|
+
export const EVENTS = ["order.created","order.payment_started","order.paid","order.delivered","order.redelivered","order.email_failed","order.cancelled","order.refunded","order.disputed","order.chargeback","order.payment_submitted","order.rerouted","review.created","review.removed","review.flag_declined","stock.low","stock.out","product.created","product.updated","product.deleted","customer.created","customer.balance_changed","customer.tagged","customer.untagged","affiliate.created","affiliate.payout_requested","affiliate.payout_answered","affiliate.balance_changed","subscription.started","subscription.renewed","subscription.cancelled","subscription.ended","subscription.paused","subscription.resumed","subscription.charge_failed","cart.email_sent","cart.recovered","cart.unsubscribed","winback.email_sent","winback.won_back","subscriber.subscribed","subscriber.unsubscribed","routing.processor_paused","routing.processor_resumed","dispute.opened","dispute.updated","dispute.won","dispute.lost","dispute.closed","app.connected","app.disconnected","ticket.opened","ticket.message","ticket.resolved","ticket.reopened","fraud.checkout_blocked","webhook.test"];
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplygg/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Shoply's API from your own server: every route as a typed method, safe retries, pages, checking webhooks, and OAuth for apps.",
|
|
5
5
|
"keywords": ["shoply", "api", "sdk", "ecommerce", "webhooks", "digital-goods"],
|
|
6
6
|
"homepage": "https://docs.shoply.gg/api-reference/node",
|