@hapl/api-queries 0.1.114--canary.50.cae722c.0 → 0.1.116
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 +54 -7
- 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 +54 -7
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/dictionaries/ServiceRequestActivity.d.ts +5 -6
- package/dist/clients/v1/types/ServiceRequestActivity.d.ts +5 -6
- package/dist/clients/v2/api/index.d.ts +1 -0
- package/dist/clients/v2/api/realty/findRealties/index.d.ts +74 -0
- package/dist/clients/v2/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/clients/v1/dictionaries/ServiceRequestActivity.ts +7 -8
- package/src/clients/v1/types/ServiceRequestActivity.ts +5 -6
- package/src/clients/v2/api/index.ts +1 -0
- package/src/clients/v2/api/realty/findRealties/index.ts +105 -0
- package/src/clients/v2/index.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.1.116 (Thu Feb 03 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- добавлена ручка запроса списка realtyV2 [#53](https://github.com/homeappcorporate/api-queries/pull/53) ([@abd2561024](https://github.com/abd2561024))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.1.115 (Wed Feb 02 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- добавлены ручки запроса статистики продаж в ЛК [#50](https://github.com/homeappcorporate/api-queries/pull/50) ([@abd2561024](https://github.com/abd2561024))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.1.114 (Wed Feb 02 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- FE-1205: Поправлен словарь типов активити [#51](https://github.com/homeappcorporate/api-queries/pull/51) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.1.113 (Fri Jan 28 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
|
@@ -2207,21 +2207,20 @@ var ServiceRequestActivityType;
|
|
|
2207
2207
|
(function (ServiceRequestActivityType) {
|
|
2208
2208
|
ServiceRequestActivityType["Comment"] = "comment";
|
|
2209
2209
|
ServiceRequestActivityType["Edit"] = "edit";
|
|
2210
|
+
ServiceRequestActivityType["Transfer"] = "transfer";
|
|
2210
2211
|
ServiceRequestActivityType["Call"] = "call";
|
|
2211
2212
|
ServiceRequestActivityType["Task"] = "task";
|
|
2212
|
-
ServiceRequestActivityType["Status"] = "status";
|
|
2213
|
-
ServiceRequestActivityType["ObjectRequest"] = "object_request";
|
|
2214
2213
|
ServiceRequestActivityType["Contract"] = "contract";
|
|
2215
|
-
ServiceRequestActivityType["Publish"] = "publish";
|
|
2216
2214
|
ServiceRequestActivityType["PublicationProblem"] = "publication-problem";
|
|
2217
|
-
ServiceRequestActivityType["ContractExpired"] = "contract-expired";
|
|
2218
2215
|
ServiceRequestActivityType["MarkedUp"] = "marked-up";
|
|
2219
|
-
ServiceRequestActivityType["
|
|
2216
|
+
ServiceRequestActivityType["Published"] = "published";
|
|
2217
|
+
ServiceRequestActivityType["Republished"] = "republished";
|
|
2218
|
+
ServiceRequestActivityType["Depublished"] = "depublished";
|
|
2220
2219
|
ServiceRequestActivityType["PriceChanged"] = "price-changed";
|
|
2221
2220
|
ServiceRequestActivityType["RequestPriceDown"] = "request-price-down";
|
|
2221
|
+
ServiceRequestActivityType["ContractExpired"] = "contract-expired";
|
|
2222
2222
|
ServiceRequestActivityType["CallTaskCreated"] = "call-task-created";
|
|
2223
2223
|
ServiceRequestActivityType["RealtyShowScheduled"] = "realty-show-scheduled";
|
|
2224
|
-
ServiceRequestActivityType["RealtyShowRescheduled"] = "realty-show-rescheduled";
|
|
2225
2224
|
ServiceRequestActivityType["RealtyShowCompleted"] = "realty-show-completed";
|
|
2226
2225
|
ServiceRequestActivityType["RealtyShowCancelled"] = "realty-show-cancelled";
|
|
2227
2226
|
})(ServiceRequestActivityType || (ServiceRequestActivityType = {}));
|
|
@@ -2511,7 +2510,7 @@ var ServiceRequestDictionary = {
|
|
|
2511
2510
|
|
|
2512
2511
|
var _Type$6;
|
|
2513
2512
|
var ServiceRequestActivityDictionary = {
|
|
2514
|
-
Type: (_Type$6 = {}, _Type$6[ServiceRequestActivityType.Comment] = '
|
|
2513
|
+
Type: (_Type$6 = {}, _Type$6[ServiceRequestActivityType.Comment] = 'Комментарий', _Type$6[ServiceRequestActivityType.Edit] = 'Изменения', _Type$6[ServiceRequestActivityType.Transfer] = 'Перевод', _Type$6[ServiceRequestActivityType.Call] = 'Звонок', _Type$6[ServiceRequestActivityType.Task] = 'Задача', _Type$6[ServiceRequestActivityType.Contract] = 'Контракт', _Type$6[ServiceRequestActivityType.PublicationProblem] = 'Ошибка при публикации', _Type$6[ServiceRequestActivityType.MarkedUp] = 'Разметка', _Type$6[ServiceRequestActivityType.Published] = 'Публикация', _Type$6[ServiceRequestActivityType.Republished] = 'Повторная публикация', _Type$6[ServiceRequestActivityType.Depublished] = 'Снятие с публикации', _Type$6[ServiceRequestActivityType.PriceChanged] = 'Изменена цена', _Type$6[ServiceRequestActivityType.RequestPriceDown] = 'Запрос на снижение цены', _Type$6[ServiceRequestActivityType.ContractExpired] = 'Срок контракта истекает', _Type$6[ServiceRequestActivityType.CallTaskCreated] = 'Обращениие создано', _Type$6[ServiceRequestActivityType.RealtyShowScheduled] = 'Показ объекта запланирован', _Type$6[ServiceRequestActivityType.RealtyShowCompleted] = 'Показ объекта выполнен', _Type$6[ServiceRequestActivityType.RealtyShowCancelled] = 'Показ объекта отменен', _Type$6)
|
|
2515
2514
|
};
|
|
2516
2515
|
|
|
2517
2516
|
var _Category$3;
|
|
@@ -3489,6 +3488,45 @@ function deleteRealtyImageRequest(_ref) {
|
|
|
3489
3488
|
});
|
|
3490
3489
|
}
|
|
3491
3490
|
|
|
3491
|
+
function findRealtiesRequest(_ref) {
|
|
3492
|
+
var _ref$baseURL = _ref.baseURL,
|
|
3493
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
3494
|
+
params = _ref.params,
|
|
3495
|
+
headers = _ref.headers;
|
|
3496
|
+
return axios.get('/api/v2/realty', {
|
|
3497
|
+
baseURL: baseURL,
|
|
3498
|
+
params: params,
|
|
3499
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
3500
|
+
return qs.stringify(params, {
|
|
3501
|
+
arrayFormat: 'comma',
|
|
3502
|
+
skipNulls: true
|
|
3503
|
+
});
|
|
3504
|
+
},
|
|
3505
|
+
headers: _extends({
|
|
3506
|
+
Accept: 'application/vnd.api+json'
|
|
3507
|
+
}, headers),
|
|
3508
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
3509
|
+
if (data.errors) return data.errors;
|
|
3510
|
+
var ids = [];
|
|
3511
|
+
var byId = {};
|
|
3512
|
+
data.data.forEach(function (entity) {
|
|
3513
|
+
byId[entity.id] = entity;
|
|
3514
|
+
ids.push(entity.id);
|
|
3515
|
+
});
|
|
3516
|
+
return {
|
|
3517
|
+
ids: ids,
|
|
3518
|
+
byId: byId,
|
|
3519
|
+
included: data.included,
|
|
3520
|
+
meta: data.meta
|
|
3521
|
+
};
|
|
3522
|
+
}])
|
|
3523
|
+
}).then(function (res) {
|
|
3524
|
+
return res;
|
|
3525
|
+
})["catch"](function (err) {
|
|
3526
|
+
throw err;
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3492
3530
|
var FindRealtyByIdDataMetaRealtyAccess;
|
|
3493
3531
|
|
|
3494
3532
|
(function (FindRealtyByIdDataMetaRealtyAccess) {
|
|
@@ -4423,6 +4461,14 @@ var Api$1 = function Api(baseURL) {
|
|
|
4423
4461
|
});
|
|
4424
4462
|
};
|
|
4425
4463
|
|
|
4464
|
+
this.findRealties = function (params, headers) {
|
|
4465
|
+
return findRealtiesRequest({
|
|
4466
|
+
params: params,
|
|
4467
|
+
headers: headers,
|
|
4468
|
+
baseURL: _this.baseURL
|
|
4469
|
+
});
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4426
4472
|
this.findRealtyById = function (urlParams, params, headers) {
|
|
4427
4473
|
return findRealtyByIdRequest({
|
|
4428
4474
|
urlParams: urlParams,
|
|
@@ -4483,6 +4529,7 @@ var index$1 = {
|
|
|
4483
4529
|
createRealtyImageRequest: createRealtyImageRequest,
|
|
4484
4530
|
createRealtyMetroDistanceRequest: createRealtyMetroDistanceRequest,
|
|
4485
4531
|
deleteRealtyImageRequest: deleteRealtyImageRequest,
|
|
4532
|
+
findRealtiesRequest: findRealtiesRequest,
|
|
4486
4533
|
get FindRealtyByIdDataMetaRealtyAccess () { return FindRealtyByIdDataMetaRealtyAccess; },
|
|
4487
4534
|
findRealtyByIdRequest: findRealtyByIdRequest,
|
|
4488
4535
|
get UpdateRealtyDataMetaRealtyAccess () { return UpdateRealtyDataMetaRealtyAccess; },
|