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