hl-core 0.0.10-beta.6 → 0.0.10-beta.61
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/README.md +0 -2
- package/api/base.api.ts +361 -137
- package/api/interceptors.ts +3 -5
- package/components/Dialog/Dialog.vue +5 -1
- package/components/Dialog/FamilyDialog.vue +15 -4
- package/components/Form/DigitalDocument.vue +52 -0
- package/components/Form/FormSource.vue +30 -0
- package/components/Form/ManagerAttachment.vue +60 -11
- package/components/Form/ProductConditionsBlock.vue +12 -6
- package/components/Input/Datepicker.vue +5 -0
- package/components/Input/FileInput.vue +1 -1
- package/components/Input/FormInput.vue +7 -0
- package/components/Input/OtpInput.vue +25 -0
- package/components/Input/RoundedInput.vue +2 -0
- package/components/Input/RoundedSelect.vue +2 -0
- package/components/Input/TextAreaField.vue +71 -0
- package/components/Menu/MenuNav.vue +2 -1
- package/components/Pages/Anketa.vue +207 -176
- package/components/Pages/ContragentForm.vue +1 -1
- package/components/Pages/Documents.vue +486 -64
- package/components/Pages/MemberForm.vue +424 -182
- package/components/Pages/ProductConditions.vue +1180 -257
- package/components/Panel/PanelHandler.vue +319 -125
- package/components/Utilities/Chip.vue +1 -1
- package/components/Utilities/JsonViewer.vue +1 -2
- package/composables/classes.ts +125 -21
- package/composables/constants.ts +166 -1
- package/composables/index.ts +345 -9
- package/composables/styles.ts +8 -24
- package/configs/i18n.ts +2 -0
- package/configs/pwa.ts +1 -7
- package/layouts/clear.vue +1 -1
- package/layouts/default.vue +1 -1
- package/layouts/full.vue +1 -1
- package/locales/kz.json +1236 -0
- package/locales/ru.json +109 -20
- package/nuxt.config.ts +8 -6
- package/package.json +12 -12
- package/plugins/head.ts +7 -1
- package/plugins/helperFunctionsPlugins.ts +1 -0
- package/store/data.store.ts +948 -527
- package/store/member.store.ts +17 -6
- package/store/rules.ts +54 -3
- package/types/enum.ts +46 -2
- package/types/index.ts +126 -5
package/README.md
CHANGED
package/api/base.api.ts
CHANGED
|
@@ -182,7 +182,7 @@ export class ApiClass {
|
|
|
182
182
|
async getContragent(queryData: Types.GetContragentRequest) {
|
|
183
183
|
return await this.axiosCall<Types.GetContragentResponse>({
|
|
184
184
|
method: Methods.GET,
|
|
185
|
-
url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
|
|
185
|
+
url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}&BirthDate=${queryData.birthDate ?? ''}`,
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -221,6 +221,13 @@ export class ApiClass {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
async getQuestionListSecondById(surveyType: string, processInstanceId: string | number, insuredId: number | string, id: string) {
|
|
225
|
+
return await this.axiosCall<Types.AnketaSecond[]>({
|
|
226
|
+
method: Methods.GET,
|
|
227
|
+
url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}/${id}`,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
224
231
|
async definedAnswers(filter: string) {
|
|
225
232
|
return await this.axiosCall({
|
|
226
233
|
method: Methods.GET,
|
|
@@ -278,6 +285,13 @@ export class ApiClass {
|
|
|
278
285
|
});
|
|
279
286
|
}
|
|
280
287
|
|
|
288
|
+
async getProcessDividendPeriods(processCode: string | number) {
|
|
289
|
+
return await this.axiosCall<Value[]>({
|
|
290
|
+
method: Methods.GET,
|
|
291
|
+
url: `/Arm/api/Dictionary/ProcessDividendPeriod/${processCode}`,
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
281
295
|
async getContragentById(id: number) {
|
|
282
296
|
return await this.axiosCall<Types.GetContragentResponse>({
|
|
283
297
|
method: Methods.GET,
|
|
@@ -299,21 +313,23 @@ export class ApiClass {
|
|
|
299
313
|
});
|
|
300
314
|
}
|
|
301
315
|
|
|
302
|
-
async
|
|
303
|
-
return await this.axiosCall({
|
|
316
|
+
async getDicFileTypeList() {
|
|
317
|
+
return await this.axiosCall<Value[]>({
|
|
304
318
|
method: Methods.GET,
|
|
305
|
-
url:
|
|
306
|
-
responseType: 'arraybuffer',
|
|
307
|
-
headers: {
|
|
308
|
-
'Content-Type': 'application/pdf',
|
|
309
|
-
},
|
|
319
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
|
|
310
320
|
});
|
|
311
321
|
}
|
|
312
322
|
|
|
313
|
-
async
|
|
323
|
+
async getProgramType() {
|
|
314
324
|
return await this.axiosCall<Value[]>({
|
|
315
325
|
method: Methods.GET,
|
|
316
|
-
url: '/Arm/api/Dictionary/GetDictionaryItems/
|
|
326
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicProgramType',
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
async getSource() {
|
|
330
|
+
return await this.axiosCall<Value[]>({
|
|
331
|
+
method: Methods.GET,
|
|
332
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicSource',
|
|
317
333
|
});
|
|
318
334
|
}
|
|
319
335
|
|
|
@@ -353,6 +369,10 @@ export class ApiClass {
|
|
|
353
369
|
});
|
|
354
370
|
}
|
|
355
371
|
|
|
372
|
+
async getMainParts() {
|
|
373
|
+
return this.axiosCall<Types.BpmMenuItem[]>({ method: Methods.GET, url: '/Arm/api/Bpm/MenuItem' });
|
|
374
|
+
}
|
|
375
|
+
|
|
356
376
|
async getProcessHistory(id: string) {
|
|
357
377
|
return await this.axiosCall<Types.TaskHistory[]>({
|
|
358
378
|
method: Methods.GET,
|
|
@@ -414,12 +434,14 @@ export class ApiClass {
|
|
|
414
434
|
});
|
|
415
435
|
}
|
|
416
436
|
|
|
417
|
-
async startApplication(data: any) {
|
|
437
|
+
async startApplication(data: any, processCodeEnum?: number) {
|
|
438
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
418
439
|
return await this.axiosCall<{
|
|
419
440
|
processInstanceId: string;
|
|
420
441
|
}>({
|
|
421
442
|
method: Methods.POST,
|
|
422
443
|
url: `/${this.productUrl}/api/Application/StartApplication`,
|
|
444
|
+
params: params,
|
|
423
445
|
data: data,
|
|
424
446
|
});
|
|
425
447
|
}
|
|
@@ -453,25 +475,6 @@ export class ApiClass {
|
|
|
453
475
|
});
|
|
454
476
|
}
|
|
455
477
|
|
|
456
|
-
async deleteFile(data: any) {
|
|
457
|
-
return await this.axiosCall<void>({
|
|
458
|
-
method: Methods.POST,
|
|
459
|
-
url: '/File/api/Data/DeleteFiles',
|
|
460
|
-
data: data,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
async uploadFiles(data: any) {
|
|
465
|
-
return await this.axiosCall({
|
|
466
|
-
method: Methods.POST,
|
|
467
|
-
url: '/File/api/Data/UploadFiles',
|
|
468
|
-
headers: {
|
|
469
|
-
'Content-Type': 'multipart/form-data',
|
|
470
|
-
},
|
|
471
|
-
data: data,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
|
|
475
478
|
async sendTask(data: Types.SendTask) {
|
|
476
479
|
return await this.axiosCall<void>({
|
|
477
480
|
method: Methods.POST,
|
|
@@ -486,7 +489,25 @@ export class ApiClass {
|
|
|
486
489
|
url: `/${this.productUrl}/api/Application/CheckBeneficiariesInActualPolicy?iin=${iin}`,
|
|
487
490
|
});
|
|
488
491
|
}
|
|
489
|
-
|
|
492
|
+
async checkBeneficiariesActualPolicy(id: string) {
|
|
493
|
+
return await this.axiosCall<boolean>({
|
|
494
|
+
method: Methods.GET,
|
|
495
|
+
url: `/${this.productUrl}/api/Application/checkBeneficiariesActualPolicy?processInstanceId=${id}`,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
async isRecalculate(id: string | number) {
|
|
499
|
+
return await this.axiosCall<boolean>({
|
|
500
|
+
method: Methods.GET,
|
|
501
|
+
url: `/${this.productUrl}/api/Application/IsRecalculate?processInstanceId=${id}`,
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
async checkCurrencyDate(id: string | number) {
|
|
505
|
+
return await this.axiosCall<boolean>({
|
|
506
|
+
method: Methods.GET,
|
|
507
|
+
url: '/Arm/api/Bpm/CheckCurrencyDate',
|
|
508
|
+
params: { processInstanceId: id },
|
|
509
|
+
});
|
|
510
|
+
}
|
|
490
511
|
async setMember(whichMember: keyof typeof MemberCodes, data: any) {
|
|
491
512
|
return await this.axiosCall({
|
|
492
513
|
method: Methods.POST,
|
|
@@ -527,54 +548,26 @@ export class ApiClass {
|
|
|
527
548
|
return await this.axiosCall<Types.EpayShortResponse>({
|
|
528
549
|
method: Methods.POST,
|
|
529
550
|
url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
|
|
551
|
+
data: {},
|
|
530
552
|
});
|
|
531
553
|
}
|
|
532
554
|
|
|
533
|
-
async
|
|
534
|
-
|
|
535
|
-
method: Methods.POST,
|
|
536
|
-
url: '/File/api/Document/SignBts',
|
|
537
|
-
data: data,
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
async signQR(data: Types.SignDataType[]) {
|
|
542
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
543
|
-
method: Methods.POST,
|
|
544
|
-
url: '/File/api/Sign/SignQr',
|
|
545
|
-
data: data,
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
async generateDocument(data: Types.SignDataType) {
|
|
550
|
-
return await this.axiosCall<void>({
|
|
551
|
-
method: Methods.POST,
|
|
552
|
-
url: '/File/api/Document/Generate',
|
|
553
|
-
responseType: 'arraybuffer',
|
|
554
|
-
data: data,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
async getSignedDocList(data: { processInstanceId: string | number }) {
|
|
559
|
-
return await this.axiosCall<IDocument[]>({
|
|
560
|
-
method: Methods.POST,
|
|
561
|
-
url: '/File/api/Data/List',
|
|
562
|
-
data: data,
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl) {
|
|
555
|
+
async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
|
|
556
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
567
557
|
return await this.axiosCall<Types.RecalculationResponseType>({
|
|
568
558
|
method: Methods.POST,
|
|
569
559
|
url: `/${product}/api/Application/Calculate`,
|
|
560
|
+
params: params,
|
|
570
561
|
data: data,
|
|
571
562
|
});
|
|
572
563
|
}
|
|
573
564
|
|
|
574
|
-
async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
|
|
565
|
+
async getDefaultCalculationData(product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
|
|
566
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
575
567
|
return await this.axiosCall<Types.RecalculationDataType>({
|
|
576
568
|
method: Methods.GET,
|
|
577
569
|
url: `/${product}/api/Application/DefaultCalculatorValues`,
|
|
570
|
+
params: params,
|
|
578
571
|
});
|
|
579
572
|
}
|
|
580
573
|
|
|
@@ -650,10 +643,6 @@ export class ApiClass {
|
|
|
650
643
|
});
|
|
651
644
|
}
|
|
652
645
|
|
|
653
|
-
async getProcessTariff(code: number | string = 5) {
|
|
654
|
-
return await this.axiosCall({ method: Methods.GET, url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
|
|
655
|
-
}
|
|
656
|
-
|
|
657
646
|
async setConfirmation(data: any) {
|
|
658
647
|
return await this.axiosCall({
|
|
659
648
|
method: Methods.POST,
|
|
@@ -691,6 +680,13 @@ export class ApiClass {
|
|
|
691
680
|
});
|
|
692
681
|
}
|
|
693
682
|
|
|
683
|
+
async filterExecutorByRegion(dictName: string, filterName: string) {
|
|
684
|
+
return await this.axiosCall<Value[]>({
|
|
685
|
+
method: Methods.GET,
|
|
686
|
+
url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
|
|
694
690
|
async setINSISWorkData(data: Types.InsisWorkDataApp) {
|
|
695
691
|
return await this.axiosCall({
|
|
696
692
|
method: Methods.POST,
|
|
@@ -706,6 +702,13 @@ export class ApiClass {
|
|
|
706
702
|
});
|
|
707
703
|
}
|
|
708
704
|
|
|
705
|
+
async getBankByAccountNumber(accountNumber: string) {
|
|
706
|
+
return await this.axiosCall<Value>({
|
|
707
|
+
method: Methods.GET,
|
|
708
|
+
url: `/Ekk/api/ContragentInsis/GetBankByAccountNumber?accountNumber=${accountNumber}`,
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
|
|
709
712
|
async searchAgentByName(name: string, branchCode?: string) {
|
|
710
713
|
return await this.axiosCall<Types.AgentData[]>({
|
|
711
714
|
method: Methods.GET,
|
|
@@ -713,6 +716,17 @@ export class ApiClass {
|
|
|
713
716
|
});
|
|
714
717
|
}
|
|
715
718
|
|
|
719
|
+
async getGlobalIdByNumber(insuranceTypeEnum: number, policyNo: string) {
|
|
720
|
+
return await this.axiosCall<number>({
|
|
721
|
+
method: Methods.GET,
|
|
722
|
+
url: `/Ekk/api/PolicyInsis/GetGlobalIDbyNumber`,
|
|
723
|
+
params: {
|
|
724
|
+
insuranceTypeEnum,
|
|
725
|
+
policyNo,
|
|
726
|
+
},
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
|
|
716
730
|
async isCourseChanged(processInstanceId: string) {
|
|
717
731
|
return await this.axiosCall<boolean>({
|
|
718
732
|
method: Methods.GET,
|
|
@@ -815,10 +829,10 @@ export class ApiClass {
|
|
|
815
829
|
});
|
|
816
830
|
}
|
|
817
831
|
|
|
818
|
-
async saveInsuredList(processInstanceId: string | number, data: any) {
|
|
832
|
+
async saveInsuredList(processInstanceId: string | number, newInsureds: boolean, data: any) {
|
|
819
833
|
return await this.axiosCall({
|
|
820
834
|
method: Methods.POST,
|
|
821
|
-
url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}`,
|
|
835
|
+
url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}&newInsureds=${newInsureds}`,
|
|
822
836
|
data: data,
|
|
823
837
|
});
|
|
824
838
|
}
|
|
@@ -831,6 +845,13 @@ export class ApiClass {
|
|
|
831
845
|
});
|
|
832
846
|
}
|
|
833
847
|
|
|
848
|
+
async getInsuredsData(processInstanceId: string | number) {
|
|
849
|
+
return await this.axiosCall<Types.ClientV2[]>({
|
|
850
|
+
method: Methods.GET,
|
|
851
|
+
url: `/${this.productUrl}/api/Application/GetInsuredsData/?processInstanceId=${processInstanceId}`,
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
|
|
834
855
|
async getProcessGfot(processCode: string | number) {
|
|
835
856
|
return await this.axiosCall<Value[]>({
|
|
836
857
|
method: Methods.GET,
|
|
@@ -966,30 +987,6 @@ export class ApiClass {
|
|
|
966
987
|
});
|
|
967
988
|
}
|
|
968
989
|
|
|
969
|
-
async uploadXml(data: any) {
|
|
970
|
-
return await this.axiosCall<void>({
|
|
971
|
-
url: `/File/api/Document/UploadXml`,
|
|
972
|
-
method: Methods.POST,
|
|
973
|
-
data: data,
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
async signXml(data: any) {
|
|
978
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
979
|
-
url: `/File/api/Sign/SignXml`,
|
|
980
|
-
method: Methods.POST,
|
|
981
|
-
data: data,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
async signBts(data: any) {
|
|
986
|
-
return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
|
|
987
|
-
url: `/File/api/Sign/SignBts`,
|
|
988
|
-
method: Methods.POST,
|
|
989
|
-
data: data,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
|
|
993
990
|
async generateShortLink(data: Types.Api.GenerateShortLink.Request) {
|
|
994
991
|
return await this.axiosCall<Types.Api.GenerateShortLink.Response>({
|
|
995
992
|
url: '/notification/shorteners',
|
|
@@ -999,12 +996,13 @@ export class ApiClass {
|
|
|
999
996
|
});
|
|
1000
997
|
}
|
|
1001
998
|
|
|
1002
|
-
async checkOsns(bin: string) {
|
|
999
|
+
async checkOsns(bin: string, date: string) {
|
|
1003
1000
|
return await this.axiosCall<boolean>({
|
|
1004
1001
|
method: Methods.GET,
|
|
1005
1002
|
url: `/${this.productUrl}/api/Application/CheckOSNS`,
|
|
1006
1003
|
params: {
|
|
1007
1004
|
bin,
|
|
1005
|
+
date,
|
|
1008
1006
|
},
|
|
1009
1007
|
});
|
|
1010
1008
|
}
|
|
@@ -1037,28 +1035,6 @@ export class ApiClass {
|
|
|
1037
1035
|
});
|
|
1038
1036
|
}
|
|
1039
1037
|
|
|
1040
|
-
async uploadDigitalCertifijcate(data: any) {
|
|
1041
|
-
return await this.axiosCall<any>({
|
|
1042
|
-
method: Methods.POST,
|
|
1043
|
-
url: '/File/api/Document/UploadDigitalCertifijcate',
|
|
1044
|
-
headers: {
|
|
1045
|
-
'Content-Type': 'multipart/form-data',
|
|
1046
|
-
},
|
|
1047
|
-
data: data,
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
async uploadDigitalCertificatePensionAnnuityNew(data: any) {
|
|
1052
|
-
return await this.axiosCall<any>({
|
|
1053
|
-
method: Methods.POST,
|
|
1054
|
-
url: '/File/api/Document/UploadDigitalCertificatePensionAnnuityNew',
|
|
1055
|
-
headers: {
|
|
1056
|
-
'Content-Type': 'multipart/form-data',
|
|
1057
|
-
},
|
|
1058
|
-
data: data,
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
1038
|
async startRejectedApplication(data: any) {
|
|
1063
1039
|
return await this.axiosCall({
|
|
1064
1040
|
method: Methods.POST,
|
|
@@ -1067,13 +1043,6 @@ export class ApiClass {
|
|
|
1067
1043
|
});
|
|
1068
1044
|
}
|
|
1069
1045
|
|
|
1070
|
-
async getDocumentsByEdsXmlId(edsXmlId: string) {
|
|
1071
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1072
|
-
method: Methods.GET,
|
|
1073
|
-
url: `/File/api/Sign/GetDocumentsByEdsXmlId/${edsXmlId}`,
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
1046
|
async checkSign(id: string) {
|
|
1078
1047
|
return await this.axiosCall<Types.SignedState>({
|
|
1079
1048
|
method: Methods.POST,
|
|
@@ -1090,21 +1059,276 @@ export class ApiClass {
|
|
|
1090
1059
|
});
|
|
1091
1060
|
}
|
|
1092
1061
|
|
|
1093
|
-
async
|
|
1094
|
-
return await this.axiosCall<
|
|
1062
|
+
async acceptDeclaration(insuredId: string, accept: boolean) {
|
|
1063
|
+
return await this.axiosCall<boolean>({
|
|
1095
1064
|
method: Methods.POST,
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1065
|
+
url: `/${this.productUrl}/api/Application/AcceptDeclaration`,
|
|
1066
|
+
params: {
|
|
1067
|
+
insuredId,
|
|
1068
|
+
accept,
|
|
1069
|
+
},
|
|
1099
1070
|
});
|
|
1100
1071
|
}
|
|
1101
1072
|
|
|
1102
|
-
async
|
|
1103
|
-
return await this.axiosCall<
|
|
1104
|
-
method: Methods.
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1073
|
+
async getParentContractData(policyId: string) {
|
|
1074
|
+
return await this.axiosCall<{ bin: string; name: string }>({
|
|
1075
|
+
method: Methods.GET,
|
|
1076
|
+
url: `/${this.productUrl}/api/Application/GetParentContractData`,
|
|
1077
|
+
params: {
|
|
1078
|
+
policyId,
|
|
1079
|
+
},
|
|
1108
1080
|
});
|
|
1109
1081
|
}
|
|
1082
|
+
|
|
1083
|
+
async getContractByBin(bin: string) {
|
|
1084
|
+
return await this.axiosCall<Types.GetContractByBinResponse>({
|
|
1085
|
+
method: Methods.GET,
|
|
1086
|
+
url: `/${this.productUrl}/api/Application/getContractByBin`,
|
|
1087
|
+
params: {
|
|
1088
|
+
bin,
|
|
1089
|
+
},
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
async checkProActiveService(processInstanceId: string | number, iin: string) {
|
|
1094
|
+
return await this.axiosCall({
|
|
1095
|
+
method: Methods.GET,
|
|
1096
|
+
url: `/${this.productUrl}/api/Application/CheckProActiveService`,
|
|
1097
|
+
params: {
|
|
1098
|
+
processInstanceId,
|
|
1099
|
+
iin,
|
|
1100
|
+
},
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
async getParentApplication(bin: string) {
|
|
1105
|
+
return await this.axiosCall<any>({
|
|
1106
|
+
method: Methods.GET,
|
|
1107
|
+
url: `/${this.productUrl}/api/Application/GetParentApplication`,
|
|
1108
|
+
params: {
|
|
1109
|
+
bin,
|
|
1110
|
+
},
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
pensionannuityNew = {
|
|
1115
|
+
base: '/pensionannuityNew',
|
|
1116
|
+
getEnpfRedirectUrl: async (id: string) => {
|
|
1117
|
+
return await this.axiosCall<{ redirectUrl: string }>({
|
|
1118
|
+
method: Methods.POST,
|
|
1119
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1120
|
+
url: `${this.pensionannuityNew.base}/GetEnpfRedirectUrl?id=${id}`,
|
|
1121
|
+
});
|
|
1122
|
+
},
|
|
1123
|
+
setEnpfSharedId: async (sharedId: string, infoId: string, isProd: boolean) => {
|
|
1124
|
+
return await this.axiosCall<void>({
|
|
1125
|
+
method: Methods.POST,
|
|
1126
|
+
baseURL: isProd === false ? getStrValuePerEnv('efoBaseApi').replace('kz/efo', 'kz/test/efo') : getStrValuePerEnv('efoBaseApi'),
|
|
1127
|
+
url: `${this.pensionannuityNew.base}/SetEnpfSharedId/${sharedId}/${infoId}`,
|
|
1128
|
+
});
|
|
1129
|
+
},
|
|
1130
|
+
calcParentContractSums: async (data: any) => {
|
|
1131
|
+
return await this.axiosCall<void>({
|
|
1132
|
+
method: Methods.POST,
|
|
1133
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1134
|
+
url: `${this.pensionannuityNew.base}/CalcParentContractSums`,
|
|
1135
|
+
data: data,
|
|
1136
|
+
});
|
|
1137
|
+
},
|
|
1138
|
+
reCalculateRefund: async (data: any) => {
|
|
1139
|
+
return await this.axiosCall<void>({
|
|
1140
|
+
method: Methods.POST,
|
|
1141
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1142
|
+
url: `${this.pensionannuityNew.base}/ReCalculateRefund`,
|
|
1143
|
+
data: data,
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
getDividendSchedule: async (processInstanceId: string | number) => {
|
|
1147
|
+
return await this.axiosCall<{
|
|
1148
|
+
scheduleDividend: Value[] | null;
|
|
1149
|
+
scheduleDividend2: Value[] | null;
|
|
1150
|
+
}>({
|
|
1151
|
+
method: Methods.GET,
|
|
1152
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1153
|
+
url: `${this.pensionannuityNew.base}/GetDividendSchedule`,
|
|
1154
|
+
params: { processInstanceId: processInstanceId },
|
|
1155
|
+
});
|
|
1156
|
+
},
|
|
1157
|
+
setOppvCount: async (processInstanceId: string, data: any) => {
|
|
1158
|
+
return await this.axiosCall<{ oppvCount: number; errocCode: number; errorMsg: string }>({
|
|
1159
|
+
method: Methods.POST,
|
|
1160
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1161
|
+
url: `${this.pensionannuityNew.base}/SetOppvCount`,
|
|
1162
|
+
headers: {
|
|
1163
|
+
'Content-Type': 'multipart/form-data',
|
|
1164
|
+
},
|
|
1165
|
+
params: { processInstanceId },
|
|
1166
|
+
data: data,
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
externalServices = {
|
|
1172
|
+
base: '/externalservices',
|
|
1173
|
+
getOnlineAccess: async (data: { iinBin: string; documentType: string }) => {
|
|
1174
|
+
return await this.axiosCall<{ code: string; message: string }>({
|
|
1175
|
+
method: Methods.POST,
|
|
1176
|
+
url: `${this.externalServices.base}/api/ExternalServices/GetOnlineAccess`,
|
|
1177
|
+
data: data,
|
|
1178
|
+
});
|
|
1179
|
+
},
|
|
1180
|
+
getDigitalDocuments: async (data: { iin: string; processInstanceId: string; code: string }) => {
|
|
1181
|
+
return await this.axiosCall<void>({
|
|
1182
|
+
method: Methods.POST,
|
|
1183
|
+
url: `${this.externalServices.base}/api/ExternalServices/DigitalDocuments`,
|
|
1184
|
+
data: data,
|
|
1185
|
+
});
|
|
1186
|
+
},
|
|
1187
|
+
updateDigitalDocumentsProfile: async (data: { iinBin: string }) => {
|
|
1188
|
+
return await this.axiosCall<void>({
|
|
1189
|
+
method: Methods.POST,
|
|
1190
|
+
url: `${this.externalServices.base}/api/ExternalServices/UpdateDigitalDocumentsProfile`,
|
|
1191
|
+
data: data,
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
file = {
|
|
1197
|
+
base: '/File',
|
|
1198
|
+
uploadFilesNew: async (groupId: string, data: any) => {
|
|
1199
|
+
return await this.axiosCall({
|
|
1200
|
+
method: Methods.POST,
|
|
1201
|
+
url: `${this.file.base}/api/GeneralSign/UploadPaper/${groupId}`,
|
|
1202
|
+
headers: {
|
|
1203
|
+
'Content-Type': 'multipart/form-data',
|
|
1204
|
+
},
|
|
1205
|
+
data: data,
|
|
1206
|
+
});
|
|
1207
|
+
},
|
|
1208
|
+
generalGetDoc: async (groupId: string, documentSignType: number) => {
|
|
1209
|
+
return await this.axiosCall<any>({
|
|
1210
|
+
method: Methods.GET,
|
|
1211
|
+
url: `${this.file.base}/api/GeneralSign/Group/${groupId}/${documentSignType} `,
|
|
1212
|
+
responseType: documentSignType === 5 ? 'json' : 'arraybuffer',
|
|
1213
|
+
});
|
|
1214
|
+
},
|
|
1215
|
+
generalSign: async (data: Types.Api.Sign.New.GeneralResponse) => {
|
|
1216
|
+
return await this.axiosCall<Types.Api.Sign.New.Response>({
|
|
1217
|
+
method: Methods.POST,
|
|
1218
|
+
url: `${this.file.base}/api/GeneralSign/Sign`,
|
|
1219
|
+
data: data,
|
|
1220
|
+
});
|
|
1221
|
+
},
|
|
1222
|
+
generateSign: async (data: Types.Api.Sign.New.Request) => {
|
|
1223
|
+
return await this.axiosCall<Types.Api.Sign.New.GeneralResponse[]>({
|
|
1224
|
+
method: Methods.POST,
|
|
1225
|
+
url: `${this.file.base}/api/GeneralSign/GenerateSign`,
|
|
1226
|
+
data: data,
|
|
1227
|
+
});
|
|
1228
|
+
},
|
|
1229
|
+
uploadDigitalCertificateNca: async (groupId: string, data: any) => {
|
|
1230
|
+
return await this.axiosCall<void>({
|
|
1231
|
+
method: Methods.POST,
|
|
1232
|
+
url: `${this.file.base}/api/GeneralSign/UploadNClayer/${groupId}`,
|
|
1233
|
+
headers: {
|
|
1234
|
+
'Content-Type': 'multipart/form-data',
|
|
1235
|
+
},
|
|
1236
|
+
data: data,
|
|
1237
|
+
});
|
|
1238
|
+
},
|
|
1239
|
+
uploadXml: async (data: any) => {
|
|
1240
|
+
return await this.axiosCall<void>({
|
|
1241
|
+
url: `${this.file.base}/api/GeneralSign/UploadXml`,
|
|
1242
|
+
method: Methods.POST,
|
|
1243
|
+
data: data,
|
|
1244
|
+
});
|
|
1245
|
+
},
|
|
1246
|
+
signXml: async (data: any) => {
|
|
1247
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1248
|
+
url: `${this.file.base}/api/Sign/SignXml`,
|
|
1249
|
+
method: Methods.POST,
|
|
1250
|
+
data: data,
|
|
1251
|
+
});
|
|
1252
|
+
},
|
|
1253
|
+
signBts: async (data: any) => {
|
|
1254
|
+
return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
|
|
1255
|
+
url: `${this.file.base}/api/Sign/SignBts`,
|
|
1256
|
+
method: Methods.POST,
|
|
1257
|
+
data: data,
|
|
1258
|
+
});
|
|
1259
|
+
},
|
|
1260
|
+
getDoc: async (id: string) => {
|
|
1261
|
+
return await this.axiosCall({
|
|
1262
|
+
method: Methods.GET,
|
|
1263
|
+
url: `${this.file.base}/api/Data/DownloadFile/${id}`,
|
|
1264
|
+
responseType: 'arraybuffer',
|
|
1265
|
+
headers: {
|
|
1266
|
+
'Content-Type': 'application/pdf',
|
|
1267
|
+
},
|
|
1268
|
+
});
|
|
1269
|
+
},
|
|
1270
|
+
getDocNew: async (id: string) => {
|
|
1271
|
+
return await this.axiosCall({
|
|
1272
|
+
method: Methods.GET,
|
|
1273
|
+
url: `${this.file.base}/api/GeneralSign/DownloadFile/${id}`,
|
|
1274
|
+
responseType: 'arraybuffer',
|
|
1275
|
+
headers: {
|
|
1276
|
+
'Content-Type': 'application/pdf',
|
|
1277
|
+
},
|
|
1278
|
+
});
|
|
1279
|
+
},
|
|
1280
|
+
deleteFile: async (data: any) => {
|
|
1281
|
+
return await this.axiosCall<void>({
|
|
1282
|
+
method: Methods.POST,
|
|
1283
|
+
url: `${this.file.base}/api/Data/DeleteFiles`,
|
|
1284
|
+
data: data,
|
|
1285
|
+
});
|
|
1286
|
+
},
|
|
1287
|
+
uploadFiles: async (data: any) => {
|
|
1288
|
+
return await this.axiosCall({
|
|
1289
|
+
method: Methods.POST,
|
|
1290
|
+
url: `${this.file.base}/api/Data/UploadFiles`,
|
|
1291
|
+
headers: {
|
|
1292
|
+
'Content-Type': 'multipart/form-data',
|
|
1293
|
+
},
|
|
1294
|
+
data: data,
|
|
1295
|
+
});
|
|
1296
|
+
},
|
|
1297
|
+
signDocument: async (data: Types.SignDataType[]) => {
|
|
1298
|
+
return await this.axiosCall<Types.SignUrlType[]>({
|
|
1299
|
+
method: Methods.POST,
|
|
1300
|
+
url: `${this.file.base}/api/Document/SignBts`,
|
|
1301
|
+
data: data,
|
|
1302
|
+
});
|
|
1303
|
+
},
|
|
1304
|
+
signQR: async (data: Types.SignDataType[]) => {
|
|
1305
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1306
|
+
method: Methods.POST,
|
|
1307
|
+
url: `${this.file.base}/api/Sign/SignQr`,
|
|
1308
|
+
data: data,
|
|
1309
|
+
});
|
|
1310
|
+
},
|
|
1311
|
+
generateDocument: async (data: Types.SignDataType) => {
|
|
1312
|
+
return await this.axiosCall<void>({
|
|
1313
|
+
method: Methods.POST,
|
|
1314
|
+
url: `${this.file.base}/api/Document/Generate`,
|
|
1315
|
+
responseType: 'arraybuffer',
|
|
1316
|
+
data: data,
|
|
1317
|
+
});
|
|
1318
|
+
},
|
|
1319
|
+
getSignedDocList: async (data: { processInstanceId: string | number }) => {
|
|
1320
|
+
return await this.axiosCall<IDocument[]>({
|
|
1321
|
+
method: Methods.POST,
|
|
1322
|
+
url: `${this.file.base}/api/Data/List`,
|
|
1323
|
+
data: data,
|
|
1324
|
+
});
|
|
1325
|
+
},
|
|
1326
|
+
setActualEnpf: async (data: { processId: string; isOnlineEnpfAgreement: boolean }) => {
|
|
1327
|
+
return await this.axiosCall<void>({
|
|
1328
|
+
method: Methods.POST,
|
|
1329
|
+
url: `${this.file.base}/api/GeneralSign/SetActualEnpfAgreement`,
|
|
1330
|
+
data: data,
|
|
1331
|
+
});
|
|
1332
|
+
},
|
|
1333
|
+
};
|
|
1110
1334
|
}
|
package/api/interceptors.ts
CHANGED
|
@@ -65,14 +65,12 @@ export default function (axios: AxiosInstance) {
|
|
|
65
65
|
dataStore.sendToParent(constants.postActions.Error401, 401);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
if (error.response.status >= 500) {
|
|
69
|
-
if (router.currentRoute.value.name !== 'Auth') {
|
|
70
|
-
dataStore.showToaster('error', error.stack ?? dataStore.t('toaster.error'), 5000);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
68
|
if (error.response.status === 403 && error.response.config.url) {
|
|
74
69
|
dataStore.showToaster('error', `Нет доступа на запрос: ${error.response.config.url.substring(error.response.config.url.lastIndexOf('/') + 1)}`, 5000);
|
|
75
70
|
}
|
|
71
|
+
if (error.response.status === 413) {
|
|
72
|
+
dataStore.showToaster('error', dataStore.t('error.exceedUploadLimitFile'), 5000);
|
|
73
|
+
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
return Promise.reject(error);
|