simpleloan_api 1.1.10 → 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 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?: PostParams<Login> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<unknown> | undefined): Promise<ApiResponse<unknown> | null>;
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?: PostParams<{
361
+ post(params: PostParams<{
362
362
  user_id: number;
363
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<{
375
+ post(params: PostParams<{
376
376
  email: string;
377
377
  password: string;
378
- }> | undefined): Promise<ApiResponse<User> | null>;
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?: PostParams<{
384
+ post(params: PostParams<{
385
385
  email: string;
386
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<{
392
+ post(params: PostParams<{
393
393
  new_password: string;
394
394
  uid: string;
395
- }> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<{
401
+ post(params: PostParams<{
402
402
  old_password: "string";
403
403
  new_password: "string";
404
- }> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<{
414
+ post(params: PostParams<{
415
415
  mortgageapp_id: number;
416
- }> | undefined): Promise<ApiResponse<Record<string, string>> | null>;
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?: PostParams<{
422
+ post(params: PostParams<{
423
423
  id: number;
424
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
424
+ }>): Promise<ApiResponse<Akbars> | null>;
425
425
  };
426
426
  /** Получение списка заявок Ак Барс Банка */
427
427
  declare const useGetAkbarsList: () => {
@@ -433,116 +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?: PostParams<{
436
+ post(params: PostParams<{
437
437
  id: number;
438
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<AkbarsUpdate> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
450
+ post(params: PostParams<{
451
451
  id: number;
452
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
458
+ post(params: PostParams<{
459
459
  mortgageapp_id: number;
460
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
466
+ post(params: PostParams<{
467
467
  id: number;
468
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
474
+ post(params: PostParams<{
475
475
  id: number;
476
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
482
+ post(params: PostParams<{
483
483
  id: number;
484
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
490
+ post(params: PostParams<{
491
491
  id: number;
492
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
498
+ post(params: PostParams<{
499
499
  id: number;
500
- }> | undefined): Promise<ApiResponse<AkbarsPrintform[]> | null>;
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?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
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?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
512
+ post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
513
513
  };
514
514
  /** Отправить информацию об залоге со сканами в Ак Барс Банк */
515
515
  declare const useSendAkbarsDeposit: () => {
516
- response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
516
+ response: vue.Ref<ApiResponse<Akbars> | null>;
517
517
  pending: vue.Ref<boolean>;
518
- post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
518
+ post(params: PostParams<{
519
+ id: number;
520
+ }>): Promise<ApiResponse<Akbars> | null>;
519
521
  };
520
522
  /** Загрузить скан депозита в заявку Ак Барс Банка */
521
523
  declare const useUploadAkbarsDepositScan: () => {
522
524
  response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
523
525
  pending: vue.Ref<boolean>;
524
- post(params?: PostParams<{
526
+ post(params: PostParams<{
525
527
  id: number;
526
528
  file: UploadB64File;
527
529
  scan_type: string;
528
- }> | undefined): Promise<ApiResponse<AkbarsDepositScan> | null>;
530
+ }>): Promise<ApiResponse<AkbarsDepositScan> | null>;
529
531
  };
530
532
  /** Получить список сканов депозита в заявке Ак Барс Банка */
531
533
  declare const useGetAkbarsDepositScanList: () => {
532
534
  response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
533
535
  pending: vue.Ref<boolean>;
534
- post(params?: PostParams<{
536
+ post(params: PostParams<{
535
537
  id: number;
536
- }> | undefined): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
538
+ }>): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
537
539
  };
538
540
  /** Удалить скан депозита в заявке Ак Барс Банка */
539
541
  declare const useDeleteAkbarsDepositScan: () => {
540
542
  response: vue.Ref<ApiResponse<null> | null>;
541
543
  pending: vue.Ref<boolean>;
542
- post(params?: PostParams<{
544
+ post(params: PostParams<{
543
545
  id: number;
544
546
  item_id: number;
545
- }> | undefined): Promise<ApiResponse<null> | null>;
547
+ }>): Promise<ApiResponse<null> | null>;
546
548
  };
547
549
 
548
550
  type BrokerclientUpdate = Partial<Brokerclient> & {
@@ -552,15 +554,15 @@ type BrokerclientUpdate = Partial<Brokerclient> & {
552
554
  declare const useGetBrokerclient: () => {
553
555
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
554
556
  pending: vue.Ref<boolean>;
555
- post(params?: PostParams<{
557
+ post(params: PostParams<{
556
558
  id: number;
557
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
559
+ }>): Promise<ApiResponse<Brokerclient> | null>;
558
560
  };
559
561
  /** Обновить БО */
560
562
  declare const useUpdateBrokerclient: () => {
561
563
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
562
564
  pending: vue.Ref<boolean>;
563
- post(params?: PostParams<BrokerclientUpdate> | undefined): Promise<ApiResponse<Brokerclient> | null>;
565
+ post(params: PostParams<BrokerclientUpdate>): Promise<ApiResponse<Brokerclient> | null>;
564
566
  };
565
567
  /** Получить список БО */
566
568
  declare const useGetBrokerclientList: () => {
@@ -572,27 +574,27 @@ declare const useGetBrokerclientList: () => {
572
574
  declare const useDeleteBrokerclient: () => {
573
575
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
574
576
  pending: vue.Ref<boolean>;
575
- post(params?: PostParams<{
577
+ post(params: PostParams<{
576
578
  id: number;
577
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
579
+ }>): Promise<ApiResponse<Brokerclient> | null>;
578
580
  };
579
581
  /** Добавление сотрудника в штат БО */
580
582
  declare const useAddStaffBrokerclient: () => {
581
583
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
582
584
  pending: vue.Ref<boolean>;
583
- post(params?: PostParams<{
585
+ post(params: PostParams<{
584
586
  brokerclient_id: number;
585
587
  user_id: number;
586
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
588
+ }>): Promise<ApiResponse<Brokerclient> | null>;
587
589
  };
588
590
  /** Удаление сотрудника из штата БО */
589
591
  declare const useDeleteStaffBrokerclient: () => {
590
592
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
591
593
  pending: vue.Ref<boolean>;
592
- post(params?: PostParams<{
594
+ post(params: PostParams<{
593
595
  brokerclient_id: number;
594
596
  user_id: number;
595
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
597
+ }>): Promise<ApiResponse<Brokerclient> | null>;
596
598
  };
597
599
 
598
600
  type SalespointUpdate = Partial<Salespoint> & {
@@ -602,23 +604,23 @@ type SalespointUpdate = Partial<Salespoint> & {
602
604
  declare const useGetSalespoint: () => {
603
605
  response: vue.Ref<ApiResponse<Salespoint> | null>;
604
606
  pending: vue.Ref<boolean>;
605
- post(params?: PostParams<{
607
+ post(params: PostParams<{
606
608
  id: number;
607
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
609
+ }>): Promise<ApiResponse<Salespoint> | null>;
608
610
  };
609
611
  /** Обновить торговую точку */
610
612
  declare const useUpdateSalespoint: () => {
611
613
  response: vue.Ref<ApiResponse<Salespoint> | null>;
612
614
  pending: vue.Ref<boolean>;
613
- post(params?: PostParams<SalespointUpdate> | undefined): Promise<ApiResponse<Salespoint> | null>;
615
+ post(params: PostParams<SalespointUpdate>): Promise<ApiResponse<Salespoint> | null>;
614
616
  };
615
617
  /** Копировать торговую точку */
616
618
  declare const useCloneSalespoint: () => {
617
619
  response: vue.Ref<ApiResponse<Salespoint> | null>;
618
620
  pending: vue.Ref<boolean>;
619
- post(params?: PostParams<{
621
+ post(params: PostParams<{
620
622
  id: number;
621
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
623
+ }>): Promise<ApiResponse<Salespoint> | null>;
622
624
  };
623
625
  /** Получить список торговых точек */
624
626
  declare const useGetSalespointList: () => {
@@ -630,36 +632,36 @@ declare const useGetSalespointList: () => {
630
632
  declare const useDeleteSalespoint: () => {
631
633
  response: vue.Ref<ApiResponse<Salespoint> | null>;
632
634
  pending: vue.Ref<boolean>;
633
- post(params?: PostParams<{
635
+ post(params: PostParams<{
634
636
  id: number;
635
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
637
+ }>): Promise<ApiResponse<Salespoint> | null>;
636
638
  };
637
639
  /** Добавление сотрудника в штат торговой точки */
638
640
  declare const useAddStaffSalespoint: () => {
639
641
  response: vue.Ref<ApiResponse<Salespoint> | null>;
640
642
  pending: vue.Ref<boolean>;
641
- post(params?: PostParams<{
643
+ post(params: PostParams<{
642
644
  salespoint_id: number;
643
645
  user_id: number;
644
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
646
+ }>): Promise<ApiResponse<Salespoint> | null>;
645
647
  };
646
648
  /** Удаление сотрудника из штата торговой точки */
647
649
  declare const useDeleteStaffSalespoint: () => {
648
650
  response: vue.Ref<ApiResponse<Salespoint> | null>;
649
651
  pending: vue.Ref<boolean>;
650
- post(params?: PostParams<{
652
+ post(params: PostParams<{
651
653
  salespoint_id: number;
652
654
  user_id: number;
653
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
655
+ }>): Promise<ApiResponse<Salespoint> | null>;
654
656
  };
655
657
  /** Массовое обновление торговых точек */
656
658
  declare const useUpdateManySalespoint: () => {
657
659
  response: vue.Ref<ApiResponse<Salespoint[]> | null>;
658
660
  pending: vue.Ref<boolean>;
659
- post(params?: PostParams<{
661
+ post(params: PostParams<{
660
662
  user_ids: number[];
661
663
  data: SalespointUpdate;
662
- }> | undefined): Promise<ApiResponse<Salespoint[]> | null>;
664
+ }>): Promise<ApiResponse<Salespoint[]> | null>;
663
665
  };
664
666
 
665
667
  type UserUpdate = Partial<User> & {
@@ -669,15 +671,15 @@ type UserUpdate = Partial<User> & {
669
671
  declare const useGetUser: () => {
670
672
  response: vue.Ref<ApiResponse<User> | null>;
671
673
  pending: vue.Ref<boolean>;
672
- post(params?: PostParams<{
674
+ post(params: PostParams<{
673
675
  id: number;
674
- }> | undefined): Promise<ApiResponse<User> | null>;
676
+ }>): Promise<ApiResponse<User> | null>;
675
677
  };
676
678
  /** Обновить пользователя */
677
679
  declare const useUpdateUser: () => {
678
680
  response: vue.Ref<ApiResponse<User> | null>;
679
681
  pending: vue.Ref<boolean>;
680
- post(params?: PostParams<UserUpdate> | undefined): Promise<ApiResponse<User> | null>;
682
+ post(params: PostParams<UserUpdate>): Promise<ApiResponse<User> | null>;
681
683
  };
682
684
  /** Получить список юзеров */
683
685
  declare const useGetUserList: () => {
@@ -689,44 +691,44 @@ declare const useGetUserList: () => {
689
691
  declare const useDeleteUser: () => {
690
692
  response: vue.Ref<ApiResponse<null> | null>;
691
693
  pending: vue.Ref<boolean>;
692
- post(params?: PostParams<{
694
+ post(params: PostParams<{
693
695
  id: number;
694
- }> | undefined): Promise<ApiResponse<null> | null>;
696
+ }>): Promise<ApiResponse<null> | null>;
695
697
  };
696
698
  /** Клонирование пользователя */
697
699
  declare const useCloneUser: () => {
698
700
  response: vue.Ref<ApiResponse<User> | null>;
699
701
  pending: vue.Ref<boolean>;
700
- post(params?: PostParams<{
702
+ post(params: PostParams<{
701
703
  id: number;
702
- }> | undefined): Promise<ApiResponse<User> | null>;
704
+ }>): Promise<ApiResponse<User> | null>;
703
705
  };
704
706
  /** Добавление группы к пользователю */
705
707
  declare const useAddGroupUser: () => {
706
708
  response: vue.Ref<ApiResponse<User> | null>;
707
709
  pending: vue.Ref<boolean>;
708
- post(params?: PostParams<{
710
+ post(params: PostParams<{
709
711
  group_id: number;
710
712
  user_id: number;
711
- }> | undefined): Promise<ApiResponse<User> | null>;
713
+ }>): Promise<ApiResponse<User> | null>;
712
714
  };
713
715
  /** Удаление группы у пользователя */
714
716
  declare const useDeleteGroupUser: () => {
715
717
  response: vue.Ref<ApiResponse<User> | null>;
716
718
  pending: vue.Ref<boolean>;
717
- post(params?: PostParams<{
719
+ post(params: PostParams<{
718
720
  group_id: number;
719
721
  user_id: number;
720
- }> | undefined): Promise<ApiResponse<User> | null>;
722
+ }>): Promise<ApiResponse<User> | null>;
721
723
  };
722
724
  /** Массовое обновление пользователей */
723
725
  declare const useUpdateManyUser: () => {
724
726
  response: vue.Ref<ApiResponse<User[]> | null>;
725
727
  pending: vue.Ref<boolean>;
726
- post(params?: PostParams<{
728
+ post(params: PostParams<{
727
729
  user_ids: number[];
728
730
  data: UserUpdate;
729
- }> | undefined): Promise<ApiResponse<User[]> | null>;
731
+ }>): Promise<ApiResponse<User[]> | null>;
730
732
  };
731
733
 
732
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?: PostParams<Login> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<unknown> | undefined): Promise<ApiResponse<unknown> | null>;
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?: PostParams<{
361
+ post(params: PostParams<{
362
362
  user_id: number;
363
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<{
375
+ post(params: PostParams<{
376
376
  email: string;
377
377
  password: string;
378
- }> | undefined): Promise<ApiResponse<User> | null>;
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?: PostParams<{
384
+ post(params: PostParams<{
385
385
  email: string;
386
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<{
392
+ post(params: PostParams<{
393
393
  new_password: string;
394
394
  uid: string;
395
- }> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<{
401
+ post(params: PostParams<{
402
402
  old_password: "string";
403
403
  new_password: "string";
404
- }> | undefined): Promise<ApiResponse<LoginResponse> | null>;
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?: PostParams<{
414
+ post(params: PostParams<{
415
415
  mortgageapp_id: number;
416
- }> | undefined): Promise<ApiResponse<Record<string, string>> | null>;
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?: PostParams<{
422
+ post(params: PostParams<{
423
423
  id: number;
424
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
424
+ }>): Promise<ApiResponse<Akbars> | null>;
425
425
  };
426
426
  /** Получение списка заявок Ак Барс Банка */
427
427
  declare const useGetAkbarsList: () => {
@@ -433,116 +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?: PostParams<{
436
+ post(params: PostParams<{
437
437
  id: number;
438
- }> | undefined): Promise<ApiResponse<null> | null>;
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?: PostParams<AkbarsUpdate> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
450
+ post(params: PostParams<{
451
451
  id: number;
452
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
458
+ post(params: PostParams<{
459
459
  mortgageapp_id: number;
460
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
466
+ post(params: PostParams<{
467
467
  id: number;
468
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
474
+ post(params: PostParams<{
475
475
  id: number;
476
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
482
+ post(params: PostParams<{
483
483
  id: number;
484
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
490
+ post(params: PostParams<{
491
491
  id: number;
492
- }> | undefined): Promise<ApiResponse<Akbars> | null>;
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?: PostParams<{
498
+ post(params: PostParams<{
499
499
  id: number;
500
- }> | undefined): Promise<ApiResponse<AkbarsPrintform[]> | null>;
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?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
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?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
512
+ post(params: PostParams<Partial<AkbarsDeposit>>): Promise<ApiResponse<AkbarsDeposit> | null>;
513
513
  };
514
514
  /** Отправить информацию об залоге со сканами в Ак Барс Банк */
515
515
  declare const useSendAkbarsDeposit: () => {
516
- response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
516
+ response: vue.Ref<ApiResponse<Akbars> | null>;
517
517
  pending: vue.Ref<boolean>;
518
- post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
518
+ post(params: PostParams<{
519
+ id: number;
520
+ }>): Promise<ApiResponse<Akbars> | null>;
519
521
  };
520
522
  /** Загрузить скан депозита в заявку Ак Барс Банка */
521
523
  declare const useUploadAkbarsDepositScan: () => {
522
524
  response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
523
525
  pending: vue.Ref<boolean>;
524
- post(params?: PostParams<{
526
+ post(params: PostParams<{
525
527
  id: number;
526
528
  file: UploadB64File;
527
529
  scan_type: string;
528
- }> | undefined): Promise<ApiResponse<AkbarsDepositScan> | null>;
530
+ }>): Promise<ApiResponse<AkbarsDepositScan> | null>;
529
531
  };
530
532
  /** Получить список сканов депозита в заявке Ак Барс Банка */
531
533
  declare const useGetAkbarsDepositScanList: () => {
532
534
  response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
533
535
  pending: vue.Ref<boolean>;
534
- post(params?: PostParams<{
536
+ post(params: PostParams<{
535
537
  id: number;
536
- }> | undefined): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
538
+ }>): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
537
539
  };
538
540
  /** Удалить скан депозита в заявке Ак Барс Банка */
539
541
  declare const useDeleteAkbarsDepositScan: () => {
540
542
  response: vue.Ref<ApiResponse<null> | null>;
541
543
  pending: vue.Ref<boolean>;
542
- post(params?: PostParams<{
544
+ post(params: PostParams<{
543
545
  id: number;
544
546
  item_id: number;
545
- }> | undefined): Promise<ApiResponse<null> | null>;
547
+ }>): Promise<ApiResponse<null> | null>;
546
548
  };
547
549
 
548
550
  type BrokerclientUpdate = Partial<Brokerclient> & {
@@ -552,15 +554,15 @@ type BrokerclientUpdate = Partial<Brokerclient> & {
552
554
  declare const useGetBrokerclient: () => {
553
555
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
554
556
  pending: vue.Ref<boolean>;
555
- post(params?: PostParams<{
557
+ post(params: PostParams<{
556
558
  id: number;
557
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
559
+ }>): Promise<ApiResponse<Brokerclient> | null>;
558
560
  };
559
561
  /** Обновить БО */
560
562
  declare const useUpdateBrokerclient: () => {
561
563
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
562
564
  pending: vue.Ref<boolean>;
563
- post(params?: PostParams<BrokerclientUpdate> | undefined): Promise<ApiResponse<Brokerclient> | null>;
565
+ post(params: PostParams<BrokerclientUpdate>): Promise<ApiResponse<Brokerclient> | null>;
564
566
  };
565
567
  /** Получить список БО */
566
568
  declare const useGetBrokerclientList: () => {
@@ -572,27 +574,27 @@ declare const useGetBrokerclientList: () => {
572
574
  declare const useDeleteBrokerclient: () => {
573
575
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
574
576
  pending: vue.Ref<boolean>;
575
- post(params?: PostParams<{
577
+ post(params: PostParams<{
576
578
  id: number;
577
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
579
+ }>): Promise<ApiResponse<Brokerclient> | null>;
578
580
  };
579
581
  /** Добавление сотрудника в штат БО */
580
582
  declare const useAddStaffBrokerclient: () => {
581
583
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
582
584
  pending: vue.Ref<boolean>;
583
- post(params?: PostParams<{
585
+ post(params: PostParams<{
584
586
  brokerclient_id: number;
585
587
  user_id: number;
586
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
588
+ }>): Promise<ApiResponse<Brokerclient> | null>;
587
589
  };
588
590
  /** Удаление сотрудника из штата БО */
589
591
  declare const useDeleteStaffBrokerclient: () => {
590
592
  response: vue.Ref<ApiResponse<Brokerclient> | null>;
591
593
  pending: vue.Ref<boolean>;
592
- post(params?: PostParams<{
594
+ post(params: PostParams<{
593
595
  brokerclient_id: number;
594
596
  user_id: number;
595
- }> | undefined): Promise<ApiResponse<Brokerclient> | null>;
597
+ }>): Promise<ApiResponse<Brokerclient> | null>;
596
598
  };
597
599
 
598
600
  type SalespointUpdate = Partial<Salespoint> & {
@@ -602,23 +604,23 @@ type SalespointUpdate = Partial<Salespoint> & {
602
604
  declare const useGetSalespoint: () => {
603
605
  response: vue.Ref<ApiResponse<Salespoint> | null>;
604
606
  pending: vue.Ref<boolean>;
605
- post(params?: PostParams<{
607
+ post(params: PostParams<{
606
608
  id: number;
607
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
609
+ }>): Promise<ApiResponse<Salespoint> | null>;
608
610
  };
609
611
  /** Обновить торговую точку */
610
612
  declare const useUpdateSalespoint: () => {
611
613
  response: vue.Ref<ApiResponse<Salespoint> | null>;
612
614
  pending: vue.Ref<boolean>;
613
- post(params?: PostParams<SalespointUpdate> | undefined): Promise<ApiResponse<Salespoint> | null>;
615
+ post(params: PostParams<SalespointUpdate>): Promise<ApiResponse<Salespoint> | null>;
614
616
  };
615
617
  /** Копировать торговую точку */
616
618
  declare const useCloneSalespoint: () => {
617
619
  response: vue.Ref<ApiResponse<Salespoint> | null>;
618
620
  pending: vue.Ref<boolean>;
619
- post(params?: PostParams<{
621
+ post(params: PostParams<{
620
622
  id: number;
621
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
623
+ }>): Promise<ApiResponse<Salespoint> | null>;
622
624
  };
623
625
  /** Получить список торговых точек */
624
626
  declare const useGetSalespointList: () => {
@@ -630,36 +632,36 @@ declare const useGetSalespointList: () => {
630
632
  declare const useDeleteSalespoint: () => {
631
633
  response: vue.Ref<ApiResponse<Salespoint> | null>;
632
634
  pending: vue.Ref<boolean>;
633
- post(params?: PostParams<{
635
+ post(params: PostParams<{
634
636
  id: number;
635
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
637
+ }>): Promise<ApiResponse<Salespoint> | null>;
636
638
  };
637
639
  /** Добавление сотрудника в штат торговой точки */
638
640
  declare const useAddStaffSalespoint: () => {
639
641
  response: vue.Ref<ApiResponse<Salespoint> | null>;
640
642
  pending: vue.Ref<boolean>;
641
- post(params?: PostParams<{
643
+ post(params: PostParams<{
642
644
  salespoint_id: number;
643
645
  user_id: number;
644
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
646
+ }>): Promise<ApiResponse<Salespoint> | null>;
645
647
  };
646
648
  /** Удаление сотрудника из штата торговой точки */
647
649
  declare const useDeleteStaffSalespoint: () => {
648
650
  response: vue.Ref<ApiResponse<Salespoint> | null>;
649
651
  pending: vue.Ref<boolean>;
650
- post(params?: PostParams<{
652
+ post(params: PostParams<{
651
653
  salespoint_id: number;
652
654
  user_id: number;
653
- }> | undefined): Promise<ApiResponse<Salespoint> | null>;
655
+ }>): Promise<ApiResponse<Salespoint> | null>;
654
656
  };
655
657
  /** Массовое обновление торговых точек */
656
658
  declare const useUpdateManySalespoint: () => {
657
659
  response: vue.Ref<ApiResponse<Salespoint[]> | null>;
658
660
  pending: vue.Ref<boolean>;
659
- post(params?: PostParams<{
661
+ post(params: PostParams<{
660
662
  user_ids: number[];
661
663
  data: SalespointUpdate;
662
- }> | undefined): Promise<ApiResponse<Salespoint[]> | null>;
664
+ }>): Promise<ApiResponse<Salespoint[]> | null>;
663
665
  };
664
666
 
665
667
  type UserUpdate = Partial<User> & {
@@ -669,15 +671,15 @@ type UserUpdate = Partial<User> & {
669
671
  declare const useGetUser: () => {
670
672
  response: vue.Ref<ApiResponse<User> | null>;
671
673
  pending: vue.Ref<boolean>;
672
- post(params?: PostParams<{
674
+ post(params: PostParams<{
673
675
  id: number;
674
- }> | undefined): Promise<ApiResponse<User> | null>;
676
+ }>): Promise<ApiResponse<User> | null>;
675
677
  };
676
678
  /** Обновить пользователя */
677
679
  declare const useUpdateUser: () => {
678
680
  response: vue.Ref<ApiResponse<User> | null>;
679
681
  pending: vue.Ref<boolean>;
680
- post(params?: PostParams<UserUpdate> | undefined): Promise<ApiResponse<User> | null>;
682
+ post(params: PostParams<UserUpdate>): Promise<ApiResponse<User> | null>;
681
683
  };
682
684
  /** Получить список юзеров */
683
685
  declare const useGetUserList: () => {
@@ -689,44 +691,44 @@ declare const useGetUserList: () => {
689
691
  declare const useDeleteUser: () => {
690
692
  response: vue.Ref<ApiResponse<null> | null>;
691
693
  pending: vue.Ref<boolean>;
692
- post(params?: PostParams<{
694
+ post(params: PostParams<{
693
695
  id: number;
694
- }> | undefined): Promise<ApiResponse<null> | null>;
696
+ }>): Promise<ApiResponse<null> | null>;
695
697
  };
696
698
  /** Клонирование пользователя */
697
699
  declare const useCloneUser: () => {
698
700
  response: vue.Ref<ApiResponse<User> | null>;
699
701
  pending: vue.Ref<boolean>;
700
- post(params?: PostParams<{
702
+ post(params: PostParams<{
701
703
  id: number;
702
- }> | undefined): Promise<ApiResponse<User> | null>;
704
+ }>): Promise<ApiResponse<User> | null>;
703
705
  };
704
706
  /** Добавление группы к пользователю */
705
707
  declare const useAddGroupUser: () => {
706
708
  response: vue.Ref<ApiResponse<User> | null>;
707
709
  pending: vue.Ref<boolean>;
708
- post(params?: PostParams<{
710
+ post(params: PostParams<{
709
711
  group_id: number;
710
712
  user_id: number;
711
- }> | undefined): Promise<ApiResponse<User> | null>;
713
+ }>): Promise<ApiResponse<User> | null>;
712
714
  };
713
715
  /** Удаление группы у пользователя */
714
716
  declare const useDeleteGroupUser: () => {
715
717
  response: vue.Ref<ApiResponse<User> | null>;
716
718
  pending: vue.Ref<boolean>;
717
- post(params?: PostParams<{
719
+ post(params: PostParams<{
718
720
  group_id: number;
719
721
  user_id: number;
720
- }> | undefined): Promise<ApiResponse<User> | null>;
722
+ }>): Promise<ApiResponse<User> | null>;
721
723
  };
722
724
  /** Массовое обновление пользователей */
723
725
  declare const useUpdateManyUser: () => {
724
726
  response: vue.Ref<ApiResponse<User[]> | null>;
725
727
  pending: vue.Ref<boolean>;
726
- post(params?: PostParams<{
728
+ post(params: PostParams<{
727
729
  user_ids: number[];
728
730
  data: UserUpdate;
729
- }> | undefined): Promise<ApiResponse<User[]> | null>;
731
+ }>): Promise<ApiResponse<User[]> | null>;
730
732
  };
731
733
 
732
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpleloan_api",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",