@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/dist/api-queries.esm.js
CHANGED
|
@@ -1165,7 +1165,7 @@ function findServiceRequestsRequest(_ref) {
|
|
|
1165
1165
|
});
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
|
-
function
|
|
1168
|
+
function findServiceRequestSellerReportsRequest(_ref) {
|
|
1169
1169
|
var _ref$baseURL = _ref.baseURL,
|
|
1170
1170
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1171
1171
|
urlParams = _ref.urlParams,
|
|
@@ -1659,6 +1659,32 @@ function findTasksRequest(_ref) {
|
|
|
1659
1659
|
});
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
|
+
function findValuationByServiceRequestIdRequest(_ref) {
|
|
1663
|
+
var _ref$baseURL = _ref.baseURL,
|
|
1664
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1665
|
+
urlParams = _ref.urlParams,
|
|
1666
|
+
params = _ref.params;
|
|
1667
|
+
return axios.get("/api/valuation/" + urlParams.id, {
|
|
1668
|
+
baseURL: baseURL,
|
|
1669
|
+
params: params,
|
|
1670
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
1671
|
+
return qs.stringify(params, {
|
|
1672
|
+
arrayFormat: 'brackets'
|
|
1673
|
+
});
|
|
1674
|
+
},
|
|
1675
|
+
headers: {
|
|
1676
|
+
Accept: 'application/json'
|
|
1677
|
+
},
|
|
1678
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
1679
|
+
return data.success ? data.data : data.data.error;
|
|
1680
|
+
}])
|
|
1681
|
+
}).then(function (res) {
|
|
1682
|
+
return res;
|
|
1683
|
+
})["catch"](function (err) {
|
|
1684
|
+
throw err;
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1662
1688
|
var AddressBTIParamsParking;
|
|
1663
1689
|
|
|
1664
1690
|
(function (AddressBTIParamsParking) {
|
|
@@ -2405,6 +2431,16 @@ var UserPhoneType;
|
|
|
2405
2431
|
UserPhoneType["CiBlack"] = "ci_black";
|
|
2406
2432
|
})(UserPhoneType || (UserPhoneType = {}));
|
|
2407
2433
|
|
|
2434
|
+
var ValuationConcurrency;
|
|
2435
|
+
|
|
2436
|
+
(function (ValuationConcurrency) {
|
|
2437
|
+
ValuationConcurrency["Low"] = "low";
|
|
2438
|
+
ValuationConcurrency["Medium"] = "medium";
|
|
2439
|
+
ValuationConcurrency["MediumHigh"] = "medium-high";
|
|
2440
|
+
ValuationConcurrency["High"] = "high";
|
|
2441
|
+
ValuationConcurrency["VeryHigh"] = "very-high";
|
|
2442
|
+
})(ValuationConcurrency || (ValuationConcurrency = {}));
|
|
2443
|
+
|
|
2408
2444
|
var _Parking, _WallsMaterial, _HeatingType;
|
|
2409
2445
|
var AddressBTIParamsDictionary = {
|
|
2410
2446
|
Parking: (_Parking = {}, _Parking[AddressBTIParamsParking.Ground] = 'Наземная', _Parking[AddressBTIParamsParking.Multilevel] = 'Многоуровневая', _Parking[AddressBTIParamsParking.Underground] = 'Подземная', _Parking),
|
|
@@ -2537,6 +2573,11 @@ var UserDictionary = {
|
|
|
2537
2573
|
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)
|
|
2538
2574
|
};
|
|
2539
2575
|
|
|
2576
|
+
var _Concurrency;
|
|
2577
|
+
var ValuationDictionary = {
|
|
2578
|
+
Concurrency: (_Concurrency = {}, _Concurrency[ValuationConcurrency.Low] = 'Не высокий', _Concurrency[ValuationConcurrency.Medium] = 'Средний', _Concurrency[ValuationConcurrency.MediumHigh] = 'Выше среднего', _Concurrency[ValuationConcurrency.High] = 'Высокий', _Concurrency[ValuationConcurrency.VeryHigh] = 'Очень высокий', _Concurrency)
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2540
2581
|
var Api = function Api(baseURL) {
|
|
2541
2582
|
var _this = this;
|
|
2542
2583
|
|
|
@@ -2988,8 +3029,8 @@ var Api = function Api(baseURL) {
|
|
|
2988
3029
|
});
|
|
2989
3030
|
};
|
|
2990
3031
|
|
|
2991
|
-
this.
|
|
2992
|
-
return
|
|
3032
|
+
this.findServiceRequestSellerReports = function (urlParams, params, headers) {
|
|
3033
|
+
return findServiceRequestSellerReportsRequest({
|
|
2993
3034
|
urlParams: urlParams,
|
|
2994
3035
|
params: params,
|
|
2995
3036
|
headers: headers,
|
|
@@ -3064,6 +3105,15 @@ var Api = function Api(baseURL) {
|
|
|
3064
3105
|
headers: headers,
|
|
3065
3106
|
baseURL: _this.baseURL
|
|
3066
3107
|
});
|
|
3108
|
+
}; // valuation
|
|
3109
|
+
|
|
3110
|
+
|
|
3111
|
+
this.findValuationByServiceRequestId = function (urlParams, params) {
|
|
3112
|
+
return findValuationByServiceRequestIdRequest({
|
|
3113
|
+
urlParams: urlParams,
|
|
3114
|
+
params: params,
|
|
3115
|
+
baseURL: _this.baseURL
|
|
3116
|
+
});
|
|
3067
3117
|
};
|
|
3068
3118
|
};
|
|
3069
3119
|
|
|
@@ -3115,7 +3165,7 @@ var index = {
|
|
|
3115
3165
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
3116
3166
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
3117
3167
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
3118
|
-
|
|
3168
|
+
findServiceRequestSellerReportsRequest: findServiceRequestSellerReportsRequest,
|
|
3119
3169
|
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
3120
3170
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
3121
3171
|
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
@@ -3133,6 +3183,7 @@ var index = {
|
|
|
3133
3183
|
fireUserRequest: fireUserRequest,
|
|
3134
3184
|
assignSubordinateUsersRequest: assignSubordinateUsersRequest,
|
|
3135
3185
|
findTasksRequest: findTasksRequest,
|
|
3186
|
+
findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
|
|
3136
3187
|
AddressBTIParamsDictionary: AddressBTIParamsDictionary,
|
|
3137
3188
|
AvailableFundsDictionary: AvailableFundsDictionary,
|
|
3138
3189
|
BuyerDictionary: BuyerDictionary,
|
|
@@ -3151,6 +3202,7 @@ var index = {
|
|
|
3151
3202
|
ShapeDictionary: ShapeDictionary,
|
|
3152
3203
|
TaskDictionary: TaskDictionary,
|
|
3153
3204
|
UserDictionary: UserDictionary,
|
|
3205
|
+
ValuationDictionary: ValuationDictionary,
|
|
3154
3206
|
get AddressBTIParamsParking () { return AddressBTIParamsParking; },
|
|
3155
3207
|
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial; },
|
|
3156
3208
|
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType; },
|
|
@@ -3217,7 +3269,8 @@ var index = {
|
|
|
3217
3269
|
get UserFiredType () { return UserFiredType; },
|
|
3218
3270
|
get UserFiredReason () { return UserFiredReason; },
|
|
3219
3271
|
get UserAttractionChannel () { return UserAttractionChannel; },
|
|
3220
|
-
get UserPhoneType () { return UserPhoneType; }
|
|
3272
|
+
get UserPhoneType () { return UserPhoneType; },
|
|
3273
|
+
get ValuationConcurrency () { return ValuationConcurrency; }
|
|
3221
3274
|
};
|
|
3222
3275
|
|
|
3223
3276
|
function createAddressRequest(_ref) {
|
|
@@ -5035,23 +5088,269 @@ function findComplexIdsRequest(_ref) {
|
|
|
5035
5088
|
});
|
|
5036
5089
|
}
|
|
5037
5090
|
|
|
5091
|
+
function findRealtiesRequest$1(_ref) {
|
|
5092
|
+
var _ref$baseURL = _ref.baseURL,
|
|
5093
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
5094
|
+
params = _ref.params;
|
|
5095
|
+
return axios.get('/api/realty', {
|
|
5096
|
+
baseURL: baseURL,
|
|
5097
|
+
params: params,
|
|
5098
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
5099
|
+
return qs.stringify(params, {
|
|
5100
|
+
arrayFormat: 'brackets'
|
|
5101
|
+
});
|
|
5102
|
+
},
|
|
5103
|
+
headers: {
|
|
5104
|
+
Accept: 'application/json'
|
|
5105
|
+
},
|
|
5106
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
5107
|
+
if (!data.success) {
|
|
5108
|
+
return data.data.error || data.data.message;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
var ids = [];
|
|
5112
|
+
var byId = {};
|
|
5113
|
+
data.data.forEach(function (entity) {
|
|
5114
|
+
byId[entity.id] = entity;
|
|
5115
|
+
ids.push(entity.id);
|
|
5116
|
+
});
|
|
5117
|
+
return {
|
|
5118
|
+
ids: ids,
|
|
5119
|
+
byId: byId,
|
|
5120
|
+
meta: {
|
|
5121
|
+
total: data.pageParams.length
|
|
5122
|
+
}
|
|
5123
|
+
};
|
|
5124
|
+
}])
|
|
5125
|
+
}).then(function (res) {
|
|
5126
|
+
return res;
|
|
5127
|
+
})["catch"](function (err) {
|
|
5128
|
+
throw err;
|
|
5129
|
+
});
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
var AddressBTIParamsParking$1;
|
|
5133
|
+
|
|
5134
|
+
(function (AddressBTIParamsParking) {
|
|
5135
|
+
AddressBTIParamsParking["Ground"] = "ground";
|
|
5136
|
+
AddressBTIParamsParking["Multilevel"] = "multilevel";
|
|
5137
|
+
AddressBTIParamsParking["Underground"] = "underground";
|
|
5138
|
+
})(AddressBTIParamsParking$1 || (AddressBTIParamsParking$1 = {}));
|
|
5139
|
+
|
|
5140
|
+
var AddressBTIParamsWallsMaterial$2;
|
|
5141
|
+
|
|
5142
|
+
(function (AddressBTIParamsWallsMaterial) {
|
|
5143
|
+
AddressBTIParamsWallsMaterial["Brick"] = "brick";
|
|
5144
|
+
AddressBTIParamsWallsMaterial["Monolith"] = "monolith";
|
|
5145
|
+
AddressBTIParamsWallsMaterial["Monobrick"] = "monobrick";
|
|
5146
|
+
AddressBTIParamsWallsMaterial["Timber"] = "timber";
|
|
5147
|
+
AddressBTIParamsWallsMaterial["Panel"] = "panel";
|
|
5148
|
+
AddressBTIParamsWallsMaterial["Block"] = "block";
|
|
5149
|
+
})(AddressBTIParamsWallsMaterial$2 || (AddressBTIParamsWallsMaterial$2 = {}));
|
|
5150
|
+
|
|
5151
|
+
var AddressBTIParamsHeatingType$2;
|
|
5152
|
+
|
|
5153
|
+
(function (AddressBTIParamsHeatingType) {
|
|
5154
|
+
AddressBTIParamsHeatingType["None"] = "none";
|
|
5155
|
+
AddressBTIParamsHeatingType["Central"] = "central";
|
|
5156
|
+
AddressBTIParamsHeatingType["Local"] = "local";
|
|
5157
|
+
AddressBTIParamsHeatingType["Gas"] = "gas";
|
|
5158
|
+
AddressBTIParamsHeatingType["Electricity"] = "electricity";
|
|
5159
|
+
AddressBTIParamsHeatingType["Liquid"] = "liquid";
|
|
5160
|
+
})(AddressBTIParamsHeatingType$2 || (AddressBTIParamsHeatingType$2 = {}));
|
|
5161
|
+
|
|
5162
|
+
var ImageType$1;
|
|
5163
|
+
|
|
5164
|
+
(function (ImageType) {
|
|
5165
|
+
ImageType["Complex"] = "complex";
|
|
5166
|
+
ImageType["Apartment"] = "apartment";
|
|
5167
|
+
ImageType["Layout"] = "layout";
|
|
5168
|
+
})(ImageType$1 || (ImageType$1 = {}));
|
|
5169
|
+
|
|
5170
|
+
var RealtyType$2;
|
|
5171
|
+
|
|
5172
|
+
(function (RealtyType) {
|
|
5173
|
+
RealtyType["Flat"] = "flat";
|
|
5174
|
+
RealtyType["House"] = "house";
|
|
5175
|
+
})(RealtyType$2 || (RealtyType$2 = {}));
|
|
5176
|
+
|
|
5177
|
+
var RealtyRenovationType$2;
|
|
5178
|
+
|
|
5179
|
+
(function (RealtyRenovationType) {
|
|
5180
|
+
RealtyRenovationType["None"] = "none";
|
|
5181
|
+
RealtyRenovationType["Author"] = "author";
|
|
5182
|
+
RealtyRenovationType["Cosmetic"] = "cosmetic";
|
|
5183
|
+
RealtyRenovationType["Euro"] = "euro";
|
|
5184
|
+
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5185
|
+
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5186
|
+
})(RealtyRenovationType$2 || (RealtyRenovationType$2 = {}));
|
|
5187
|
+
|
|
5188
|
+
var RealtyGas$2;
|
|
5189
|
+
|
|
5190
|
+
(function (RealtyGas) {
|
|
5191
|
+
RealtyGas["None"] = "none";
|
|
5192
|
+
RealtyGas["Connected"] = "connected";
|
|
5193
|
+
RealtyGas["Border"] = "border";
|
|
5194
|
+
RealtyGas["Possible"] = "possible";
|
|
5195
|
+
RealtyGas["Autonomous"] = "autonomous";
|
|
5196
|
+
})(RealtyGas$2 || (RealtyGas$2 = {}));
|
|
5197
|
+
|
|
5198
|
+
var RealtyHouseType$2;
|
|
5199
|
+
|
|
5200
|
+
(function (RealtyHouseType) {
|
|
5201
|
+
RealtyHouseType["Townhouse"] = "townhouse";
|
|
5202
|
+
RealtyHouseType["House"] = "house";
|
|
5203
|
+
RealtyHouseType["Cottage"] = "cottage";
|
|
5204
|
+
RealtyHouseType["Part"] = "part";
|
|
5205
|
+
RealtyHouseType["Duplex"] = "duplex";
|
|
5206
|
+
})(RealtyHouseType$2 || (RealtyHouseType$2 = {}));
|
|
5207
|
+
|
|
5208
|
+
var RealtyLandShape$2;
|
|
5209
|
+
|
|
5210
|
+
(function (RealtyLandShape) {
|
|
5211
|
+
RealtyLandShape["Regular"] = "regular";
|
|
5212
|
+
RealtyLandShape["Irregular"] = "irregular";
|
|
5213
|
+
})(RealtyLandShape$2 || (RealtyLandShape$2 = {}));
|
|
5214
|
+
|
|
5215
|
+
var RealtyLandUsageType$2;
|
|
5216
|
+
|
|
5217
|
+
(function (RealtyLandUsageType) {
|
|
5218
|
+
RealtyLandUsageType["IGS"] = "igs";
|
|
5219
|
+
RealtyLandUsageType["LPH"] = "lph";
|
|
5220
|
+
RealtyLandUsageType["DNP"] = "dnp";
|
|
5221
|
+
RealtyLandUsageType["SNT"] = "snt";
|
|
5222
|
+
RealtyLandUsageType["Farm"] = "farm";
|
|
5223
|
+
RealtyLandUsageType["Garden"] = "garden";
|
|
5224
|
+
RealtyLandUsageType["Investproject"] = "investproject";
|
|
5225
|
+
})(RealtyLandUsageType$2 || (RealtyLandUsageType$2 = {}));
|
|
5226
|
+
|
|
5227
|
+
var RealtyRelief$2;
|
|
5228
|
+
|
|
5229
|
+
(function (RealtyRelief) {
|
|
5230
|
+
RealtyRelief["Flat"] = "flat";
|
|
5231
|
+
RealtyRelief["Elevations"] = "elevations";
|
|
5232
|
+
RealtyRelief["Slope"] = "slope";
|
|
5233
|
+
RealtyRelief["Hills"] = "hills";
|
|
5234
|
+
})(RealtyRelief$2 || (RealtyRelief$2 = {}));
|
|
5235
|
+
|
|
5236
|
+
var RealtyElectricity$2;
|
|
5237
|
+
|
|
5238
|
+
(function (RealtyElectricity) {
|
|
5239
|
+
RealtyElectricity["None"] = "none";
|
|
5240
|
+
RealtyElectricity["Connected"] = "connected";
|
|
5241
|
+
RealtyElectricity["Possible"] = "possible";
|
|
5242
|
+
RealtyElectricity["Autonomous"] = "autonomous";
|
|
5243
|
+
})(RealtyElectricity$2 || (RealtyElectricity$2 = {}));
|
|
5244
|
+
|
|
5245
|
+
var RealtyFurniture$2;
|
|
5246
|
+
|
|
5247
|
+
(function (RealtyFurniture) {
|
|
5248
|
+
RealtyFurniture["None"] = "none";
|
|
5249
|
+
RealtyFurniture["Full"] = "full";
|
|
5250
|
+
RealtyFurniture["Part"] = "part";
|
|
5251
|
+
})(RealtyFurniture$2 || (RealtyFurniture$2 = {}));
|
|
5252
|
+
|
|
5253
|
+
var RealtySewerage$2;
|
|
5254
|
+
|
|
5255
|
+
(function (RealtySewerage) {
|
|
5256
|
+
RealtySewerage["None"] = "none";
|
|
5257
|
+
RealtySewerage["Cesspool"] = "cesspool";
|
|
5258
|
+
RealtySewerage["Septic"] = "septic";
|
|
5259
|
+
RealtySewerage["Bio"] = "bio";
|
|
5260
|
+
RealtySewerage["Central"] = "central";
|
|
5261
|
+
})(RealtySewerage$2 || (RealtySewerage$2 = {}));
|
|
5262
|
+
|
|
5263
|
+
var RealtyWindowView$2;
|
|
5264
|
+
|
|
5265
|
+
(function (RealtyWindowView) {
|
|
5266
|
+
RealtyWindowView["Street"] = "street";
|
|
5267
|
+
RealtyWindowView["Yard"] = "yard";
|
|
5268
|
+
RealtyWindowView["Both"] = "both";
|
|
5269
|
+
})(RealtyWindowView$2 || (RealtyWindowView$2 = {}));
|
|
5270
|
+
|
|
5271
|
+
var ShapeType$1;
|
|
5272
|
+
|
|
5273
|
+
(function (ShapeType) {
|
|
5274
|
+
ShapeType["AdministrativeDistrict"] = "administrative_district";
|
|
5275
|
+
ShapeType["Block"] = "block";
|
|
5276
|
+
ShapeType["Complex"] = "complex";
|
|
5277
|
+
ShapeType["District"] = "district";
|
|
5278
|
+
ShapeType["House"] = "house";
|
|
5279
|
+
ShapeType["Microdistrict"] = "microdistrict";
|
|
5280
|
+
})(ShapeType$1 || (ShapeType$1 = {}));
|
|
5281
|
+
|
|
5282
|
+
var _Parking$1, _WallsMaterial$3, _HeatingType$2;
|
|
5283
|
+
var AddressBTIParamsDictionary$2 = {
|
|
5284
|
+
Parking: (_Parking$1 = {}, _Parking$1[AddressBTIParamsParking$1.Ground] = 'Наземная', _Parking$1[AddressBTIParamsParking$1.Multilevel] = 'Многоуровневая', _Parking$1[AddressBTIParamsParking$1.Underground] = 'Подземная', _Parking$1),
|
|
5285
|
+
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),
|
|
5286
|
+
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)
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5289
|
+
var _Type$9, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
5290
|
+
var RealtyDictionary$2 = {
|
|
5291
|
+
Type: (_Type$9 = {}, _Type$9[RealtyType$2.Flat] = 'Квартира', _Type$9[RealtyType$2.House] = 'Дом', _Type$9),
|
|
5292
|
+
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),
|
|
5293
|
+
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),
|
|
5294
|
+
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),
|
|
5295
|
+
LandShape: (_LandShape$2 = {}, _LandShape$2[RealtyLandShape$2.Regular] = 'Правильная', _LandShape$2[RealtyLandShape$2.Irregular] = 'Неправильная', _LandShape$2),
|
|
5296
|
+
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),
|
|
5297
|
+
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),
|
|
5298
|
+
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),
|
|
5299
|
+
Furniture: (_Furniture$2 = {}, _Furniture$2[RealtyFurniture$2.None] = 'Отсутствует', _Furniture$2[RealtyFurniture$2.Full] = 'Полностью мебелирован', _Furniture$2[RealtyFurniture$2.Part] = 'Частично мебелирован', _Furniture$2),
|
|
5300
|
+
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),
|
|
5301
|
+
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5304
|
+
var _Type$a;
|
|
5305
|
+
var ShapeDictionary$1 = {
|
|
5306
|
+
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)
|
|
5307
|
+
};
|
|
5308
|
+
|
|
5038
5309
|
var Api$3 = function Api(baseURL) {
|
|
5039
5310
|
var _this = this;
|
|
5040
5311
|
|
|
5041
|
-
this.baseURL = baseURL;
|
|
5312
|
+
this.baseURL = baseURL; // complex
|
|
5042
5313
|
|
|
5043
5314
|
this.findComplexIds = function (params) {
|
|
5044
5315
|
return findComplexIdsRequest({
|
|
5045
5316
|
params: params,
|
|
5046
5317
|
baseURL: _this.baseURL
|
|
5047
5318
|
});
|
|
5319
|
+
}; // realty
|
|
5320
|
+
|
|
5321
|
+
|
|
5322
|
+
this.findRealties = function (params) {
|
|
5323
|
+
return findRealtiesRequest$1({
|
|
5324
|
+
params: params,
|
|
5325
|
+
baseURL: _this.baseURL
|
|
5326
|
+
});
|
|
5048
5327
|
};
|
|
5049
5328
|
};
|
|
5050
5329
|
|
|
5051
5330
|
var index$3 = {
|
|
5052
5331
|
__proto__: null,
|
|
5053
5332
|
Api: Api$3,
|
|
5054
|
-
findComplexIdsRequest: findComplexIdsRequest
|
|
5333
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
5334
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
5335
|
+
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
5336
|
+
RealtyDictionary: RealtyDictionary$2,
|
|
5337
|
+
ShapeDictionary: ShapeDictionary$1,
|
|
5338
|
+
get AddressBTIParamsParking () { return AddressBTIParamsParking$1; },
|
|
5339
|
+
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial$2; },
|
|
5340
|
+
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType$2; },
|
|
5341
|
+
get ImageType () { return ImageType$1; },
|
|
5342
|
+
get RealtyType () { return RealtyType$2; },
|
|
5343
|
+
get RealtyRenovationType () { return RealtyRenovationType$2; },
|
|
5344
|
+
get RealtyGas () { return RealtyGas$2; },
|
|
5345
|
+
get RealtyHouseType () { return RealtyHouseType$2; },
|
|
5346
|
+
get RealtyLandShape () { return RealtyLandShape$2; },
|
|
5347
|
+
get RealtyLandUsageType () { return RealtyLandUsageType$2; },
|
|
5348
|
+
get RealtyRelief () { return RealtyRelief$2; },
|
|
5349
|
+
get RealtyElectricity () { return RealtyElectricity$2; },
|
|
5350
|
+
get RealtyFurniture () { return RealtyFurniture$2; },
|
|
5351
|
+
get RealtySewerage () { return RealtySewerage$2; },
|
|
5352
|
+
get RealtyWindowView () { return RealtyWindowView$2; },
|
|
5353
|
+
get ShapeType () { return ShapeType$1; }
|
|
5055
5354
|
};
|
|
5056
5355
|
|
|
5057
5356
|
function countApartmentsRequest(_ref) {
|
|
@@ -5288,7 +5587,7 @@ var ApartmentMapPointType;
|
|
|
5288
5587
|
ApartmentMapPointType["Underground"] = "underground";
|
|
5289
5588
|
})(ApartmentMapPointType || (ApartmentMapPointType = {}));
|
|
5290
5589
|
|
|
5291
|
-
var RealtyRenovationType$
|
|
5590
|
+
var RealtyRenovationType$3;
|
|
5292
5591
|
|
|
5293
5592
|
(function (RealtyRenovationType) {
|
|
5294
5593
|
RealtyRenovationType["None"] = "none";
|
|
@@ -5297,7 +5596,7 @@ var RealtyRenovationType$2;
|
|
|
5297
5596
|
RealtyRenovationType["Euro"] = "euro";
|
|
5298
5597
|
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5299
5598
|
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5300
|
-
})(RealtyRenovationType$
|
|
5599
|
+
})(RealtyRenovationType$3 || (RealtyRenovationType$3 = {}));
|
|
5301
5600
|
|
|
5302
5601
|
var _MapPointDistanceType, _MapPointType;
|
|
5303
5602
|
var ApartmentDictionary = {
|
|
@@ -5365,7 +5664,7 @@ var index$4 = {
|
|
|
5365
5664
|
ApartmentDictionary: ApartmentDictionary,
|
|
5366
5665
|
get ApartmentMapPointDistanceType () { return ApartmentMapPointDistanceType; },
|
|
5367
5666
|
get ApartmentMapPointType () { return ApartmentMapPointType; },
|
|
5368
|
-
get RealtyRenovationType () { return RealtyRenovationType$
|
|
5667
|
+
get RealtyRenovationType () { return RealtyRenovationType$3; }
|
|
5369
5668
|
};
|
|
5370
5669
|
|
|
5371
5670
|
export { index as Clients, index$1 as ClientsV2, index$2 as Publisher, index$3 as Registry, index$4 as Search };
|