@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/dist/api-queries.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
+
import { nanoid } from 'nanoid';
|
|
3
4
|
import chunk from 'lodash-es/chunk';
|
|
4
5
|
|
|
5
6
|
function getPasswordRequest(_ref) {
|
|
@@ -187,6 +188,36 @@ function deleteAvailableFundsRequest(_ref) {
|
|
|
187
188
|
});
|
|
188
189
|
}
|
|
189
190
|
|
|
191
|
+
function countBuyersRequest(_ref) {
|
|
192
|
+
var _ref$baseURL = _ref.baseURL,
|
|
193
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
194
|
+
headers = _ref.headers,
|
|
195
|
+
params = _ref.params;
|
|
196
|
+
return axios.get('/api/buyer/count', {
|
|
197
|
+
baseURL: baseURL,
|
|
198
|
+
params: params,
|
|
199
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
200
|
+
return qs.stringify(params, {
|
|
201
|
+
arrayFormat: 'brackets'
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
headers: _extends({
|
|
205
|
+
Accept: 'application/json'
|
|
206
|
+
}, headers),
|
|
207
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
208
|
+
if (data.success) {
|
|
209
|
+
return data.data;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return data.data.error;
|
|
213
|
+
}])
|
|
214
|
+
}).then(function (res) {
|
|
215
|
+
return res;
|
|
216
|
+
})["catch"](function (err) {
|
|
217
|
+
throw err;
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
190
221
|
function findCallsRequest(_ref) {
|
|
191
222
|
var _ref$baseURL = _ref.baseURL,
|
|
192
223
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1165,7 +1196,7 @@ function findServiceRequestsRequest(_ref) {
|
|
|
1165
1196
|
});
|
|
1166
1197
|
}
|
|
1167
1198
|
|
|
1168
|
-
function
|
|
1199
|
+
function findServiceRequestSellerReportsRequest(_ref) {
|
|
1169
1200
|
var _ref$baseURL = _ref.baseURL,
|
|
1170
1201
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
1171
1202
|
urlParams = _ref.urlParams,
|
|
@@ -2636,6 +2667,15 @@ var Api = function Api(baseURL) {
|
|
|
2636
2667
|
headers: headers,
|
|
2637
2668
|
baseURL: _this.baseURL
|
|
2638
2669
|
});
|
|
2670
|
+
}; // buyer
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
this.countBuyers = function (params, headers) {
|
|
2674
|
+
return countBuyersRequest({
|
|
2675
|
+
params: params,
|
|
2676
|
+
headers: headers,
|
|
2677
|
+
baseURL: _this.baseURL
|
|
2678
|
+
});
|
|
2639
2679
|
}; // call
|
|
2640
2680
|
|
|
2641
2681
|
|
|
@@ -3029,8 +3069,8 @@ var Api = function Api(baseURL) {
|
|
|
3029
3069
|
});
|
|
3030
3070
|
};
|
|
3031
3071
|
|
|
3032
|
-
this.
|
|
3033
|
-
return
|
|
3072
|
+
this.findServiceRequestSellerReports = function (urlParams, params, headers) {
|
|
3073
|
+
return findServiceRequestSellerReportsRequest({
|
|
3034
3074
|
urlParams: urlParams,
|
|
3035
3075
|
params: params,
|
|
3036
3076
|
headers: headers,
|
|
@@ -3127,6 +3167,7 @@ var index = {
|
|
|
3127
3167
|
findAvailableFundsRequest: findAvailableFundsRequest,
|
|
3128
3168
|
updateAvailableFundsRequest: updateAvailableFundsRequest,
|
|
3129
3169
|
deleteAvailableFundsRequest: deleteAvailableFundsRequest,
|
|
3170
|
+
countBuyersRequest: countBuyersRequest,
|
|
3130
3171
|
findCallsRequest: findCallsRequest,
|
|
3131
3172
|
findFirstSuccessOutgoingCallsRequest: findFirstSuccessOutgoingCallsRequest,
|
|
3132
3173
|
markupCallRequest: markupCallRequest,
|
|
@@ -3165,7 +3206,7 @@ var index = {
|
|
|
3165
3206
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
3166
3207
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
3167
3208
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
3168
|
-
|
|
3209
|
+
findServiceRequestSellerReportsRequest: findServiceRequestSellerReportsRequest,
|
|
3169
3210
|
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
3170
3211
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
3171
3212
|
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
@@ -4635,29 +4676,36 @@ function findActualEventsRowRequest(_ref) {
|
|
|
4635
4676
|
},
|
|
4636
4677
|
headers: _extends({
|
|
4637
4678
|
Accept: 'application/json'
|
|
4638
|
-
}, headers)
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
ids
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4679
|
+
}, headers),
|
|
4680
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
4681
|
+
var _ref2, _data$data$error, _data$data;
|
|
4682
|
+
|
|
4683
|
+
if (data.success) {
|
|
4684
|
+
var ids = [];
|
|
4685
|
+
var byId = {};
|
|
4686
|
+
data.data.forEach(function (entity) {
|
|
4687
|
+
var _id = nanoid();
|
|
4688
|
+
|
|
4689
|
+
byId[_id] = _extends({}, entity, {
|
|
4690
|
+
_id: _id
|
|
4691
|
+
});
|
|
4692
|
+
ids.push(_id);
|
|
4693
|
+
});
|
|
4694
|
+
return {
|
|
4695
|
+
ids: ids,
|
|
4696
|
+
byId: byId,
|
|
4697
|
+
meta: {
|
|
4698
|
+
total: data.pageParams.length
|
|
4699
|
+
}
|
|
4700
|
+
};
|
|
4647
4701
|
}
|
|
4648
|
-
};
|
|
4649
|
-
res.data.data.forEach(function (entity) {
|
|
4650
|
-
data.data.byId[entity.apartmentId] = entity;
|
|
4651
|
-
data.data.ids.push(entity.apartmentId);
|
|
4652
|
-
});
|
|
4653
|
-
return data;
|
|
4654
|
-
})["catch"](function (err) {
|
|
4655
|
-
var _err$response$status, _err$response, _ref2, _err$response$data$me, _err$response2, _err$response3, _err$response3$data$d;
|
|
4656
4702
|
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4703
|
+
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';
|
|
4704
|
+
}])
|
|
4705
|
+
}).then(function (res) {
|
|
4706
|
+
return res;
|
|
4707
|
+
})["catch"](function (err) {
|
|
4708
|
+
throw err;
|
|
4661
4709
|
});
|
|
4662
4710
|
}
|
|
4663
4711
|
|
|
@@ -5088,23 +5136,269 @@ function findComplexIdsRequest(_ref) {
|
|
|
5088
5136
|
});
|
|
5089
5137
|
}
|
|
5090
5138
|
|
|
5139
|
+
function findRealtiesRequest$1(_ref) {
|
|
5140
|
+
var _ref$baseURL = _ref.baseURL,
|
|
5141
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
5142
|
+
params = _ref.params;
|
|
5143
|
+
return axios.get('/api/realty', {
|
|
5144
|
+
baseURL: baseURL,
|
|
5145
|
+
params: params,
|
|
5146
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
5147
|
+
return qs.stringify(params, {
|
|
5148
|
+
arrayFormat: 'brackets'
|
|
5149
|
+
});
|
|
5150
|
+
},
|
|
5151
|
+
headers: {
|
|
5152
|
+
Accept: 'application/json'
|
|
5153
|
+
},
|
|
5154
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
5155
|
+
if (!data.success) {
|
|
5156
|
+
return data.data.error || data.data.message;
|
|
5157
|
+
}
|
|
5158
|
+
|
|
5159
|
+
var ids = [];
|
|
5160
|
+
var byId = {};
|
|
5161
|
+
data.data.forEach(function (entity) {
|
|
5162
|
+
byId[entity.id] = entity;
|
|
5163
|
+
ids.push(entity.id);
|
|
5164
|
+
});
|
|
5165
|
+
return {
|
|
5166
|
+
ids: ids,
|
|
5167
|
+
byId: byId,
|
|
5168
|
+
meta: {
|
|
5169
|
+
total: data.pageParams.length
|
|
5170
|
+
}
|
|
5171
|
+
};
|
|
5172
|
+
}])
|
|
5173
|
+
}).then(function (res) {
|
|
5174
|
+
return res;
|
|
5175
|
+
})["catch"](function (err) {
|
|
5176
|
+
throw err;
|
|
5177
|
+
});
|
|
5178
|
+
}
|
|
5179
|
+
|
|
5180
|
+
var AddressBTIParamsParking$1;
|
|
5181
|
+
|
|
5182
|
+
(function (AddressBTIParamsParking) {
|
|
5183
|
+
AddressBTIParamsParking["Ground"] = "ground";
|
|
5184
|
+
AddressBTIParamsParking["Multilevel"] = "multilevel";
|
|
5185
|
+
AddressBTIParamsParking["Underground"] = "underground";
|
|
5186
|
+
})(AddressBTIParamsParking$1 || (AddressBTIParamsParking$1 = {}));
|
|
5187
|
+
|
|
5188
|
+
var AddressBTIParamsWallsMaterial$2;
|
|
5189
|
+
|
|
5190
|
+
(function (AddressBTIParamsWallsMaterial) {
|
|
5191
|
+
AddressBTIParamsWallsMaterial["Brick"] = "brick";
|
|
5192
|
+
AddressBTIParamsWallsMaterial["Monolith"] = "monolith";
|
|
5193
|
+
AddressBTIParamsWallsMaterial["Monobrick"] = "monobrick";
|
|
5194
|
+
AddressBTIParamsWallsMaterial["Timber"] = "timber";
|
|
5195
|
+
AddressBTIParamsWallsMaterial["Panel"] = "panel";
|
|
5196
|
+
AddressBTIParamsWallsMaterial["Block"] = "block";
|
|
5197
|
+
})(AddressBTIParamsWallsMaterial$2 || (AddressBTIParamsWallsMaterial$2 = {}));
|
|
5198
|
+
|
|
5199
|
+
var AddressBTIParamsHeatingType$2;
|
|
5200
|
+
|
|
5201
|
+
(function (AddressBTIParamsHeatingType) {
|
|
5202
|
+
AddressBTIParamsHeatingType["None"] = "none";
|
|
5203
|
+
AddressBTIParamsHeatingType["Central"] = "central";
|
|
5204
|
+
AddressBTIParamsHeatingType["Local"] = "local";
|
|
5205
|
+
AddressBTIParamsHeatingType["Gas"] = "gas";
|
|
5206
|
+
AddressBTIParamsHeatingType["Electricity"] = "electricity";
|
|
5207
|
+
AddressBTIParamsHeatingType["Liquid"] = "liquid";
|
|
5208
|
+
})(AddressBTIParamsHeatingType$2 || (AddressBTIParamsHeatingType$2 = {}));
|
|
5209
|
+
|
|
5210
|
+
var ImageType$1;
|
|
5211
|
+
|
|
5212
|
+
(function (ImageType) {
|
|
5213
|
+
ImageType["Complex"] = "complex";
|
|
5214
|
+
ImageType["Apartment"] = "apartment";
|
|
5215
|
+
ImageType["Layout"] = "layout";
|
|
5216
|
+
})(ImageType$1 || (ImageType$1 = {}));
|
|
5217
|
+
|
|
5218
|
+
var RealtyType$2;
|
|
5219
|
+
|
|
5220
|
+
(function (RealtyType) {
|
|
5221
|
+
RealtyType["Flat"] = "flat";
|
|
5222
|
+
RealtyType["House"] = "house";
|
|
5223
|
+
})(RealtyType$2 || (RealtyType$2 = {}));
|
|
5224
|
+
|
|
5225
|
+
var RealtyRenovationType$2;
|
|
5226
|
+
|
|
5227
|
+
(function (RealtyRenovationType) {
|
|
5228
|
+
RealtyRenovationType["None"] = "none";
|
|
5229
|
+
RealtyRenovationType["Author"] = "author";
|
|
5230
|
+
RealtyRenovationType["Cosmetic"] = "cosmetic";
|
|
5231
|
+
RealtyRenovationType["Euro"] = "euro";
|
|
5232
|
+
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5233
|
+
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5234
|
+
})(RealtyRenovationType$2 || (RealtyRenovationType$2 = {}));
|
|
5235
|
+
|
|
5236
|
+
var RealtyGas$2;
|
|
5237
|
+
|
|
5238
|
+
(function (RealtyGas) {
|
|
5239
|
+
RealtyGas["None"] = "none";
|
|
5240
|
+
RealtyGas["Connected"] = "connected";
|
|
5241
|
+
RealtyGas["Border"] = "border";
|
|
5242
|
+
RealtyGas["Possible"] = "possible";
|
|
5243
|
+
RealtyGas["Autonomous"] = "autonomous";
|
|
5244
|
+
})(RealtyGas$2 || (RealtyGas$2 = {}));
|
|
5245
|
+
|
|
5246
|
+
var RealtyHouseType$2;
|
|
5247
|
+
|
|
5248
|
+
(function (RealtyHouseType) {
|
|
5249
|
+
RealtyHouseType["Townhouse"] = "townhouse";
|
|
5250
|
+
RealtyHouseType["House"] = "house";
|
|
5251
|
+
RealtyHouseType["Cottage"] = "cottage";
|
|
5252
|
+
RealtyHouseType["Part"] = "part";
|
|
5253
|
+
RealtyHouseType["Duplex"] = "duplex";
|
|
5254
|
+
})(RealtyHouseType$2 || (RealtyHouseType$2 = {}));
|
|
5255
|
+
|
|
5256
|
+
var RealtyLandShape$2;
|
|
5257
|
+
|
|
5258
|
+
(function (RealtyLandShape) {
|
|
5259
|
+
RealtyLandShape["Regular"] = "regular";
|
|
5260
|
+
RealtyLandShape["Irregular"] = "irregular";
|
|
5261
|
+
})(RealtyLandShape$2 || (RealtyLandShape$2 = {}));
|
|
5262
|
+
|
|
5263
|
+
var RealtyLandUsageType$2;
|
|
5264
|
+
|
|
5265
|
+
(function (RealtyLandUsageType) {
|
|
5266
|
+
RealtyLandUsageType["IGS"] = "igs";
|
|
5267
|
+
RealtyLandUsageType["LPH"] = "lph";
|
|
5268
|
+
RealtyLandUsageType["DNP"] = "dnp";
|
|
5269
|
+
RealtyLandUsageType["SNT"] = "snt";
|
|
5270
|
+
RealtyLandUsageType["Farm"] = "farm";
|
|
5271
|
+
RealtyLandUsageType["Garden"] = "garden";
|
|
5272
|
+
RealtyLandUsageType["Investproject"] = "investproject";
|
|
5273
|
+
})(RealtyLandUsageType$2 || (RealtyLandUsageType$2 = {}));
|
|
5274
|
+
|
|
5275
|
+
var RealtyRelief$2;
|
|
5276
|
+
|
|
5277
|
+
(function (RealtyRelief) {
|
|
5278
|
+
RealtyRelief["Flat"] = "flat";
|
|
5279
|
+
RealtyRelief["Elevations"] = "elevations";
|
|
5280
|
+
RealtyRelief["Slope"] = "slope";
|
|
5281
|
+
RealtyRelief["Hills"] = "hills";
|
|
5282
|
+
})(RealtyRelief$2 || (RealtyRelief$2 = {}));
|
|
5283
|
+
|
|
5284
|
+
var RealtyElectricity$2;
|
|
5285
|
+
|
|
5286
|
+
(function (RealtyElectricity) {
|
|
5287
|
+
RealtyElectricity["None"] = "none";
|
|
5288
|
+
RealtyElectricity["Connected"] = "connected";
|
|
5289
|
+
RealtyElectricity["Possible"] = "possible";
|
|
5290
|
+
RealtyElectricity["Autonomous"] = "autonomous";
|
|
5291
|
+
})(RealtyElectricity$2 || (RealtyElectricity$2 = {}));
|
|
5292
|
+
|
|
5293
|
+
var RealtyFurniture$2;
|
|
5294
|
+
|
|
5295
|
+
(function (RealtyFurniture) {
|
|
5296
|
+
RealtyFurniture["None"] = "none";
|
|
5297
|
+
RealtyFurniture["Full"] = "full";
|
|
5298
|
+
RealtyFurniture["Part"] = "part";
|
|
5299
|
+
})(RealtyFurniture$2 || (RealtyFurniture$2 = {}));
|
|
5300
|
+
|
|
5301
|
+
var RealtySewerage$2;
|
|
5302
|
+
|
|
5303
|
+
(function (RealtySewerage) {
|
|
5304
|
+
RealtySewerage["None"] = "none";
|
|
5305
|
+
RealtySewerage["Cesspool"] = "cesspool";
|
|
5306
|
+
RealtySewerage["Septic"] = "septic";
|
|
5307
|
+
RealtySewerage["Bio"] = "bio";
|
|
5308
|
+
RealtySewerage["Central"] = "central";
|
|
5309
|
+
})(RealtySewerage$2 || (RealtySewerage$2 = {}));
|
|
5310
|
+
|
|
5311
|
+
var RealtyWindowView$2;
|
|
5312
|
+
|
|
5313
|
+
(function (RealtyWindowView) {
|
|
5314
|
+
RealtyWindowView["Street"] = "street";
|
|
5315
|
+
RealtyWindowView["Yard"] = "yard";
|
|
5316
|
+
RealtyWindowView["Both"] = "both";
|
|
5317
|
+
})(RealtyWindowView$2 || (RealtyWindowView$2 = {}));
|
|
5318
|
+
|
|
5319
|
+
var ShapeType$1;
|
|
5320
|
+
|
|
5321
|
+
(function (ShapeType) {
|
|
5322
|
+
ShapeType["AdministrativeDistrict"] = "administrative_district";
|
|
5323
|
+
ShapeType["Block"] = "block";
|
|
5324
|
+
ShapeType["Complex"] = "complex";
|
|
5325
|
+
ShapeType["District"] = "district";
|
|
5326
|
+
ShapeType["House"] = "house";
|
|
5327
|
+
ShapeType["Microdistrict"] = "microdistrict";
|
|
5328
|
+
})(ShapeType$1 || (ShapeType$1 = {}));
|
|
5329
|
+
|
|
5330
|
+
var _Parking$1, _WallsMaterial$3, _HeatingType$2;
|
|
5331
|
+
var AddressBTIParamsDictionary$2 = {
|
|
5332
|
+
Parking: (_Parking$1 = {}, _Parking$1[AddressBTIParamsParking$1.Ground] = 'Наземная', _Parking$1[AddressBTIParamsParking$1.Multilevel] = 'Многоуровневая', _Parking$1[AddressBTIParamsParking$1.Underground] = 'Подземная', _Parking$1),
|
|
5333
|
+
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),
|
|
5334
|
+
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)
|
|
5335
|
+
};
|
|
5336
|
+
|
|
5337
|
+
var _Type$9, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
5338
|
+
var RealtyDictionary$2 = {
|
|
5339
|
+
Type: (_Type$9 = {}, _Type$9[RealtyType$2.Flat] = 'Квартира', _Type$9[RealtyType$2.House] = 'Дом', _Type$9),
|
|
5340
|
+
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),
|
|
5341
|
+
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),
|
|
5342
|
+
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),
|
|
5343
|
+
LandShape: (_LandShape$2 = {}, _LandShape$2[RealtyLandShape$2.Regular] = 'Правильная', _LandShape$2[RealtyLandShape$2.Irregular] = 'Неправильная', _LandShape$2),
|
|
5344
|
+
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),
|
|
5345
|
+
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),
|
|
5346
|
+
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),
|
|
5347
|
+
Furniture: (_Furniture$2 = {}, _Furniture$2[RealtyFurniture$2.None] = 'Отсутствует', _Furniture$2[RealtyFurniture$2.Full] = 'Полностью мебелирован', _Furniture$2[RealtyFurniture$2.Part] = 'Частично мебелирован', _Furniture$2),
|
|
5348
|
+
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),
|
|
5349
|
+
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
5350
|
+
};
|
|
5351
|
+
|
|
5352
|
+
var _Type$a;
|
|
5353
|
+
var ShapeDictionary$1 = {
|
|
5354
|
+
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)
|
|
5355
|
+
};
|
|
5356
|
+
|
|
5091
5357
|
var Api$3 = function Api(baseURL) {
|
|
5092
5358
|
var _this = this;
|
|
5093
5359
|
|
|
5094
|
-
this.baseURL = baseURL;
|
|
5360
|
+
this.baseURL = baseURL; // complex
|
|
5095
5361
|
|
|
5096
5362
|
this.findComplexIds = function (params) {
|
|
5097
5363
|
return findComplexIdsRequest({
|
|
5098
5364
|
params: params,
|
|
5099
5365
|
baseURL: _this.baseURL
|
|
5100
5366
|
});
|
|
5367
|
+
}; // realty
|
|
5368
|
+
|
|
5369
|
+
|
|
5370
|
+
this.findRealties = function (params) {
|
|
5371
|
+
return findRealtiesRequest$1({
|
|
5372
|
+
params: params,
|
|
5373
|
+
baseURL: _this.baseURL
|
|
5374
|
+
});
|
|
5101
5375
|
};
|
|
5102
5376
|
};
|
|
5103
5377
|
|
|
5104
5378
|
var index$3 = {
|
|
5105
5379
|
__proto__: null,
|
|
5106
5380
|
Api: Api$3,
|
|
5107
|
-
findComplexIdsRequest: findComplexIdsRequest
|
|
5381
|
+
findComplexIdsRequest: findComplexIdsRequest,
|
|
5382
|
+
findRealtiesRequest: findRealtiesRequest$1,
|
|
5383
|
+
AddressBTIParamsDictionary: AddressBTIParamsDictionary$2,
|
|
5384
|
+
RealtyDictionary: RealtyDictionary$2,
|
|
5385
|
+
ShapeDictionary: ShapeDictionary$1,
|
|
5386
|
+
get AddressBTIParamsParking () { return AddressBTIParamsParking$1; },
|
|
5387
|
+
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial$2; },
|
|
5388
|
+
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType$2; },
|
|
5389
|
+
get ImageType () { return ImageType$1; },
|
|
5390
|
+
get RealtyType () { return RealtyType$2; },
|
|
5391
|
+
get RealtyRenovationType () { return RealtyRenovationType$2; },
|
|
5392
|
+
get RealtyGas () { return RealtyGas$2; },
|
|
5393
|
+
get RealtyHouseType () { return RealtyHouseType$2; },
|
|
5394
|
+
get RealtyLandShape () { return RealtyLandShape$2; },
|
|
5395
|
+
get RealtyLandUsageType () { return RealtyLandUsageType$2; },
|
|
5396
|
+
get RealtyRelief () { return RealtyRelief$2; },
|
|
5397
|
+
get RealtyElectricity () { return RealtyElectricity$2; },
|
|
5398
|
+
get RealtyFurniture () { return RealtyFurniture$2; },
|
|
5399
|
+
get RealtySewerage () { return RealtySewerage$2; },
|
|
5400
|
+
get RealtyWindowView () { return RealtyWindowView$2; },
|
|
5401
|
+
get ShapeType () { return ShapeType$1; }
|
|
5108
5402
|
};
|
|
5109
5403
|
|
|
5110
5404
|
function countApartmentsRequest(_ref) {
|
|
@@ -5341,7 +5635,7 @@ var ApartmentMapPointType;
|
|
|
5341
5635
|
ApartmentMapPointType["Underground"] = "underground";
|
|
5342
5636
|
})(ApartmentMapPointType || (ApartmentMapPointType = {}));
|
|
5343
5637
|
|
|
5344
|
-
var RealtyRenovationType$
|
|
5638
|
+
var RealtyRenovationType$3;
|
|
5345
5639
|
|
|
5346
5640
|
(function (RealtyRenovationType) {
|
|
5347
5641
|
RealtyRenovationType["None"] = "none";
|
|
@@ -5350,7 +5644,7 @@ var RealtyRenovationType$2;
|
|
|
5350
5644
|
RealtyRenovationType["Euro"] = "euro";
|
|
5351
5645
|
RealtyRenovationType["FineFinishing"] = "fine_finishing";
|
|
5352
5646
|
RealtyRenovationType["RoughFinishing"] = "rough_finishing";
|
|
5353
|
-
})(RealtyRenovationType$
|
|
5647
|
+
})(RealtyRenovationType$3 || (RealtyRenovationType$3 = {}));
|
|
5354
5648
|
|
|
5355
5649
|
var _MapPointDistanceType, _MapPointType;
|
|
5356
5650
|
var ApartmentDictionary = {
|
|
@@ -5418,7 +5712,7 @@ var index$4 = {
|
|
|
5418
5712
|
ApartmentDictionary: ApartmentDictionary,
|
|
5419
5713
|
get ApartmentMapPointDistanceType () { return ApartmentMapPointDistanceType; },
|
|
5420
5714
|
get ApartmentMapPointType () { return ApartmentMapPointType; },
|
|
5421
|
-
get RealtyRenovationType () { return RealtyRenovationType$
|
|
5715
|
+
get RealtyRenovationType () { return RealtyRenovationType$3; }
|
|
5422
5716
|
};
|
|
5423
5717
|
|
|
5424
5718
|
export { index as Clients, index$1 as ClientsV2, index$2 as Publisher, index$3 as Registry, index$4 as Search };
|