@hapl/api-queries 0.1.92 → 0.1.94
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 +48 -9
- 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 +48 -9
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/availableFunds/createAvailableFunds/index.d.ts +3 -1
- package/dist/clients/v1/api/availableFunds/findAvailableFunds/index.d.ts +2 -2
- package/dist/clients/v1/api/availableFunds/updateAvailableFunds/index.d.ts +2 -1
- package/dist/clients/v1/dictionaries/AvailableFunds.d.ts +30 -1
- package/dist/clients/v1/dictionaries/ServiceRequestCategorizedFile.d.ts +2 -0
- package/dist/clients/v1/types/AvailableFunds.d.ts +32 -2
- package/dist/clients/v1/types/ServiceRequestCategorizedFile.d.ts +2 -0
- package/package.json +1 -1
- package/src/clients/v1/api/availableFunds/createAvailableFunds/index.ts +3 -0
- package/src/clients/v1/api/availableFunds/deleteAvailableFunds/index.ts +1 -5
- package/src/clients/v1/api/availableFunds/findAvailableFunds/index.ts +1 -1
- package/src/clients/v1/api/availableFunds/updateAvailableFunds/index.ts +3 -5
- package/src/clients/v1/dictionaries/AvailableFunds.ts +31 -0
- package/src/clients/v1/dictionaries/ServiceRequestCategorizedFile.ts +2 -0
- package/src/clients/v1/types/AvailableFunds.ts +33 -1
- package/src/clients/v1/types/ServiceRequestCategorizedFile.ts +2 -0
package/dist/api-queries.esm.js
CHANGED
|
@@ -158,8 +158,7 @@ function updateAvailableFundsRequest(_ref) {
|
|
|
158
158
|
'Content-Type': 'application/json'
|
|
159
159
|
}, headers),
|
|
160
160
|
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
161
|
-
|
|
162
|
-
return data.data.error;
|
|
161
|
+
return data.success ? data.data : data.data.error;
|
|
163
162
|
}])
|
|
164
163
|
}).then(function (res) {
|
|
165
164
|
return res;
|
|
@@ -179,8 +178,7 @@ function deleteAvailableFundsRequest(_ref) {
|
|
|
179
178
|
Accept: 'application/json'
|
|
180
179
|
}, headers),
|
|
181
180
|
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
182
|
-
|
|
183
|
-
return data.data.error;
|
|
181
|
+
return data.success ? data.data : data.data.error;
|
|
184
182
|
}])
|
|
185
183
|
}).then(function (res) {
|
|
186
184
|
return res;
|
|
@@ -1146,17 +1144,43 @@ var AvailableFundsIncomeType;
|
|
|
1146
1144
|
AvailableFundsIncomeType["Other"] = "other";
|
|
1147
1145
|
})(AvailableFundsIncomeType || (AvailableFundsIncomeType = {}));
|
|
1148
1146
|
|
|
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
|
+
|
|
1149
1169
|
var AvailableFundsCostType;
|
|
1150
1170
|
|
|
1151
1171
|
(function (AvailableFundsCostType) {
|
|
1172
|
+
AvailableFundsCostType["BillOfCredit"] = "bill_of_credit";
|
|
1152
1173
|
AvailableFundsCostType["BonusPaymentToMentor"] = "bonus_payment_to_mentor";
|
|
1153
1174
|
AvailableFundsCostType["BonusPaymentToTeamlead"] = "bonus_payment_to_teamlead";
|
|
1154
|
-
AvailableFundsCostType["BonusToTrainee"] = "bonus_to_trainee";
|
|
1155
1175
|
AvailableFundsCostType["BonusToExpert"] = "bonus_to_expert";
|
|
1176
|
+
AvailableFundsCostType["BonusToTrainee"] = "bonus_to_trainee";
|
|
1156
1177
|
AvailableFundsCostType["ChargingBankAccount"] = "charging_bank_account";
|
|
1157
1178
|
AvailableFundsCostType["LegalSupportPayment"] = "legal_support_payment";
|
|
1158
1179
|
AvailableFundsCostType["OtherPayments"] = "other_payments";
|
|
1180
|
+
AvailableFundsCostType["PartnerCharges"] = "partner_charges";
|
|
1181
|
+
AvailableFundsCostType["RealtyLegalCheck"] = "realty_legal_check";
|
|
1159
1182
|
AvailableFundsCostType["RefundOfAdvance"] = "refund_of_advance";
|
|
1183
|
+
AvailableFundsCostType["SafeDepositBox"] = "safe_deposit_box";
|
|
1160
1184
|
})(AvailableFundsCostType || (AvailableFundsCostType = {}));
|
|
1161
1185
|
|
|
1162
1186
|
var AvailableFundsPaymentType;
|
|
@@ -1179,6 +1203,15 @@ var AvailableFundsRealtyType;
|
|
|
1179
1203
|
AvailableFundsRealtyType["Resale"] = "resale";
|
|
1180
1204
|
})(AvailableFundsRealtyType || (AvailableFundsRealtyType = {}));
|
|
1181
1205
|
|
|
1206
|
+
var AvailableFundsPayerType;
|
|
1207
|
+
|
|
1208
|
+
(function (AvailableFundsPayerType) {
|
|
1209
|
+
AvailableFundsPayerType["Common"] = "common";
|
|
1210
|
+
AvailableFundsPayerType["Homeapp"] = "homeapp";
|
|
1211
|
+
AvailableFundsPayerType["SalesHead"] = "sales_head";
|
|
1212
|
+
AvailableFundsPayerType["Expert"] = "expert";
|
|
1213
|
+
})(AvailableFundsPayerType || (AvailableFundsPayerType = {}));
|
|
1214
|
+
|
|
1182
1215
|
var BuyerStatus;
|
|
1183
1216
|
|
|
1184
1217
|
(function (BuyerStatus) {
|
|
@@ -1624,6 +1657,8 @@ var ServiceRequestSource;
|
|
|
1624
1657
|
var ServiceRequestCategorizedFileCategory;
|
|
1625
1658
|
|
|
1626
1659
|
(function (ServiceRequestCategorizedFileCategory) {
|
|
1660
|
+
ServiceRequestCategorizedFileCategory["AdvAgreement"] = "adv_agreement";
|
|
1661
|
+
ServiceRequestCategorizedFileCategory["AdvanceForm"] = "advance_form";
|
|
1627
1662
|
ServiceRequestCategorizedFileCategory["CheckList"] = "check_list";
|
|
1628
1663
|
ServiceRequestCategorizedFileCategory["Contract"] = "contract";
|
|
1629
1664
|
ServiceRequestCategorizedFileCategory["DeleteReason"] = "deleteReason";
|
|
@@ -1803,12 +1838,14 @@ var AddressBTIParamsDictionary = {
|
|
|
1803
1838
|
HeatingType: (_HeatingType = {}, _HeatingType[AddressBTIParamsHeatingType.None] = 'Нет', _HeatingType[AddressBTIParamsHeatingType.Central] = 'Центральное', _HeatingType[AddressBTIParamsHeatingType.Local] = 'Отдельное', _HeatingType[AddressBTIParamsHeatingType.Gas] = 'Газовое', _HeatingType[AddressBTIParamsHeatingType.Electricity] = 'Электрическое', _HeatingType[AddressBTIParamsHeatingType.Liquid] = 'Жидкое топливо', _HeatingType)
|
|
1804
1839
|
};
|
|
1805
1840
|
|
|
1806
|
-
var _IncomeType, _CostType, _PaymentType, _RealtyType;
|
|
1841
|
+
var _IncomeType, _CostType, _CommonPaymentType, _PaymentType, _RealtyType, _PayerType;
|
|
1807
1842
|
var AvailableFundsDictionary = {
|
|
1808
1843
|
IncomeType: (_IncomeType = {}, _IncomeType[AvailableFundsIncomeType.Cashbox] = 'Касса', _IncomeType[AvailableFundsIncomeType.CheckingAccount] = 'Расчетный счет', _IncomeType[AvailableFundsIncomeType.Other] = 'Прочее', _IncomeType),
|
|
1809
|
-
CostType: (_CostType = {}, _CostType[AvailableFundsCostType.BonusPaymentToMentor] = 'Выплата бонуса наставнику', _CostType[AvailableFundsCostType.BonusPaymentToTeamlead] = 'Выплата бонуса РОПу', _CostType[AvailableFundsCostType.BonusToTrainee] = 'Выплата бонуса стажеру', _CostType[AvailableFundsCostType.BonusToExpert] = 'Выплата бонуса эксперту', _CostType[AvailableFundsCostType.ChargingBankAccount] = 'Внесение на р/с', _CostType[AvailableFundsCostType.LegalSupportPayment] = 'Внесение за альтернативный объект', _CostType[AvailableFundsCostType.OtherPayments] = 'Прочие расходы', _CostType[AvailableFundsCostType.RefundOfAdvance] = 'Возврат аванса', _CostType),
|
|
1844
|
+
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),
|
|
1810
1846
|
PaymentType: (_PaymentType = {}, _PaymentType[AvailableFundsPaymentType.AdvancePaymentUnderTheAdvanceAgreement] = 'Аванс по соглашению об авансе', _PaymentType[AvailableFundsPaymentType.ClosingDeal] = 'Закрытие сделки', _PaymentType[AvailableFundsPaymentType.LetterOfGuarantee] = 'Гарантийное письмо', _PaymentType[AvailableFundsPaymentType.OtherPayment] = 'Прочие поступления', _PaymentType[AvailableFundsPaymentType.Prepayment] = 'Предоплата', _PaymentType[AvailableFundsPaymentType.SecurityPayment] = 'Обеспечительный платеж', _PaymentType),
|
|
1811
|
-
RealtyType: (_RealtyType = {}, _RealtyType[AvailableFundsRealtyType.Elite] = 'Элитная', _RealtyType[AvailableFundsRealtyType.Foreign] = 'Зарубежная', _RealtyType[AvailableFundsRealtyType.NewFlatDeveloper] = 'Новостройки/Застройщик', _RealtyType[AvailableFundsRealtyType.Resale] = 'Вторичка', _RealtyType)
|
|
1847
|
+
RealtyType: (_RealtyType = {}, _RealtyType[AvailableFundsRealtyType.Elite] = 'Элитная', _RealtyType[AvailableFundsRealtyType.Foreign] = 'Зарубежная', _RealtyType[AvailableFundsRealtyType.NewFlatDeveloper] = 'Новостройки/Застройщик', _RealtyType[AvailableFundsRealtyType.Resale] = 'Вторичка', _RealtyType),
|
|
1848
|
+
PayerType: (_PayerType = {}, _PayerType[AvailableFundsPayerType.Common] = 'Общий', _PayerType[AvailableFundsPayerType.Homeapp] = 'Homeapp', _PayerType[AvailableFundsPayerType.SalesHead] = 'РОП', _PayerType[AvailableFundsPayerType.Expert] = 'Эксперт', _PayerType)
|
|
1812
1849
|
};
|
|
1813
1850
|
|
|
1814
1851
|
var _BuyerStatus;
|
|
@@ -1893,7 +1930,7 @@ var ServiceRequestDictionary = {
|
|
|
1893
1930
|
|
|
1894
1931
|
var _Category$3;
|
|
1895
1932
|
var ServiceRequestCategorizedFileDictionary = {
|
|
1896
|
-
Category: (_Category$3 = {}, _Category$3[ServiceRequestCategorizedFileCategory.CheckList] = 'Чек-лист со встречи', _Category$3[ServiceRequestCategorizedFileCategory.Contract] = 'Договор оказания услуг', _Category$3[ServiceRequestCategorizedFileCategory.Kc] = 'Файлы от КЦ', _Category$3[ServiceRequestCategorizedFileCategory.Other] = 'Разное (ЗОУ)', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipCheckReport] = 'Отчет проверки собственника', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipJustification] = 'Основание права собственности', _Category$3[ServiceRequestCategorizedFileCategory.PassportClient] = 'Паспорта клиента (свид-ва о рождении)', _Category$3[ServiceRequestCategorizedFileCategory.Egrn] = 'ЕГРН', _Category$3[ServiceRequestCategorizedFileCategory.DeleteReason] = 'Является обоснованием закрытия контракта', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipTransfers] = 'Переходы собственности', _Category$3[ServiceRequestCategorizedFileCategory.Risk] = 'Проверка на риски', _Category$3)
|
|
1933
|
+
Category: (_Category$3 = {}, _Category$3[ServiceRequestCategorizedFileCategory.AdvAgreement] = 'Соглашение на рекламу', _Category$3[ServiceRequestCategorizedFileCategory.AdvanceForm] = 'Анкета на аванс', _Category$3[ServiceRequestCategorizedFileCategory.CheckList] = 'Чек-лист со встречи', _Category$3[ServiceRequestCategorizedFileCategory.Contract] = 'Договор оказания услуг', _Category$3[ServiceRequestCategorizedFileCategory.Kc] = 'Файлы от КЦ', _Category$3[ServiceRequestCategorizedFileCategory.Other] = 'Разное (ЗОУ)', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipCheckReport] = 'Отчет проверки собственника', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipJustification] = 'Основание права собственности', _Category$3[ServiceRequestCategorizedFileCategory.PassportClient] = 'Паспорта клиента (свид-ва о рождении)', _Category$3[ServiceRequestCategorizedFileCategory.Egrn] = 'ЕГРН', _Category$3[ServiceRequestCategorizedFileCategory.DeleteReason] = 'Является обоснованием закрытия контракта', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipTransfers] = 'Переходы собственности', _Category$3[ServiceRequestCategorizedFileCategory.Risk] = 'Проверка на риски', _Category$3)
|
|
1897
1934
|
};
|
|
1898
1935
|
|
|
1899
1936
|
var _Importance, _NotificationType, _Status$2;
|
|
@@ -2328,9 +2365,11 @@ var index = {
|
|
|
2328
2365
|
get AddressBTIParamsWallsMaterial () { return AddressBTIParamsWallsMaterial; },
|
|
2329
2366
|
get AddressBTIParamsHeatingType () { return AddressBTIParamsHeatingType; },
|
|
2330
2367
|
get AvailableFundsIncomeType () { return AvailableFundsIncomeType; },
|
|
2368
|
+
get AvailableFundsCommonPaymentType () { return AvailableFundsCommonPaymentType; },
|
|
2331
2369
|
get AvailableFundsCostType () { return AvailableFundsCostType; },
|
|
2332
2370
|
get AvailableFundsPaymentType () { return AvailableFundsPaymentType; },
|
|
2333
2371
|
get AvailableFundsRealtyType () { return AvailableFundsRealtyType; },
|
|
2372
|
+
get AvailableFundsPayerType () { return AvailableFundsPayerType; },
|
|
2334
2373
|
get BuyerStatus () { return BuyerStatus; },
|
|
2335
2374
|
get BuyerRealtyShowStatus () { return BuyerRealtyShowStatus; },
|
|
2336
2375
|
get CallType () { return CallType; },
|