@hapl/api-queries 0.1.95 → 0.1.96

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.96 (Mon Nov 29 2021)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Ручка получения короткой инфы о зоу по id [#30](https://github.com/homeappcorporate/api-queries/pull/30) ([@alexandropavlov](https://github.com/alexandropavlov))
6
+
7
+ #### Authors: 1
8
+
9
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
10
+
11
+ ---
12
+
1
13
  # v0.1.95 (Mon Nov 29 2021)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -759,8 +759,7 @@ function findServiceRequestByIdRequest(_ref) {
759
759
  return axios.get("/api/service-request/" + urlParams.id, {
760
760
  baseURL: baseURL,
761
761
  headers: _extends({
762
- Accept: 'application/json',
763
- 'Content-Type': 'application/json'
762
+ Accept: 'application/json'
764
763
  }, headers),
765
764
  transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
766
765
  return data.success ? data.data : data.data.error;
@@ -842,6 +841,26 @@ function findServiceRequestsRequest(_ref) {
842
841
  });
843
842
  }
844
843
 
844
+ function findServiceRequestShortInfoByIdRequest(_ref) {
845
+ var _ref$baseURL = _ref.baseURL,
846
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
847
+ urlParams = _ref.urlParams,
848
+ headers = _ref.headers;
849
+ return axios.get("/api/service-request/short/" + urlParams.id, {
850
+ baseURL: baseURL,
851
+ headers: _extends({
852
+ Accept: 'application/json'
853
+ }, headers),
854
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
855
+ return data.success ? data.data : data.data.error;
856
+ }])
857
+ }).then(function (res) {
858
+ return res;
859
+ })["catch"](function (err) {
860
+ throw err;
861
+ });
862
+ }
863
+
845
864
  function findServiceRequestCategorizedFilesRequest(_ref) {
846
865
  var _ref$baseURL = _ref.baseURL,
847
866
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -2197,6 +2216,14 @@ var Api = function Api(baseURL) {
2197
2216
  });
2198
2217
  };
2199
2218
 
2219
+ this.findServiceRequestShortInfoById = function (urlParams, headers) {
2220
+ return findServiceRequestShortInfoByIdRequest({
2221
+ urlParams: urlParams,
2222
+ headers: headers,
2223
+ baseURL: _this.baseURL
2224
+ });
2225
+ };
2226
+
2200
2227
  this.findServiceRequestCategorizedFiles = function (urlParams, params, headers) {
2201
2228
  return findServiceRequestCategorizedFilesRequest({
2202
2229
  urlParams: urlParams,
@@ -2317,6 +2344,7 @@ var index = {
2317
2344
  findServiceRequestByIdRequest: findServiceRequestByIdRequest,
2318
2345
  findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
2319
2346
  findServiceRequestsRequest: findServiceRequestsRequest,
2347
+ findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
2320
2348
  findServiceRequestCategorizedFilesRequest: findServiceRequestCategorizedFilesRequest,
2321
2349
  sendServiceRequestToModerationRequest: sendServiceRequestToModerationRequest,
2322
2350
  startServiceRequestModerationRequest: startServiceRequestModerationRequest,