@shoplygg/node 0.9.0 → 0.11.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.
@@ -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: {
@@ -952,7 +954,7 @@ export interface AnalyticsSearchParams {
952
954
  export type AnalyticsSearchResult = unknown;
953
955
 
954
956
  /** What list storefronts answers: `storefronts.list`. */
955
- export type StorefrontsListResult = {
957
+ export type StorefrontsListResult = Array<{
956
958
  id: string;
957
959
  name: string;
958
960
  theme: string;
@@ -966,11 +968,12 @@ export type StorefrontsListResult = {
966
968
  engine: string;
967
969
  codeOnCopy: unknown;
968
970
  themeChanged: unknown;
971
+ pictures: unknown[] | Record<string, unknown>;
969
972
  unpublished: boolean;
970
973
  accent: unknown;
971
974
  headingFont: unknown;
972
975
  pages: number;
973
- }[];
976
+ }>;
974
977
 
975
978
  /** What create a storefront takes: `storefronts.create`. */
976
979
  export interface StorefrontsCreateParams {
@@ -987,7 +990,7 @@ export interface StorefrontsCreateParams {
987
990
  }
988
991
 
989
992
  /** What create a storefront answers: `storefronts.create`. */
990
- export type StorefrontsCreateResult = {
993
+ export type StorefrontsCreateResult = Array<{
991
994
  id: string;
992
995
  name: string;
993
996
  theme: string;
@@ -1001,11 +1004,12 @@ export type StorefrontsCreateResult = {
1001
1004
  engine: string;
1002
1005
  codeOnCopy: unknown;
1003
1006
  themeChanged: unknown;
1007
+ pictures: unknown[] | Record<string, unknown>;
1004
1008
  unpublished: boolean;
1005
1009
  accent: unknown;
1006
1010
  headingFont: unknown;
1007
1011
  pages: number;
1008
- }[];
1012
+ }>;
1009
1013
 
1010
1014
  /** What import a storefront answers: `storefronts.import`. */
1011
1015
  export type StorefrontsImportResult = unknown;
@@ -1123,7 +1127,7 @@ export interface StorefrontsRenameParams {
1123
1127
  }
1124
1128
 
1125
1129
  /** What rename a storefront answers: `storefronts.rename`. */
1126
- export type StorefrontsRenameResult = {
1130
+ export type StorefrontsRenameResult = Array<{
1127
1131
  id: string;
1128
1132
  name: string;
1129
1133
  theme: string;
@@ -1137,14 +1141,15 @@ export type StorefrontsRenameResult = {
1137
1141
  engine: string;
1138
1142
  codeOnCopy: unknown;
1139
1143
  themeChanged: unknown;
1144
+ pictures: unknown[] | Record<string, unknown>;
1140
1145
  unpublished: boolean;
1141
1146
  accent: unknown;
1142
1147
  headingFont: unknown;
1143
1148
  pages: number;
1144
- }[];
1149
+ }>;
1145
1150
 
1146
1151
  /** What delete a storefront answers: `storefronts.delete`. */
1147
- export type StorefrontsDeleteResult = {
1152
+ export type StorefrontsDeleteResult = Array<{
1148
1153
  id: string;
1149
1154
  name: string;
1150
1155
  theme: string;
@@ -1158,11 +1163,12 @@ export type StorefrontsDeleteResult = {
1158
1163
  engine: string;
1159
1164
  codeOnCopy: unknown;
1160
1165
  themeChanged: unknown;
1166
+ pictures: unknown[] | Record<string, unknown>;
1161
1167
  unpublished: boolean;
1162
1168
  accent: unknown;
1163
1169
  headingFont: unknown;
1164
1170
  pages: number;
1165
- }[];
1171
+ }>;
1166
1172
 
1167
1173
  /** What make a storefront live takes: `storefronts.setLive`. */
1168
1174
  export interface StorefrontsSetLiveParams {
@@ -1175,7 +1181,7 @@ export interface StorefrontsSetLiveParams {
1175
1181
  }
1176
1182
 
1177
1183
  /** What make a storefront live answers: `storefronts.setLive`. */
1178
- export type StorefrontsSetLiveResult = {
1184
+ export type StorefrontsSetLiveResult = Array<{
1179
1185
  id: string;
1180
1186
  name: string;
1181
1187
  theme: string;
@@ -1189,11 +1195,12 @@ export type StorefrontsSetLiveResult = {
1189
1195
  engine: string;
1190
1196
  codeOnCopy: unknown;
1191
1197
  themeChanged: unknown;
1198
+ pictures: unknown[] | Record<string, unknown>;
1192
1199
  unpublished: boolean;
1193
1200
  accent: unknown;
1194
1201
  headingFont: unknown;
1195
1202
  pages: number;
1196
- }[];
1203
+ }>;
1197
1204
 
1198
1205
  /** What get a storefront's code answers: `storefronts.code`. */
1199
1206
  export type StorefrontsCodeResult = {
@@ -1211,6 +1218,7 @@ export type StorefrontsCodeResult = {
1211
1218
  engine: string;
1212
1219
  codeOnCopy: unknown;
1213
1220
  themeChanged: unknown;
1221
+ pictures: unknown[] | Record<string, unknown>;
1214
1222
  unpublished: boolean;
1215
1223
  accent: unknown;
1216
1224
  headingFont: unknown;
@@ -1241,6 +1249,7 @@ export type StorefrontsCodeStartResult = {
1241
1249
  engine: string;
1242
1250
  codeOnCopy: unknown;
1243
1251
  themeChanged: unknown;
1252
+ pictures: unknown[] | Record<string, unknown>;
1244
1253
  unpublished: boolean;
1245
1254
  accent: unknown;
1246
1255
  headingFont: unknown;
@@ -1479,6 +1488,7 @@ export type StorefrontsCodePublishResult = {
1479
1488
  engine: string;
1480
1489
  codeOnCopy: unknown;
1481
1490
  themeChanged: unknown;
1491
+ pictures: unknown[] | Record<string, unknown>;
1482
1492
  unpublished: boolean;
1483
1493
  accent: unknown;
1484
1494
  headingFont: unknown;
@@ -2439,6 +2449,8 @@ export type ProductsListItem = {
2439
2449
  deliveryInstructions: string;
2440
2450
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2441
2451
  paymentFees: unknown[] | Record<string, unknown>;
2452
+ discordRoles: unknown[] | Record<string, unknown>;
2453
+ discordLinking: string;
2442
2454
  showViewers: boolean;
2443
2455
  showSales: boolean;
2444
2456
  salesWindow: string;
@@ -2474,6 +2486,8 @@ export type ProductsListItem = {
2474
2486
  customFields: unknown[] | Record<string, unknown>;
2475
2487
  sort: number;
2476
2488
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2489
+ discordRoles: unknown[] | Record<string, unknown>;
2490
+ discordLinking: string;
2477
2491
  }>;
2478
2492
  runningSubscriptions: number;
2479
2493
  };
@@ -2555,6 +2569,10 @@ export interface ProductsCreateParams {
2555
2569
  }>;
2556
2570
  /** Payment methods this variant cannot be bought with, by their names in the payment methods list. */
2557
2571
  blockedPaymentMethods?: string[];
2572
+ /** 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. */
2573
+ discordRoles?: string[];
2574
+ /** 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. */
2575
+ discordLinking?: "product" | "required" | "optional";
2558
2576
  /** Its place among the product's variants. Left out, its place in the list sent. */
2559
2577
  sort?: number;
2560
2578
  }>;
@@ -2592,6 +2610,10 @@ export interface ProductsCreateParams {
2592
2610
  }>;
2593
2611
  /** 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. */
2594
2612
  blockedPaymentMethods?: string[];
2613
+ /** 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. */
2614
+ discordRoles?: string[];
2615
+ /** 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. */
2616
+ discordLinking?: "store" | "required" | "optional";
2595
2617
  /** 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. */
2596
2618
  paymentFees?: Record<string, unknown>;
2597
2619
  /**
@@ -2635,6 +2657,8 @@ export type ProductsCreateResult = {
2635
2657
  deliveryInstructions: string;
2636
2658
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2637
2659
  paymentFees: unknown[] | Record<string, unknown>;
2660
+ discordRoles: unknown[] | Record<string, unknown>;
2661
+ discordLinking: string;
2638
2662
  showViewers: boolean;
2639
2663
  showSales: boolean;
2640
2664
  salesWindow: string;
@@ -2670,6 +2694,8 @@ export type ProductsCreateResult = {
2670
2694
  customFields: unknown[] | Record<string, unknown>;
2671
2695
  sort: number;
2672
2696
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2697
+ discordRoles: unknown[] | Record<string, unknown>;
2698
+ discordLinking: string;
2673
2699
  }>;
2674
2700
  runningSubscriptions: number;
2675
2701
  };
@@ -2701,6 +2727,8 @@ export type ProductsShowResult = {
2701
2727
  deliveryInstructions: string;
2702
2728
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2703
2729
  paymentFees: unknown[] | Record<string, unknown>;
2730
+ discordRoles: unknown[] | Record<string, unknown>;
2731
+ discordLinking: string;
2704
2732
  showViewers: boolean;
2705
2733
  showSales: boolean;
2706
2734
  salesWindow: string;
@@ -2736,6 +2764,8 @@ export type ProductsShowResult = {
2736
2764
  customFields: unknown[] | Record<string, unknown>;
2737
2765
  sort: number;
2738
2766
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2767
+ discordRoles: unknown[] | Record<string, unknown>;
2768
+ discordLinking: string;
2739
2769
  }>;
2740
2770
  runningSubscriptions: number;
2741
2771
  };
@@ -2817,6 +2847,10 @@ export interface ProductsUpdateParams {
2817
2847
  }>;
2818
2848
  /** Payment methods this variant cannot be bought with, by their names in the payment methods list. */
2819
2849
  blockedPaymentMethods?: string[];
2850
+ /** 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. */
2851
+ discordRoles?: string[];
2852
+ /** 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. */
2853
+ discordLinking?: "product" | "required" | "optional";
2820
2854
  /** Its place among the product's variants. Left out, its place in the list sent. */
2821
2855
  sort?: number;
2822
2856
  }>;
@@ -2854,6 +2888,10 @@ export interface ProductsUpdateParams {
2854
2888
  }>;
2855
2889
  /** 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. */
2856
2890
  blockedPaymentMethods?: string[];
2891
+ /** 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. */
2892
+ discordRoles?: string[];
2893
+ /** 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. */
2894
+ discordLinking?: "store" | "required" | "optional";
2857
2895
  /** 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. */
2858
2896
  paymentFees?: Record<string, unknown>;
2859
2897
  /**
@@ -2899,6 +2937,8 @@ export type ProductsUpdateResult = {
2899
2937
  deliveryInstructions: string;
2900
2938
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2901
2939
  paymentFees: unknown[] | Record<string, unknown>;
2940
+ discordRoles: unknown[] | Record<string, unknown>;
2941
+ discordLinking: string;
2902
2942
  showViewers: boolean;
2903
2943
  showSales: boolean;
2904
2944
  salesWindow: string;
@@ -2934,6 +2974,8 @@ export type ProductsUpdateResult = {
2934
2974
  customFields: unknown[] | Record<string, unknown>;
2935
2975
  sort: number;
2936
2976
  blockedPaymentMethods: unknown[] | Record<string, unknown>;
2977
+ discordRoles: unknown[] | Record<string, unknown>;
2978
+ discordLinking: string;
2937
2979
  }>;
2938
2980
  runningSubscriptions: number;
2939
2981
  };
@@ -2976,6 +3018,10 @@ export interface ProductsBulkUpdateParams {
2976
3018
  paymentMethods?: Record<string, unknown>;
2977
3019
  /** 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. */
2978
3020
  deliveryInstructions?: string;
3021
+ /** 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. */
3022
+ discordRoles?: Record<string, unknown>;
3023
+ /** Whether buyers of all of them must link their Discord at checkout, for the whole product. */
3024
+ discordLinking?: "store" | "required" | "optional";
2979
3025
  }
2980
3026
 
2981
3027
  /** What change many products answers: `products.bulkUpdate`. */
@@ -4318,6 +4364,7 @@ export type OrdersShowResult = {
4318
4364
  payments: unknown[] | Record<string, unknown>;
4319
4365
  invoice: unknown;
4320
4366
  disputes: unknown[] | Record<string, unknown>;
4367
+ discord: unknown;
4321
4368
  review: unknown;
4322
4369
  requests: unknown[] | Record<string, unknown>;
4323
4370
  customPayment: unknown;
@@ -7723,7 +7770,7 @@ export interface ResellerProductsBadgesParams {
7723
7770
 
7724
7771
  /** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
7725
7772
  export type ResellerProductsBadgesResult = {
7726
- "f052e845-eeca-4497-aefb-c59dea7f3d27": {
7773
+ "17a715fc-872e-4907-b0ec-f6c1ca743380": {
7727
7774
  label: string;
7728
7775
  color: string;
7729
7776
  kind: string;
@@ -7966,6 +8013,38 @@ export interface ResellerOrdersExportParams {
7966
8013
  check?: "1";
7967
8014
  }
7968
8015
 
8016
+ /** What get a reseller order answers: `resellerOrders.get`. */
8017
+ export type ResellerOrdersGetResult = {
8018
+ id: string;
8019
+ status: string;
8020
+ via: string;
8021
+ currency: string;
8022
+ total: number;
8023
+ listTotal: number;
8024
+ discount: number;
8025
+ balanceAfter: number;
8026
+ createdAt: string;
8027
+ reseller: {
8028
+ id: string;
8029
+ name: string;
8030
+ removed: boolean;
8031
+ };
8032
+ boughtBy: string;
8033
+ goodsShown: boolean;
8034
+ lines: Array<{
8035
+ productId: string;
8036
+ productName: string;
8037
+ variantName: string;
8038
+ unitPrice: number;
8039
+ quantity: number;
8040
+ delivered: number;
8041
+ keys: string[];
8042
+ items: unknown[] | Record<string, unknown>;
8043
+ waiting: boolean;
8044
+ instructions: string;
8045
+ }>;
8046
+ };
8047
+
7969
8048
  /** What list top-ups takes: `resellerTopUps.list`. */
7970
8049
  export interface ResellerTopUpsListParams {
7971
8050
  /** Only what matches this text: an order's ID, a reseller's website, or who bought or paid. */
@@ -9232,6 +9311,8 @@ export type DisputesSettingsResult = {
9232
9311
  emailOpened: boolean;
9233
9312
  emailClosed: boolean;
9234
9313
  discord: boolean;
9314
+ discordRoles: string;
9315
+ discordRolesBack: boolean;
9235
9316
  currency: string;
9236
9317
  };
9237
9318
 
@@ -9257,6 +9338,10 @@ export interface DisputesUpdateSettingsParams {
9257
9338
  emailClosed?: boolean;
9258
9339
  /** Post both to the store's Discord. Needs a webhook in its notification settings. */
9259
9340
  discord?: boolean;
9341
+ /** 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. */
9342
+ discordRoles?: "keep" | "take" | "kick" | "ban";
9343
+ /** Whether a dispute closed in the store's favour gives the roles back, adds a kicked buyer again and lifts a ban. */
9344
+ discordRolesBack?: boolean;
9260
9345
  }
9261
9346
 
9262
9347
  /** What change dispute settings answers: `disputes.updateSettings`. */
@@ -9271,6 +9356,8 @@ export type DisputesUpdateSettingsResult = {
9271
9356
  emailOpened: boolean;
9272
9357
  emailClosed: boolean;
9273
9358
  discord: boolean;
9359
+ discordRoles: string;
9360
+ discordRolesBack: boolean;
9274
9361
  currency: string;
9275
9362
  };
9276
9363
 
@@ -11502,6 +11589,7 @@ export type CustomerOrdersShowResult = {
11502
11589
  };
11503
11590
  }>;
11504
11591
  general: string;
11592
+ discord: unknown;
11505
11593
  };
11506
11594
 
11507
11595
  /** What sign out answers: `customer.logout`. */
@@ -15104,6 +15192,16 @@ export interface ShoplyResourcesResellerOrders {
15104
15192
  * @see https://docs.shoply.gg/api-reference/resellers/export-reseller-orders
15105
15193
  */
15106
15194
  export(params?: ResellerOrdersExportParams, options?: RequestOptions): Promise<Response>;
15195
+ /**
15196
+ * **Get a reseller order**
15197
+ *
15198
+ * One reseller order whole, as the dashboard's page for it shows it: who bought it (`reseller`, and `boughtBy`, the member of their team), how (`via`), the `total` taken off their balance, `listTotal` (what it came to at the panel's list prices when bought) and `discount` (what their price took off it), both null for an order from before those were kept, and `balanceAfter`. Each of `lines` is an option it bought, with its `unitPrice` and `quantity` and what it delivered: `keys`, `items` (what a dynamic delivery's server handed back, a line each), `instructions`, and `waiting` while a dynamic line is still being fetched. A store's own order or a top-up answers 404.
15199
+ *
15200
+ * Needs the `resellers.read` permission (Read Resellers).
15201
+ *
15202
+ * @see https://docs.shoply.gg/api-reference/resellers/get-a-reseller-order
15203
+ */
15204
+ get(orderId: string, options?: RequestOptions): Promise<ResellerOrdersGetResult>;
15107
15205
  }
15108
15206
 
15109
15207
  export interface ShoplyResourcesResellerTopUps {
@@ -16407,6 +16505,9 @@ export type WebhookEventName =
16407
16505
  | "order.chargeback"
16408
16506
  | "order.payment_submitted"
16409
16507
  | "order.rerouted"
16508
+ | "order.discord_linked"
16509
+ | "order.discord_roles_given"
16510
+ | "order.discord_roles_taken"
16410
16511
  | "review.created"
16411
16512
  | "review.removed"
16412
16513
  | "review.flag_declined"
@@ -16543,6 +16644,24 @@ export interface WebhookEventData {
16543
16644
  * `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.
16544
16645
  */
16545
16646
  "order.rerouted": OrdersShowResult & Record<string, unknown>;
16647
+ /**
16648
+ * The buyer linked their Discord to an order, at checkout or after paying.
16649
+ *
16650
+ * `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.
16651
+ */
16652
+ "order.discord_linked": OrdersShowResult & Record<string, unknown>;
16653
+ /**
16654
+ * 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.
16655
+ *
16656
+ * `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.
16657
+ */
16658
+ "order.discord_roles_given": OrdersShowResult & Record<string, unknown>;
16659
+ /**
16660
+ * 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.
16661
+ *
16662
+ * `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.
16663
+ */
16664
+ "order.discord_roles_taken": OrdersShowResult & Record<string, unknown>;
16546
16665
  /**
16547
16666
  * A review was left on an order, by its buyer or by itself after seven days.
16548
16667
  *
@@ -16676,13 +16795,13 @@ export interface WebhookEventData {
16676
16795
  */
16677
16796
  "subscription.ended": SubscriptionsShowResult & Record<string, unknown>;
16678
16797
  /**
16679
- * A subscription was paused, by its buyer or the store. Nothing renews until it resumes, and where the store takes access back, it was.
16798
+ * 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.
16680
16799
  *
16681
16800
  * `data`: The subscription, as [Get a subscription](https://docs.shoply.gg/api-reference/subscriptions/get-a-subscription) answers it.
16682
16801
  */
16683
16802
  "subscription.paused": SubscriptionsShowResult & Record<string, unknown>;
16684
16803
  /**
16685
- * A paused subscription is running again, by itself on its day or when asked. Access is given back.
16804
+ * A paused subscription is running again: by itself on its day, when asked, or when its store is back online. Access is given back.
16686
16805
  *
16687
16806
  * `data`: The subscription, as [Get a subscription](https://docs.shoply.gg/api-reference/subscriptions/get-a-subscription) answers it.
16688
16807
  */
@@ -266,6 +266,7 @@ export const OPERATIONS = [
266
266
  {"id":"resellerAnnouncements.delete","name":"resellerAnnouncements.delete","method":"DELETE","path":"/stores/{storeId}/resellers/announcements/{announcementId}","params":["announcementId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
267
267
  {"id":"resellerOrders.list","name":"resellerOrders.list","method":"GET","path":"/stores/{storeId}/resellers/orders","params":[],"query":["q","reseller","via","page"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
268
268
  {"id":"resellerOrders.export","name":"resellerOrders.export","method":"GET","path":"/stores/{storeId}/resellers/orders/export","params":[],"query":["q","reseller","via","check"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
269
+ {"id":"resellerOrders.get","name":"resellerOrders.get","method":"GET","path":"/stores/{storeId}/resellers/orders/{orderId}","params":["orderId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
269
270
  {"id":"resellerTopUps.list","name":"resellerTopUps.list","method":"GET","path":"/stores/{storeId}/resellers/top-ups","params":[],"query":["q","reseller","status","page"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
270
271
  {"id":"resellerTopUps.export","name":"resellerTopUps.export","method":"GET","path":"/stores/{storeId}/resellers/top-ups/export","params":[],"query":["q","reseller","status","check"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
271
272
  {"id":"resellerTopUps.payment","name":"resellerTopUps.payment","method":"GET","path":"/stores/{storeId}/resellers/top-ups/{topUpId}/payment","params":["topUpId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
@@ -386,4 +387,4 @@ export const OPERATIONS = [
386
387
  ];
387
388
 
388
389
  /** Every webhook event, by name. */
389
- 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
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { EVENTS, OPERATIONS } from "./generated/operations.js";
16
16
 
17
- export const VERSION = "0.9.0";
17
+ export const VERSION = "0.11.0";
18
18
 
19
19
  const API = "https://api.shoply.gg/v1";
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplygg/node",
3
- "version": "0.9.0",
3
+ "version": "0.11.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",