@hapl/api-queries 0.1.101 → 0.1.102

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.102 (Thu Dec 23 2021)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - FE-1172: добавлена ручка для закрытия(удаления) ЗОУ [#36](https://github.com/homeappcorporate/api-queries/pull/36) ([@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.101 (Thu Dec 23 2021)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -668,6 +668,26 @@ function updateExpertCaseRequest(_ref) {
668
668
  });
669
669
  }
670
670
 
671
+ function closeServiceRequest(_ref) {
672
+ var _ref$baseURL = _ref.baseURL,
673
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
674
+ urlParams = _ref.urlParams,
675
+ headers = _ref.headers;
676
+ return axios.patch("/api/service-request/close/" + urlParams.id, {}, {
677
+ baseURL: baseURL,
678
+ headers: _extends({
679
+ Accept: 'application/json'
680
+ }, headers),
681
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
682
+ return data.success ? data.data : data.data.error;
683
+ }])
684
+ }).then(function (res) {
685
+ return res;
686
+ })["catch"](function (err) {
687
+ throw err;
688
+ });
689
+ }
690
+
671
691
  function completeServiceRequestModerationRequest(_ref) {
672
692
  var _ref$baseURL = _ref.baseURL,
673
693
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -2292,6 +2312,14 @@ var Api = function Api(baseURL) {
2292
2312
  }; // serviceRequest
2293
2313
 
2294
2314
 
2315
+ this.closeServiceRequest = function (urlParams, headers) {
2316
+ return closeServiceRequest({
2317
+ urlParams: urlParams,
2318
+ headers: headers,
2319
+ baseURL: _this.baseURL
2320
+ });
2321
+ };
2322
+
2295
2323
  this.completeServiceRequestModeration = function (urlParams, headers) {
2296
2324
  return completeServiceRequestModerationRequest({
2297
2325
  urlParams: urlParams,
@@ -2504,6 +2532,7 @@ var index = {
2504
2532
  findExpertCasesRequest: findExpertCasesRequest,
2505
2533
  findExpertCaseByIdRequest: findExpertCaseByIdRequest,
2506
2534
  updateExpertCaseRequest: updateExpertCaseRequest,
2535
+ closeServiceRequest: closeServiceRequest,
2507
2536
  completeServiceRequestModerationRequest: completeServiceRequestModerationRequest,
2508
2537
  createServiceRequestRequest: createServiceRequestRequest,
2509
2538
  createServiceRequestCategorizedFileRequest: createServiceRequestCategorizedFileRequest,