@hapl/api-queries 0.1.111 → 0.1.112
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 +12 -0
- package/dist/api-queries.cjs.development.js +116 -4
- 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 +116 -4
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +2 -0
- package/dist/clients/v1/api/serviceRequest/createServiceRequestActivity/index.d.ts +33 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestActivities/index.d.ts +36 -0
- package/dist/clients/v1/dictionaries/ServiceRequestActivity.d.ts +24 -0
- package/dist/clients/v1/dictionaries/index.d.ts +1 -0
- package/dist/clients/v1/index.d.ts +2 -0
- package/dist/clients/v1/types/ServiceRequestActivity.d.ts +38 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +2 -0
- package/src/clients/v1/api/serviceRequest/createServiceRequestActivity/index.ts +43 -0
- package/src/clients/v1/api/serviceRequest/findServiceRequestActivities/index.ts +62 -0
- package/src/clients/v1/dictionaries/ServiceRequestActivity.ts +25 -0
- package/src/clients/v1/dictionaries/index.ts +1 -0
- package/src/clients/v1/index.ts +14 -0
- package/src/clients/v1/types/ServiceRequestActivity.ts +38 -0
- package/src/clients/v1/types/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.1.112 (Fri Jan 28 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- FE-1205: добавлены запросы для активити зоу [#47](https://github.com/homeappcorporate/api-queries/pull/47) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.1.111 (Fri Jan 28 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -818,6 +818,27 @@ function createServiceRequestRequest(_ref) {
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
+
function createServiceRequestActivityRequest(_ref) {
|
|
822
|
+
var _ref$baseURL = _ref.baseURL,
|
|
823
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
824
|
+
body = _ref.body,
|
|
825
|
+
headers = _ref.headers;
|
|
826
|
+
return axios.post('/api/service-request/activity', body, {
|
|
827
|
+
baseURL: baseURL,
|
|
828
|
+
headers: _extends({
|
|
829
|
+
Accept: 'application/json',
|
|
830
|
+
'Content-Type': 'application/json'
|
|
831
|
+
}, headers),
|
|
832
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
833
|
+
return data.success ? data.data : data.data.error;
|
|
834
|
+
}])
|
|
835
|
+
}).then(function (res) {
|
|
836
|
+
return res;
|
|
837
|
+
})["catch"](function (err) {
|
|
838
|
+
throw err;
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
|
|
821
842
|
function createServiceRequestCategorizedFileRequest(_ref) {
|
|
822
843
|
var _ref$baseURL = _ref.baseURL,
|
|
823
844
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -931,6 +952,48 @@ function extendServiceRequestByRealtyRequest(_ref) {
|
|
|
931
952
|
});
|
|
932
953
|
}
|
|
933
954
|
|
|
955
|
+
function findServiceRequestActivitiesRequest(_ref) {
|
|
956
|
+
var _ref$baseURL = _ref.baseURL,
|
|
957
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
958
|
+
headers = _ref.headers,
|
|
959
|
+
params = _ref.params;
|
|
960
|
+
return axios.get('/api/service-request/activity', {
|
|
961
|
+
baseURL: baseURL,
|
|
962
|
+
params: params,
|
|
963
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
964
|
+
return qs.stringify(params, {
|
|
965
|
+
arrayFormat: 'brackets'
|
|
966
|
+
});
|
|
967
|
+
},
|
|
968
|
+
headers: _extends({
|
|
969
|
+
Accept: 'application/json'
|
|
970
|
+
}, headers),
|
|
971
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
972
|
+
if (data.success) {
|
|
973
|
+
var ids = [];
|
|
974
|
+
var byId = {};
|
|
975
|
+
data.data.forEach(function (entity) {
|
|
976
|
+
byId[entity.id] = entity;
|
|
977
|
+
ids.push(entity.id);
|
|
978
|
+
});
|
|
979
|
+
return {
|
|
980
|
+
ids: ids,
|
|
981
|
+
byId: byId,
|
|
982
|
+
meta: {
|
|
983
|
+
total: data.pageParams.length
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
return data.data.error || data.data.message;
|
|
989
|
+
}])
|
|
990
|
+
}).then(function (res) {
|
|
991
|
+
return res;
|
|
992
|
+
})["catch"](function (err) {
|
|
993
|
+
throw err;
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
|
|
934
997
|
function findServiceRequestByIdRequest(_ref) {
|
|
935
998
|
var _ref$baseURL = _ref.baseURL,
|
|
936
999
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1993,6 +2056,30 @@ var ServiceRequestSource;
|
|
|
1993
2056
|
ServiceRequestSource["Other"] = "other";
|
|
1994
2057
|
})(ServiceRequestSource || (ServiceRequestSource = {}));
|
|
1995
2058
|
|
|
2059
|
+
var ServiceRequestActivityType;
|
|
2060
|
+
|
|
2061
|
+
(function (ServiceRequestActivityType) {
|
|
2062
|
+
ServiceRequestActivityType["Comment"] = "comment";
|
|
2063
|
+
ServiceRequestActivityType["Edit"] = "edit";
|
|
2064
|
+
ServiceRequestActivityType["Call"] = "call";
|
|
2065
|
+
ServiceRequestActivityType["Task"] = "task";
|
|
2066
|
+
ServiceRequestActivityType["Status"] = "status";
|
|
2067
|
+
ServiceRequestActivityType["ObjectRequest"] = "object_request";
|
|
2068
|
+
ServiceRequestActivityType["Contract"] = "contract";
|
|
2069
|
+
ServiceRequestActivityType["Publish"] = "publish";
|
|
2070
|
+
ServiceRequestActivityType["PublicationProblem"] = "publication-problem";
|
|
2071
|
+
ServiceRequestActivityType["ContractExpired"] = "contract-expired";
|
|
2072
|
+
ServiceRequestActivityType["MarkedUp"] = "marked-up";
|
|
2073
|
+
ServiceRequestActivityType["ExpertCreated"] = "expert-created";
|
|
2074
|
+
ServiceRequestActivityType["PriceChanged"] = "price-changed";
|
|
2075
|
+
ServiceRequestActivityType["RequestPriceDown"] = "request-price-down";
|
|
2076
|
+
ServiceRequestActivityType["CallTaskCreated"] = "call-task-created";
|
|
2077
|
+
ServiceRequestActivityType["RealtyShowScheduled"] = "realty-show-scheduled";
|
|
2078
|
+
ServiceRequestActivityType["RealtyShowRescheduled"] = "realty-show-rescheduled";
|
|
2079
|
+
ServiceRequestActivityType["RealtyShowCompleted"] = "realty-show-completed";
|
|
2080
|
+
ServiceRequestActivityType["RealtyShowCancelled"] = "realty-show-cancelled";
|
|
2081
|
+
})(ServiceRequestActivityType || (ServiceRequestActivityType = {}));
|
|
2082
|
+
|
|
1996
2083
|
var ServiceRequestCategorizedFileCategory;
|
|
1997
2084
|
|
|
1998
2085
|
(function (ServiceRequestCategorizedFileCategory) {
|
|
@@ -2268,14 +2355,19 @@ var ServiceRequestDictionary = {
|
|
|
2268
2355
|
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)
|
|
2269
2356
|
};
|
|
2270
2357
|
|
|
2358
|
+
var _Type$6;
|
|
2359
|
+
var ServiceRequestActivityDictionary = {
|
|
2360
|
+
Type: (_Type$6 = {}, _Type$6[ServiceRequestActivityType.Comment] = 'Коментарий', _Type$6[ServiceRequestActivityType.Edit] = 'Изменения', _Type$6[ServiceRequestActivityType.Call] = 'Звонок', _Type$6[ServiceRequestActivityType.Task] = 'Задача', _Type$6[ServiceRequestActivityType.Status] = 'Статус', _Type$6[ServiceRequestActivityType.ObjectRequest] = 'Обращение на объект', _Type$6[ServiceRequestActivityType.Contract] = 'Контракт', _Type$6[ServiceRequestActivityType.Publish] = 'Публикация', _Type$6[ServiceRequestActivityType.PublicationProblem] = 'Ошибка при публикации', _Type$6[ServiceRequestActivityType.ContractExpired] = 'Срок контракта истекает', _Type$6[ServiceRequestActivityType.MarkedUp] = 'Разметка', _Type$6[ServiceRequestActivityType.ExpertCreated] = 'Создан эксперт', _Type$6[ServiceRequestActivityType.PriceChanged] = 'Изменена цена', _Type$6[ServiceRequestActivityType.RequestPriceDown] = 'Запрос на снижение цены цены', _Type$6[ServiceRequestActivityType.CallTaskCreated] = 'Обращениие создано', _Type$6[ServiceRequestActivityType.RealtyShowScheduled] = 'Показ объекта запланирован', _Type$6[ServiceRequestActivityType.RealtyShowRescheduled] = 'Показ объекта перенесен', _Type$6[ServiceRequestActivityType.RealtyShowCompleted] = 'Показ объекта выполнен', _Type$6[ServiceRequestActivityType.RealtyShowCancelled] = 'Показ объекта отменен', _Type$6)
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2271
2363
|
var _Category$3;
|
|
2272
2364
|
var ServiceRequestCategorizedFileDictionary = {
|
|
2273
2365
|
Category: (_Category$3 = {}, _Category$3[ServiceRequestCategorizedFileCategory.AdvAgreement] = 'Соглашение на рекламу', _Category$3[ServiceRequestCategorizedFileCategory.AdvanceForm] = 'Анкета на аванс', _Category$3[ServiceRequestCategorizedFileCategory.CheckList] = 'Чек-лист со встречи', _Category$3[ServiceRequestCategorizedFileCategory.Contract] = 'Договор оказания услуг', _Category$3[ServiceRequestCategorizedFileCategory.Kc] = 'Файлы от КЦ', _Category$3[ServiceRequestCategorizedFileCategory.Other] = 'Разное (ЗОУ)', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipCheckReport] = 'Отчет проверки собственника', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipJustification] = 'Основание права собственности', _Category$3[ServiceRequestCategorizedFileCategory.PassportClient] = 'Паспорта клиента (свид-ва о рождении)', _Category$3[ServiceRequestCategorizedFileCategory.Egrn] = 'ЕГРН', _Category$3[ServiceRequestCategorizedFileCategory.DeleteReason] = 'Является обоснованием закрытия контракта', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipTransfers] = 'Переходы собственности', _Category$3[ServiceRequestCategorizedFileCategory.Risk] = 'Проверка на риски', _Category$3)
|
|
2274
2366
|
};
|
|
2275
2367
|
|
|
2276
|
-
var _Type$
|
|
2368
|
+
var _Type$7;
|
|
2277
2369
|
var ShapeDictionary = {
|
|
2278
|
-
Type: (_Type$
|
|
2370
|
+
Type: (_Type$7 = {}, _Type$7[ShapeType.AdministrativeDistrict] = 'Административный округ', _Type$7[ShapeType.Block] = 'Квартал', _Type$7[ShapeType.Complex] = 'Новостройка', _Type$7[ShapeType.District] = 'Район', _Type$7[ShapeType.House] = 'Здание', _Type$7[ShapeType.Microdistrict] = 'Микрорайон', _Type$7)
|
|
2279
2371
|
};
|
|
2280
2372
|
|
|
2281
2373
|
var _Importance, _NotificationType, _Status$2;
|
|
@@ -2559,6 +2651,14 @@ var Api = function Api(baseURL) {
|
|
|
2559
2651
|
});
|
|
2560
2652
|
};
|
|
2561
2653
|
|
|
2654
|
+
this.createServiceRequestActivity = function (body, headers) {
|
|
2655
|
+
return createServiceRequestActivityRequest({
|
|
2656
|
+
body: body,
|
|
2657
|
+
headers: headers,
|
|
2658
|
+
baseURL: _this.baseURL
|
|
2659
|
+
});
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2562
2662
|
this.createServiceRequestCategorizedFile = function (urlParams, body, headers) {
|
|
2563
2663
|
return createServiceRequestCategorizedFileRequest({
|
|
2564
2664
|
urlParams: urlParams,
|
|
@@ -2601,6 +2701,14 @@ var Api = function Api(baseURL) {
|
|
|
2601
2701
|
});
|
|
2602
2702
|
};
|
|
2603
2703
|
|
|
2704
|
+
this.findServiceRequestActivities = function (params, headers) {
|
|
2705
|
+
return findServiceRequestActivitiesRequest({
|
|
2706
|
+
params: params,
|
|
2707
|
+
headers: headers,
|
|
2708
|
+
baseURL: _this.baseURL
|
|
2709
|
+
});
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2604
2712
|
this.findServiceRequestById = function (urlParams, headers) {
|
|
2605
2713
|
return findServiceRequestByIdRequest({
|
|
2606
2714
|
urlParams: urlParams,
|
|
@@ -2794,11 +2902,13 @@ var index = {
|
|
|
2794
2902
|
closeServiceRequest: closeServiceRequest,
|
|
2795
2903
|
completeServiceRequestModerationRequest: completeServiceRequestModerationRequest,
|
|
2796
2904
|
createServiceRequestRequest: createServiceRequestRequest,
|
|
2905
|
+
createServiceRequestActivityRequest: createServiceRequestActivityRequest,
|
|
2797
2906
|
createServiceRequestCategorizedFileRequest: createServiceRequestCategorizedFileRequest,
|
|
2798
2907
|
deferServiceRequest: deferServiceRequest,
|
|
2799
2908
|
deleteServiceRequestCategorizedFileRequest: deleteServiceRequestCategorizedFileRequest,
|
|
2800
2909
|
deleteServiceRequestReportForSellerRequest: deleteServiceRequestReportForSellerRequest,
|
|
2801
2910
|
extendServiceRequestByRealtyRequest: extendServiceRequestByRealtyRequest,
|
|
2911
|
+
findServiceRequestActivitiesRequest: findServiceRequestActivitiesRequest,
|
|
2802
2912
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
2803
2913
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
2804
2914
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
@@ -2831,6 +2941,7 @@ var index = {
|
|
|
2831
2941
|
GalleryImageDictionary: GalleryImageDictionary,
|
|
2832
2942
|
RealtyDictionary: RealtyDictionary,
|
|
2833
2943
|
ServiceRequestDictionary: ServiceRequestDictionary,
|
|
2944
|
+
ServiceRequestActivityDictionary: ServiceRequestActivityDictionary,
|
|
2834
2945
|
ServiceRequestCategorizedFileDictionary: ServiceRequestCategorizedFileDictionary,
|
|
2835
2946
|
ShapeDictionary: ShapeDictionary,
|
|
2836
2947
|
TaskDictionary: TaskDictionary,
|
|
@@ -2885,6 +2996,7 @@ var index = {
|
|
|
2885
2996
|
get ServiceRequestInvestType () { return ServiceRequestInvestType; },
|
|
2886
2997
|
get ServiceRequestDepublishReason () { return ServiceRequestDepublishReason; },
|
|
2887
2998
|
get ServiceRequestSource () { return ServiceRequestSource; },
|
|
2999
|
+
get ServiceRequestActivityType () { return ServiceRequestActivityType; },
|
|
2888
3000
|
get ServiceRequestCategorizedFileCategory () { return ServiceRequestCategorizedFileCategory; },
|
|
2889
3001
|
get ShapeType () { return ShapeType; },
|
|
2890
3002
|
get TaskStatus () { return TaskStatus; },
|
|
@@ -3968,9 +4080,9 @@ var AddressMetroDistanceDictionary = {
|
|
|
3968
4080
|
Method: (_Method = {}, _Method[AddressMetroDistanceMethod.Car] = 'На машине', _Method[AddressMetroDistanceMethod.Foot] = 'Пешком', _Method)
|
|
3969
4081
|
};
|
|
3970
4082
|
|
|
3971
|
-
var _Type$
|
|
4083
|
+
var _Type$8, _DealType, _DealTypeFlatNew, _RenovationType$1, _RenovationTypeFlatNe, _FlatKind, _ParkingType, _FlatType, _WindowView$1, _DDUOwnerType, _Electricity$1, _Gas$1, _Heating, _LandUsageType$1, _LandPurpose, _LandShape$1, _Relief$1, _Plumbing, _Sewerage$1, _HouseType$1, _WallsMaterial$2, _Furniture$1, _AdditionalPriceCurre;
|
|
3972
4084
|
var RealtyDictionary$1 = {
|
|
3973
|
-
Type: (_Type$
|
|
4085
|
+
Type: (_Type$8 = {}, _Type$8[RealtyType$1.FlatSecondary] = 'Вторичка', _Type$8[RealtyType$1.FlatNew] = 'Новостройка', _Type$8[RealtyType$1.House] = 'Дом', _Type$8),
|
|
3974
4086
|
DealType: (_DealType = {}, _DealType[RealtyDealType.Free] = 'Свободная продажа', _DealType[RealtyDealType.Alternative] = 'Альтернатива', _DealType),
|
|
3975
4087
|
DealTypeFlatNew: (_DealTypeFlatNew = {}, _DealTypeFlatNew[RealtyDealTypeFlatNew.Reassignment] = 'Договор уступки', _DealTypeFlatNew[RealtyDealTypeFlatNew.DKP] = 'ДКП', _DealTypeFlatNew[RealtyDealTypeFlatNew.DDU] = 'ДДУ', _DealTypeFlatNew[RealtyDealTypeFlatNew.PreSaleContract] = 'Предварительный договор купли-продажи', _DealTypeFlatNew),
|
|
3976
4088
|
RenovationType: (_RenovationType$1 = {}, _RenovationType$1[RealtyRenovationType$1.None] = 'Без ремонта', _RenovationType$1[RealtyRenovationType$1.Author] = 'Авторский', _RenovationType$1[RealtyRenovationType$1.Cosmetic] = 'Косметический', _RenovationType$1[RealtyRenovationType$1.Euro] = 'Евро', _RenovationType$1),
|