simpleloan_api 1.2.46 → 1.2.47

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/README.md ADDED
@@ -0,0 +1,22 @@
1
+ ## Публикация в npm
2
+
3
+ Требуется `npm login` (публичный реестр npmjs.com, права на пакет `simpleloan_api`).
4
+
5
+ 1. Собрать проект:
6
+
7
+ ```sh
8
+ npm run build
9
+ ```
10
+
11
+ 2. Поднять версию — создаёт коммит `X.Y.Z` и тег `vX.Y.Z`:
12
+ ```sh
13
+ npm version patch # или minor / major
14
+ ```
15
+ 3. Опубликовать:
16
+ ```sh
17
+ npm publish
18
+ ```
19
+ 4. Запушить коммит и тег:
20
+ ```sh
21
+ git push --follow-tags
22
+ ```
package/dist/index.d.mts CHANGED
@@ -972,6 +972,436 @@ type VtbBankmFields = {
972
972
  };
973
973
  type Vtbbankm = VtbBankmMeta & VtbBankmFields;
974
974
 
975
+ type ApiResponse<T> = {
976
+ _code: number;
977
+ _message?: string;
978
+ _detail?: {
979
+ [param: string]: string[];
980
+ };
981
+ _data_total_size?: number;
982
+ _data?: T;
983
+ };
984
+ type SearchParams<F = Record<string, any>> = {
985
+ _filter?: F;
986
+ _page_size?: number;
987
+ _fields?: string[];
988
+ _start_index?: number;
989
+ _sort?: string[];
990
+ };
991
+ type WithData<T> = {
992
+ _data: T;
993
+ };
994
+ type PostParams<Body> = {
995
+ body: Body;
996
+ search?: SearchParams;
997
+ };
998
+ type PostParamsWithoutBody = {
999
+ search?: SearchParams;
1000
+ };
1001
+
1002
+ type AgentGetListBody = SearchParams<{
1003
+ status: 0 | 1;
1004
+ created_at__date__gte: string;
1005
+ created_at__date__lte: string;
1006
+ }>;
1007
+ type AgentActFile = {
1008
+ size: number;
1009
+ file: string;
1010
+ };
1011
+ type AgentAct = {
1012
+ id: number;
1013
+ agent_id: number;
1014
+ created_at: string;
1015
+ period_start: string;
1016
+ period_end: string;
1017
+ signed_at: string | null;
1018
+ status: number;
1019
+ act_file: AgentActFile;
1020
+ signed_act_file: AgentActFile | null;
1021
+ agent_fio: string;
1022
+ };
1023
+ type AgentActContract = {
1024
+ /** получить список актов агента */
1025
+ '/cabinet/agent/act/get_list/': {
1026
+ body: AgentGetListBody;
1027
+ response: ApiResponse<AgentAct[]>;
1028
+ };
1029
+ /** прикрепить подписанный скан */
1030
+ '/cabinet/agent/act/upload/': {
1031
+ body: FormData;
1032
+ response: ApiResponse<AgentAct>;
1033
+ };
1034
+ };
1035
+
1036
+ type BankdetailListFilter = {
1037
+ show_as_bank_account?: boolean;
1038
+ show_as_bankdetail?: boolean;
1039
+ };
1040
+ type BankDetailGetListBody = SearchParams<BankdetailListFilter>;
1041
+ type BankDetail = {
1042
+ account: string;
1043
+ bank1: string;
1044
+ bank2: string;
1045
+ bik: string;
1046
+ corr_account: string;
1047
+ id: number;
1048
+ inn: string;
1049
+ is_active: boolean;
1050
+ name: string;
1051
+ show_as_bank_account: boolean;
1052
+ show_as_bankdetail: boolean;
1053
+ show_as_payer_details: boolean;
1054
+ title: string;
1055
+ };
1056
+ type BankDetailContracts = {
1057
+ /**
1058
+ * Получить список банковских реквизитов.
1059
+ */
1060
+ '/cabinet/bankdetail/get_list/': {
1061
+ body: BankDetailGetListBody;
1062
+ response: ApiResponse<BankDetail[]>;
1063
+ };
1064
+ };
1065
+
1066
+ type BankReviseGenerateBody = {
1067
+ _data: {
1068
+ start_at: string;
1069
+ end_at: string;
1070
+ };
1071
+ };
1072
+ type BankReviseItem = {
1073
+ id: number;
1074
+ bank_revise_id: number | null;
1075
+ generalapp_id: number;
1076
+ bank: string;
1077
+ bankdetail_id: number | null;
1078
+ bank_account_id: number | null;
1079
+ payer_details_id: number | null;
1080
+ payment_order_number: string | null;
1081
+ imported_sum: number | null;
1082
+ payed_at: string | null;
1083
+ receipt_at: string | null;
1084
+ writeoff_at: string | null;
1085
+ notification_sum: number | null;
1086
+ insurance_sum: number | null;
1087
+ providing_credit_sum: number | null;
1088
+ retention_variant: string;
1089
+ retention_percent: number;
1090
+ retention: number;
1091
+ authorization_date: string | null;
1092
+ manual_changed_fields: string[] | null;
1093
+ created_at: string;
1094
+ last_name: string;
1095
+ first_name: string;
1096
+ middle_name: string;
1097
+ full_name: string;
1098
+ user_id: number;
1099
+ agreement_number: string | null;
1100
+ generalapp_sum: number | null;
1101
+ bank_sum: number | null;
1102
+ installment: boolean;
1103
+ installment_percent: number;
1104
+ salespoint_group_id: number | null;
1105
+ salespoint_group_title: string | null;
1106
+ salespoint_id: number;
1107
+ salespoint_title: string;
1108
+ salespoint_inn: string;
1109
+ user_fio: string;
1110
+ pay_sum: number;
1111
+ comment: string | null;
1112
+ notification_refund_at: string | null;
1113
+ notification_refund_sum: number | null;
1114
+ insurance_refund_at: string | null;
1115
+ insurance_refund_sum: number | null;
1116
+ isorder: boolean;
1117
+ other_retention: number | null;
1118
+ bnpl: unknown;
1119
+ delivery_courier: unknown;
1120
+ delivered_to_bank: boolean;
1121
+ purpose_of_payment: string | null;
1122
+ reverse_discount: number | null;
1123
+ original_document: string;
1124
+ cancelled: boolean;
1125
+ raw_data: Record<string, string> | null;
1126
+ line_color: string;
1127
+ providing_credit_refund_at: string | null;
1128
+ reverse_discount_refund_at: string | null;
1129
+ providing_credit_refund_sum: number | null;
1130
+ reverse_discount_refund_sum: number | null;
1131
+ retention_refund_at: string | null;
1132
+ retention_refund_sum: number | null;
1133
+ application_button: boolean;
1134
+ bank_verbose: string;
1135
+ sign_type: string;
1136
+ };
1137
+ type BankRevise = {
1138
+ id: number;
1139
+ uploaded_file: UploadedFile;
1140
+ status: string;
1141
+ status_details: string | null;
1142
+ created_at: string;
1143
+ updated_at: string;
1144
+ author_id: number;
1145
+ updated_by_id: number;
1146
+ items: BankReviseItem[];
1147
+ };
1148
+ type BankReviseItemUpdateBody = WithData<{
1149
+ id: number;
1150
+ generalapp: number;
1151
+ bank_account?: number;
1152
+ bankdetail?: number;
1153
+ payer_details?: number;
1154
+ } & Partial<BankReviseItem>>;
1155
+ type BankReviseItemUpdateManyItem = {
1156
+ id: number;
1157
+ } & Partial<BankReviseItem>;
1158
+ type BankReviseItemUpdateManyBody = WithData<{
1159
+ data: BankReviseItemUpdateManyItem[];
1160
+ }>;
1161
+ type BankReviseItemsDownloadBody = WithData<{
1162
+ bankdetail_id: number;
1163
+ item_ids: number[];
1164
+ }>;
1165
+ type BankReviseContracts = {
1166
+ /** cоздать банковскую сверку */
1167
+ '/cabinet/bank_revise/upload/': {
1168
+ body: FormData;
1169
+ response: ApiResponse<BankRevise>;
1170
+ };
1171
+ /** генерировать отчет */
1172
+ '/cabinet/bank_revise/generate/': {
1173
+ body: BankReviseGenerateBody;
1174
+ response: ApiResponse<{
1175
+ items: BankReviseItem[];
1176
+ }>;
1177
+ };
1178
+ /** создать/редактировать элемент банковской сверки */
1179
+ '/cabinet/bank_revise/items/update/': {
1180
+ body: BankReviseItemUpdateBody;
1181
+ response: ApiResponse<{
1182
+ _: BankReviseItem;
1183
+ }>;
1184
+ };
1185
+ /** Изменить значения элементов банковской сверки. */
1186
+ '/cabinet/bank_revise/items/update_many/': {
1187
+ body: BankReviseItemUpdateManyBody;
1188
+ response: ApiResponse<{
1189
+ _: BankReviseItem[];
1190
+ _auth_echo?: string;
1191
+ }>;
1192
+ };
1193
+ /** Скачать сформированную платежку */
1194
+ '/cabinet/bank_revise/items/download/': {
1195
+ body: BankReviseItemsDownloadBody;
1196
+ response: Blob;
1197
+ };
1198
+ /** Скачать распознанные поступления */
1199
+ '/cabinet/bank_revise/items/download_parsed/': {
1200
+ body: WithData<{
1201
+ item_ids: number[];
1202
+ }>;
1203
+ response: Blob;
1204
+ };
1205
+ };
1206
+
1207
+ /**
1208
+ * Response for: /cabinet/commission_fee_revise_wip/generate/
1209
+ */
1210
+ type CommissionFeeReviseWipItem = {
1211
+ id: number;
1212
+ commission_fee_revise_id: number | null;
1213
+ agent_act_id: number | null;
1214
+ generalapp_id: number | null;
1215
+ mortgageapp_id: number | null;
1216
+ authorization_date: string | null;
1217
+ created_at: string;
1218
+ last_name: string;
1219
+ first_name: string;
1220
+ middle_name: string;
1221
+ full_name: string;
1222
+ full_name_agent: string;
1223
+ salespoint_id: number;
1224
+ salespointgroup_id: number | null;
1225
+ bank_sum: string;
1226
+ bank_sum_without_service: string;
1227
+ pay_sum: string;
1228
+ commission_fee_percent: string;
1229
+ commission_fee_sum: string;
1230
+ bank_commission_fee_percent: string;
1231
+ bank_commission_fee_sum: string | null;
1232
+ notification_sum: string | null;
1233
+ insurance_sum: string | null;
1234
+ providing_credit_sum: string | null;
1235
+ partner_notification_sum: string | null;
1236
+ partner_insurance_sum: string | null;
1237
+ partner_providing_credit_sum: string | null;
1238
+ bank: string;
1239
+ agreement_number: string | null;
1240
+ manual_changed_fields: string[];
1241
+ comment: string;
1242
+ payed_at: string | null;
1243
+ is_order: boolean;
1244
+ raw_data: unknown | null;
1245
+ line_color: string | null;
1246
+ commission: string | null;
1247
+ income_from_commission_fee: string | null;
1248
+ income_from_service: string | null;
1249
+ total_sum: string;
1250
+ bankdetail_id: number | null;
1251
+ status: number;
1252
+ bank_verbose: string;
1253
+ salespont_title: string;
1254
+ salespoint_group_title: string | null;
1255
+ user_id: number;
1256
+ };
1257
+ type CommissionFeeReviseWipGenerateBody = {
1258
+ _data: {
1259
+ start_at: string;
1260
+ end_at: string;
1261
+ type: 'ipoteka';
1262
+ };
1263
+ };
1264
+ /**
1265
+ * Request for: /cabinet/commission_fee_revise_wip/download/ */
1266
+ type CommissionFeeReviseWipDownloadBody = {
1267
+ bankdetail_id: number;
1268
+ item_ids: number[];
1269
+ };
1270
+ /**
1271
+ * Response for: /cabinet/commission_fee_revise_wip/update/
1272
+ */
1273
+ type CommissionFeeReviseWipUpdateBody = CommissionFeeReviseWipItem;
1274
+ /**
1275
+ * Request item for: /cabinet/commission_fee_revise_wip/update_many/
1276
+ */
1277
+ type CommissionFeeReviseWipUpdateManyItem = {
1278
+ id: number;
1279
+ is_order?: boolean;
1280
+ status?: number;
1281
+ };
1282
+ /**
1283
+ * Request for: /cabinet/commission_fee_revise_wip/update_many/
1284
+ */
1285
+ type CommissionFeeReviseWipUpdateManyBody = {
1286
+ data: CommissionFeeReviseWipUpdateManyItem[];
1287
+ };
1288
+ /**
1289
+ * Response for: /cabinet/commission_fee_revise_wip/update_many/
1290
+ */
1291
+ type CommissionFeeReviseWipUpdateManyResponse = CommissionFeeReviseWipItem[];
1292
+ type CommissionFeeReviseWipContracts = {
1293
+ '/cabinet/commission_fee_revise_wip/generate/': {
1294
+ body: CommissionFeeReviseWipGenerateBody;
1295
+ response: ApiResponse<CommissionFeeReviseWipItem[]>;
1296
+ };
1297
+ '/cabinet/commission_fee_revise_wip/download/': {
1298
+ body: CommissionFeeReviseWipDownloadBody;
1299
+ response: Blob;
1300
+ };
1301
+ '/cabinet/commission_fee_revise_wip/update/': {
1302
+ body: CommissionFeeReviseWipUpdateBody;
1303
+ response: ApiResponse<CommissionFeeReviseWipItem>;
1304
+ };
1305
+ '/cabinet/commission_fee_revise_wip/update_many/': {
1306
+ body: CommissionFeeReviseWipUpdateManyBody;
1307
+ response: ApiResponse<CommissionFeeReviseWipUpdateManyResponse>;
1308
+ };
1309
+ };
1310
+
1311
+ type FaqGetListBody = SearchParams;
1312
+ type Faq = {
1313
+ answer: string;
1314
+ files: unknown[];
1315
+ id: number;
1316
+ is_active: boolean;
1317
+ question: string;
1318
+ };
1319
+ type FaqContracts = {
1320
+ /** Получение список вопросов-ответов*/
1321
+ '/cabinet/faq/get_list/': {
1322
+ body: FaqGetListBody;
1323
+ response: ApiResponse<Faq[]>;
1324
+ };
1325
+ };
1326
+
1327
+ /** TODO: Типизировать */
1328
+ type ProductUploadBody = FormData;
1329
+
1330
+ type ScriptLoadBody = WithData<{
1331
+ dry_run: boolean;
1332
+ file: UploadB64File;
1333
+ }>;
1334
+ type ScriptLoadError = {
1335
+ row: number;
1336
+ id: string;
1337
+ identifier: string;
1338
+ errors: string[];
1339
+ };
1340
+ type ScriptLoadStats = {
1341
+ total_rows?: number;
1342
+ total_in_file: number;
1343
+ found: number;
1344
+ updated: number;
1345
+ fields_changed: number;
1346
+ errors?: number;
1347
+ };
1348
+ type ScriptRunResult = {
1349
+ dry_run: boolean;
1350
+ script: string;
1351
+ columns: string[];
1352
+ changes: unknown[];
1353
+ not_found: string[];
1354
+ stats?: ScriptLoadStats;
1355
+ };
1356
+ type ScriptLoadResult = ScriptRunResult & {
1357
+ forbidden: string[];
1358
+ errors: ScriptLoadError[];
1359
+ };
1360
+ type ScriptExportResult = {
1361
+ file: UploadB64File;
1362
+ };
1363
+ type ScriptContracts = {
1364
+ /** Обновление прав и кодов пользователей */
1365
+ '/cabinet/script/load_employee_codes/': {
1366
+ body: ScriptLoadBody;
1367
+ response: ApiResponse<ScriptLoadResult>;
1368
+ };
1369
+ /** Обновление прав и кодов торговых точек */
1370
+ '/cabinet/script/load_salespoint_codes/': {
1371
+ body: ScriptLoadBody;
1372
+ response: ApiResponse<ScriptLoadResult>;
1373
+ };
1374
+ /** Эскпорт таблицы с кодами пользователей, вернёт файл в base64 */
1375
+ '/cabinet/script/export_employee_codes/': {
1376
+ body: Record<string, never>;
1377
+ response: ApiResponse<ScriptExportResult>;
1378
+ };
1379
+ /** Эскпорт таблицы с кодами ТТ, вернёт файл в base64 */
1380
+ '/cabinet/script/export_salespoint_codes/': {
1381
+ body: Record<string, never>;
1382
+ response: ApiResponse<ScriptExportResult>;
1383
+ };
1384
+ /** Изъятие прав пользователей */
1385
+ '/cabinet/script/without_rights/': {
1386
+ body: ScriptLoadBody;
1387
+ response: ApiResponse<ScriptRunResult>;
1388
+ };
1389
+ };
1390
+
1391
+ type TransferAcceptanceGenerateBody = {
1392
+ ids: number[];
1393
+ };
1394
+ type TransferAcceptanceGenerateResponse = Blob;
1395
+ type TransferAcceptanceContracts = {
1396
+ /**
1397
+ * генерировать акт приёма передачи по выбранным заявкам (за исключением тех, которые с оригиналами документов)
1398
+ */
1399
+ '/cabinet/transfer_acceptance/generate/': {
1400
+ body: TransferAcceptanceGenerateBody;
1401
+ response: ApiResponse<TransferAcceptanceGenerateResponse>;
1402
+ };
1403
+ };
1404
+
975
1405
  /** Получение справочника Абсолют банка */
976
1406
  declare const useGetAbsolutbankDict: (dictName: AbsolutbankDictNames) => {
977
1407
  readonly response: vue.Ref<ApiResponse<Dict> | null>;
@@ -2483,28 +2913,4 @@ type Mode = 'development' | 'production';
2483
2913
  declare function setMode(newMode: Mode): void;
2484
2914
  declare function getMode(): Mode;
2485
2915
 
2486
- type ApiResponse<T> = {
2487
- _code: number;
2488
- _message?: string;
2489
- _detail?: {
2490
- [param: string]: string[];
2491
- };
2492
- _data_total_size?: number;
2493
- _data?: T;
2494
- };
2495
- type SearchParams = {
2496
- _filter?: Record<string, any>;
2497
- _page_size?: number;
2498
- _fields?: string[];
2499
- _start_index?: number;
2500
- _sort?: string[];
2501
- };
2502
- type PostParams<Body> = {
2503
- body: Body;
2504
- search?: SearchParams;
2505
- };
2506
- type PostParamsWithoutBody = {
2507
- search?: SearchParams;
2508
- };
2509
-
2510
- export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type ApiResponse, type Atbbank, type AtbbankFields, type AtbbankMeta, type AtbbankStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type CheckpassportApp, type CheckpassportUploadRequest, type CheckpassportUploadRequestWithAllFiles, type CheckpassportUploadRequestWithFiles, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type GetFmsResponse, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageLoanReportRequest, type MortgageLoanReportStatus, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type PostParams, type PostParamsWithoutBody, type ReportsAsync, type ReportsAsyncStatus, type ReportsMortgageLoanRequest, type ReportsMortgageStatFilter, type ReportsMortgageStatRequest, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointAltSumMode, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type SalespointProvidingCreditMode, type Salespointgroup, type SearchParams, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UpdateMortgageCustomerRequest, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelAtbbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneAtbbank, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmAtbbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteAtbbank, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateAtbbankScansApplications, useGenerateGazprombankmScansApplications, useGenerateMortgageLoanReport, useGenerateMortgageStatReport, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetAtbbank, useGetAtbbankDict, useGetAtbbankFiles, useGetAtbbankList, useGetAtbbankPrintformsList, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCheckpassportStatus, useGetCommondictsBanks, useGetCommondictsPassportFms, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetMortgageScansList, useGetReportsList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalAtbbankStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendAtbbank, useSendAtbbankScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateAtbbank, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCommondictsPassportFms, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadCheckpassport, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
2916
+ export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type AgentAct, type AgentActContract, type AgentActFile, type AgentGetListBody, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type ApiResponse, type Atbbank, type AtbbankFields, type AtbbankMeta, type AtbbankStages, type BankDetail, type BankDetailContracts, type BankDetailGetListBody, type BankRevise, type BankReviseContracts, type BankReviseGenerateBody, type BankReviseItem, type BankReviseItemUpdateBody, type BankReviseItemUpdateManyBody, type BankReviseItemUpdateManyItem, type BankReviseItemsDownloadBody, type BankdetailListFilter, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type CheckpassportApp, type CheckpassportUploadRequest, type CheckpassportUploadRequestWithAllFiles, type CheckpassportUploadRequestWithFiles, type CommissionFeeReviseWipContracts, type CommissionFeeReviseWipDownloadBody, type CommissionFeeReviseWipGenerateBody, type CommissionFeeReviseWipItem, type CommissionFeeReviseWipUpdateBody, type CommissionFeeReviseWipUpdateManyBody, type CommissionFeeReviseWipUpdateManyItem, type CommissionFeeReviseWipUpdateManyResponse, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Faq, type FaqContracts, type FaqGetListBody, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type GetFmsResponse, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageLoanReportRequest, type MortgageLoanReportStatus, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type PostParams, type PostParamsWithoutBody, type ProductUploadBody, type ReportsAsync, type ReportsAsyncStatus, type ReportsMortgageLoanRequest, type ReportsMortgageStatFilter, type ReportsMortgageStatRequest, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointAltSumMode, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type SalespointProvidingCreditMode, type Salespointgroup, type ScriptContracts, type ScriptExportResult, type ScriptLoadBody, type ScriptLoadError, type ScriptLoadResult, type ScriptLoadStats, type ScriptRunResult, type SearchParams, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type TransferAcceptanceContracts, type TransferAcceptanceGenerateBody, type TransferAcceptanceGenerateResponse, type UpdateMortgageCustomerRequest, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelAtbbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneAtbbank, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmAtbbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteAtbbank, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateAtbbankScansApplications, useGenerateGazprombankmScansApplications, useGenerateMortgageLoanReport, useGenerateMortgageStatReport, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetAtbbank, useGetAtbbankDict, useGetAtbbankFiles, useGetAtbbankList, useGetAtbbankPrintformsList, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCheckpassportStatus, useGetCommondictsBanks, useGetCommondictsPassportFms, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetMortgageScansList, useGetReportsList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalAtbbankStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendAtbbank, useSendAtbbankScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateAtbbank, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCommondictsPassportFms, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadCheckpassport, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
package/dist/index.d.ts CHANGED
@@ -972,6 +972,436 @@ type VtbBankmFields = {
972
972
  };
973
973
  type Vtbbankm = VtbBankmMeta & VtbBankmFields;
974
974
 
975
+ type ApiResponse<T> = {
976
+ _code: number;
977
+ _message?: string;
978
+ _detail?: {
979
+ [param: string]: string[];
980
+ };
981
+ _data_total_size?: number;
982
+ _data?: T;
983
+ };
984
+ type SearchParams<F = Record<string, any>> = {
985
+ _filter?: F;
986
+ _page_size?: number;
987
+ _fields?: string[];
988
+ _start_index?: number;
989
+ _sort?: string[];
990
+ };
991
+ type WithData<T> = {
992
+ _data: T;
993
+ };
994
+ type PostParams<Body> = {
995
+ body: Body;
996
+ search?: SearchParams;
997
+ };
998
+ type PostParamsWithoutBody = {
999
+ search?: SearchParams;
1000
+ };
1001
+
1002
+ type AgentGetListBody = SearchParams<{
1003
+ status: 0 | 1;
1004
+ created_at__date__gte: string;
1005
+ created_at__date__lte: string;
1006
+ }>;
1007
+ type AgentActFile = {
1008
+ size: number;
1009
+ file: string;
1010
+ };
1011
+ type AgentAct = {
1012
+ id: number;
1013
+ agent_id: number;
1014
+ created_at: string;
1015
+ period_start: string;
1016
+ period_end: string;
1017
+ signed_at: string | null;
1018
+ status: number;
1019
+ act_file: AgentActFile;
1020
+ signed_act_file: AgentActFile | null;
1021
+ agent_fio: string;
1022
+ };
1023
+ type AgentActContract = {
1024
+ /** получить список актов агента */
1025
+ '/cabinet/agent/act/get_list/': {
1026
+ body: AgentGetListBody;
1027
+ response: ApiResponse<AgentAct[]>;
1028
+ };
1029
+ /** прикрепить подписанный скан */
1030
+ '/cabinet/agent/act/upload/': {
1031
+ body: FormData;
1032
+ response: ApiResponse<AgentAct>;
1033
+ };
1034
+ };
1035
+
1036
+ type BankdetailListFilter = {
1037
+ show_as_bank_account?: boolean;
1038
+ show_as_bankdetail?: boolean;
1039
+ };
1040
+ type BankDetailGetListBody = SearchParams<BankdetailListFilter>;
1041
+ type BankDetail = {
1042
+ account: string;
1043
+ bank1: string;
1044
+ bank2: string;
1045
+ bik: string;
1046
+ corr_account: string;
1047
+ id: number;
1048
+ inn: string;
1049
+ is_active: boolean;
1050
+ name: string;
1051
+ show_as_bank_account: boolean;
1052
+ show_as_bankdetail: boolean;
1053
+ show_as_payer_details: boolean;
1054
+ title: string;
1055
+ };
1056
+ type BankDetailContracts = {
1057
+ /**
1058
+ * Получить список банковских реквизитов.
1059
+ */
1060
+ '/cabinet/bankdetail/get_list/': {
1061
+ body: BankDetailGetListBody;
1062
+ response: ApiResponse<BankDetail[]>;
1063
+ };
1064
+ };
1065
+
1066
+ type BankReviseGenerateBody = {
1067
+ _data: {
1068
+ start_at: string;
1069
+ end_at: string;
1070
+ };
1071
+ };
1072
+ type BankReviseItem = {
1073
+ id: number;
1074
+ bank_revise_id: number | null;
1075
+ generalapp_id: number;
1076
+ bank: string;
1077
+ bankdetail_id: number | null;
1078
+ bank_account_id: number | null;
1079
+ payer_details_id: number | null;
1080
+ payment_order_number: string | null;
1081
+ imported_sum: number | null;
1082
+ payed_at: string | null;
1083
+ receipt_at: string | null;
1084
+ writeoff_at: string | null;
1085
+ notification_sum: number | null;
1086
+ insurance_sum: number | null;
1087
+ providing_credit_sum: number | null;
1088
+ retention_variant: string;
1089
+ retention_percent: number;
1090
+ retention: number;
1091
+ authorization_date: string | null;
1092
+ manual_changed_fields: string[] | null;
1093
+ created_at: string;
1094
+ last_name: string;
1095
+ first_name: string;
1096
+ middle_name: string;
1097
+ full_name: string;
1098
+ user_id: number;
1099
+ agreement_number: string | null;
1100
+ generalapp_sum: number | null;
1101
+ bank_sum: number | null;
1102
+ installment: boolean;
1103
+ installment_percent: number;
1104
+ salespoint_group_id: number | null;
1105
+ salespoint_group_title: string | null;
1106
+ salespoint_id: number;
1107
+ salespoint_title: string;
1108
+ salespoint_inn: string;
1109
+ user_fio: string;
1110
+ pay_sum: number;
1111
+ comment: string | null;
1112
+ notification_refund_at: string | null;
1113
+ notification_refund_sum: number | null;
1114
+ insurance_refund_at: string | null;
1115
+ insurance_refund_sum: number | null;
1116
+ isorder: boolean;
1117
+ other_retention: number | null;
1118
+ bnpl: unknown;
1119
+ delivery_courier: unknown;
1120
+ delivered_to_bank: boolean;
1121
+ purpose_of_payment: string | null;
1122
+ reverse_discount: number | null;
1123
+ original_document: string;
1124
+ cancelled: boolean;
1125
+ raw_data: Record<string, string> | null;
1126
+ line_color: string;
1127
+ providing_credit_refund_at: string | null;
1128
+ reverse_discount_refund_at: string | null;
1129
+ providing_credit_refund_sum: number | null;
1130
+ reverse_discount_refund_sum: number | null;
1131
+ retention_refund_at: string | null;
1132
+ retention_refund_sum: number | null;
1133
+ application_button: boolean;
1134
+ bank_verbose: string;
1135
+ sign_type: string;
1136
+ };
1137
+ type BankRevise = {
1138
+ id: number;
1139
+ uploaded_file: UploadedFile;
1140
+ status: string;
1141
+ status_details: string | null;
1142
+ created_at: string;
1143
+ updated_at: string;
1144
+ author_id: number;
1145
+ updated_by_id: number;
1146
+ items: BankReviseItem[];
1147
+ };
1148
+ type BankReviseItemUpdateBody = WithData<{
1149
+ id: number;
1150
+ generalapp: number;
1151
+ bank_account?: number;
1152
+ bankdetail?: number;
1153
+ payer_details?: number;
1154
+ } & Partial<BankReviseItem>>;
1155
+ type BankReviseItemUpdateManyItem = {
1156
+ id: number;
1157
+ } & Partial<BankReviseItem>;
1158
+ type BankReviseItemUpdateManyBody = WithData<{
1159
+ data: BankReviseItemUpdateManyItem[];
1160
+ }>;
1161
+ type BankReviseItemsDownloadBody = WithData<{
1162
+ bankdetail_id: number;
1163
+ item_ids: number[];
1164
+ }>;
1165
+ type BankReviseContracts = {
1166
+ /** cоздать банковскую сверку */
1167
+ '/cabinet/bank_revise/upload/': {
1168
+ body: FormData;
1169
+ response: ApiResponse<BankRevise>;
1170
+ };
1171
+ /** генерировать отчет */
1172
+ '/cabinet/bank_revise/generate/': {
1173
+ body: BankReviseGenerateBody;
1174
+ response: ApiResponse<{
1175
+ items: BankReviseItem[];
1176
+ }>;
1177
+ };
1178
+ /** создать/редактировать элемент банковской сверки */
1179
+ '/cabinet/bank_revise/items/update/': {
1180
+ body: BankReviseItemUpdateBody;
1181
+ response: ApiResponse<{
1182
+ _: BankReviseItem;
1183
+ }>;
1184
+ };
1185
+ /** Изменить значения элементов банковской сверки. */
1186
+ '/cabinet/bank_revise/items/update_many/': {
1187
+ body: BankReviseItemUpdateManyBody;
1188
+ response: ApiResponse<{
1189
+ _: BankReviseItem[];
1190
+ _auth_echo?: string;
1191
+ }>;
1192
+ };
1193
+ /** Скачать сформированную платежку */
1194
+ '/cabinet/bank_revise/items/download/': {
1195
+ body: BankReviseItemsDownloadBody;
1196
+ response: Blob;
1197
+ };
1198
+ /** Скачать распознанные поступления */
1199
+ '/cabinet/bank_revise/items/download_parsed/': {
1200
+ body: WithData<{
1201
+ item_ids: number[];
1202
+ }>;
1203
+ response: Blob;
1204
+ };
1205
+ };
1206
+
1207
+ /**
1208
+ * Response for: /cabinet/commission_fee_revise_wip/generate/
1209
+ */
1210
+ type CommissionFeeReviseWipItem = {
1211
+ id: number;
1212
+ commission_fee_revise_id: number | null;
1213
+ agent_act_id: number | null;
1214
+ generalapp_id: number | null;
1215
+ mortgageapp_id: number | null;
1216
+ authorization_date: string | null;
1217
+ created_at: string;
1218
+ last_name: string;
1219
+ first_name: string;
1220
+ middle_name: string;
1221
+ full_name: string;
1222
+ full_name_agent: string;
1223
+ salespoint_id: number;
1224
+ salespointgroup_id: number | null;
1225
+ bank_sum: string;
1226
+ bank_sum_without_service: string;
1227
+ pay_sum: string;
1228
+ commission_fee_percent: string;
1229
+ commission_fee_sum: string;
1230
+ bank_commission_fee_percent: string;
1231
+ bank_commission_fee_sum: string | null;
1232
+ notification_sum: string | null;
1233
+ insurance_sum: string | null;
1234
+ providing_credit_sum: string | null;
1235
+ partner_notification_sum: string | null;
1236
+ partner_insurance_sum: string | null;
1237
+ partner_providing_credit_sum: string | null;
1238
+ bank: string;
1239
+ agreement_number: string | null;
1240
+ manual_changed_fields: string[];
1241
+ comment: string;
1242
+ payed_at: string | null;
1243
+ is_order: boolean;
1244
+ raw_data: unknown | null;
1245
+ line_color: string | null;
1246
+ commission: string | null;
1247
+ income_from_commission_fee: string | null;
1248
+ income_from_service: string | null;
1249
+ total_sum: string;
1250
+ bankdetail_id: number | null;
1251
+ status: number;
1252
+ bank_verbose: string;
1253
+ salespont_title: string;
1254
+ salespoint_group_title: string | null;
1255
+ user_id: number;
1256
+ };
1257
+ type CommissionFeeReviseWipGenerateBody = {
1258
+ _data: {
1259
+ start_at: string;
1260
+ end_at: string;
1261
+ type: 'ipoteka';
1262
+ };
1263
+ };
1264
+ /**
1265
+ * Request for: /cabinet/commission_fee_revise_wip/download/ */
1266
+ type CommissionFeeReviseWipDownloadBody = {
1267
+ bankdetail_id: number;
1268
+ item_ids: number[];
1269
+ };
1270
+ /**
1271
+ * Response for: /cabinet/commission_fee_revise_wip/update/
1272
+ */
1273
+ type CommissionFeeReviseWipUpdateBody = CommissionFeeReviseWipItem;
1274
+ /**
1275
+ * Request item for: /cabinet/commission_fee_revise_wip/update_many/
1276
+ */
1277
+ type CommissionFeeReviseWipUpdateManyItem = {
1278
+ id: number;
1279
+ is_order?: boolean;
1280
+ status?: number;
1281
+ };
1282
+ /**
1283
+ * Request for: /cabinet/commission_fee_revise_wip/update_many/
1284
+ */
1285
+ type CommissionFeeReviseWipUpdateManyBody = {
1286
+ data: CommissionFeeReviseWipUpdateManyItem[];
1287
+ };
1288
+ /**
1289
+ * Response for: /cabinet/commission_fee_revise_wip/update_many/
1290
+ */
1291
+ type CommissionFeeReviseWipUpdateManyResponse = CommissionFeeReviseWipItem[];
1292
+ type CommissionFeeReviseWipContracts = {
1293
+ '/cabinet/commission_fee_revise_wip/generate/': {
1294
+ body: CommissionFeeReviseWipGenerateBody;
1295
+ response: ApiResponse<CommissionFeeReviseWipItem[]>;
1296
+ };
1297
+ '/cabinet/commission_fee_revise_wip/download/': {
1298
+ body: CommissionFeeReviseWipDownloadBody;
1299
+ response: Blob;
1300
+ };
1301
+ '/cabinet/commission_fee_revise_wip/update/': {
1302
+ body: CommissionFeeReviseWipUpdateBody;
1303
+ response: ApiResponse<CommissionFeeReviseWipItem>;
1304
+ };
1305
+ '/cabinet/commission_fee_revise_wip/update_many/': {
1306
+ body: CommissionFeeReviseWipUpdateManyBody;
1307
+ response: ApiResponse<CommissionFeeReviseWipUpdateManyResponse>;
1308
+ };
1309
+ };
1310
+
1311
+ type FaqGetListBody = SearchParams;
1312
+ type Faq = {
1313
+ answer: string;
1314
+ files: unknown[];
1315
+ id: number;
1316
+ is_active: boolean;
1317
+ question: string;
1318
+ };
1319
+ type FaqContracts = {
1320
+ /** Получение список вопросов-ответов*/
1321
+ '/cabinet/faq/get_list/': {
1322
+ body: FaqGetListBody;
1323
+ response: ApiResponse<Faq[]>;
1324
+ };
1325
+ };
1326
+
1327
+ /** TODO: Типизировать */
1328
+ type ProductUploadBody = FormData;
1329
+
1330
+ type ScriptLoadBody = WithData<{
1331
+ dry_run: boolean;
1332
+ file: UploadB64File;
1333
+ }>;
1334
+ type ScriptLoadError = {
1335
+ row: number;
1336
+ id: string;
1337
+ identifier: string;
1338
+ errors: string[];
1339
+ };
1340
+ type ScriptLoadStats = {
1341
+ total_rows?: number;
1342
+ total_in_file: number;
1343
+ found: number;
1344
+ updated: number;
1345
+ fields_changed: number;
1346
+ errors?: number;
1347
+ };
1348
+ type ScriptRunResult = {
1349
+ dry_run: boolean;
1350
+ script: string;
1351
+ columns: string[];
1352
+ changes: unknown[];
1353
+ not_found: string[];
1354
+ stats?: ScriptLoadStats;
1355
+ };
1356
+ type ScriptLoadResult = ScriptRunResult & {
1357
+ forbidden: string[];
1358
+ errors: ScriptLoadError[];
1359
+ };
1360
+ type ScriptExportResult = {
1361
+ file: UploadB64File;
1362
+ };
1363
+ type ScriptContracts = {
1364
+ /** Обновление прав и кодов пользователей */
1365
+ '/cabinet/script/load_employee_codes/': {
1366
+ body: ScriptLoadBody;
1367
+ response: ApiResponse<ScriptLoadResult>;
1368
+ };
1369
+ /** Обновление прав и кодов торговых точек */
1370
+ '/cabinet/script/load_salespoint_codes/': {
1371
+ body: ScriptLoadBody;
1372
+ response: ApiResponse<ScriptLoadResult>;
1373
+ };
1374
+ /** Эскпорт таблицы с кодами пользователей, вернёт файл в base64 */
1375
+ '/cabinet/script/export_employee_codes/': {
1376
+ body: Record<string, never>;
1377
+ response: ApiResponse<ScriptExportResult>;
1378
+ };
1379
+ /** Эскпорт таблицы с кодами ТТ, вернёт файл в base64 */
1380
+ '/cabinet/script/export_salespoint_codes/': {
1381
+ body: Record<string, never>;
1382
+ response: ApiResponse<ScriptExportResult>;
1383
+ };
1384
+ /** Изъятие прав пользователей */
1385
+ '/cabinet/script/without_rights/': {
1386
+ body: ScriptLoadBody;
1387
+ response: ApiResponse<ScriptRunResult>;
1388
+ };
1389
+ };
1390
+
1391
+ type TransferAcceptanceGenerateBody = {
1392
+ ids: number[];
1393
+ };
1394
+ type TransferAcceptanceGenerateResponse = Blob;
1395
+ type TransferAcceptanceContracts = {
1396
+ /**
1397
+ * генерировать акт приёма передачи по выбранным заявкам (за исключением тех, которые с оригиналами документов)
1398
+ */
1399
+ '/cabinet/transfer_acceptance/generate/': {
1400
+ body: TransferAcceptanceGenerateBody;
1401
+ response: ApiResponse<TransferAcceptanceGenerateResponse>;
1402
+ };
1403
+ };
1404
+
975
1405
  /** Получение справочника Абсолют банка */
976
1406
  declare const useGetAbsolutbankDict: (dictName: AbsolutbankDictNames) => {
977
1407
  readonly response: vue.Ref<ApiResponse<Dict> | null>;
@@ -2483,28 +2913,4 @@ type Mode = 'development' | 'production';
2483
2913
  declare function setMode(newMode: Mode): void;
2484
2914
  declare function getMode(): Mode;
2485
2915
 
2486
- type ApiResponse<T> = {
2487
- _code: number;
2488
- _message?: string;
2489
- _detail?: {
2490
- [param: string]: string[];
2491
- };
2492
- _data_total_size?: number;
2493
- _data?: T;
2494
- };
2495
- type SearchParams = {
2496
- _filter?: Record<string, any>;
2497
- _page_size?: number;
2498
- _fields?: string[];
2499
- _start_index?: number;
2500
- _sort?: string[];
2501
- };
2502
- type PostParams<Body> = {
2503
- body: Body;
2504
- search?: SearchParams;
2505
- };
2506
- type PostParamsWithoutBody = {
2507
- search?: SearchParams;
2508
- };
2509
-
2510
- export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type ApiResponse, type Atbbank, type AtbbankFields, type AtbbankMeta, type AtbbankStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type CheckpassportApp, type CheckpassportUploadRequest, type CheckpassportUploadRequestWithAllFiles, type CheckpassportUploadRequestWithFiles, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type GetFmsResponse, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageLoanReportRequest, type MortgageLoanReportStatus, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type PostParams, type PostParamsWithoutBody, type ReportsAsync, type ReportsAsyncStatus, type ReportsMortgageLoanRequest, type ReportsMortgageStatFilter, type ReportsMortgageStatRequest, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointAltSumMode, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type SalespointProvidingCreditMode, type Salespointgroup, type SearchParams, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UpdateMortgageCustomerRequest, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelAtbbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneAtbbank, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmAtbbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteAtbbank, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateAtbbankScansApplications, useGenerateGazprombankmScansApplications, useGenerateMortgageLoanReport, useGenerateMortgageStatReport, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetAtbbank, useGetAtbbankDict, useGetAtbbankFiles, useGetAtbbankList, useGetAtbbankPrintformsList, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCheckpassportStatus, useGetCommondictsBanks, useGetCommondictsPassportFms, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetMortgageScansList, useGetReportsList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalAtbbankStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendAtbbank, useSendAtbbankScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateAtbbank, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCommondictsPassportFms, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadCheckpassport, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
2916
+ export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type AgentAct, type AgentActContract, type AgentActFile, type AgentGetListBody, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type ApiResponse, type Atbbank, type AtbbankFields, type AtbbankMeta, type AtbbankStages, type BankDetail, type BankDetailContracts, type BankDetailGetListBody, type BankRevise, type BankReviseContracts, type BankReviseGenerateBody, type BankReviseItem, type BankReviseItemUpdateBody, type BankReviseItemUpdateManyBody, type BankReviseItemUpdateManyItem, type BankReviseItemsDownloadBody, type BankdetailListFilter, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type CheckpassportApp, type CheckpassportUploadRequest, type CheckpassportUploadRequestWithAllFiles, type CheckpassportUploadRequestWithFiles, type CommissionFeeReviseWipContracts, type CommissionFeeReviseWipDownloadBody, type CommissionFeeReviseWipGenerateBody, type CommissionFeeReviseWipItem, type CommissionFeeReviseWipUpdateBody, type CommissionFeeReviseWipUpdateManyBody, type CommissionFeeReviseWipUpdateManyItem, type CommissionFeeReviseWipUpdateManyResponse, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Faq, type FaqContracts, type FaqGetListBody, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type GetFmsResponse, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageLoanReportRequest, type MortgageLoanReportStatus, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type PostParams, type PostParamsWithoutBody, type ProductUploadBody, type ReportsAsync, type ReportsAsyncStatus, type ReportsMortgageLoanRequest, type ReportsMortgageStatFilter, type ReportsMortgageStatRequest, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointAltSumMode, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type SalespointProvidingCreditMode, type Salespointgroup, type ScriptContracts, type ScriptExportResult, type ScriptLoadBody, type ScriptLoadError, type ScriptLoadResult, type ScriptLoadStats, type ScriptRunResult, type SearchParams, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type TransferAcceptanceContracts, type TransferAcceptanceGenerateBody, type TransferAcceptanceGenerateResponse, type UpdateMortgageCustomerRequest, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelAtbbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneAtbbank, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmAtbbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteAtbbank, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateAtbbankScansApplications, useGenerateGazprombankmScansApplications, useGenerateMortgageLoanReport, useGenerateMortgageStatReport, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetAtbbank, useGetAtbbankDict, useGetAtbbankFiles, useGetAtbbankList, useGetAtbbankPrintformsList, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCheckpassportStatus, useGetCommondictsBanks, useGetCommondictsPassportFms, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetMortgageScansList, useGetReportsList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalAtbbankStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendAtbbank, useSendAtbbankScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateAtbbank, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCommondictsPassportFms, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadCheckpassport, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpleloan_api",
3
- "version": "1.2.46",
3
+ "version": "1.2.47",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",