@hapl/api-queries 0.1.115 → 0.1.118--canary.54.37158b2.0
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 +354 -6
- 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 +354 -6
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +1 -0
- 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 +1 -0
- package/dist/clients/v1/types/Valuation.d.ts +69 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/dist/clients/v2/api/index.d.ts +1 -0
- package/dist/clients/v2/api/realty/findRealties/index.d.ts +74 -0
- package/dist/clients/v2/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 +72 -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 +117 -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 +2 -0
- 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 +9 -0
- package/src/clients/v1/types/Valuation.ts +57 -0
- package/src/clients/v1/types/index.ts +1 -0
- package/src/clients/v2/api/index.ts +1 -0
- package/src/clients/v2/api/realty/findRealties/index.ts +105 -0
- package/src/clients/v2/index.ts +4 -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 +85 -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 +124 -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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.1.116 (Thu Feb 03 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- добавлена ручка запроса списка realtyV2 [#53](https://github.com/homeappcorporate/api-queries/pull/53) ([@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.115 (Wed Feb 02 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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) {
|
|
@@ -3488,6 +3541,45 @@ function deleteRealtyImageRequest(_ref) {
|
|
|
3488
3541
|
});
|
|
3489
3542
|
}
|
|
3490
3543
|
|
|
3544
|
+
function findRealtiesRequest(_ref) {
|
|
3545
|
+
var _ref$baseURL = _ref.baseURL,
|
|
3546
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
3547
|
+
params = _ref.params,
|
|
3548
|
+
headers = _ref.headers;
|
|
3549
|
+
return axios.get('/api/v2/realty', {
|
|
3550
|
+
baseURL: baseURL,
|
|
3551
|
+
params: params,
|
|
3552
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
3553
|
+
return qs.stringify(params, {
|
|
3554
|
+
arrayFormat: 'comma',
|
|
3555
|
+
skipNulls: true
|
|
3556
|
+
});
|
|
3557
|
+
},
|
|
3558
|
+
headers: _extends({
|
|
3559
|
+
Accept: 'application/vnd.api+json'
|
|
3560
|
+
}, headers),
|
|
3561
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
3562
|
+
if (data.errors) return data.errors;
|
|
3563
|
+
var ids = [];
|
|
3564
|
+
var byId = {};
|
|
3565
|
+
data.data.forEach(function (entity) {
|
|
3566
|
+
byId[entity.id] = entity;
|
|
3567
|
+
ids.push(entity.id);
|
|
3568
|
+
});
|
|
3569
|
+
return {
|
|
3570
|
+
ids: ids,
|
|
3571
|
+
byId: byId,
|
|
3572
|
+
included: data.included,
|
|
3573
|
+
meta: data.meta
|
|
3574
|
+
};
|
|
3575
|
+
}])
|
|
3576
|
+
}).then(function (res) {
|
|
3577
|
+
return res;
|
|
3578
|
+
})["catch"](function (err) {
|
|
3579
|
+
throw err;
|
|
3580
|
+
});
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3491
3583
|
var FindRealtyByIdDataMetaRealtyAccess;
|
|
3492
3584
|
|
|
3493
3585
|
(function (FindRealtyByIdDataMetaRealtyAccess) {
|
|
@@ -4422,6 +4514,14 @@ var Api$1 = function Api(baseURL) {
|
|
|
4422
4514
|
});
|
|
4423
4515
|
};
|
|
4424
4516
|
|
|
4517
|
+
this.findRealties = function (params, headers) {
|
|
4518
|
+
return findRealtiesRequest({
|
|
4519
|
+
params: params,
|
|
4520
|
+
headers: headers,
|
|
4521
|
+
baseURL: _this.baseURL
|
|
4522
|
+
});
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4425
4525
|
this.findRealtyById = function (urlParams, params, headers) {
|
|
4426
4526
|
return findRealtyByIdRequest({
|
|
4427
4527
|
urlParams: urlParams,
|
|
@@ -4482,6 +4582,7 @@ var index$1 = {
|
|
|
4482
4582
|
createRealtyImageRequest: createRealtyImageRequest,
|
|
4483
4583
|
createRealtyMetroDistanceRequest: createRealtyMetroDistanceRequest,
|
|
4484
4584
|
deleteRealtyImageRequest: deleteRealtyImageRequest,
|
|
4585
|
+
findRealtiesRequest: findRealtiesRequest,
|
|
4485
4586
|
get FindRealtyByIdDataMetaRealtyAccess () { return FindRealtyByIdDataMetaRealtyAccess; },
|
|
4486
4587
|
findRealtyByIdRequest: findRealtyByIdRequest,
|
|
4487
4588
|
get UpdateRealtyDataMetaRealtyAccess () { return UpdateRealtyDataMetaRealtyAccess; },
|
|
@@ -4993,23 +5094,270 @@ function findComplexIdsRequest(_ref) {
|
|
|
4993
5094
|
});
|
|
4994
5095
|
}
|
|
4995
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
|
+
var ids = [];
|
|
5115
|
+
var byId = {};
|
|
5116
|
+
data.data.forEach(function (entity) {
|
|
5117
|
+
byId[entity.id] = entity;
|
|
5118
|
+
ids.push(entity.id);
|
|
5119
|
+
});
|
|
5120
|
+
return {
|
|
5121
|
+
ids: ids,
|
|
5122
|
+
byId: byId,
|
|
5123
|
+
meta: {
|
|
5124
|
+
total: data.pageParams.length
|
|
5125
|
+
}
|
|
5126
|
+
};
|
|
5127
|
+
}
|
|
5128
|
+
|
|
5129
|
+
return data.data.error || data.data.message;
|
|
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["FlatSecondary"] = "flat_secondary";
|
|
5180
|
+
RealtyType["FlatNew"] = "flat_new";
|
|
5181
|
+
RealtyType["House"] = "house";
|
|
5182
|
+
})(RealtyType$2 || (RealtyType$2 = {}));
|
|
5183
|
+
|
|
5184
|
+
var RealtyRenovationType$2;
|
|
5185
|
+
|
|
5186
|
+
(function (RealtyRenovationType) {
|
|
5187
|
+
RealtyRenovationType["None"] = "none";
|
|
5188
|
+
RealtyRenovationType["Author"] = "author";
|
|
5189
|
+
RealtyRenovationType["Cosmetic"] = "cosmetic";
|
|
5190
|
+
RealtyRenovationType["Euro"] = "euro";
|
|
5191
|
+
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5192
|
+
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5193
|
+
})(RealtyRenovationType$2 || (RealtyRenovationType$2 = {}));
|
|
5194
|
+
|
|
5195
|
+
var RealtyGas$2;
|
|
5196
|
+
|
|
5197
|
+
(function (RealtyGas) {
|
|
5198
|
+
RealtyGas["None"] = "none";
|
|
5199
|
+
RealtyGas["Connected"] = "connected";
|
|
5200
|
+
RealtyGas["Border"] = "border";
|
|
5201
|
+
RealtyGas["Possible"] = "possible";
|
|
5202
|
+
RealtyGas["Autonomous"] = "autonomous";
|
|
5203
|
+
})(RealtyGas$2 || (RealtyGas$2 = {}));
|
|
5204
|
+
|
|
5205
|
+
var RealtyHouseType$2;
|
|
5206
|
+
|
|
5207
|
+
(function (RealtyHouseType) {
|
|
5208
|
+
RealtyHouseType["Townhouse"] = "townhouse";
|
|
5209
|
+
RealtyHouseType["House"] = "house";
|
|
5210
|
+
RealtyHouseType["Cottage"] = "cottage";
|
|
5211
|
+
RealtyHouseType["Part"] = "part";
|
|
5212
|
+
RealtyHouseType["Duplex"] = "duplex";
|
|
5213
|
+
})(RealtyHouseType$2 || (RealtyHouseType$2 = {}));
|
|
5214
|
+
|
|
5215
|
+
var RealtyLandShape$2;
|
|
5216
|
+
|
|
5217
|
+
(function (RealtyLandShape) {
|
|
5218
|
+
RealtyLandShape["Regular"] = "regular";
|
|
5219
|
+
RealtyLandShape["Irregular"] = "irregular";
|
|
5220
|
+
})(RealtyLandShape$2 || (RealtyLandShape$2 = {}));
|
|
5221
|
+
|
|
5222
|
+
var RealtyLandUsageType$2;
|
|
5223
|
+
|
|
5224
|
+
(function (RealtyLandUsageType) {
|
|
5225
|
+
RealtyLandUsageType["IGS"] = "igs";
|
|
5226
|
+
RealtyLandUsageType["LPH"] = "lph";
|
|
5227
|
+
RealtyLandUsageType["DNP"] = "dnp";
|
|
5228
|
+
RealtyLandUsageType["SNT"] = "snt";
|
|
5229
|
+
RealtyLandUsageType["Farm"] = "farm";
|
|
5230
|
+
RealtyLandUsageType["Garden"] = "garden";
|
|
5231
|
+
RealtyLandUsageType["Investproject"] = "investproject";
|
|
5232
|
+
})(RealtyLandUsageType$2 || (RealtyLandUsageType$2 = {}));
|
|
5233
|
+
|
|
5234
|
+
var RealtyRelief$2;
|
|
5235
|
+
|
|
5236
|
+
(function (RealtyRelief) {
|
|
5237
|
+
RealtyRelief["Flat"] = "flat";
|
|
5238
|
+
RealtyRelief["Elevations"] = "elevations";
|
|
5239
|
+
RealtyRelief["Slope"] = "slope";
|
|
5240
|
+
RealtyRelief["Hills"] = "hills";
|
|
5241
|
+
})(RealtyRelief$2 || (RealtyRelief$2 = {}));
|
|
5242
|
+
|
|
5243
|
+
var RealtyElectricity$2;
|
|
5244
|
+
|
|
5245
|
+
(function (RealtyElectricity) {
|
|
5246
|
+
RealtyElectricity["None"] = "none";
|
|
5247
|
+
RealtyElectricity["Connected"] = "connected";
|
|
5248
|
+
RealtyElectricity["Possible"] = "possible";
|
|
5249
|
+
RealtyElectricity["Autonomous"] = "autonomous";
|
|
5250
|
+
})(RealtyElectricity$2 || (RealtyElectricity$2 = {}));
|
|
5251
|
+
|
|
5252
|
+
var RealtyFurniture$2;
|
|
5253
|
+
|
|
5254
|
+
(function (RealtyFurniture) {
|
|
5255
|
+
RealtyFurniture["None"] = "none";
|
|
5256
|
+
RealtyFurniture["Full"] = "full";
|
|
5257
|
+
RealtyFurniture["Part"] = "part";
|
|
5258
|
+
})(RealtyFurniture$2 || (RealtyFurniture$2 = {}));
|
|
5259
|
+
|
|
5260
|
+
var RealtySewerage$2;
|
|
5261
|
+
|
|
5262
|
+
(function (RealtySewerage) {
|
|
5263
|
+
RealtySewerage["None"] = "none";
|
|
5264
|
+
RealtySewerage["Cesspool"] = "cesspool";
|
|
5265
|
+
RealtySewerage["Septic"] = "septic";
|
|
5266
|
+
RealtySewerage["Bio"] = "bio";
|
|
5267
|
+
RealtySewerage["Central"] = "central";
|
|
5268
|
+
})(RealtySewerage$2 || (RealtySewerage$2 = {}));
|
|
5269
|
+
|
|
5270
|
+
var RealtyWindowView$2;
|
|
5271
|
+
|
|
5272
|
+
(function (RealtyWindowView) {
|
|
5273
|
+
RealtyWindowView["Street"] = "street";
|
|
5274
|
+
RealtyWindowView["Yard"] = "yard";
|
|
5275
|
+
RealtyWindowView["Both"] = "both";
|
|
5276
|
+
})(RealtyWindowView$2 || (RealtyWindowView$2 = {}));
|
|
5277
|
+
|
|
5278
|
+
var ShapeType$1;
|
|
5279
|
+
|
|
5280
|
+
(function (ShapeType) {
|
|
5281
|
+
ShapeType["AdministrativeDistrict"] = "administrative_district";
|
|
5282
|
+
ShapeType["Block"] = "block";
|
|
5283
|
+
ShapeType["Complex"] = "complex";
|
|
5284
|
+
ShapeType["District"] = "district";
|
|
5285
|
+
ShapeType["House"] = "house";
|
|
5286
|
+
ShapeType["Microdistrict"] = "microdistrict";
|
|
5287
|
+
})(ShapeType$1 || (ShapeType$1 = {}));
|
|
5288
|
+
|
|
5289
|
+
var _Parking$1, _WallsMaterial$3, _HeatingType$2;
|
|
5290
|
+
var AddressBTIParamsDictionary$2 = {
|
|
5291
|
+
Parking: (_Parking$1 = {}, _Parking$1[AddressBTIParamsParking$1.Ground] = 'Наземная', _Parking$1[AddressBTIParamsParking$1.Multilevel] = 'Многоуровневая', _Parking$1[AddressBTIParamsParking$1.Underground] = 'Подземная', _Parking$1),
|
|
5292
|
+
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),
|
|
5293
|
+
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)
|
|
5294
|
+
};
|
|
5295
|
+
|
|
5296
|
+
var _Type$9, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
5297
|
+
var RealtyDictionary$2 = {
|
|
5298
|
+
Type: (_Type$9 = {}, _Type$9[RealtyType$2.FlatSecondary] = 'Вторичка', _Type$9[RealtyType$2.FlatNew] = 'Новостройка', _Type$9[RealtyType$2.House] = 'Дом', _Type$9),
|
|
5299
|
+
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),
|
|
5300
|
+
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),
|
|
5301
|
+
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),
|
|
5302
|
+
LandShape: (_LandShape$2 = {}, _LandShape$2[RealtyLandShape$2.Regular] = 'Правильная', _LandShape$2[RealtyLandShape$2.Irregular] = 'Неправильная', _LandShape$2),
|
|
5303
|
+
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),
|
|
5304
|
+
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),
|
|
5305
|
+
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),
|
|
5306
|
+
Furniture: (_Furniture$2 = {}, _Furniture$2[RealtyFurniture$2.None] = 'Отсутствует', _Furniture$2[RealtyFurniture$2.Full] = 'Полностью мебелирован', _Furniture$2[RealtyFurniture$2.Part] = 'Частично мебелирован', _Furniture$2),
|
|
5307
|
+
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),
|
|
5308
|
+
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
5309
|
+
};
|
|
5310
|
+
|
|
5311
|
+
var _Type$a;
|
|
5312
|
+
var ShapeDictionary$1 = {
|
|
5313
|
+
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)
|
|
5314
|
+
};
|
|
5315
|
+
|
|
4996
5316
|
var Api$3 = function Api(baseURL) {
|
|
4997
5317
|
var _this = this;
|
|
4998
5318
|
|
|
4999
|
-
this.baseURL = baseURL;
|
|
5319
|
+
this.baseURL = baseURL; // complex
|
|
5000
5320
|
|
|
5001
5321
|
this.findComplexIds = function (params) {
|
|
5002
5322
|
return findComplexIdsRequest({
|
|
5003
5323
|
params: params,
|
|
5004
5324
|
baseURL: _this.baseURL
|
|
5005
5325
|
});
|
|
5326
|
+
}; // realty
|
|
5327
|
+
|
|
5328
|
+
|
|
5329
|
+
this.findRealties = function (params) {
|
|
5330
|
+
return findRealtiesRequest$1({
|
|
5331
|
+
params: params,
|
|
5332
|
+
baseURL: _this.baseURL
|
|
5333
|
+
});
|
|
5006
5334
|
};
|
|
5007
5335
|
};
|
|
5008
5336
|
|
|
5009
5337
|
var index$3 = {
|
|
5010
5338
|
__proto__: null,
|
|
5011
5339
|
Api: Api$3,
|
|
5012
|
-
findComplexIdsRequest: findComplexIdsRequest
|
|
5340
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
5341
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
5342
|
+
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
5343
|
+
RealtyDictionary: RealtyDictionary$2,
|
|
5344
|
+
ShapeDictionary: ShapeDictionary$1,
|
|
5345
|
+
get AddressBTIParamsParking () { return AddressBTIParamsParking$1; },
|
|
5346
|
+
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial$2; },
|
|
5347
|
+
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType$2; },
|
|
5348
|
+
get ImageType () { return ImageType$1; },
|
|
5349
|
+
get RealtyType () { return RealtyType$2; },
|
|
5350
|
+
get RealtyRenovationType () { return RealtyRenovationType$2; },
|
|
5351
|
+
get RealtyGas () { return RealtyGas$2; },
|
|
5352
|
+
get RealtyHouseType () { return RealtyHouseType$2; },
|
|
5353
|
+
get RealtyLandShape () { return RealtyLandShape$2; },
|
|
5354
|
+
get RealtyLandUsageType () { return RealtyLandUsageType$2; },
|
|
5355
|
+
get RealtyRelief () { return RealtyRelief$2; },
|
|
5356
|
+
get RealtyElectricity () { return RealtyElectricity$2; },
|
|
5357
|
+
get RealtyFurniture () { return RealtyFurniture$2; },
|
|
5358
|
+
get RealtySewerage () { return RealtySewerage$2; },
|
|
5359
|
+
get RealtyWindowView () { return RealtyWindowView$2; },
|
|
5360
|
+
get ShapeType () { return ShapeType$1; }
|
|
5013
5361
|
};
|
|
5014
5362
|
|
|
5015
5363
|
function countApartmentsRequest(_ref) {
|
|
@@ -5246,7 +5594,7 @@ var ApartmentMapPointType;
|
|
|
5246
5594
|
ApartmentMapPointType["Underground"] = "underground";
|
|
5247
5595
|
})(ApartmentMapPointType || (ApartmentMapPointType = {}));
|
|
5248
5596
|
|
|
5249
|
-
var RealtyRenovationType$
|
|
5597
|
+
var RealtyRenovationType$3;
|
|
5250
5598
|
|
|
5251
5599
|
(function (RealtyRenovationType) {
|
|
5252
5600
|
RealtyRenovationType["None"] = "none";
|
|
@@ -5255,7 +5603,7 @@ var RealtyRenovationType$2;
|
|
|
5255
5603
|
RealtyRenovationType["Euro"] = "euro";
|
|
5256
5604
|
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5257
5605
|
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5258
|
-
})(RealtyRenovationType$
|
|
5606
|
+
})(RealtyRenovationType$3 || (RealtyRenovationType$3 = {}));
|
|
5259
5607
|
|
|
5260
5608
|
var _MapPointDistanceType, _MapPointType;
|
|
5261
5609
|
var ApartmentDictionary = {
|
|
@@ -5323,7 +5671,7 @@ var index$4 = {
|
|
|
5323
5671
|
ApartmentDictionary: ApartmentDictionary,
|
|
5324
5672
|
get ApartmentMapPointDistanceType () { return ApartmentMapPointDistanceType; },
|
|
5325
5673
|
get ApartmentMapPointType () { return ApartmentMapPointType; },
|
|
5326
|
-
get RealtyRenovationType () { return RealtyRenovationType$
|
|
5674
|
+
get RealtyRenovationType () { return RealtyRenovationType$3; }
|
|
5327
5675
|
};
|
|
5328
5676
|
|
|
5329
5677
|
exports.Clients = index;
|