bnstooltips 1.25.0 → 1.25.1

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
@@ -272,7 +272,9 @@ function getNormalizedButton(skill) {
272
272
  var compareButton = skill.Shortcut;
273
273
  if (compareButton === "SPACEBAR")
274
274
  compareButton = "SPACE";
275
- if (compareButton === "" && skill.SubTableDef === "active-skill")
275
+ if ((skill.ShortcutFixed == undefined || skill.ShortcutFixed === false) &&
276
+ compareButton === "" &&
277
+ skill.SubTableDef === "active-skill")
276
278
  compareButton = "RMB";
277
279
  if (compareButton === "T")
278
280
  compareButton = "RMB";
@@ -1043,6 +1045,73 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1043
1045
  }
1044
1046
  return Promise.resolve(null);
1045
1047
  };
1048
+ /**
1049
+ * @param patch (optional)
1050
+ * @param v (optional)
1051
+ * @return Success
1052
+ */
1053
+ BnsItemApiClient.prototype.addedOrModifiedItemsForClass = function (added, modified, region, technicalJobName, patch, v) {
1054
+ var _this = this;
1055
+ var url_ = this.baseUrl + "/BnsItem/AddedOrModifiedItemsForClass?";
1056
+ if (added === undefined || added === null)
1057
+ throw new Error("The parameter 'added' must be defined and cannot be null.");
1058
+ else
1059
+ url_ += "added=" + encodeURIComponent("" + added) + "&";
1060
+ if (modified === undefined || modified === null)
1061
+ throw new Error("The parameter 'modified' must be defined and cannot be null.");
1062
+ else
1063
+ url_ += "modified=" + encodeURIComponent("" + modified) + "&";
1064
+ if (region === undefined || region === null)
1065
+ throw new Error("The parameter 'region' must be defined and cannot be null.");
1066
+ else
1067
+ url_ += "region=" + encodeURIComponent("" + region) + "&";
1068
+ if (technicalJobName === undefined || technicalJobName === null)
1069
+ throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
1070
+ else
1071
+ url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
1072
+ if (patch === null)
1073
+ throw new Error("The parameter 'patch' cannot be null.");
1074
+ else if (patch !== undefined)
1075
+ url_ += "patch=" + encodeURIComponent("" + patch) + "&";
1076
+ if (v === null)
1077
+ throw new Error("The parameter 'v' cannot be null.");
1078
+ else if (v !== undefined)
1079
+ url_ += "v=" + encodeURIComponent("" + v) + "&";
1080
+ url_ = url_.replace(/[?&]$/, "");
1081
+ var options_ = {
1082
+ method: "GET",
1083
+ headers: {
1084
+ "Accept": "application/json"
1085
+ }
1086
+ };
1087
+ return this.transformOptions(options_).then(function (transformedOptions_) {
1088
+ return _this.http.fetch(url_, transformedOptions_);
1089
+ }).then(function (_response) {
1090
+ return _this.processAddedOrModifiedItemsForClass(_response);
1091
+ });
1092
+ };
1093
+ BnsItemApiClient.prototype.processAddedOrModifiedItemsForClass = function (response) {
1094
+ var _this = this;
1095
+ var status = response.status;
1096
+ var _headers = {};
1097
+ if (response.headers && response.headers.forEach) {
1098
+ response.headers.forEach(function (v, k) { return _headers[k] = v; });
1099
+ }
1100
+ if (status === 200) {
1101
+ return response.text().then(function (_responseText) {
1102
+ var result200 = null;
1103
+ var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1104
+ result200 = ItemsResponse.fromJS(resultData200);
1105
+ return result200;
1106
+ });
1107
+ }
1108
+ else if (status !== 200 && status !== 204) {
1109
+ return response.text().then(function (_responseText) {
1110
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1111
+ });
1112
+ }
1113
+ return Promise.resolve(null);
1114
+ };
1046
1115
  /**
1047
1116
  * @param light (optional)
1048
1117
  * @param patch (optional)