bnstooltips 1.14.1 → 1.14.2
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/build/Utilities/ItemDownloadClient.d.ts +1 -0
- package/build/index.es.js +87 -21
- package/build/index.es.js.map +1 -1
- package/build/index.js +87 -21
- package/build/index.js.map +1 -1
- package/build/itemapiclient/ItemApiClient.d.ts +26 -13
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -368,15 +368,20 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
368
368
|
return Promise.resolve(null);
|
|
369
369
|
};
|
|
370
370
|
/**
|
|
371
|
+
* @param v (optional)
|
|
371
372
|
* @return Success
|
|
372
373
|
*/
|
|
373
|
-
BnsItemApiClient.prototype.patches = function (region) {
|
|
374
|
+
BnsItemApiClient.prototype.patches = function (region, v) {
|
|
374
375
|
var _this = this;
|
|
375
376
|
var url_ = this.baseUrl + "/BnsItem/Patches?";
|
|
376
377
|
if (region === undefined || region === null)
|
|
377
378
|
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
378
379
|
else
|
|
379
380
|
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
381
|
+
if (v === null)
|
|
382
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
383
|
+
else if (v !== undefined)
|
|
384
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
380
385
|
url_ = url_.replace(/[?&]$/, "");
|
|
381
386
|
var options_ = {
|
|
382
387
|
method: "GET",
|
|
@@ -413,15 +418,20 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
413
418
|
return Promise.resolve(null);
|
|
414
419
|
};
|
|
415
420
|
/**
|
|
421
|
+
* @param v (optional)
|
|
416
422
|
* @return Success
|
|
417
423
|
*/
|
|
418
|
-
BnsItemApiClient.prototype.latestPatch = function (region) {
|
|
424
|
+
BnsItemApiClient.prototype.latestPatch = function (region, v) {
|
|
419
425
|
var _this = this;
|
|
420
426
|
var url_ = this.baseUrl + "/BnsItem/LatestPatch?";
|
|
421
427
|
if (region === undefined || region === null)
|
|
422
428
|
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
423
429
|
else
|
|
424
430
|
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
431
|
+
if (v === null)
|
|
432
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
433
|
+
else if (v !== undefined)
|
|
434
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
425
435
|
url_ = url_.replace(/[?&]$/, "");
|
|
426
436
|
var options_ = {
|
|
427
437
|
method: "GET",
|
|
@@ -458,11 +468,16 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
458
468
|
return Promise.resolve(null);
|
|
459
469
|
};
|
|
460
470
|
/**
|
|
471
|
+
* @param v (optional)
|
|
461
472
|
* @return Success
|
|
462
473
|
*/
|
|
463
|
-
BnsItemApiClient.prototype.regions = function () {
|
|
474
|
+
BnsItemApiClient.prototype.regions = function (v) {
|
|
464
475
|
var _this = this;
|
|
465
|
-
var url_ = this.baseUrl + "/BnsItem/Regions";
|
|
476
|
+
var url_ = this.baseUrl + "/BnsItem/Regions?";
|
|
477
|
+
if (v === null)
|
|
478
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
479
|
+
else if (v !== undefined)
|
|
480
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
466
481
|
url_ = url_.replace(/[?&]$/, "");
|
|
467
482
|
var options_ = {
|
|
468
483
|
method: "GET",
|
|
@@ -500,9 +515,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
500
515
|
};
|
|
501
516
|
/**
|
|
502
517
|
* @param patch (optional)
|
|
518
|
+
* @param v (optional)
|
|
503
519
|
* @return Success
|
|
504
520
|
*/
|
|
505
|
-
BnsItemApiClient.prototype.yastItems = function (region, itemType, technicalJobName, patch) {
|
|
521
|
+
BnsItemApiClient.prototype.yastItems = function (region, itemType, technicalJobName, patch, v) {
|
|
506
522
|
var _this = this;
|
|
507
523
|
var url_ = this.baseUrl + "/BnsItem/YastItems?";
|
|
508
524
|
if (region === undefined || region === null)
|
|
@@ -521,6 +537,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
521
537
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
522
538
|
else if (patch !== undefined)
|
|
523
539
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
540
|
+
if (v === null)
|
|
541
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
542
|
+
else if (v !== undefined)
|
|
543
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
524
544
|
url_ = url_.replace(/[?&]$/, "");
|
|
525
545
|
var options_ = {
|
|
526
546
|
method: "GET",
|
|
@@ -561,9 +581,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
561
581
|
* @param itemLevel (optional)
|
|
562
582
|
* @param region (optional)
|
|
563
583
|
* @param patch (optional)
|
|
584
|
+
* @param v (optional)
|
|
564
585
|
* @return Success
|
|
565
586
|
*/
|
|
566
|
-
BnsItemApiClient.prototype.allStagesForItem = function (itemId, itemLevel, region, patch) {
|
|
587
|
+
BnsItemApiClient.prototype.allStagesForItem = function (itemId, itemLevel, region, patch, v) {
|
|
567
588
|
var _this = this;
|
|
568
589
|
var url_ = this.baseUrl + "/BnsItem/AllStagesForItem?";
|
|
569
590
|
if (itemId === null)
|
|
@@ -582,6 +603,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
582
603
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
583
604
|
else if (patch !== undefined)
|
|
584
605
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
606
|
+
if (v === null)
|
|
607
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
608
|
+
else if (v !== undefined)
|
|
609
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
585
610
|
url_ = url_.replace(/[?&]$/, "");
|
|
586
611
|
var options_ = {
|
|
587
612
|
method: "GET",
|
|
@@ -622,10 +647,11 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
622
647
|
* @param itemLevel (optional)
|
|
623
648
|
* @param region (optional)
|
|
624
649
|
* @param patch (optional)
|
|
650
|
+
* @param v (optional)
|
|
625
651
|
* @return Success
|
|
626
652
|
* @deprecated
|
|
627
653
|
*/
|
|
628
|
-
BnsItemApiClient.prototype.allUpgradesForItem = function (itemId, itemLevel, region, patch) {
|
|
654
|
+
BnsItemApiClient.prototype.allUpgradesForItem = function (itemId, itemLevel, region, patch, v) {
|
|
629
655
|
var _this = this;
|
|
630
656
|
var url_ = this.baseUrl + "/BnsItem/AllUpgradesForItem?";
|
|
631
657
|
if (itemId === null)
|
|
@@ -644,6 +670,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
644
670
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
645
671
|
else if (patch !== undefined)
|
|
646
672
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
673
|
+
if (v === null)
|
|
674
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
675
|
+
else if (v !== undefined)
|
|
676
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
647
677
|
url_ = url_.replace(/[?&]$/, "");
|
|
648
678
|
var options_ = {
|
|
649
679
|
method: "GET",
|
|
@@ -681,9 +711,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
681
711
|
};
|
|
682
712
|
/**
|
|
683
713
|
* @param patch (optional)
|
|
714
|
+
* @param v (optional)
|
|
684
715
|
* @return Success
|
|
685
716
|
*/
|
|
686
|
-
BnsItemApiClient.prototype.addedOrModifiedItems = function (added, modified, region, patch) {
|
|
717
|
+
BnsItemApiClient.prototype.addedOrModifiedItems = function (added, modified, region, patch, v) {
|
|
687
718
|
var _this = this;
|
|
688
719
|
var url_ = this.baseUrl + "/BnsItem/AddedOrModifiedItems?";
|
|
689
720
|
if (added === undefined || added === null)
|
|
@@ -702,6 +733,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
702
733
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
703
734
|
else if (patch !== undefined)
|
|
704
735
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
736
|
+
if (v === null)
|
|
737
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
738
|
+
else if (v !== undefined)
|
|
739
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
705
740
|
url_ = url_.replace(/[?&]$/, "");
|
|
706
741
|
var options_ = {
|
|
707
742
|
method: "GET",
|
|
@@ -740,9 +775,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
740
775
|
/**
|
|
741
776
|
* @param light (optional)
|
|
742
777
|
* @param patch (optional)
|
|
778
|
+
* @param v (optional)
|
|
743
779
|
* @return Success
|
|
744
780
|
*/
|
|
745
|
-
BnsItemApiClient.prototype.itemByString = function (idLevel, region, light, patch) {
|
|
781
|
+
BnsItemApiClient.prototype.itemByString = function (idLevel, region, light, patch, v) {
|
|
746
782
|
var _this = this;
|
|
747
783
|
var url_ = this.baseUrl + "/BnsItem/ItemByString?";
|
|
748
784
|
if (idLevel === undefined || idLevel === null)
|
|
@@ -761,6 +797,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
761
797
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
762
798
|
else if (patch !== undefined)
|
|
763
799
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
800
|
+
if (v === null)
|
|
801
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
802
|
+
else if (v !== undefined)
|
|
803
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
764
804
|
url_ = url_.replace(/[?&]$/, "");
|
|
765
805
|
var options_ = {
|
|
766
806
|
method: "GET",
|
|
@@ -799,9 +839,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
799
839
|
/**
|
|
800
840
|
* @param light (optional)
|
|
801
841
|
* @param patch (optional)
|
|
842
|
+
* @param v (optional)
|
|
802
843
|
* @return Success
|
|
803
844
|
*/
|
|
804
|
-
BnsItemApiClient.prototype.item = function (id, level, region, light, patch) {
|
|
845
|
+
BnsItemApiClient.prototype.item = function (id, level, region, light, patch, v) {
|
|
805
846
|
var _this = this;
|
|
806
847
|
var url_ = this.baseUrl + "/BnsItem/Item?";
|
|
807
848
|
if (id === undefined || id === null)
|
|
@@ -824,6 +865,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
824
865
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
825
866
|
else if (patch !== undefined)
|
|
826
867
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
868
|
+
if (v === null)
|
|
869
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
870
|
+
else if (v !== undefined)
|
|
871
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
827
872
|
url_ = url_.replace(/[?&]$/, "");
|
|
828
873
|
var options_ = {
|
|
829
874
|
method: "GET",
|
|
@@ -861,9 +906,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
861
906
|
};
|
|
862
907
|
/**
|
|
863
908
|
* @param patch (optional)
|
|
909
|
+
* @param v (optional)
|
|
864
910
|
* @return Success
|
|
865
911
|
*/
|
|
866
|
-
BnsItemApiClient.prototype.itemsByName = function (name, region, patch) {
|
|
912
|
+
BnsItemApiClient.prototype.itemsByName = function (name, region, patch, v) {
|
|
867
913
|
var _this = this;
|
|
868
914
|
var url_ = this.baseUrl + "/BnsItem/ItemsByName?";
|
|
869
915
|
if (name === undefined || name === null)
|
|
@@ -878,6 +924,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
878
924
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
879
925
|
else if (patch !== undefined)
|
|
880
926
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
927
|
+
if (v === null)
|
|
928
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
929
|
+
else if (v !== undefined)
|
|
930
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
881
931
|
url_ = url_.replace(/[?&]$/, "");
|
|
882
932
|
var options_ = {
|
|
883
933
|
method: "GET",
|
|
@@ -920,9 +970,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
920
970
|
* @param minGs (optional)
|
|
921
971
|
* @param patch (optional)
|
|
922
972
|
* @param noDupes (optional)
|
|
973
|
+
* @param v (optional)
|
|
923
974
|
* @return Success
|
|
924
975
|
*/
|
|
925
|
-
BnsItemApiClient.prototype.itemsByCategory = function (region, category, technicalJobName, gradesString, minGs, patch, noDupes) {
|
|
976
|
+
BnsItemApiClient.prototype.itemsByCategory = function (region, category, technicalJobName, gradesString, minGs, patch, noDupes, v) {
|
|
926
977
|
var _this = this;
|
|
927
978
|
var url_ = this.baseUrl + "/BnsItem/ItemsByCategory?";
|
|
928
979
|
if (region === undefined || region === null)
|
|
@@ -953,6 +1004,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
953
1004
|
throw new Error("The parameter 'noDupes' cannot be null.");
|
|
954
1005
|
else if (noDupes !== undefined)
|
|
955
1006
|
url_ += "noDupes=" + encodeURIComponent("" + noDupes) + "&";
|
|
1007
|
+
if (v === null)
|
|
1008
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
1009
|
+
else if (v !== undefined)
|
|
1010
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
956
1011
|
url_ = url_.replace(/[?&]$/, "");
|
|
957
1012
|
var options_ = {
|
|
958
1013
|
method: "GET",
|
|
@@ -991,9 +1046,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
991
1046
|
/**
|
|
992
1047
|
* @param offset (optional)
|
|
993
1048
|
* @param patch (optional)
|
|
1049
|
+
* @param v (optional)
|
|
994
1050
|
* @return Success
|
|
995
1051
|
*/
|
|
996
|
-
BnsItemApiClient.prototype.items = function (count, region, offset, patch) {
|
|
1052
|
+
BnsItemApiClient.prototype.items = function (count, region, offset, patch, v) {
|
|
997
1053
|
var _this = this;
|
|
998
1054
|
var url_ = this.baseUrl + "/BnsItem/Items?";
|
|
999
1055
|
if (count === undefined || count === null)
|
|
@@ -1012,6 +1068,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
1012
1068
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
1013
1069
|
else if (patch !== undefined)
|
|
1014
1070
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1071
|
+
if (v === null)
|
|
1072
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
1073
|
+
else if (v !== undefined)
|
|
1074
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
1015
1075
|
url_ = url_.replace(/[?&]$/, "");
|
|
1016
1076
|
var options_ = {
|
|
1017
1077
|
method: "GET",
|
|
@@ -1050,9 +1110,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
1050
1110
|
/**
|
|
1051
1111
|
* @param light (optional)
|
|
1052
1112
|
* @param patch (optional)
|
|
1113
|
+
* @param v (optional)
|
|
1053
1114
|
* @return Success
|
|
1054
1115
|
*/
|
|
1055
|
-
BnsItemApiClient.prototype.itemsByIds = function (region, light, patch, body) {
|
|
1116
|
+
BnsItemApiClient.prototype.itemsByIds = function (region, light, patch, v, body) {
|
|
1056
1117
|
var _this = this;
|
|
1057
1118
|
var url_ = this.baseUrl + "/BnsItem/ItemsByIds?";
|
|
1058
1119
|
if (region === undefined || region === null)
|
|
@@ -1067,6 +1128,10 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
1067
1128
|
throw new Error("The parameter 'patch' cannot be null.");
|
|
1068
1129
|
else if (patch !== undefined)
|
|
1069
1130
|
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1131
|
+
if (v === null)
|
|
1132
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
1133
|
+
else if (v !== undefined)
|
|
1134
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
1070
1135
|
url_ = url_.replace(/[?&]$/, "");
|
|
1071
1136
|
var content_ = JSON.stringify(body);
|
|
1072
1137
|
var options_ = {
|
|
@@ -2502,6 +2567,7 @@ function throwException(message, status, response, headers, result) {
|
|
|
2502
2567
|
var ItemDownloadClient = /** @class */ (function () {
|
|
2503
2568
|
function ItemDownloadClient(region, patch) {
|
|
2504
2569
|
if (patch === void 0) { patch = ""; }
|
|
2570
|
+
this.apiV = "v2";
|
|
2505
2571
|
this.patch = patch;
|
|
2506
2572
|
this.region = region;
|
|
2507
2573
|
var baseUrl = ItemDownloadClient.GetUrlBase();
|
|
@@ -2520,7 +2586,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2520
2586
|
var result;
|
|
2521
2587
|
return __generator(this, function (_a) {
|
|
2522
2588
|
switch (_a.label) {
|
|
2523
|
-
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(true, false, this.region, this.patch)];
|
|
2589
|
+
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(true, false, this.region, this.patch, this.apiV)];
|
|
2524
2590
|
case 1:
|
|
2525
2591
|
result = _a.sent();
|
|
2526
2592
|
return [2 /*return*/, result.items];
|
|
@@ -2533,7 +2599,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2533
2599
|
var result;
|
|
2534
2600
|
return __generator(this, function (_a) {
|
|
2535
2601
|
switch (_a.label) {
|
|
2536
|
-
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(false, true, this.region, this.patch)];
|
|
2602
|
+
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(false, true, this.region, this.patch, this.apiV)];
|
|
2537
2603
|
case 1:
|
|
2538
2604
|
result = _a.sent();
|
|
2539
2605
|
return [2 /*return*/, result.items];
|
|
@@ -2546,7 +2612,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2546
2612
|
var result;
|
|
2547
2613
|
return __generator(this, function (_a) {
|
|
2548
2614
|
switch (_a.label) {
|
|
2549
|
-
case 0: return [4 /*yield*/, this.instance.itemByString(idlevelString, this.region, false, this.patch)];
|
|
2615
|
+
case 0: return [4 /*yield*/, this.instance.itemByString(idlevelString, this.region, false, this.patch, this.apiV)];
|
|
2550
2616
|
case 1:
|
|
2551
2617
|
result = _a.sent();
|
|
2552
2618
|
return [2 /*return*/, result];
|
|
@@ -2559,7 +2625,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2559
2625
|
var result;
|
|
2560
2626
|
return __generator(this, function (_a) {
|
|
2561
2627
|
switch (_a.label) {
|
|
2562
|
-
case 0: return [4 /*yield*/, this.instance.item(id, level, this.region, false, this.patch)];
|
|
2628
|
+
case 0: return [4 /*yield*/, this.instance.item(id, level, this.region, false, this.patch, this.apiV)];
|
|
2563
2629
|
case 1:
|
|
2564
2630
|
result = _a.sent();
|
|
2565
2631
|
return [2 /*return*/, result];
|
|
@@ -2572,7 +2638,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2572
2638
|
var result;
|
|
2573
2639
|
return __generator(this, function (_a) {
|
|
2574
2640
|
switch (_a.label) {
|
|
2575
|
-
case 0: return [4 /*yield*/, this.instance.itemsByCategory(this.region, category, technicalClassName, gradesString, minGs, this.patch, undefined)];
|
|
2641
|
+
case 0: return [4 /*yield*/, this.instance.itemsByCategory(this.region, category, technicalClassName, gradesString, minGs, this.patch, undefined, this.apiV)];
|
|
2576
2642
|
case 1:
|
|
2577
2643
|
result = _a.sent();
|
|
2578
2644
|
return [2 /*return*/, result.items];
|
|
@@ -2585,7 +2651,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2585
2651
|
var result;
|
|
2586
2652
|
return __generator(this, function (_a) {
|
|
2587
2653
|
switch (_a.label) {
|
|
2588
|
-
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(item.id, item.level, this.region, this.patch)];
|
|
2654
|
+
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(item.id, item.level, this.region, this.patch, this.apiV)];
|
|
2589
2655
|
case 1:
|
|
2590
2656
|
result = _a.sent();
|
|
2591
2657
|
return [2 /*return*/, result.items];
|
|
@@ -2598,7 +2664,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
2598
2664
|
var result;
|
|
2599
2665
|
return __generator(this, function (_a) {
|
|
2600
2666
|
switch (_a.label) {
|
|
2601
|
-
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(id, level, this.region, this.patch)];
|
|
2667
|
+
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(id, level, this.region, this.patch, this.apiV)];
|
|
2602
2668
|
case 1:
|
|
2603
2669
|
result = _a.sent();
|
|
2604
2670
|
return [2 /*return*/, result.items];
|