@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.
- package/CHANGELOG.md +24 -0
- package/dist/api-queries.cjs.development.js +31 -27
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +31 -27
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/availableFunds/updateAvailableFunds/index.d.ts +1 -0
- package/dist/clients/v1/api/index.d.ts +1 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestById/index.d.ts +5 -1
- package/dist/clients/v1/api/serviceRequest/findServiceRequestShortInfoById/index.d.ts +34 -0
- package/dist/clients/v1/dictionaries/AvailableFunds.d.ts +1 -20
- package/dist/clients/v1/index.d.ts +1 -0
- package/dist/clients/v1/types/AvailableFunds.d.ts +0 -19
- package/package.json +1 -1
- package/src/clients/v1/api/availableFunds/updateAvailableFunds/index.ts +1 -0
- package/src/clients/v1/api/index.ts +1 -0
- package/src/clients/v1/api/serviceRequest/findServiceRequestById/index.ts +2 -2
- package/src/clients/v1/api/serviceRequest/findServiceRequestShortInfoById/index.ts +45 -0
- package/src/clients/v1/dictionaries/AvailableFunds.ts +0 -20
- package/src/clients/v1/index.ts +7 -0
- package/src/clients/v1/types/AvailableFunds.ts +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v0.1.96 (Mon Nov 29 2021)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Ручка получения короткой инфы о зоу по id [#30](https://github.com/homeappcorporate/api-queries/pull/30) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.1.95 (Mon Nov 29 2021)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Убрал ненужный словарь AvailableFunds [#31](https://github.com/homeappcorporate/api-queries/pull/31) ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Alexander Pavlov ([@alexandropavlov](https://github.com/alexandropavlov))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v0.1.94 (Fri Nov 26 2021)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -759,8 +759,7 @@ function findServiceRequestByIdRequest(_ref) {
|
|
|
759
759
|
return axios.get("/api/service-request/" + urlParams.id, {
|
|
760
760
|
baseURL: baseURL,
|
|
761
761
|
headers: _extends({
|
|
762
|
-
Accept: 'application/json'
|
|
763
|
-
'Content-Type': 'application/json'
|
|
762
|
+
Accept: 'application/json'
|
|
764
763
|
}, headers),
|
|
765
764
|
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
766
765
|
return data.success ? data.data : data.data.error;
|
|
@@ -842,6 +841,26 @@ function findServiceRequestsRequest(_ref) {
|
|
|
842
841
|
});
|
|
843
842
|
}
|
|
844
843
|
|
|
844
|
+
function findServiceRequestShortInfoByIdRequest(_ref) {
|
|
845
|
+
var _ref$baseURL = _ref.baseURL,
|
|
846
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
847
|
+
urlParams = _ref.urlParams,
|
|
848
|
+
headers = _ref.headers;
|
|
849
|
+
return axios.get("/api/service-request/short/" + urlParams.id, {
|
|
850
|
+
baseURL: baseURL,
|
|
851
|
+
headers: _extends({
|
|
852
|
+
Accept: 'application/json'
|
|
853
|
+
}, headers),
|
|
854
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
855
|
+
return data.success ? data.data : data.data.error;
|
|
856
|
+
}])
|
|
857
|
+
}).then(function (res) {
|
|
858
|
+
return res;
|
|
859
|
+
})["catch"](function (err) {
|
|
860
|
+
throw err;
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
|
|
845
864
|
function findServiceRequestCategorizedFilesRequest(_ref) {
|
|
846
865
|
var _ref$baseURL = _ref.baseURL,
|
|
847
866
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -1150,28 +1169,6 @@ var AvailableFundsIncomeType;
|
|
|
1150
1169
|
AvailableFundsIncomeType["Other"] = "other";
|
|
1151
1170
|
})(AvailableFundsIncomeType || (AvailableFundsIncomeType = {}));
|
|
1152
1171
|
|
|
1153
|
-
var AvailableFundsCommonPaymentType;
|
|
1154
|
-
|
|
1155
|
-
(function (AvailableFundsCommonPaymentType) {
|
|
1156
|
-
AvailableFundsCommonPaymentType["AdvancePaymentUnderTheAdvanceAgreement"] = "advance_payment_under_the_advance_agreement";
|
|
1157
|
-
AvailableFundsCommonPaymentType["BillOfCredit"] = "bill_of_credit";
|
|
1158
|
-
AvailableFundsCommonPaymentType["BonusPaymentToMentor"] = "bonus_payment_to_mentor";
|
|
1159
|
-
AvailableFundsCommonPaymentType["BonusPaymentToTeamlead"] = "bonus_payment_to_teamlead";
|
|
1160
|
-
AvailableFundsCommonPaymentType["BonusToExpert"] = "bonus_to_expert";
|
|
1161
|
-
AvailableFundsCommonPaymentType["BonusToTrainee"] = "bonus_to_trainee";
|
|
1162
|
-
AvailableFundsCommonPaymentType["ChargingBankAccount"] = "charging_bank_account";
|
|
1163
|
-
AvailableFundsCommonPaymentType["ClosingDeal"] = "closing_deal";
|
|
1164
|
-
AvailableFundsCommonPaymentType["LegalSupportPayment"] = "legal_support_payment";
|
|
1165
|
-
AvailableFundsCommonPaymentType["LetterOfGuarantee"] = "letter_of_guarantee";
|
|
1166
|
-
AvailableFundsCommonPaymentType["OtherPayments"] = "other_payments";
|
|
1167
|
-
AvailableFundsCommonPaymentType["PartnerCharges"] = "partner_charges";
|
|
1168
|
-
AvailableFundsCommonPaymentType["Prepayment"] = "prepayment";
|
|
1169
|
-
AvailableFundsCommonPaymentType["RealtyLegalCheck"] = "realty_legal_check";
|
|
1170
|
-
AvailableFundsCommonPaymentType["RefundOfAdvance"] = "refund_of_advance";
|
|
1171
|
-
AvailableFundsCommonPaymentType["SafeDepositBox"] = "safe_deposit_box";
|
|
1172
|
-
AvailableFundsCommonPaymentType["SecurityPayment"] = "security_payment";
|
|
1173
|
-
})(AvailableFundsCommonPaymentType || (AvailableFundsCommonPaymentType = {}));
|
|
1174
|
-
|
|
1175
1172
|
var AvailableFundsCostType;
|
|
1176
1173
|
|
|
1177
1174
|
(function (AvailableFundsCostType) {
|
|
@@ -1844,11 +1841,10 @@ var AddressBTIParamsDictionary = {
|
|
|
1844
1841
|
HeatingType: (_HeatingType = {}, _HeatingType[AddressBTIParamsHeatingType.None] = 'Нет', _HeatingType[AddressBTIParamsHeatingType.Central] = 'Центральное', _HeatingType[AddressBTIParamsHeatingType.Local] = 'Отдельное', _HeatingType[AddressBTIParamsHeatingType.Gas] = 'Газовое', _HeatingType[AddressBTIParamsHeatingType.Electricity] = 'Электрическое', _HeatingType[AddressBTIParamsHeatingType.Liquid] = 'Жидкое топливо', _HeatingType)
|
|
1845
1842
|
};
|
|
1846
1843
|
|
|
1847
|
-
var _IncomeType, _CostType,
|
|
1844
|
+
var _IncomeType, _CostType, _PaymentType, _RealtyType, _PayerType;
|
|
1848
1845
|
var AvailableFundsDictionary = {
|
|
1849
1846
|
IncomeType: (_IncomeType = {}, _IncomeType[AvailableFundsIncomeType.Cashbox] = 'Касса', _IncomeType[AvailableFundsIncomeType.CheckingAccount] = 'Расчетный счет', _IncomeType[AvailableFundsIncomeType.Other] = 'Прочее', _IncomeType),
|
|
1850
1847
|
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),
|
|
1851
|
-
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),
|
|
1852
1848
|
PaymentType: (_PaymentType = {}, _PaymentType[AvailableFundsPaymentType.AdvancePaymentUnderTheAdvanceAgreement] = 'Аванс по соглашению об авансе', _PaymentType[AvailableFundsPaymentType.ClosingDeal] = 'Закрытие сделки', _PaymentType[AvailableFundsPaymentType.LetterOfGuarantee] = 'Гарантийное письмо', _PaymentType[AvailableFundsPaymentType.OtherPayment] = 'Прочие поступления', _PaymentType[AvailableFundsPaymentType.Prepayment] = 'Предоплата', _PaymentType[AvailableFundsPaymentType.SecurityPayment] = 'Обеспечительный платеж', _PaymentType),
|
|
1853
1849
|
RealtyType: (_RealtyType = {}, _RealtyType[AvailableFundsRealtyType.Elite] = 'Элитная', _RealtyType[AvailableFundsRealtyType.Foreign] = 'Зарубежная', _RealtyType[AvailableFundsRealtyType.NewFlatDeveloper] = 'Новостройки/Застройщик', _RealtyType[AvailableFundsRealtyType.Resale] = 'Вторичка', _RealtyType),
|
|
1854
1850
|
PayerType: (_PayerType = {}, _PayerType[AvailableFundsPayerType.Common] = 'Общий', _PayerType[AvailableFundsPayerType.Homeapp] = 'Homeapp', _PayerType[AvailableFundsPayerType.SalesHead] = 'РОП', _PayerType[AvailableFundsPayerType.Expert] = 'Эксперт', _PayerType)
|
|
@@ -2220,6 +2216,14 @@ var Api = function Api(baseURL) {
|
|
|
2220
2216
|
});
|
|
2221
2217
|
};
|
|
2222
2218
|
|
|
2219
|
+
this.findServiceRequestShortInfoById = function (urlParams, headers) {
|
|
2220
|
+
return findServiceRequestShortInfoByIdRequest({
|
|
2221
|
+
urlParams: urlParams,
|
|
2222
|
+
headers: headers,
|
|
2223
|
+
baseURL: _this.baseURL
|
|
2224
|
+
});
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2223
2227
|
this.findServiceRequestCategorizedFiles = function (urlParams, params, headers) {
|
|
2224
2228
|
return findServiceRequestCategorizedFilesRequest({
|
|
2225
2229
|
urlParams: urlParams,
|
|
@@ -2340,6 +2344,7 @@ var index = {
|
|
|
2340
2344
|
findServiceRequestByIdRequest: findServiceRequestByIdRequest,
|
|
2341
2345
|
findServiceRequestDuplicatesRequest: findServiceRequestDuplicatesRequest,
|
|
2342
2346
|
findServiceRequestsRequest: findServiceRequestsRequest,
|
|
2347
|
+
findServiceRequestShortInfoByIdRequest: findServiceRequestShortInfoByIdRequest,
|
|
2343
2348
|
findServiceRequestCategorizedFilesRequest: findServiceRequestCategorizedFilesRequest,
|
|
2344
2349
|
sendServiceRequestToModerationRequest: sendServiceRequestToModerationRequest,
|
|
2345
2350
|
startServiceRequestModerationRequest: startServiceRequestModerationRequest,
|
|
@@ -2371,7 +2376,6 @@ var index = {
|
|
|
2371
2376
|
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial; },
|
|
2372
2377
|
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType; },
|
|
2373
2378
|
get AvailableFundsIncomeType () { return AvailableFundsIncomeType; },
|
|
2374
|
-
get AvailableFundsCommonPaymentType () { return AvailableFundsCommonPaymentType; },
|
|
2375
2379
|
get AvailableFundsCostType () { return AvailableFundsCostType; },
|
|
2376
2380
|
get AvailableFundsPaymentType () { return AvailableFundsPaymentType; },
|
|
2377
2381
|
get AvailableFundsRealtyType () { return AvailableFundsRealtyType; },
|