@hapl/api-queries 0.1.187 → 0.1.188--canary.117.bd3025a.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 CHANGED
@@ -1,15 +1,3 @@
1
- # v0.1.187 (Tue Sep 20 2022)
2
-
3
- #### 🐛 Bug Fix
4
-
5
- - FE-1430: добавлено поле `refreshedAt` для сущности `realtyV2` [#116](https://github.com/homeappcorporate/api-queries/pull/116) ([@abd2561024](https://github.com/abd2561024))
6
-
7
- #### Authors: 1
8
-
9
- - Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
10
-
11
- ---
12
-
13
1
  # v0.1.186 (Tue Sep 13 2022)
14
2
 
15
3
  #### 🐛 Bug Fix
@@ -1323,6 +1323,26 @@ function updateDealRequest(_ref) {
1323
1323
  });
1324
1324
  }
1325
1325
 
1326
+ function findEventByIdRequest(_ref) {
1327
+ var _ref$baseURL = _ref.baseURL,
1328
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
1329
+ urlParams = _ref.urlParams,
1330
+ headers = _ref.headers;
1331
+ return axios.get("/api/site/event/" + urlParams.id, {
1332
+ baseURL: baseURL,
1333
+ headers: _extends({
1334
+ Accept: 'application/json'
1335
+ }, headers),
1336
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
1337
+ return data.success ? data.data : data.data.error;
1338
+ }])
1339
+ }).then(function (res) {
1340
+ return res;
1341
+ })["catch"](function (err) {
1342
+ throw err;
1343
+ });
1344
+ }
1345
+
1326
1346
  function createExpertCaseRequest(_ref) {
1327
1347
  var _ref$baseURL = _ref.baseURL,
1328
1348
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -4533,6 +4553,15 @@ var Api = function Api(baseURL) {
4533
4553
  headers: headers,
4534
4554
  baseURL: _this.baseURL
4535
4555
  });
4556
+ }; // event
4557
+
4558
+
4559
+ this.findEventById = function (urlParams, headers) {
4560
+ return findEventByIdRequest({
4561
+ urlParams: urlParams,
4562
+ headers: headers,
4563
+ baseURL: _this.baseURL
4564
+ });
4536
4565
  }; // expert
4537
4566
 
4538
4567
 
@@ -5165,6 +5194,7 @@ var index = {
5165
5194
  setDealSignedStateRequest: setDealSignedStateRequest,
5166
5195
  terminateDealRequest: terminateDealRequest,
5167
5196
  updateDealRequest: updateDealRequest,
5197
+ findEventByIdRequest: findEventByIdRequest,
5168
5198
  createExpertCaseRequest: createExpertCaseRequest,
5169
5199
  createExpertReviewRequest: createExpertReviewRequest,
5170
5200
  findExpertByIdRequest: findExpertByIdRequest,