simpleloan_api 1.1.5 → 1.1.7
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/dist/index.d.mts +457 -11
- package/dist/index.d.ts +457 -11
- package/dist/index.js +149 -30
- package/dist/index.mjs +105 -25
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ type User = {
|
|
|
38
38
|
status: string;
|
|
39
39
|
passport_serial: number;
|
|
40
40
|
passport_number: number;
|
|
41
|
-
passport_date:
|
|
41
|
+
passport_date: string;
|
|
42
42
|
passport_issuing: string | number;
|
|
43
43
|
passport_division_code: string | number;
|
|
44
44
|
address_country: string | number;
|
|
@@ -187,6 +187,62 @@ type AkbarsPrintform = {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
type Sex = 'M' | 'F';
|
|
191
|
+
type UploadB64File = {
|
|
192
|
+
name: string;
|
|
193
|
+
data: string;
|
|
194
|
+
};
|
|
195
|
+
type Address = {
|
|
196
|
+
region?: {
|
|
197
|
+
code: string;
|
|
198
|
+
name: string;
|
|
199
|
+
type: string;
|
|
200
|
+
type_short: string;
|
|
201
|
+
};
|
|
202
|
+
area?: {
|
|
203
|
+
code: string;
|
|
204
|
+
name: string;
|
|
205
|
+
type: string;
|
|
206
|
+
type_short: string;
|
|
207
|
+
};
|
|
208
|
+
city?: {
|
|
209
|
+
code: string;
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
type_short: string;
|
|
213
|
+
owner?: {
|
|
214
|
+
code: string | null;
|
|
215
|
+
name: string | null;
|
|
216
|
+
type: string | null;
|
|
217
|
+
type_short: string | null;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
street?: {
|
|
221
|
+
code: string;
|
|
222
|
+
name: string;
|
|
223
|
+
type: string;
|
|
224
|
+
type_short: string;
|
|
225
|
+
};
|
|
226
|
+
structure: string | null;
|
|
227
|
+
flat: string | null;
|
|
228
|
+
house: string | null;
|
|
229
|
+
building: string | null;
|
|
230
|
+
postal_code: string | null;
|
|
231
|
+
address_text: string;
|
|
232
|
+
};
|
|
233
|
+
type DictItem = {
|
|
234
|
+
code: string;
|
|
235
|
+
title: string;
|
|
236
|
+
};
|
|
237
|
+
type Dict = DictItem[];
|
|
238
|
+
|
|
239
|
+
type Brokerclient = {
|
|
240
|
+
id: number;
|
|
241
|
+
deleted_at: null;
|
|
242
|
+
title: string;
|
|
243
|
+
staff_ids: number[];
|
|
244
|
+
};
|
|
245
|
+
|
|
190
246
|
type Mortgage = {
|
|
191
247
|
id: number;
|
|
192
248
|
created_at: string;
|
|
@@ -237,6 +293,55 @@ type MortgageBankAppStatus = {
|
|
|
237
293
|
status_last_date: number;
|
|
238
294
|
};
|
|
239
295
|
|
|
296
|
+
type Salespoint = {
|
|
297
|
+
id: number;
|
|
298
|
+
checkdoc_can_enabled: boolean;
|
|
299
|
+
credit_type: SalespointCreditType;
|
|
300
|
+
notification_mode: SalespointNotificationMode;
|
|
301
|
+
checkpassport_enabled: boolean;
|
|
302
|
+
deleted_at: string | null;
|
|
303
|
+
title: string;
|
|
304
|
+
address_country: string | null;
|
|
305
|
+
address_postcode: string | null;
|
|
306
|
+
address_region: string | null;
|
|
307
|
+
address_city: string | null;
|
|
308
|
+
address_street: string | null;
|
|
309
|
+
address_house: string | null;
|
|
310
|
+
address_flat: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
broker_client_id: number;
|
|
313
|
+
product_category: string;
|
|
314
|
+
alfabank_id: string;
|
|
315
|
+
alfabankpos_id: string | null;
|
|
316
|
+
ilbs_id: string | null;
|
|
317
|
+
vostbank_id: string | null;
|
|
318
|
+
otpbank_id: string;
|
|
319
|
+
otpbankesign_id: string;
|
|
320
|
+
otpbank_verification: string | null;
|
|
321
|
+
otpbank_type_app: string | null;
|
|
322
|
+
expobank_id: string | null;
|
|
323
|
+
mtsbank_id: string | null;
|
|
324
|
+
crediteurope_id: string | null;
|
|
325
|
+
mtsbank_type: string | null;
|
|
326
|
+
mtsbank_isEDS: string | null;
|
|
327
|
+
renaissancebank_id: number;
|
|
328
|
+
renbank_scan_auth_type: number;
|
|
329
|
+
sovcomhalva_id: number;
|
|
330
|
+
checkdoc_manual_check_enabled: boolean;
|
|
331
|
+
generalapp_banks: string[];
|
|
332
|
+
insurance_mode: SalespointInsuranceMode;
|
|
333
|
+
insurance_company: string;
|
|
334
|
+
directions_ids: number[];
|
|
335
|
+
staff_ids: number[];
|
|
336
|
+
permissions: string[];
|
|
337
|
+
segment: string;
|
|
338
|
+
providing_credit_tariffs_ids: number[];
|
|
339
|
+
address_text: string;
|
|
340
|
+
};
|
|
341
|
+
type SalespointNotificationMode = 'on' | 'off' | 'def_on' | 'def_off';
|
|
342
|
+
type SalespointInsuranceMode = 'none' | 'our' | 'bank';
|
|
343
|
+
type SalespointCreditType = 'loan' | 'installment' | 'all' | 'all_partial' | 'partial_installment';
|
|
344
|
+
|
|
240
345
|
/** Авторизация */
|
|
241
346
|
declare const useAccountLogin: () => {
|
|
242
347
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
@@ -249,23 +354,318 @@ declare const useAccountLogout: () => {
|
|
|
249
354
|
pending: vue.Ref<boolean>;
|
|
250
355
|
post(params?: PostParams<unknown> | undefined): Promise<ApiResponse<unknown> | null>;
|
|
251
356
|
};
|
|
357
|
+
/** Разлогин указанного юзера */
|
|
358
|
+
declare const useAccountLogoutUser: () => {
|
|
359
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
360
|
+
pending: vue.Ref<boolean>;
|
|
361
|
+
post(params?: PostParams<{
|
|
362
|
+
user_id: number;
|
|
363
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
364
|
+
};
|
|
252
365
|
/** Проверка авторизации */
|
|
253
366
|
declare const useAccountCheckLogin: () => {
|
|
254
367
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
255
368
|
pending: vue.Ref<boolean>;
|
|
256
369
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<LoginResponse> | null>;
|
|
257
370
|
};
|
|
371
|
+
/** Регистрация */
|
|
372
|
+
declare const useAccountRegister: () => {
|
|
373
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
374
|
+
pending: vue.Ref<boolean>;
|
|
375
|
+
post(params?: PostParams<{
|
|
376
|
+
email: string;
|
|
377
|
+
password: string;
|
|
378
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
379
|
+
};
|
|
380
|
+
/** Сброс пароля */
|
|
381
|
+
declare const useAccountResetPassword: () => {
|
|
382
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
383
|
+
pending: vue.Ref<boolean>;
|
|
384
|
+
post(params?: PostParams<{
|
|
385
|
+
email: string;
|
|
386
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
387
|
+
};
|
|
388
|
+
/** Сброс пароля - ввод нового */
|
|
389
|
+
declare const useAccountResetPasswordConfirmNew: () => {
|
|
390
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
391
|
+
pending: vue.Ref<boolean>;
|
|
392
|
+
post(params?: PostParams<{
|
|
393
|
+
new_password: string;
|
|
394
|
+
uid: string;
|
|
395
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
396
|
+
};
|
|
397
|
+
/** Смена пароля */
|
|
398
|
+
declare const useAccountUpdatePassword: () => {
|
|
399
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
400
|
+
pending: vue.Ref<boolean>;
|
|
401
|
+
post(params?: PostParams<{
|
|
402
|
+
old_password: "string";
|
|
403
|
+
new_password: "string";
|
|
404
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
405
|
+
};
|
|
258
406
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
407
|
+
type AkbarsUpdate = Partial<Akbars> & {
|
|
408
|
+
id: number;
|
|
409
|
+
};
|
|
410
|
+
/** Получение справочника Ак Барс Банка */
|
|
411
|
+
declare const useGetAkbarsDictList: (dict: AkbarsDictNames) => {
|
|
412
|
+
response: vue.Ref<ApiResponse<Record<string, string>> | null>;
|
|
262
413
|
pending: vue.Ref<boolean>;
|
|
263
|
-
post(params
|
|
414
|
+
post(params?: PostParams<{
|
|
264
415
|
mortgageapp_id: number;
|
|
265
|
-
}>): Promise<
|
|
416
|
+
}> | undefined): Promise<ApiResponse<Record<string, string>> | null>;
|
|
417
|
+
};
|
|
418
|
+
/** Получение заявки Ак Барс Банка */
|
|
419
|
+
declare const useGetAkbars: () => {
|
|
420
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
421
|
+
pending: vue.Ref<boolean>;
|
|
422
|
+
post(params?: PostParams<{
|
|
423
|
+
id: number;
|
|
424
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
425
|
+
};
|
|
426
|
+
/** Получение списка заявок Ак Барс Банка */
|
|
427
|
+
declare const useGetAkbarsList: () => {
|
|
428
|
+
response: vue.Ref<ApiResponse<Akbars[]> | null>;
|
|
429
|
+
pending: vue.Ref<boolean>;
|
|
430
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Akbars[]> | null>;
|
|
431
|
+
};
|
|
432
|
+
/** Удаление заявки Ак Барс Банка */
|
|
433
|
+
declare const useDeleteAkbars: () => {
|
|
434
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
435
|
+
pending: vue.Ref<boolean>;
|
|
436
|
+
post(params?: PostParams<{
|
|
437
|
+
id: number;
|
|
438
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
439
|
+
};
|
|
440
|
+
/** Обновление заявки Ак Барс Банка */
|
|
441
|
+
declare const useUpdateAkbars: () => {
|
|
442
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
443
|
+
pending: vue.Ref<boolean>;
|
|
444
|
+
post(params?: PostParams<AkbarsUpdate> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
445
|
+
};
|
|
446
|
+
/** Отправка заявки Ак Барс Банка */
|
|
447
|
+
declare const useSendAkbars: () => {
|
|
448
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
449
|
+
pending: vue.Ref<boolean>;
|
|
450
|
+
post(params?: PostParams<{
|
|
451
|
+
id: number;
|
|
452
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
453
|
+
};
|
|
454
|
+
/** Получение анкет для заёмщиков заявки Ак Барс Банка */
|
|
455
|
+
declare const useGenerateAkbarsScansApplications: () => {
|
|
456
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
|
+
pending: vue.Ref<boolean>;
|
|
458
|
+
post(params?: PostParams<{
|
|
459
|
+
mortgageapp_id: number;
|
|
460
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
461
|
+
};
|
|
462
|
+
/** Отправка сканов заявки Ак Барс Банка */
|
|
463
|
+
declare const useSendAkbarsScans: () => {
|
|
464
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
465
|
+
pending: vue.Ref<boolean>;
|
|
466
|
+
post(params?: PostParams<{
|
|
467
|
+
id: number;
|
|
468
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
469
|
+
};
|
|
470
|
+
/** Вызов метода рассмотрения заявки Ак Барс Банка */
|
|
471
|
+
declare const useProcessingAkbars: () => {
|
|
472
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
473
|
+
pending: vue.Ref<boolean>;
|
|
474
|
+
post(params?: PostParams<{
|
|
475
|
+
id: number;
|
|
476
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
477
|
+
};
|
|
478
|
+
/** Запрос на получение печатных форм заявки Ак Барс Банка */
|
|
479
|
+
declare const useAskAkbarsPrintforms: () => {
|
|
480
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
481
|
+
pending: vue.Ref<boolean>;
|
|
482
|
+
post(params?: PostParams<{
|
|
483
|
+
id: number;
|
|
484
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
485
|
+
};
|
|
486
|
+
/** Опрос статуса заявки после предодобрение */
|
|
487
|
+
declare const useLoanerApprovingAkbarsStatus: () => {
|
|
488
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
489
|
+
pending: vue.Ref<boolean>;
|
|
490
|
+
post(params?: PostParams<{
|
|
491
|
+
id: number;
|
|
492
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
493
|
+
};
|
|
494
|
+
/** Получение сформированных печатных форм Ак Барс Банка */
|
|
495
|
+
declare const useGetAkbarsPrintformList: () => {
|
|
496
|
+
response: vue.Ref<ApiResponse<AkbarsPrintform[]> | null>;
|
|
497
|
+
pending: vue.Ref<boolean>;
|
|
498
|
+
post(params?: PostParams<{
|
|
499
|
+
id: number;
|
|
500
|
+
}> | undefined): Promise<ApiResponse<AkbarsPrintform[]> | null>;
|
|
501
|
+
};
|
|
502
|
+
/** Добавить/Редактировать залог к заявке Ак Барс Банка */
|
|
503
|
+
declare const useUpdateAkbarsDeposite: () => {
|
|
504
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
505
|
+
pending: vue.Ref<boolean>;
|
|
506
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
507
|
+
};
|
|
508
|
+
/** Получить залог из заявки Ак Барс Банка */
|
|
509
|
+
declare const useGetAkbarsDeposite: () => {
|
|
510
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
511
|
+
pending: vue.Ref<boolean>;
|
|
512
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
513
|
+
};
|
|
514
|
+
/** Отправить информацию об залоге со сканами в Ак Барс Банк */
|
|
515
|
+
declare const useSendAkbarsDeposite: () => {
|
|
516
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
517
|
+
pending: vue.Ref<boolean>;
|
|
518
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
519
|
+
};
|
|
520
|
+
/** Загрузить скан депозита в заявку Ак Барс Банка */
|
|
521
|
+
declare const useUploadAkbarsDepositeScan: () => {
|
|
522
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
|
|
523
|
+
pending: vue.Ref<boolean>;
|
|
524
|
+
post(params?: PostParams<{
|
|
525
|
+
id: number;
|
|
526
|
+
file: UploadB64File;
|
|
527
|
+
scan_type: string;
|
|
528
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan> | null>;
|
|
529
|
+
};
|
|
530
|
+
/** Получить список сканов депозита в заявке Ак Барс Банка */
|
|
531
|
+
declare const useGetAkbarsDepositeScanList: () => {
|
|
532
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
533
|
+
pending: vue.Ref<boolean>;
|
|
534
|
+
post(params?: PostParams<{
|
|
535
|
+
id: number;
|
|
536
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
537
|
+
};
|
|
538
|
+
/** Удалить скан депозита в заявке Ак Барс Банка */
|
|
539
|
+
declare const useDeleteAkbarsDepositeScan: () => {
|
|
540
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
541
|
+
pending: vue.Ref<boolean>;
|
|
542
|
+
post(params?: PostParams<{
|
|
543
|
+
id: number;
|
|
544
|
+
item_id: number;
|
|
545
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
266
546
|
};
|
|
267
547
|
|
|
268
|
-
|
|
548
|
+
type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
549
|
+
id: number;
|
|
550
|
+
};
|
|
551
|
+
/** Получить БО по id */
|
|
552
|
+
declare const useGetBrokerclient: () => {
|
|
553
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
554
|
+
pending: vue.Ref<boolean>;
|
|
555
|
+
post(params?: PostParams<{
|
|
556
|
+
id: number;
|
|
557
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
558
|
+
};
|
|
559
|
+
/** Обновить БО */
|
|
560
|
+
declare const useUpdateBrokerclient: () => {
|
|
561
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
562
|
+
pending: vue.Ref<boolean>;
|
|
563
|
+
post(params?: PostParams<BrokerclientUpdate> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
564
|
+
};
|
|
565
|
+
/** Получить список БО */
|
|
566
|
+
declare const useGetBrokerclientList: () => {
|
|
567
|
+
response: vue.Ref<ApiResponse<Brokerclient[]> | null>;
|
|
568
|
+
pending: vue.Ref<boolean>;
|
|
569
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Brokerclient[]> | null>;
|
|
570
|
+
};
|
|
571
|
+
/** Удаление БО */
|
|
572
|
+
declare const useDeleteBrokerclient: () => {
|
|
573
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
574
|
+
pending: vue.Ref<boolean>;
|
|
575
|
+
post(params?: PostParams<{
|
|
576
|
+
id: number;
|
|
577
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
578
|
+
};
|
|
579
|
+
/** Добавление сотрудника в штат БО */
|
|
580
|
+
declare const useAddStaffBrokerclient: () => {
|
|
581
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
582
|
+
pending: vue.Ref<boolean>;
|
|
583
|
+
post(params?: PostParams<{
|
|
584
|
+
brokerclient_id: number;
|
|
585
|
+
user_id: number;
|
|
586
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
587
|
+
};
|
|
588
|
+
/** Удаление сотрудника из штата БО */
|
|
589
|
+
declare const useDeleteStaffBrokerclient: () => {
|
|
590
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
591
|
+
pending: vue.Ref<boolean>;
|
|
592
|
+
post(params?: PostParams<{
|
|
593
|
+
brokerclient_id: number;
|
|
594
|
+
user_id: number;
|
|
595
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
type SalespointUpdate = Partial<Salespoint> & {
|
|
599
|
+
id: number;
|
|
600
|
+
};
|
|
601
|
+
/** Получить торговую точку по id */
|
|
602
|
+
declare const useGetSalespoint: () => {
|
|
603
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
604
|
+
pending: vue.Ref<boolean>;
|
|
605
|
+
post(params?: PostParams<{
|
|
606
|
+
id: number;
|
|
607
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
608
|
+
};
|
|
609
|
+
/** Обновить торговую точку */
|
|
610
|
+
declare const useUpdateSalespoint: () => {
|
|
611
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
612
|
+
pending: vue.Ref<boolean>;
|
|
613
|
+
post(params?: PostParams<SalespointUpdate> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
614
|
+
};
|
|
615
|
+
/** Копировать торговую точку */
|
|
616
|
+
declare const useCloneSalespoint: () => {
|
|
617
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
618
|
+
pending: vue.Ref<boolean>;
|
|
619
|
+
post(params?: PostParams<{
|
|
620
|
+
id: number;
|
|
621
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
622
|
+
};
|
|
623
|
+
/** Получить список торговых точек */
|
|
624
|
+
declare const useGetSalespointList: () => {
|
|
625
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
626
|
+
pending: vue.Ref<boolean>;
|
|
627
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Salespoint[]> | null>;
|
|
628
|
+
};
|
|
629
|
+
/** Удаление торговой точки */
|
|
630
|
+
declare const useDeleteSalespoint: () => {
|
|
631
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
632
|
+
pending: vue.Ref<boolean>;
|
|
633
|
+
post(params?: PostParams<{
|
|
634
|
+
id: number;
|
|
635
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
636
|
+
};
|
|
637
|
+
/** Добавление сотрудника в штат торговой точки */
|
|
638
|
+
declare const useAddStaffSalespoint: () => {
|
|
639
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
640
|
+
pending: vue.Ref<boolean>;
|
|
641
|
+
post(params?: PostParams<{
|
|
642
|
+
salespoint_id: number;
|
|
643
|
+
user_id: number;
|
|
644
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
645
|
+
};
|
|
646
|
+
/** Удаление сотрудника из штата торговой точки */
|
|
647
|
+
declare const useDeleteStaffSalespoint: () => {
|
|
648
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
649
|
+
pending: vue.Ref<boolean>;
|
|
650
|
+
post(params?: PostParams<{
|
|
651
|
+
salespoint_id: number;
|
|
652
|
+
user_id: number;
|
|
653
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
654
|
+
};
|
|
655
|
+
/** Массовое обновление торговых точек */
|
|
656
|
+
declare const useUpdateManySalespoint: () => {
|
|
657
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
658
|
+
pending: vue.Ref<boolean>;
|
|
659
|
+
post(params?: PostParams<{
|
|
660
|
+
user_ids: number[];
|
|
661
|
+
data: SalespointUpdate;
|
|
662
|
+
}> | undefined): Promise<ApiResponse<Salespoint[]> | null>;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
type UserUpdate = Partial<User> & {
|
|
666
|
+
id: number;
|
|
667
|
+
};
|
|
668
|
+
/** Получить пользователя по id */
|
|
269
669
|
declare const useGetUser: () => {
|
|
270
670
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
271
671
|
pending: vue.Ref<boolean>;
|
|
@@ -273,18 +673,64 @@ declare const useGetUser: () => {
|
|
|
273
673
|
id: number;
|
|
274
674
|
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
275
675
|
};
|
|
676
|
+
/** Обновить пользователя */
|
|
677
|
+
declare const useUpdateUser: () => {
|
|
678
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
679
|
+
pending: vue.Ref<boolean>;
|
|
680
|
+
post(params?: PostParams<UserUpdate> | undefined): Promise<ApiResponse<User> | null>;
|
|
681
|
+
};
|
|
276
682
|
/** Получить список юзеров */
|
|
277
683
|
declare const useGetUserList: () => {
|
|
278
684
|
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
279
685
|
pending: vue.Ref<boolean>;
|
|
280
686
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<User[]> | null>;
|
|
281
687
|
};
|
|
688
|
+
/** Удалить пользователя */
|
|
689
|
+
declare const useDeleteUser: () => {
|
|
690
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
691
|
+
pending: vue.Ref<boolean>;
|
|
692
|
+
post(params?: PostParams<{
|
|
693
|
+
id: number;
|
|
694
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
695
|
+
};
|
|
696
|
+
/** Клонирование пользователя */
|
|
697
|
+
declare const useCloneUser: () => {
|
|
698
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
699
|
+
pending: vue.Ref<boolean>;
|
|
700
|
+
post(params?: PostParams<{
|
|
701
|
+
id: number;
|
|
702
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
703
|
+
};
|
|
704
|
+
/** Добавление группы к пользователю */
|
|
705
|
+
declare const useAddGroupUser: () => {
|
|
706
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
707
|
+
pending: vue.Ref<boolean>;
|
|
708
|
+
post(params?: PostParams<{
|
|
709
|
+
group_id: number;
|
|
710
|
+
user_id: number;
|
|
711
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
712
|
+
};
|
|
713
|
+
/** Удаление группы у пользователя */
|
|
714
|
+
declare const useDeleteGroupUser: () => {
|
|
715
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
716
|
+
pending: vue.Ref<boolean>;
|
|
717
|
+
post(params?: PostParams<{
|
|
718
|
+
group_id: number;
|
|
719
|
+
user_id: number;
|
|
720
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
721
|
+
};
|
|
722
|
+
/** Массовое обновление пользователей */
|
|
723
|
+
declare const useUpdateManyUser: () => {
|
|
724
|
+
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
725
|
+
pending: vue.Ref<boolean>;
|
|
726
|
+
post(params?: PostParams<{
|
|
727
|
+
user_ids: number[];
|
|
728
|
+
data: UserUpdate;
|
|
729
|
+
}> | undefined): Promise<ApiResponse<User[]> | null>;
|
|
730
|
+
};
|
|
282
731
|
|
|
283
732
|
type Mode = 'development' | 'production';
|
|
284
733
|
declare function setMode(newMode: Mode): void;
|
|
285
734
|
declare function getMode(): Mode;
|
|
286
|
-
declare function setToken(newToken: string): void;
|
|
287
|
-
declare function removeToken(): void;
|
|
288
|
-
declare function getToken(): string | null;
|
|
289
735
|
|
|
290
|
-
export { type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type
|
|
736
|
+
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCloneSalespoint, useCloneUser, useDeleteAkbars, useDeleteAkbarsDepositeScan, useDeleteBrokerclient, useDeleteGroupUser, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGetAkbars, useGetAkbarsDeposite, useGetAkbarsDepositeScanList, useGetAkbarsDictList, useGetAkbarsList, useGetAkbarsPrintformList, useGetBrokerclient, useGetBrokerclientList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, useProcessingAkbars, useSendAkbars, useSendAkbarsDeposite, useSendAkbarsScans, useUpdateAkbars, useUpdateAkbarsDeposite, useUpdateBrokerclient, useUpdateManySalespoint, useUpdateManyUser, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositeScan };
|