@hapl/api-queries 0.1.158--canary.85.1ce578e.0 → 0.1.158
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 +12 -0
- package/dist/api-queries.cjs.development.js +61 -62
- 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 +61 -62
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/types/Valuation.d.ts +1 -29
- package/dist/registry/v1/api/{geo/address → address}/createAddress/index.d.ts +1 -1
- package/dist/registry/v1/api/{geo/address → address}/findAddressById/index.d.ts +1 -1
- package/dist/registry/v1/api/{geo/address → address}/findAddressesByRealtyParams/index.d.ts +1 -1
- package/dist/registry/v1/api/index.d.ts +3 -3
- package/dist/registry/v1/api/valuation/calculateValuation/index.d.ts +1 -1
- package/dist/registry/v1/dictionaries/Valuation.d.ts +1 -1
- package/dist/registry/v1/types/Realty.d.ts +1 -0
- package/dist/registry/v1/types/Valuation.d.ts +29 -0
- package/package.json +1 -1
- package/src/clients/v1/types/Valuation.ts +1 -26
- package/src/registry/v1/api/{geo/address → address}/createAddress/index.ts +1 -1
- package/src/registry/v1/api/{geo/address → address}/findAddressById/index.ts +1 -1
- package/src/registry/v1/api/{geo/address → address}/findAddressesByRealtyParams/index.ts +1 -1
- package/src/registry/v1/api/index.ts +4 -4
- package/src/registry/v1/api/valuation/calculateValuation/index.ts +1 -1
- package/src/registry/v1/dictionaries/Valuation.ts +1 -1
- package/src/registry/v1/types/Realty.ts +1 -0
- package/src/registry/v1/types/Valuation.ts +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.1.158 (Wed May 18 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- FE-1317: Рефактор оценки (переезд на TS + api-queries) [#85](https://github.com/homeappcorporate/api-queries/pull/85) ([@abd2561024](https://github.com/abd2561024))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.1.157 (Mon Apr 25 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -3611,16 +3611,6 @@ var UserPhoneType;
|
|
|
3611
3611
|
UserPhoneType["CiBlack"] = "ci_black";
|
|
3612
3612
|
})(UserPhoneType || (UserPhoneType = {}));
|
|
3613
3613
|
|
|
3614
|
-
var ValuationConcurrency;
|
|
3615
|
-
|
|
3616
|
-
(function (ValuationConcurrency) {
|
|
3617
|
-
ValuationConcurrency["Low"] = "low";
|
|
3618
|
-
ValuationConcurrency["Medium"] = "medium";
|
|
3619
|
-
ValuationConcurrency["MediumHigh"] = "medium-high";
|
|
3620
|
-
ValuationConcurrency["High"] = "high";
|
|
3621
|
-
ValuationConcurrency["VeryHigh"] = "very-high";
|
|
3622
|
-
})(ValuationConcurrency || (ValuationConcurrency = {}));
|
|
3623
|
-
|
|
3624
3614
|
var _Parking, _WallsMaterial, _HeatingType;
|
|
3625
3615
|
var AddressBTIParamsDictionary = {
|
|
3626
3616
|
Parking: (_Parking = {}, _Parking[AddressBTIParamsParking.Ground] = 'Наземная', _Parking[AddressBTIParamsParking.Multilevel] = 'Многоуровневая', _Parking[AddressBTIParamsParking.Underground] = 'Подземная', _Parking),
|
|
@@ -4914,8 +4904,7 @@ var index = {
|
|
|
4914
4904
|
get UserFiredType () { return UserFiredType; },
|
|
4915
4905
|
get UserFiredReason () { return UserFiredReason; },
|
|
4916
4906
|
get UserAttractionChannel () { return UserAttractionChannel; },
|
|
4917
|
-
get UserPhoneType () { return UserPhoneType; }
|
|
4918
|
-
get ValuationConcurrency () { return ValuationConcurrency; }
|
|
4907
|
+
get UserPhoneType () { return UserPhoneType; }
|
|
4919
4908
|
};
|
|
4920
4909
|
|
|
4921
4910
|
function createAddressRequest(_ref) {
|
|
@@ -6875,43 +6864,6 @@ var index$2 = {
|
|
|
6875
6864
|
ActualEventsRowDictionary: ActualEventsRowDictionary
|
|
6876
6865
|
};
|
|
6877
6866
|
|
|
6878
|
-
function findComplexIdsRequest(_ref) {
|
|
6879
|
-
var _ref$baseURL = _ref.baseURL,
|
|
6880
|
-
baseURL = _ref$baseURL === void 0 ? 'https://registry.homeapp.ru' : _ref$baseURL,
|
|
6881
|
-
params = _ref.params;
|
|
6882
|
-
return axios.get('/api/complex/', {
|
|
6883
|
-
baseURL: baseURL,
|
|
6884
|
-
params: params,
|
|
6885
|
-
paramsSerializer: function paramsSerializer(params) {
|
|
6886
|
-
return qs.stringify(params, {
|
|
6887
|
-
arrayFormat: 'brackets'
|
|
6888
|
-
});
|
|
6889
|
-
},
|
|
6890
|
-
headers: {
|
|
6891
|
-
Accept: 'application/json'
|
|
6892
|
-
}
|
|
6893
|
-
}).then(function (res) {
|
|
6894
|
-
var data = {
|
|
6895
|
-
data: {
|
|
6896
|
-
byId: {},
|
|
6897
|
-
ids: []
|
|
6898
|
-
}
|
|
6899
|
-
};
|
|
6900
|
-
res.data.data.forEach(function (entity) {
|
|
6901
|
-
data.data.byId[entity.id] = entity;
|
|
6902
|
-
data.data.ids.push(entity.id);
|
|
6903
|
-
});
|
|
6904
|
-
return data;
|
|
6905
|
-
})["catch"](function (err) {
|
|
6906
|
-
var _err$response$status, _err$response, _ref2, _err$response$data$me, _err$response2, _err$response2$data, _err$response3, _err$response3$data$d;
|
|
6907
|
-
|
|
6908
|
-
var error = new Error(err.message);
|
|
6909
|
-
error.status = (_err$response$status = (_err$response = err.response) == null ? void 0 : _err$response.status) != null ? _err$response$status : 520;
|
|
6910
|
-
error.data = (_ref2 = (_err$response$data$me = (_err$response2 = err.response) == null ? void 0 : (_err$response2$data = _err$response2.data) == null ? void 0 : _err$response2$data.message) != null ? _err$response$data$me : (_err$response3 = err.response) == null ? void 0 : (_err$response3$data$d = _err$response3.data.data) == null ? void 0 : _err$response3$data$d.error) != null ? _ref2 : 'Unknown Error';
|
|
6911
|
-
throw error;
|
|
6912
|
-
});
|
|
6913
|
-
}
|
|
6914
|
-
|
|
6915
6867
|
function createAddressRequest$1(_ref) {
|
|
6916
6868
|
var _ref$baseURL = _ref.baseURL,
|
|
6917
6869
|
baseURL = _ref$baseURL === void 0 ? 'https://registry.homeapp.ru' : _ref$baseURL,
|
|
@@ -6953,11 +6905,11 @@ function findAddressByIdRequest(_ref) {
|
|
|
6953
6905
|
});
|
|
6954
6906
|
}
|
|
6955
6907
|
|
|
6956
|
-
function
|
|
6908
|
+
function findAddressesByRealtyParamsRequest(_ref) {
|
|
6957
6909
|
var _ref$baseURL = _ref.baseURL,
|
|
6958
6910
|
baseURL = _ref$baseURL === void 0 ? 'https://registry.homeapp.ru' : _ref$baseURL,
|
|
6959
6911
|
params = _ref.params;
|
|
6960
|
-
return axios.get('/api/realty', {
|
|
6912
|
+
return axios.get('/api/realty/address', {
|
|
6961
6913
|
baseURL: baseURL,
|
|
6962
6914
|
params: params,
|
|
6963
6915
|
paramsSerializer: function paramsSerializer(params) {
|
|
@@ -6969,10 +6921,7 @@ function findRealtiesRequest$1(_ref) {
|
|
|
6969
6921
|
Accept: 'application/json'
|
|
6970
6922
|
},
|
|
6971
6923
|
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
6972
|
-
if (!data.success)
|
|
6973
|
-
return data.data.error || data.data.message;
|
|
6974
|
-
}
|
|
6975
|
-
|
|
6924
|
+
if (!data.success) return data.data.error;
|
|
6976
6925
|
var ids = [];
|
|
6977
6926
|
var byId = {};
|
|
6978
6927
|
data.data.forEach(function (entity) {
|
|
@@ -6983,7 +6932,7 @@ function findRealtiesRequest$1(_ref) {
|
|
|
6983
6932
|
ids: ids,
|
|
6984
6933
|
byId: byId,
|
|
6985
6934
|
meta: {
|
|
6986
|
-
total:
|
|
6935
|
+
total: ids.length
|
|
6987
6936
|
}
|
|
6988
6937
|
};
|
|
6989
6938
|
}])
|
|
@@ -6994,11 +6943,48 @@ function findRealtiesRequest$1(_ref) {
|
|
|
6994
6943
|
});
|
|
6995
6944
|
}
|
|
6996
6945
|
|
|
6997
|
-
function
|
|
6946
|
+
function findComplexIdsRequest(_ref) {
|
|
6998
6947
|
var _ref$baseURL = _ref.baseURL,
|
|
6999
6948
|
baseURL = _ref$baseURL === void 0 ? 'https://registry.homeapp.ru' : _ref$baseURL,
|
|
7000
6949
|
params = _ref.params;
|
|
7001
|
-
return axios.get('/api/
|
|
6950
|
+
return axios.get('/api/complex/', {
|
|
6951
|
+
baseURL: baseURL,
|
|
6952
|
+
params: params,
|
|
6953
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
6954
|
+
return qs.stringify(params, {
|
|
6955
|
+
arrayFormat: 'brackets'
|
|
6956
|
+
});
|
|
6957
|
+
},
|
|
6958
|
+
headers: {
|
|
6959
|
+
Accept: 'application/json'
|
|
6960
|
+
}
|
|
6961
|
+
}).then(function (res) {
|
|
6962
|
+
var data = {
|
|
6963
|
+
data: {
|
|
6964
|
+
byId: {},
|
|
6965
|
+
ids: []
|
|
6966
|
+
}
|
|
6967
|
+
};
|
|
6968
|
+
res.data.data.forEach(function (entity) {
|
|
6969
|
+
data.data.byId[entity.id] = entity;
|
|
6970
|
+
data.data.ids.push(entity.id);
|
|
6971
|
+
});
|
|
6972
|
+
return data;
|
|
6973
|
+
})["catch"](function (err) {
|
|
6974
|
+
var _err$response$status, _err$response, _ref2, _err$response$data$me, _err$response2, _err$response2$data, _err$response3, _err$response3$data$d;
|
|
6975
|
+
|
|
6976
|
+
var error = new Error(err.message);
|
|
6977
|
+
error.status = (_err$response$status = (_err$response = err.response) == null ? void 0 : _err$response.status) != null ? _err$response$status : 520;
|
|
6978
|
+
error.data = (_ref2 = (_err$response$data$me = (_err$response2 = err.response) == null ? void 0 : (_err$response2$data = _err$response2.data) == null ? void 0 : _err$response2$data.message) != null ? _err$response$data$me : (_err$response3 = err.response) == null ? void 0 : (_err$response3$data$d = _err$response3.data.data) == null ? void 0 : _err$response3$data$d.error) != null ? _ref2 : 'Unknown Error';
|
|
6979
|
+
throw error;
|
|
6980
|
+
});
|
|
6981
|
+
}
|
|
6982
|
+
|
|
6983
|
+
function findRealtiesRequest$1(_ref) {
|
|
6984
|
+
var _ref$baseURL = _ref.baseURL,
|
|
6985
|
+
baseURL = _ref$baseURL === void 0 ? 'https://registry.homeapp.ru' : _ref$baseURL,
|
|
6986
|
+
params = _ref.params;
|
|
6987
|
+
return axios.get('/api/realty', {
|
|
7002
6988
|
baseURL: baseURL,
|
|
7003
6989
|
params: params,
|
|
7004
6990
|
paramsSerializer: function paramsSerializer(params) {
|
|
@@ -7010,7 +6996,10 @@ function findAddressesByRealtyParamsRequest(_ref) {
|
|
|
7010
6996
|
Accept: 'application/json'
|
|
7011
6997
|
},
|
|
7012
6998
|
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
7013
|
-
if (!data.success)
|
|
6999
|
+
if (!data.success) {
|
|
7000
|
+
return data.data.error || data.data.message;
|
|
7001
|
+
}
|
|
7002
|
+
|
|
7014
7003
|
var ids = [];
|
|
7015
7004
|
var byId = {};
|
|
7016
7005
|
data.data.forEach(function (entity) {
|
|
@@ -7021,7 +7010,7 @@ function findAddressesByRealtyParamsRequest(_ref) {
|
|
|
7021
7010
|
ids: ids,
|
|
7022
7011
|
byId: byId,
|
|
7023
7012
|
meta: {
|
|
7024
|
-
total:
|
|
7013
|
+
total: data.pageParams.length
|
|
7025
7014
|
}
|
|
7026
7015
|
};
|
|
7027
7016
|
}])
|
|
@@ -7238,6 +7227,16 @@ var ShapeDictionary$1 = {
|
|
|
7238
7227
|
Type: (_Type$d = {}, _Type$d[ShapeType$1.AdministrativeDistrict] = 'Административный округ', _Type$d[ShapeType$1.Block] = 'Квартал', _Type$d[ShapeType$1.Complex] = 'Новостройка', _Type$d[ShapeType$1.District] = 'Район', _Type$d[ShapeType$1.House] = 'Здание', _Type$d[ShapeType$1.Microdistrict] = 'Микрорайон', _Type$d)
|
|
7239
7228
|
};
|
|
7240
7229
|
|
|
7230
|
+
var ValuationConcurrency;
|
|
7231
|
+
|
|
7232
|
+
(function (ValuationConcurrency) {
|
|
7233
|
+
ValuationConcurrency["Low"] = "low";
|
|
7234
|
+
ValuationConcurrency["Medium"] = "medium";
|
|
7235
|
+
ValuationConcurrency["MediumHigh"] = "medium-high";
|
|
7236
|
+
ValuationConcurrency["High"] = "high";
|
|
7237
|
+
ValuationConcurrency["VeryHigh"] = "very-high";
|
|
7238
|
+
})(ValuationConcurrency || (ValuationConcurrency = {}));
|
|
7239
|
+
|
|
7241
7240
|
var _Concurrency;
|
|
7242
7241
|
var ValuationDictionary = {
|
|
7243
7242
|
Concurrency: (_Concurrency = {}, _Concurrency[ValuationConcurrency.Low] = 'Не высокий', _Concurrency[ValuationConcurrency.Medium] = 'Средний', _Concurrency[ValuationConcurrency.MediumHigh] = 'Выше среднего', _Concurrency[ValuationConcurrency.High] = 'Высокий', _Concurrency[ValuationConcurrency.VeryHigh] = 'Очень высокий', _Concurrency)
|
|
@@ -7302,11 +7301,11 @@ var Api$3 = function Api(baseURL) {
|
|
|
7302
7301
|
var index$3 = {
|
|
7303
7302
|
__proto__: null,
|
|
7304
7303
|
Api: Api$3,
|
|
7305
|
-
findComplexIdsRequest: findComplexIdsRequest,
|
|
7306
7304
|
createAddressRequest: createAddressRequest$1,
|
|
7307
7305
|
findAddressByIdRequest: findAddressByIdRequest,
|
|
7308
|
-
findRealtiesRequest: findRealtiesRequest$1,
|
|
7309
7306
|
findAddressesByRealtyParamsRequest: findAddressesByRealtyParamsRequest,
|
|
7307
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
7308
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
7310
7309
|
calculateValuationRequest: calculateValuationRequest,
|
|
7311
7310
|
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
7312
7311
|
RealtyDictionary: RealtyDictionary$2,
|