@hapl/api-queries 0.1.147 → 0.1.150--canary.78.f36653c.0

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,27 @@
1
+ # v0.1.149 (Fri Mar 18 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: удален depricated статус `commission` для сделок [#77](https://github.com/homeappcorporate/api-queries/pull/77) ([@abd2561024](https://github.com/abd2561024))
6
+
7
+ #### Authors: 1
8
+
9
+ - Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
10
+
11
+ ---
12
+
13
+ # v0.1.148 (Fri Mar 18 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - FE-1287: добавлены поля для сущности сделки [#75](https://github.com/homeappcorporate/api-queries/pull/75) ([@abd2561024](https://github.com/abd2561024))
18
+
19
+ #### Authors: 1
20
+
21
+ - Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
22
+
23
+ ---
24
+
1
25
  # v0.1.147 (Thu Mar 17 2022)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -1011,6 +1011,45 @@ function findDealCategorizedFilesRequest(_ref) {
1011
1011
  });
1012
1012
  }
1013
1013
 
1014
+ function findDealsRequest(_ref) {
1015
+ var _ref$baseURL = _ref.baseURL,
1016
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
1017
+ headers = _ref.headers,
1018
+ params = _ref.params;
1019
+ return axios.get('/api/deal', {
1020
+ baseURL: baseURL,
1021
+ params: params,
1022
+ paramsSerializer: function paramsSerializer(params) {
1023
+ return qs.stringify(params, {
1024
+ arrayFormat: 'brackets'
1025
+ });
1026
+ },
1027
+ headers: _extends({
1028
+ Accept: 'application/json'
1029
+ }, headers),
1030
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
1031
+ if (!data.success) return data.data.error;
1032
+ var ids = [];
1033
+ var byId = {};
1034
+ data.data.forEach(function (entity) {
1035
+ byId[entity.id] = entity;
1036
+ ids.push(entity.id);
1037
+ });
1038
+ return {
1039
+ ids: ids,
1040
+ byId: byId,
1041
+ meta: _extends({}, data.meta, {
1042
+ total: data.pageParams.length
1043
+ })
1044
+ };
1045
+ }])
1046
+ }).then(function (res) {
1047
+ return res;
1048
+ })["catch"](function (err) {
1049
+ throw err;
1050
+ });
1051
+ }
1052
+
1014
1053
  function setDealDoneStateRequest(_ref) {
1015
1054
  var _ref$baseURL = _ref.baseURL,
1016
1055
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -2620,6 +2659,28 @@ function findValuationByServiceRequestIdRequest(_ref) {
2620
2659
  });
2621
2660
  }
2622
2661
 
2662
+ function createValuationRealtyCommentRequest(_ref) {
2663
+ var _ref$baseURL = _ref.baseURL,
2664
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
2665
+ urlParams = _ref.urlParams,
2666
+ body = _ref.body,
2667
+ headers = _ref.headers;
2668
+ return axios.put("/api/valuation/" + urlParams.serviceRequestId + "/realty/" + urlParams.realtyId, body, {
2669
+ baseURL: baseURL,
2670
+ headers: _extends({
2671
+ Accept: 'application/json',
2672
+ 'Content-Type': 'application/json'
2673
+ }, headers),
2674
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
2675
+ return data.success ? null : data.data.error;
2676
+ }])
2677
+ }).then(function (res) {
2678
+ return res;
2679
+ })["catch"](function (err) {
2680
+ throw err;
2681
+ });
2682
+ }
2683
+
2623
2684
  var AddressBTIParamsParking;
2624
2685
 
2625
2686
  (function (AddressBTIParamsParking) {
@@ -2934,7 +2995,6 @@ var DealStatus;
2934
2995
  DealStatus["Prepaid"] = "prepaid";
2935
2996
  DealStatus["DealSigned"] = "deal_signed";
2936
2997
  DealStatus["Registered"] = "registered";
2937
- DealStatus["Commission"] = "commission";
2938
2998
  DealStatus["DealDone"] = "deal_done";
2939
2999
  DealStatus["Terminated"] = "terminated";
2940
3000
  })(DealStatus || (DealStatus = {}));
@@ -3939,6 +3999,14 @@ var Api = function Api(baseURL) {
3939
3999
  });
3940
4000
  };
3941
4001
 
4002
+ this.findDeals = function (params, headers) {
4003
+ return findDealsRequest({
4004
+ params: params,
4005
+ headers: headers,
4006
+ baseURL: _this.baseURL
4007
+ });
4008
+ };
4009
+
3942
4010
  this.deleteDealCategorizedFile = function (urlParams, headers) {
3943
4011
  return deleteDealCategorizedFileRequest({
3944
4012
  urlParams: urlParams,
@@ -4483,6 +4551,15 @@ var Api = function Api(baseURL) {
4483
4551
  baseURL: _this.baseURL
4484
4552
  });
4485
4553
  };
4554
+
4555
+ this.createValuationRealtyComment = function (urlParams, body, headers) {
4556
+ return createValuationRealtyCommentRequest({
4557
+ urlParams: urlParams,
4558
+ body: body,
4559
+ headers: headers,
4560
+ baseURL: _this.baseURL
4561
+ });
4562
+ };
4486
4563
  };
4487
4564
 
4488
4565
  var index = {
@@ -4526,6 +4603,7 @@ var index = {
4526
4603
  createDealInvestPrepaymentRequest: createDealInvestPrepaymentRequest,
4527
4604
  deleteDealCategorizedFileRequest: deleteDealCategorizedFileRequest,
4528
4605
  findDealCategorizedFilesRequest: findDealCategorizedFilesRequest,
4606
+ findDealsRequest: findDealsRequest,
4529
4607
  setDealDoneStateRequest: setDealDoneStateRequest,
4530
4608
  setDealPrepaymentStateRequest: setDealPrepaymentStateRequest,
4531
4609
  setDealRegisteredStateRequest: setDealRegisteredStateRequest,
@@ -4590,6 +4668,7 @@ var index = {
4590
4668
  findTaskByIdRequest: findTaskByIdRequest,
4591
4669
  updateTaskRequest: updateTaskRequest,
4592
4670
  findValuationByServiceRequestIdRequest: findValuationByServiceRequestIdRequest,
4671
+ createValuationRealtyCommentRequest: createValuationRealtyCommentRequest,
4593
4672
  AddressBTIParamsDictionary: AddressBTIParamsDictionary,
4594
4673
  AvailableFundsDictionary: AvailableFundsDictionary,
4595
4674
  BillDictionary: BillDictionary,