@hapl/api-queries 0.1.136--canary.64.eb3e45e.0 → 0.1.136

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.136 (Sat Feb 19 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Добавлены ручки для новой телефонии [#64](https://github.com/homeappcorporate/api-queries/pull/64) ([@alexandropavlov](https://github.com/alexandropavlov))
6
+
7
+ #### Authors: 1
8
+
9
+ - Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
10
+
11
+ ---
12
+
13
+ # v0.1.135 (Tue Feb 15 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - FE-1259: добавлены ручки управления статусом сделки [#65](https://github.com/homeappcorporate/api-queries/pull/65) ([@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.134 (Mon Feb 14 2022)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -851,6 +851,94 @@ function updateDealRequest(_ref) {
851
851
  });
852
852
  }
853
853
 
854
+ function setDealPrepaymentStateRequest(_ref) {
855
+ var _ref$baseURL = _ref.baseURL,
856
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
857
+ urlParams = _ref.urlParams,
858
+ body = _ref.body,
859
+ headers = _ref.headers;
860
+ return axios.patch("/api/deal/status/prepaid/" + urlParams.id, body, {
861
+ baseURL: baseURL,
862
+ headers: _extends({
863
+ Accept: 'application/json',
864
+ 'Content-Type': 'application/json'
865
+ }, headers),
866
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
867
+ return data.success ? data.data : data.data.error;
868
+ }])
869
+ }).then(function (res) {
870
+ return res;
871
+ })["catch"](function (err) {
872
+ throw err;
873
+ });
874
+ }
875
+
876
+ function setDealRegisteredStateRequest(_ref) {
877
+ var _ref$baseURL = _ref.baseURL,
878
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
879
+ urlParams = _ref.urlParams,
880
+ body = _ref.body,
881
+ headers = _ref.headers;
882
+ return axios.patch("/api/deal/status/registered/" + urlParams.id, body, {
883
+ baseURL: baseURL,
884
+ headers: _extends({
885
+ Accept: 'application/json',
886
+ 'Content-Type': 'application/json'
887
+ }, headers),
888
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
889
+ return data.success ? data.data : data.data.error;
890
+ }])
891
+ }).then(function (res) {
892
+ return res;
893
+ })["catch"](function (err) {
894
+ throw err;
895
+ });
896
+ }
897
+
898
+ function setDealSignPlannedStateRequest(_ref) {
899
+ var _ref$baseURL = _ref.baseURL,
900
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
901
+ urlParams = _ref.urlParams,
902
+ body = _ref.body,
903
+ headers = _ref.headers;
904
+ return axios.patch("/api/deal/status/deal-planned/" + urlParams.id, body, {
905
+ baseURL: baseURL,
906
+ headers: _extends({
907
+ Accept: 'application/json',
908
+ 'Content-Type': 'application/json'
909
+ }, headers),
910
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
911
+ return data.success ? data.data : data.data.error;
912
+ }])
913
+ }).then(function (res) {
914
+ return res;
915
+ })["catch"](function (err) {
916
+ throw err;
917
+ });
918
+ }
919
+
920
+ function setDealSignedStateRequest(_ref) {
921
+ var _ref$baseURL = _ref.baseURL,
922
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
923
+ urlParams = _ref.urlParams,
924
+ body = _ref.body,
925
+ headers = _ref.headers;
926
+ return axios.patch("/api/deal/status/deal-signed/" + urlParams.id, body, {
927
+ baseURL: baseURL,
928
+ headers: _extends({
929
+ Accept: 'application/json',
930
+ 'Content-Type': 'application/json'
931
+ }, headers),
932
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
933
+ return data.success ? data.data : data.data.error;
934
+ }])
935
+ }).then(function (res) {
936
+ return res;
937
+ })["catch"](function (err) {
938
+ throw err;
939
+ });
940
+ }
941
+
854
942
  function findExpertsRequest(_ref) {
855
943
  var _ref$baseURL = _ref.baseURL,
856
944
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -3164,6 +3252,42 @@ var Api = function Api(baseURL) {
3164
3252
  headers: headers,
3165
3253
  baseURL: _this.baseURL
3166
3254
  });
3255
+ };
3256
+
3257
+ this.setDealPrepaymentState = function (urlParams, body, headers) {
3258
+ return setDealPrepaymentStateRequest({
3259
+ urlParams: urlParams,
3260
+ body: body,
3261
+ headers: headers,
3262
+ baseURL: _this.baseURL
3263
+ });
3264
+ };
3265
+
3266
+ this.setDealRegisteredState = function (urlParams, body, headers) {
3267
+ return setDealRegisteredStateRequest({
3268
+ urlParams: urlParams,
3269
+ body: body,
3270
+ headers: headers,
3271
+ baseURL: _this.baseURL
3272
+ });
3273
+ };
3274
+
3275
+ this.setDealSignedState = function (urlParams, body, headers) {
3276
+ return setDealSignedStateRequest({
3277
+ urlParams: urlParams,
3278
+ body: body,
3279
+ headers: headers,
3280
+ baseURL: _this.baseURL
3281
+ });
3282
+ };
3283
+
3284
+ this.setDealSignPlannedState = function (urlParams, body, headers) {
3285
+ return setDealSignPlannedStateRequest({
3286
+ urlParams: urlParams,
3287
+ body: body,
3288
+ headers: headers,
3289
+ baseURL: _this.baseURL
3290
+ });
3167
3291
  }; // expert
3168
3292
 
3169
3293
 
@@ -3558,6 +3682,10 @@ var index = {
3558
3682
  findDealCategorizedFilesRequest: findDealCategorizedFilesRequest,
3559
3683
  terminateDealRequest: terminateDealRequest,
3560
3684
  updateDealRequest: updateDealRequest,
3685
+ setDealPrepaymentStateRequest: setDealPrepaymentStateRequest,
3686
+ setDealRegisteredStateRequest: setDealRegisteredStateRequest,
3687
+ setDealSignPlannedStateRequest: setDealSignPlannedStateRequest,
3688
+ setDealSignedStateRequest: setDealSignedStateRequest,
3561
3689
  findExpertsRequest: findExpertsRequest,
3562
3690
  findPublishedExpertsRequest: findPublishedExpertsRequest,
3563
3691
  findExpertByIdRequest: findExpertByIdRequest,