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.
@@ -18,7 +18,8 @@ export interface ItemLookupFile {
18
18
  export declare enum ServerRegion {
19
19
  EUNA = "EUNA",
20
20
  Korea = "Korea",
21
- KoreaTest = "KoreaTest"
21
+ NEOKR = "NEOKR",
22
+ NEOEU = "NEOEU"
22
23
  }
23
24
  export interface ITooltipWrapper {
24
25
  followCursor?: boolean;
package/build/index.es.js CHANGED
@@ -519,6 +519,69 @@ var BnsItemApiClient = /** @class */ (function (_super) {
519
519
  }
520
520
  return Promise.resolve(null);
521
521
  };
522
+ /**
523
+ * @param patch (optional)
524
+ * @param v (optional)
525
+ * @return Success
526
+ */
527
+ BnsItemApiClient.prototype.yastItemsNeo = function (region, itemType, technicalJobName, patch, v) {
528
+ var _this = this;
529
+ var url_ = this.baseUrl + "/BnsItem/YastItemsNeo?";
530
+ if (region === undefined || region === null)
531
+ throw new Error("The parameter 'region' must be defined and cannot be null.");
532
+ else
533
+ url_ += "region=" + encodeURIComponent("" + region) + "&";
534
+ if (itemType === undefined || itemType === null)
535
+ throw new Error("The parameter 'itemType' must be defined and cannot be null.");
536
+ else
537
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
538
+ if (technicalJobName === undefined || technicalJobName === null)
539
+ throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
540
+ else
541
+ url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
542
+ if (patch === null)
543
+ throw new Error("The parameter 'patch' cannot be null.");
544
+ else if (patch !== undefined)
545
+ url_ += "patch=" + encodeURIComponent("" + patch) + "&";
546
+ if (v === null)
547
+ throw new Error("The parameter 'v' cannot be null.");
548
+ else if (v !== undefined)
549
+ url_ += "v=" + encodeURIComponent("" + v) + "&";
550
+ url_ = url_.replace(/[?&]$/, "");
551
+ var options_ = {
552
+ method: "GET",
553
+ headers: {
554
+ "Accept": "application/json"
555
+ }
556
+ };
557
+ return this.transformOptions(options_).then(function (transformedOptions_) {
558
+ return _this.http.fetch(url_, transformedOptions_);
559
+ }).then(function (_response) {
560
+ return _this.processYastItemsNeo(_response);
561
+ });
562
+ };
563
+ BnsItemApiClient.prototype.processYastItemsNeo = function (response) {
564
+ var _this = this;
565
+ var status = response.status;
566
+ var _headers = {};
567
+ if (response.headers && response.headers.forEach) {
568
+ response.headers.forEach(function (v, k) { return _headers[k] = v; });
569
+ }
570
+ if (status === 200) {
571
+ return response.text().then(function (_responseText) {
572
+ var result200 = null;
573
+ var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
574
+ result200 = ItemsResponse.fromJS(resultData200);
575
+ return result200;
576
+ });
577
+ }
578
+ else if (status !== 200 && status !== 204) {
579
+ return response.text().then(function (_responseText) {
580
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
581
+ });
582
+ }
583
+ return Promise.resolve(null);
584
+ };
522
585
  /**
523
586
  * @param patch (optional)
524
587
  * @param v (optional)
@@ -8960,7 +9023,8 @@ var ServerRegion;
8960
9023
  (function (ServerRegion) {
8961
9024
  ServerRegion["EUNA"] = "EUNA";
8962
9025
  ServerRegion["Korea"] = "Korea";
8963
- ServerRegion["KoreaTest"] = "KoreaTest";
9026
+ ServerRegion["NEOKR"] = "NEOKR";
9027
+ ServerRegion["NEOEU"] = "NEOEU";
8964
9028
  })(ServerRegion || (ServerRegion = {}));
8965
9029
 
8966
9030
  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}";