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.es.js CHANGED
@@ -381,7 +381,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
381
381
  var options_ = {
382
382
  method: "GET",
383
383
  headers: {
384
- "Accept": "text/plain"
384
+ "Accept": "application/json"
385
385
  }
386
386
  };
387
387
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -435,7 +435,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
435
435
  var options_ = {
436
436
  method: "GET",
437
437
  headers: {
438
- "Accept": "text/plain"
438
+ "Accept": "application/json"
439
439
  }
440
440
  };
441
441
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -476,7 +476,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
476
476
  var options_ = {
477
477
  method: "GET",
478
478
  headers: {
479
- "Accept": "text/plain"
479
+ "Accept": "application/json"
480
480
  }
481
481
  };
482
482
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -543,7 +543,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
543
543
  var options_ = {
544
544
  method: "GET",
545
545
  headers: {
546
- "Accept": "text/plain"
546
+ "Accept": "application/json"
547
547
  }
548
548
  };
549
549
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -613,7 +613,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
613
613
  var options_ = {
614
614
  method: "GET",
615
615
  headers: {
616
- "Accept": "text/plain"
616
+ "Accept": "application/json"
617
617
  }
618
618
  };
619
619
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -675,7 +675,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
675
675
  var options_ = {
676
676
  method: "GET",
677
677
  headers: {
678
- "Accept": "text/plain"
678
+ "Accept": "application/json"
679
679
  }
680
680
  };
681
681
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -742,7 +742,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
742
742
  var options_ = {
743
743
  method: "GET",
744
744
  headers: {
745
- "Accept": "text/plain"
745
+ "Accept": "application/json"
746
746
  }
747
747
  };
748
748
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -810,7 +810,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
810
810
  var options_ = {
811
811
  method: "GET",
812
812
  headers: {
813
- "Accept": "text/plain"
813
+ "Accept": "application/json"
814
814
  }
815
815
  };
816
816
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -873,7 +873,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
873
873
  var options_ = {
874
874
  method: "GET",
875
875
  headers: {
876
- "Accept": "text/plain"
876
+ "Accept": "application/json"
877
877
  }
878
878
  };
879
879
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -927,7 +927,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
927
927
  var options_ = {
928
928
  method: "GET",
929
929
  headers: {
930
- "Accept": "text/plain"
930
+ "Accept": "application/json"
931
931
  }
932
932
  };
933
933
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -1011,7 +1011,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1011
1011
  var options_ = {
1012
1012
  method: "GET",
1013
1013
  headers: {
1014
- "Accept": "text/plain"
1014
+ "Accept": "application/json"
1015
1015
  }
1016
1016
  };
1017
1017
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -1079,7 +1079,7 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1079
1079
  var options_ = {
1080
1080
  method: "GET",
1081
1081
  headers: {
1082
- "Accept": "text/plain"
1082
+ "Accept": "application/json"
1083
1083
  }
1084
1084
  };
1085
1085
  return this.transformOptions(options_).then(function (transformedOptions_) {
@@ -1124,18 +1124,9 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1124
1124
  * @param patch (optional)
1125
1125
  * @return Success
1126
1126
  */
1127
- BnsItemApiClient.prototype.itemsByIds = function (idsAndLevels, region, light, patch) {
1127
+ BnsItemApiClient.prototype.itemsByIds = function (region, light, patch, body) {
1128
1128
  var _this = this;
1129
1129
  var url_ = this.baseUrl + "/BnsItem/ItemsByIds?";
1130
- if (idsAndLevels === undefined || idsAndLevels === null)
1131
- throw new Error("The parameter 'idsAndLevels' must be defined and cannot be null.");
1132
- else
1133
- idsAndLevels && idsAndLevels.forEach(function (item, index) {
1134
- for (var attr in item)
1135
- if (item.hasOwnProperty(attr)) {
1136
- url_ += "idsAndLevels[" + index + "]." + attr + "=" + encodeURIComponent("" + item[attr]) + "&";
1137
- }
1138
- });
1139
1130
  if (region === undefined || region === null)
1140
1131
  throw new Error("The parameter 'region' must be defined and cannot be null.");
1141
1132
  else
@@ -1149,10 +1140,13 @@ var BnsItemApiClient = /** @class */ (function (_super) {
1149
1140
  else if (patch !== undefined)
1150
1141
  url_ += "patch=" + encodeURIComponent("" + patch) + "&";
1151
1142
  url_ = url_.replace(/[?&]$/, "");
1143
+ var content_ = JSON.stringify(body);
1152
1144
  var options_ = {
1153
- method: "GET",
1145
+ body: content_,
1146
+ method: "POST",
1154
1147
  headers: {
1155
- "Accept": "text/plain"
1148
+ "Content-Type": "application/json",
1149
+ "Accept": "application/json"
1156
1150
  }
1157
1151
  };
1158
1152
  return this.transformOptions(options_).then(function (transformedOptions_) {