@hapl/api-queries 0.1.149 → 0.1.150--canary.78.f36653c.0

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.
@@ -2659,6 +2659,28 @@ function findValuationByServiceRequestIdRequest(_ref) {
2659
2659
  });
2660
2660
  }
2661
2661
 
2662
+ function createValuationRealtyCommentRequest(_ref) {
2663
+ var _ref$baseURL = _ref.baseURL,
2664
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2665
+ urlParams = _ref.urlParams,
2666
+ body = _ref.body,
2667
+ headers = _ref.headers;
2668
+ return axios.put("/api/valuation/" + urlParams.serviceRequestId + "/realty/" + urlParams.realtyId, body, {
2669
+ baseURL: baseURL,
2670
+ headers: _extends({
2671
+ Accept: 'application/json',
2672
+ 'Content-Type': 'application/json'
2673
+ }, headers),
2674
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2675
+ return data.success ? null : data.data.error;
2676
+ }])
2677
+ }).then(function (res) {
2678
+ return res;
2679
+ })["catch"](function (err) {
2680
+ throw err;
2681
+ });
2682
+ }
2683
+
2662
2684
  var AddressBTIParamsParking;
2663
2685
 
2664
2686
  (function (AddressBTIParamsParking) {
@@ -4529,6 +4551,15 @@ var Api = function Api(baseURL) {
4529
4551
  baseURL: _this.baseURL
4530
4552
  });
4531
4553
  };
4554
+
4555
+ this.createValuationRealtyComment = function (urlParams, body, headers) {
4556
+ return createValuationRealtyCommentRequest({
4557
+ urlParams: urlParams,
4558
+ body: body,
4559
+ headers: headers,
4560
+ baseURL: _this.baseURL
4561
+ });
4562
+ };
4532
4563
  };
4533
4564
 
4534
4565
  var index = {
@@ -4637,6 +4668,7 @@ var index = {
4637
4668
  findTaskByIdRequest: findTaskByIdRequest,
4638
4669
  updateTaskRequest: updateTaskRequest,
4639
4670
  findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
4671
+ createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
4640
4672
  AddressBTIParamsDictionary: AddressBTIParamsDictionary,
4641
4673
  AvailableFundsDictionary: AvailableFundsDictionary,
4642
4674
  BillDictionary: BillDictionary,