bnstooltips 1.13.0 → 1.13.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/index.js CHANGED
@@ -389,7 +389,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
389
389
  var options_ = {
390
390
  method: "GET",
391
391
  headers: {
392
- "Accept": "text/plain"
392
+ "Accept": "application/json"
393
393
  }
394
394
  };
395
395
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -443,7 +443,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
443
443
  var options_ = {
444
444
  method: "GET",
445
445
  headers: {
446
- "Accept": "text/plain"
446
+ "Accept": "application/json"
447
447
  }
448
448
  };
449
449
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -484,7 +484,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
484
484
  var options_ = {
485
485
  method: "GET",
486
486
  headers: {
487
- "Accept": "text/plain"
487
+ "Accept": "application/json"
488
488
  }
489
489
  };
490
490
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -551,7 +551,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
551
551
  var options_ = {
552
552
  method: "GET",
553
553
  headers: {
554
- "Accept": "text/plain"
554
+ "Accept": "application/json"
555
555
  }
556
556
  };
557
557
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -621,7 +621,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
621
621
  var options_ = {
622
622
  method: "GET",
623
623
  headers: {
624
- "Accept": "text/plain"
624
+ "Accept": "application/json"
625
625
  }
626
626
  };
627
627
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -683,7 +683,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
683
683
  var options_ = {
684
684
  method: "GET",
685
685
  headers: {
686
- "Accept": "text/plain"
686
+ "Accept": "application/json"
687
687
  }
688
688
  };
689
689
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -750,7 +750,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
750
750
  var options_ = {
751
751
  method: "GET",
752
752
  headers: {
753
- "Accept": "text/plain"
753
+ "Accept": "application/json"
754
754
  }
755
755
  };
756
756
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -818,7 +818,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
818
818
  var options_ = {
819
819
  method: "GET",
820
820
  headers: {
821
- "Accept": "text/plain"
821
+ "Accept": "application/json"
822
822
  }
823
823
  };
824
824
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -881,7 +881,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
881
881
  var options_ = {
882
882
  method: "GET",
883
883
  headers: {
884
- "Accept": "text/plain"
884
+ "Accept": "application/json"
885
885
  }
886
886
  };
887
887
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -935,7 +935,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
935
935
  var options_ = {
936
936
  method: "GET",
937
937
  headers: {
938
- "Accept": "text/plain"
938
+ "Accept": "application/json"
939
939
  }
940
940
  };
941
941
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -1019,7 +1019,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1019
1019
  var options_ = {
1020
1020
  method: "GET",
1021
1021
  headers: {
1022
- "Accept": "text/plain"
1022
+ "Accept": "application/json"
1023
1023
  }
1024
1024
  };
1025
1025
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -1087,7 +1087,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1087
1087
  var options_ = {
1088
1088
  method: "GET",
1089
1089
  headers: {
1090
- "Accept": "text/plain"
1090
+ "Accept": "application/json"
1091
1091
  }
1092
1092
  };
1093
1093
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -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,10 +1148,13 @@ 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: {
1163
- "Accept": "text/plain"
1156
+ "Content-Type": "application/json",
1157
+ "Accept": "application/json"
1164
1158
  }
1165
1159
  };
1166
1160
  return this.transformOptions(options_).then(function (transformedOptions_) {