@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.
- package/CHANGELOG.md +24 -0
- package/dist/api-queries.cjs.development.js +110 -1
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +110 -1
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +3 -0
- package/dist/clients/v1/api/valuation/actualizeValuation/index.d.ts +29 -0
- package/dist/clients/v1/api/valuation/findValuationNewsByServiceRequestId/index.d.ts +29 -0
- package/dist/clients/v1/api/valuation/updateValuationNewsStatus/index.d.ts +29 -0
- package/dist/clients/v1/index.d.ts +3 -0
- package/dist/clients/v1/types/ValuationNews.d.ts +22 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +3 -0
- package/src/clients/v1/api/valuation/actualizeValuation/index.ts +38 -0
- package/src/clients/v1/api/valuation/findValuationNewsByServiceRequestId/index.ts +39 -0
- package/src/clients/v1/api/valuation/updateValuationNewsStatus/index.ts +41 -0
- package/src/clients/v1/index.ts +19 -0
- package/src/clients/v1/types/ValuationNews.ts +22 -0
- package/src/clients/v1/types/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
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
|
+
|
|
13
|
+
# v0.1.177 (Thu Jul 21 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- FE-1367: добавлены ручки для актуализации и новостей оценки [#103](https://github.com/homeappcorporate/api-queries/pull/103) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v0.1.176 (Wed Jul 20 2022)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -2772,6 +2772,26 @@ function updateTaskRequest(_ref) {
|
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
2774
|
|
|
2775
|
+
function actualizeValuationRequest(_ref) {
|
|
2776
|
+
var _ref$baseURL = _ref.baseURL,
|
|
2777
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
2778
|
+
urlParams = _ref.urlParams,
|
|
2779
|
+
headers = _ref.headers;
|
|
2780
|
+
return axios.patch("/api/valuation/" + urlParams.serviceRequestId + "/actualize", null, {
|
|
2781
|
+
baseURL: baseURL,
|
|
2782
|
+
headers: _extends({
|
|
2783
|
+
Accept: 'application/json'
|
|
2784
|
+
}, headers),
|
|
2785
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
2786
|
+
return data.success ? data.data : data.data.error;
|
|
2787
|
+
}])
|
|
2788
|
+
}).then(function (res) {
|
|
2789
|
+
return res;
|
|
2790
|
+
})["catch"](function (err) {
|
|
2791
|
+
throw err;
|
|
2792
|
+
});
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2775
2795
|
function createValuationRequest(_ref) {
|
|
2776
2796
|
var _ref$baseURL = _ref.baseURL,
|
|
2777
2797
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -2843,6 +2863,47 @@ function findValuationByServiceRequestIdRequest(_ref) {
|
|
|
2843
2863
|
});
|
|
2844
2864
|
}
|
|
2845
2865
|
|
|
2866
|
+
function findValuationNewsByServiceRequestIdRequest(_ref) {
|
|
2867
|
+
var _ref$baseURL = _ref.baseURL,
|
|
2868
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
2869
|
+
urlParams = _ref.urlParams,
|
|
2870
|
+
headers = _ref.headers;
|
|
2871
|
+
return axios.get("/api/valuation/" + urlParams.serviceRequestId + "/news", {
|
|
2872
|
+
baseURL: baseURL,
|
|
2873
|
+
headers: _extends({
|
|
2874
|
+
Accept: 'application/json'
|
|
2875
|
+
}, headers),
|
|
2876
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
2877
|
+
return data.success ? data.data : data.data.error;
|
|
2878
|
+
}])
|
|
2879
|
+
}).then(function (res) {
|
|
2880
|
+
return res;
|
|
2881
|
+
})["catch"](function (err) {
|
|
2882
|
+
throw err;
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
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
|
+
|
|
2846
2907
|
var AddressBTIParamsParking;
|
|
2847
2908
|
|
|
2848
2909
|
(function (AddressBTIParamsParking) {
|
|
@@ -3708,6 +3769,24 @@ var UserPhoneType;
|
|
|
3708
3769
|
UserPhoneType["CiBlack"] = "ci_black";
|
|
3709
3770
|
})(UserPhoneType || (UserPhoneType = {}));
|
|
3710
3771
|
|
|
3772
|
+
var ValuationNewsActionType;
|
|
3773
|
+
|
|
3774
|
+
(function (ValuationNewsActionType) {
|
|
3775
|
+
ValuationNewsActionType["NewRealty"] = "new_realty";
|
|
3776
|
+
ValuationNewsActionType["RealtySold"] = "realty_sold";
|
|
3777
|
+
ValuationNewsActionType["RealtyExpired"] = "realty_expired";
|
|
3778
|
+
})(ValuationNewsActionType || (ValuationNewsActionType = {}));
|
|
3779
|
+
|
|
3780
|
+
var ValuationNewsStatus;
|
|
3781
|
+
|
|
3782
|
+
(function (ValuationNewsStatus) {
|
|
3783
|
+
ValuationNewsStatus["New"] = "new";
|
|
3784
|
+
ValuationNewsStatus["NewOutdated"] = "new_outdated";
|
|
3785
|
+
ValuationNewsStatus["Ignored"] = "ignored";
|
|
3786
|
+
ValuationNewsStatus["Accepted"] = "accepted";
|
|
3787
|
+
ValuationNewsStatus["Outdated"] = "outdated";
|
|
3788
|
+
})(ValuationNewsStatus || (ValuationNewsStatus = {}));
|
|
3789
|
+
|
|
3711
3790
|
var _Parking, _WallsMaterial, _HeatingType;
|
|
3712
3791
|
var AddressBTIParamsDictionary = {
|
|
3713
3792
|
Parking: (_Parking = {}, _Parking[AddressBTIParamsParking.Ground] = 'Наземная', _Parking[AddressBTIParamsParking.Multilevel] = 'Многоуровневая', _Parking[AddressBTIParamsParking.Underground] = 'Подземная', _Parking),
|
|
@@ -4793,6 +4872,14 @@ var Api = function Api(baseURL) {
|
|
|
4793
4872
|
}; // valuation
|
|
4794
4873
|
|
|
4795
4874
|
|
|
4875
|
+
this.actualizeValuation = function (urlParams, headers) {
|
|
4876
|
+
return actualizeValuationRequest({
|
|
4877
|
+
urlParams: urlParams,
|
|
4878
|
+
headers: headers,
|
|
4879
|
+
baseURL: _this.baseURL
|
|
4880
|
+
});
|
|
4881
|
+
};
|
|
4882
|
+
|
|
4796
4883
|
this.createValuation = function (body, headers) {
|
|
4797
4884
|
return createValuationRequest({
|
|
4798
4885
|
body: body,
|
|
@@ -4818,6 +4905,23 @@ var Api = function Api(baseURL) {
|
|
|
4818
4905
|
baseURL: _this.baseURL
|
|
4819
4906
|
});
|
|
4820
4907
|
};
|
|
4908
|
+
|
|
4909
|
+
this.findValuationNewsByServiceRequestId = function (urlParams, headers) {
|
|
4910
|
+
return findValuationNewsByServiceRequestIdRequest({
|
|
4911
|
+
urlParams: urlParams,
|
|
4912
|
+
headers: headers,
|
|
4913
|
+
baseURL: _this.baseURL
|
|
4914
|
+
});
|
|
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
|
+
};
|
|
4821
4925
|
};
|
|
4822
4926
|
|
|
4823
4927
|
var index = {
|
|
@@ -4931,9 +5035,12 @@ var index = {
|
|
|
4931
5035
|
findTasksRequest: findTasksRequest,
|
|
4932
5036
|
findTaskByIdRequest: findTaskByIdRequest,
|
|
4933
5037
|
updateTaskRequest: updateTaskRequest,
|
|
5038
|
+
actualizeValuationRequest: actualizeValuationRequest,
|
|
4934
5039
|
createValuationRequest: createValuationRequest,
|
|
4935
5040
|
createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
|
|
4936
5041
|
findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
|
|
5042
|
+
findValuationNewsByServiceRequestIdRequest: findValuationNewsByServiceRequestIdRequest,
|
|
5043
|
+
updateValuationNewsStatusRequest: updateValuationNewsStatusRequest,
|
|
4937
5044
|
AddressBTIParamsDictionary: AddressBTIParamsDictionary,
|
|
4938
5045
|
AvailableFundsDictionary: AvailableFundsDictionary,
|
|
4939
5046
|
BillDictionary: BillDictionary,
|
|
@@ -5039,7 +5146,9 @@ var index = {
|
|
|
5039
5146
|
get UserFiredType () { return UserFiredType; },
|
|
5040
5147
|
get UserFiredReason () { return UserFiredReason; },
|
|
5041
5148
|
get UserAttractionChannel () { return UserAttractionChannel; },
|
|
5042
|
-
get UserPhoneType () { return UserPhoneType; }
|
|
5149
|
+
get UserPhoneType () { return UserPhoneType; },
|
|
5150
|
+
get ValuationNewsActionType () { return ValuationNewsActionType; },
|
|
5151
|
+
get ValuationNewsStatus () { return ValuationNewsStatus; }
|
|
5043
5152
|
};
|
|
5044
5153
|
|
|
5045
5154
|
function createAddressRequest(_ref) {
|