@shoplygg/node 0.10.0 → 0.11.3
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 +93 -15
- package/generated/operations.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/api.d.ts
CHANGED
|
@@ -294,6 +294,8 @@ export type StoreEmailSettingsResult = {
|
|
|
294
294
|
emailCustomPaidEnabled: boolean;
|
|
295
295
|
emailTicketsEnabled: boolean;
|
|
296
296
|
emailResellersEnabled: boolean;
|
|
297
|
+
emailPaymentSetupEnabled: boolean;
|
|
298
|
+
emailDiscordSetupEnabled: boolean;
|
|
297
299
|
emailDisputeOpenedEnabled: boolean;
|
|
298
300
|
emailDisputeClosedEnabled: boolean;
|
|
299
301
|
testEmailEvery: {
|
|
@@ -310,6 +312,7 @@ export type StoreEmailSettingsResult = {
|
|
|
310
312
|
discordCustomPaidEnabled: boolean;
|
|
311
313
|
discordTicketsEnabled: boolean;
|
|
312
314
|
discordResellersEnabled: boolean;
|
|
315
|
+
discordPaypalEnabled: boolean;
|
|
313
316
|
discordDisputesEnabled: boolean;
|
|
314
317
|
discordStockThreshold: number;
|
|
315
318
|
discordFailure: unknown;
|
|
@@ -352,6 +355,7 @@ export type PaymentMethodsListResult = Array<{
|
|
|
352
355
|
originHint: string;
|
|
353
356
|
callbackHint: string;
|
|
354
357
|
copies: unknown[] | Record<string, unknown>;
|
|
358
|
+
friends: unknown;
|
|
355
359
|
authorizeUrl: string;
|
|
356
360
|
connected: boolean;
|
|
357
361
|
enabled: boolean;
|
|
@@ -375,14 +379,15 @@ export type PaymentMethodsListResult = Array<{
|
|
|
375
379
|
isSet: boolean;
|
|
376
380
|
value: string;
|
|
377
381
|
}[];
|
|
378
|
-
toggles: {
|
|
382
|
+
toggles: Array<{
|
|
379
383
|
name: string;
|
|
380
384
|
label: string;
|
|
381
385
|
hint: string;
|
|
382
386
|
group: string;
|
|
383
387
|
needs: string;
|
|
384
388
|
on: boolean;
|
|
385
|
-
|
|
389
|
+
choices: unknown[] | Record<string, unknown>;
|
|
390
|
+
}>;
|
|
386
391
|
unpaidHours: unknown;
|
|
387
392
|
updatedAt: unknown;
|
|
388
393
|
}>;
|
|
@@ -425,6 +430,7 @@ export type PaymentMethodsSetBalanceResult = Array<{
|
|
|
425
430
|
originHint: string;
|
|
426
431
|
callbackHint: string;
|
|
427
432
|
copies: unknown[] | Record<string, unknown>;
|
|
433
|
+
friends: unknown;
|
|
428
434
|
authorizeUrl: string;
|
|
429
435
|
connected: boolean;
|
|
430
436
|
enabled: boolean;
|
|
@@ -448,14 +454,15 @@ export type PaymentMethodsSetBalanceResult = Array<{
|
|
|
448
454
|
isSet: boolean;
|
|
449
455
|
value: string;
|
|
450
456
|
}[];
|
|
451
|
-
toggles: {
|
|
457
|
+
toggles: Array<{
|
|
452
458
|
name: string;
|
|
453
459
|
label: string;
|
|
454
460
|
hint: string;
|
|
455
461
|
group: string;
|
|
456
462
|
needs: string;
|
|
457
463
|
on: boolean;
|
|
458
|
-
|
|
464
|
+
choices: unknown[] | Record<string, unknown>;
|
|
465
|
+
}>;
|
|
459
466
|
unpaidHours: unknown;
|
|
460
467
|
updatedAt: unknown;
|
|
461
468
|
}>;
|
|
@@ -480,6 +487,7 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
|
|
|
480
487
|
originHint: string;
|
|
481
488
|
callbackHint: string;
|
|
482
489
|
copies: unknown[] | Record<string, unknown>;
|
|
490
|
+
friends: unknown;
|
|
483
491
|
authorizeUrl: string;
|
|
484
492
|
connected: boolean;
|
|
485
493
|
enabled: boolean;
|
|
@@ -503,14 +511,15 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
|
|
|
503
511
|
isSet: boolean;
|
|
504
512
|
value: string;
|
|
505
513
|
}[];
|
|
506
|
-
toggles: {
|
|
514
|
+
toggles: Array<{
|
|
507
515
|
name: string;
|
|
508
516
|
label: string;
|
|
509
517
|
hint: string;
|
|
510
518
|
group: string;
|
|
511
519
|
needs: string;
|
|
512
520
|
on: boolean;
|
|
513
|
-
|
|
521
|
+
choices: unknown[] | Record<string, unknown>;
|
|
522
|
+
}>;
|
|
514
523
|
unpaidHours: unknown;
|
|
515
524
|
updatedAt: string;
|
|
516
525
|
}>;
|
|
@@ -535,6 +544,7 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
|
|
|
535
544
|
originHint: string;
|
|
536
545
|
callbackHint: string;
|
|
537
546
|
copies: unknown[] | Record<string, unknown>;
|
|
547
|
+
friends: unknown;
|
|
538
548
|
authorizeUrl: string;
|
|
539
549
|
connected: boolean;
|
|
540
550
|
enabled: boolean;
|
|
@@ -558,14 +568,15 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
|
|
|
558
568
|
isSet: boolean;
|
|
559
569
|
value: string;
|
|
560
570
|
}[];
|
|
561
|
-
toggles: {
|
|
571
|
+
toggles: Array<{
|
|
562
572
|
name: string;
|
|
563
573
|
label: string;
|
|
564
574
|
hint: string;
|
|
565
575
|
group: string;
|
|
566
576
|
needs: string;
|
|
567
577
|
on: boolean;
|
|
568
|
-
|
|
578
|
+
choices: unknown[] | Record<string, unknown>;
|
|
579
|
+
}>;
|
|
569
580
|
unpaidHours: number;
|
|
570
581
|
updatedAt: string;
|
|
571
582
|
}>;
|
|
@@ -2447,6 +2458,8 @@ export type ProductsListItem = {
|
|
|
2447
2458
|
deliveryInstructions: string;
|
|
2448
2459
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2449
2460
|
paymentFees: unknown[] | Record<string, unknown>;
|
|
2461
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2462
|
+
discordLinking: string;
|
|
2450
2463
|
showViewers: boolean;
|
|
2451
2464
|
showSales: boolean;
|
|
2452
2465
|
salesWindow: string;
|
|
@@ -2482,6 +2495,8 @@ export type ProductsListItem = {
|
|
|
2482
2495
|
customFields: unknown[] | Record<string, unknown>;
|
|
2483
2496
|
sort: number;
|
|
2484
2497
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2498
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2499
|
+
discordLinking: string;
|
|
2485
2500
|
}>;
|
|
2486
2501
|
runningSubscriptions: number;
|
|
2487
2502
|
};
|
|
@@ -2563,6 +2578,10 @@ export interface ProductsCreateParams {
|
|
|
2563
2578
|
}>;
|
|
2564
2579
|
/** Payment methods this variant cannot be bought with, by their names in the payment methods list. */
|
|
2565
2580
|
blockedPaymentMethods?: string[];
|
|
2581
|
+
/** Discord roles this variant gives on top of the product's, each as `server ID:role ID` (the server's ID as Settings, Discord Roles answers it on the dashboard, then the role's Discord ID), up to 10. A role a server does not have is dropped. Left out, they stay as they are. */
|
|
2582
|
+
discordRoles?: string[];
|
|
2583
|
+
/** Whether its buyer must link their Discord at checkout: `product` follows the product, `required` holds Pay until they link, `optional` lets them skip it. Left out, it stays as it is. */
|
|
2584
|
+
discordLinking?: "product" | "required" | "optional";
|
|
2566
2585
|
/** Its place among the product's variants. Left out, its place in the list sent. */
|
|
2567
2586
|
sort?: number;
|
|
2568
2587
|
}>;
|
|
@@ -2600,6 +2619,10 @@ export interface ProductsCreateParams {
|
|
|
2600
2619
|
}>;
|
|
2601
2620
|
/** Payment methods the product cannot be bought with, by their names in the payment methods list. Left out on an update, they stay as they are. */
|
|
2602
2621
|
blockedPaymentMethods?: string[];
|
|
2622
|
+
/** Discord roles every variant of the product gives, each as `server ID:role ID`. A product and its variants give up to 25 in all. Left out on an update, they stay as they are. */
|
|
2623
|
+
discordRoles?: string[];
|
|
2624
|
+
/** Whether its buyers must link their Discord at checkout: `store` follows the store's setting, `required` holds Pay until they link, `optional` lets them skip it. Left out on an update, it stays as it is. */
|
|
2625
|
+
discordLinking?: "store" | "required" | "optional";
|
|
2603
2626
|
/** What a payment method adds to this product's price: a payment method's name, and under it `percent` and `fixed`. A fee can only add. Left out on an update, the fees stay as they are. */
|
|
2604
2627
|
paymentFees?: Record<string, unknown>;
|
|
2605
2628
|
/**
|
|
@@ -2643,6 +2666,8 @@ export type ProductsCreateResult = {
|
|
|
2643
2666
|
deliveryInstructions: string;
|
|
2644
2667
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2645
2668
|
paymentFees: unknown[] | Record<string, unknown>;
|
|
2669
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2670
|
+
discordLinking: string;
|
|
2646
2671
|
showViewers: boolean;
|
|
2647
2672
|
showSales: boolean;
|
|
2648
2673
|
salesWindow: string;
|
|
@@ -2678,6 +2703,8 @@ export type ProductsCreateResult = {
|
|
|
2678
2703
|
customFields: unknown[] | Record<string, unknown>;
|
|
2679
2704
|
sort: number;
|
|
2680
2705
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2706
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2707
|
+
discordLinking: string;
|
|
2681
2708
|
}>;
|
|
2682
2709
|
runningSubscriptions: number;
|
|
2683
2710
|
};
|
|
@@ -2709,6 +2736,8 @@ export type ProductsShowResult = {
|
|
|
2709
2736
|
deliveryInstructions: string;
|
|
2710
2737
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2711
2738
|
paymentFees: unknown[] | Record<string, unknown>;
|
|
2739
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2740
|
+
discordLinking: string;
|
|
2712
2741
|
showViewers: boolean;
|
|
2713
2742
|
showSales: boolean;
|
|
2714
2743
|
salesWindow: string;
|
|
@@ -2744,6 +2773,8 @@ export type ProductsShowResult = {
|
|
|
2744
2773
|
customFields: unknown[] | Record<string, unknown>;
|
|
2745
2774
|
sort: number;
|
|
2746
2775
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2776
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2777
|
+
discordLinking: string;
|
|
2747
2778
|
}>;
|
|
2748
2779
|
runningSubscriptions: number;
|
|
2749
2780
|
};
|
|
@@ -2825,6 +2856,10 @@ export interface ProductsUpdateParams {
|
|
|
2825
2856
|
}>;
|
|
2826
2857
|
/** Payment methods this variant cannot be bought with, by their names in the payment methods list. */
|
|
2827
2858
|
blockedPaymentMethods?: string[];
|
|
2859
|
+
/** Discord roles this variant gives on top of the product's, each as `server ID:role ID` (the server's ID as Settings, Discord Roles answers it on the dashboard, then the role's Discord ID), up to 10. A role a server does not have is dropped. Left out, they stay as they are. */
|
|
2860
|
+
discordRoles?: string[];
|
|
2861
|
+
/** Whether its buyer must link their Discord at checkout: `product` follows the product, `required` holds Pay until they link, `optional` lets them skip it. Left out, it stays as it is. */
|
|
2862
|
+
discordLinking?: "product" | "required" | "optional";
|
|
2828
2863
|
/** Its place among the product's variants. Left out, its place in the list sent. */
|
|
2829
2864
|
sort?: number;
|
|
2830
2865
|
}>;
|
|
@@ -2862,6 +2897,10 @@ export interface ProductsUpdateParams {
|
|
|
2862
2897
|
}>;
|
|
2863
2898
|
/** Payment methods the product cannot be bought with, by their names in the payment methods list. Left out on an update, they stay as they are. */
|
|
2864
2899
|
blockedPaymentMethods?: string[];
|
|
2900
|
+
/** Discord roles every variant of the product gives, each as `server ID:role ID`. A product and its variants give up to 25 in all. Left out on an update, they stay as they are. */
|
|
2901
|
+
discordRoles?: string[];
|
|
2902
|
+
/** Whether its buyers must link their Discord at checkout: `store` follows the store's setting, `required` holds Pay until they link, `optional` lets them skip it. Left out on an update, it stays as it is. */
|
|
2903
|
+
discordLinking?: "store" | "required" | "optional";
|
|
2865
2904
|
/** What a payment method adds to this product's price: a payment method's name, and under it `percent` and `fixed`. A fee can only add. Left out on an update, the fees stay as they are. */
|
|
2866
2905
|
paymentFees?: Record<string, unknown>;
|
|
2867
2906
|
/**
|
|
@@ -2907,6 +2946,8 @@ export type ProductsUpdateResult = {
|
|
|
2907
2946
|
deliveryInstructions: string;
|
|
2908
2947
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2909
2948
|
paymentFees: unknown[] | Record<string, unknown>;
|
|
2949
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2950
|
+
discordLinking: string;
|
|
2910
2951
|
showViewers: boolean;
|
|
2911
2952
|
showSales: boolean;
|
|
2912
2953
|
salesWindow: string;
|
|
@@ -2942,6 +2983,8 @@ export type ProductsUpdateResult = {
|
|
|
2942
2983
|
customFields: unknown[] | Record<string, unknown>;
|
|
2943
2984
|
sort: number;
|
|
2944
2985
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2986
|
+
discordRoles: unknown[] | Record<string, unknown>;
|
|
2987
|
+
discordLinking: string;
|
|
2945
2988
|
}>;
|
|
2946
2989
|
runningSubscriptions: number;
|
|
2947
2990
|
};
|
|
@@ -2984,6 +3027,10 @@ export interface ProductsBulkUpdateParams {
|
|
|
2984
3027
|
paymentMethods?: Record<string, unknown>;
|
|
2985
3028
|
/** Instructions for every variant of all of them, up to 5,000 characters, in place of what each has. Empty takes them off. A variant's own instructions are not touched. */
|
|
2986
3029
|
deliveryInstructions?: string;
|
|
3030
|
+
/** A Discord role as `server ID:role ID`, and `give` or `stop`. `give` adds it to what every variant of each product gives. `stop` takes it off the product and off every variant of it. */
|
|
3031
|
+
discordRoles?: Record<string, unknown>;
|
|
3032
|
+
/** Whether buyers of all of them must link their Discord at checkout, for the whole product. */
|
|
3033
|
+
discordLinking?: "store" | "required" | "optional";
|
|
2987
3034
|
}
|
|
2988
3035
|
|
|
2989
3036
|
/** What change many products answers: `products.bulkUpdate`. */
|
|
@@ -4326,6 +4373,7 @@ export type OrdersShowResult = {
|
|
|
4326
4373
|
payments: unknown[] | Record<string, unknown>;
|
|
4327
4374
|
invoice: unknown;
|
|
4328
4375
|
disputes: unknown[] | Record<string, unknown>;
|
|
4376
|
+
discord: unknown;
|
|
4329
4377
|
review: unknown;
|
|
4330
4378
|
requests: unknown[] | Record<string, unknown>;
|
|
4331
4379
|
customPayment: unknown;
|
|
@@ -7731,7 +7779,7 @@ export interface ResellerProductsBadgesParams {
|
|
|
7731
7779
|
|
|
7732
7780
|
/** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
|
|
7733
7781
|
export type ResellerProductsBadgesResult = {
|
|
7734
|
-
"
|
|
7782
|
+
"237ccb40-c902-4c6b-8888-6f651d84fc59": {
|
|
7735
7783
|
label: string;
|
|
7736
7784
|
color: string;
|
|
7737
7785
|
kind: string;
|
|
@@ -8665,8 +8713,8 @@ export interface FraudEventsListParams {
|
|
|
8665
8713
|
* Left out, it is 20.
|
|
8666
8714
|
*/
|
|
8667
8715
|
perPage?: number;
|
|
8668
|
-
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
8669
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
8716
|
+
/** Only events of this reason. `changes` is every change to the rules and settings; `imported` is a line of another platform's log, brought by Platform Migration. */
|
|
8717
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
|
|
8670
8718
|
/** Part of an email address, an IP address or a rule's value. */
|
|
8671
8719
|
search?: string;
|
|
8672
8720
|
/** Only events in this period. */
|
|
@@ -8703,8 +8751,8 @@ export type FraudEventsListItem = {
|
|
|
8703
8751
|
|
|
8704
8752
|
/** What export fraud events takes: `fraudEvents.export`. */
|
|
8705
8753
|
export interface FraudEventsExportParams {
|
|
8706
|
-
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
8707
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
8754
|
+
/** Only events of this reason. `changes` is every change to the rules and settings; `imported` is a line of another platform's log, brought by Platform Migration. */
|
|
8755
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
|
|
8708
8756
|
/** Part of an email address, an IP address or a rule's value. */
|
|
8709
8757
|
search?: string;
|
|
8710
8758
|
/** `1` for how many rows the file would have, as `{ rows }`, in place of the file. Not counted against the store's exports, and refused with 429 where none are left. */
|
|
@@ -9272,6 +9320,8 @@ export type DisputesSettingsResult = {
|
|
|
9272
9320
|
emailOpened: boolean;
|
|
9273
9321
|
emailClosed: boolean;
|
|
9274
9322
|
discord: boolean;
|
|
9323
|
+
discordRoles: string;
|
|
9324
|
+
discordRolesBack: boolean;
|
|
9275
9325
|
currency: string;
|
|
9276
9326
|
};
|
|
9277
9327
|
|
|
@@ -9297,6 +9347,10 @@ export interface DisputesUpdateSettingsParams {
|
|
|
9297
9347
|
emailClosed?: boolean;
|
|
9298
9348
|
/** Post both to the store's Discord. Needs a webhook in its notification settings. */
|
|
9299
9349
|
discord?: boolean;
|
|
9350
|
+
/** What an opened dispute does to a buyer who linked their Discord to the order: `keep` their roles, `take` them, `kick` (take them and remove the buyer from the server), or `ban` them from it. */
|
|
9351
|
+
discordRoles?: "keep" | "take" | "kick" | "ban";
|
|
9352
|
+
/** Whether a dispute closed in the store's favour gives the roles back, adds a kicked buyer again and lifts a ban. */
|
|
9353
|
+
discordRolesBack?: boolean;
|
|
9300
9354
|
}
|
|
9301
9355
|
|
|
9302
9356
|
/** What change dispute settings answers: `disputes.updateSettings`. */
|
|
@@ -9311,6 +9365,8 @@ export type DisputesUpdateSettingsResult = {
|
|
|
9311
9365
|
emailOpened: boolean;
|
|
9312
9366
|
emailClosed: boolean;
|
|
9313
9367
|
discord: boolean;
|
|
9368
|
+
discordRoles: string;
|
|
9369
|
+
discordRolesBack: boolean;
|
|
9314
9370
|
currency: string;
|
|
9315
9371
|
};
|
|
9316
9372
|
|
|
@@ -11542,6 +11598,7 @@ export type CustomerOrdersShowResult = {
|
|
|
11542
11598
|
};
|
|
11543
11599
|
}>;
|
|
11544
11600
|
general: string;
|
|
11601
|
+
discord: unknown;
|
|
11545
11602
|
};
|
|
11546
11603
|
|
|
11547
11604
|
/** What sign out answers: `customer.logout`. */
|
|
@@ -16457,6 +16514,9 @@ export type WebhookEventName =
|
|
|
16457
16514
|
| "order.chargeback"
|
|
16458
16515
|
| "order.payment_submitted"
|
|
16459
16516
|
| "order.rerouted"
|
|
16517
|
+
| "order.discord_linked"
|
|
16518
|
+
| "order.discord_roles_given"
|
|
16519
|
+
| "order.discord_roles_taken"
|
|
16460
16520
|
| "review.created"
|
|
16461
16521
|
| "review.removed"
|
|
16462
16522
|
| "review.flag_declined"
|
|
@@ -16593,6 +16653,24 @@ export interface WebhookEventData {
|
|
|
16593
16653
|
* `data`: The order, as [Get an order](https://docs.shoply.gg/api-reference/orders/get-an-order) answers it, with `payments`, every payment opened for it, and `invoice` where the store raised it as one.
|
|
16594
16654
|
*/
|
|
16595
16655
|
"order.rerouted": OrdersShowResult & Record<string, unknown>;
|
|
16656
|
+
/**
|
|
16657
|
+
* The buyer linked their Discord to an order, at checkout or after paying.
|
|
16658
|
+
*
|
|
16659
|
+
* `data`: The order, as [Get an order](https://docs.shoply.gg/api-reference/orders/get-an-order) answers it, with `payments`, every payment opened for it, and `invoice` where the store raised it as one.
|
|
16660
|
+
*/
|
|
16661
|
+
"order.discord_linked": OrdersShowResult & Record<string, unknown>;
|
|
16662
|
+
/**
|
|
16663
|
+
* The roles an order gives were given to its buyer in one of the store's Discord servers, adding them to the server where they were not in it.
|
|
16664
|
+
*
|
|
16665
|
+
* `data`: The order, as [Get an order](https://docs.shoply.gg/api-reference/orders/get-an-order) answers it, with `payments`, every payment opened for it, and `invoice` where the store raised it as one.
|
|
16666
|
+
*/
|
|
16667
|
+
"order.discord_roles_given": OrdersShowResult & Record<string, unknown>;
|
|
16668
|
+
/**
|
|
16669
|
+
* The roles an order gave were taken back in one of the store's Discord servers: a refund, a chargeback, a dispute, a subscription that ended, or the store by hand.
|
|
16670
|
+
*
|
|
16671
|
+
* `data`: The order, as [Get an order](https://docs.shoply.gg/api-reference/orders/get-an-order) answers it, with `payments`, every payment opened for it, and `invoice` where the store raised it as one.
|
|
16672
|
+
*/
|
|
16673
|
+
"order.discord_roles_taken": OrdersShowResult & Record<string, unknown>;
|
|
16596
16674
|
/**
|
|
16597
16675
|
* A review was left on an order, by its buyer or by itself after seven days.
|
|
16598
16676
|
*
|
|
@@ -16726,13 +16804,13 @@ export interface WebhookEventData {
|
|
|
16726
16804
|
*/
|
|
16727
16805
|
"subscription.ended": SubscriptionsShowResult & Record<string, unknown>;
|
|
16728
16806
|
/**
|
|
16729
|
-
* A subscription was paused
|
|
16807
|
+
* A subscription was paused: by its buyer or the store, or by Shoply while the store is offline. Nothing renews until it resumes. Where the store takes access back, a pause of the buyer's or the store's takes it.
|
|
16730
16808
|
*
|
|
16731
16809
|
* `data`: The subscription, as [Get a subscription](https://docs.shoply.gg/api-reference/subscriptions/get-a-subscription) answers it.
|
|
16732
16810
|
*/
|
|
16733
16811
|
"subscription.paused": SubscriptionsShowResult & Record<string, unknown>;
|
|
16734
16812
|
/**
|
|
16735
|
-
* A paused subscription is running again
|
|
16813
|
+
* A paused subscription is running again: by itself on its day, when asked, or when its store is back online. Access is given back.
|
|
16736
16814
|
*
|
|
16737
16815
|
* `data`: The subscription, as [Get a subscription](https://docs.shoply.gg/api-reference/subscriptions/get-a-subscription) answers it.
|
|
16738
16816
|
*/
|
package/generated/operations.js
CHANGED
|
@@ -387,4 +387,4 @@ export const OPERATIONS = [
|
|
|
387
387
|
];
|
|
388
388
|
|
|
389
389
|
/** Every webhook event, by name. */
|
|
390
|
-
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","review.replied","review.reply_removed","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","team.created","team.updated","team.deleted","team.member_joined","team.member_moved","team.member_left","reseller.joined","reseller.updated","reseller.removed","reseller.balance_changed","reseller.top_up_paid","reseller.top_up_submitted","reseller.order_completed","fraud.checkout_blocked","fraud.checkout_allowed","webhook.test"];
|
|
390
|
+
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","order.discord_linked","order.discord_roles_given","order.discord_roles_taken","review.created","review.removed","review.flag_declined","review.replied","review.reply_removed","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","team.created","team.updated","team.deleted","team.member_joined","team.member_moved","team.member_left","reseller.joined","reseller.updated","reseller.removed","reseller.balance_changed","reseller.top_up_paid","reseller.top_up_submitted","reseller.order_completed","fraud.checkout_blocked","fraud.checkout_allowed","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.11.3",
|
|
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",
|