bnstooltips 1.18.10 → 1.18.12

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/index.js CHANGED
@@ -527,6 +527,69 @@ var BnsItemApiClient = /** @class */ (function (_super) {
527
527
  }
528
528
  return Promise.resolve(null);
529
529
  };
530
+ /**
531
+ * @param patch (optional)
532
+ * @param v (optional)
533
+ * @return Success
534
+ */
535
+ BnsItemApiClient.prototype.yastItemsNeo = function (region, itemType, technicalJobName, patch, v) {
536
+ var _this = this;
537
+ var url_ = this.baseUrl + "/BnsItem/YastItemsNeo?";
538
+ if (region === undefined || region === null)
539
+ throw new Error("The parameter 'region' must be defined and cannot be null.");
540
+ else
541
+ url_ += "region=" + encodeURIComponent("" + region) + "&";
542
+ if (itemType === undefined || itemType === null)
543
+ throw new Error("The parameter 'itemType' must be defined and cannot be null.");
544
+ else
545
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
546
+ if (technicalJobName === undefined || technicalJobName === null)
547
+ throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
548
+ else
549
+ url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
550
+ if (patch === null)
551
+ throw new Error("The parameter 'patch' cannot be null.");
552
+ else if (patch !== undefined)
553
+ url_ += "patch=" + encodeURIComponent("" + patch) + "&";
554
+ if (v === null)
555
+ throw new Error("The parameter 'v' cannot be null.");
556
+ else if (v !== undefined)
557
+ url_ += "v=" + encodeURIComponent("" + v) + "&";
558
+ url_ = url_.replace(/[?&]$/, "");
559
+ var options_ = {
560
+ method: "GET",
561
+ headers: {
562
+ "Accept": "application/json"
563
+ }
564
+ };
565
+ return this.transformOptions(options_).then(function (transformedOptions_) {
566
+ return _this.http.fetch(url_, transformedOptions_);
567
+ }).then(function (_response) {
568
+ return _this.processYastItemsNeo(_response);
569
+ });
570
+ };
571
+ BnsItemApiClient.prototype.processYastItemsNeo = function (response) {
572
+ var _this = this;
573
+ var status = response.status;
574
+ var _headers = {};
575
+ if (response.headers && response.headers.forEach) {
576
+ response.headers.forEach(function (v, k) { return _headers[k] = v; });
577
+ }
578
+ if (status === 200) {
579
+ return response.text().then(function (_responseText) {
580
+ var result200 = null;
581
+ var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
582
+ result200 = ItemsResponse.fromJS(resultData200);
583
+ return result200;
584
+ });
585
+ }
586
+ else if (status !== 200 && status !== 204) {
587
+ return response.text().then(function (_responseText) {
588
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
589
+ });
590
+ }
591
+ return Promise.resolve(null);
592
+ };
530
593
  /**
531
594
  * @param patch (optional)
532
595
  * @param v (optional)
@@ -8968,7 +9031,8 @@ exports.ServerRegion = void 0;
8968
9031
  (function (ServerRegion) {
8969
9032
  ServerRegion["EUNA"] = "EUNA";
8970
9033
  ServerRegion["Korea"] = "Korea";
8971
- ServerRegion["KoreaTest"] = "KoreaTest";
9034
+ ServerRegion["NEOKR"] = "NEOKR";
9035
+ ServerRegion["NEOEU"] = "NEOEU";
8972
9036
  })(exports.ServerRegion || (exports.ServerRegion = {}));
8973
9037
 
8974
9038
  var css_248z$4 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818;\n}\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0;\n}\n\n.NpcTooltip_toggleBarContainer {\n display: flex;\n}\n.NpcTooltip_toggleButton {\n flex: 1;\n border: none;\n padding: 0.33rem 0.5rem;\n border-radius: 0;\n background-color: rgba(233, 233, 233, 0.1);\n color: #fff;\n opacity: 0.8;\n cursor: pointer;\n transition: background-color 0.1s;\n}\n.NpcTooltip_toggleButton:hover {\n background-color: rgba(255, 255, 255, 0.2);\n opacity: 1;\n}\n.NpcTooltip_toggleButton-active {\n background-color: rgba(255, 255, 255, 0.3) !important;\n color: #fff;\n opacity: 1;\n}\n.NpcTooltip_storeEntry {\n display: flex;\n align-items: stretch;\n background-color: rgba(233, 233, 233, 0.1);\n padding: 0.33rem;\n font-size: 14px;\n}\n.NpcTooltip_storeEntry:not(:last-child) {\n margin-bottom: 0.2rem;\n}\n.NpcTooltip_storeEntryItemNameLimit {\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.NpcTooltip_storeEntryItemLimit {\n font-size: 12px;\n}\n.NpcTooltip_storeEntryItemName {\n flex: 1;\n display: flex;\n align-items: center;\n}\n.NpcTooltip_storeEntryItemIconName {\n display: flex;\n align-items: center;\n}\n.NpcTooltip_storeEntryItemIconName img {\n width: 48px;\n height: 48px;\n margin-right: 0.33rem;\n}\n.NpcTooltip_itemBuyPriceEntriesContainer {\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: flex-end;\n justify-content: center;\n padding-left: 2rem;\n}\n.NpcTooltip_itemBuyPriceEntries {\n display: flex;\n}\n.NpcTooltip_itemBuyPriceEntries-moneyMargin {\n margin-bottom: 0.2rem;\n}\n.NpcTooltip_itemBuyPriceEntry:not(:first-child) {\n margin-left: 0.33rem;\n}\n.NpcTooltip_itemBuyPriceEntryContainer {\n position: relative;\n height: 32px;\n}\n.NpcTooltip_itemBuyPriceEntryContainer img {\n width: 32px;\n height: 32px;\n}\n.NpcTooltip_itemBuyPriceEntryContainer-shadow {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-shadow: inset 0 0 2px 0px #000000;\n}\n.NpcTooltip_itemBuyPriceEntryCount {\n position: absolute;\n bottom: 0;\n left: 0;\n color: #ffffff;\n background-color: rgba(0, 0, 0, 0.4);\n width: 32px;\n line-height: 12px;\n text-align: center;\n}\n.NpcTooltip_moneyContainer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.NpcTooltip_moneyContainer_center {\n justify-content: center;\n}\n.NpcTooltip_moneyContainer > span {\n display: flex;\n align-items: center;\n}\n.NpcTooltip_moneyContainer > span:not(:first-child) {\n margin-left: 0.1rem;\n}\n.NpcTooltip_moneyContainer > span > img {\n width: 16px;\n height: 16px;\n}";