@hapl/api-queries 0.1.94 → 0.1.97--canary.32.ebc55fb.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.
@@ -753,8 +753,7 @@ function findServiceRequestByIdRequest(_ref) {
753
753
  return axios.get("/api/service-request/" + urlParams.id, {
754
754
  baseURL: baseURL,
755
755
  headers: _extends({
756
- Accept: 'application/json',
757
- 'Content-Type': 'application/json'
756
+ Accept: 'application/json'
758
757
  }, headers),
759
758
  transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
760
759
  return data.success ? data.data : data.data.error;
@@ -836,6 +835,26 @@ function findServiceRequestsRequest(_ref) {
836
835
  });
837
836
  }
838
837
 
838
+ function findServiceRequestShortInfoByIdRequest(_ref) {
839
+ var _ref$baseURL = _ref.baseURL,
840
+ baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
841
+ urlParams = _ref.urlParams,
842
+ headers = _ref.headers;
843
+ return axios.get("/api/service-request/short/" + urlParams.id, {
844
+ baseURL: baseURL,
845
+ headers: _extends({
846
+ Accept: 'application/json'
847
+ }, headers),
848
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
849
+ return data.success ? data.data : data.data.error;
850
+ }])
851
+ }).then(function (res) {
852
+ return res;
853
+ })["catch"](function (err) {
854
+ throw err;
855
+ });
856
+ }
857
+
839
858
  function findServiceRequestCategorizedFilesRequest(_ref) {
840
859
  var _ref$baseURL = _ref.baseURL,
841
860
  baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
@@ -1144,28 +1163,6 @@ var AvailableFundsIncomeType;
1144
1163
  AvailableFundsIncomeType["Other"] = "other";
1145
1164
  })(AvailableFundsIncomeType || (AvailableFundsIncomeType = {}));
1146
1165
 
1147
- var AvailableFundsCommonPaymentType;
1148
-
1149
- (function (AvailableFundsCommonPaymentType) {
1150
- AvailableFundsCommonPaymentType["AdvancePaymentUnderTheAdvanceAgreement"] = "advance_payment_under_the_advance_agreement";
1151
- AvailableFundsCommonPaymentType["BillOfCredit"] = "bill_of_credit";
1152
- AvailableFundsCommonPaymentType["BonusPaymentToMentor"] = "bonus_payment_to_mentor";
1153
- AvailableFundsCommonPaymentType["BonusPaymentToTeamlead"] = "bonus_payment_to_teamlead";
1154
- AvailableFundsCommonPaymentType["BonusToExpert"] = "bonus_to_expert";
1155
- AvailableFundsCommonPaymentType["BonusToTrainee"] = "bonus_to_trainee";
1156
- AvailableFundsCommonPaymentType["ChargingBankAccount"] = "charging_bank_account";
1157
- AvailableFundsCommonPaymentType["ClosingDeal"] = "closing_deal";
1158
- AvailableFundsCommonPaymentType["LegalSupportPayment"] = "legal_support_payment";
1159
- AvailableFundsCommonPaymentType["LetterOfGuarantee"] = "letter_of_guarantee";
1160
- AvailableFundsCommonPaymentType["OtherPayments"] = "other_payments";
1161
- AvailableFundsCommonPaymentType["PartnerCharges"] = "partner_charges";
1162
- AvailableFundsCommonPaymentType["Prepayment"] = "prepayment";
1163
- AvailableFundsCommonPaymentType["RealtyLegalCheck"] = "realty_legal_check";
1164
- AvailableFundsCommonPaymentType["RefundOfAdvance"] = "refund_of_advance";
1165
- AvailableFundsCommonPaymentType["SafeDepositBox"] = "safe_deposit_box";
1166
- AvailableFundsCommonPaymentType["SecurityPayment"] = "security_payment";
1167
- })(AvailableFundsCommonPaymentType || (AvailableFundsCommonPaymentType = {}));
1168
-
1169
1166
  var AvailableFundsCostType;
1170
1167
 
1171
1168
  (function (AvailableFundsCostType) {
@@ -1838,11 +1835,10 @@ var AddressBTIParamsDictionary = {
1838
1835
  HeatingType: (_HeatingType = {}, _HeatingType[AddressBTIParamsHeatingType.None] = 'Нет', _HeatingType[AddressBTIParamsHeatingType.Central] = 'Центральное', _HeatingType[AddressBTIParamsHeatingType.Local] = 'Отдельное', _HeatingType[AddressBTIParamsHeatingType.Gas] = 'Газовое', _HeatingType[AddressBTIParamsHeatingType.Electricity] = 'Электрическое', _HeatingType[AddressBTIParamsHeatingType.Liquid] = 'Жидкое топливо', _HeatingType)
1839
1836
  };
1840
1837
 
1841
- var _IncomeType, _CostType, _CommonPaymentType, _PaymentType, _RealtyType, _PayerType;
1838
+ var _IncomeType, _CostType, _PaymentType, _RealtyType, _PayerType;
1842
1839
  var AvailableFundsDictionary = {
1843
1840
  IncomeType: (_IncomeType = {}, _IncomeType[AvailableFundsIncomeType.Cashbox] = 'Касса', _IncomeType[AvailableFundsIncomeType.CheckingAccount] = 'Расчетный счет', _IncomeType[AvailableFundsIncomeType.Other] = 'Прочее', _IncomeType),
1844
1841
  CostType: (_CostType = {}, _CostType[AvailableFundsCostType.BillOfCredit] = 'Оплата аккредитива', _CostType[AvailableFundsCostType.BonusPaymentToMentor] = 'Выплата бонуса наставнику', _CostType[AvailableFundsCostType.BonusPaymentToTeamlead] = 'Выплата бонуса РОПу', _CostType[AvailableFundsCostType.BonusToTrainee] = 'Выплата бонуса стажеру', _CostType[AvailableFundsCostType.BonusToExpert] = 'Выплата бонуса эксперту', _CostType[AvailableFundsCostType.ChargingBankAccount] = 'Внесение на р/с', _CostType[AvailableFundsCostType.LegalSupportPayment] = 'Внесение за альтернативный объект', _CostType[AvailableFundsCostType.OtherPayments] = 'Прочие расходы', _CostType[AvailableFundsCostType.PartnerCharges] = 'Партнерские расходы', _CostType[AvailableFundsCostType.RefundOfAdvance] = 'Возврат аванса', _CostType[AvailableFundsCostType.RealtyLegalCheck] = 'Проверка объектов', _CostType[AvailableFundsCostType.SafeDepositBox] = 'Оплата банковской ячейки', _CostType),
1845
- CommonPaymentType: (_CommonPaymentType = {}, _CommonPaymentType[AvailableFundsCommonPaymentType.AdvancePaymentUnderTheAdvanceAgreement] = 'Аванс по соглашению об авансе', _CommonPaymentType[AvailableFundsCommonPaymentType.BillOfCredit] = 'Оплата аккредитива', _CommonPaymentType[AvailableFundsCommonPaymentType.BonusPaymentToMentor] = 'Выплата бонуса наставнику', _CommonPaymentType[AvailableFundsCommonPaymentType.BonusPaymentToTeamlead] = 'Выплата бонуса РОПу', _CommonPaymentType[AvailableFundsCommonPaymentType.BonusToTrainee] = 'Выплата бонуса стажеру', _CommonPaymentType[AvailableFundsCommonPaymentType.BonusToExpert] = 'Выплата бонуса эксперту', _CommonPaymentType[AvailableFundsCommonPaymentType.ChargingBankAccount] = 'Внесение на р/с', _CommonPaymentType[AvailableFundsCommonPaymentType.ClosingDeal] = 'Закрытие сделки', _CommonPaymentType[AvailableFundsCommonPaymentType.LegalSupportPayment] = 'Внесение за альтернативный объект', _CommonPaymentType[AvailableFundsCommonPaymentType.LetterOfGuarantee] = 'Гарантийное письмо', _CommonPaymentType[AvailableFundsCommonPaymentType.OtherPayments] = 'Прочие расходы', _CommonPaymentType[AvailableFundsCommonPaymentType.PartnerCharges] = 'Партнерские расходы', _CommonPaymentType[AvailableFundsCommonPaymentType.Prepayment] = 'Предоплата', _CommonPaymentType[AvailableFundsCommonPaymentType.RealtyLegalCheck] = 'Проверка объектов', _CommonPaymentType[AvailableFundsCommonPaymentType.RefundOfAdvance] = 'Возврат аванса', _CommonPaymentType[AvailableFundsCommonPaymentType.SafeDepositBox] = 'Оплата банковской ячейки', _CommonPaymentType[AvailableFundsCommonPaymentType.SecurityPayment] = 'Обеспечительный платеж', _CommonPaymentType),
1846
1842
  PaymentType: (_PaymentType = {}, _PaymentType[AvailableFundsPaymentType.AdvancePaymentUnderTheAdvanceAgreement] = 'Аванс по соглашению об авансе', _PaymentType[AvailableFundsPaymentType.ClosingDeal] = 'Закрытие сделки', _PaymentType[AvailableFundsPaymentType.LetterOfGuarantee] = 'Гарантийное письмо', _PaymentType[AvailableFundsPaymentType.OtherPayment] = 'Прочие поступления', _PaymentType[AvailableFundsPaymentType.Prepayment] = 'Предоплата', _PaymentType[AvailableFundsPaymentType.SecurityPayment] = 'Обеспечительный платеж', _PaymentType),
1847
1843
  RealtyType: (_RealtyType = {}, _RealtyType[AvailableFundsRealtyType.Elite] = 'Элитная', _RealtyType[AvailableFundsRealtyType.Foreign] = 'Зарубежная', _RealtyType[AvailableFundsRealtyType.NewFlatDeveloper] = 'Новостройки/Застройщик', _RealtyType[AvailableFundsRealtyType.Resale] = 'Вторичка', _RealtyType),
1848
1844
  PayerType: (_PayerType = {}, _PayerType[AvailableFundsPayerType.Common] = 'Общий', _PayerType[AvailableFundsPayerType.Homeapp] = 'Homeapp', _PayerType[AvailableFundsPayerType.SalesHead] = 'РОП', _PayerType[AvailableFundsPayerType.Expert] = 'Эксперт', _PayerType)
@@ -2214,6 +2210,14 @@ var Api = function Api(baseURL) {
2214
2210
  });
2215
2211
  };
2216
2212
 
2213
+ this.findServiceRequestShortInfoById = function (urlParams, headers) {
2214
+ return findServiceRequestShortInfoByIdRequest({
2215
+ urlParams: urlParams,
2216
+ headers: headers,
2217
+ baseURL: _this.baseURL
2218
+ });
2219
+ };
2220
+
2217
2221
  this.findServiceRequestCategorizedFiles = function (urlParams, params, headers) {
2218
2222
  return findServiceRequestCategorizedFilesRequest({
2219
2223
  urlParams: urlParams,
@@ -2334,6 +2338,7 @@ var index = {
2334
2338
  findServiceRequestByIdRequest: findServiceRequestByIdRequest,
2335
2339
  findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
2336
2340
  findServiceRequestsRequest: findServiceRequestsRequest,
2341
+ findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
2337
2342
  findServiceRequestCategorizedFilesRequest: findServiceRequestCategorizedFilesRequest,
2338
2343
  sendServiceRequestToModerationRequest: sendServiceRequestToModerationRequest,
2339
2344
  startServiceRequestModerationRequest: startServiceRequestModerationRequest,
@@ -2365,7 +2370,6 @@ var index = {
2365
2370
  get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial; },
2366
2371
  get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType; },
2367
2372
  get AvailableFundsIncomeType () { return AvailableFundsIncomeType; },
2368
- get AvailableFundsCommonPaymentType () { return AvailableFundsCommonPaymentType; },
2369
2373
  get AvailableFundsCostType () { return AvailableFundsCostType; },
2370
2374
  get AvailableFundsPaymentType () { return AvailableFundsPaymentType; },
2371
2375
  get AvailableFundsRealtyType () { return AvailableFundsRealtyType; },