@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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.1.178 (Thu Jul 21 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - FE-1364: добавлена ручка смены статуса новостей [#105](https://github.com/homeappcorporate/api-queries/pull/105) ([@alexandropavlov](https://github.com/alexandropavlov))
6
+
7
+ #### Authors: 1
8
+
9
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
10
+
11
+ ---
12
+
1
13
  # v0.1.177 (Thu Jul 21 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -2883,6 +2883,27 @@ function findValuationNewsByServiceRequestIdRequest(_ref) {
2883
2883
  });
2884
2884
  }
2885
2885
 
2886
+ function updateValuationNewsStatusRequest(_ref) {
2887
+ var _ref$baseURL = _ref.baseURL,
2888
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2889
+ urlParams = _ref.urlParams,
2890
+ body = _ref.body,
2891
+ headers = _ref.headers;
2892
+ return axios.patch("/api/valuation/news/" + urlParams.status, body, {
2893
+ baseURL: baseURL,
2894
+ headers: _extends({
2895
+ Accept: 'application/json'
2896
+ }, headers),
2897
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2898
+ return data.success ? null : data.data.error;
2899
+ }])
2900
+ }).then(function (res) {
2901
+ return res;
2902
+ })["catch"](function (err) {
2903
+ throw err;
2904
+ });
2905
+ }
2906
+
2886
2907
  var AddressBTIParamsParking;
2887
2908
 
2888
2909
  (function (AddressBTIParamsParking) {
@@ -4892,6 +4913,15 @@ var Api = function Api(baseURL) {
4892
4913
  baseURL: _this.baseURL
4893
4914
  });
4894
4915
  };
4916
+
4917
+ this.updateValuationNewsStatus = function (urlParams, body, headers) {
4918
+ return updateValuationNewsStatusRequest({
4919
+ urlParams: urlParams,
4920
+ body: body,
4921
+ headers: headers,
4922
+ baseURL: _this.baseURL
4923
+ });
4924
+ };
4895
4925
  };
4896
4926
 
4897
4927
  var index = {
@@ -5010,6 +5040,7 @@ var index = {
5010
5040
  createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
5011
5041
  findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
5012
5042
  findValuationNewsByServiceRequestIdRequest: findValuationNewsByServiceRequestIdRequest,
5043
+ updateValuationNewsStatusRequest: updateValuationNewsStatusRequest,
5013
5044
  AddressBTIParamsDictionary: AddressBTIParamsDictionary,
5014
5045
  AvailableFundsDictionary: AvailableFundsDictionary,
5015
5046
  BillDictionary: BillDictionary,