@hapl/api-queries 0.1.152 → 0.1.153--canary.80.033beeb.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 +0 -12
- package/dist/api-queries.cjs.development.js +28 -60
- 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 +28 -60
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/crossSale/updateCrossSale/index.d.ts +3 -3
- package/dist/clients/v1/api/index.d.ts +1 -2
- package/dist/clients/v1/api/serviceRequest/findServiceRequests/index.d.ts +0 -3
- package/dist/clients/v1/dictionaries/ServiceRequest.d.ts +9 -9
- package/dist/clients/v1/index.d.ts +1 -2
- package/dist/clients/v1/types/CrossSale.d.ts +2 -2
- package/dist/clients/v2/api/realty/findRealties/index.d.ts +3 -3
- package/dist/clients/v2/api/realty/findRealtyById/index.d.ts +3 -3
- package/dist/clients/v2/types/ExternalLink.d.ts +7 -0
- package/dist/clients/v2/types/Realty.d.ts +16 -4
- package/dist/clients/v2/types/index.d.ts +1 -0
- package/dist/publisher/v1/api/findScoring/index.d.ts +13 -12
- package/dist/publisher/v1/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/clients/v1/api/crossSale/updateCrossSale/index.ts +3 -3
- package/src/clients/v1/api/index.ts +1 -2
- package/src/clients/v1/api/serviceRequest/findServiceRequests/index.ts +0 -3
- package/src/clients/v1/dictionaries/ServiceRequest.ts +9 -9
- package/src/clients/v1/index.ts +4 -11
- package/src/clients/v1/types/CrossSale.ts +2 -2
- package/src/clients/v2/api/realty/findRealties/index.ts +11 -2
- package/src/clients/v2/api/realty/findRealtyById/index.ts +11 -2
- package/src/clients/v2/types/ExternalLink.ts +7 -0
- package/src/clients/v2/types/Realty.ts +3 -1
- package/src/clients/v2/types/index.ts +1 -0
- package/src/publisher/v1/api/findScoring/index.ts +27 -32
- package/src/publisher/v1/index.ts +1 -1
- package/dist/clients/v1/api/serviceRequest/findServiceRequestStatisticsById/index.d.ts +0 -32
- package/src/clients/v1/api/serviceRequest/findServiceRequestStatisticsById/index.ts +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
# v0.1.152 (Fri Mar 25 2022)
|
|
2
|
-
|
|
3
|
-
#### 🐛 Bug Fix
|
|
4
|
-
|
|
5
|
-
- Добавлены ручки для управления портфеля [#72](https://github.com/homeappcorporate/api-queries/pull/72) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
6
|
-
|
|
7
|
-
#### Authors: 1
|
|
8
|
-
|
|
9
|
-
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
1
|
# v0.1.151 (Thu Mar 24 2022)
|
|
14
2
|
|
|
15
3
|
#### 🐛 Bug Fix
|
|
@@ -2182,26 +2182,6 @@ function findServiceRequestShortInfoRequest(_ref) {
|
|
|
2182
2182
|
});
|
|
2183
2183
|
}
|
|
2184
2184
|
|
|
2185
|
-
function findServiceRequestShortInfoByDealIdRequest(_ref) {
|
|
2186
|
-
var _ref$baseURL = _ref.baseURL,
|
|
2187
|
-
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
2188
|
-
urlParams = _ref.urlParams,
|
|
2189
|
-
headers = _ref.headers;
|
|
2190
|
-
return axios.get("/api/service-request-by-deal-id/short/" + urlParams.id, {
|
|
2191
|
-
baseURL: baseURL,
|
|
2192
|
-
headers: _extends({
|
|
2193
|
-
Accept: 'application/json'
|
|
2194
|
-
}, headers),
|
|
2195
|
-
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
2196
|
-
return data.success ? data.data : data.data.error;
|
|
2197
|
-
}])
|
|
2198
|
-
}).then(function (res) {
|
|
2199
|
-
return res;
|
|
2200
|
-
})["catch"](function (err) {
|
|
2201
|
-
throw err;
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
2185
|
function findServiceRequestShortInfoByIdRequest(_ref) {
|
|
2206
2186
|
var _ref$baseURL = _ref.baseURL,
|
|
2207
2187
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -2222,12 +2202,12 @@ function findServiceRequestShortInfoByIdRequest(_ref) {
|
|
|
2222
2202
|
});
|
|
2223
2203
|
}
|
|
2224
2204
|
|
|
2225
|
-
function
|
|
2205
|
+
function findServiceRequestShortInfoByDealIdRequest(_ref) {
|
|
2226
2206
|
var _ref$baseURL = _ref.baseURL,
|
|
2227
2207
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
2228
2208
|
urlParams = _ref.urlParams,
|
|
2229
2209
|
headers = _ref.headers;
|
|
2230
|
-
return axios.get("/api/service-request/
|
|
2210
|
+
return axios.get("/api/service-request-by-deal-id/short/" + urlParams.id, {
|
|
2231
2211
|
baseURL: baseURL,
|
|
2232
2212
|
headers: _extends({
|
|
2233
2213
|
Accept: 'application/json'
|
|
@@ -3746,7 +3726,7 @@ var _Category$2, _ModerationStatus, _Status$4, _Type$8, _InvestType, _DepublishR
|
|
|
3746
3726
|
var ServiceRequestDictionary = {
|
|
3747
3727
|
Category: (_Category$2 = {}, _Category$2[ServiceRequestCategory.Depublished] = 'Неликвидный', _Category$2[ServiceRequestCategory.Discounted] = 'Цена снижена', _Category$2[ServiceRequestCategory.Cold] = 'Холодный', _Category$2[ServiceRequestCategory.Warm] = 'Тёплый', _Category$2[ServiceRequestCategory.New] = 'Новый', _Category$2[ServiceRequestCategory.Hot] = 'Горячий', _Category$2),
|
|
3748
3728
|
ModerationStatus: (_ModerationStatus = {}, _ModerationStatus[ServiceRequestModerationStatus.None] = 'Нет', _ModerationStatus[ServiceRequestModerationStatus.Sent] = 'Отправлен', _ModerationStatus[ServiceRequestModerationStatus.Booked] = 'Взят в работу', _ModerationStatus[ServiceRequestModerationStatus.Done] = 'Готов', _ModerationStatus),
|
|
3749
|
-
Status: (_Status$4 = {}, _Status$4[ServiceRequestStatus.
|
|
3729
|
+
Status: (_Status$4 = {}, _Status$4[ServiceRequestStatus.Approved] = 'Бронь одобренная РОП', _Status$4[ServiceRequestStatus.Booked] = 'Неподтверждённая бронь', _Status$4[ServiceRequestStatus.BookingCanceled] = 'ЗОУ закрыто', _Status$4[ServiceRequestStatus.DealDone] = 'Сделка закрыта', _Status$4[ServiceRequestStatus.DealSigned] = 'Сделка подписана', _Status$4[ServiceRequestStatus.Declined] = 'Бронь отклонённая РОП', _Status$4[ServiceRequestStatus.LeadAdv] = 'Лид пришедший с рекламы', _Status$4[ServiceRequestStatus.LeadExpert] = 'Лид заведённый экспертом', _Status$4[ServiceRequestStatus.NoPrepayment] = 'Запланирована сделка без аванса', _Status$4[ServiceRequestStatus.Prepaid] = 'Получен аванс по сделке', _Status$4[ServiceRequestStatus.PrepaymentPlanned] = 'Запланирован аванс', _Status$4[ServiceRequestStatus.Registered] = 'Документы зарегистрированы', _Status$4[ServiceRequestStatus.Signed] = 'Контракт подписан', _Status$4[ServiceRequestStatus.Terminated] = 'Контракт расторгнут', _Status$4),
|
|
3750
3730
|
Type: (_Type$8 = {}, _Type$8[ServiceRequestType.Buy] = 'Покупка', _Type$8[ServiceRequestType.Sell] = 'Продажа', _Type$8),
|
|
3751
3731
|
InvestType: (_InvestType = {}, _InvestType[ServiceRequestInvestType.Buyout] = 'Инвестпроект 1 этапа', _InvestType[ServiceRequestInvestType.Sell] = 'Инвестпроект 2 этапа', _InvestType),
|
|
3752
3732
|
DepublishReason: (_DepublishReason = {}, _DepublishReason[ServiceRequestDepublishReason.TemporaryDepublish] = 'Временное снятие объекта', _DepublishReason[ServiceRequestDepublishReason.DepublishOnAdvance] = 'Снятие объекта на время аванса', _DepublishReason[ServiceRequestDepublishReason.ClientRequest] = 'Просьба клиента убрать объект из рекламы', _DepublishReason[ServiceRequestDepublishReason.DeveloperRequest] = 'Запрет застройщика на размещение рекламы', _DepublishReason[ServiceRequestDepublishReason.BadObject] = 'Неликвидный объект, требуется работа с клиентом', _DepublishReason[ServiceRequestDepublishReason.BadObjectElite] = 'Неликвидный элитный объект', _DepublishReason[ServiceRequestDepublishReason.HardToSellObject] = '“Сложный“ в реализации объект', _DepublishReason[ServiceRequestDepublishReason.CrossSell] = 'Кросспродажи', _DepublishReason),
|
|
@@ -4494,14 +4474,6 @@ var Api = function Api(baseURL) {
|
|
|
4494
4474
|
});
|
|
4495
4475
|
};
|
|
4496
4476
|
|
|
4497
|
-
this.findServiceRequestShortInfoByDealId = function (urlParams, headers) {
|
|
4498
|
-
return findServiceRequestShortInfoByDealIdRequest({
|
|
4499
|
-
urlParams: urlParams,
|
|
4500
|
-
headers: headers,
|
|
4501
|
-
baseURL: _this.baseURL
|
|
4502
|
-
});
|
|
4503
|
-
};
|
|
4504
|
-
|
|
4505
4477
|
this.findServiceRequestShortInfoById = function (urlParams, headers) {
|
|
4506
4478
|
return findServiceRequestShortInfoByIdRequest({
|
|
4507
4479
|
urlParams: urlParams,
|
|
@@ -4510,8 +4482,8 @@ var Api = function Api(baseURL) {
|
|
|
4510
4482
|
});
|
|
4511
4483
|
};
|
|
4512
4484
|
|
|
4513
|
-
this.
|
|
4514
|
-
return
|
|
4485
|
+
this.findServiceRequestShortInfoByDealId = function (urlParams, headers) {
|
|
4486
|
+
return findServiceRequestShortInfoByDealIdRequest({
|
|
4515
4487
|
urlParams: urlParams,
|
|
4516
4488
|
headers: headers,
|
|
4517
4489
|
baseURL: _this.baseURL
|
|
@@ -4792,9 +4764,8 @@ var index = {
|
|
|
4792
4764
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
4793
4765
|
findServiceRequestSellerReportsRequest: findServiceRequestSellerReportsRequest,
|
|
4794
4766
|
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
4795
|
-
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
4796
4767
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
4797
|
-
|
|
4768
|
+
findServiceRequestShortInfoByDealIdRequest: findServiceRequestShortInfoByDealIdRequest,
|
|
4798
4769
|
findServiceRequestCategorizedFilesRequest: findServiceRequestCategorizedFilesRequest,
|
|
4799
4770
|
findServiceRequestCategorizedFileCreatedDateRequest: findServiceRequestCategorizedFileCreatedDateRequest,
|
|
4800
4771
|
returnDeferredServiceRequestRequest: returnDeferredServiceRequestRequest,
|
|
@@ -6410,32 +6381,29 @@ function findScoringRequest(_ref) {
|
|
|
6410
6381
|
},
|
|
6411
6382
|
headers: _extends({
|
|
6412
6383
|
Accept: 'application/json'
|
|
6413
|
-
}, headers)
|
|
6414
|
-
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
6415
|
-
var _ref2, _data$data$error, _data$data;
|
|
6416
|
-
|
|
6417
|
-
if (data.success) {
|
|
6418
|
-
var ids = [];
|
|
6419
|
-
var byId = {};
|
|
6420
|
-
data.data.forEach(function (entity) {
|
|
6421
|
-
byId[entity.id] = entity;
|
|
6422
|
-
ids.push(entity.id);
|
|
6423
|
-
});
|
|
6424
|
-
return {
|
|
6425
|
-
ids: ids,
|
|
6426
|
-
byId: byId,
|
|
6427
|
-
meta: {
|
|
6428
|
-
total: data.pageParams.length
|
|
6429
|
-
}
|
|
6430
|
-
};
|
|
6431
|
-
}
|
|
6432
|
-
|
|
6433
|
-
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';
|
|
6434
|
-
}])
|
|
6384
|
+
}, headers)
|
|
6435
6385
|
}).then(function (res) {
|
|
6436
|
-
|
|
6386
|
+
var data = {
|
|
6387
|
+
data: {
|
|
6388
|
+
byId: {},
|
|
6389
|
+
ids: []
|
|
6390
|
+
},
|
|
6391
|
+
meta: {
|
|
6392
|
+
total: res.data.pageParams.length
|
|
6393
|
+
}
|
|
6394
|
+
};
|
|
6395
|
+
res.data.data.forEach(function (entity) {
|
|
6396
|
+
data.data.byId[entity.id] = entity;
|
|
6397
|
+
data.data.ids.push(entity.id);
|
|
6398
|
+
});
|
|
6399
|
+
return data;
|
|
6437
6400
|
})["catch"](function (err) {
|
|
6438
|
-
|
|
6401
|
+
var _err$response$status, _err$response, _ref2, _err$response$data$me, _err$response2, _err$response3, _err$response3$data$d;
|
|
6402
|
+
|
|
6403
|
+
var error = new Error(err.message);
|
|
6404
|
+
error.status = (_err$response$status = (_err$response = err.response) == null ? void 0 : _err$response.status) != null ? _err$response$status : 520;
|
|
6405
|
+
error.data = (_ref2 = (_err$response$data$me = (_err$response2 = err.response) == null ? void 0 : _err$response2.data.message) != null ? _err$response$data$me : (_err$response3 = err.response) == null ? void 0 : (_err$response3$data$d = _err$response3.data.data) == null ? void 0 : _err$response3$data$d.error) != null ? _ref2 : 'Unknown Error';
|
|
6406
|
+
throw error;
|
|
6439
6407
|
});
|
|
6440
6408
|
}
|
|
6441
6409
|
|
|
@@ -6730,7 +6698,7 @@ var Api$2 = function Api(baseURL) {
|
|
|
6730
6698
|
});
|
|
6731
6699
|
};
|
|
6732
6700
|
|
|
6733
|
-
this.
|
|
6701
|
+
this.getScoring = function (params, headers) {
|
|
6734
6702
|
return findScoringRequest({
|
|
6735
6703
|
params: params,
|
|
6736
6704
|
headers: headers,
|