@hapl/api-queries 0.1.116 → 0.1.119
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 +36 -0
- package/dist/api-queries.cjs.development.js +309 -10
- 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 +309 -10
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +2 -1
- package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReports/index.d.ts +42 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequests/index.d.ts +12 -10
- package/dist/clients/v1/api/valuation/findValuationByServiceRequestId/index.d.ts +29 -0
- package/dist/clients/v1/dictionaries/Valuation.d.ts +10 -0
- package/dist/clients/v1/dictionaries/index.d.ts +1 -0
- package/dist/clients/v1/index.d.ts +2 -1
- package/dist/clients/v1/types/Valuation.d.ts +69 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/dist/registry/v1/api/{complexes → complex}/findComplexIds/index.d.ts +0 -0
- package/dist/registry/v1/api/index.d.ts +2 -1
- package/dist/registry/v1/api/realty/findRealties/index.d.ts +34 -0
- package/dist/registry/v1/dictionaries/AddressBTIParams.d.ts +24 -0
- package/dist/registry/v1/dictionaries/Realty.d.ts +71 -0
- package/dist/registry/v1/dictionaries/Shape.d.ts +11 -0
- package/dist/registry/v1/dictionaries/index.d.ts +3 -0
- package/dist/registry/v1/index.d.ts +3 -0
- package/dist/registry/v1/types/Address.d.ts +31 -0
- package/dist/registry/v1/types/AddressBTIParams.d.ts +39 -0
- package/dist/registry/v1/types/AddressMetroDistance.d.ts +9 -0
- package/dist/registry/v1/types/Image.d.ts +15 -0
- package/dist/registry/v1/types/Realty.d.ts +116 -0
- package/dist/registry/v1/types/RealtyOffer.d.ts +6 -0
- package/dist/registry/v1/types/Shape.d.ts +24 -0
- package/dist/registry/v1/types/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +3 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestSellerReport → findServiceRequestSellerReports}/index.ts +13 -13
- package/src/clients/v1/api/serviceRequest/findServiceRequests/index.ts +9 -7
- package/src/clients/v1/api/valuation/findValuationByServiceRequestId/index.ts +42 -0
- package/src/clients/v1/dictionaries/Valuation.ts +11 -0
- package/src/clients/v1/dictionaries/index.ts +1 -0
- package/src/clients/v1/index.ts +14 -5
- package/src/clients/v1/types/Valuation.ts +57 -0
- package/src/clients/v1/types/index.ts +1 -0
- package/src/registry/v1/api/{complexes → complex}/findComplexIds/index.ts +0 -0
- package/src/registry/v1/api/index.ts +3 -1
- package/src/registry/v1/api/realty/findRealties/index.ts +54 -0
- package/src/registry/v1/dictionaries/AddressBTIParams.ts +25 -0
- package/src/registry/v1/dictionaries/Realty.ts +84 -0
- package/src/registry/v1/dictionaries/Shape.ts +12 -0
- package/src/registry/v1/dictionaries/index.ts +3 -0
- package/src/registry/v1/index.ts +10 -0
- package/src/registry/v1/types/Address.ts +29 -0
- package/src/registry/v1/types/AddressBTIParams.ts +42 -0
- package/src/registry/v1/types/AddressMetroDistance.ts +9 -0
- package/src/registry/v1/types/Image.ts +13 -0
- package/src/registry/v1/types/Realty.ts +123 -0
- package/src/registry/v1/types/RealtyOffer.ts +6 -0
- package/src/registry/v1/types/Shape.ts +24 -0
- package/src/registry/v1/types/index.ts +7 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReport/index.d.ts +0 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.1.119 (Fri Feb 04 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Запрос на список realty в registry [#54](https://github.com/homeappcorporate/api-queries/pull/54) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.1.118 (Fri Feb 04 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- added user.id and withRealty filters with sorting [#55](https://github.com/homeappcorporate/api-queries/pull/55) ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Ivan Ignatev ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.1.117 (Thu Feb 03 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- Добавлена ручка на получение оценки [#52](https://github.com/homeappcorporate/api-queries/pull/52) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.1.116 (Thu Feb 03 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
|
@@ -1171,7 +1171,7 @@ function findServiceRequestsRequest(_ref) {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
-
function
|
|
1174
|
+
function findServiceRequestSellerReportsRequest(_ref) {
|
|
1175
1175
|
var _ref$baseURL = _ref.baseURL,
|
|
1176
1176
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1177
1177
|
urlParams = _ref.urlParams,
|
|
@@ -1665,6 +1665,32 @@ function findTasksRequest(_ref) {
|
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
1667
1667
|
|
|
1668
|
+
function findValuationByServiceRequestIdRequest(_ref) {
|
|
1669
|
+
var _ref$baseURL = _ref.baseURL,
|
|
1670
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1671
|
+
urlParams = _ref.urlParams,
|
|
1672
|
+
params = _ref.params;
|
|
1673
|
+
return axios.get("/api/valuation/" + urlParams.id, {
|
|
1674
|
+
baseURL: baseURL,
|
|
1675
|
+
params: params,
|
|
1676
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
1677
|
+
return qs.stringify(params, {
|
|
1678
|
+
arrayFormat: 'brackets'
|
|
1679
|
+
});
|
|
1680
|
+
},
|
|
1681
|
+
headers: {
|
|
1682
|
+
Accept: 'application/json'
|
|
1683
|
+
},
|
|
1684
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
1685
|
+
return data.success ? data.data : data.data.error;
|
|
1686
|
+
}])
|
|
1687
|
+
}).then(function (res) {
|
|
1688
|
+
return res;
|
|
1689
|
+
})["catch"](function (err) {
|
|
1690
|
+
throw err;
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1668
1694
|
var AddressBTIParamsParking;
|
|
1669
1695
|
|
|
1670
1696
|
(function (AddressBTIParamsParking) {
|
|
@@ -2411,6 +2437,16 @@ var UserPhoneType;
|
|
|
2411
2437
|
UserPhoneType["CiBlack"] = "ci_black";
|
|
2412
2438
|
})(UserPhoneType || (UserPhoneType = {}));
|
|
2413
2439
|
|
|
2440
|
+
var ValuationConcurrency;
|
|
2441
|
+
|
|
2442
|
+
(function (ValuationConcurrency) {
|
|
2443
|
+
ValuationConcurrency["Low"] = "low";
|
|
2444
|
+
ValuationConcurrency["Medium"] = "medium";
|
|
2445
|
+
ValuationConcurrency["MediumHigh"] = "medium-high";
|
|
2446
|
+
ValuationConcurrency["High"] = "high";
|
|
2447
|
+
ValuationConcurrency["VeryHigh"] = "very-high";
|
|
2448
|
+
})(ValuationConcurrency || (ValuationConcurrency = {}));
|
|
2449
|
+
|
|
2414
2450
|
var _Parking, _WallsMaterial, _HeatingType;
|
|
2415
2451
|
var AddressBTIParamsDictionary = {
|
|
2416
2452
|
Parking: (_Parking = {}, _Parking[AddressBTIParamsParking.Ground] = 'Наземная', _Parking[AddressBTIParamsParking.Multilevel] = 'Многоуровневая', _Parking[AddressBTIParamsParking.Underground] = 'Подземная', _Parking),
|
|
@@ -2543,6 +2579,11 @@ var UserDictionary = {
|
|
|
2543
2579
|
AttractionChannel: (_AttractionChannel = {}, _AttractionChannel[UserAttractionChannel.Recommendations] = 'Рекомендации', _AttractionChannel[UserAttractionChannel.PartnersOffice] = 'Офис партнеров', _AttractionChannel[UserAttractionChannel.HeadhunterXOHR] = 'headhunter ХО HR', _AttractionChannel[UserAttractionChannel.HeadhunterXOKC] = 'headhunter ХО КЦ', _AttractionChannel[UserAttractionChannel.KCCianBase] = 'КЦ базы Cian', _AttractionChannel[UserAttractionChannel.HeadhunterResponse] = 'headhunter отклик', _AttractionChannel[UserAttractionChannel.Marketing] = 'Маркетинг', _AttractionChannel[UserAttractionChannel.Site] = 'Сайт', _AttractionChannel[UserAttractionChannel.Activity] = 'Мероприятия', _AttractionChannel[UserAttractionChannel.Webinar] = 'Вебинар', _AttractionChannel[UserAttractionChannel.Other] = 'Другое', _AttractionChannel)
|
|
2544
2580
|
};
|
|
2545
2581
|
|
|
2582
|
+
var _Concurrency;
|
|
2583
|
+
var ValuationDictionary = {
|
|
2584
|
+
Concurrency: (_Concurrency = {}, _Concurrency[ValuationConcurrency.Low] = 'Не высокий', _Concurrency[ValuationConcurrency.Medium] = 'Средний', _Concurrency[ValuationConcurrency.MediumHigh] = 'Выше среднего', _Concurrency[ValuationConcurrency.High] = 'Высокий', _Concurrency[ValuationConcurrency.VeryHigh] = 'Очень высокий', _Concurrency)
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2546
2587
|
var Api = function Api(baseURL) {
|
|
2547
2588
|
var _this = this;
|
|
2548
2589
|
|
|
@@ -2994,8 +3035,8 @@ var Api = function Api(baseURL) {
|
|
|
2994
3035
|
});
|
|
2995
3036
|
};
|
|
2996
3037
|
|
|
2997
|
-
this.
|
|
2998
|
-
return
|
|
3038
|
+
this.findServiceRequestSellerReports = function (urlParams, params, headers) {
|
|
3039
|
+
return findServiceRequestSellerReportsRequest({
|
|
2999
3040
|
urlParams: urlParams,
|
|
3000
3041
|
params: params,
|
|
3001
3042
|
headers: headers,
|
|
@@ -3070,6 +3111,15 @@ var Api = function Api(baseURL) {
|
|
|
3070
3111
|
headers: headers,
|
|
3071
3112
|
baseURL: _this.baseURL
|
|
3072
3113
|
});
|
|
3114
|
+
}; // valuation
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
this.findValuationByServiceRequestId = function (urlParams, params) {
|
|
3118
|
+
return findValuationByServiceRequestIdRequest({
|
|
3119
|
+
urlParams: urlParams,
|
|
3120
|
+
params: params,
|
|
3121
|
+
baseURL: _this.baseURL
|
|
3122
|
+
});
|
|
3073
3123
|
};
|
|
3074
3124
|
};
|
|
3075
3125
|
|
|
@@ -3121,7 +3171,7 @@ var index = {
|
|
|
3121
3171
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
3122
3172
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
3123
3173
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
3124
|
-
|
|
3174
|
+
findServiceRequestSellerReportsRequest: findServiceRequestSellerReportsRequest,
|
|
3125
3175
|
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
3126
3176
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
3127
3177
|
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
@@ -3139,6 +3189,7 @@ var index = {
|
|
|
3139
3189
|
fireUserRequest: fireUserRequest,
|
|
3140
3190
|
assignSubordinateUsersRequest: assignSubordinateUsersRequest,
|
|
3141
3191
|
findTasksRequest: findTasksRequest,
|
|
3192
|
+
findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
|
|
3142
3193
|
AddressBTIParamsDictionary: AddressBTIParamsDictionary,
|
|
3143
3194
|
AvailableFundsDictionary: AvailableFundsDictionary,
|
|
3144
3195
|
BuyerDictionary: BuyerDictionary,
|
|
@@ -3157,6 +3208,7 @@ var index = {
|
|
|
3157
3208
|
ShapeDictionary: ShapeDictionary,
|
|
3158
3209
|
TaskDictionary: TaskDictionary,
|
|
3159
3210
|
UserDictionary: UserDictionary,
|
|
3211
|
+
ValuationDictionary: ValuationDictionary,
|
|
3160
3212
|
get AddressBTIParamsParking () { return AddressBTIParamsParking; },
|
|
3161
3213
|
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial; },
|
|
3162
3214
|
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType; },
|
|
@@ -3223,7 +3275,8 @@ var index = {
|
|
|
3223
3275
|
get UserFiredType () { return UserFiredType; },
|
|
3224
3276
|
get UserFiredReason () { return UserFiredReason; },
|
|
3225
3277
|
get UserAttractionChannel () { return UserAttractionChannel; },
|
|
3226
|
-
get UserPhoneType () { return UserPhoneType; }
|
|
3278
|
+
get UserPhoneType () { return UserPhoneType; },
|
|
3279
|
+
get ValuationConcurrency () { return ValuationConcurrency; }
|
|
3227
3280
|
};
|
|
3228
3281
|
|
|
3229
3282
|
function createAddressRequest(_ref) {
|
|
@@ -5041,23 +5094,269 @@ function findComplexIdsRequest(_ref) {
|
|
|
5041
5094
|
});
|
|
5042
5095
|
}
|
|
5043
5096
|
|
|
5097
|
+
function findRealtiesRequest$1(_ref) {
|
|
5098
|
+
var _ref$baseURL = _ref.baseURL,
|
|
5099
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
5100
|
+
params = _ref.params;
|
|
5101
|
+
return axios.get('/api/realty', {
|
|
5102
|
+
baseURL: baseURL,
|
|
5103
|
+
params: params,
|
|
5104
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
5105
|
+
return qs.stringify(params, {
|
|
5106
|
+
arrayFormat: 'brackets'
|
|
5107
|
+
});
|
|
5108
|
+
},
|
|
5109
|
+
headers: {
|
|
5110
|
+
Accept: 'application/json'
|
|
5111
|
+
},
|
|
5112
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
5113
|
+
if (!data.success) {
|
|
5114
|
+
return data.data.error || data.data.message;
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
var ids = [];
|
|
5118
|
+
var byId = {};
|
|
5119
|
+
data.data.forEach(function (entity) {
|
|
5120
|
+
byId[entity.id] = entity;
|
|
5121
|
+
ids.push(entity.id);
|
|
5122
|
+
});
|
|
5123
|
+
return {
|
|
5124
|
+
ids: ids,
|
|
5125
|
+
byId: byId,
|
|
5126
|
+
meta: {
|
|
5127
|
+
total: data.pageParams.length
|
|
5128
|
+
}
|
|
5129
|
+
};
|
|
5130
|
+
}])
|
|
5131
|
+
}).then(function (res) {
|
|
5132
|
+
return res;
|
|
5133
|
+
})["catch"](function (err) {
|
|
5134
|
+
throw err;
|
|
5135
|
+
});
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5138
|
+
var AddressBTIParamsParking$1;
|
|
5139
|
+
|
|
5140
|
+
(function (AddressBTIParamsParking) {
|
|
5141
|
+
AddressBTIParamsParking["Ground"] = "ground";
|
|
5142
|
+
AddressBTIParamsParking["Multilevel"] = "multilevel";
|
|
5143
|
+
AddressBTIParamsParking["Underground"] = "underground";
|
|
5144
|
+
})(AddressBTIParamsParking$1 || (AddressBTIParamsParking$1 = {}));
|
|
5145
|
+
|
|
5146
|
+
var AddressBTIParamsWallsMaterial$2;
|
|
5147
|
+
|
|
5148
|
+
(function (AddressBTIParamsWallsMaterial) {
|
|
5149
|
+
AddressBTIParamsWallsMaterial["Brick"] = "brick";
|
|
5150
|
+
AddressBTIParamsWallsMaterial["Monolith"] = "monolith";
|
|
5151
|
+
AddressBTIParamsWallsMaterial["Monobrick"] = "monobrick";
|
|
5152
|
+
AddressBTIParamsWallsMaterial["Timber"] = "timber";
|
|
5153
|
+
AddressBTIParamsWallsMaterial["Panel"] = "panel";
|
|
5154
|
+
AddressBTIParamsWallsMaterial["Block"] = "block";
|
|
5155
|
+
})(AddressBTIParamsWallsMaterial$2 || (AddressBTIParamsWallsMaterial$2 = {}));
|
|
5156
|
+
|
|
5157
|
+
var AddressBTIParamsHeatingType$2;
|
|
5158
|
+
|
|
5159
|
+
(function (AddressBTIParamsHeatingType) {
|
|
5160
|
+
AddressBTIParamsHeatingType["None"] = "none";
|
|
5161
|
+
AddressBTIParamsHeatingType["Central"] = "central";
|
|
5162
|
+
AddressBTIParamsHeatingType["Local"] = "local";
|
|
5163
|
+
AddressBTIParamsHeatingType["Gas"] = "gas";
|
|
5164
|
+
AddressBTIParamsHeatingType["Electricity"] = "electricity";
|
|
5165
|
+
AddressBTIParamsHeatingType["Liquid"] = "liquid";
|
|
5166
|
+
})(AddressBTIParamsHeatingType$2 || (AddressBTIParamsHeatingType$2 = {}));
|
|
5167
|
+
|
|
5168
|
+
var ImageType$1;
|
|
5169
|
+
|
|
5170
|
+
(function (ImageType) {
|
|
5171
|
+
ImageType["Complex"] = "complex";
|
|
5172
|
+
ImageType["Apartment"] = "apartment";
|
|
5173
|
+
ImageType["Layout"] = "layout";
|
|
5174
|
+
})(ImageType$1 || (ImageType$1 = {}));
|
|
5175
|
+
|
|
5176
|
+
var RealtyType$2;
|
|
5177
|
+
|
|
5178
|
+
(function (RealtyType) {
|
|
5179
|
+
RealtyType["Flat"] = "flat";
|
|
5180
|
+
RealtyType["House"] = "house";
|
|
5181
|
+
})(RealtyType$2 || (RealtyType$2 = {}));
|
|
5182
|
+
|
|
5183
|
+
var RealtyRenovationType$2;
|
|
5184
|
+
|
|
5185
|
+
(function (RealtyRenovationType) {
|
|
5186
|
+
RealtyRenovationType["None"] = "none";
|
|
5187
|
+
RealtyRenovationType["Author"] = "author";
|
|
5188
|
+
RealtyRenovationType["Cosmetic"] = "cosmetic";
|
|
5189
|
+
RealtyRenovationType["Euro"] = "euro";
|
|
5190
|
+
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5191
|
+
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5192
|
+
})(RealtyRenovationType$2 || (RealtyRenovationType$2 = {}));
|
|
5193
|
+
|
|
5194
|
+
var RealtyGas$2;
|
|
5195
|
+
|
|
5196
|
+
(function (RealtyGas) {
|
|
5197
|
+
RealtyGas["None"] = "none";
|
|
5198
|
+
RealtyGas["Connected"] = "connected";
|
|
5199
|
+
RealtyGas["Border"] = "border";
|
|
5200
|
+
RealtyGas["Possible"] = "possible";
|
|
5201
|
+
RealtyGas["Autonomous"] = "autonomous";
|
|
5202
|
+
})(RealtyGas$2 || (RealtyGas$2 = {}));
|
|
5203
|
+
|
|
5204
|
+
var RealtyHouseType$2;
|
|
5205
|
+
|
|
5206
|
+
(function (RealtyHouseType) {
|
|
5207
|
+
RealtyHouseType["Townhouse"] = "townhouse";
|
|
5208
|
+
RealtyHouseType["House"] = "house";
|
|
5209
|
+
RealtyHouseType["Cottage"] = "cottage";
|
|
5210
|
+
RealtyHouseType["Part"] = "part";
|
|
5211
|
+
RealtyHouseType["Duplex"] = "duplex";
|
|
5212
|
+
})(RealtyHouseType$2 || (RealtyHouseType$2 = {}));
|
|
5213
|
+
|
|
5214
|
+
var RealtyLandShape$2;
|
|
5215
|
+
|
|
5216
|
+
(function (RealtyLandShape) {
|
|
5217
|
+
RealtyLandShape["Regular"] = "regular";
|
|
5218
|
+
RealtyLandShape["Irregular"] = "irregular";
|
|
5219
|
+
})(RealtyLandShape$2 || (RealtyLandShape$2 = {}));
|
|
5220
|
+
|
|
5221
|
+
var RealtyLandUsageType$2;
|
|
5222
|
+
|
|
5223
|
+
(function (RealtyLandUsageType) {
|
|
5224
|
+
RealtyLandUsageType["IGS"] = "igs";
|
|
5225
|
+
RealtyLandUsageType["LPH"] = "lph";
|
|
5226
|
+
RealtyLandUsageType["DNP"] = "dnp";
|
|
5227
|
+
RealtyLandUsageType["SNT"] = "snt";
|
|
5228
|
+
RealtyLandUsageType["Farm"] = "farm";
|
|
5229
|
+
RealtyLandUsageType["Garden"] = "garden";
|
|
5230
|
+
RealtyLandUsageType["Investproject"] = "investproject";
|
|
5231
|
+
})(RealtyLandUsageType$2 || (RealtyLandUsageType$2 = {}));
|
|
5232
|
+
|
|
5233
|
+
var RealtyRelief$2;
|
|
5234
|
+
|
|
5235
|
+
(function (RealtyRelief) {
|
|
5236
|
+
RealtyRelief["Flat"] = "flat";
|
|
5237
|
+
RealtyRelief["Elevations"] = "elevations";
|
|
5238
|
+
RealtyRelief["Slope"] = "slope";
|
|
5239
|
+
RealtyRelief["Hills"] = "hills";
|
|
5240
|
+
})(RealtyRelief$2 || (RealtyRelief$2 = {}));
|
|
5241
|
+
|
|
5242
|
+
var RealtyElectricity$2;
|
|
5243
|
+
|
|
5244
|
+
(function (RealtyElectricity) {
|
|
5245
|
+
RealtyElectricity["None"] = "none";
|
|
5246
|
+
RealtyElectricity["Connected"] = "connected";
|
|
5247
|
+
RealtyElectricity["Possible"] = "possible";
|
|
5248
|
+
RealtyElectricity["Autonomous"] = "autonomous";
|
|
5249
|
+
})(RealtyElectricity$2 || (RealtyElectricity$2 = {}));
|
|
5250
|
+
|
|
5251
|
+
var RealtyFurniture$2;
|
|
5252
|
+
|
|
5253
|
+
(function (RealtyFurniture) {
|
|
5254
|
+
RealtyFurniture["None"] = "none";
|
|
5255
|
+
RealtyFurniture["Full"] = "full";
|
|
5256
|
+
RealtyFurniture["Part"] = "part";
|
|
5257
|
+
})(RealtyFurniture$2 || (RealtyFurniture$2 = {}));
|
|
5258
|
+
|
|
5259
|
+
var RealtySewerage$2;
|
|
5260
|
+
|
|
5261
|
+
(function (RealtySewerage) {
|
|
5262
|
+
RealtySewerage["None"] = "none";
|
|
5263
|
+
RealtySewerage["Cesspool"] = "cesspool";
|
|
5264
|
+
RealtySewerage["Septic"] = "septic";
|
|
5265
|
+
RealtySewerage["Bio"] = "bio";
|
|
5266
|
+
RealtySewerage["Central"] = "central";
|
|
5267
|
+
})(RealtySewerage$2 || (RealtySewerage$2 = {}));
|
|
5268
|
+
|
|
5269
|
+
var RealtyWindowView$2;
|
|
5270
|
+
|
|
5271
|
+
(function (RealtyWindowView) {
|
|
5272
|
+
RealtyWindowView["Street"] = "street";
|
|
5273
|
+
RealtyWindowView["Yard"] = "yard";
|
|
5274
|
+
RealtyWindowView["Both"] = "both";
|
|
5275
|
+
})(RealtyWindowView$2 || (RealtyWindowView$2 = {}));
|
|
5276
|
+
|
|
5277
|
+
var ShapeType$1;
|
|
5278
|
+
|
|
5279
|
+
(function (ShapeType) {
|
|
5280
|
+
ShapeType["AdministrativeDistrict"] = "administrative_district";
|
|
5281
|
+
ShapeType["Block"] = "block";
|
|
5282
|
+
ShapeType["Complex"] = "complex";
|
|
5283
|
+
ShapeType["District"] = "district";
|
|
5284
|
+
ShapeType["House"] = "house";
|
|
5285
|
+
ShapeType["Microdistrict"] = "microdistrict";
|
|
5286
|
+
})(ShapeType$1 || (ShapeType$1 = {}));
|
|
5287
|
+
|
|
5288
|
+
var _Parking$1, _WallsMaterial$3, _HeatingType$2;
|
|
5289
|
+
var AddressBTIParamsDictionary$2 = {
|
|
5290
|
+
Parking: (_Parking$1 = {}, _Parking$1[AddressBTIParamsParking$1.Ground] = 'Наземная', _Parking$1[AddressBTIParamsParking$1.Multilevel] = 'Многоуровневая', _Parking$1[AddressBTIParamsParking$1.Underground] = 'Подземная', _Parking$1),
|
|
5291
|
+
WallsMaterial: (_WallsMaterial$3 = {}, _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Brick] = 'Кирпичный', _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Monolith] = 'Монолитный', _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Monobrick] = 'Монолитно-кирпичный', _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Timber] = 'Деревянный', _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Panel] = 'Панельный', _WallsMaterial$3[AddressBTIParamsWallsMaterial$2.Block] = 'Блочный', _WallsMaterial$3),
|
|
5292
|
+
HeatingType: (_HeatingType$2 = {}, _HeatingType$2[AddressBTIParamsHeatingType$2.None] = 'Нет', _HeatingType$2[AddressBTIParamsHeatingType$2.Central] = 'Центральное', _HeatingType$2[AddressBTIParamsHeatingType$2.Local] = 'Отдельное', _HeatingType$2[AddressBTIParamsHeatingType$2.Gas] = 'Газовое', _HeatingType$2[AddressBTIParamsHeatingType$2.Electricity] = 'Электрическое', _HeatingType$2[AddressBTIParamsHeatingType$2.Liquid] = 'Жидкое топливо', _HeatingType$2)
|
|
5293
|
+
};
|
|
5294
|
+
|
|
5295
|
+
var _Type$9, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
5296
|
+
var RealtyDictionary$2 = {
|
|
5297
|
+
Type: (_Type$9 = {}, _Type$9[RealtyType$2.Flat] = 'Квартира', _Type$9[RealtyType$2.House] = 'Дом', _Type$9),
|
|
5298
|
+
RenovationType: (_RenovationType$2 = {}, _RenovationType$2[RealtyRenovationType$2.None] = 'Без ремонта', _RenovationType$2[RealtyRenovationType$2.Author] = 'Авторский', _RenovationType$2[RealtyRenovationType$2.Cosmetic] = 'Косметический', _RenovationType$2[RealtyRenovationType$2.Euro] = 'Евро', _RenovationType$2[RealtyRenovationType$2.FineFinishing] = 'Чистовая отделка', _RenovationType$2[RealtyRenovationType$2.RoughFinishing] = 'Черновая отделка', _RenovationType$2),
|
|
5299
|
+
Gas: (_Gas$2 = {}, _Gas$2[RealtyGas$2.None] = 'Нет', _Gas$2[RealtyGas$2.Connected] = 'Подключено', _Gas$2[RealtyGas$2.Border] = 'По границе', _Gas$2[RealtyGas$2.Possible] = 'Возможно', _Gas$2[RealtyGas$2.Autonomous] = 'Автономное', _Gas$2),
|
|
5300
|
+
HouseType: (_HouseType$2 = {}, _HouseType$2[RealtyHouseType$2.Townhouse] = 'Таунхаус', _HouseType$2[RealtyHouseType$2.House] = 'Дом', _HouseType$2[RealtyHouseType$2.Cottage] = 'Коттедж', _HouseType$2[RealtyHouseType$2.Part] = 'Часть дома', _HouseType$2[RealtyHouseType$2.Duplex] = 'Дуплекс', _HouseType$2),
|
|
5301
|
+
LandShape: (_LandShape$2 = {}, _LandShape$2[RealtyLandShape$2.Regular] = 'Правильная', _LandShape$2[RealtyLandShape$2.Irregular] = 'Неправильная', _LandShape$2),
|
|
5302
|
+
LandUsageType: (_LandUsageType$2 = {}, _LandUsageType$2[RealtyLandUsageType$2.IGS] = 'ИЖС', _LandUsageType$2[RealtyLandUsageType$2.LPH] = 'ЛПХ (личное подсобное хозяйство)', _LandUsageType$2[RealtyLandUsageType$2.DNP] = 'ДНП (дачное некоммерческое партнероство)', _LandUsageType$2[RealtyLandUsageType$2.SNT] = 'СНТ (садоводческое некоммерческое товарищество)', _LandUsageType$2[RealtyLandUsageType$2.Farm] = 'Фермерское хозяйство', _LandUsageType$2[RealtyLandUsageType$2.Garden] = 'Садоводство', _LandUsageType$2[RealtyLandUsageType$2.Investproject] = 'Инвестпроект', _LandUsageType$2),
|
|
5303
|
+
Relief: (_Relief$2 = {}, _Relief$2[RealtyRelief$2.Flat] = 'Ровный', _Relief$2[RealtyRelief$2.Elevations] = 'Значительные перепады высот', _Relief$2[RealtyRelief$2.Slope] = 'Склон', _Relief$2[RealtyRelief$2.Hills] = 'Холмы', _Relief$2),
|
|
5304
|
+
Electricity: (_Electricity$2 = {}, _Electricity$2[RealtyElectricity$2.None] = 'Нет', _Electricity$2[RealtyElectricity$2.Connected] = 'Подключено', _Electricity$2[RealtyElectricity$2.Possible] = 'Возможно', _Electricity$2[RealtyElectricity$2.Autonomous] = 'Автономное', _Electricity$2),
|
|
5305
|
+
Furniture: (_Furniture$2 = {}, _Furniture$2[RealtyFurniture$2.None] = 'Отсутствует', _Furniture$2[RealtyFurniture$2.Full] = 'Полностью мебелирован', _Furniture$2[RealtyFurniture$2.Part] = 'Частично мебелирован', _Furniture$2),
|
|
5306
|
+
Sewerage: (_Sewerage$2 = {}, _Sewerage$2[RealtySewerage$2.None] = 'Нет', _Sewerage$2[RealtySewerage$2.Cesspool] = 'Выгребная яма', _Sewerage$2[RealtySewerage$2.Septic] = 'Септик', _Sewerage$2[RealtySewerage$2.Bio] = 'Устройства биологической очистки', _Sewerage$2[RealtySewerage$2.Central] = 'Центральная', _Sewerage$2),
|
|
5307
|
+
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
5308
|
+
};
|
|
5309
|
+
|
|
5310
|
+
var _Type$a;
|
|
5311
|
+
var ShapeDictionary$1 = {
|
|
5312
|
+
Type: (_Type$a = {}, _Type$a[ShapeType$1.AdministrativeDistrict] = 'Административный округ', _Type$a[ShapeType$1.Block] = 'Квартал', _Type$a[ShapeType$1.Complex] = 'Новостройка', _Type$a[ShapeType$1.District] = 'Район', _Type$a[ShapeType$1.House] = 'Здание', _Type$a[ShapeType$1.Microdistrict] = 'Микрорайон', _Type$a)
|
|
5313
|
+
};
|
|
5314
|
+
|
|
5044
5315
|
var Api$3 = function Api(baseURL) {
|
|
5045
5316
|
var _this = this;
|
|
5046
5317
|
|
|
5047
|
-
this.baseURL = baseURL;
|
|
5318
|
+
this.baseURL = baseURL; // complex
|
|
5048
5319
|
|
|
5049
5320
|
this.findComplexIds = function (params) {
|
|
5050
5321
|
return findComplexIdsRequest({
|
|
5051
5322
|
params: params,
|
|
5052
5323
|
baseURL: _this.baseURL
|
|
5053
5324
|
});
|
|
5325
|
+
}; // realty
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
this.findRealties = function (params) {
|
|
5329
|
+
return findRealtiesRequest$1({
|
|
5330
|
+
params: params,
|
|
5331
|
+
baseURL: _this.baseURL
|
|
5332
|
+
});
|
|
5054
5333
|
};
|
|
5055
5334
|
};
|
|
5056
5335
|
|
|
5057
5336
|
var index$3 = {
|
|
5058
5337
|
__proto__: null,
|
|
5059
5338
|
Api: Api$3,
|
|
5060
|
-
findComplexIdsRequest: findComplexIdsRequest
|
|
5339
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
5340
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
5341
|
+
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
5342
|
+
RealtyDictionary: RealtyDictionary$2,
|
|
5343
|
+
ShapeDictionary: ShapeDictionary$1,
|
|
5344
|
+
get AddressBTIParamsParking () { return AddressBTIParamsParking$1; },
|
|
5345
|
+
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial$2; },
|
|
5346
|
+
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType$2; },
|
|
5347
|
+
get ImageType () { return ImageType$1; },
|
|
5348
|
+
get RealtyType () { return RealtyType$2; },
|
|
5349
|
+
get RealtyRenovationType () { return RealtyRenovationType$2; },
|
|
5350
|
+
get RealtyGas () { return RealtyGas$2; },
|
|
5351
|
+
get RealtyHouseType () { return RealtyHouseType$2; },
|
|
5352
|
+
get RealtyLandShape () { return RealtyLandShape$2; },
|
|
5353
|
+
get RealtyLandUsageType () { return RealtyLandUsageType$2; },
|
|
5354
|
+
get RealtyRelief () { return RealtyRelief$2; },
|
|
5355
|
+
get RealtyElectricity () { return RealtyElectricity$2; },
|
|
5356
|
+
get RealtyFurniture () { return RealtyFurniture$2; },
|
|
5357
|
+
get RealtySewerage () { return RealtySewerage$2; },
|
|
5358
|
+
get RealtyWindowView () { return RealtyWindowView$2; },
|
|
5359
|
+
get ShapeType () { return ShapeType$1; }
|
|
5061
5360
|
};
|
|
5062
5361
|
|
|
5063
5362
|
function countApartmentsRequest(_ref) {
|
|
@@ -5294,7 +5593,7 @@ var ApartmentMapPointType;
|
|
|
5294
5593
|
ApartmentMapPointType["Underground"] = "underground";
|
|
5295
5594
|
})(ApartmentMapPointType || (ApartmentMapPointType = {}));
|
|
5296
5595
|
|
|
5297
|
-
var RealtyRenovationType$
|
|
5596
|
+
var RealtyRenovationType$3;
|
|
5298
5597
|
|
|
5299
5598
|
(function (RealtyRenovationType) {
|
|
5300
5599
|
RealtyRenovationType["None"] = "none";
|
|
@@ -5303,7 +5602,7 @@ var RealtyRenovationType$2;
|
|
|
5303
5602
|
RealtyRenovationType["Euro"] = "euro";
|
|
5304
5603
|
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5305
5604
|
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5306
|
-
})(RealtyRenovationType$
|
|
5605
|
+
})(RealtyRenovationType$3 || (RealtyRenovationType$3 = {}));
|
|
5307
5606
|
|
|
5308
5607
|
var _MapPointDistanceType, _MapPointType;
|
|
5309
5608
|
var ApartmentDictionary = {
|
|
@@ -5371,7 +5670,7 @@ var index$4 = {
|
|
|
5371
5670
|
ApartmentDictionary: ApartmentDictionary,
|
|
5372
5671
|
get ApartmentMapPointDistanceType () { return ApartmentMapPointDistanceType; },
|
|
5373
5672
|
get ApartmentMapPointType () { return ApartmentMapPointType; },
|
|
5374
|
-
get RealtyRenovationType () { return RealtyRenovationType$
|
|
5673
|
+
get RealtyRenovationType () { return RealtyRenovationType$3; }
|
|
5375
5674
|
};
|
|
5376
5675
|
|
|
5377
5676
|
exports.Clients = index;
|