simpleloan_api 1.1.11 → 1.1.12
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 +78 -78
- package/dist/index.d.ts +78 -78
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -346,21 +346,21 @@ type SalespointCreditType = 'loan' | 'installment' | 'all' | 'all_partial' | 'pa
|
|
|
346
346
|
declare const useAccountLogin: () => {
|
|
347
347
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
348
348
|
pending: vue.Ref<boolean>;
|
|
349
|
-
post(params
|
|
349
|
+
post(params: PostParams<Login>): Promise<ApiResponse<LoginResponse> | null>;
|
|
350
350
|
};
|
|
351
351
|
/** Выход */
|
|
352
352
|
declare const useAccountLogout: () => {
|
|
353
353
|
response: vue.Ref<ApiResponse<unknown> | null>;
|
|
354
354
|
pending: vue.Ref<boolean>;
|
|
355
|
-
post(params
|
|
355
|
+
post(params: PostParams<unknown>): Promise<ApiResponse<unknown> | null>;
|
|
356
356
|
};
|
|
357
357
|
/** Разлогин указанного юзера */
|
|
358
358
|
declare const useAccountLogoutUser: () => {
|
|
359
359
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
360
360
|
pending: vue.Ref<boolean>;
|
|
361
|
-
post(params
|
|
361
|
+
post(params: PostParams<{
|
|
362
362
|
user_id: number;
|
|
363
|
-
}>
|
|
363
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
364
364
|
};
|
|
365
365
|
/** Проверка авторизации */
|
|
366
366
|
declare const useAccountCheckLogin: () => {
|
|
@@ -372,36 +372,36 @@ declare const useAccountCheckLogin: () => {
|
|
|
372
372
|
declare const useAccountRegister: () => {
|
|
373
373
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
374
374
|
pending: vue.Ref<boolean>;
|
|
375
|
-
post(params
|
|
375
|
+
post(params: PostParams<{
|
|
376
376
|
email: string;
|
|
377
377
|
password: string;
|
|
378
|
-
}>
|
|
378
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
379
379
|
};
|
|
380
380
|
/** Сброс пароля */
|
|
381
381
|
declare const useAccountResetPassword: () => {
|
|
382
382
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
383
383
|
pending: vue.Ref<boolean>;
|
|
384
|
-
post(params
|
|
384
|
+
post(params: PostParams<{
|
|
385
385
|
email: string;
|
|
386
|
-
}>
|
|
386
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
387
387
|
};
|
|
388
388
|
/** Сброс пароля - ввод нового */
|
|
389
389
|
declare const useAccountResetPasswordConfirmNew: () => {
|
|
390
390
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
391
391
|
pending: vue.Ref<boolean>;
|
|
392
|
-
post(params
|
|
392
|
+
post(params: PostParams<{
|
|
393
393
|
new_password: string;
|
|
394
394
|
uid: string;
|
|
395
|
-
}>
|
|
395
|
+
}>): Promise<ApiResponse<LoginResponse> | null>;
|
|
396
396
|
};
|
|
397
397
|
/** Смена пароля */
|
|
398
398
|
declare const useAccountUpdatePassword: () => {
|
|
399
399
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
400
400
|
pending: vue.Ref<boolean>;
|
|
401
|
-
post(params
|
|
401
|
+
post(params: PostParams<{
|
|
402
402
|
old_password: "string";
|
|
403
403
|
new_password: "string";
|
|
404
|
-
}>
|
|
404
|
+
}>): Promise<ApiResponse<LoginResponse> | null>;
|
|
405
405
|
};
|
|
406
406
|
|
|
407
407
|
type AkbarsUpdate = Partial<Akbars> & {
|
|
@@ -411,17 +411,17 @@ type AkbarsUpdate = Partial<Akbars> & {
|
|
|
411
411
|
declare const useGetAkbarsDictList: (dict: AkbarsDictNames) => {
|
|
412
412
|
response: vue.Ref<ApiResponse<Record<string, string>> | null>;
|
|
413
413
|
pending: vue.Ref<boolean>;
|
|
414
|
-
post(params
|
|
414
|
+
post(params: PostParams<{
|
|
415
415
|
mortgageapp_id: number;
|
|
416
|
-
}>
|
|
416
|
+
}>): Promise<ApiResponse<Record<string, string>> | null>;
|
|
417
417
|
};
|
|
418
418
|
/** Получение заявки Ак Барс Банка */
|
|
419
419
|
declare const useGetAkbars: () => {
|
|
420
420
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
421
421
|
pending: vue.Ref<boolean>;
|
|
422
|
-
post(params
|
|
422
|
+
post(params: PostParams<{
|
|
423
423
|
id: number;
|
|
424
|
-
}>
|
|
424
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
425
425
|
};
|
|
426
426
|
/** Получение списка заявок Ак Барс Банка */
|
|
427
427
|
declare const useGetAkbarsList: () => {
|
|
@@ -433,118 +433,118 @@ declare const useGetAkbarsList: () => {
|
|
|
433
433
|
declare const useDeleteAkbars: () => {
|
|
434
434
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
435
435
|
pending: vue.Ref<boolean>;
|
|
436
|
-
post(params
|
|
436
|
+
post(params: PostParams<{
|
|
437
437
|
id: number;
|
|
438
|
-
}>
|
|
438
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
439
439
|
};
|
|
440
440
|
/** Обновление заявки Ак Барс Банка */
|
|
441
441
|
declare const useUpdateAkbars: () => {
|
|
442
442
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
443
443
|
pending: vue.Ref<boolean>;
|
|
444
|
-
post(params
|
|
444
|
+
post(params: PostParams<AkbarsUpdate>): Promise<ApiResponse<Akbars> | null>;
|
|
445
445
|
};
|
|
446
446
|
/** Отправка заявки Ак Барс Банка */
|
|
447
447
|
declare const useSendAkbars: () => {
|
|
448
448
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
449
449
|
pending: vue.Ref<boolean>;
|
|
450
|
-
post(params
|
|
450
|
+
post(params: PostParams<{
|
|
451
451
|
id: number;
|
|
452
|
-
}>
|
|
452
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
453
453
|
};
|
|
454
454
|
/** Получение анкет для заёмщиков заявки Ак Барс Банка */
|
|
455
455
|
declare const useGenerateAkbarsScansApplications: () => {
|
|
456
456
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
457
|
pending: vue.Ref<boolean>;
|
|
458
|
-
post(params
|
|
458
|
+
post(params: PostParams<{
|
|
459
459
|
mortgageapp_id: number;
|
|
460
|
-
}>
|
|
460
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
461
461
|
};
|
|
462
462
|
/** Отправка сканов заявки Ак Барс Банка */
|
|
463
463
|
declare const useSendAkbarsScans: () => {
|
|
464
464
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
465
465
|
pending: vue.Ref<boolean>;
|
|
466
|
-
post(params
|
|
466
|
+
post(params: PostParams<{
|
|
467
467
|
id: number;
|
|
468
|
-
}>
|
|
468
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
469
469
|
};
|
|
470
470
|
/** Вызов метода рассмотрения заявки Ак Барс Банка */
|
|
471
471
|
declare const useProcessingAkbars: () => {
|
|
472
472
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
473
473
|
pending: vue.Ref<boolean>;
|
|
474
|
-
post(params
|
|
474
|
+
post(params: PostParams<{
|
|
475
475
|
id: number;
|
|
476
|
-
}>
|
|
476
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
477
477
|
};
|
|
478
478
|
/** Запрос на получение печатных форм заявки Ак Барс Банка */
|
|
479
479
|
declare const useAskAkbarsPrintforms: () => {
|
|
480
480
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
481
481
|
pending: vue.Ref<boolean>;
|
|
482
|
-
post(params
|
|
482
|
+
post(params: PostParams<{
|
|
483
483
|
id: number;
|
|
484
|
-
}>
|
|
484
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
485
485
|
};
|
|
486
486
|
/** Опрос статуса заявки после предодобрение */
|
|
487
487
|
declare const useLoanerApprovingAkbarsStatus: () => {
|
|
488
488
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
489
489
|
pending: vue.Ref<boolean>;
|
|
490
|
-
post(params
|
|
490
|
+
post(params: PostParams<{
|
|
491
491
|
id: number;
|
|
492
|
-
}>
|
|
492
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
493
493
|
};
|
|
494
494
|
/** Получение сформированных печатных форм Ак Барс Банка */
|
|
495
495
|
declare const useGetAkbarsPrintformList: () => {
|
|
496
496
|
response: vue.Ref<ApiResponse<AkbarsPrintform[]> | null>;
|
|
497
497
|
pending: vue.Ref<boolean>;
|
|
498
|
-
post(params
|
|
498
|
+
post(params: PostParams<{
|
|
499
499
|
id: number;
|
|
500
|
-
}>
|
|
500
|
+
}>): Promise<ApiResponse<AkbarsPrintform[]> | null>;
|
|
501
501
|
};
|
|
502
502
|
/** Добавить/Редактировать залог к заявке Ак Барс Банка */
|
|
503
503
|
declare const useUpdateAkbarsDeposit: () => {
|
|
504
504
|
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
505
505
|
pending: vue.Ref<boolean>;
|
|
506
|
-
post(params
|
|
506
|
+
post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
507
507
|
};
|
|
508
508
|
/** Получить залог из заявки Ак Барс Банка */
|
|
509
509
|
declare const useGetAkbarsDeposit: () => {
|
|
510
510
|
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
511
511
|
pending: vue.Ref<boolean>;
|
|
512
|
-
post(params
|
|
512
|
+
post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
513
513
|
};
|
|
514
514
|
/** Отправить информацию об залоге со сканами в Ак Барс Банк */
|
|
515
515
|
declare const useSendAkbarsDeposit: () => {
|
|
516
516
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
517
517
|
pending: vue.Ref<boolean>;
|
|
518
|
-
post(params
|
|
518
|
+
post(params: PostParams<{
|
|
519
519
|
id: number;
|
|
520
|
-
}>
|
|
520
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
521
521
|
};
|
|
522
522
|
/** Загрузить скан депозита в заявку Ак Барс Банка */
|
|
523
523
|
declare const useUploadAkbarsDepositScan: () => {
|
|
524
524
|
response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
|
|
525
525
|
pending: vue.Ref<boolean>;
|
|
526
|
-
post(params
|
|
526
|
+
post(params: PostParams<{
|
|
527
527
|
id: number;
|
|
528
528
|
file: UploadB64File;
|
|
529
529
|
scan_type: string;
|
|
530
|
-
}>
|
|
530
|
+
}>): Promise<ApiResponse<AkbarsDepositScan> | null>;
|
|
531
531
|
};
|
|
532
532
|
/** Получить список сканов депозита в заявке Ак Барс Банка */
|
|
533
533
|
declare const useGetAkbarsDepositScanList: () => {
|
|
534
534
|
response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
535
535
|
pending: vue.Ref<boolean>;
|
|
536
|
-
post(params
|
|
536
|
+
post(params: PostParams<{
|
|
537
537
|
id: number;
|
|
538
|
-
}>
|
|
538
|
+
}>): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
539
539
|
};
|
|
540
540
|
/** Удалить скан депозита в заявке Ак Барс Банка */
|
|
541
541
|
declare const useDeleteAkbarsDepositScan: () => {
|
|
542
542
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
543
543
|
pending: vue.Ref<boolean>;
|
|
544
|
-
post(params
|
|
544
|
+
post(params: PostParams<{
|
|
545
545
|
id: number;
|
|
546
546
|
item_id: number;
|
|
547
|
-
}>
|
|
547
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
@@ -554,15 +554,15 @@ type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
|
554
554
|
declare const useGetBrokerclient: () => {
|
|
555
555
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
556
556
|
pending: vue.Ref<boolean>;
|
|
557
|
-
post(params
|
|
557
|
+
post(params: PostParams<{
|
|
558
558
|
id: number;
|
|
559
|
-
}>
|
|
559
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
560
560
|
};
|
|
561
561
|
/** Обновить БО */
|
|
562
562
|
declare const useUpdateBrokerclient: () => {
|
|
563
563
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
564
564
|
pending: vue.Ref<boolean>;
|
|
565
|
-
post(params
|
|
565
|
+
post(params: PostParams<BrokerclientUpdate>): Promise<ApiResponse<Brokerclient> | null>;
|
|
566
566
|
};
|
|
567
567
|
/** Получить список БО */
|
|
568
568
|
declare const useGetBrokerclientList: () => {
|
|
@@ -574,27 +574,27 @@ declare const useGetBrokerclientList: () => {
|
|
|
574
574
|
declare const useDeleteBrokerclient: () => {
|
|
575
575
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
576
576
|
pending: vue.Ref<boolean>;
|
|
577
|
-
post(params
|
|
577
|
+
post(params: PostParams<{
|
|
578
578
|
id: number;
|
|
579
|
-
}>
|
|
579
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
580
580
|
};
|
|
581
581
|
/** Добавление сотрудника в штат БО */
|
|
582
582
|
declare const useAddStaffBrokerclient: () => {
|
|
583
583
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
584
584
|
pending: vue.Ref<boolean>;
|
|
585
|
-
post(params
|
|
585
|
+
post(params: PostParams<{
|
|
586
586
|
brokerclient_id: number;
|
|
587
587
|
user_id: number;
|
|
588
|
-
}>
|
|
588
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
589
589
|
};
|
|
590
590
|
/** Удаление сотрудника из штата БО */
|
|
591
591
|
declare const useDeleteStaffBrokerclient: () => {
|
|
592
592
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
593
593
|
pending: vue.Ref<boolean>;
|
|
594
|
-
post(params
|
|
594
|
+
post(params: PostParams<{
|
|
595
595
|
brokerclient_id: number;
|
|
596
596
|
user_id: number;
|
|
597
|
-
}>
|
|
597
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
598
598
|
};
|
|
599
599
|
|
|
600
600
|
type SalespointUpdate = Partial<Salespoint> & {
|
|
@@ -604,23 +604,23 @@ type SalespointUpdate = Partial<Salespoint> & {
|
|
|
604
604
|
declare const useGetSalespoint: () => {
|
|
605
605
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
606
606
|
pending: vue.Ref<boolean>;
|
|
607
|
-
post(params
|
|
607
|
+
post(params: PostParams<{
|
|
608
608
|
id: number;
|
|
609
|
-
}>
|
|
609
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
610
610
|
};
|
|
611
611
|
/** Обновить торговую точку */
|
|
612
612
|
declare const useUpdateSalespoint: () => {
|
|
613
613
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
614
614
|
pending: vue.Ref<boolean>;
|
|
615
|
-
post(params
|
|
615
|
+
post(params: PostParams<SalespointUpdate>): Promise<ApiResponse<Salespoint> | null>;
|
|
616
616
|
};
|
|
617
617
|
/** Копировать торговую точку */
|
|
618
618
|
declare const useCloneSalespoint: () => {
|
|
619
619
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
620
620
|
pending: vue.Ref<boolean>;
|
|
621
|
-
post(params
|
|
621
|
+
post(params: PostParams<{
|
|
622
622
|
id: number;
|
|
623
|
-
}>
|
|
623
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
624
624
|
};
|
|
625
625
|
/** Получить список торговых точек */
|
|
626
626
|
declare const useGetSalespointList: () => {
|
|
@@ -632,36 +632,36 @@ declare const useGetSalespointList: () => {
|
|
|
632
632
|
declare const useDeleteSalespoint: () => {
|
|
633
633
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
634
634
|
pending: vue.Ref<boolean>;
|
|
635
|
-
post(params
|
|
635
|
+
post(params: PostParams<{
|
|
636
636
|
id: number;
|
|
637
|
-
}>
|
|
637
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
638
638
|
};
|
|
639
639
|
/** Добавление сотрудника в штат торговой точки */
|
|
640
640
|
declare const useAddStaffSalespoint: () => {
|
|
641
641
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
642
642
|
pending: vue.Ref<boolean>;
|
|
643
|
-
post(params
|
|
643
|
+
post(params: PostParams<{
|
|
644
644
|
salespoint_id: number;
|
|
645
645
|
user_id: number;
|
|
646
|
-
}>
|
|
646
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
647
647
|
};
|
|
648
648
|
/** Удаление сотрудника из штата торговой точки */
|
|
649
649
|
declare const useDeleteStaffSalespoint: () => {
|
|
650
650
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
651
651
|
pending: vue.Ref<boolean>;
|
|
652
|
-
post(params
|
|
652
|
+
post(params: PostParams<{
|
|
653
653
|
salespoint_id: number;
|
|
654
654
|
user_id: number;
|
|
655
|
-
}>
|
|
655
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
656
656
|
};
|
|
657
657
|
/** Массовое обновление торговых точек */
|
|
658
658
|
declare const useUpdateManySalespoint: () => {
|
|
659
659
|
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
660
660
|
pending: vue.Ref<boolean>;
|
|
661
|
-
post(params
|
|
661
|
+
post(params: PostParams<{
|
|
662
662
|
user_ids: number[];
|
|
663
663
|
data: SalespointUpdate;
|
|
664
|
-
}>
|
|
664
|
+
}>): Promise<ApiResponse<Salespoint[]> | null>;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
667
|
type UserUpdate = Partial<User> & {
|
|
@@ -671,15 +671,15 @@ type UserUpdate = Partial<User> & {
|
|
|
671
671
|
declare const useGetUser: () => {
|
|
672
672
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
673
673
|
pending: vue.Ref<boolean>;
|
|
674
|
-
post(params
|
|
674
|
+
post(params: PostParams<{
|
|
675
675
|
id: number;
|
|
676
|
-
}>
|
|
676
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
677
677
|
};
|
|
678
678
|
/** Обновить пользователя */
|
|
679
679
|
declare const useUpdateUser: () => {
|
|
680
680
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
681
681
|
pending: vue.Ref<boolean>;
|
|
682
|
-
post(params
|
|
682
|
+
post(params: PostParams<UserUpdate>): Promise<ApiResponse<User> | null>;
|
|
683
683
|
};
|
|
684
684
|
/** Получить список юзеров */
|
|
685
685
|
declare const useGetUserList: () => {
|
|
@@ -691,44 +691,44 @@ declare const useGetUserList: () => {
|
|
|
691
691
|
declare const useDeleteUser: () => {
|
|
692
692
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
693
693
|
pending: vue.Ref<boolean>;
|
|
694
|
-
post(params
|
|
694
|
+
post(params: PostParams<{
|
|
695
695
|
id: number;
|
|
696
|
-
}>
|
|
696
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
697
697
|
};
|
|
698
698
|
/** Клонирование пользователя */
|
|
699
699
|
declare const useCloneUser: () => {
|
|
700
700
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
701
701
|
pending: vue.Ref<boolean>;
|
|
702
|
-
post(params
|
|
702
|
+
post(params: PostParams<{
|
|
703
703
|
id: number;
|
|
704
|
-
}>
|
|
704
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
705
705
|
};
|
|
706
706
|
/** Добавление группы к пользователю */
|
|
707
707
|
declare const useAddGroupUser: () => {
|
|
708
708
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
709
709
|
pending: vue.Ref<boolean>;
|
|
710
|
-
post(params
|
|
710
|
+
post(params: PostParams<{
|
|
711
711
|
group_id: number;
|
|
712
712
|
user_id: number;
|
|
713
|
-
}>
|
|
713
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
714
714
|
};
|
|
715
715
|
/** Удаление группы у пользователя */
|
|
716
716
|
declare const useDeleteGroupUser: () => {
|
|
717
717
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
718
718
|
pending: vue.Ref<boolean>;
|
|
719
|
-
post(params
|
|
719
|
+
post(params: PostParams<{
|
|
720
720
|
group_id: number;
|
|
721
721
|
user_id: number;
|
|
722
|
-
}>
|
|
722
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
723
723
|
};
|
|
724
724
|
/** Массовое обновление пользователей */
|
|
725
725
|
declare const useUpdateManyUser: () => {
|
|
726
726
|
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
727
727
|
pending: vue.Ref<boolean>;
|
|
728
|
-
post(params
|
|
728
|
+
post(params: PostParams<{
|
|
729
729
|
user_ids: number[];
|
|
730
730
|
data: UserUpdate;
|
|
731
|
-
}>
|
|
731
|
+
}>): Promise<ApiResponse<User[]> | null>;
|
|
732
732
|
};
|
|
733
733
|
|
|
734
734
|
type Mode = 'development' | 'production';
|
package/dist/index.d.ts
CHANGED
|
@@ -346,21 +346,21 @@ type SalespointCreditType = 'loan' | 'installment' | 'all' | 'all_partial' | 'pa
|
|
|
346
346
|
declare const useAccountLogin: () => {
|
|
347
347
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
348
348
|
pending: vue.Ref<boolean>;
|
|
349
|
-
post(params
|
|
349
|
+
post(params: PostParams<Login>): Promise<ApiResponse<LoginResponse> | null>;
|
|
350
350
|
};
|
|
351
351
|
/** Выход */
|
|
352
352
|
declare const useAccountLogout: () => {
|
|
353
353
|
response: vue.Ref<ApiResponse<unknown> | null>;
|
|
354
354
|
pending: vue.Ref<boolean>;
|
|
355
|
-
post(params
|
|
355
|
+
post(params: PostParams<unknown>): Promise<ApiResponse<unknown> | null>;
|
|
356
356
|
};
|
|
357
357
|
/** Разлогин указанного юзера */
|
|
358
358
|
declare const useAccountLogoutUser: () => {
|
|
359
359
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
360
360
|
pending: vue.Ref<boolean>;
|
|
361
|
-
post(params
|
|
361
|
+
post(params: PostParams<{
|
|
362
362
|
user_id: number;
|
|
363
|
-
}>
|
|
363
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
364
364
|
};
|
|
365
365
|
/** Проверка авторизации */
|
|
366
366
|
declare const useAccountCheckLogin: () => {
|
|
@@ -372,36 +372,36 @@ declare const useAccountCheckLogin: () => {
|
|
|
372
372
|
declare const useAccountRegister: () => {
|
|
373
373
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
374
374
|
pending: vue.Ref<boolean>;
|
|
375
|
-
post(params
|
|
375
|
+
post(params: PostParams<{
|
|
376
376
|
email: string;
|
|
377
377
|
password: string;
|
|
378
|
-
}>
|
|
378
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
379
379
|
};
|
|
380
380
|
/** Сброс пароля */
|
|
381
381
|
declare const useAccountResetPassword: () => {
|
|
382
382
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
383
383
|
pending: vue.Ref<boolean>;
|
|
384
|
-
post(params
|
|
384
|
+
post(params: PostParams<{
|
|
385
385
|
email: string;
|
|
386
|
-
}>
|
|
386
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
387
387
|
};
|
|
388
388
|
/** Сброс пароля - ввод нового */
|
|
389
389
|
declare const useAccountResetPasswordConfirmNew: () => {
|
|
390
390
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
391
391
|
pending: vue.Ref<boolean>;
|
|
392
|
-
post(params
|
|
392
|
+
post(params: PostParams<{
|
|
393
393
|
new_password: string;
|
|
394
394
|
uid: string;
|
|
395
|
-
}>
|
|
395
|
+
}>): Promise<ApiResponse<LoginResponse> | null>;
|
|
396
396
|
};
|
|
397
397
|
/** Смена пароля */
|
|
398
398
|
declare const useAccountUpdatePassword: () => {
|
|
399
399
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
400
400
|
pending: vue.Ref<boolean>;
|
|
401
|
-
post(params
|
|
401
|
+
post(params: PostParams<{
|
|
402
402
|
old_password: "string";
|
|
403
403
|
new_password: "string";
|
|
404
|
-
}>
|
|
404
|
+
}>): Promise<ApiResponse<LoginResponse> | null>;
|
|
405
405
|
};
|
|
406
406
|
|
|
407
407
|
type AkbarsUpdate = Partial<Akbars> & {
|
|
@@ -411,17 +411,17 @@ type AkbarsUpdate = Partial<Akbars> & {
|
|
|
411
411
|
declare const useGetAkbarsDictList: (dict: AkbarsDictNames) => {
|
|
412
412
|
response: vue.Ref<ApiResponse<Record<string, string>> | null>;
|
|
413
413
|
pending: vue.Ref<boolean>;
|
|
414
|
-
post(params
|
|
414
|
+
post(params: PostParams<{
|
|
415
415
|
mortgageapp_id: number;
|
|
416
|
-
}>
|
|
416
|
+
}>): Promise<ApiResponse<Record<string, string>> | null>;
|
|
417
417
|
};
|
|
418
418
|
/** Получение заявки Ак Барс Банка */
|
|
419
419
|
declare const useGetAkbars: () => {
|
|
420
420
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
421
421
|
pending: vue.Ref<boolean>;
|
|
422
|
-
post(params
|
|
422
|
+
post(params: PostParams<{
|
|
423
423
|
id: number;
|
|
424
|
-
}>
|
|
424
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
425
425
|
};
|
|
426
426
|
/** Получение списка заявок Ак Барс Банка */
|
|
427
427
|
declare const useGetAkbarsList: () => {
|
|
@@ -433,118 +433,118 @@ declare const useGetAkbarsList: () => {
|
|
|
433
433
|
declare const useDeleteAkbars: () => {
|
|
434
434
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
435
435
|
pending: vue.Ref<boolean>;
|
|
436
|
-
post(params
|
|
436
|
+
post(params: PostParams<{
|
|
437
437
|
id: number;
|
|
438
|
-
}>
|
|
438
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
439
439
|
};
|
|
440
440
|
/** Обновление заявки Ак Барс Банка */
|
|
441
441
|
declare const useUpdateAkbars: () => {
|
|
442
442
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
443
443
|
pending: vue.Ref<boolean>;
|
|
444
|
-
post(params
|
|
444
|
+
post(params: PostParams<AkbarsUpdate>): Promise<ApiResponse<Akbars> | null>;
|
|
445
445
|
};
|
|
446
446
|
/** Отправка заявки Ак Барс Банка */
|
|
447
447
|
declare const useSendAkbars: () => {
|
|
448
448
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
449
449
|
pending: vue.Ref<boolean>;
|
|
450
|
-
post(params
|
|
450
|
+
post(params: PostParams<{
|
|
451
451
|
id: number;
|
|
452
|
-
}>
|
|
452
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
453
453
|
};
|
|
454
454
|
/** Получение анкет для заёмщиков заявки Ак Барс Банка */
|
|
455
455
|
declare const useGenerateAkbarsScansApplications: () => {
|
|
456
456
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
457
|
pending: vue.Ref<boolean>;
|
|
458
|
-
post(params
|
|
458
|
+
post(params: PostParams<{
|
|
459
459
|
mortgageapp_id: number;
|
|
460
|
-
}>
|
|
460
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
461
461
|
};
|
|
462
462
|
/** Отправка сканов заявки Ак Барс Банка */
|
|
463
463
|
declare const useSendAkbarsScans: () => {
|
|
464
464
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
465
465
|
pending: vue.Ref<boolean>;
|
|
466
|
-
post(params
|
|
466
|
+
post(params: PostParams<{
|
|
467
467
|
id: number;
|
|
468
|
-
}>
|
|
468
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
469
469
|
};
|
|
470
470
|
/** Вызов метода рассмотрения заявки Ак Барс Банка */
|
|
471
471
|
declare const useProcessingAkbars: () => {
|
|
472
472
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
473
473
|
pending: vue.Ref<boolean>;
|
|
474
|
-
post(params
|
|
474
|
+
post(params: PostParams<{
|
|
475
475
|
id: number;
|
|
476
|
-
}>
|
|
476
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
477
477
|
};
|
|
478
478
|
/** Запрос на получение печатных форм заявки Ак Барс Банка */
|
|
479
479
|
declare const useAskAkbarsPrintforms: () => {
|
|
480
480
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
481
481
|
pending: vue.Ref<boolean>;
|
|
482
|
-
post(params
|
|
482
|
+
post(params: PostParams<{
|
|
483
483
|
id: number;
|
|
484
|
-
}>
|
|
484
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
485
485
|
};
|
|
486
486
|
/** Опрос статуса заявки после предодобрение */
|
|
487
487
|
declare const useLoanerApprovingAkbarsStatus: () => {
|
|
488
488
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
489
489
|
pending: vue.Ref<boolean>;
|
|
490
|
-
post(params
|
|
490
|
+
post(params: PostParams<{
|
|
491
491
|
id: number;
|
|
492
|
-
}>
|
|
492
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
493
493
|
};
|
|
494
494
|
/** Получение сформированных печатных форм Ак Барс Банка */
|
|
495
495
|
declare const useGetAkbarsPrintformList: () => {
|
|
496
496
|
response: vue.Ref<ApiResponse<AkbarsPrintform[]> | null>;
|
|
497
497
|
pending: vue.Ref<boolean>;
|
|
498
|
-
post(params
|
|
498
|
+
post(params: PostParams<{
|
|
499
499
|
id: number;
|
|
500
|
-
}>
|
|
500
|
+
}>): Promise<ApiResponse<AkbarsPrintform[]> | null>;
|
|
501
501
|
};
|
|
502
502
|
/** Добавить/Редактировать залог к заявке Ак Барс Банка */
|
|
503
503
|
declare const useUpdateAkbarsDeposit: () => {
|
|
504
504
|
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
505
505
|
pending: vue.Ref<boolean>;
|
|
506
|
-
post(params
|
|
506
|
+
post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
507
507
|
};
|
|
508
508
|
/** Получить залог из заявки Ак Барс Банка */
|
|
509
509
|
declare const useGetAkbarsDeposit: () => {
|
|
510
510
|
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
511
511
|
pending: vue.Ref<boolean>;
|
|
512
|
-
post(params
|
|
512
|
+
post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
513
513
|
};
|
|
514
514
|
/** Отправить информацию об залоге со сканами в Ак Барс Банк */
|
|
515
515
|
declare const useSendAkbarsDeposit: () => {
|
|
516
516
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
517
517
|
pending: vue.Ref<boolean>;
|
|
518
|
-
post(params
|
|
518
|
+
post(params: PostParams<{
|
|
519
519
|
id: number;
|
|
520
|
-
}>
|
|
520
|
+
}>): Promise<ApiResponse<Akbars> | null>;
|
|
521
521
|
};
|
|
522
522
|
/** Загрузить скан депозита в заявку Ак Барс Банка */
|
|
523
523
|
declare const useUploadAkbarsDepositScan: () => {
|
|
524
524
|
response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
|
|
525
525
|
pending: vue.Ref<boolean>;
|
|
526
|
-
post(params
|
|
526
|
+
post(params: PostParams<{
|
|
527
527
|
id: number;
|
|
528
528
|
file: UploadB64File;
|
|
529
529
|
scan_type: string;
|
|
530
|
-
}>
|
|
530
|
+
}>): Promise<ApiResponse<AkbarsDepositScan> | null>;
|
|
531
531
|
};
|
|
532
532
|
/** Получить список сканов депозита в заявке Ак Барс Банка */
|
|
533
533
|
declare const useGetAkbarsDepositScanList: () => {
|
|
534
534
|
response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
535
535
|
pending: vue.Ref<boolean>;
|
|
536
|
-
post(params
|
|
536
|
+
post(params: PostParams<{
|
|
537
537
|
id: number;
|
|
538
|
-
}>
|
|
538
|
+
}>): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
539
539
|
};
|
|
540
540
|
/** Удалить скан депозита в заявке Ак Барс Банка */
|
|
541
541
|
declare const useDeleteAkbarsDepositScan: () => {
|
|
542
542
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
543
543
|
pending: vue.Ref<boolean>;
|
|
544
|
-
post(params
|
|
544
|
+
post(params: PostParams<{
|
|
545
545
|
id: number;
|
|
546
546
|
item_id: number;
|
|
547
|
-
}>
|
|
547
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
@@ -554,15 +554,15 @@ type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
|
554
554
|
declare const useGetBrokerclient: () => {
|
|
555
555
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
556
556
|
pending: vue.Ref<boolean>;
|
|
557
|
-
post(params
|
|
557
|
+
post(params: PostParams<{
|
|
558
558
|
id: number;
|
|
559
|
-
}>
|
|
559
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
560
560
|
};
|
|
561
561
|
/** Обновить БО */
|
|
562
562
|
declare const useUpdateBrokerclient: () => {
|
|
563
563
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
564
564
|
pending: vue.Ref<boolean>;
|
|
565
|
-
post(params
|
|
565
|
+
post(params: PostParams<BrokerclientUpdate>): Promise<ApiResponse<Brokerclient> | null>;
|
|
566
566
|
};
|
|
567
567
|
/** Получить список БО */
|
|
568
568
|
declare const useGetBrokerclientList: () => {
|
|
@@ -574,27 +574,27 @@ declare const useGetBrokerclientList: () => {
|
|
|
574
574
|
declare const useDeleteBrokerclient: () => {
|
|
575
575
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
576
576
|
pending: vue.Ref<boolean>;
|
|
577
|
-
post(params
|
|
577
|
+
post(params: PostParams<{
|
|
578
578
|
id: number;
|
|
579
|
-
}>
|
|
579
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
580
580
|
};
|
|
581
581
|
/** Добавление сотрудника в штат БО */
|
|
582
582
|
declare const useAddStaffBrokerclient: () => {
|
|
583
583
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
584
584
|
pending: vue.Ref<boolean>;
|
|
585
|
-
post(params
|
|
585
|
+
post(params: PostParams<{
|
|
586
586
|
brokerclient_id: number;
|
|
587
587
|
user_id: number;
|
|
588
|
-
}>
|
|
588
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
589
589
|
};
|
|
590
590
|
/** Удаление сотрудника из штата БО */
|
|
591
591
|
declare const useDeleteStaffBrokerclient: () => {
|
|
592
592
|
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
593
593
|
pending: vue.Ref<boolean>;
|
|
594
|
-
post(params
|
|
594
|
+
post(params: PostParams<{
|
|
595
595
|
brokerclient_id: number;
|
|
596
596
|
user_id: number;
|
|
597
|
-
}>
|
|
597
|
+
}>): Promise<ApiResponse<Brokerclient> | null>;
|
|
598
598
|
};
|
|
599
599
|
|
|
600
600
|
type SalespointUpdate = Partial<Salespoint> & {
|
|
@@ -604,23 +604,23 @@ type SalespointUpdate = Partial<Salespoint> & {
|
|
|
604
604
|
declare const useGetSalespoint: () => {
|
|
605
605
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
606
606
|
pending: vue.Ref<boolean>;
|
|
607
|
-
post(params
|
|
607
|
+
post(params: PostParams<{
|
|
608
608
|
id: number;
|
|
609
|
-
}>
|
|
609
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
610
610
|
};
|
|
611
611
|
/** Обновить торговую точку */
|
|
612
612
|
declare const useUpdateSalespoint: () => {
|
|
613
613
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
614
614
|
pending: vue.Ref<boolean>;
|
|
615
|
-
post(params
|
|
615
|
+
post(params: PostParams<SalespointUpdate>): Promise<ApiResponse<Salespoint> | null>;
|
|
616
616
|
};
|
|
617
617
|
/** Копировать торговую точку */
|
|
618
618
|
declare const useCloneSalespoint: () => {
|
|
619
619
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
620
620
|
pending: vue.Ref<boolean>;
|
|
621
|
-
post(params
|
|
621
|
+
post(params: PostParams<{
|
|
622
622
|
id: number;
|
|
623
|
-
}>
|
|
623
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
624
624
|
};
|
|
625
625
|
/** Получить список торговых точек */
|
|
626
626
|
declare const useGetSalespointList: () => {
|
|
@@ -632,36 +632,36 @@ declare const useGetSalespointList: () => {
|
|
|
632
632
|
declare const useDeleteSalespoint: () => {
|
|
633
633
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
634
634
|
pending: vue.Ref<boolean>;
|
|
635
|
-
post(params
|
|
635
|
+
post(params: PostParams<{
|
|
636
636
|
id: number;
|
|
637
|
-
}>
|
|
637
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
638
638
|
};
|
|
639
639
|
/** Добавление сотрудника в штат торговой точки */
|
|
640
640
|
declare const useAddStaffSalespoint: () => {
|
|
641
641
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
642
642
|
pending: vue.Ref<boolean>;
|
|
643
|
-
post(params
|
|
643
|
+
post(params: PostParams<{
|
|
644
644
|
salespoint_id: number;
|
|
645
645
|
user_id: number;
|
|
646
|
-
}>
|
|
646
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
647
647
|
};
|
|
648
648
|
/** Удаление сотрудника из штата торговой точки */
|
|
649
649
|
declare const useDeleteStaffSalespoint: () => {
|
|
650
650
|
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
651
651
|
pending: vue.Ref<boolean>;
|
|
652
|
-
post(params
|
|
652
|
+
post(params: PostParams<{
|
|
653
653
|
salespoint_id: number;
|
|
654
654
|
user_id: number;
|
|
655
|
-
}>
|
|
655
|
+
}>): Promise<ApiResponse<Salespoint> | null>;
|
|
656
656
|
};
|
|
657
657
|
/** Массовое обновление торговых точек */
|
|
658
658
|
declare const useUpdateManySalespoint: () => {
|
|
659
659
|
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
660
660
|
pending: vue.Ref<boolean>;
|
|
661
|
-
post(params
|
|
661
|
+
post(params: PostParams<{
|
|
662
662
|
user_ids: number[];
|
|
663
663
|
data: SalespointUpdate;
|
|
664
|
-
}>
|
|
664
|
+
}>): Promise<ApiResponse<Salespoint[]> | null>;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
667
|
type UserUpdate = Partial<User> & {
|
|
@@ -671,15 +671,15 @@ type UserUpdate = Partial<User> & {
|
|
|
671
671
|
declare const useGetUser: () => {
|
|
672
672
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
673
673
|
pending: vue.Ref<boolean>;
|
|
674
|
-
post(params
|
|
674
|
+
post(params: PostParams<{
|
|
675
675
|
id: number;
|
|
676
|
-
}>
|
|
676
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
677
677
|
};
|
|
678
678
|
/** Обновить пользователя */
|
|
679
679
|
declare const useUpdateUser: () => {
|
|
680
680
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
681
681
|
pending: vue.Ref<boolean>;
|
|
682
|
-
post(params
|
|
682
|
+
post(params: PostParams<UserUpdate>): Promise<ApiResponse<User> | null>;
|
|
683
683
|
};
|
|
684
684
|
/** Получить список юзеров */
|
|
685
685
|
declare const useGetUserList: () => {
|
|
@@ -691,44 +691,44 @@ declare const useGetUserList: () => {
|
|
|
691
691
|
declare const useDeleteUser: () => {
|
|
692
692
|
response: vue.Ref<ApiResponse<null> | null>;
|
|
693
693
|
pending: vue.Ref<boolean>;
|
|
694
|
-
post(params
|
|
694
|
+
post(params: PostParams<{
|
|
695
695
|
id: number;
|
|
696
|
-
}>
|
|
696
|
+
}>): Promise<ApiResponse<null> | null>;
|
|
697
697
|
};
|
|
698
698
|
/** Клонирование пользователя */
|
|
699
699
|
declare const useCloneUser: () => {
|
|
700
700
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
701
701
|
pending: vue.Ref<boolean>;
|
|
702
|
-
post(params
|
|
702
|
+
post(params: PostParams<{
|
|
703
703
|
id: number;
|
|
704
|
-
}>
|
|
704
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
705
705
|
};
|
|
706
706
|
/** Добавление группы к пользователю */
|
|
707
707
|
declare const useAddGroupUser: () => {
|
|
708
708
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
709
709
|
pending: vue.Ref<boolean>;
|
|
710
|
-
post(params
|
|
710
|
+
post(params: PostParams<{
|
|
711
711
|
group_id: number;
|
|
712
712
|
user_id: number;
|
|
713
|
-
}>
|
|
713
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
714
714
|
};
|
|
715
715
|
/** Удаление группы у пользователя */
|
|
716
716
|
declare const useDeleteGroupUser: () => {
|
|
717
717
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
718
718
|
pending: vue.Ref<boolean>;
|
|
719
|
-
post(params
|
|
719
|
+
post(params: PostParams<{
|
|
720
720
|
group_id: number;
|
|
721
721
|
user_id: number;
|
|
722
|
-
}>
|
|
722
|
+
}>): Promise<ApiResponse<User> | null>;
|
|
723
723
|
};
|
|
724
724
|
/** Массовое обновление пользователей */
|
|
725
725
|
declare const useUpdateManyUser: () => {
|
|
726
726
|
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
727
727
|
pending: vue.Ref<boolean>;
|
|
728
|
-
post(params
|
|
728
|
+
post(params: PostParams<{
|
|
729
729
|
user_ids: number[];
|
|
730
730
|
data: UserUpdate;
|
|
731
|
-
}>
|
|
731
|
+
}>): Promise<ApiResponse<User[]> | null>;
|
|
732
732
|
};
|
|
733
733
|
|
|
734
734
|
type Mode = 'development' | 'production';
|
package/dist/index.js
CHANGED
|
@@ -138,7 +138,7 @@ function getBody(params) {
|
|
|
138
138
|
_token: localStorage.getItem("token") || void 0
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
function useFetch(url, clearResponse) {
|
|
141
|
+
function useFetch(url, clearResponse = false) {
|
|
142
142
|
const response = (0, import_vue2.ref)(null);
|
|
143
143
|
const pending = (0, import_vue2.ref)(false);
|
|
144
144
|
const fullUrl = getApiUrl() + url;
|
package/dist/index.mjs
CHANGED
|
@@ -64,7 +64,7 @@ function getBody(params) {
|
|
|
64
64
|
_token: localStorage.getItem("token") || void 0
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function useFetch(url, clearResponse) {
|
|
67
|
+
function useFetch(url, clearResponse = false) {
|
|
68
68
|
const response = ref2(null);
|
|
69
69
|
const pending = ref2(false);
|
|
70
70
|
const fullUrl = getApiUrl() + url;
|