@hapl/api-queries 0.1.98--canary.33.eb6207e.0 → 0.1.99
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 +24 -0
- package/dist/api-queries.cjs.development.js +53 -1
- 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 +53 -1
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +1 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestShortInfo/index.d.ts +58 -0
- package/dist/clients/v1/dictionaries/ServiceRequest.d.ts +2 -0
- package/dist/clients/v1/index.d.ts +1 -0
- package/dist/clients/v1/types/ServiceRequest.d.ts +3 -1
- package/dist/clients/v1/types/ServiceRequestShortInfo.d.ts +33 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +1 -0
- package/src/clients/v1/api/serviceRequest/findServiceRequestShortInfo/index.ts +79 -0
- package/src/clients/v1/dictionaries/ServiceRequest.ts +2 -0
- package/src/clients/v1/index.ts +7 -0
- package/src/clients/v1/types/ServiceRequest.ts +2 -0
- package/src/clients/v1/types/ServiceRequestShortInfo.ts +28 -0
- package/src/clients/v1/types/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v0.1.99 (Fri Dec 10 2021)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- FE-1224: добавлена ручка поиска списка с короткой информации ЗОУ [#34](https://github.com/homeappcorporate/api-queries/pull/34) ([@abd2561024](https://github.com/abd2561024))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.1.98 (Tue Dec 07 2021)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Добавлена ручка на получение списка задач [#33](https://github.com/homeappcorporate/api-queries/pull/33) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v0.1.97 (Thu Dec 02 2021)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -841,6 +841,47 @@ function findServiceRequestsRequest(_ref) {
|
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
843
|
|
|
844
|
+
function findServiceRequestShortInfoRequest(_ref) {
|
|
845
|
+
var _ref$baseURL = _ref.baseURL,
|
|
846
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
847
|
+
headers = _ref.headers,
|
|
848
|
+
params = _ref.params;
|
|
849
|
+
return axios.get("/api/service-request/short", {
|
|
850
|
+
baseURL: baseURL,
|
|
851
|
+
params: params,
|
|
852
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
853
|
+
return qs.stringify(params, {
|
|
854
|
+
arrayFormat: 'brackets'
|
|
855
|
+
});
|
|
856
|
+
},
|
|
857
|
+
headers: _extends({
|
|
858
|
+
Accept: 'application/json'
|
|
859
|
+
}, headers),
|
|
860
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
861
|
+
var _data$data, _data$data2;
|
|
862
|
+
|
|
863
|
+
if (!data.success) return (_data$data = data.data) == null ? void 0 : _data$data.error;
|
|
864
|
+
var ids = [];
|
|
865
|
+
var byId = {};
|
|
866
|
+
((_data$data2 = data.data) != null ? _data$data2 : []).forEach(function (entity) {
|
|
867
|
+
byId[entity.id] = entity;
|
|
868
|
+
ids.push(entity.id);
|
|
869
|
+
});
|
|
870
|
+
return {
|
|
871
|
+
ids: ids,
|
|
872
|
+
byId: byId,
|
|
873
|
+
meta: {
|
|
874
|
+
total: data.pageParams.length
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
}])
|
|
878
|
+
}).then(function (res) {
|
|
879
|
+
return res;
|
|
880
|
+
})["catch"](function (err) {
|
|
881
|
+
throw err;
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
|
|
844
885
|
function findServiceRequestShortInfoByIdRequest(_ref) {
|
|
845
886
|
var _ref$baseURL = _ref.baseURL,
|
|
846
887
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1661,6 +1702,8 @@ var ServiceRequestStatus;
|
|
|
1661
1702
|
ServiceRequestStatus["DealSigned"] = "deal_signed";
|
|
1662
1703
|
ServiceRequestStatus["Registered"] = "registered";
|
|
1663
1704
|
ServiceRequestStatus["DealDone"] = "deal_done";
|
|
1705
|
+
ServiceRequestStatus["NoPrepayment"] = "no_prepayment";
|
|
1706
|
+
ServiceRequestStatus["PrepaymentPlanned"] = "prepayment_planned";
|
|
1664
1707
|
})(ServiceRequestStatus || (ServiceRequestStatus = {}));
|
|
1665
1708
|
|
|
1666
1709
|
var ServiceRequestType;
|
|
@@ -1963,7 +2006,7 @@ var _Category$2, _ModerationStatus, _Status$1, _Type$5, _DepublishReason, _Sourc
|
|
|
1963
2006
|
var ServiceRequestDictionary = {
|
|
1964
2007
|
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),
|
|
1965
2008
|
ModerationStatus: (_ModerationStatus = {}, _ModerationStatus[ServiceRequestModerationStatus.None] = 'Нет', _ModerationStatus[ServiceRequestModerationStatus.Sent] = 'Отправлен', _ModerationStatus[ServiceRequestModerationStatus.Booked] = 'Взят в работу', _ModerationStatus[ServiceRequestModerationStatus.Done] = 'Готов', _ModerationStatus),
|
|
1966
|
-
Status: (_Status$1 = {}, _Status$1[ServiceRequestStatus.LeadExpert] = 'Лид заведённый экспертом', _Status$1[ServiceRequestStatus.LeadAdv] = 'Лид пришедший с рекламы', _Status$1[ServiceRequestStatus.Booked] = 'Неподтверждённая бронь', _Status$1[ServiceRequestStatus.Approved] = 'Бронь одобренная РОП', _Status$1[ServiceRequestStatus.Declined] = 'Бронь отклонённая РОП', _Status$1[ServiceRequestStatus.Terminated] = 'Контракт расторгнут', _Status$1[ServiceRequestStatus.BookingCanceled] = 'ЗОУ закрыто', _Status$1[ServiceRequestStatus.Prepaid] = 'Получен аванс по сделке', _Status$1[ServiceRequestStatus.DealSigned] = 'Сделка подписана', _Status$1[ServiceRequestStatus.Registered] = 'Документы зарегистрированы', _Status$1[ServiceRequestStatus.DealDone] = 'Сделка закрыта', _Status$1),
|
|
2009
|
+
Status: (_Status$1 = {}, _Status$1[ServiceRequestStatus.LeadExpert] = 'Лид заведённый экспертом', _Status$1[ServiceRequestStatus.LeadAdv] = 'Лид пришедший с рекламы', _Status$1[ServiceRequestStatus.Booked] = 'Неподтверждённая бронь', _Status$1[ServiceRequestStatus.Approved] = 'Бронь одобренная РОП', _Status$1[ServiceRequestStatus.Declined] = 'Бронь отклонённая РОП', _Status$1[ServiceRequestStatus.Terminated] = 'Контракт расторгнут', _Status$1[ServiceRequestStatus.BookingCanceled] = 'ЗОУ закрыто', _Status$1[ServiceRequestStatus.Prepaid] = 'Получен аванс по сделке', _Status$1[ServiceRequestStatus.DealSigned] = 'Сделка подписана', _Status$1[ServiceRequestStatus.Registered] = 'Документы зарегистрированы', _Status$1[ServiceRequestStatus.DealDone] = 'Сделка закрыта', _Status$1[ServiceRequestStatus.NoPrepayment] = 'Запланирована сделка без аванса', _Status$1[ServiceRequestStatus.PrepaymentPlanned] = 'Запланирован аванс', _Status$1),
|
|
1967
2010
|
Type: (_Type$5 = {}, _Type$5[ServiceRequestType.Buy] = 'Покупка', _Type$5[ServiceRequestType.Sell] = 'Продажа', _Type$5),
|
|
1968
2011
|
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),
|
|
1969
2012
|
Source: (_Source = {}, _Source[ServiceRequestSource.Apk] = 'АПК', _Source[ServiceRequestSource.Recommendations] = 'Рекомендации', _Source[ServiceRequestSource.ColdCCMoscow] = 'ХО КЦ Москва', _Source[ServiceRequestSource.ColdCCZelenograd] = 'ХО КЦ Зеленоград', _Source[ServiceRequestSource.ColdCCZhukovsky] = 'ХО КЦ Жуковский', _Source[ServiceRequestSource.Marketing] = 'Маркетинг', _Source[ServiceRequestSource.Test] = 'Тест', _Source[ServiceRequestSource.Other] = 'Другое', _Source)
|
|
@@ -2255,6 +2298,14 @@ var Api = function Api(baseURL) {
|
|
|
2255
2298
|
});
|
|
2256
2299
|
};
|
|
2257
2300
|
|
|
2301
|
+
this.findServiceRequestShortInfo = function (params, headers) {
|
|
2302
|
+
return findServiceRequestShortInfoRequest({
|
|
2303
|
+
params: params,
|
|
2304
|
+
headers: headers,
|
|
2305
|
+
baseURL: _this.baseURL
|
|
2306
|
+
});
|
|
2307
|
+
};
|
|
2308
|
+
|
|
2258
2309
|
this.findServiceRequestShortInfoById = function (urlParams, headers) {
|
|
2259
2310
|
return findServiceRequestShortInfoByIdRequest({
|
|
2260
2311
|
urlParams: urlParams,
|
|
@@ -2392,6 +2443,7 @@ var index = {
|
|
|
2392
2443
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
2393
2444
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
2394
2445
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
2446
|
+
findServiceRequestShortInfoRequest: findServiceRequestShortInfoRequest,
|
|
2395
2447
|
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
2396
2448
|
findServiceRequestCategorizedFilesRequest: findServiceRequestCategorizedFilesRequest,
|
|
2397
2449
|
sendServiceRequestToModerationRequest: sendServiceRequestToModerationRequest,
|