@hapl/api-queries 0.1.118 → 0.1.121
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 +324 -30
- 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 +324 -30
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/buyer/countBuyers/index.d.ts +21 -0
- 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/index.d.ts +2 -1
- package/dist/publisher/v1/api/findActualEventsRow/index.d.ts +20 -15
- 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 +2 -1
- package/src/clients/v1/api/buyer/countBuyers/index.ts +47 -0
- 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/index.ts +11 -5
- package/src/publisher/v1/api/findActualEventsRow/index.ts +34 -33
- 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.121 (Mon Feb 07 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- кол-во покупателей [#58](https://github.com/homeappcorporate/api-queries/pull/58) ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ivan Ignatev ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.1.120 (Mon Feb 07 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- отрефакторил запрос [#57](https://github.com/homeappcorporate/api-queries/pull/57) ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Ivan Ignatev ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.1.119 (Fri Feb 04 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- Запрос на список realty в registry [#54](https://github.com/homeappcorporate/api-queries/pull/54) ([@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.118 (Fri Feb 04 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
|
@@ -6,6 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var axios = _interopDefault(require('axios'));
|
|
8
8
|
var qs = _interopDefault(require('qs'));
|
|
9
|
+
var nanoid = require('nanoid');
|
|
9
10
|
var chunk = _interopDefault(require('lodash/chunk'));
|
|
10
11
|
|
|
11
12
|
function getPasswordRequest(_ref) {
|
|
@@ -193,6 +194,36 @@ function deleteAvailableFundsRequest(_ref) {
|
|
|
193
194
|
});
|
|
194
195
|
}
|
|
195
196
|
|
|
197
|
+
function countBuyersRequest(_ref) {
|
|
198
|
+
var _ref$baseURL = _ref.baseURL,
|
|
199
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
200
|
+
headers = _ref.headers,
|
|
201
|
+
params = _ref.params;
|
|
202
|
+
return axios.get('/api/buyer/count', {
|
|
203
|
+
baseURL: baseURL,
|
|
204
|
+
params: params,
|
|
205
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
206
|
+
return qs.stringify(params, {
|
|
207
|
+
arrayFormat: 'brackets'
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
headers: _extends({
|
|
211
|
+
Accept: 'application/json'
|
|
212
|
+
}, headers),
|
|
213
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
214
|
+
if (data.success) {
|
|
215
|
+
return data.data;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return data.data.error;
|
|
219
|
+
}])
|
|
220
|
+
}).then(function (res) {
|
|
221
|
+
return res;
|
|
222
|
+
})["catch"](function (err) {
|
|
223
|
+
throw err;
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
196
227
|
function findCallsRequest(_ref) {
|
|
197
228
|
var _ref$baseURL = _ref.baseURL,
|
|
198
229
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1171,7 +1202,7 @@ function findServiceRequestsRequest(_ref) {
|
|
|
1171
1202
|
});
|
|
1172
1203
|
}
|
|
1173
1204
|
|
|
1174
|
-
function
|
|
1205
|
+
function findServiceRequestSellerReportsRequest(_ref) {
|
|
1175
1206
|
var _ref$baseURL = _ref.baseURL,
|
|
1176
1207
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1177
1208
|
urlParams = _ref.urlParams,
|
|
@@ -2642,6 +2673,15 @@ var Api = function Api(baseURL) {
|
|
|
2642
2673
|
headers: headers,
|
|
2643
2674
|
baseURL: _this.baseURL
|
|
2644
2675
|
});
|
|
2676
|
+
}; // buyer
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
this.countBuyers = function (params, headers) {
|
|
2680
|
+
return countBuyersRequest({
|
|
2681
|
+
params: params,
|
|
2682
|
+
headers: headers,
|
|
2683
|
+
baseURL: _this.baseURL
|
|
2684
|
+
});
|
|
2645
2685
|
}; // call
|
|
2646
2686
|
|
|
2647
2687
|
|
|
@@ -3035,8 +3075,8 @@ var Api = function Api(baseURL) {
|
|
|
3035
3075
|
});
|
|
3036
3076
|
};
|
|
3037
3077
|
|
|
3038
|
-
this.
|
|
3039
|
-
return
|
|
3078
|
+
this.findServiceRequestSellerReports = function (urlParams, params, headers) {
|
|
3079
|
+
return findServiceRequestSellerReportsRequest({
|
|
3040
3080
|
urlParams: urlParams,
|
|
3041
3081
|
params: params,
|
|
3042
3082
|
headers: headers,
|
|
@@ -3133,6 +3173,7 @@ var index = {
|
|
|
3133
3173
|
findAvailableFundsRequest: findAvailableFundsRequest,
|
|
3134
3174
|
updateAvailableFundsRequest: updateAvailableFundsRequest,
|
|
3135
3175
|
deleteAvailableFundsRequest: deleteAvailableFundsRequest,
|
|
3176
|
+
countBuyersRequest: countBuyersRequest,
|
|
3136
3177
|
findCallsRequest: findCallsRequest,
|
|
3137
3178
|
findFirstSuccessOutgoingCallsRequest: findFirstSuccessOutgoingCallsRequest,
|
|
3138
3179
|
markupCallRequest: markupCallRequest,
|
|
@@ -3171,7 +3212,7 @@ var index = {
|
|
|
3171
3212
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
3172
3213
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
3173
3214
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
3174
|
-
|
|
3215
|
+
findServiceRequestSellerReportsRequest: findServiceRequestSellerReportsRequest,
|
|
3175
3216
|
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
3176
3217
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
3177
3218
|
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
@@ -4641,29 +4682,36 @@ function findActualEventsRowRequest(_ref) {
|
|
|
4641
4682
|
},
|
|
4642
4683
|
headers: _extends({
|
|
4643
4684
|
Accept: 'application/json'
|
|
4644
|
-
}, headers)
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
ids
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4685
|
+
}, headers),
|
|
4686
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
4687
|
+
var _ref2, _data$data$error, _data$data;
|
|
4688
|
+
|
|
4689
|
+
if (data.success) {
|
|
4690
|
+
var ids = [];
|
|
4691
|
+
var byId = {};
|
|
4692
|
+
data.data.forEach(function (entity) {
|
|
4693
|
+
var _id = nanoid.nanoid();
|
|
4694
|
+
|
|
4695
|
+
byId[_id] = _extends({}, entity, {
|
|
4696
|
+
_id: _id
|
|
4697
|
+
});
|
|
4698
|
+
ids.push(_id);
|
|
4699
|
+
});
|
|
4700
|
+
return {
|
|
4701
|
+
ids: ids,
|
|
4702
|
+
byId: byId,
|
|
4703
|
+
meta: {
|
|
4704
|
+
total: data.pageParams.length
|
|
4705
|
+
}
|
|
4706
|
+
};
|
|
4653
4707
|
}
|
|
4654
|
-
};
|
|
4655
|
-
res.data.data.forEach(function (entity) {
|
|
4656
|
-
data.data.byId[entity.apartmentId] = entity;
|
|
4657
|
-
data.data.ids.push(entity.apartmentId);
|
|
4658
|
-
});
|
|
4659
|
-
return data;
|
|
4660
|
-
})["catch"](function (err) {
|
|
4661
|
-
var _err$response$status, _err$response, _ref2, _err$response$data$me, _err$response2, _err$response3, _err$response3$data$d;
|
|
4662
4708
|
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4709
|
+
return (_ref2 = (_data$data$error = (_data$data = data.data) == null ? void 0 : _data$data.error) != null ? _data$data$error : data.message) != null ? _ref2 : 'Unknown Error';
|
|
4710
|
+
}])
|
|
4711
|
+
}).then(function (res) {
|
|
4712
|
+
return res;
|
|
4713
|
+
})["catch"](function (err) {
|
|
4714
|
+
throw err;
|
|
4667
4715
|
});
|
|
4668
4716
|
}
|
|
4669
4717
|
|
|
@@ -5094,23 +5142,269 @@ function findComplexIdsRequest(_ref) {
|
|
|
5094
5142
|
});
|
|
5095
5143
|
}
|
|
5096
5144
|
|
|
5145
|
+
function findRealtiesRequest$1(_ref) {
|
|
5146
|
+
var _ref$baseURL = _ref.baseURL,
|
|
5147
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
5148
|
+
params = _ref.params;
|
|
5149
|
+
return axios.get('/api/realty', {
|
|
5150
|
+
baseURL: baseURL,
|
|
5151
|
+
params: params,
|
|
5152
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
5153
|
+
return qs.stringify(params, {
|
|
5154
|
+
arrayFormat: 'brackets'
|
|
5155
|
+
});
|
|
5156
|
+
},
|
|
5157
|
+
headers: {
|
|
5158
|
+
Accept: 'application/json'
|
|
5159
|
+
},
|
|
5160
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
5161
|
+
if (!data.success) {
|
|
5162
|
+
return data.data.error || data.data.message;
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
var ids = [];
|
|
5166
|
+
var byId = {};
|
|
5167
|
+
data.data.forEach(function (entity) {
|
|
5168
|
+
byId[entity.id] = entity;
|
|
5169
|
+
ids.push(entity.id);
|
|
5170
|
+
});
|
|
5171
|
+
return {
|
|
5172
|
+
ids: ids,
|
|
5173
|
+
byId: byId,
|
|
5174
|
+
meta: {
|
|
5175
|
+
total: data.pageParams.length
|
|
5176
|
+
}
|
|
5177
|
+
};
|
|
5178
|
+
}])
|
|
5179
|
+
}).then(function (res) {
|
|
5180
|
+
return res;
|
|
5181
|
+
})["catch"](function (err) {
|
|
5182
|
+
throw err;
|
|
5183
|
+
});
|
|
5184
|
+
}
|
|
5185
|
+
|
|
5186
|
+
var AddressBTIParamsParking$1;
|
|
5187
|
+
|
|
5188
|
+
(function (AddressBTIParamsParking) {
|
|
5189
|
+
AddressBTIParamsParking["Ground"] = "ground";
|
|
5190
|
+
AddressBTIParamsParking["Multilevel"] = "multilevel";
|
|
5191
|
+
AddressBTIParamsParking["Underground"] = "underground";
|
|
5192
|
+
})(AddressBTIParamsParking$1 || (AddressBTIParamsParking$1 = {}));
|
|
5193
|
+
|
|
5194
|
+
var AddressBTIParamsWallsMaterial$2;
|
|
5195
|
+
|
|
5196
|
+
(function (AddressBTIParamsWallsMaterial) {
|
|
5197
|
+
AddressBTIParamsWallsMaterial["Brick"] = "brick";
|
|
5198
|
+
AddressBTIParamsWallsMaterial["Monolith"] = "monolith";
|
|
5199
|
+
AddressBTIParamsWallsMaterial["Monobrick"] = "monobrick";
|
|
5200
|
+
AddressBTIParamsWallsMaterial["Timber"] = "timber";
|
|
5201
|
+
AddressBTIParamsWallsMaterial["Panel"] = "panel";
|
|
5202
|
+
AddressBTIParamsWallsMaterial["Block"] = "block";
|
|
5203
|
+
})(AddressBTIParamsWallsMaterial$2 || (AddressBTIParamsWallsMaterial$2 = {}));
|
|
5204
|
+
|
|
5205
|
+
var AddressBTIParamsHeatingType$2;
|
|
5206
|
+
|
|
5207
|
+
(function (AddressBTIParamsHeatingType) {
|
|
5208
|
+
AddressBTIParamsHeatingType["None"] = "none";
|
|
5209
|
+
AddressBTIParamsHeatingType["Central"] = "central";
|
|
5210
|
+
AddressBTIParamsHeatingType["Local"] = "local";
|
|
5211
|
+
AddressBTIParamsHeatingType["Gas"] = "gas";
|
|
5212
|
+
AddressBTIParamsHeatingType["Electricity"] = "electricity";
|
|
5213
|
+
AddressBTIParamsHeatingType["Liquid"] = "liquid";
|
|
5214
|
+
})(AddressBTIParamsHeatingType$2 || (AddressBTIParamsHeatingType$2 = {}));
|
|
5215
|
+
|
|
5216
|
+
var ImageType$1;
|
|
5217
|
+
|
|
5218
|
+
(function (ImageType) {
|
|
5219
|
+
ImageType["Complex"] = "complex";
|
|
5220
|
+
ImageType["Apartment"] = "apartment";
|
|
5221
|
+
ImageType["Layout"] = "layout";
|
|
5222
|
+
})(ImageType$1 || (ImageType$1 = {}));
|
|
5223
|
+
|
|
5224
|
+
var RealtyType$2;
|
|
5225
|
+
|
|
5226
|
+
(function (RealtyType) {
|
|
5227
|
+
RealtyType["Flat"] = "flat";
|
|
5228
|
+
RealtyType["House"] = "house";
|
|
5229
|
+
})(RealtyType$2 || (RealtyType$2 = {}));
|
|
5230
|
+
|
|
5231
|
+
var RealtyRenovationType$2;
|
|
5232
|
+
|
|
5233
|
+
(function (RealtyRenovationType) {
|
|
5234
|
+
RealtyRenovationType["None"] = "none";
|
|
5235
|
+
RealtyRenovationType["Author"] = "author";
|
|
5236
|
+
RealtyRenovationType["Cosmetic"] = "cosmetic";
|
|
5237
|
+
RealtyRenovationType["Euro"] = "euro";
|
|
5238
|
+
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5239
|
+
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5240
|
+
})(RealtyRenovationType$2 || (RealtyRenovationType$2 = {}));
|
|
5241
|
+
|
|
5242
|
+
var RealtyGas$2;
|
|
5243
|
+
|
|
5244
|
+
(function (RealtyGas) {
|
|
5245
|
+
RealtyGas["None"] = "none";
|
|
5246
|
+
RealtyGas["Connected"] = "connected";
|
|
5247
|
+
RealtyGas["Border"] = "border";
|
|
5248
|
+
RealtyGas["Possible"] = "possible";
|
|
5249
|
+
RealtyGas["Autonomous"] = "autonomous";
|
|
5250
|
+
})(RealtyGas$2 || (RealtyGas$2 = {}));
|
|
5251
|
+
|
|
5252
|
+
var RealtyHouseType$2;
|
|
5253
|
+
|
|
5254
|
+
(function (RealtyHouseType) {
|
|
5255
|
+
RealtyHouseType["Townhouse"] = "townhouse";
|
|
5256
|
+
RealtyHouseType["House"] = "house";
|
|
5257
|
+
RealtyHouseType["Cottage"] = "cottage";
|
|
5258
|
+
RealtyHouseType["Part"] = "part";
|
|
5259
|
+
RealtyHouseType["Duplex"] = "duplex";
|
|
5260
|
+
})(RealtyHouseType$2 || (RealtyHouseType$2 = {}));
|
|
5261
|
+
|
|
5262
|
+
var RealtyLandShape$2;
|
|
5263
|
+
|
|
5264
|
+
(function (RealtyLandShape) {
|
|
5265
|
+
RealtyLandShape["Regular"] = "regular";
|
|
5266
|
+
RealtyLandShape["Irregular"] = "irregular";
|
|
5267
|
+
})(RealtyLandShape$2 || (RealtyLandShape$2 = {}));
|
|
5268
|
+
|
|
5269
|
+
var RealtyLandUsageType$2;
|
|
5270
|
+
|
|
5271
|
+
(function (RealtyLandUsageType) {
|
|
5272
|
+
RealtyLandUsageType["IGS"] = "igs";
|
|
5273
|
+
RealtyLandUsageType["LPH"] = "lph";
|
|
5274
|
+
RealtyLandUsageType["DNP"] = "dnp";
|
|
5275
|
+
RealtyLandUsageType["SNT"] = "snt";
|
|
5276
|
+
RealtyLandUsageType["Farm"] = "farm";
|
|
5277
|
+
RealtyLandUsageType["Garden"] = "garden";
|
|
5278
|
+
RealtyLandUsageType["Investproject"] = "investproject";
|
|
5279
|
+
})(RealtyLandUsageType$2 || (RealtyLandUsageType$2 = {}));
|
|
5280
|
+
|
|
5281
|
+
var RealtyRelief$2;
|
|
5282
|
+
|
|
5283
|
+
(function (RealtyRelief) {
|
|
5284
|
+
RealtyRelief["Flat"] = "flat";
|
|
5285
|
+
RealtyRelief["Elevations"] = "elevations";
|
|
5286
|
+
RealtyRelief["Slope"] = "slope";
|
|
5287
|
+
RealtyRelief["Hills"] = "hills";
|
|
5288
|
+
})(RealtyRelief$2 || (RealtyRelief$2 = {}));
|
|
5289
|
+
|
|
5290
|
+
var RealtyElectricity$2;
|
|
5291
|
+
|
|
5292
|
+
(function (RealtyElectricity) {
|
|
5293
|
+
RealtyElectricity["None"] = "none";
|
|
5294
|
+
RealtyElectricity["Connected"] = "connected";
|
|
5295
|
+
RealtyElectricity["Possible"] = "possible";
|
|
5296
|
+
RealtyElectricity["Autonomous"] = "autonomous";
|
|
5297
|
+
})(RealtyElectricity$2 || (RealtyElectricity$2 = {}));
|
|
5298
|
+
|
|
5299
|
+
var RealtyFurniture$2;
|
|
5300
|
+
|
|
5301
|
+
(function (RealtyFurniture) {
|
|
5302
|
+
RealtyFurniture["None"] = "none";
|
|
5303
|
+
RealtyFurniture["Full"] = "full";
|
|
5304
|
+
RealtyFurniture["Part"] = "part";
|
|
5305
|
+
})(RealtyFurniture$2 || (RealtyFurniture$2 = {}));
|
|
5306
|
+
|
|
5307
|
+
var RealtySewerage$2;
|
|
5308
|
+
|
|
5309
|
+
(function (RealtySewerage) {
|
|
5310
|
+
RealtySewerage["None"] = "none";
|
|
5311
|
+
RealtySewerage["Cesspool"] = "cesspool";
|
|
5312
|
+
RealtySewerage["Septic"] = "septic";
|
|
5313
|
+
RealtySewerage["Bio"] = "bio";
|
|
5314
|
+
RealtySewerage["Central"] = "central";
|
|
5315
|
+
})(RealtySewerage$2 || (RealtySewerage$2 = {}));
|
|
5316
|
+
|
|
5317
|
+
var RealtyWindowView$2;
|
|
5318
|
+
|
|
5319
|
+
(function (RealtyWindowView) {
|
|
5320
|
+
RealtyWindowView["Street"] = "street";
|
|
5321
|
+
RealtyWindowView["Yard"] = "yard";
|
|
5322
|
+
RealtyWindowView["Both"] = "both";
|
|
5323
|
+
})(RealtyWindowView$2 || (RealtyWindowView$2 = {}));
|
|
5324
|
+
|
|
5325
|
+
var ShapeType$1;
|
|
5326
|
+
|
|
5327
|
+
(function (ShapeType) {
|
|
5328
|
+
ShapeType["AdministrativeDistrict"] = "administrative_district";
|
|
5329
|
+
ShapeType["Block"] = "block";
|
|
5330
|
+
ShapeType["Complex"] = "complex";
|
|
5331
|
+
ShapeType["District"] = "district";
|
|
5332
|
+
ShapeType["House"] = "house";
|
|
5333
|
+
ShapeType["Microdistrict"] = "microdistrict";
|
|
5334
|
+
})(ShapeType$1 || (ShapeType$1 = {}));
|
|
5335
|
+
|
|
5336
|
+
var _Parking$1, _WallsMaterial$3, _HeatingType$2;
|
|
5337
|
+
var AddressBTIParamsDictionary$2 = {
|
|
5338
|
+
Parking: (_Parking$1 = {}, _Parking$1[AddressBTIParamsParking$1.Ground] = 'Наземная', _Parking$1[AddressBTIParamsParking$1.Multilevel] = 'Многоуровневая', _Parking$1[AddressBTIParamsParking$1.Underground] = 'Подземная', _Parking$1),
|
|
5339
|
+
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),
|
|
5340
|
+
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)
|
|
5341
|
+
};
|
|
5342
|
+
|
|
5343
|
+
var _Type$9, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
5344
|
+
var RealtyDictionary$2 = {
|
|
5345
|
+
Type: (_Type$9 = {}, _Type$9[RealtyType$2.Flat] = 'Квартира', _Type$9[RealtyType$2.House] = 'Дом', _Type$9),
|
|
5346
|
+
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),
|
|
5347
|
+
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),
|
|
5348
|
+
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),
|
|
5349
|
+
LandShape: (_LandShape$2 = {}, _LandShape$2[RealtyLandShape$2.Regular] = 'Правильная', _LandShape$2[RealtyLandShape$2.Irregular] = 'Неправильная', _LandShape$2),
|
|
5350
|
+
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),
|
|
5351
|
+
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),
|
|
5352
|
+
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),
|
|
5353
|
+
Furniture: (_Furniture$2 = {}, _Furniture$2[RealtyFurniture$2.None] = 'Отсутствует', _Furniture$2[RealtyFurniture$2.Full] = 'Полностью мебелирован', _Furniture$2[RealtyFurniture$2.Part] = 'Частично мебелирован', _Furniture$2),
|
|
5354
|
+
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),
|
|
5355
|
+
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
5356
|
+
};
|
|
5357
|
+
|
|
5358
|
+
var _Type$a;
|
|
5359
|
+
var ShapeDictionary$1 = {
|
|
5360
|
+
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)
|
|
5361
|
+
};
|
|
5362
|
+
|
|
5097
5363
|
var Api$3 = function Api(baseURL) {
|
|
5098
5364
|
var _this = this;
|
|
5099
5365
|
|
|
5100
|
-
this.baseURL = baseURL;
|
|
5366
|
+
this.baseURL = baseURL; // complex
|
|
5101
5367
|
|
|
5102
5368
|
this.findComplexIds = function (params) {
|
|
5103
5369
|
return findComplexIdsRequest({
|
|
5104
5370
|
params: params,
|
|
5105
5371
|
baseURL: _this.baseURL
|
|
5106
5372
|
});
|
|
5373
|
+
}; // realty
|
|
5374
|
+
|
|
5375
|
+
|
|
5376
|
+
this.findRealties = function (params) {
|
|
5377
|
+
return findRealtiesRequest$1({
|
|
5378
|
+
params: params,
|
|
5379
|
+
baseURL: _this.baseURL
|
|
5380
|
+
});
|
|
5107
5381
|
};
|
|
5108
5382
|
};
|
|
5109
5383
|
|
|
5110
5384
|
var index$3 = {
|
|
5111
5385
|
__proto__: null,
|
|
5112
5386
|
Api: Api$3,
|
|
5113
|
-
findComplexIdsRequest: findComplexIdsRequest
|
|
5387
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
5388
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
5389
|
+
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
5390
|
+
RealtyDictionary: RealtyDictionary$2,
|
|
5391
|
+
ShapeDictionary: ShapeDictionary$1,
|
|
5392
|
+
get AddressBTIParamsParking () { return AddressBTIParamsParking$1; },
|
|
5393
|
+
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial$2; },
|
|
5394
|
+
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType$2; },
|
|
5395
|
+
get ImageType () { return ImageType$1; },
|
|
5396
|
+
get RealtyType () { return RealtyType$2; },
|
|
5397
|
+
get RealtyRenovationType () { return RealtyRenovationType$2; },
|
|
5398
|
+
get RealtyGas () { return RealtyGas$2; },
|
|
5399
|
+
get RealtyHouseType () { return RealtyHouseType$2; },
|
|
5400
|
+
get RealtyLandShape () { return RealtyLandShape$2; },
|
|
5401
|
+
get RealtyLandUsageType () { return RealtyLandUsageType$2; },
|
|
5402
|
+
get RealtyRelief () { return RealtyRelief$2; },
|
|
5403
|
+
get RealtyElectricity () { return RealtyElectricity$2; },
|
|
5404
|
+
get RealtyFurniture () { return RealtyFurniture$2; },
|
|
5405
|
+
get RealtySewerage () { return RealtySewerage$2; },
|
|
5406
|
+
get RealtyWindowView () { return RealtyWindowView$2; },
|
|
5407
|
+
get ShapeType () { return ShapeType$1; }
|
|
5114
5408
|
};
|
|
5115
5409
|
|
|
5116
5410
|
function countApartmentsRequest(_ref) {
|
|
@@ -5347,7 +5641,7 @@ var ApartmentMapPointType;
|
|
|
5347
5641
|
ApartmentMapPointType["Underground"] = "underground";
|
|
5348
5642
|
})(ApartmentMapPointType || (ApartmentMapPointType = {}));
|
|
5349
5643
|
|
|
5350
|
-
var RealtyRenovationType$
|
|
5644
|
+
var RealtyRenovationType$3;
|
|
5351
5645
|
|
|
5352
5646
|
(function (RealtyRenovationType) {
|
|
5353
5647
|
RealtyRenovationType["None"] = "none";
|
|
@@ -5356,7 +5650,7 @@ var RealtyRenovationType$2;
|
|
|
5356
5650
|
RealtyRenovationType["Euro"] = "euro";
|
|
5357
5651
|
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5358
5652
|
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5359
|
-
})(RealtyRenovationType$
|
|
5653
|
+
})(RealtyRenovationType$3 || (RealtyRenovationType$3 = {}));
|
|
5360
5654
|
|
|
5361
5655
|
var _MapPointDistanceType, _MapPointType;
|
|
5362
5656
|
var ApartmentDictionary = {
|
|
@@ -5424,7 +5718,7 @@ var index$4 = {
|
|
|
5424
5718
|
ApartmentDictionary: ApartmentDictionary,
|
|
5425
5719
|
get ApartmentMapPointDistanceType () { return ApartmentMapPointDistanceType; },
|
|
5426
5720
|
get ApartmentMapPointType () { return ApartmentMapPointType; },
|
|
5427
|
-
get RealtyRenovationType () { return RealtyRenovationType$
|
|
5721
|
+
get RealtyRenovationType () { return RealtyRenovationType$3; }
|
|
5428
5722
|
};
|
|
5429
5723
|
|
|
5430
5724
|
exports.Clients = index;
|