@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/dist/api-queries.esm.js
CHANGED
|
@@ -812,6 +812,27 @@ function createServiceRequestRequest(_ref) {
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
+
function createServiceRequestActivityRequest(_ref) {
|
|
816
|
+
var _ref$baseURL = _ref.baseURL,
|
|
817
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
818
|
+
body = _ref.body,
|
|
819
|
+
headers = _ref.headers;
|
|
820
|
+
return axios.post('/api/service-request/activity', body, {
|
|
821
|
+
baseURL: baseURL,
|
|
822
|
+
headers: _extends({
|
|
823
|
+
Accept: 'application/json',
|
|
824
|
+
'Content-Type': 'application/json'
|
|
825
|
+
}, headers),
|
|
826
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
827
|
+
return data.success ? data.data : data.data.error;
|
|
828
|
+
}])
|
|
829
|
+
}).then(function (res) {
|
|
830
|
+
return res;
|
|
831
|
+
})["catch"](function (err) {
|
|
832
|
+
throw err;
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
|
|
815
836
|
function createServiceRequestCategorizedFileRequest(_ref) {
|
|
816
837
|
var _ref$baseURL = _ref.baseURL,
|
|
817
838
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -925,6 +946,48 @@ function extendServiceRequestByRealtyRequest(_ref) {
|
|
|
925
946
|
});
|
|
926
947
|
}
|
|
927
948
|
|
|
949
|
+
function findServiceRequestActivitiesRequest(_ref) {
|
|
950
|
+
var _ref$baseURL = _ref.baseURL,
|
|
951
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
952
|
+
headers = _ref.headers,
|
|
953
|
+
params = _ref.params;
|
|
954
|
+
return axios.get('/api/service-request/activity', {
|
|
955
|
+
baseURL: baseURL,
|
|
956
|
+
params: params,
|
|
957
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
958
|
+
return qs.stringify(params, {
|
|
959
|
+
arrayFormat: 'brackets'
|
|
960
|
+
});
|
|
961
|
+
},
|
|
962
|
+
headers: _extends({
|
|
963
|
+
Accept: 'application/json'
|
|
964
|
+
}, headers),
|
|
965
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
966
|
+
if (data.success) {
|
|
967
|
+
var ids = [];
|
|
968
|
+
var byId = {};
|
|
969
|
+
data.data.forEach(function (entity) {
|
|
970
|
+
byId[entity.id] = entity;
|
|
971
|
+
ids.push(entity.id);
|
|
972
|
+
});
|
|
973
|
+
return {
|
|
974
|
+
ids: ids,
|
|
975
|
+
byId: byId,
|
|
976
|
+
meta: {
|
|
977
|
+
total: data.pageParams.length
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
return data.data.error || data.data.message;
|
|
983
|
+
}])
|
|
984
|
+
}).then(function (res) {
|
|
985
|
+
return res;
|
|
986
|
+
})["catch"](function (err) {
|
|
987
|
+
throw err;
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
|
|
928
991
|
function findServiceRequestByIdRequest(_ref) {
|
|
929
992
|
var _ref$baseURL = _ref.baseURL,
|
|
930
993
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1987,6 +2050,30 @@ var ServiceRequestSource;
|
|
|
1987
2050
|
ServiceRequestSource["Other"] = "other";
|
|
1988
2051
|
})(ServiceRequestSource || (ServiceRequestSource = {}));
|
|
1989
2052
|
|
|
2053
|
+
var ServiceRequestActivityType;
|
|
2054
|
+
|
|
2055
|
+
(function (ServiceRequestActivityType) {
|
|
2056
|
+
ServiceRequestActivityType["Comment"] = "comment";
|
|
2057
|
+
ServiceRequestActivityType["Edit"] = "edit";
|
|
2058
|
+
ServiceRequestActivityType["Call"] = "call";
|
|
2059
|
+
ServiceRequestActivityType["Task"] = "task";
|
|
2060
|
+
ServiceRequestActivityType["Status"] = "status";
|
|
2061
|
+
ServiceRequestActivityType["ObjectRequest"] = "object_request";
|
|
2062
|
+
ServiceRequestActivityType["Contract"] = "contract";
|
|
2063
|
+
ServiceRequestActivityType["Publish"] = "publish";
|
|
2064
|
+
ServiceRequestActivityType["PublicationProblem"] = "publication-problem";
|
|
2065
|
+
ServiceRequestActivityType["ContractExpired"] = "contract-expired";
|
|
2066
|
+
ServiceRequestActivityType["MarkedUp"] = "marked-up";
|
|
2067
|
+
ServiceRequestActivityType["ExpertCreated"] = "expert-created";
|
|
2068
|
+
ServiceRequestActivityType["PriceChanged"] = "price-changed";
|
|
2069
|
+
ServiceRequestActivityType["RequestPriceDown"] = "request-price-down";
|
|
2070
|
+
ServiceRequestActivityType["CallTaskCreated"] = "call-task-created";
|
|
2071
|
+
ServiceRequestActivityType["RealtyShowScheduled"] = "realty-show-scheduled";
|
|
2072
|
+
ServiceRequestActivityType["RealtyShowRescheduled"] = "realty-show-rescheduled";
|
|
2073
|
+
ServiceRequestActivityType["RealtyShowCompleted"] = "realty-show-completed";
|
|
2074
|
+
ServiceRequestActivityType["RealtyShowCancelled"] = "realty-show-cancelled";
|
|
2075
|
+
})(ServiceRequestActivityType || (ServiceRequestActivityType = {}));
|
|
2076
|
+
|
|
1990
2077
|
var ServiceRequestCategorizedFileCategory;
|
|
1991
2078
|
|
|
1992
2079
|
(function (ServiceRequestCategorizedFileCategory) {
|
|
@@ -2262,14 +2349,19 @@ var ServiceRequestDictionary = {
|
|
|
2262
2349
|
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)
|
|
2263
2350
|
};
|
|
2264
2351
|
|
|
2352
|
+
var _Type$6;
|
|
2353
|
+
var ServiceRequestActivityDictionary = {
|
|
2354
|
+
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)
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2265
2357
|
var _Category$3;
|
|
2266
2358
|
var ServiceRequestCategorizedFileDictionary = {
|
|
2267
2359
|
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)
|
|
2268
2360
|
};
|
|
2269
2361
|
|
|
2270
|
-
var _Type$
|
|
2362
|
+
var _Type$7;
|
|
2271
2363
|
var ShapeDictionary = {
|
|
2272
|
-
Type: (_Type$
|
|
2364
|
+
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)
|
|
2273
2365
|
};
|
|
2274
2366
|
|
|
2275
2367
|
var _Importance, _NotificationType, _Status$2;
|
|
@@ -2553,6 +2645,14 @@ var Api = function Api(baseURL) {
|
|
|
2553
2645
|
});
|
|
2554
2646
|
};
|
|
2555
2647
|
|
|
2648
|
+
this.createServiceRequestActivity = function (body, headers) {
|
|
2649
|
+
return createServiceRequestActivityRequest({
|
|
2650
|
+
body: body,
|
|
2651
|
+
headers: headers,
|
|
2652
|
+
baseURL: _this.baseURL
|
|
2653
|
+
});
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2556
2656
|
this.createServiceRequestCategorizedFile = function (urlParams, body, headers) {
|
|
2557
2657
|
return createServiceRequestCategorizedFileRequest({
|
|
2558
2658
|
urlParams: urlParams,
|
|
@@ -2595,6 +2695,14 @@ var Api = function Api(baseURL) {
|
|
|
2595
2695
|
});
|
|
2596
2696
|
};
|
|
2597
2697
|
|
|
2698
|
+
this.findServiceRequestActivities = function (params, headers) {
|
|
2699
|
+
return findServiceRequestActivitiesRequest({
|
|
2700
|
+
params: params,
|
|
2701
|
+
headers: headers,
|
|
2702
|
+
baseURL: _this.baseURL
|
|
2703
|
+
});
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2598
2706
|
this.findServiceRequestById = function (urlParams, headers) {
|
|
2599
2707
|
return findServiceRequestByIdRequest({
|
|
2600
2708
|
urlParams: urlParams,
|
|
@@ -2788,11 +2896,13 @@ var index = {
|
|
|
2788
2896
|
closeServiceRequest: closeServiceRequest,
|
|
2789
2897
|
completeServiceRequestModerationRequest: completeServiceRequestModerationRequest,
|
|
2790
2898
|
createServiceRequestRequest: createServiceRequestRequest,
|
|
2899
|
+
createServiceRequestActivityRequest: createServiceRequestActivityRequest,
|
|
2791
2900
|
createServiceRequestCategorizedFileRequest: createServiceRequestCategorizedFileRequest,
|
|
2792
2901
|
deferServiceRequest: deferServiceRequest,
|
|
2793
2902
|
deleteServiceRequestCategorizedFileRequest: deleteServiceRequestCategorizedFileRequest,
|
|
2794
2903
|
deleteServiceRequestReportForSellerRequest: deleteServiceRequestReportForSellerRequest,
|
|
2795
2904
|
extendServiceRequestByRealtyRequest: extendServiceRequestByRealtyRequest,
|
|
2905
|
+
findServiceRequestActivitiesRequest: findServiceRequestActivitiesRequest,
|
|
2796
2906
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
2797
2907
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
2798
2908
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
@@ -2825,6 +2935,7 @@ var index = {
|
|
|
2825
2935
|
GalleryImageDictionary: GalleryImageDictionary,
|
|
2826
2936
|
RealtyDictionary: RealtyDictionary,
|
|
2827
2937
|
ServiceRequestDictionary: ServiceRequestDictionary,
|
|
2938
|
+
ServiceRequestActivityDictionary: ServiceRequestActivityDictionary,
|
|
2828
2939
|
ServiceRequestCategorizedFileDictionary: ServiceRequestCategorizedFileDictionary,
|
|
2829
2940
|
ShapeDictionary: ShapeDictionary,
|
|
2830
2941
|
TaskDictionary: TaskDictionary,
|
|
@@ -2879,6 +2990,7 @@ var index = {
|
|
|
2879
2990
|
get ServiceRequestInvestType () { return ServiceRequestInvestType; },
|
|
2880
2991
|
get ServiceRequestDepublishReason () { return ServiceRequestDepublishReason; },
|
|
2881
2992
|
get ServiceRequestSource () { return ServiceRequestSource; },
|
|
2993
|
+
get ServiceRequestActivityType () { return ServiceRequestActivityType; },
|
|
2882
2994
|
get ServiceRequestCategorizedFileCategory () { return ServiceRequestCategorizedFileCategory; },
|
|
2883
2995
|
get ShapeType () { return ShapeType; },
|
|
2884
2996
|
get TaskStatus () { return TaskStatus; },
|
|
@@ -3962,9 +4074,9 @@ var AddressMetroDistanceDictionary = {
|
|
|
3962
4074
|
Method: (_Method = {}, _Method[AddressMetroDistanceMethod.Car] = 'На машине', _Method[AddressMetroDistanceMethod.Foot] = 'Пешком', _Method)
|
|
3963
4075
|
};
|
|
3964
4076
|
|
|
3965
|
-
var _Type$
|
|
4077
|
+
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;
|
|
3966
4078
|
var RealtyDictionary$1 = {
|
|
3967
|
-
Type: (_Type$
|
|
4079
|
+
Type: (_Type$8 = {}, _Type$8[RealtyType$1.FlatSecondary] = 'Вторичка', _Type$8[RealtyType$1.FlatNew] = 'Новостройка', _Type$8[RealtyType$1.House] = 'Дом', _Type$8),
|
|
3968
4080
|
DealType: (_DealType = {}, _DealType[RealtyDealType.Free] = 'Свободная продажа', _DealType[RealtyDealType.Alternative] = 'Альтернатива', _DealType),
|
|
3969
4081
|
DealTypeFlatNew: (_DealTypeFlatNew = {}, _DealTypeFlatNew[RealtyDealTypeFlatNew.Reassignment] = 'Договор уступки', _DealTypeFlatNew[RealtyDealTypeFlatNew.DKP] = 'ДКП', _DealTypeFlatNew[RealtyDealTypeFlatNew.DDU] = 'ДДУ', _DealTypeFlatNew[RealtyDealTypeFlatNew.PreSaleContract] = 'Предварительный договор купли-продажи', _DealTypeFlatNew),
|
|
3970
4082
|
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),
|