bnstooltips 1.18.10 → 1.18.11
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 +63 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +63 -0
- package/build/index.js.map +1 -1
- package/build/itemapiclient/ItemApiClient.d.ts +7 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -519,6 +519,69 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
519
519
|
}
|
|
520
520
|
return Promise.resolve(null);
|
|
521
521
|
};
|
|
522
|
+
/**
|
|
523
|
+
* @param patch (optional)
|
|
524
|
+
* @param v (optional)
|
|
525
|
+
* @return Success
|
|
526
|
+
*/
|
|
527
|
+
BnsItemApiClient.prototype.yastItemsNeo = function (region, itemType, technicalJobName, patch, v) {
|
|
528
|
+
var _this = this;
|
|
529
|
+
var url_ = this.baseUrl + "/BnsItem/YastItemsNeo?";
|
|
530
|
+
if (region === undefined || region === null)
|
|
531
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
532
|
+
else
|
|
533
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
534
|
+
if (itemType === undefined || itemType === null)
|
|
535
|
+
throw new Error("The parameter 'itemType' must be defined and cannot be null.");
|
|
536
|
+
else
|
|
537
|
+
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
538
|
+
if (technicalJobName === undefined || technicalJobName === null)
|
|
539
|
+
throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
|
|
540
|
+
else
|
|
541
|
+
url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
|
|
542
|
+
if (patch === null)
|
|
543
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
544
|
+
else if (patch !== undefined)
|
|
545
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
546
|
+
if (v === null)
|
|
547
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
548
|
+
else if (v !== undefined)
|
|
549
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
550
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
551
|
+
var options_ = {
|
|
552
|
+
method: "GET",
|
|
553
|
+
headers: {
|
|
554
|
+
"Accept": "application/json"
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
558
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
559
|
+
}).then(function (_response) {
|
|
560
|
+
return _this.processYastItemsNeo(_response);
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
BnsItemApiClient.prototype.processYastItemsNeo = function (response) {
|
|
564
|
+
var _this = this;
|
|
565
|
+
var status = response.status;
|
|
566
|
+
var _headers = {};
|
|
567
|
+
if (response.headers && response.headers.forEach) {
|
|
568
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
569
|
+
}
|
|
570
|
+
if (status === 200) {
|
|
571
|
+
return response.text().then(function (_responseText) {
|
|
572
|
+
var result200 = null;
|
|
573
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
574
|
+
result200 = ItemsResponse.fromJS(resultData200);
|
|
575
|
+
return result200;
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
else if (status !== 200 && status !== 204) {
|
|
579
|
+
return response.text().then(function (_responseText) {
|
|
580
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
return Promise.resolve(null);
|
|
584
|
+
};
|
|
522
585
|
/**
|
|
523
586
|
* @param patch (optional)
|
|
524
587
|
* @param v (optional)
|