@hapl/api-queries 0.1.183 → 0.1.184

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.184 (Tue Aug 23 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - FE-1356: добавлена ручка создания инвест-ЗОУ 2-го этапа [#111](https://github.com/homeappcorporate/api-queries/pull/111) ([@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.183 (Thu Aug 18 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -1881,6 +1881,27 @@ function completeServiceRequestModerationRequest(_ref) {
1881
1881
  });
1882
1882
  }
1883
1883
 
1884
+ function createInvestSellServiceRequestRequest(_ref) {
1885
+ var _ref$baseURL = _ref.baseURL,
1886
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
1887
+ body = _ref.body,
1888
+ headers = _ref.headers;
1889
+ return axios.post('/api/service-request/invest/sell', body, {
1890
+ baseURL: baseURL,
1891
+ headers: _extends({
1892
+ Accept: 'application/json',
1893
+ 'Content-Type': 'application/json'
1894
+ }, headers),
1895
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
1896
+ return data.success ? data.data : data.data.error;
1897
+ }])
1898
+ }).then(function (res) {
1899
+ return res;
1900
+ })["catch"](function (err) {
1901
+ throw err;
1902
+ });
1903
+ }
1904
+
1884
1905
  function createServiceRequestRequest(_ref) {
1885
1906
  var _ref$baseURL = _ref.baseURL,
1886
1907
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -4675,6 +4696,14 @@ var Api = function Api(baseURL) {
4675
4696
  });
4676
4697
  };
4677
4698
 
4699
+ this.createInvestSellServiceRequest = function (body, headers) {
4700
+ return createInvestSellServiceRequestRequest({
4701
+ body: body,
4702
+ headers: headers,
4703
+ baseURL: _this.baseURL
4704
+ });
4705
+ };
4706
+
4678
4707
  this.createServiceRequestByCrossSaleId = function (urlParams, headers) {
4679
4708
  return createServiceRequestByCrossSaleIdRequest({
4680
4709
  urlParams: urlParams,
@@ -5111,6 +5140,7 @@ var index = {
5111
5140
  approveCloseServiceRequestRequest: approveCloseServiceRequestRequest,
5112
5141
  closeServiceRequestRequest: closeServiceRequestRequest,
5113
5142
  completeServiceRequestModerationRequest: completeServiceRequestModerationRequest,
5143
+ createInvestSellServiceRequestRequest: createInvestSellServiceRequestRequest,
5114
5144
  createServiceRequestRequest: createServiceRequestRequest,
5115
5145
  createServiceRequestByCrossSaleIdRequest: createServiceRequestByCrossSaleIdRequest,
5116
5146
  createServiceRequestActivityRequest: createServiceRequestActivityRequest,