bnstooltips 1.13.0 → 1.13.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
@@ -1132,18 +1132,9 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1132
1132
  * @param patch (optional)
1133
1133
  * @return Success
1134
1134
  */
1135
- BnsItemApiClient.prototype.itemsByIds = function (idsAndLevels, region, light, patch) {
1135
+ BnsItemApiClient.prototype.itemsByIds = function (region, light, patch, body) {
1136
1136
  var _this = this;
1137
1137
  var url_ = this.baseUrl + "/BnsItem/ItemsByIds?";
1138
- if (idsAndLevels === undefined || idsAndLevels === null)
1139
- throw new Error("The parameter 'idsAndLevels' must be defined and cannot be null.");
1140
- else
1141
- idsAndLevels && idsAndLevels.forEach(function (item, index) {
1142
- for (var attr in item)
1143
- if (item.hasOwnProperty(attr)) {
1144
- url_ += "idsAndLevels[" + index + "]." + attr + "=" + encodeURIComponent("" + item[attr]) + "&";
1145
- }
1146
- });
1147
1138
  if (region === undefined || region === null)
1148
1139
  throw new Error("The parameter 'region' must be defined and cannot be null.");
1149
1140
  else
@@ -1157,9 +1148,12 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1157
1148
  else if (patch !== undefined)
1158
1149
  url_ += "patch=" + encodeURIComponent("" + patch) + "&";
1159
1150
  url_ = url_.replace(/[?&]$/, "");
1151
+ var content_ = JSON.stringify(body);
1160
1152
  var options_ = {
1161
- method: "GET",
1153
+ body: content_,
1154
+ method: "POST",
1162
1155
  headers: {
1156
+ "Content-Type": "application/json",
1163
1157
  "Accept": "text/plain"
1164
1158
  }
1165
1159
  };