@shoplygg/node 0.11.0 → 0.11.4

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.
@@ -20,6 +20,7 @@ export type KeyShowResult = {
20
20
  createdAt: string;
21
21
  lastUsedAt: unknown;
22
22
  revokedAt: unknown;
23
+ version: string;
23
24
  };
24
25
  app: unknown;
25
26
  store: {
@@ -44,6 +45,7 @@ export type KeyDestroyResult = {
44
45
  createdAt: string;
45
46
  lastUsedAt: string;
46
47
  revokedAt: string;
48
+ version: string;
47
49
  };
48
50
 
49
51
  /** What get the store answers: `store.show`. */
@@ -312,6 +314,7 @@ export type StoreEmailSettingsResult = {
312
314
  discordCustomPaidEnabled: boolean;
313
315
  discordTicketsEnabled: boolean;
314
316
  discordResellersEnabled: boolean;
317
+ discordPaypalEnabled: boolean;
315
318
  discordDisputesEnabled: boolean;
316
319
  discordStockThreshold: number;
317
320
  discordFailure: unknown;
@@ -354,6 +357,7 @@ export type PaymentMethodsListResult = Array<{
354
357
  originHint: string;
355
358
  callbackHint: string;
356
359
  copies: unknown[] | Record<string, unknown>;
360
+ friends: unknown;
357
361
  authorizeUrl: string;
358
362
  connected: boolean;
359
363
  enabled: boolean;
@@ -377,14 +381,15 @@ export type PaymentMethodsListResult = Array<{
377
381
  isSet: boolean;
378
382
  value: string;
379
383
  }[];
380
- toggles: {
384
+ toggles: Array<{
381
385
  name: string;
382
386
  label: string;
383
387
  hint: string;
384
388
  group: string;
385
389
  needs: string;
386
390
  on: boolean;
387
- }[];
391
+ choices: unknown[] | Record<string, unknown>;
392
+ }>;
388
393
  unpaidHours: unknown;
389
394
  updatedAt: unknown;
390
395
  }>;
@@ -427,6 +432,7 @@ export type PaymentMethodsSetBalanceResult = Array<{
427
432
  originHint: string;
428
433
  callbackHint: string;
429
434
  copies: unknown[] | Record<string, unknown>;
435
+ friends: unknown;
430
436
  authorizeUrl: string;
431
437
  connected: boolean;
432
438
  enabled: boolean;
@@ -450,14 +456,15 @@ export type PaymentMethodsSetBalanceResult = Array<{
450
456
  isSet: boolean;
451
457
  value: string;
452
458
  }[];
453
- toggles: {
459
+ toggles: Array<{
454
460
  name: string;
455
461
  label: string;
456
462
  hint: string;
457
463
  group: string;
458
464
  needs: string;
459
465
  on: boolean;
460
- }[];
466
+ choices: unknown[] | Record<string, unknown>;
467
+ }>;
461
468
  unpaidHours: unknown;
462
469
  updatedAt: unknown;
463
470
  }>;
@@ -482,6 +489,7 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
482
489
  originHint: string;
483
490
  callbackHint: string;
484
491
  copies: unknown[] | Record<string, unknown>;
492
+ friends: unknown;
485
493
  authorizeUrl: string;
486
494
  connected: boolean;
487
495
  enabled: boolean;
@@ -505,14 +513,15 @@ export type PaymentMethodsSetUnpaidHoursResult = Array<{
505
513
  isSet: boolean;
506
514
  value: string;
507
515
  }[];
508
- toggles: {
516
+ toggles: Array<{
509
517
  name: string;
510
518
  label: string;
511
519
  hint: string;
512
520
  group: string;
513
521
  needs: string;
514
522
  on: boolean;
515
- }[];
523
+ choices: unknown[] | Record<string, unknown>;
524
+ }>;
516
525
  unpaidHours: unknown;
517
526
  updatedAt: string;
518
527
  }>;
@@ -537,6 +546,7 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
537
546
  originHint: string;
538
547
  callbackHint: string;
539
548
  copies: unknown[] | Record<string, unknown>;
549
+ friends: unknown;
540
550
  authorizeUrl: string;
541
551
  connected: boolean;
542
552
  enabled: boolean;
@@ -560,14 +570,15 @@ export type PaymentMethodsSetMethodUnpaidHoursResult = Array<{
560
570
  isSet: boolean;
561
571
  value: string;
562
572
  }[];
563
- toggles: {
573
+ toggles: Array<{
564
574
  name: string;
565
575
  label: string;
566
576
  hint: string;
567
577
  group: string;
568
578
  needs: string;
569
579
  on: boolean;
570
- }[];
580
+ choices: unknown[] | Record<string, unknown>;
581
+ }>;
571
582
  unpaidHours: number;
572
583
  updatedAt: string;
573
584
  }>;
@@ -1560,6 +1571,7 @@ export type RoutingShowResult = {
1560
1571
  guardDeclines: number;
1561
1572
  guardWindow: number;
1562
1573
  disputeAlert: number;
1574
+ version: string;
1563
1575
  };
1564
1576
  processors: {
1565
1577
  provider: string;
@@ -1577,6 +1589,7 @@ export type RoutingShowResult = {
1577
1589
  approved: unknown;
1578
1590
  disputes: unknown;
1579
1591
  fee: unknown;
1592
+ version: string;
1580
1593
  }[];
1581
1594
  rules: {
1582
1595
  id: string;
@@ -1586,6 +1599,7 @@ export type RoutingShowResult = {
1586
1599
  amount: unknown;
1587
1600
  action: string;
1588
1601
  provider: string;
1602
+ version: string;
1589
1603
  }[];
1590
1604
  available: unknown[] | Record<string, unknown>;
1591
1605
  figures: {
@@ -1640,6 +1654,7 @@ export type RoutingUpdateResult = {
1640
1654
  guardDeclines: number;
1641
1655
  guardWindow: number;
1642
1656
  disputeAlert: number;
1657
+ version: string;
1643
1658
  };
1644
1659
  processors: {
1645
1660
  provider: string;
@@ -1657,6 +1672,7 @@ export type RoutingUpdateResult = {
1657
1672
  approved: unknown;
1658
1673
  disputes: unknown;
1659
1674
  fee: unknown;
1675
+ version: string;
1660
1676
  }[];
1661
1677
  rules: {
1662
1678
  id: string;
@@ -1666,6 +1682,7 @@ export type RoutingUpdateResult = {
1666
1682
  amount: unknown;
1667
1683
  action: string;
1668
1684
  provider: string;
1685
+ version: string;
1669
1686
  }[];
1670
1687
  available: unknown[] | Record<string, unknown>;
1671
1688
  figures: {
@@ -1706,6 +1723,7 @@ export type RoutingAddProcessorResult = {
1706
1723
  guardDeclines: number;
1707
1724
  guardWindow: number;
1708
1725
  disputeAlert: number;
1726
+ version: string;
1709
1727
  };
1710
1728
  processors: {
1711
1729
  provider: string;
@@ -1723,6 +1741,7 @@ export type RoutingAddProcessorResult = {
1723
1741
  approved: unknown;
1724
1742
  disputes: unknown;
1725
1743
  fee: unknown;
1744
+ version: string;
1726
1745
  }[];
1727
1746
  rules: unknown[] | Record<string, unknown>;
1728
1747
  available: {
@@ -1776,6 +1795,7 @@ export type RoutingUpdateProcessorResult = {
1776
1795
  guardDeclines: number;
1777
1796
  guardWindow: number;
1778
1797
  disputeAlert: number;
1798
+ version: string;
1779
1799
  };
1780
1800
  processors: {
1781
1801
  provider: string;
@@ -1793,6 +1813,7 @@ export type RoutingUpdateProcessorResult = {
1793
1813
  approved: unknown;
1794
1814
  disputes: unknown;
1795
1815
  fee: unknown;
1816
+ version: string;
1796
1817
  }[];
1797
1818
  rules: unknown[] | Record<string, unknown>;
1798
1819
  available: unknown[] | Record<string, unknown>;
@@ -1828,6 +1849,7 @@ export type RoutingRemoveProcessorResult = {
1828
1849
  guardDeclines: number;
1829
1850
  guardWindow: number;
1830
1851
  disputeAlert: number;
1852
+ version: string;
1831
1853
  };
1832
1854
  processors: {
1833
1855
  provider: string;
@@ -1845,6 +1867,7 @@ export type RoutingRemoveProcessorResult = {
1845
1867
  approved: unknown;
1846
1868
  disputes: unknown;
1847
1869
  fee: unknown;
1870
+ version: string;
1848
1871
  }[];
1849
1872
  rules: unknown[] | Record<string, unknown>;
1850
1873
  available: {
@@ -1884,6 +1907,7 @@ export type RoutingResumeProcessorResult = {
1884
1907
  guardDeclines: number;
1885
1908
  guardWindow: number;
1886
1909
  disputeAlert: number;
1910
+ version: string;
1887
1911
  };
1888
1912
  processors: {
1889
1913
  provider: string;
@@ -1901,6 +1925,7 @@ export type RoutingResumeProcessorResult = {
1901
1925
  approved: unknown;
1902
1926
  disputes: unknown;
1903
1927
  fee: unknown;
1928
+ version: string;
1904
1929
  }[];
1905
1930
  rules: {
1906
1931
  id: string;
@@ -1910,6 +1935,7 @@ export type RoutingResumeProcessorResult = {
1910
1935
  amount: unknown;
1911
1936
  action: string;
1912
1937
  provider: string;
1938
+ version: string;
1913
1939
  }[];
1914
1940
  available: unknown[] | Record<string, unknown>;
1915
1941
  figures: {
@@ -1950,6 +1976,7 @@ export type RoutingSortProcessorsResult = {
1950
1976
  guardDeclines: number;
1951
1977
  guardWindow: number;
1952
1978
  disputeAlert: number;
1979
+ version: string;
1953
1980
  };
1954
1981
  processors: {
1955
1982
  provider: string;
@@ -1967,6 +1994,7 @@ export type RoutingSortProcessorsResult = {
1967
1994
  approved: unknown;
1968
1995
  disputes: unknown;
1969
1996
  fee: unknown;
1997
+ version: string;
1970
1998
  }[];
1971
1999
  rules: unknown[] | Record<string, unknown>;
1972
2000
  available: unknown[] | Record<string, unknown>;
@@ -2018,6 +2046,7 @@ export type RoutingAddRuleResult = {
2018
2046
  guardDeclines: number;
2019
2047
  guardWindow: number;
2020
2048
  disputeAlert: number;
2049
+ version: string;
2021
2050
  };
2022
2051
  processors: {
2023
2052
  provider: string;
@@ -2035,6 +2064,7 @@ export type RoutingAddRuleResult = {
2035
2064
  approved: unknown;
2036
2065
  disputes: unknown;
2037
2066
  fee: unknown;
2067
+ version: string;
2038
2068
  }[];
2039
2069
  rules: Array<{
2040
2070
  id: string;
@@ -2044,6 +2074,7 @@ export type RoutingAddRuleResult = {
2044
2074
  amount: number;
2045
2075
  action: string;
2046
2076
  provider: string;
2077
+ version: string;
2047
2078
  }>;
2048
2079
  available: unknown[] | Record<string, unknown>;
2049
2080
  figures: {
@@ -2094,6 +2125,7 @@ export type RoutingUpdateRuleResult = {
2094
2125
  guardDeclines: number;
2095
2126
  guardWindow: number;
2096
2127
  disputeAlert: number;
2128
+ version: string;
2097
2129
  };
2098
2130
  processors: {
2099
2131
  provider: string;
@@ -2111,6 +2143,7 @@ export type RoutingUpdateRuleResult = {
2111
2143
  approved: unknown;
2112
2144
  disputes: unknown;
2113
2145
  fee: unknown;
2146
+ version: string;
2114
2147
  }[];
2115
2148
  rules: {
2116
2149
  id: string;
@@ -2120,6 +2153,7 @@ export type RoutingUpdateRuleResult = {
2120
2153
  amount: unknown;
2121
2154
  action: string;
2122
2155
  provider: string;
2156
+ version: string;
2123
2157
  }[];
2124
2158
  available: unknown[] | Record<string, unknown>;
2125
2159
  figures: {
@@ -2154,6 +2188,7 @@ export type RoutingDeleteRuleResult = {
2154
2188
  guardDeclines: number;
2155
2189
  guardWindow: number;
2156
2190
  disputeAlert: number;
2191
+ version: string;
2157
2192
  };
2158
2193
  processors: {
2159
2194
  provider: string;
@@ -2171,6 +2206,7 @@ export type RoutingDeleteRuleResult = {
2171
2206
  approved: unknown;
2172
2207
  disputes: unknown;
2173
2208
  fee: unknown;
2209
+ version: string;
2174
2210
  }[];
2175
2211
  rules: unknown[] | Record<string, unknown>;
2176
2212
  available: unknown[] | Record<string, unknown>;
@@ -2212,6 +2248,7 @@ export type RoutingSortRulesResult = {
2212
2248
  guardDeclines: number;
2213
2249
  guardWindow: number;
2214
2250
  disputeAlert: number;
2251
+ version: string;
2215
2252
  };
2216
2253
  processors: {
2217
2254
  provider: string;
@@ -2229,6 +2266,7 @@ export type RoutingSortRulesResult = {
2229
2266
  approved: unknown;
2230
2267
  disputes: unknown;
2231
2268
  fee: unknown;
2269
+ version: string;
2232
2270
  }[];
2233
2271
  rules: {
2234
2272
  id: string;
@@ -2238,6 +2276,7 @@ export type RoutingSortRulesResult = {
2238
2276
  amount: unknown;
2239
2277
  action: string;
2240
2278
  provider: string;
2279
+ version: string;
2241
2280
  }[];
2242
2281
  available: unknown[] | Record<string, unknown>;
2243
2282
  figures: {
@@ -2272,6 +2311,7 @@ export type CustomMethodsListResult = {
2272
2311
  asksProof: boolean;
2273
2312
  requiresPicture: boolean;
2274
2313
  enabled: boolean;
2314
+ version: string;
2275
2315
  }[];
2276
2316
 
2277
2317
  /** What create a custom payment method takes: `customMethods.create`. */
@@ -2306,6 +2346,7 @@ export type CustomMethodsCreateResult = {
2306
2346
  asksProof: boolean;
2307
2347
  requiresPicture: boolean;
2308
2348
  enabled: boolean;
2349
+ version: string;
2309
2350
  };
2310
2351
 
2311
2352
  /** What update a custom payment method takes: `customMethods.update`. */
@@ -2340,6 +2381,7 @@ export type CustomMethodsUpdateResult = {
2340
2381
  asksProof: boolean;
2341
2382
  requiresPicture: boolean;
2342
2383
  enabled: boolean;
2384
+ version: string;
2343
2385
  }[];
2344
2386
 
2345
2387
  /** What delete a custom payment method answers: `customMethods.delete`. */
@@ -2354,6 +2396,7 @@ export type CustomMethodsDeleteResult = {
2354
2396
  asksProof: boolean;
2355
2397
  requiresPicture: boolean;
2356
2398
  enabled: boolean;
2399
+ version: string;
2357
2400
  }[];
2358
2401
 
2359
2402
  /** What switch a custom payment method on or off takes: `customMethods.setEnabled`. */
@@ -2374,6 +2417,7 @@ export type CustomMethodsSetEnabledResult = {
2374
2417
  asksProof: boolean;
2375
2418
  requiresPicture: boolean;
2376
2419
  enabled: boolean;
2420
+ version: string;
2377
2421
  }[];
2378
2422
 
2379
2423
  /** What sort custom payment methods takes: `customMethods.sort`. */
@@ -2394,6 +2438,7 @@ export type CustomMethodsSortResult = {
2394
2438
  asksProof: boolean;
2395
2439
  requiresPicture: boolean;
2396
2440
  enabled: boolean;
2441
+ version: string;
2397
2442
  }[];
2398
2443
 
2399
2444
  /** What upload a custom payment method's icon answers: `customMethods.uploadIcon`. */
@@ -3733,6 +3778,7 @@ export type SubscriptionsSettingsResult = {
3733
3778
  autoOn: boolean;
3734
3779
  cardChangeOn: boolean;
3735
3780
  chargeTries: number;
3781
+ version: string;
3736
3782
  };
3737
3783
 
3738
3784
  /** What change subscription settings takes: `subscriptions.updateSettings`. */
@@ -3780,6 +3826,7 @@ export type SubscriptionsUpdateSettingsResult = {
3780
3826
  autoOn: boolean;
3781
3827
  cardChangeOn: boolean;
3782
3828
  chargeTries: number;
3829
+ version: string;
3783
3830
  };
3784
3831
 
3785
3832
  /** What list subscription plans answers: `subscriptions.plans`. */
@@ -3793,6 +3840,7 @@ export type SubscriptionsPlansResult = {
3793
3840
  unit: string;
3794
3841
  running: number;
3795
3842
  automatic: number;
3843
+ version: string;
3796
3844
  }[];
3797
3845
 
3798
3846
  /** What sell options as subscriptions takes: `subscriptions.savePlans`. */
@@ -3819,6 +3867,7 @@ export type SubscriptionsSavePlansResult = {
3819
3867
  unit: string;
3820
3868
  running: number;
3821
3869
  automatic: number;
3870
+ version: string;
3822
3871
  }[];
3823
3872
 
3824
3873
  /** What sell an option once again answers: `subscriptions.removePlan`. */
@@ -5377,6 +5426,7 @@ export type BlogListResult = {
5377
5426
  path: string;
5378
5427
  description: string;
5379
5428
  imageUrl: unknown;
5429
+ version: string;
5380
5430
  posts: {
5381
5431
  id: string;
5382
5432
  categoryId: string;
@@ -5409,6 +5459,7 @@ export type BlogCategoriesCreateResult = {
5409
5459
  path: string;
5410
5460
  description: string;
5411
5461
  imageUrl: unknown;
5462
+ version: string;
5412
5463
  posts: unknown[] | Record<string, unknown>;
5413
5464
  };
5414
5465
 
@@ -5430,6 +5481,7 @@ export type BlogCategoriesUpdateResult = {
5430
5481
  path: string;
5431
5482
  description: string;
5432
5483
  imageUrl: unknown;
5484
+ version: string;
5433
5485
  };
5434
5486
 
5435
5487
  /** What delete a blog category answers: `blogCategories.delete`. */
@@ -5489,6 +5541,7 @@ export type BlogPostsCreateResult = {
5489
5541
  text: string;
5490
5542
  }[];
5491
5543
  };
5544
+ version: string;
5492
5545
  };
5493
5546
 
5494
5547
  /** What get a blog post answers: `blogPosts.show`. */
@@ -5517,6 +5570,7 @@ export type BlogPostsShowResult = {
5517
5570
  text: string;
5518
5571
  }[];
5519
5572
  };
5573
+ version: string;
5520
5574
  };
5521
5575
 
5522
5576
  /** What update a blog post takes: `blogPosts.update`. */
@@ -5565,6 +5619,7 @@ export type BlogPostsUpdateResult = {
5565
5619
  text: string;
5566
5620
  }[];
5567
5621
  };
5622
+ version: string;
5568
5623
  };
5569
5624
 
5570
5625
  /** What delete a blog post answers: `blogPosts.delete`. */
@@ -5625,6 +5680,7 @@ export type SeoShowResult = {
5625
5680
  measurementId: string;
5626
5681
  hasSecret: boolean;
5627
5682
  };
5683
+ version: string;
5628
5684
  };
5629
5685
 
5630
5686
  /** What update search settings takes: `seo.update`. */
@@ -5653,6 +5709,7 @@ export type SeoUpdateResult = {
5653
5709
  measurementId: string;
5654
5710
  hasSecret: boolean;
5655
5711
  };
5712
+ version: string;
5656
5713
  };
5657
5714
 
5658
5715
  /** What list redirects and broken links answers: `redirects.list`. */
@@ -5663,6 +5720,7 @@ export type RedirectsListResult = {
5663
5720
  hits: number;
5664
5721
  createdAt: string;
5665
5722
  live: boolean;
5723
+ version: string;
5666
5724
  }[];
5667
5725
 
5668
5726
  /** What create a redirect takes: `redirects.create`. */
@@ -5681,6 +5739,7 @@ export type RedirectsCreateResult = {
5681
5739
  hits: number;
5682
5740
  createdAt: string;
5683
5741
  live: boolean;
5742
+ version: string;
5684
5743
  }[];
5685
5744
 
5686
5745
  /** What update a redirect takes: `redirects.update`. */
@@ -5699,6 +5758,7 @@ export type RedirectsUpdateResult = {
5699
5758
  hits: number;
5700
5759
  createdAt: string;
5701
5760
  live: boolean;
5761
+ version: string;
5702
5762
  }[];
5703
5763
 
5704
5764
  /** What delete a redirect answers: `redirects.delete`. */
@@ -5726,6 +5786,7 @@ export type SitemapShowResult = {
5726
5786
  listed: boolean;
5727
5787
  priority: string;
5728
5788
  changefreq: string;
5789
+ version: string;
5729
5790
  entries: {
5730
5791
  ref: string;
5731
5792
  name: string;
@@ -5734,6 +5795,7 @@ export type SitemapShowResult = {
5734
5795
  on: boolean;
5735
5796
  priority: string;
5736
5797
  changefreq: string;
5798
+ version: string;
5737
5799
  }[];
5738
5800
  }[];
5739
5801
  };
@@ -5761,6 +5823,7 @@ export type SitemapUpdateKindResult = {
5761
5823
  listed: boolean;
5762
5824
  priority: string;
5763
5825
  changefreq: string;
5826
+ version: string;
5764
5827
  entries: {
5765
5828
  ref: string;
5766
5829
  name: string;
@@ -5769,6 +5832,7 @@ export type SitemapUpdateKindResult = {
5769
5832
  on: boolean;
5770
5833
  priority: string;
5771
5834
  changefreq: string;
5835
+ version: string;
5772
5836
  }[];
5773
5837
  }[];
5774
5838
  };
@@ -5819,6 +5883,7 @@ export type CartRecoveryShowResult = {
5819
5883
  secondMinutes: number;
5820
5884
  secondSubject: string;
5821
5885
  secondPercent: number;
5886
+ version: string;
5822
5887
  };
5823
5888
 
5824
5889
  /** What change Cart Recovery takes: `cartRecovery.update`. */
@@ -5860,6 +5925,7 @@ export type CartRecoveryUpdateResult = {
5860
5925
  secondMinutes: number;
5861
5926
  secondSubject: string;
5862
5927
  secondPercent: number;
5928
+ version: string;
5863
5929
  };
5864
5930
 
5865
5931
  /** What list carts takes: `cartRecovery.carts`. */
@@ -5955,6 +6021,7 @@ export type WinBackShowResult = {
5955
6021
  secondSubject: string;
5956
6022
  secondPercent: number;
5957
6023
  audience: string;
6024
+ version: string;
5958
6025
  };
5959
6026
 
5960
6027
  /** What change Win-Back takes: `winBack.update`. */
@@ -5990,6 +6057,7 @@ export type WinBackUpdateResult = {
5990
6057
  secondSubject: string;
5991
6058
  secondPercent: number;
5992
6059
  audience: string;
6060
+ version: string;
5993
6061
  };
5994
6062
 
5995
6063
  /** What list Win-Back buyers takes: `winBack.buyers`. */
@@ -6724,6 +6792,7 @@ export type CustomerTagsListResult = {
6724
6792
  automatic: boolean;
6725
6793
  customers: number;
6726
6794
  coupons: number;
6795
+ version: string;
6727
6796
  }[];
6728
6797
 
6729
6798
  /** What add a customer tag takes: `customerTags.create`. */
@@ -6744,6 +6813,7 @@ export type CustomerTagsCreateResult = {
6744
6813
  name: string;
6745
6814
  tone: string;
6746
6815
  automatic: boolean;
6816
+ version: string;
6747
6817
  };
6748
6818
 
6749
6819
  /** What change VIP and Disputed Before takes: `customerTags.automatic`. */
@@ -6768,6 +6838,7 @@ export type CustomerTagsAutomaticResult = {
6768
6838
  automatic: boolean;
6769
6839
  customers: number;
6770
6840
  coupons: number;
6841
+ version: string;
6771
6842
  }[];
6772
6843
 
6773
6844
  /** What change a customer tag takes: `customerTags.update`. */
@@ -6784,6 +6855,7 @@ export type CustomerTagsUpdateResult = {
6784
6855
  name: string;
6785
6856
  tone: string;
6786
6857
  automatic: boolean;
6858
+ version: string;
6787
6859
  };
6788
6860
 
6789
6861
  /** What delete a customer tag answers: `customerTags.delete`. */
@@ -6834,6 +6906,7 @@ export type AffiliatesListResult = {
6834
6906
  paidAsCredit: number;
6835
6907
  joinedThemselves: boolean;
6836
6908
  dateCreated: string;
6909
+ version: string;
6837
6910
  }[];
6838
6911
 
6839
6912
  /** What create an affiliate takes: `affiliates.create`. */
@@ -6874,6 +6947,7 @@ export type AffiliatesCreateResult = {
6874
6947
  paidAsCredit: number;
6875
6948
  joinedThemselves: boolean;
6876
6949
  dateCreated: string;
6950
+ version: string;
6877
6951
  };
6878
6952
 
6879
6953
  /** What update an affiliate takes: `affiliates.update`. */
@@ -6912,6 +6986,7 @@ export type AffiliatesUpdateResult = {
6912
6986
  paidAsCredit: number;
6913
6987
  joinedThemselves: boolean;
6914
6988
  dateCreated: string;
6989
+ version: string;
6915
6990
  };
6916
6991
 
6917
6992
  /** What delete an affiliate answers: `affiliates.delete`. */
@@ -6934,6 +7009,7 @@ export type AffiliatesDeleteResult = {
6934
7009
  paidAsCredit: number;
6935
7010
  joinedThemselves: boolean;
6936
7011
  dateCreated: string;
7012
+ version: string;
6937
7013
  }[];
6938
7014
 
6939
7015
  /** What change an affiliate's balance takes: `affiliates.setBalance`. */
@@ -6966,6 +7042,7 @@ export type AffiliatesSetBalanceResult = {
6966
7042
  paidAsCredit: number;
6967
7043
  joinedThemselves: boolean;
6968
7044
  dateCreated: string;
7045
+ version: string;
6969
7046
  };
6970
7047
 
6971
7048
  /** What get an affiliate's history answers: `affiliates.history`. */
@@ -7417,6 +7494,7 @@ export type TeamGetResult = {
7417
7494
  waiting: number;
7418
7495
  createdAt: string;
7419
7496
  updatedAt: string;
7497
+ version: string;
7420
7498
  }[];
7421
7499
  invites: {
7422
7500
  id: string;
@@ -7518,6 +7596,7 @@ export type TeamsCreateResult = {
7518
7596
  waiting: number;
7519
7597
  createdAt: string;
7520
7598
  updatedAt: string;
7599
+ version: string;
7521
7600
  };
7522
7601
 
7523
7602
  /** What update a team takes: `teams.update`. */
@@ -7539,6 +7618,7 @@ export type TeamsUpdateResult = {
7539
7618
  waiting: number;
7540
7619
  createdAt: string;
7541
7620
  updatedAt: string;
7621
+ version: string;
7542
7622
  };
7543
7623
 
7544
7624
  /** What delete a team answers: `teams.delete`. */
@@ -7663,6 +7743,7 @@ export type ResellersOverviewResult = {
7663
7743
  lastOrderAt: string;
7664
7744
  joinedAt: string;
7665
7745
  removedAt: unknown;
7746
+ version: string;
7666
7747
  }[];
7667
7748
  };
7668
7749
 
@@ -7770,7 +7851,7 @@ export interface ResellerProductsBadgesParams {
7770
7851
 
7771
7852
  /** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
7772
7853
  export type ResellerProductsBadgesResult = {
7773
- "17a715fc-872e-4907-b0ec-f6c1ca743380": {
7854
+ "5553d50f-7e0b-405b-9a29-b30b84627a91": {
7774
7855
  label: string;
7775
7856
  color: string;
7776
7857
  kind: string;
@@ -7784,6 +7865,7 @@ export type ResellerTiersListResult = {
7784
7865
  discount: number;
7785
7866
  resellers: number;
7786
7867
  spent30: number;
7868
+ version: string;
7787
7869
  }[];
7788
7870
 
7789
7871
  /** What create a tier takes: `resellerTiers.create`. */
@@ -7801,6 +7883,7 @@ export type ResellerTiersCreateResult = {
7801
7883
  discount: number;
7802
7884
  resellers: number;
7803
7885
  spent30: number;
7886
+ version: string;
7804
7887
  };
7805
7888
 
7806
7889
  /** What update a tier takes: `resellerTiers.update`. */
@@ -7818,6 +7901,7 @@ export type ResellerTiersUpdateResult = {
7818
7901
  discount: number;
7819
7902
  resellers: number;
7820
7903
  spent30: number;
7904
+ version: string;
7821
7905
  };
7822
7906
 
7823
7907
  /** What delete a tier answers: `resellerTiers.delete`. */
@@ -7835,6 +7919,7 @@ export type ResellerInvitesListResult = {
7835
7919
  endsAt: string;
7836
7920
  enabled: boolean;
7837
7921
  live: boolean;
7922
+ version: string;
7838
7923
  }[];
7839
7924
 
7840
7925
  /** What create an invite link takes: `resellerInvites.create`. */
@@ -7867,6 +7952,7 @@ export type ResellerInvitesCreateResult = {
7867
7952
  endsAt: unknown;
7868
7953
  enabled: boolean;
7869
7954
  live: boolean;
7955
+ version: string;
7870
7956
  };
7871
7957
 
7872
7958
  /** What update an invite link takes: `resellerInvites.update`. */
@@ -7899,6 +7985,7 @@ export type ResellerInvitesUpdateResult = {
7899
7985
  endsAt: string;
7900
7986
  enabled: boolean;
7901
7987
  live: boolean;
7988
+ version: string;
7902
7989
  };
7903
7990
 
7904
7991
  /** What delete an invite link answers: `resellerInvites.delete`. */
@@ -7913,6 +8000,7 @@ export type ResellerAnnouncementsListResult = {
7913
8000
  createdAt: string;
7914
8001
  updatedAt: string;
7915
8002
  closes: number;
8003
+ version: string;
7916
8004
  }[];
7917
8005
 
7918
8006
  /** What post an announcement takes: `resellerAnnouncements.create`. */
@@ -7938,6 +8026,7 @@ export type ResellerAnnouncementsCreateResult = {
7938
8026
  createdAt: string;
7939
8027
  updatedAt: string;
7940
8028
  closes: number;
8029
+ version: string;
7941
8030
  };
7942
8031
 
7943
8032
  /** What update an announcement takes: `resellerAnnouncements.update`. */
@@ -7963,6 +8052,7 @@ export type ResellerAnnouncementsUpdateResult = {
7963
8052
  createdAt: string;
7964
8053
  updatedAt: string;
7965
8054
  closes: number;
8055
+ version: string;
7966
8056
  };
7967
8057
 
7968
8058
  /** What delete an announcement answers: `resellerAnnouncements.delete`. */
@@ -8140,6 +8230,7 @@ export type ResellersListResult = {
8140
8230
  lastOrderAt: unknown;
8141
8231
  joinedAt: string;
8142
8232
  removedAt: unknown;
8233
+ version: string;
8143
8234
  }[];
8144
8235
 
8145
8236
  /** What get a reseller answers: `resellers.get`. */
@@ -8160,6 +8251,7 @@ export type ResellersGetResult = {
8160
8251
  lastOrderAt: string;
8161
8252
  joinedAt: string;
8162
8253
  removedAt: unknown;
8254
+ version: string;
8163
8255
  inviteName: unknown;
8164
8256
  team: {
8165
8257
  id: string;
@@ -8176,6 +8268,7 @@ export type ResellersGetResult = {
8176
8268
  verified: boolean;
8177
8269
  lastSeenAt: unknown;
8178
8270
  joinedAt: string;
8271
+ version: string;
8179
8272
  }[];
8180
8273
  catalogue: Array<{
8181
8274
  id: string;
@@ -8217,6 +8310,7 @@ export type ResellersUpdateResult = {
8217
8310
  lastOrderAt: unknown;
8218
8311
  joinedAt: string;
8219
8312
  removedAt: unknown;
8313
+ version: string;
8220
8314
  inviteName: unknown;
8221
8315
  team: {
8222
8316
  id: string;
@@ -8233,6 +8327,7 @@ export type ResellersUpdateResult = {
8233
8327
  verified: boolean;
8234
8328
  lastSeenAt: unknown;
8235
8329
  joinedAt: string;
8330
+ version: string;
8236
8331
  }[];
8237
8332
  catalogue: Array<{
8238
8333
  id: string;
@@ -8279,6 +8374,7 @@ export type ResellersSetBalanceResult = {
8279
8374
  lastOrderAt: unknown;
8280
8375
  joinedAt: string;
8281
8376
  removedAt: unknown;
8377
+ version: string;
8282
8378
  inviteName: unknown;
8283
8379
  team: {
8284
8380
  id: string;
@@ -8295,6 +8391,7 @@ export type ResellersSetBalanceResult = {
8295
8391
  verified: boolean;
8296
8392
  lastSeenAt: unknown;
8297
8393
  joinedAt: string;
8394
+ version: string;
8298
8395
  }[];
8299
8396
  catalogue: Array<{
8300
8397
  id: string;
@@ -8332,6 +8429,7 @@ export type ResellersUpdateMemberResult = {
8332
8429
  lastOrderAt: unknown;
8333
8430
  joinedAt: string;
8334
8431
  removedAt: unknown;
8432
+ version: string;
8335
8433
  inviteName: unknown;
8336
8434
  team: {
8337
8435
  id: string;
@@ -8348,6 +8446,7 @@ export type ResellersUpdateMemberResult = {
8348
8446
  verified: boolean;
8349
8447
  lastSeenAt: unknown;
8350
8448
  joinedAt: string;
8449
+ version: string;
8351
8450
  }[];
8352
8451
  catalogue: Array<{
8353
8452
  id: string;
@@ -8379,6 +8478,7 @@ export type ResellersRemoveMemberResult = {
8379
8478
  lastOrderAt: string;
8380
8479
  joinedAt: string;
8381
8480
  removedAt: unknown;
8481
+ version: string;
8382
8482
  inviteName: unknown;
8383
8483
  team: {
8384
8484
  id: string;
@@ -8395,6 +8495,7 @@ export type ResellersRemoveMemberResult = {
8395
8495
  verified: boolean;
8396
8496
  lastSeenAt: unknown;
8397
8497
  joinedAt: string;
8498
+ version: string;
8398
8499
  }[];
8399
8500
  catalogue: Array<{
8400
8501
  id: string;
@@ -8704,8 +8805,8 @@ export interface FraudEventsListParams {
8704
8805
  * Left out, it is 20.
8705
8806
  */
8706
8807
  perPage?: number;
8707
- /** Only events of this reason. `changes` is every change to the rules and settings. */
8708
- reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
8808
+ /** 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. */
8809
+ reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
8709
8810
  /** Part of an email address, an IP address or a rule's value. */
8710
8811
  search?: string;
8711
8812
  /** Only events in this period. */
@@ -8742,8 +8843,8 @@ export type FraudEventsListItem = {
8742
8843
 
8743
8844
  /** What export fraud events takes: `fraudEvents.export`. */
8744
8845
  export interface FraudEventsExportParams {
8745
- /** Only events of this reason. `changes` is every change to the rules and settings. */
8746
- reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
8846
+ /** 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. */
8847
+ reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "imported" | "changes";
8747
8848
  /** Part of an email address, an IP address or a rule's value. */
8748
8849
  search?: string;
8749
8850
  /** `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. */
@@ -9314,6 +9415,7 @@ export type DisputesSettingsResult = {
9314
9415
  discordRoles: string;
9315
9416
  discordRolesBack: boolean;
9316
9417
  currency: string;
9418
+ version: string;
9317
9419
  };
9318
9420
 
9319
9421
  /** What change dispute settings takes: `disputes.updateSettings`. */
@@ -9359,6 +9461,7 @@ export type DisputesUpdateSettingsResult = {
9359
9461
  discordRoles: string;
9360
9462
  discordRolesBack: boolean;
9361
9463
  currency: string;
9464
+ version: string;
9362
9465
  };
9363
9466
 
9364
9467
  /** What get finance access answers: `finance.access`. */
@@ -9596,6 +9699,7 @@ export type FinancePaymentCostsResult = {
9596
9699
  percent: number;
9597
9700
  fixed: number;
9598
9701
  };
9702
+ version: string;
9599
9703
  };
9600
9704
 
9601
9705
  /** What set payment fee rates takes: `finance.setPaymentCosts`. */
@@ -9898,6 +10002,8 @@ export type TaxShowResult = {
9898
10002
  };
9899
10003
  limit: number;
9900
10004
  maxRate: number;
10005
+ version: string;
10006
+ ratesVersion: string;
9901
10007
  };
9902
10008
 
9903
10009
  /** What update tax settings takes: `tax.update`. */
@@ -10181,6 +10287,8 @@ export type TaxUpdateResult = {
10181
10287
  };
10182
10288
  limit: number;
10183
10289
  maxRate: number;
10290
+ version: string;
10291
+ ratesVersion: string;
10184
10292
  };
10185
10293
 
10186
10294
  /** What add or change tax rates takes: `tax.setRates`. */
@@ -10475,6 +10583,8 @@ export type TaxSetRatesResult = {
10475
10583
  };
10476
10584
  limit: number;
10477
10585
  maxRate: number;
10586
+ version: string;
10587
+ ratesVersion: string;
10478
10588
  };
10479
10589
 
10480
10590
  /** What remove a tax rate takes: `tax.deleteRate`. */
@@ -10764,6 +10874,8 @@ export type TaxDeleteRateResult = {
10764
10874
  };
10765
10875
  limit: number;
10766
10876
  maxRate: number;
10877
+ version: string;
10878
+ ratesVersion: string;
10767
10879
  };
10768
10880
 
10769
10881
  /** What list expenses takes: `expenses.list`. */
@@ -11587,6 +11699,7 @@ export type CustomerOrdersShowResult = {
11587
11699
  instructions: string;
11588
11700
  files: unknown[] | Record<string, unknown>;
11589
11701
  };
11702
+ addons: unknown[] | Record<string, unknown>;
11590
11703
  }>;
11591
11704
  general: string;
11592
11705
  discord: unknown;
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.11.0";
17
+ export const VERSION = "0.11.4";
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.11.0",
3
+ "version": "0.11.4",
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",