@hapl/api-queries 0.1.188 → 0.1.189

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,3 +1,15 @@
1
+ # v0.1.189 (Tue Sep 27 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - FE-1421: добавлена ручка получения события по id [#117](https://github.com/homeappcorporate/api-queries/pull/117) ([@abd2561024](https://github.com/abd2561024))
6
+
7
+ #### Authors: 1
8
+
9
+ - Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
10
+
11
+ ---
12
+
1
13
  # v0.1.188 (Tue Sep 27 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -1344,6 +1344,26 @@ function updateDealRequest(_ref) {
1344
1344
  });
1345
1345
  }
1346
1346
 
1347
+ function findEventByIdRequest(_ref) {
1348
+ var _ref$baseURL = _ref.baseURL,
1349
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
1350
+ urlParams = _ref.urlParams,
1351
+ headers = _ref.headers;
1352
+ return axios.get("/api/site/event/" + urlParams.id, {
1353
+ baseURL: baseURL,
1354
+ headers: _extends({
1355
+ Accept: 'application/json'
1356
+ }, headers),
1357
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
1358
+ return data.success ? data.data : data.data.error;
1359
+ }])
1360
+ }).then(function (res) {
1361
+ return res;
1362
+ })["catch"](function (err) {
1363
+ throw err;
1364
+ });
1365
+ }
1366
+
1347
1367
  function createExpertCaseRequest(_ref) {
1348
1368
  var _ref$baseURL = _ref.baseURL,
1349
1369
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -4604,6 +4624,15 @@ var Api = function Api(baseURL) {
4604
4624
  headers: headers,
4605
4625
  baseURL: _this.baseURL
4606
4626
  });
4627
+ }; // event
4628
+
4629
+
4630
+ this.findEventById = function (urlParams, headers) {
4631
+ return findEventByIdRequest({
4632
+ urlParams: urlParams,
4633
+ headers: headers,
4634
+ baseURL: _this.baseURL
4635
+ });
4607
4636
  }; // expert
4608
4637
 
4609
4638
 
@@ -5253,6 +5282,7 @@ var index = {
5253
5282
  setDealSignedStateRequest: setDealSignedStateRequest,
5254
5283
  terminateDealRequest: terminateDealRequest,
5255
5284
  updateDealRequest: updateDealRequest,
5285
+ findEventByIdRequest: findEventByIdRequest,
5256
5286
  createExpertCaseRequest: createExpertCaseRequest,
5257
5287
  createExpertReviewRequest: createExpertReviewRequest,
5258
5288
  findExpertByIdRequest: findExpertByIdRequest,