@hapl/api-queries 0.1.176 → 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.
@@ -2766,6 +2766,26 @@ function updateTaskRequest(_ref) {
2766
2766
  });
2767
2767
  }
2768
2768
 
2769
+ function actualizeValuationRequest(_ref) {
2770
+ var _ref$baseURL = _ref.baseURL,
2771
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2772
+ urlParams = _ref.urlParams,
2773
+ headers = _ref.headers;
2774
+ return axios.patch("/api/valuation/" + urlParams.serviceRequestId + "/actualize", null, {
2775
+ baseURL: baseURL,
2776
+ headers: _extends({
2777
+ Accept: 'application/json'
2778
+ }, headers),
2779
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2780
+ return data.success ? data.data : data.data.error;
2781
+ }])
2782
+ }).then(function (res) {
2783
+ return res;
2784
+ })["catch"](function (err) {
2785
+ throw err;
2786
+ });
2787
+ }
2788
+
2769
2789
  function createValuationRequest(_ref) {
2770
2790
  var _ref$baseURL = _ref.baseURL,
2771
2791
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -2837,6 +2857,47 @@ function findValuationByServiceRequestIdRequest(_ref) {
2837
2857
  });
2838
2858
  }
2839
2859
 
2860
+ function findValuationNewsByServiceRequestIdRequest(_ref) {
2861
+ var _ref$baseURL = _ref.baseURL,
2862
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2863
+ urlParams = _ref.urlParams,
2864
+ headers = _ref.headers;
2865
+ return axios.get("/api/valuation/" + urlParams.serviceRequestId + "/news", {
2866
+ baseURL: baseURL,
2867
+ headers: _extends({
2868
+ Accept: 'application/json'
2869
+ }, headers),
2870
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2871
+ return data.success ? data.data : data.data.error;
2872
+ }])
2873
+ }).then(function (res) {
2874
+ return res;
2875
+ })["catch"](function (err) {
2876
+ throw err;
2877
+ });
2878
+ }
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
+
2840
2901
  var AddressBTIParamsParking;
2841
2902
 
2842
2903
  (function (AddressBTIParamsParking) {
@@ -3702,6 +3763,24 @@ var UserPhoneType;
3702
3763
  UserPhoneType["CiBlack"] = "ci_black";
3703
3764
  })(UserPhoneType || (UserPhoneType = {}));
3704
3765
 
3766
+ var ValuationNewsActionType;
3767
+
3768
+ (function (ValuationNewsActionType) {
3769
+ ValuationNewsActionType["NewRealty"] = "new_realty";
3770
+ ValuationNewsActionType["RealtySold"] = "realty_sold";
3771
+ ValuationNewsActionType["RealtyExpired"] = "realty_expired";
3772
+ })(ValuationNewsActionType || (ValuationNewsActionType = {}));
3773
+
3774
+ var ValuationNewsStatus;
3775
+
3776
+ (function (ValuationNewsStatus) {
3777
+ ValuationNewsStatus["New"] = "new";
3778
+ ValuationNewsStatus["NewOutdated"] = "new_outdated";
3779
+ ValuationNewsStatus["Ignored"] = "ignored";
3780
+ ValuationNewsStatus["Accepted"] = "accepted";
3781
+ ValuationNewsStatus["Outdated"] = "outdated";
3782
+ })(ValuationNewsStatus || (ValuationNewsStatus = {}));
3783
+
3705
3784
  var _Parking, _WallsMaterial, _HeatingType;
3706
3785
  var AddressBTIParamsDictionary = {
3707
3786
  Parking: (_Parking = {}, _Parking[AddressBTIParamsParking.Ground] = 'Наземная', _Parking[AddressBTIParamsParking.Multilevel] = 'Многоуровневая', _Parking[AddressBTIParamsParking.Underground] = 'Подземная', _Parking),
@@ -4787,6 +4866,14 @@ var Api = function Api(baseURL) {
4787
4866
  }; // valuation
4788
4867
 
4789
4868
 
4869
+ this.actualizeValuation = function (urlParams, headers) {
4870
+ return actualizeValuationRequest({
4871
+ urlParams: urlParams,
4872
+ headers: headers,
4873
+ baseURL: _this.baseURL
4874
+ });
4875
+ };
4876
+
4790
4877
  this.createValuation = function (body, headers) {
4791
4878
  return createValuationRequest({
4792
4879
  body: body,
@@ -4812,6 +4899,23 @@ var Api = function Api(baseURL) {
4812
4899
  baseURL: _this.baseURL
4813
4900
  });
4814
4901
  };
4902
+
4903
+ this.findValuationNewsByServiceRequestId = function (urlParams, headers) {
4904
+ return findValuationNewsByServiceRequestIdRequest({
4905
+ urlParams: urlParams,
4906
+ headers: headers,
4907
+ baseURL: _this.baseURL
4908
+ });
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
+ };
4815
4919
  };
4816
4920
 
4817
4921
  var index = {
@@ -4925,9 +5029,12 @@ var index = {
4925
5029
  findTasksRequest: findTasksRequest,
4926
5030
  findTaskByIdRequest: findTaskByIdRequest,
4927
5031
  updateTaskRequest: updateTaskRequest,
5032
+ actualizeValuationRequest: actualizeValuationRequest,
4928
5033
  createValuationRequest: createValuationRequest,
4929
5034
  createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
4930
5035
  findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
5036
+ findValuationNewsByServiceRequestIdRequest: findValuationNewsByServiceRequestIdRequest,
5037
+ updateValuationNewsStatusRequest: updateValuationNewsStatusRequest,
4931
5038
  AddressBTIParamsDictionary: AddressBTIParamsDictionary,
4932
5039
  AvailableFundsDictionary: AvailableFundsDictionary,
4933
5040
  BillDictionary: BillDictionary,
@@ -5033,7 +5140,9 @@ var index = {
5033
5140
  get UserFiredType () { return UserFiredType; },
5034
5141
  get UserFiredReason () { return UserFiredReason; },
5035
5142
  get UserAttractionChannel () { return UserAttractionChannel; },
5036
- get UserPhoneType () { return UserPhoneType; }
5143
+ get UserPhoneType () { return UserPhoneType; },
5144
+ get ValuationNewsActionType () { return ValuationNewsActionType; },
5145
+ get ValuationNewsStatus () { return ValuationNewsStatus; }
5037
5146
  };
5038
5147
 
5039
5148
  function createAddressRequest(_ref) {