simpleloan_api 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +457 -8
- package/dist/index.d.ts +457 -8
- package/dist/index.js +147 -13
- package/dist/index.mjs +103 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -38,7 +38,7 @@ type User = {
|
|
|
38
38
|
status: string;
|
|
39
39
|
passport_serial: number;
|
|
40
40
|
passport_number: number;
|
|
41
|
-
passport_date:
|
|
41
|
+
passport_date: string;
|
|
42
42
|
passport_issuing: string | number;
|
|
43
43
|
passport_division_code: string | number;
|
|
44
44
|
address_country: string | number;
|
|
@@ -187,6 +187,62 @@ type AkbarsPrintform = {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
type Sex = 'M' | 'F';
|
|
191
|
+
type UploadB64File = {
|
|
192
|
+
name: string;
|
|
193
|
+
data: string;
|
|
194
|
+
};
|
|
195
|
+
type Address = {
|
|
196
|
+
region?: {
|
|
197
|
+
code: string;
|
|
198
|
+
name: string;
|
|
199
|
+
type: string;
|
|
200
|
+
type_short: string;
|
|
201
|
+
};
|
|
202
|
+
area?: {
|
|
203
|
+
code: string;
|
|
204
|
+
name: string;
|
|
205
|
+
type: string;
|
|
206
|
+
type_short: string;
|
|
207
|
+
};
|
|
208
|
+
city?: {
|
|
209
|
+
code: string;
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
type_short: string;
|
|
213
|
+
owner?: {
|
|
214
|
+
code: string | null;
|
|
215
|
+
name: string | null;
|
|
216
|
+
type: string | null;
|
|
217
|
+
type_short: string | null;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
street?: {
|
|
221
|
+
code: string;
|
|
222
|
+
name: string;
|
|
223
|
+
type: string;
|
|
224
|
+
type_short: string;
|
|
225
|
+
};
|
|
226
|
+
structure: string | null;
|
|
227
|
+
flat: string | null;
|
|
228
|
+
house: string | null;
|
|
229
|
+
building: string | null;
|
|
230
|
+
postal_code: string | null;
|
|
231
|
+
address_text: string;
|
|
232
|
+
};
|
|
233
|
+
type DictItem = {
|
|
234
|
+
code: string;
|
|
235
|
+
title: string;
|
|
236
|
+
};
|
|
237
|
+
type Dict = DictItem[];
|
|
238
|
+
|
|
239
|
+
type Brokerclient = {
|
|
240
|
+
id: number;
|
|
241
|
+
deleted_at: null;
|
|
242
|
+
title: string;
|
|
243
|
+
staff_ids: number[];
|
|
244
|
+
};
|
|
245
|
+
|
|
190
246
|
type Mortgage = {
|
|
191
247
|
id: number;
|
|
192
248
|
created_at: string;
|
|
@@ -237,6 +293,55 @@ type MortgageBankAppStatus = {
|
|
|
237
293
|
status_last_date: number;
|
|
238
294
|
};
|
|
239
295
|
|
|
296
|
+
type Salespoint = {
|
|
297
|
+
id: number;
|
|
298
|
+
checkdoc_can_enabled: boolean;
|
|
299
|
+
credit_type: SalespointCreditType;
|
|
300
|
+
notification_mode: SalespointNotificationMode;
|
|
301
|
+
checkpassport_enabled: boolean;
|
|
302
|
+
deleted_at: string | null;
|
|
303
|
+
title: string;
|
|
304
|
+
address_country: string | null;
|
|
305
|
+
address_postcode: string | null;
|
|
306
|
+
address_region: string | null;
|
|
307
|
+
address_city: string | null;
|
|
308
|
+
address_street: string | null;
|
|
309
|
+
address_house: string | null;
|
|
310
|
+
address_flat: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
broker_client_id: number;
|
|
313
|
+
product_category: string;
|
|
314
|
+
alfabank_id: string;
|
|
315
|
+
alfabankpos_id: string | null;
|
|
316
|
+
ilbs_id: string | null;
|
|
317
|
+
vostbank_id: string | null;
|
|
318
|
+
otpbank_id: string;
|
|
319
|
+
otpbankesign_id: string;
|
|
320
|
+
otpbank_verification: string | null;
|
|
321
|
+
otpbank_type_app: string | null;
|
|
322
|
+
expobank_id: string | null;
|
|
323
|
+
mtsbank_id: string | null;
|
|
324
|
+
crediteurope_id: string | null;
|
|
325
|
+
mtsbank_type: string | null;
|
|
326
|
+
mtsbank_isEDS: string | null;
|
|
327
|
+
renaissancebank_id: number;
|
|
328
|
+
renbank_scan_auth_type: number;
|
|
329
|
+
sovcomhalva_id: number;
|
|
330
|
+
checkdoc_manual_check_enabled: boolean;
|
|
331
|
+
generalapp_banks: string[];
|
|
332
|
+
insurance_mode: SalespointInsuranceMode;
|
|
333
|
+
insurance_company: string;
|
|
334
|
+
directions_ids: number[];
|
|
335
|
+
staff_ids: number[];
|
|
336
|
+
permissions: string[];
|
|
337
|
+
segment: string;
|
|
338
|
+
providing_credit_tariffs_ids: number[];
|
|
339
|
+
address_text: string;
|
|
340
|
+
};
|
|
341
|
+
type SalespointNotificationMode = 'on' | 'off' | 'def_on' | 'def_off';
|
|
342
|
+
type SalespointInsuranceMode = 'none' | 'our' | 'bank';
|
|
343
|
+
type SalespointCreditType = 'loan' | 'installment' | 'all' | 'all_partial' | 'partial_installment';
|
|
344
|
+
|
|
240
345
|
/** Авторизация */
|
|
241
346
|
declare const useAccountLogin: () => {
|
|
242
347
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
@@ -249,23 +354,318 @@ declare const useAccountLogout: () => {
|
|
|
249
354
|
pending: vue.Ref<boolean>;
|
|
250
355
|
post(params?: PostParams<unknown> | undefined): Promise<ApiResponse<unknown> | null>;
|
|
251
356
|
};
|
|
357
|
+
/** Разлогин указанного юзера */
|
|
358
|
+
declare const useAccountLogoutUser: () => {
|
|
359
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
360
|
+
pending: vue.Ref<boolean>;
|
|
361
|
+
post(params?: PostParams<{
|
|
362
|
+
user_id: number;
|
|
363
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
364
|
+
};
|
|
252
365
|
/** Проверка авторизации */
|
|
253
366
|
declare const useAccountCheckLogin: () => {
|
|
254
367
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
255
368
|
pending: vue.Ref<boolean>;
|
|
256
369
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<LoginResponse> | null>;
|
|
257
370
|
};
|
|
371
|
+
/** Регистрация */
|
|
372
|
+
declare const useAccountRegister: () => {
|
|
373
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
374
|
+
pending: vue.Ref<boolean>;
|
|
375
|
+
post(params?: PostParams<{
|
|
376
|
+
email: string;
|
|
377
|
+
password: string;
|
|
378
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
379
|
+
};
|
|
380
|
+
/** Сброс пароля */
|
|
381
|
+
declare const useAccountResetPassword: () => {
|
|
382
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
383
|
+
pending: vue.Ref<boolean>;
|
|
384
|
+
post(params?: PostParams<{
|
|
385
|
+
email: string;
|
|
386
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
387
|
+
};
|
|
388
|
+
/** Сброс пароля - ввод нового */
|
|
389
|
+
declare const useAccountResetPasswordConfirmNew: () => {
|
|
390
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
391
|
+
pending: vue.Ref<boolean>;
|
|
392
|
+
post(params?: PostParams<{
|
|
393
|
+
new_password: string;
|
|
394
|
+
uid: string;
|
|
395
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
396
|
+
};
|
|
397
|
+
/** Смена пароля */
|
|
398
|
+
declare const useAccountUpdatePassword: () => {
|
|
399
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
400
|
+
pending: vue.Ref<boolean>;
|
|
401
|
+
post(params?: PostParams<{
|
|
402
|
+
old_password: "string";
|
|
403
|
+
new_password: "string";
|
|
404
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
405
|
+
};
|
|
258
406
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
407
|
+
type AkbarsUpdate = Partial<Akbars> & {
|
|
408
|
+
id: number;
|
|
409
|
+
};
|
|
410
|
+
/** Получение справочника Ак Барс Банка */
|
|
411
|
+
declare const useGetAkbarsDictList: (dict: AkbarsDictNames) => {
|
|
412
|
+
response: vue.Ref<ApiResponse<Record<string, string>> | null>;
|
|
262
413
|
pending: vue.Ref<boolean>;
|
|
263
|
-
post(params
|
|
414
|
+
post(params?: PostParams<{
|
|
264
415
|
mortgageapp_id: number;
|
|
265
|
-
}>): Promise<
|
|
416
|
+
}> | undefined): Promise<ApiResponse<Record<string, string>> | null>;
|
|
417
|
+
};
|
|
418
|
+
/** Получение заявки Ак Барс Банка */
|
|
419
|
+
declare const useGetAkbars: () => {
|
|
420
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
421
|
+
pending: vue.Ref<boolean>;
|
|
422
|
+
post(params?: PostParams<{
|
|
423
|
+
id: number;
|
|
424
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
425
|
+
};
|
|
426
|
+
/** Получение списка заявок Ак Барс Банка */
|
|
427
|
+
declare const useGetAkbarsList: () => {
|
|
428
|
+
response: vue.Ref<ApiResponse<Akbars[]> | null>;
|
|
429
|
+
pending: vue.Ref<boolean>;
|
|
430
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Akbars[]> | null>;
|
|
431
|
+
};
|
|
432
|
+
/** Удаление заявки Ак Барс Банка */
|
|
433
|
+
declare const useDeleteAkbars: () => {
|
|
434
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
435
|
+
pending: vue.Ref<boolean>;
|
|
436
|
+
post(params?: PostParams<{
|
|
437
|
+
id: number;
|
|
438
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
439
|
+
};
|
|
440
|
+
/** Обновление заявки Ак Барс Банка */
|
|
441
|
+
declare const useUpdateAkbars: () => {
|
|
442
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
443
|
+
pending: vue.Ref<boolean>;
|
|
444
|
+
post(params?: PostParams<AkbarsUpdate> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
445
|
+
};
|
|
446
|
+
/** Отправка заявки Ак Барс Банка */
|
|
447
|
+
declare const useSendAkbars: () => {
|
|
448
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
449
|
+
pending: vue.Ref<boolean>;
|
|
450
|
+
post(params?: PostParams<{
|
|
451
|
+
id: number;
|
|
452
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
453
|
+
};
|
|
454
|
+
/** Получение анкет для заёмщиков заявки Ак Барс Банка */
|
|
455
|
+
declare const useGenerateAkbarsScansApplications: () => {
|
|
456
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
|
+
pending: vue.Ref<boolean>;
|
|
458
|
+
post(params?: PostParams<{
|
|
459
|
+
id: number;
|
|
460
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
461
|
+
};
|
|
462
|
+
/** Отправка сканов заявки Ак Барс Банка */
|
|
463
|
+
declare const useSendAkbarsScans: () => {
|
|
464
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
465
|
+
pending: vue.Ref<boolean>;
|
|
466
|
+
post(params?: PostParams<{
|
|
467
|
+
id: number;
|
|
468
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
469
|
+
};
|
|
470
|
+
/** Вызов метода рассмотрения заявки Ак Барс Банка */
|
|
471
|
+
declare const useProcessingAkbars: () => {
|
|
472
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
473
|
+
pending: vue.Ref<boolean>;
|
|
474
|
+
post(params?: PostParams<{
|
|
475
|
+
id: number;
|
|
476
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
477
|
+
};
|
|
478
|
+
/** Запрос на получение печатных форм заявки Ак Барс Банка */
|
|
479
|
+
declare const useAskAkbarsPrintforms: () => {
|
|
480
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
481
|
+
pending: vue.Ref<boolean>;
|
|
482
|
+
post(params?: PostParams<{
|
|
483
|
+
id: number;
|
|
484
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
485
|
+
};
|
|
486
|
+
/** Опрос статуса заявки после предодобрение */
|
|
487
|
+
declare const useLoanerApprovingAkbarsStatus: () => {
|
|
488
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
489
|
+
pending: vue.Ref<boolean>;
|
|
490
|
+
post(params?: PostParams<{
|
|
491
|
+
id: number;
|
|
492
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
493
|
+
};
|
|
494
|
+
/** Получение сформированных печатных форм Ак Барс Банка */
|
|
495
|
+
declare const useGetAkbarsPrintformList: () => {
|
|
496
|
+
response: vue.Ref<ApiResponse<AkbarsPrintform[]> | null>;
|
|
497
|
+
pending: vue.Ref<boolean>;
|
|
498
|
+
post(params?: PostParams<{
|
|
499
|
+
id: number;
|
|
500
|
+
}> | undefined): Promise<ApiResponse<AkbarsPrintform[]> | null>;
|
|
501
|
+
};
|
|
502
|
+
/** Добавить/Редактировать залог к заявке Ак Барс Банка */
|
|
503
|
+
declare const useUpdateAkbarsDeposite: () => {
|
|
504
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
505
|
+
pending: vue.Ref<boolean>;
|
|
506
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
507
|
+
};
|
|
508
|
+
/** Получить залог из заявки Ак Барс Банка */
|
|
509
|
+
declare const useGetAkbarsDeposite: () => {
|
|
510
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
511
|
+
pending: vue.Ref<boolean>;
|
|
512
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
513
|
+
};
|
|
514
|
+
/** Отправить информацию об залоге со сканами в Ак Барс Банк */
|
|
515
|
+
declare const useSendAkbarsDeposite: () => {
|
|
516
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
517
|
+
pending: vue.Ref<boolean>;
|
|
518
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
519
|
+
};
|
|
520
|
+
/** Загрузить скан депозита в заявку Ак Барс Банка */
|
|
521
|
+
declare const useUploadAkbarsDepositeScan: () => {
|
|
522
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
|
|
523
|
+
pending: vue.Ref<boolean>;
|
|
524
|
+
post(params?: PostParams<{
|
|
525
|
+
id: number;
|
|
526
|
+
file: UploadB64File;
|
|
527
|
+
scan_type: string;
|
|
528
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan> | null>;
|
|
529
|
+
};
|
|
530
|
+
/** Получить список сканов депозита в заявке Ак Барс Банка */
|
|
531
|
+
declare const useGetAkbarsDepositeScanList: () => {
|
|
532
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
533
|
+
pending: vue.Ref<boolean>;
|
|
534
|
+
post(params?: PostParams<{
|
|
535
|
+
id: number;
|
|
536
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
537
|
+
};
|
|
538
|
+
/** Удалить скан депозита в заявке Ак Барс Банка */
|
|
539
|
+
declare const useDeleteAkbarsDepositeScan: () => {
|
|
540
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
541
|
+
pending: vue.Ref<boolean>;
|
|
542
|
+
post(params?: PostParams<{
|
|
543
|
+
id: number;
|
|
544
|
+
item_id: number;
|
|
545
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
266
546
|
};
|
|
267
547
|
|
|
268
|
-
|
|
548
|
+
type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
549
|
+
id: number;
|
|
550
|
+
};
|
|
551
|
+
/** Получить БО по id */
|
|
552
|
+
declare const useGetBrokerclient: () => {
|
|
553
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
554
|
+
pending: vue.Ref<boolean>;
|
|
555
|
+
post(params?: PostParams<{
|
|
556
|
+
id: number;
|
|
557
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
558
|
+
};
|
|
559
|
+
/** Обновить БО */
|
|
560
|
+
declare const useUpdateBrokerclient: () => {
|
|
561
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
562
|
+
pending: vue.Ref<boolean>;
|
|
563
|
+
post(params?: PostParams<BrokerclientUpdate> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
564
|
+
};
|
|
565
|
+
/** Получить список БО */
|
|
566
|
+
declare const useGetBrokerclientList: () => {
|
|
567
|
+
response: vue.Ref<ApiResponse<Brokerclient[]> | null>;
|
|
568
|
+
pending: vue.Ref<boolean>;
|
|
569
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Brokerclient[]> | null>;
|
|
570
|
+
};
|
|
571
|
+
/** Удаление БО */
|
|
572
|
+
declare const useDeleteBrokerclient: () => {
|
|
573
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
574
|
+
pending: vue.Ref<boolean>;
|
|
575
|
+
post(params?: PostParams<{
|
|
576
|
+
id: number;
|
|
577
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
578
|
+
};
|
|
579
|
+
/** Добавление сотрудника в штат БО */
|
|
580
|
+
declare const useAddStaffBrokerclient: () => {
|
|
581
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
582
|
+
pending: vue.Ref<boolean>;
|
|
583
|
+
post(params?: PostParams<{
|
|
584
|
+
brokerclient_id: number;
|
|
585
|
+
user_id: number;
|
|
586
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
587
|
+
};
|
|
588
|
+
/** Удаление сотрудника из штата БО */
|
|
589
|
+
declare const useDeleteStaffBrokerclient: () => {
|
|
590
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
591
|
+
pending: vue.Ref<boolean>;
|
|
592
|
+
post(params?: PostParams<{
|
|
593
|
+
brokerclient_id: number;
|
|
594
|
+
user_id: number;
|
|
595
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
type SalespointUpdate = Partial<Salespoint> & {
|
|
599
|
+
id: number;
|
|
600
|
+
};
|
|
601
|
+
/** Получить торговую точку по id */
|
|
602
|
+
declare const useGetSalespoint: () => {
|
|
603
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
604
|
+
pending: vue.Ref<boolean>;
|
|
605
|
+
post(params?: PostParams<{
|
|
606
|
+
id: number;
|
|
607
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
608
|
+
};
|
|
609
|
+
/** Обновить торговую точку */
|
|
610
|
+
declare const useUpdateSalespoint: () => {
|
|
611
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
612
|
+
pending: vue.Ref<boolean>;
|
|
613
|
+
post(params?: PostParams<SalespointUpdate> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
614
|
+
};
|
|
615
|
+
/** Копировать торговую точку */
|
|
616
|
+
declare const useCloneSalespoint: () => {
|
|
617
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
618
|
+
pending: vue.Ref<boolean>;
|
|
619
|
+
post(params?: PostParams<{
|
|
620
|
+
id: number;
|
|
621
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
622
|
+
};
|
|
623
|
+
/** Получить список торговых точек */
|
|
624
|
+
declare const useGetSalespointList: () => {
|
|
625
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
626
|
+
pending: vue.Ref<boolean>;
|
|
627
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Salespoint[]> | null>;
|
|
628
|
+
};
|
|
629
|
+
/** Удаление торговой точки */
|
|
630
|
+
declare const useDeleteSalespoint: () => {
|
|
631
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
632
|
+
pending: vue.Ref<boolean>;
|
|
633
|
+
post(params?: PostParams<{
|
|
634
|
+
id: number;
|
|
635
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
636
|
+
};
|
|
637
|
+
/** Добавление сотрудника в штат торговой точки */
|
|
638
|
+
declare const useAddStaffSalespoint: () => {
|
|
639
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
640
|
+
pending: vue.Ref<boolean>;
|
|
641
|
+
post(params?: PostParams<{
|
|
642
|
+
salespoint_id: number;
|
|
643
|
+
user_id: number;
|
|
644
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
645
|
+
};
|
|
646
|
+
/** Удаление сотрудника из штата торговой точки */
|
|
647
|
+
declare const useDeleteStaffSalespoint: () => {
|
|
648
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
649
|
+
pending: vue.Ref<boolean>;
|
|
650
|
+
post(params?: PostParams<{
|
|
651
|
+
salespoint_id: number;
|
|
652
|
+
user_id: number;
|
|
653
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
654
|
+
};
|
|
655
|
+
/** Массовое обновление торговых точек */
|
|
656
|
+
declare const useUpdateManySalespoint: () => {
|
|
657
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
658
|
+
pending: vue.Ref<boolean>;
|
|
659
|
+
post(params?: PostParams<{
|
|
660
|
+
user_ids: number[];
|
|
661
|
+
data: SalespointUpdate;
|
|
662
|
+
}> | undefined): Promise<ApiResponse<Salespoint[]> | null>;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
type UserUpdate = Partial<User> & {
|
|
666
|
+
id: number;
|
|
667
|
+
};
|
|
668
|
+
/** Получить пользователя по id */
|
|
269
669
|
declare const useGetUser: () => {
|
|
270
670
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
271
671
|
pending: vue.Ref<boolean>;
|
|
@@ -273,12 +673,61 @@ declare const useGetUser: () => {
|
|
|
273
673
|
id: number;
|
|
274
674
|
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
275
675
|
};
|
|
676
|
+
/** Обновить пользователя */
|
|
677
|
+
declare const useUpdateUser: () => {
|
|
678
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
679
|
+
pending: vue.Ref<boolean>;
|
|
680
|
+
post(params?: PostParams<UserUpdate> | undefined): Promise<ApiResponse<User> | null>;
|
|
681
|
+
};
|
|
276
682
|
/** Получить список юзеров */
|
|
277
683
|
declare const useGetUserList: () => {
|
|
278
684
|
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
279
685
|
pending: vue.Ref<boolean>;
|
|
280
686
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<User[]> | null>;
|
|
281
687
|
};
|
|
688
|
+
/** Удалить пользователя */
|
|
689
|
+
declare const useDeleteUser: () => {
|
|
690
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
691
|
+
pending: vue.Ref<boolean>;
|
|
692
|
+
post(params?: PostParams<{
|
|
693
|
+
id: number;
|
|
694
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
695
|
+
};
|
|
696
|
+
/** Клонирование пользователя */
|
|
697
|
+
declare const useCloneUser: () => {
|
|
698
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
699
|
+
pending: vue.Ref<boolean>;
|
|
700
|
+
post(params?: PostParams<{
|
|
701
|
+
id: number;
|
|
702
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
703
|
+
};
|
|
704
|
+
/** Добавление группы к пользователю */
|
|
705
|
+
declare const useAddGroupUser: () => {
|
|
706
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
707
|
+
pending: vue.Ref<boolean>;
|
|
708
|
+
post(params?: PostParams<{
|
|
709
|
+
group_id: number;
|
|
710
|
+
user_id: number;
|
|
711
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
712
|
+
};
|
|
713
|
+
/** Удаление группы у пользователя */
|
|
714
|
+
declare const useDeleteGroupUser: () => {
|
|
715
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
716
|
+
pending: vue.Ref<boolean>;
|
|
717
|
+
post(params?: PostParams<{
|
|
718
|
+
group_id: number;
|
|
719
|
+
user_id: number;
|
|
720
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
721
|
+
};
|
|
722
|
+
/** Массовое обновление пользователей */
|
|
723
|
+
declare const useUpdateManyUser: () => {
|
|
724
|
+
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
725
|
+
pending: vue.Ref<boolean>;
|
|
726
|
+
post(params?: PostParams<{
|
|
727
|
+
user_ids: number[];
|
|
728
|
+
data: UserUpdate;
|
|
729
|
+
}> | undefined): Promise<ApiResponse<User[]> | null>;
|
|
730
|
+
};
|
|
282
731
|
|
|
283
732
|
type Mode = 'development' | 'production';
|
|
284
733
|
declare function setMode(newMode: Mode): void;
|
|
@@ -287,4 +736,4 @@ declare function setToken(newToken: string): void;
|
|
|
287
736
|
declare function removeToken(): void;
|
|
288
737
|
declare function getToken(): string | null;
|
|
289
738
|
|
|
290
|
-
export { type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type User, getMode, getToken, removeToken, setMode, setToken, useAccountCheckLogin, useAccountLogin, useAccountLogout,
|
|
739
|
+
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode, getToken, removeToken, setMode, setToken, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCloneSalespoint, useCloneUser, useDeleteAkbars, useDeleteAkbarsDepositeScan, useDeleteBrokerclient, useDeleteGroupUser, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGetAkbars, useGetAkbarsDeposite, useGetAkbarsDepositeScanList, useGetAkbarsDictList, useGetAkbarsList, useGetAkbarsPrintformList, useGetBrokerclient, useGetBrokerclientList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, useProcessingAkbars, useSendAkbars, useSendAkbarsDeposite, useSendAkbarsScans, useUpdateAkbars, useUpdateAkbarsDeposite, useUpdateBrokerclient, useUpdateManySalespoint, useUpdateManyUser, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositeScan };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ type User = {
|
|
|
38
38
|
status: string;
|
|
39
39
|
passport_serial: number;
|
|
40
40
|
passport_number: number;
|
|
41
|
-
passport_date:
|
|
41
|
+
passport_date: string;
|
|
42
42
|
passport_issuing: string | number;
|
|
43
43
|
passport_division_code: string | number;
|
|
44
44
|
address_country: string | number;
|
|
@@ -187,6 +187,62 @@ type AkbarsPrintform = {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
type Sex = 'M' | 'F';
|
|
191
|
+
type UploadB64File = {
|
|
192
|
+
name: string;
|
|
193
|
+
data: string;
|
|
194
|
+
};
|
|
195
|
+
type Address = {
|
|
196
|
+
region?: {
|
|
197
|
+
code: string;
|
|
198
|
+
name: string;
|
|
199
|
+
type: string;
|
|
200
|
+
type_short: string;
|
|
201
|
+
};
|
|
202
|
+
area?: {
|
|
203
|
+
code: string;
|
|
204
|
+
name: string;
|
|
205
|
+
type: string;
|
|
206
|
+
type_short: string;
|
|
207
|
+
};
|
|
208
|
+
city?: {
|
|
209
|
+
code: string;
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
type_short: string;
|
|
213
|
+
owner?: {
|
|
214
|
+
code: string | null;
|
|
215
|
+
name: string | null;
|
|
216
|
+
type: string | null;
|
|
217
|
+
type_short: string | null;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
street?: {
|
|
221
|
+
code: string;
|
|
222
|
+
name: string;
|
|
223
|
+
type: string;
|
|
224
|
+
type_short: string;
|
|
225
|
+
};
|
|
226
|
+
structure: string | null;
|
|
227
|
+
flat: string | null;
|
|
228
|
+
house: string | null;
|
|
229
|
+
building: string | null;
|
|
230
|
+
postal_code: string | null;
|
|
231
|
+
address_text: string;
|
|
232
|
+
};
|
|
233
|
+
type DictItem = {
|
|
234
|
+
code: string;
|
|
235
|
+
title: string;
|
|
236
|
+
};
|
|
237
|
+
type Dict = DictItem[];
|
|
238
|
+
|
|
239
|
+
type Brokerclient = {
|
|
240
|
+
id: number;
|
|
241
|
+
deleted_at: null;
|
|
242
|
+
title: string;
|
|
243
|
+
staff_ids: number[];
|
|
244
|
+
};
|
|
245
|
+
|
|
190
246
|
type Mortgage = {
|
|
191
247
|
id: number;
|
|
192
248
|
created_at: string;
|
|
@@ -237,6 +293,55 @@ type MortgageBankAppStatus = {
|
|
|
237
293
|
status_last_date: number;
|
|
238
294
|
};
|
|
239
295
|
|
|
296
|
+
type Salespoint = {
|
|
297
|
+
id: number;
|
|
298
|
+
checkdoc_can_enabled: boolean;
|
|
299
|
+
credit_type: SalespointCreditType;
|
|
300
|
+
notification_mode: SalespointNotificationMode;
|
|
301
|
+
checkpassport_enabled: boolean;
|
|
302
|
+
deleted_at: string | null;
|
|
303
|
+
title: string;
|
|
304
|
+
address_country: string | null;
|
|
305
|
+
address_postcode: string | null;
|
|
306
|
+
address_region: string | null;
|
|
307
|
+
address_city: string | null;
|
|
308
|
+
address_street: string | null;
|
|
309
|
+
address_house: string | null;
|
|
310
|
+
address_flat: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
broker_client_id: number;
|
|
313
|
+
product_category: string;
|
|
314
|
+
alfabank_id: string;
|
|
315
|
+
alfabankpos_id: string | null;
|
|
316
|
+
ilbs_id: string | null;
|
|
317
|
+
vostbank_id: string | null;
|
|
318
|
+
otpbank_id: string;
|
|
319
|
+
otpbankesign_id: string;
|
|
320
|
+
otpbank_verification: string | null;
|
|
321
|
+
otpbank_type_app: string | null;
|
|
322
|
+
expobank_id: string | null;
|
|
323
|
+
mtsbank_id: string | null;
|
|
324
|
+
crediteurope_id: string | null;
|
|
325
|
+
mtsbank_type: string | null;
|
|
326
|
+
mtsbank_isEDS: string | null;
|
|
327
|
+
renaissancebank_id: number;
|
|
328
|
+
renbank_scan_auth_type: number;
|
|
329
|
+
sovcomhalva_id: number;
|
|
330
|
+
checkdoc_manual_check_enabled: boolean;
|
|
331
|
+
generalapp_banks: string[];
|
|
332
|
+
insurance_mode: SalespointInsuranceMode;
|
|
333
|
+
insurance_company: string;
|
|
334
|
+
directions_ids: number[];
|
|
335
|
+
staff_ids: number[];
|
|
336
|
+
permissions: string[];
|
|
337
|
+
segment: string;
|
|
338
|
+
providing_credit_tariffs_ids: number[];
|
|
339
|
+
address_text: string;
|
|
340
|
+
};
|
|
341
|
+
type SalespointNotificationMode = 'on' | 'off' | 'def_on' | 'def_off';
|
|
342
|
+
type SalespointInsuranceMode = 'none' | 'our' | 'bank';
|
|
343
|
+
type SalespointCreditType = 'loan' | 'installment' | 'all' | 'all_partial' | 'partial_installment';
|
|
344
|
+
|
|
240
345
|
/** Авторизация */
|
|
241
346
|
declare const useAccountLogin: () => {
|
|
242
347
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
@@ -249,23 +354,318 @@ declare const useAccountLogout: () => {
|
|
|
249
354
|
pending: vue.Ref<boolean>;
|
|
250
355
|
post(params?: PostParams<unknown> | undefined): Promise<ApiResponse<unknown> | null>;
|
|
251
356
|
};
|
|
357
|
+
/** Разлогин указанного юзера */
|
|
358
|
+
declare const useAccountLogoutUser: () => {
|
|
359
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
360
|
+
pending: vue.Ref<boolean>;
|
|
361
|
+
post(params?: PostParams<{
|
|
362
|
+
user_id: number;
|
|
363
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
364
|
+
};
|
|
252
365
|
/** Проверка авторизации */
|
|
253
366
|
declare const useAccountCheckLogin: () => {
|
|
254
367
|
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
255
368
|
pending: vue.Ref<boolean>;
|
|
256
369
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<LoginResponse> | null>;
|
|
257
370
|
};
|
|
371
|
+
/** Регистрация */
|
|
372
|
+
declare const useAccountRegister: () => {
|
|
373
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
374
|
+
pending: vue.Ref<boolean>;
|
|
375
|
+
post(params?: PostParams<{
|
|
376
|
+
email: string;
|
|
377
|
+
password: string;
|
|
378
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
379
|
+
};
|
|
380
|
+
/** Сброс пароля */
|
|
381
|
+
declare const useAccountResetPassword: () => {
|
|
382
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
383
|
+
pending: vue.Ref<boolean>;
|
|
384
|
+
post(params?: PostParams<{
|
|
385
|
+
email: string;
|
|
386
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
387
|
+
};
|
|
388
|
+
/** Сброс пароля - ввод нового */
|
|
389
|
+
declare const useAccountResetPasswordConfirmNew: () => {
|
|
390
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
391
|
+
pending: vue.Ref<boolean>;
|
|
392
|
+
post(params?: PostParams<{
|
|
393
|
+
new_password: string;
|
|
394
|
+
uid: string;
|
|
395
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
396
|
+
};
|
|
397
|
+
/** Смена пароля */
|
|
398
|
+
declare const useAccountUpdatePassword: () => {
|
|
399
|
+
response: vue.Ref<ApiResponse<LoginResponse> | null>;
|
|
400
|
+
pending: vue.Ref<boolean>;
|
|
401
|
+
post(params?: PostParams<{
|
|
402
|
+
old_password: "string";
|
|
403
|
+
new_password: "string";
|
|
404
|
+
}> | undefined): Promise<ApiResponse<LoginResponse> | null>;
|
|
405
|
+
};
|
|
258
406
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
407
|
+
type AkbarsUpdate = Partial<Akbars> & {
|
|
408
|
+
id: number;
|
|
409
|
+
};
|
|
410
|
+
/** Получение справочника Ак Барс Банка */
|
|
411
|
+
declare const useGetAkbarsDictList: (dict: AkbarsDictNames) => {
|
|
412
|
+
response: vue.Ref<ApiResponse<Record<string, string>> | null>;
|
|
262
413
|
pending: vue.Ref<boolean>;
|
|
263
|
-
post(params
|
|
414
|
+
post(params?: PostParams<{
|
|
264
415
|
mortgageapp_id: number;
|
|
265
|
-
}>): Promise<
|
|
416
|
+
}> | undefined): Promise<ApiResponse<Record<string, string>> | null>;
|
|
417
|
+
};
|
|
418
|
+
/** Получение заявки Ак Барс Банка */
|
|
419
|
+
declare const useGetAkbars: () => {
|
|
420
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
421
|
+
pending: vue.Ref<boolean>;
|
|
422
|
+
post(params?: PostParams<{
|
|
423
|
+
id: number;
|
|
424
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
425
|
+
};
|
|
426
|
+
/** Получение списка заявок Ак Барс Банка */
|
|
427
|
+
declare const useGetAkbarsList: () => {
|
|
428
|
+
response: vue.Ref<ApiResponse<Akbars[]> | null>;
|
|
429
|
+
pending: vue.Ref<boolean>;
|
|
430
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Akbars[]> | null>;
|
|
431
|
+
};
|
|
432
|
+
/** Удаление заявки Ак Барс Банка */
|
|
433
|
+
declare const useDeleteAkbars: () => {
|
|
434
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
435
|
+
pending: vue.Ref<boolean>;
|
|
436
|
+
post(params?: PostParams<{
|
|
437
|
+
id: number;
|
|
438
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
439
|
+
};
|
|
440
|
+
/** Обновление заявки Ак Барс Банка */
|
|
441
|
+
declare const useUpdateAkbars: () => {
|
|
442
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
443
|
+
pending: vue.Ref<boolean>;
|
|
444
|
+
post(params?: PostParams<AkbarsUpdate> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
445
|
+
};
|
|
446
|
+
/** Отправка заявки Ак Барс Банка */
|
|
447
|
+
declare const useSendAkbars: () => {
|
|
448
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
449
|
+
pending: vue.Ref<boolean>;
|
|
450
|
+
post(params?: PostParams<{
|
|
451
|
+
id: number;
|
|
452
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
453
|
+
};
|
|
454
|
+
/** Получение анкет для заёмщиков заявки Ак Барс Банка */
|
|
455
|
+
declare const useGenerateAkbarsScansApplications: () => {
|
|
456
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
|
+
pending: vue.Ref<boolean>;
|
|
458
|
+
post(params?: PostParams<{
|
|
459
|
+
id: number;
|
|
460
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
461
|
+
};
|
|
462
|
+
/** Отправка сканов заявки Ак Барс Банка */
|
|
463
|
+
declare const useSendAkbarsScans: () => {
|
|
464
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
465
|
+
pending: vue.Ref<boolean>;
|
|
466
|
+
post(params?: PostParams<{
|
|
467
|
+
id: number;
|
|
468
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
469
|
+
};
|
|
470
|
+
/** Вызов метода рассмотрения заявки Ак Барс Банка */
|
|
471
|
+
declare const useProcessingAkbars: () => {
|
|
472
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
473
|
+
pending: vue.Ref<boolean>;
|
|
474
|
+
post(params?: PostParams<{
|
|
475
|
+
id: number;
|
|
476
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
477
|
+
};
|
|
478
|
+
/** Запрос на получение печатных форм заявки Ак Барс Банка */
|
|
479
|
+
declare const useAskAkbarsPrintforms: () => {
|
|
480
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
481
|
+
pending: vue.Ref<boolean>;
|
|
482
|
+
post(params?: PostParams<{
|
|
483
|
+
id: number;
|
|
484
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
485
|
+
};
|
|
486
|
+
/** Опрос статуса заявки после предодобрение */
|
|
487
|
+
declare const useLoanerApprovingAkbarsStatus: () => {
|
|
488
|
+
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
489
|
+
pending: vue.Ref<boolean>;
|
|
490
|
+
post(params?: PostParams<{
|
|
491
|
+
id: number;
|
|
492
|
+
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
493
|
+
};
|
|
494
|
+
/** Получение сформированных печатных форм Ак Барс Банка */
|
|
495
|
+
declare const useGetAkbarsPrintformList: () => {
|
|
496
|
+
response: vue.Ref<ApiResponse<AkbarsPrintform[]> | null>;
|
|
497
|
+
pending: vue.Ref<boolean>;
|
|
498
|
+
post(params?: PostParams<{
|
|
499
|
+
id: number;
|
|
500
|
+
}> | undefined): Promise<ApiResponse<AkbarsPrintform[]> | null>;
|
|
501
|
+
};
|
|
502
|
+
/** Добавить/Редактировать залог к заявке Ак Барс Банка */
|
|
503
|
+
declare const useUpdateAkbarsDeposite: () => {
|
|
504
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
505
|
+
pending: vue.Ref<boolean>;
|
|
506
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
507
|
+
};
|
|
508
|
+
/** Получить залог из заявки Ак Барс Банка */
|
|
509
|
+
declare const useGetAkbarsDeposite: () => {
|
|
510
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
511
|
+
pending: vue.Ref<boolean>;
|
|
512
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
513
|
+
};
|
|
514
|
+
/** Отправить информацию об залоге со сканами в Ак Барс Банк */
|
|
515
|
+
declare const useSendAkbarsDeposite: () => {
|
|
516
|
+
response: vue.Ref<ApiResponse<AkbarsDeposit> | null>;
|
|
517
|
+
pending: vue.Ref<boolean>;
|
|
518
|
+
post(params?: PostParams<Partial<AkbarsDeposit>> | undefined): Promise<ApiResponse<AkbarsDeposit> | null>;
|
|
519
|
+
};
|
|
520
|
+
/** Загрузить скан депозита в заявку Ак Барс Банка */
|
|
521
|
+
declare const useUploadAkbarsDepositeScan: () => {
|
|
522
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan> | null>;
|
|
523
|
+
pending: vue.Ref<boolean>;
|
|
524
|
+
post(params?: PostParams<{
|
|
525
|
+
id: number;
|
|
526
|
+
file: UploadB64File;
|
|
527
|
+
scan_type: string;
|
|
528
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan> | null>;
|
|
529
|
+
};
|
|
530
|
+
/** Получить список сканов депозита в заявке Ак Барс Банка */
|
|
531
|
+
declare const useGetAkbarsDepositeScanList: () => {
|
|
532
|
+
response: vue.Ref<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
533
|
+
pending: vue.Ref<boolean>;
|
|
534
|
+
post(params?: PostParams<{
|
|
535
|
+
id: number;
|
|
536
|
+
}> | undefined): Promise<ApiResponse<AkbarsDepositScan[]> | null>;
|
|
537
|
+
};
|
|
538
|
+
/** Удалить скан депозита в заявке Ак Барс Банка */
|
|
539
|
+
declare const useDeleteAkbarsDepositeScan: () => {
|
|
540
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
541
|
+
pending: vue.Ref<boolean>;
|
|
542
|
+
post(params?: PostParams<{
|
|
543
|
+
id: number;
|
|
544
|
+
item_id: number;
|
|
545
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
266
546
|
};
|
|
267
547
|
|
|
268
|
-
|
|
548
|
+
type BrokerclientUpdate = Partial<Brokerclient> & {
|
|
549
|
+
id: number;
|
|
550
|
+
};
|
|
551
|
+
/** Получить БО по id */
|
|
552
|
+
declare const useGetBrokerclient: () => {
|
|
553
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
554
|
+
pending: vue.Ref<boolean>;
|
|
555
|
+
post(params?: PostParams<{
|
|
556
|
+
id: number;
|
|
557
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
558
|
+
};
|
|
559
|
+
/** Обновить БО */
|
|
560
|
+
declare const useUpdateBrokerclient: () => {
|
|
561
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
562
|
+
pending: vue.Ref<boolean>;
|
|
563
|
+
post(params?: PostParams<BrokerclientUpdate> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
564
|
+
};
|
|
565
|
+
/** Получить список БО */
|
|
566
|
+
declare const useGetBrokerclientList: () => {
|
|
567
|
+
response: vue.Ref<ApiResponse<Brokerclient[]> | null>;
|
|
568
|
+
pending: vue.Ref<boolean>;
|
|
569
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Brokerclient[]> | null>;
|
|
570
|
+
};
|
|
571
|
+
/** Удаление БО */
|
|
572
|
+
declare const useDeleteBrokerclient: () => {
|
|
573
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
574
|
+
pending: vue.Ref<boolean>;
|
|
575
|
+
post(params?: PostParams<{
|
|
576
|
+
id: number;
|
|
577
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
578
|
+
};
|
|
579
|
+
/** Добавление сотрудника в штат БО */
|
|
580
|
+
declare const useAddStaffBrokerclient: () => {
|
|
581
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
582
|
+
pending: vue.Ref<boolean>;
|
|
583
|
+
post(params?: PostParams<{
|
|
584
|
+
brokerclient_id: number;
|
|
585
|
+
user_id: number;
|
|
586
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
587
|
+
};
|
|
588
|
+
/** Удаление сотрудника из штата БО */
|
|
589
|
+
declare const useDeleteStaffBrokerclient: () => {
|
|
590
|
+
response: vue.Ref<ApiResponse<Brokerclient> | null>;
|
|
591
|
+
pending: vue.Ref<boolean>;
|
|
592
|
+
post(params?: PostParams<{
|
|
593
|
+
brokerclient_id: number;
|
|
594
|
+
user_id: number;
|
|
595
|
+
}> | undefined): Promise<ApiResponse<Brokerclient> | null>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
type SalespointUpdate = Partial<Salespoint> & {
|
|
599
|
+
id: number;
|
|
600
|
+
};
|
|
601
|
+
/** Получить торговую точку по id */
|
|
602
|
+
declare const useGetSalespoint: () => {
|
|
603
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
604
|
+
pending: vue.Ref<boolean>;
|
|
605
|
+
post(params?: PostParams<{
|
|
606
|
+
id: number;
|
|
607
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
608
|
+
};
|
|
609
|
+
/** Обновить торговую точку */
|
|
610
|
+
declare const useUpdateSalespoint: () => {
|
|
611
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
612
|
+
pending: vue.Ref<boolean>;
|
|
613
|
+
post(params?: PostParams<SalespointUpdate> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
614
|
+
};
|
|
615
|
+
/** Копировать торговую точку */
|
|
616
|
+
declare const useCloneSalespoint: () => {
|
|
617
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
618
|
+
pending: vue.Ref<boolean>;
|
|
619
|
+
post(params?: PostParams<{
|
|
620
|
+
id: number;
|
|
621
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
622
|
+
};
|
|
623
|
+
/** Получить список торговых точек */
|
|
624
|
+
declare const useGetSalespointList: () => {
|
|
625
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
626
|
+
pending: vue.Ref<boolean>;
|
|
627
|
+
post(params?: PostParamsWithoutBody): Promise<ApiResponse<Salespoint[]> | null>;
|
|
628
|
+
};
|
|
629
|
+
/** Удаление торговой точки */
|
|
630
|
+
declare const useDeleteSalespoint: () => {
|
|
631
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
632
|
+
pending: vue.Ref<boolean>;
|
|
633
|
+
post(params?: PostParams<{
|
|
634
|
+
id: number;
|
|
635
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
636
|
+
};
|
|
637
|
+
/** Добавление сотрудника в штат торговой точки */
|
|
638
|
+
declare const useAddStaffSalespoint: () => {
|
|
639
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
640
|
+
pending: vue.Ref<boolean>;
|
|
641
|
+
post(params?: PostParams<{
|
|
642
|
+
salespoint_id: number;
|
|
643
|
+
user_id: number;
|
|
644
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
645
|
+
};
|
|
646
|
+
/** Удаление сотрудника из штата торговой точки */
|
|
647
|
+
declare const useDeleteStaffSalespoint: () => {
|
|
648
|
+
response: vue.Ref<ApiResponse<Salespoint> | null>;
|
|
649
|
+
pending: vue.Ref<boolean>;
|
|
650
|
+
post(params?: PostParams<{
|
|
651
|
+
salespoint_id: number;
|
|
652
|
+
user_id: number;
|
|
653
|
+
}> | undefined): Promise<ApiResponse<Salespoint> | null>;
|
|
654
|
+
};
|
|
655
|
+
/** Массовое обновление торговых точек */
|
|
656
|
+
declare const useUpdateManySalespoint: () => {
|
|
657
|
+
response: vue.Ref<ApiResponse<Salespoint[]> | null>;
|
|
658
|
+
pending: vue.Ref<boolean>;
|
|
659
|
+
post(params?: PostParams<{
|
|
660
|
+
user_ids: number[];
|
|
661
|
+
data: SalespointUpdate;
|
|
662
|
+
}> | undefined): Promise<ApiResponse<Salespoint[]> | null>;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
type UserUpdate = Partial<User> & {
|
|
666
|
+
id: number;
|
|
667
|
+
};
|
|
668
|
+
/** Получить пользователя по id */
|
|
269
669
|
declare const useGetUser: () => {
|
|
270
670
|
response: vue.Ref<ApiResponse<User> | null>;
|
|
271
671
|
pending: vue.Ref<boolean>;
|
|
@@ -273,12 +673,61 @@ declare const useGetUser: () => {
|
|
|
273
673
|
id: number;
|
|
274
674
|
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
275
675
|
};
|
|
676
|
+
/** Обновить пользователя */
|
|
677
|
+
declare const useUpdateUser: () => {
|
|
678
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
679
|
+
pending: vue.Ref<boolean>;
|
|
680
|
+
post(params?: PostParams<UserUpdate> | undefined): Promise<ApiResponse<User> | null>;
|
|
681
|
+
};
|
|
276
682
|
/** Получить список юзеров */
|
|
277
683
|
declare const useGetUserList: () => {
|
|
278
684
|
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
279
685
|
pending: vue.Ref<boolean>;
|
|
280
686
|
post(params?: PostParamsWithoutBody): Promise<ApiResponse<User[]> | null>;
|
|
281
687
|
};
|
|
688
|
+
/** Удалить пользователя */
|
|
689
|
+
declare const useDeleteUser: () => {
|
|
690
|
+
response: vue.Ref<ApiResponse<null> | null>;
|
|
691
|
+
pending: vue.Ref<boolean>;
|
|
692
|
+
post(params?: PostParams<{
|
|
693
|
+
id: number;
|
|
694
|
+
}> | undefined): Promise<ApiResponse<null> | null>;
|
|
695
|
+
};
|
|
696
|
+
/** Клонирование пользователя */
|
|
697
|
+
declare const useCloneUser: () => {
|
|
698
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
699
|
+
pending: vue.Ref<boolean>;
|
|
700
|
+
post(params?: PostParams<{
|
|
701
|
+
id: number;
|
|
702
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
703
|
+
};
|
|
704
|
+
/** Добавление группы к пользователю */
|
|
705
|
+
declare const useAddGroupUser: () => {
|
|
706
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
707
|
+
pending: vue.Ref<boolean>;
|
|
708
|
+
post(params?: PostParams<{
|
|
709
|
+
group_id: number;
|
|
710
|
+
user_id: number;
|
|
711
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
712
|
+
};
|
|
713
|
+
/** Удаление группы у пользователя */
|
|
714
|
+
declare const useDeleteGroupUser: () => {
|
|
715
|
+
response: vue.Ref<ApiResponse<User> | null>;
|
|
716
|
+
pending: vue.Ref<boolean>;
|
|
717
|
+
post(params?: PostParams<{
|
|
718
|
+
group_id: number;
|
|
719
|
+
user_id: number;
|
|
720
|
+
}> | undefined): Promise<ApiResponse<User> | null>;
|
|
721
|
+
};
|
|
722
|
+
/** Массовое обновление пользователей */
|
|
723
|
+
declare const useUpdateManyUser: () => {
|
|
724
|
+
response: vue.Ref<ApiResponse<User[]> | null>;
|
|
725
|
+
pending: vue.Ref<boolean>;
|
|
726
|
+
post(params?: PostParams<{
|
|
727
|
+
user_ids: number[];
|
|
728
|
+
data: UserUpdate;
|
|
729
|
+
}> | undefined): Promise<ApiResponse<User[]> | null>;
|
|
730
|
+
};
|
|
282
731
|
|
|
283
732
|
type Mode = 'development' | 'production';
|
|
284
733
|
declare function setMode(newMode: Mode): void;
|
|
@@ -287,4 +736,4 @@ declare function setToken(newToken: string): void;
|
|
|
287
736
|
declare function removeToken(): void;
|
|
288
737
|
declare function getToken(): string | null;
|
|
289
738
|
|
|
290
|
-
export { type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type User, getMode, getToken, removeToken, setMode, setToken, useAccountCheckLogin, useAccountLogin, useAccountLogout,
|
|
739
|
+
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode, getToken, removeToken, setMode, setToken, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCloneSalespoint, useCloneUser, useDeleteAkbars, useDeleteAkbarsDepositeScan, useDeleteBrokerclient, useDeleteGroupUser, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGetAkbars, useGetAkbarsDeposite, useGetAkbarsDepositeScanList, useGetAkbarsDictList, useGetAkbarsList, useGetAkbarsPrintformList, useGetBrokerclient, useGetBrokerclientList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, useProcessingAkbars, useSendAkbars, useSendAkbarsDeposite, useSendAkbarsScans, useUpdateAkbars, useUpdateAkbarsDeposite, useUpdateBrokerclient, useUpdateManySalespoint, useUpdateManyUser, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositeScan };
|
package/dist/index.js
CHANGED
|
@@ -48,9 +48,51 @@ __export(simpleloan_api_exports, {
|
|
|
48
48
|
useAccountCheckLogin: () => useAccountCheckLogin,
|
|
49
49
|
useAccountLogin: () => useAccountLogin,
|
|
50
50
|
useAccountLogout: () => useAccountLogout,
|
|
51
|
-
|
|
51
|
+
useAccountLogoutUser: () => useAccountLogoutUser,
|
|
52
|
+
useAccountRegister: () => useAccountRegister,
|
|
53
|
+
useAccountResetPassword: () => useAccountResetPassword,
|
|
54
|
+
useAccountResetPasswordConfirmNew: () => useAccountResetPasswordConfirmNew,
|
|
55
|
+
useAccountUpdatePassword: () => useAccountUpdatePassword,
|
|
56
|
+
useAddGroupUser: () => useAddGroupUser,
|
|
57
|
+
useAddStaffBrokerclient: () => useAddStaffBrokerclient,
|
|
58
|
+
useAddStaffSalespoint: () => useAddStaffSalespoint,
|
|
59
|
+
useAskAkbarsPrintforms: () => useAskAkbarsPrintforms,
|
|
60
|
+
useCloneSalespoint: () => useCloneSalespoint,
|
|
61
|
+
useCloneUser: () => useCloneUser,
|
|
62
|
+
useDeleteAkbars: () => useDeleteAkbars,
|
|
63
|
+
useDeleteAkbarsDepositeScan: () => useDeleteAkbarsDepositeScan,
|
|
64
|
+
useDeleteBrokerclient: () => useDeleteBrokerclient,
|
|
65
|
+
useDeleteGroupUser: () => useDeleteGroupUser,
|
|
66
|
+
useDeleteSalespoint: () => useDeleteSalespoint,
|
|
67
|
+
useDeleteStaffBrokerclient: () => useDeleteStaffBrokerclient,
|
|
68
|
+
useDeleteStaffSalespoint: () => useDeleteStaffSalespoint,
|
|
69
|
+
useDeleteUser: () => useDeleteUser,
|
|
70
|
+
useGenerateAkbarsScansApplications: () => useGenerateAkbarsScansApplications,
|
|
71
|
+
useGetAkbars: () => useGetAkbars,
|
|
72
|
+
useGetAkbarsDeposite: () => useGetAkbarsDeposite,
|
|
73
|
+
useGetAkbarsDepositeScanList: () => useGetAkbarsDepositeScanList,
|
|
74
|
+
useGetAkbarsDictList: () => useGetAkbarsDictList,
|
|
75
|
+
useGetAkbarsList: () => useGetAkbarsList,
|
|
76
|
+
useGetAkbarsPrintformList: () => useGetAkbarsPrintformList,
|
|
77
|
+
useGetBrokerclient: () => useGetBrokerclient,
|
|
78
|
+
useGetBrokerclientList: () => useGetBrokerclientList,
|
|
79
|
+
useGetSalespoint: () => useGetSalespoint,
|
|
80
|
+
useGetSalespointList: () => useGetSalespointList,
|
|
52
81
|
useGetUser: () => useGetUser,
|
|
53
|
-
useGetUserList: () => useGetUserList
|
|
82
|
+
useGetUserList: () => useGetUserList,
|
|
83
|
+
useLoanerApprovingAkbarsStatus: () => useLoanerApprovingAkbarsStatus,
|
|
84
|
+
useProcessingAkbars: () => useProcessingAkbars,
|
|
85
|
+
useSendAkbars: () => useSendAkbars,
|
|
86
|
+
useSendAkbarsDeposite: () => useSendAkbarsDeposite,
|
|
87
|
+
useSendAkbarsScans: () => useSendAkbarsScans,
|
|
88
|
+
useUpdateAkbars: () => useUpdateAkbars,
|
|
89
|
+
useUpdateAkbarsDeposite: () => useUpdateAkbarsDeposite,
|
|
90
|
+
useUpdateBrokerclient: () => useUpdateBrokerclient,
|
|
91
|
+
useUpdateManySalespoint: () => useUpdateManySalespoint,
|
|
92
|
+
useUpdateManyUser: () => useUpdateManyUser,
|
|
93
|
+
useUpdateSalespoint: () => useUpdateSalespoint,
|
|
94
|
+
useUpdateUser: () => useUpdateUser,
|
|
95
|
+
useUploadAkbarsDepositeScan: () => useUploadAkbarsDepositeScan
|
|
54
96
|
});
|
|
55
97
|
module.exports = __toCommonJS(simpleloan_api_exports);
|
|
56
98
|
|
|
@@ -136,19 +178,69 @@ function useFetch(url, clearResponse) {
|
|
|
136
178
|
}
|
|
137
179
|
|
|
138
180
|
// src/repositories/account/index.ts
|
|
139
|
-
var
|
|
140
|
-
var useAccountLogin = () => useFetch(
|
|
141
|
-
var useAccountLogout = () => useFetch(
|
|
142
|
-
var
|
|
181
|
+
var baseUrl = "account/";
|
|
182
|
+
var useAccountLogin = () => useFetch(baseUrl + "login/");
|
|
183
|
+
var useAccountLogout = () => useFetch(baseUrl + "logout/");
|
|
184
|
+
var useAccountLogoutUser = () => useFetch(baseUrl + "logout_user/");
|
|
185
|
+
var useAccountCheckLogin = () => useFetch(baseUrl + "check_login/");
|
|
186
|
+
var useAccountRegister = () => useFetch(baseUrl + "register/");
|
|
187
|
+
var useAccountResetPassword = () => useFetch(baseUrl + "reset_password/");
|
|
188
|
+
var useAccountResetPasswordConfirmNew = () => useFetch(baseUrl + "reset_password_confirm_new/");
|
|
189
|
+
var useAccountUpdatePassword = () => useFetch(baseUrl + "update_password/");
|
|
143
190
|
|
|
144
191
|
// src/repositories/akbars/index.ts
|
|
145
|
-
var
|
|
146
|
-
var
|
|
192
|
+
var baseUrl2 = "akbars/";
|
|
193
|
+
var useGetAkbarsDictList = (dict) => useFetch(baseUrl2 + `dict/${dict}/get_list/`);
|
|
194
|
+
var useGetAkbars = () => useFetch(baseUrl2 + "get/");
|
|
195
|
+
var useGetAkbarsList = () => useFetch(baseUrl2 + "get_list/");
|
|
196
|
+
var useDeleteAkbars = () => useFetch(baseUrl2 + "delete/");
|
|
197
|
+
var useUpdateAkbars = () => useFetch(baseUrl2 + "app/update/");
|
|
198
|
+
var useSendAkbars = () => useFetch(baseUrl2 + "app/send/");
|
|
199
|
+
var useGenerateAkbarsScansApplications = () => useFetch(baseUrl2 + "scans/applications/generate/");
|
|
200
|
+
var useSendAkbarsScans = () => useFetch(baseUrl2 + "app/scans/send/");
|
|
201
|
+
var useProcessingAkbars = () => useFetch(baseUrl2 + "app/processing/");
|
|
202
|
+
var useAskAkbarsPrintforms = () => useFetch(baseUrl2 + "printforms/ask/");
|
|
203
|
+
var useLoanerApprovingAkbarsStatus = () => useFetch(baseUrl2 + "loaner_approving/status/");
|
|
204
|
+
var useGetAkbarsPrintformList = () => useFetch(baseUrl2 + "printforms/get_list/");
|
|
205
|
+
var useUpdateAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/update/");
|
|
206
|
+
var useGetAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/get/");
|
|
207
|
+
var useSendAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/send/");
|
|
208
|
+
var useUploadAkbarsDepositeScan = () => useFetch(
|
|
209
|
+
baseUrl2 + "deposite/scans/files/upload/"
|
|
210
|
+
);
|
|
211
|
+
var useGetAkbarsDepositeScanList = () => useFetch(baseUrl2 + "deposite/scans/files/get_list/");
|
|
212
|
+
var useDeleteAkbarsDepositeScan = () => useFetch(baseUrl2 + "deposite/scans/files/delete/");
|
|
213
|
+
|
|
214
|
+
// src/repositories/brokerclient/index.ts
|
|
215
|
+
var baseUrl3 = "brokerclient/";
|
|
216
|
+
var useGetBrokerclient = () => useFetch(baseUrl3 + "get/");
|
|
217
|
+
var useUpdateBrokerclient = () => useFetch(baseUrl3 + "update/");
|
|
218
|
+
var useGetBrokerclientList = () => useFetch(baseUrl3 + "get_list/");
|
|
219
|
+
var useDeleteBrokerclient = () => useFetch(baseUrl3 + "delete/");
|
|
220
|
+
var useAddStaffBrokerclient = () => useFetch(baseUrl3 + "add_staff/");
|
|
221
|
+
var useDeleteStaffBrokerclient = () => useFetch(baseUrl3 + "delete_staff/");
|
|
222
|
+
|
|
223
|
+
// src/repositories/salespoint/index.ts
|
|
224
|
+
var baseUrl4 = "salespoint/";
|
|
225
|
+
var useGetSalespoint = () => useFetch(baseUrl4 + "get/");
|
|
226
|
+
var useUpdateSalespoint = () => useFetch(baseUrl4 + "update/");
|
|
227
|
+
var useCloneSalespoint = () => useFetch(baseUrl4 + "clone/");
|
|
228
|
+
var useGetSalespointList = () => useFetch(baseUrl4 + "get_list/");
|
|
229
|
+
var useDeleteSalespoint = () => useFetch(baseUrl4 + "delete/");
|
|
230
|
+
var useAddStaffSalespoint = () => useFetch(baseUrl4 + "add_staff/");
|
|
231
|
+
var useDeleteStaffSalespoint = () => useFetch(baseUrl4 + "delete_staff/");
|
|
232
|
+
var useUpdateManySalespoint = () => useFetch(baseUrl4 + "update_many/");
|
|
147
233
|
|
|
148
234
|
// src/repositories/user/index.ts
|
|
149
|
-
var
|
|
150
|
-
var useGetUser = () => useFetch(
|
|
151
|
-
var
|
|
235
|
+
var baseUrl5 = "user/";
|
|
236
|
+
var useGetUser = () => useFetch(baseUrl5 + "get/");
|
|
237
|
+
var useUpdateUser = () => useFetch(baseUrl5 + "update/");
|
|
238
|
+
var useGetUserList = () => useFetch(baseUrl5 + "get_list/");
|
|
239
|
+
var useDeleteUser = () => useFetch(baseUrl5 + "delete/");
|
|
240
|
+
var useCloneUser = () => useFetch(baseUrl5 + "clone/");
|
|
241
|
+
var useAddGroupUser = () => useFetch(baseUrl5 + "add_group/");
|
|
242
|
+
var useDeleteGroupUser = () => useFetch(baseUrl5 + "delete_group/");
|
|
243
|
+
var useUpdateManyUser = () => useFetch(baseUrl5 + "update_many/");
|
|
152
244
|
// Annotate the CommonJS export names for ESM import in node:
|
|
153
245
|
0 && (module.exports = {
|
|
154
246
|
getMode,
|
|
@@ -159,7 +251,49 @@ var useGetUserList = () => useFetch(baseUrl2 + "get_list");
|
|
|
159
251
|
useAccountCheckLogin,
|
|
160
252
|
useAccountLogin,
|
|
161
253
|
useAccountLogout,
|
|
162
|
-
|
|
254
|
+
useAccountLogoutUser,
|
|
255
|
+
useAccountRegister,
|
|
256
|
+
useAccountResetPassword,
|
|
257
|
+
useAccountResetPasswordConfirmNew,
|
|
258
|
+
useAccountUpdatePassword,
|
|
259
|
+
useAddGroupUser,
|
|
260
|
+
useAddStaffBrokerclient,
|
|
261
|
+
useAddStaffSalespoint,
|
|
262
|
+
useAskAkbarsPrintforms,
|
|
263
|
+
useCloneSalespoint,
|
|
264
|
+
useCloneUser,
|
|
265
|
+
useDeleteAkbars,
|
|
266
|
+
useDeleteAkbarsDepositeScan,
|
|
267
|
+
useDeleteBrokerclient,
|
|
268
|
+
useDeleteGroupUser,
|
|
269
|
+
useDeleteSalespoint,
|
|
270
|
+
useDeleteStaffBrokerclient,
|
|
271
|
+
useDeleteStaffSalespoint,
|
|
272
|
+
useDeleteUser,
|
|
273
|
+
useGenerateAkbarsScansApplications,
|
|
274
|
+
useGetAkbars,
|
|
275
|
+
useGetAkbarsDeposite,
|
|
276
|
+
useGetAkbarsDepositeScanList,
|
|
277
|
+
useGetAkbarsDictList,
|
|
278
|
+
useGetAkbarsList,
|
|
279
|
+
useGetAkbarsPrintformList,
|
|
280
|
+
useGetBrokerclient,
|
|
281
|
+
useGetBrokerclientList,
|
|
282
|
+
useGetSalespoint,
|
|
283
|
+
useGetSalespointList,
|
|
163
284
|
useGetUser,
|
|
164
|
-
useGetUserList
|
|
285
|
+
useGetUserList,
|
|
286
|
+
useLoanerApprovingAkbarsStatus,
|
|
287
|
+
useProcessingAkbars,
|
|
288
|
+
useSendAkbars,
|
|
289
|
+
useSendAkbarsDeposite,
|
|
290
|
+
useSendAkbarsScans,
|
|
291
|
+
useUpdateAkbars,
|
|
292
|
+
useUpdateAkbarsDeposite,
|
|
293
|
+
useUpdateBrokerclient,
|
|
294
|
+
useUpdateManySalespoint,
|
|
295
|
+
useUpdateManyUser,
|
|
296
|
+
useUpdateSalespoint,
|
|
297
|
+
useUpdateUser,
|
|
298
|
+
useUploadAkbarsDepositeScan
|
|
165
299
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -101,19 +101,69 @@ function useFetch(url, clearResponse) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// src/repositories/account/index.ts
|
|
104
|
-
var
|
|
105
|
-
var useAccountLogin = () => useFetch(
|
|
106
|
-
var useAccountLogout = () => useFetch(
|
|
107
|
-
var
|
|
104
|
+
var baseUrl = "account/";
|
|
105
|
+
var useAccountLogin = () => useFetch(baseUrl + "login/");
|
|
106
|
+
var useAccountLogout = () => useFetch(baseUrl + "logout/");
|
|
107
|
+
var useAccountLogoutUser = () => useFetch(baseUrl + "logout_user/");
|
|
108
|
+
var useAccountCheckLogin = () => useFetch(baseUrl + "check_login/");
|
|
109
|
+
var useAccountRegister = () => useFetch(baseUrl + "register/");
|
|
110
|
+
var useAccountResetPassword = () => useFetch(baseUrl + "reset_password/");
|
|
111
|
+
var useAccountResetPasswordConfirmNew = () => useFetch(baseUrl + "reset_password_confirm_new/");
|
|
112
|
+
var useAccountUpdatePassword = () => useFetch(baseUrl + "update_password/");
|
|
108
113
|
|
|
109
114
|
// src/repositories/akbars/index.ts
|
|
110
|
-
var
|
|
111
|
-
var
|
|
115
|
+
var baseUrl2 = "akbars/";
|
|
116
|
+
var useGetAkbarsDictList = (dict) => useFetch(baseUrl2 + `dict/${dict}/get_list/`);
|
|
117
|
+
var useGetAkbars = () => useFetch(baseUrl2 + "get/");
|
|
118
|
+
var useGetAkbarsList = () => useFetch(baseUrl2 + "get_list/");
|
|
119
|
+
var useDeleteAkbars = () => useFetch(baseUrl2 + "delete/");
|
|
120
|
+
var useUpdateAkbars = () => useFetch(baseUrl2 + "app/update/");
|
|
121
|
+
var useSendAkbars = () => useFetch(baseUrl2 + "app/send/");
|
|
122
|
+
var useGenerateAkbarsScansApplications = () => useFetch(baseUrl2 + "scans/applications/generate/");
|
|
123
|
+
var useSendAkbarsScans = () => useFetch(baseUrl2 + "app/scans/send/");
|
|
124
|
+
var useProcessingAkbars = () => useFetch(baseUrl2 + "app/processing/");
|
|
125
|
+
var useAskAkbarsPrintforms = () => useFetch(baseUrl2 + "printforms/ask/");
|
|
126
|
+
var useLoanerApprovingAkbarsStatus = () => useFetch(baseUrl2 + "loaner_approving/status/");
|
|
127
|
+
var useGetAkbarsPrintformList = () => useFetch(baseUrl2 + "printforms/get_list/");
|
|
128
|
+
var useUpdateAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/update/");
|
|
129
|
+
var useGetAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/get/");
|
|
130
|
+
var useSendAkbarsDeposite = () => useFetch(baseUrl2 + "deposite/send/");
|
|
131
|
+
var useUploadAkbarsDepositeScan = () => useFetch(
|
|
132
|
+
baseUrl2 + "deposite/scans/files/upload/"
|
|
133
|
+
);
|
|
134
|
+
var useGetAkbarsDepositeScanList = () => useFetch(baseUrl2 + "deposite/scans/files/get_list/");
|
|
135
|
+
var useDeleteAkbarsDepositeScan = () => useFetch(baseUrl2 + "deposite/scans/files/delete/");
|
|
136
|
+
|
|
137
|
+
// src/repositories/brokerclient/index.ts
|
|
138
|
+
var baseUrl3 = "brokerclient/";
|
|
139
|
+
var useGetBrokerclient = () => useFetch(baseUrl3 + "get/");
|
|
140
|
+
var useUpdateBrokerclient = () => useFetch(baseUrl3 + "update/");
|
|
141
|
+
var useGetBrokerclientList = () => useFetch(baseUrl3 + "get_list/");
|
|
142
|
+
var useDeleteBrokerclient = () => useFetch(baseUrl3 + "delete/");
|
|
143
|
+
var useAddStaffBrokerclient = () => useFetch(baseUrl3 + "add_staff/");
|
|
144
|
+
var useDeleteStaffBrokerclient = () => useFetch(baseUrl3 + "delete_staff/");
|
|
145
|
+
|
|
146
|
+
// src/repositories/salespoint/index.ts
|
|
147
|
+
var baseUrl4 = "salespoint/";
|
|
148
|
+
var useGetSalespoint = () => useFetch(baseUrl4 + "get/");
|
|
149
|
+
var useUpdateSalespoint = () => useFetch(baseUrl4 + "update/");
|
|
150
|
+
var useCloneSalespoint = () => useFetch(baseUrl4 + "clone/");
|
|
151
|
+
var useGetSalespointList = () => useFetch(baseUrl4 + "get_list/");
|
|
152
|
+
var useDeleteSalespoint = () => useFetch(baseUrl4 + "delete/");
|
|
153
|
+
var useAddStaffSalespoint = () => useFetch(baseUrl4 + "add_staff/");
|
|
154
|
+
var useDeleteStaffSalespoint = () => useFetch(baseUrl4 + "delete_staff/");
|
|
155
|
+
var useUpdateManySalespoint = () => useFetch(baseUrl4 + "update_many/");
|
|
112
156
|
|
|
113
157
|
// src/repositories/user/index.ts
|
|
114
|
-
var
|
|
115
|
-
var useGetUser = () => useFetch(
|
|
116
|
-
var
|
|
158
|
+
var baseUrl5 = "user/";
|
|
159
|
+
var useGetUser = () => useFetch(baseUrl5 + "get/");
|
|
160
|
+
var useUpdateUser = () => useFetch(baseUrl5 + "update/");
|
|
161
|
+
var useGetUserList = () => useFetch(baseUrl5 + "get_list/");
|
|
162
|
+
var useDeleteUser = () => useFetch(baseUrl5 + "delete/");
|
|
163
|
+
var useCloneUser = () => useFetch(baseUrl5 + "clone/");
|
|
164
|
+
var useAddGroupUser = () => useFetch(baseUrl5 + "add_group/");
|
|
165
|
+
var useDeleteGroupUser = () => useFetch(baseUrl5 + "delete_group/");
|
|
166
|
+
var useUpdateManyUser = () => useFetch(baseUrl5 + "update_many/");
|
|
117
167
|
export {
|
|
118
168
|
getMode,
|
|
119
169
|
getToken,
|
|
@@ -123,7 +173,49 @@ export {
|
|
|
123
173
|
useAccountCheckLogin,
|
|
124
174
|
useAccountLogin,
|
|
125
175
|
useAccountLogout,
|
|
126
|
-
|
|
176
|
+
useAccountLogoutUser,
|
|
177
|
+
useAccountRegister,
|
|
178
|
+
useAccountResetPassword,
|
|
179
|
+
useAccountResetPasswordConfirmNew,
|
|
180
|
+
useAccountUpdatePassword,
|
|
181
|
+
useAddGroupUser,
|
|
182
|
+
useAddStaffBrokerclient,
|
|
183
|
+
useAddStaffSalespoint,
|
|
184
|
+
useAskAkbarsPrintforms,
|
|
185
|
+
useCloneSalespoint,
|
|
186
|
+
useCloneUser,
|
|
187
|
+
useDeleteAkbars,
|
|
188
|
+
useDeleteAkbarsDepositeScan,
|
|
189
|
+
useDeleteBrokerclient,
|
|
190
|
+
useDeleteGroupUser,
|
|
191
|
+
useDeleteSalespoint,
|
|
192
|
+
useDeleteStaffBrokerclient,
|
|
193
|
+
useDeleteStaffSalespoint,
|
|
194
|
+
useDeleteUser,
|
|
195
|
+
useGenerateAkbarsScansApplications,
|
|
196
|
+
useGetAkbars,
|
|
197
|
+
useGetAkbarsDeposite,
|
|
198
|
+
useGetAkbarsDepositeScanList,
|
|
199
|
+
useGetAkbarsDictList,
|
|
200
|
+
useGetAkbarsList,
|
|
201
|
+
useGetAkbarsPrintformList,
|
|
202
|
+
useGetBrokerclient,
|
|
203
|
+
useGetBrokerclientList,
|
|
204
|
+
useGetSalespoint,
|
|
205
|
+
useGetSalespointList,
|
|
127
206
|
useGetUser,
|
|
128
|
-
useGetUserList
|
|
207
|
+
useGetUserList,
|
|
208
|
+
useLoanerApprovingAkbarsStatus,
|
|
209
|
+
useProcessingAkbars,
|
|
210
|
+
useSendAkbars,
|
|
211
|
+
useSendAkbarsDeposite,
|
|
212
|
+
useSendAkbarsScans,
|
|
213
|
+
useUpdateAkbars,
|
|
214
|
+
useUpdateAkbarsDeposite,
|
|
215
|
+
useUpdateBrokerclient,
|
|
216
|
+
useUpdateManySalespoint,
|
|
217
|
+
useUpdateManyUser,
|
|
218
|
+
useUpdateSalespoint,
|
|
219
|
+
useUpdateUser,
|
|
220
|
+
useUploadAkbarsDepositeScan
|
|
129
221
|
};
|