@hapl/api-queries 0.1.169--canary.98.37a3769.0 → 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,40 @@
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
+
14
+ # v0.1.169 (Tue Jun 07 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - FE-1341: поправил типы на создание колтаска [#98](https://github.com/homeappcorporate/api-queries/pull/98) ([@alexandropavlov](https://github.com/alexandropavlov))
19
+
20
+ #### Authors: 1
21
+
22
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
23
+
24
+ ---
25
+
26
+ # v0.1.168 (Wed Jun 01 2022)
27
+
28
+ #### 🐛 Bug Fix
29
+
30
+ - fix: значения в словаре с заглавной буквы [#97](https://github.com/homeappcorporate/api-queries/pull/97) ([@alexandropavlov](https://github.com/alexandropavlov))
31
+
32
+ #### Authors: 1
33
+
34
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
35
+
36
+ ---
37
+
1
38
  # v0.1.167 (Tue May 31 2022)
2
39
 
3
40
  #### 🐛 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,
@@ -7357,8 +7387,8 @@ var _RealtyType$1, _Renovation$1, _Gas$2, _HouseType$2, _LandShape$2, _LandUsage
7357
7387
  var RealtyDictionary$2 = {
7358
7388
  RealtyType: (_RealtyType$1 = {}, _RealtyType$1[RealtyType$2.Flat] = 'Квартира', _RealtyType$1[RealtyType$2.House] = 'Дом', _RealtyType$1),
7359
7389
  Rooms: {
7360
- '-1': 'студия',
7361
- '-2': 'свободная планировка',
7390
+ '-1': 'Студия',
7391
+ '-2': 'Свободная планировка',
7362
7392
  '1': '1',
7363
7393
  '2': '2',
7364
7394
  '3': '3',