@hapl/api-queries 0.1.169 → 0.1.170

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,16 @@
1
+ # v0.1.170 (Fri Jun 10 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - FE-1346: добавлена ручка для создания дочернего ЗОУ по crossSale [#92](https://github.com/homeappcorporate/api-queries/pull/92) ([@abd2561024](https://github.com/abd2561024) [@alexandropavlov](https://github.com/alexandropavlov))
6
+
7
+ #### Authors: 2
8
+
9
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
10
+ - Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
11
+
12
+ ---
13
+
1
14
  # v0.1.169 (Tue Jun 07 2022)
2
15
 
3
16
  #### 🐛 Bug Fix
@@ -1857,6 +1857,27 @@ function createServiceRequestRequest(_ref) {
1857
1857
  });
1858
1858
  }
1859
1859
 
1860
+ function createServiceRequestByCrossSaleIdRequest(_ref) {
1861
+ var _ref$baseURL = _ref.baseURL,
1862
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
1863
+ urlParams = _ref.urlParams,
1864
+ headers = _ref.headers;
1865
+ return axios.post("/api/cross-sale/create-child-service-request/" + urlParams.id, {}, {
1866
+ baseURL: baseURL,
1867
+ headers: _extends({
1868
+ Accept: 'application/json',
1869
+ 'Content-Type': 'application/json'
1870
+ }, headers),
1871
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
1872
+ return data.success ? data.data : data.data.error;
1873
+ }])
1874
+ }).then(function (res) {
1875
+ return res;
1876
+ })["catch"](function (err) {
1877
+ throw err;
1878
+ });
1879
+ }
1880
+
1860
1881
  function createServiceRequestActivityRequest(_ref) {
1861
1882
  var _ref$baseURL = _ref.baseURL,
1862
1883
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -4470,6 +4491,14 @@ var Api = function Api(baseURL) {
4470
4491
  });
4471
4492
  };
4472
4493
 
4494
+ this.createServiceRequestByCrossSaleId = function (urlParams, headers) {
4495
+ return createServiceRequestByCrossSaleIdRequest({
4496
+ urlParams: urlParams,
4497
+ headers: headers,
4498
+ baseURL: _this.baseURL
4499
+ });
4500
+ };
4501
+
4473
4502
  this.createServiceRequestActivity = function (body, headers) {
4474
4503
  return createServiceRequestActivityRequest({
4475
4504
  body: body,
@@ -4864,6 +4893,7 @@ var index = {
4864
4893
  closeServiceRequestRequest: closeServiceRequestRequest,
4865
4894
  completeServiceRequestModerationRequest: completeServiceRequestModerationRequest,
4866
4895
  createServiceRequestRequest: createServiceRequestRequest,
4896
+ createServiceRequestByCrossSaleIdRequest: createServiceRequestByCrossSaleIdRequest,
4867
4897
  createServiceRequestActivityRequest: createServiceRequestActivityRequest,
4868
4898
  createServiceRequestCategorizedFileRequest: createServiceRequestCategorizedFileRequest,
4869
4899
  deferServiceRequestRequest: deferServiceRequestRequest,