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.es.js +5 -11
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -11
- package/build/index.js.map +1 -1
- package/build/itemapiclient/ItemApiClient.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -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 (
|
|
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,9 +1140,12 @@ 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
|
-
|
|
1145
|
+
body: content_,
|
|
1146
|
+
method: "POST",
|
|
1154
1147
|
headers: {
|
|
1148
|
+
"Content-Type": "application/json",
|
|
1155
1149
|
"Accept": "text/plain"
|
|
1156
1150
|
}
|
|
1157
1151
|
};
|