@hapl/api-queries 0.1.177 → 0.1.178

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.
@@ -2877,6 +2877,27 @@ function findValuationNewsByServiceRequestIdRequest(_ref) {
2877
2877
  });
2878
2878
  }
2879
2879
 
2880
+ function updateValuationNewsStatusRequest(_ref) {
2881
+ var _ref$baseURL = _ref.baseURL,
2882
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2883
+ urlParams = _ref.urlParams,
2884
+ body = _ref.body,
2885
+ headers = _ref.headers;
2886
+ return axios.patch("/api/valuation/news/" + urlParams.status, body, {
2887
+ baseURL: baseURL,
2888
+ headers: _extends({
2889
+ Accept: 'application/json'
2890
+ }, headers),
2891
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2892
+ return data.success ? null : data.data.error;
2893
+ }])
2894
+ }).then(function (res) {
2895
+ return res;
2896
+ })["catch"](function (err) {
2897
+ throw err;
2898
+ });
2899
+ }
2900
+
2880
2901
  var AddressBTIParamsParking;
2881
2902
 
2882
2903
  (function (AddressBTIParamsParking) {
@@ -4886,6 +4907,15 @@ var Api = function Api(baseURL) {
4886
4907
  baseURL: _this.baseURL
4887
4908
  });
4888
4909
  };
4910
+
4911
+ this.updateValuationNewsStatus = function (urlParams, body, headers) {
4912
+ return updateValuationNewsStatusRequest({
4913
+ urlParams: urlParams,
4914
+ body: body,
4915
+ headers: headers,
4916
+ baseURL: _this.baseURL
4917
+ });
4918
+ };
4889
4919
  };
4890
4920
 
4891
4921
  var index = {
@@ -5004,6 +5034,7 @@ var index = {
5004
5034
  createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
5005
5035
  findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
5006
5036
  findValuationNewsByServiceRequestIdRequest: findValuationNewsByServiceRequestIdRequest,
5037
+ updateValuationNewsStatusRequest: updateValuationNewsStatusRequest,
5007
5038
  AddressBTIParamsDictionary: AddressBTIParamsDictionary,
5008
5039
  AvailableFundsDictionary: AvailableFundsDictionary,
5009
5040
  BillDictionary: BillDictionary,