hl-core 0.0.10-beta.41-1 → 0.0.10-beta.41-2

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.
@@ -1,1837 +0,0 @@
1
- import { Statuses, StoreMembers, MemberAppCodes } from '../types/enum';
2
- import { formatDate } from '.';
3
- import type { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router';
4
- import type * as Types from '../types';
5
-
6
- type LinkType = Partial<RouteLocationNormalized> | Partial<RouteLocationNormalizedLoaded> | string | null | boolean;
7
-
8
- class MenuItemConfig {
9
- id: any;
10
- title: string | null;
11
- link?: LinkType;
12
- hasLine?: boolean;
13
- description?: string | null;
14
- url?: string | null;
15
- initial?: any | null;
16
- icon?: string | null;
17
- action?: Function | void;
18
- disabled?: ComputedRef;
19
- color?: string;
20
- show?: ComputedRef;
21
- chip?: Types.ChipComponent;
22
-
23
- constructor(
24
- id: any = null,
25
- title: string | null = null,
26
- link?: LinkType,
27
- hasLine?: boolean,
28
- description?: string | null,
29
- url?: string | null,
30
- initial?: any | null,
31
- icon?: string | null,
32
- action?: Function | void,
33
- disabled?: ComputedRef,
34
- color?: string,
35
- show?: ComputedRef,
36
- chip?: Types.ChipComponent,
37
- ) {
38
- this.id = id;
39
- this.title = title;
40
- this.link = link;
41
- this.hasLine = hasLine;
42
- this.description = description;
43
- this.url = url;
44
- this.initial = initial;
45
- this.icon = icon;
46
- this.action = action;
47
- this.disabled = disabled;
48
- this.color = color;
49
- this.show = show;
50
- this.chip = chip;
51
- }
52
- }
53
-
54
- export class Value {
55
- id: string | number | null;
56
- code: string | number | null;
57
- nameRu: string | null;
58
- nameKz: string | null;
59
- ids: string | number | null;
60
-
61
- constructor(id: string | number | null = null, nameRu: string | null = null, nameKz: string | null = null, code: string | null = null, ids: string | null = null) {
62
- this.id = id;
63
- this.code = code;
64
- this.nameRu = nameRu;
65
- this.nameKz = nameKz;
66
- this.ids = ids;
67
- }
68
- }
69
-
70
- export class CountryValue extends Value {
71
- countryTypeCode: string | number | null;
72
-
73
- constructor(countryTypeCode = null, ...args: any) {
74
- super(...args);
75
- this.countryTypeCode = countryTypeCode;
76
- }
77
- }
78
-
79
- export class IDocument {
80
- id?: string;
81
- processInstanceId?: string;
82
- iin?: string;
83
- fileTypeId?: string;
84
- fileTypeName?: string;
85
- fileTypeNameRu?: string;
86
- fileId?: string;
87
- page?: number;
88
- fileName?: string;
89
- fileTypeCode?: string;
90
- sharedId?: string | null;
91
- signed?: boolean | null;
92
- signId?: string | null;
93
- certificateDate?: string | null;
94
- signedType?: number;
95
-
96
- constructor(
97
- id?: string,
98
- processInstanceId?: string,
99
- iin?: string,
100
- fileTypeId?: string,
101
- fileTypeName?: string,
102
- fileTypeNameRu?: string,
103
- fileId?: string,
104
- page?: number,
105
- fileName?: string,
106
- fileTypeCode?: string,
107
- sharedId?: string | null,
108
- signed?: boolean | null,
109
- signId?: string | null,
110
- certificateDate?: string | null,
111
- signedType?: number,
112
- ) {
113
- this.id = id;
114
- this.processInstanceId = processInstanceId;
115
- this.iin = iin;
116
- this.fileTypeId = fileTypeId;
117
- this.fileTypeName = fileTypeName;
118
- this.fileTypeNameRu = fileTypeNameRu;
119
- this.fileId = fileId;
120
- this.page = page;
121
- this.fileName = fileName;
122
- this.fileTypeCode = fileTypeCode;
123
- this.sharedId = sharedId;
124
- this.signed = signed;
125
- this.signId = signId;
126
- this.certificateDate = certificateDate;
127
- this.signedType = signedType;
128
- }
129
- }
130
-
131
- export class DocumentItem extends IDocument {
132
- constructor(
133
- {
134
- id,
135
- processInstanceId,
136
- iin,
137
- fileTypeId,
138
- fileTypeName,
139
- fileTypeNameRu,
140
- fileId,
141
- page,
142
- fileName,
143
- fileTypeCode,
144
- sharedId,
145
- signed,
146
- signId,
147
- certificateDate,
148
- signedType,
149
- }: IDocument = new IDocument(),
150
- ) {
151
- super(id, processInstanceId, iin, fileTypeId, fileTypeName, fileTypeNameRu, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate, signedType);
152
- }
153
- }
154
-
155
- export class MenuOption {
156
- text: string | null;
157
- subtitle: string | null;
158
- icon: string | null;
159
- variant: string | null;
160
- size: string | null;
161
-
162
- constructor(text = 'Text', subtitle = 'Subtitle', icon = 'mdi-content-copy', variant = 'text', size = 'small') {
163
- this.text = text;
164
- this.subtitle = subtitle;
165
- this.icon = icon;
166
- this.variant = variant;
167
- this.size = size;
168
- }
169
- }
170
-
171
- export const InitialColumns = (): {
172
- addRegNumber: boolean | null;
173
- number: boolean | null;
174
- iin: boolean | null;
175
- longName: boolean | null;
176
- userName: boolean | null;
177
- processCodeTitle: boolean | null;
178
- historyStatusTitle: boolean | null;
179
- dateCreated: boolean | null;
180
- } => {
181
- return {
182
- addRegNumber: null,
183
- number: null,
184
- iin: null,
185
- longName: null,
186
- userName: null,
187
- processCodeTitle: null,
188
- historyStatusTitle: null,
189
- dateCreated: null,
190
- };
191
- };
192
-
193
- export class User {
194
- login: string | null;
195
- password: string | null;
196
- roles: string[];
197
- id: string | null;
198
- fullName: string | null;
199
- code: string;
200
- branchCode: string;
201
-
202
- constructor(
203
- login: string | null = null,
204
- password: string | null = null,
205
- roles: string[] = [],
206
- id: string | null = null,
207
- fullName: string | null = null,
208
- code: string = '',
209
- branchCode: string = '',
210
- ) {
211
- this.login = login;
212
- this.password = password;
213
- this.roles = roles;
214
- this.id = id;
215
- this.fullName = fullName;
216
- this.code = code;
217
- this.branchCode = branchCode;
218
- }
219
-
220
- resetUser() {
221
- this.login = null;
222
- this.password = null;
223
- this.roles = [];
224
- this.id = null;
225
- this.fullName = null;
226
- this.code = '';
227
- this.branchCode = '';
228
- }
229
- }
230
-
231
- class Person {
232
- id: string | number | null;
233
- type: string | number | null;
234
- iin: string | null;
235
- longName: string | null;
236
- lastName: string | null;
237
- firstName: string | null;
238
- firstNameLat?: string | null;
239
- lastNameLat?: string | null;
240
- middleName: string | null;
241
- birthDate: string | null;
242
- gender: Value;
243
- genderName: string | null;
244
- birthPlace: Value;
245
- age: string | null;
246
- registrationDate: string;
247
-
248
- constructor(
249
- id = 0,
250
- type = 1,
251
- iin = null,
252
- longName = null,
253
- lastName = null,
254
- firstName = null,
255
- middleName = null,
256
- birthDate = null,
257
- gender = new Value(),
258
- genderName = null,
259
- birthPlace = new Value(),
260
- age = null,
261
- ) {
262
- this.id = id;
263
- this.type = type;
264
- this.iin = iin;
265
- this.longName = !!lastName && !!firstName && !!middleName ? (((((lastName as string) + firstName) as string) + middleName) as string) : longName;
266
- this.lastName = lastName;
267
- this.firstName = firstName;
268
- this.middleName = middleName;
269
- this.birthDate = birthDate;
270
- this.gender = gender;
271
- this.genderName = gender && gender.nameRu !== null ? (gender.nameRu as string) : genderName;
272
- this.birthPlace = birthPlace;
273
- this.age = age;
274
- this.registrationDate = new Date(Date.now() - new Date().getTimezoneOffset() * 60 * 1000).toISOString().slice(0, -1);
275
- }
276
-
277
- resetPerson(clearIinAndPhone: boolean = true) {
278
- this.id = 0;
279
- this.type = 1;
280
- if (clearIinAndPhone === true) {
281
- this.iin = null;
282
- }
283
- this.longName = null;
284
- this.lastName = null;
285
- this.firstName = null;
286
- this.middleName = null;
287
- this.birthDate = null;
288
- this.gender = new Value();
289
- this.genderName = null;
290
- this.birthPlace = new Value();
291
- this.age = null;
292
- this.registrationDate = new Date(Date.now() - new Date().getTimezoneOffset() * 60 * 1000).toISOString().slice(0, -1);
293
- }
294
-
295
- formatDate(date: any): Date | null {
296
- return formatDate(date);
297
- }
298
-
299
- getDateByKey(key: string): string | null {
300
- const ctxKey = key as keyof typeof this;
301
- if (this[ctxKey] && this[ctxKey] !== null) {
302
- const formattedDate = this.formatDate(this[ctxKey]);
303
- return formattedDate ? formattedDate.toISOString() : null;
304
- } else {
305
- return null;
306
- }
307
- }
308
-
309
- getBirthDate() {
310
- return this.getDateByKey('birthDate');
311
- }
312
-
313
- getDocumentExpireDate() {
314
- return this.getDateByKey('documentExpire');
315
- }
316
-
317
- getDocumentDate() {
318
- return this.getDateByKey('documentDate');
319
- }
320
-
321
- getAgeByBirthDate() {
322
- const date = this.formatDate(this.birthDate);
323
- if (date) {
324
- const age = Math.abs(new Date(Date.now() - new Date(date).getTime()).getUTCFullYear() - 1970);
325
- if (new Date(date) < new Date(Date.now()) && age >= 0) {
326
- return age.toString();
327
- }
328
- } else {
329
- return null;
330
- }
331
- }
332
- }
333
-
334
- export class Contragent extends Person {
335
- economySectorCode: Value;
336
- countryOfCitizenship: Value;
337
- countryOfTaxResidency: Value;
338
- registrationCountry: Value;
339
- registrationProvince: Value;
340
- registrationRegion: Value;
341
- registrationRegionType: Value;
342
- registrationCity: Value;
343
- registrationQuarter: string | null;
344
- registrationMicroDistrict: string | null;
345
- registrationStreet: string | null;
346
- registrationNumberHouse: string | null;
347
- registrationNumberApartment: string | null;
348
- phoneNumber: string | null;
349
- homePhone: string | null;
350
- email: string | null;
351
- signOfResidency: Value;
352
- documentType: Value;
353
- documentNumber: string | null;
354
- documentIssuers: Value;
355
- documentDate: string | null;
356
- documentExpire: string | null;
357
- verifyDate: string | null;
358
- verifyType: string | null;
359
- otpTokenId: string | null;
360
-
361
- constructor(
362
- economySectorCode = new Value(),
363
- countryOfCitizenship = new Value(),
364
- countryOfTaxResidency = new Value(),
365
- registrationCountry = new Value(),
366
- registrationProvince = new Value(),
367
- registrationRegion = new Value(),
368
- registrationRegionType = new Value(),
369
- registrationCity = new Value(),
370
- registrationQuarter = null,
371
- registrationMicroDistrict = null,
372
- registrationStreet = null,
373
- registrationNumberHouse = null,
374
- registrationNumberApartment = null,
375
- phoneNumber = null,
376
- homePhone = null,
377
- email = null,
378
- signOfResidency = new Value(),
379
- documentType = new Value(),
380
- documentNumber = null,
381
- documentIssuers = new Value(),
382
- documentDate = null,
383
- documentExpire = null,
384
- ...args: any
385
- ) {
386
- super(...args);
387
- this.economySectorCode = economySectorCode;
388
- this.countryOfCitizenship = countryOfCitizenship;
389
- this.countryOfTaxResidency = countryOfTaxResidency;
390
- this.registrationCountry = registrationCountry;
391
- this.registrationProvince = registrationProvince;
392
- this.registrationRegion = registrationRegion;
393
- this.registrationRegionType = registrationRegionType;
394
- this.registrationCity = registrationCity;
395
- this.registrationQuarter = registrationQuarter;
396
- this.registrationMicroDistrict = registrationMicroDistrict;
397
- this.registrationStreet = registrationStreet;
398
- this.registrationNumberHouse = registrationNumberHouse;
399
- this.registrationNumberApartment = registrationNumberApartment;
400
- this.phoneNumber = phoneNumber;
401
- this.homePhone = homePhone;
402
- this.email = email;
403
- this.signOfResidency = signOfResidency;
404
- this.documentType = documentType;
405
- this.documentNumber = documentNumber;
406
- this.documentIssuers = documentIssuers;
407
- this.documentDate = documentDate;
408
- this.documentExpire = documentExpire;
409
- this.verifyDate = null;
410
- this.verifyType = null;
411
- this.otpTokenId = null;
412
- }
413
- }
414
-
415
- export class Member extends Person {
416
- response?: {
417
- contragent?: Types.ContragentType;
418
- questionnaires?: Types.ContragentQuestionaries[];
419
- contacts?: Types.ContragentContacts[];
420
- documents?: Types.ContragentDocuments[];
421
- addresses?: Types.ContragentAddress[];
422
- };
423
- verifyType: any;
424
- verifyDate: any;
425
- postIndex: string | null;
426
- isPdl: boolean;
427
- migrationCard: string | null;
428
- migrationCardIssueDate: string | null;
429
- migrationCardExpireDate: string | null;
430
- confirmDocType: string | null;
431
- confirmDocNumber: string | null;
432
- confirmDocIssueDate: string | null;
433
- confirmDocExpireDate: string | null;
434
- notaryLongName: string | null;
435
- notaryLicenseNumber: string | null;
436
- notaryLicenseDate: string | null;
437
- notaryLicenseIssuer: string | null;
438
- jurLongName: string | null;
439
- fullNameRod: string | null;
440
- confirmDocTypeKz: string | null;
441
- confirmDocTypeRod: string | null;
442
- isNotary: boolean;
443
- insurancePay: Value;
444
- job: string | null;
445
- jobPosition: string | null;
446
- jobPlace: string | null;
447
- positionCode: string | null;
448
- registrationCountry: Value;
449
- registrationProvince: Value;
450
- registrationRegion: Value;
451
- registrationRegionType: Value;
452
- registrationCity: Value;
453
- registrationQuarter?: string | null;
454
- registrationMicroDistrict?: string | null;
455
- registrationStreet?: string | null;
456
- registrationNumberHouse?: string | null;
457
- registrationNumberApartment?: string | null;
458
- birthRegion: Value;
459
- documentType: Value;
460
- documentNumber: string | null;
461
- documentIssuers: Types.Base.Document.IssuerOther;
462
- documentDate: string | null;
463
- documentExpire: string | null;
464
- signOfResidency: Value;
465
- signOfIPDL: Value;
466
- countryOfCitizenship: Value;
467
- countryOfTaxResidency: Value;
468
- addTaxResidency: Value;
469
- economySectorCode: Value;
470
- phoneNumber: string | null;
471
- homePhone: string | null;
472
- email: string | null;
473
- address: string | null;
474
- familyStatus: Value;
475
- isTerror: null;
476
- relationDegree: Value;
477
- isDisability: boolean;
478
- disabilityGroup: Value | null;
479
- percentageOfPayoutAmount: string | number | null;
480
- _cyrPattern: RegExp;
481
- _numPattern: RegExp;
482
- _phonePattern: RegExp;
483
- _emailPattern: RegExp;
484
- gotFromInsis: boolean | null;
485
- gosPersonData: Types.Api.GBD.Person | null;
486
- parsedDocument: any;
487
- hasAgreement: boolean | null;
488
- otpTokenId: string | null;
489
- otpCode: string;
490
- documentsList: Types.ContragentDocuments[];
491
- isInsuredUnderage?: boolean = false;
492
- bankInfo: BankInfoClass;
493
- transferContractCompany: Value;
494
- digitalDocument: IDocument | null;
495
- identityDocument: {
496
- documentType: Value;
497
- documentNumber: string | null;
498
- issuedOn: string | null;
499
- issuedBy: Value;
500
- validUntil: string | null;
501
- };
502
-
503
- constructor(
504
- id = 0,
505
- type = 1,
506
- iin = null,
507
- phoneNumber = null,
508
- longName = null,
509
- lastName = null,
510
- firstName = null,
511
- middleName = null,
512
- birthDate = null,
513
- gender = new Value(),
514
- genderName = null,
515
- birthPlace = new Value(),
516
- age = null,
517
- registrationDate = null,
518
- job = null,
519
- jobPosition = null,
520
- jobPlace = null,
521
- positionCode = null,
522
- registrationCountry = new Value(),
523
- registrationProvince = new Value(),
524
- registrationRegion = new Value(),
525
- registrationRegionType = new Value(),
526
- registrationCity = new Value(),
527
- registrationQuarter = null,
528
- registrationMicroDistrict = null,
529
- registrationStreet = null,
530
- registrationNumberHouse = null,
531
- registrationNumberApartment = null,
532
- birthRegion = new Value(),
533
- documentType = new Value(),
534
- documentNumber = null,
535
- documentIssuers = new Value(),
536
- documentDate = null,
537
- documentExpire = null,
538
- signOfResidency = new Value(),
539
- signOfIPDL = new Value(),
540
- isTerror = null,
541
- countryOfCitizenship = new Value(),
542
- countryOfTaxResidency = new Value(),
543
- addTaxResidency = new Value(),
544
- economySectorCode = new Value(),
545
- homePhone = null,
546
- email = null,
547
- address = null,
548
- familyStatus = new Value(),
549
- relationDegree = new Value(),
550
- isDisability = false,
551
- disabilityGroupId = new Value(),
552
- percentageOfPayoutAmount = null,
553
- migrationCard = null,
554
- migrationCardIssueDate = null,
555
- migrationCardExpireDate = null,
556
- confirmDocType = null,
557
- confirmDocNumber = null,
558
- confirmDocIssueDate = null,
559
- confirmDocExpireDate = null,
560
- notaryLongName = null,
561
- notaryLicenseNumber = null,
562
- notaryLicenseDate = null,
563
- notaryLicenseIssuer = null,
564
- jurLongName = null,
565
- fullNameRod = null,
566
- confirmDocTypeKz = null,
567
- confirmDocTypeRod = null,
568
- isNotary = false,
569
- ) {
570
- super(id, type, iin, longName, lastName, firstName, middleName, birthDate, gender, genderName, birthPlace, age);
571
- this.documentsList = [];
572
- this.postIndex = null;
573
- this.isPdl = false;
574
- this.migrationCard = migrationCard;
575
- this.migrationCardIssueDate = migrationCardIssueDate;
576
- this.migrationCardExpireDate = migrationCardExpireDate;
577
- this.confirmDocType = confirmDocType;
578
- this.confirmDocNumber = confirmDocNumber;
579
- this.confirmDocIssueDate = confirmDocIssueDate;
580
- this.confirmDocExpireDate = confirmDocExpireDate;
581
- this.notaryLongName = notaryLongName;
582
- this.notaryLicenseNumber = notaryLicenseNumber;
583
- this.notaryLicenseDate = notaryLicenseDate;
584
- this.notaryLicenseIssuer = notaryLicenseIssuer;
585
- this.jurLongName = jurLongName;
586
- this.fullNameRod = fullNameRod;
587
- this.confirmDocTypeKz = confirmDocTypeKz;
588
- this.confirmDocTypeRod = confirmDocTypeRod;
589
- this.isNotary = isNotary;
590
- this.insurancePay = new Value();
591
- this.job = job;
592
- this.jobPosition = jobPosition;
593
- this.jobPlace = jobPlace;
594
- this.positionCode = positionCode;
595
- this.registrationCountry = registrationCountry;
596
- this.registrationProvince = registrationProvince;
597
- this.registrationRegion = registrationRegion;
598
- this.registrationRegionType = registrationRegionType;
599
- this.registrationCity = registrationCity;
600
- this.registrationQuarter = registrationQuarter;
601
- this.registrationMicroDistrict = registrationMicroDistrict;
602
- this.registrationStreet = registrationStreet;
603
- this.registrationNumberHouse = registrationNumberHouse;
604
- this.registrationNumberApartment = registrationNumberApartment;
605
- this.birthRegion = birthRegion;
606
- this.documentType = documentType;
607
- this.documentNumber = documentNumber;
608
- this.documentIssuers = documentIssuers;
609
- this.documentDate = documentDate;
610
- this.documentExpire = documentExpire;
611
- this.signOfResidency = signOfResidency;
612
- this.signOfIPDL = signOfIPDL;
613
- this.countryOfCitizenship = countryOfCitizenship;
614
- this.countryOfTaxResidency = countryOfTaxResidency;
615
- this.addTaxResidency = addTaxResidency;
616
- this.economySectorCode = economySectorCode;
617
- this.phoneNumber = phoneNumber;
618
- this.homePhone = homePhone;
619
- this.email = email;
620
- this.otpTokenId = null;
621
- this.otpCode = '';
622
- this.address = address;
623
- this.familyStatus = familyStatus;
624
- this.isTerror = isTerror;
625
- this.relationDegree = relationDegree;
626
- this.isDisability = isDisability;
627
- this.disabilityGroup = disabilityGroupId;
628
- this.percentageOfPayoutAmount = percentageOfPayoutAmount;
629
- this._cyrPattern = /[\u0400-\u04FF -]+/;
630
- this._numPattern = /[0-9]+/;
631
- this._phonePattern = /\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/;
632
- this._emailPattern = /.+@.+\..+/;
633
- this.gotFromInsis = true;
634
- this.gosPersonData = null;
635
- this.parsedDocument = null;
636
- this.hasAgreement = null;
637
- this.bankInfo = new BankInfoClass();
638
- this.transferContractCompany = new Value();
639
- this.digitalDocument = null;
640
- this.identityDocument = {
641
- documentType: new Value(),
642
- documentNumber: null,
643
- issuedOn: null,
644
- issuedBy: new Value(),
645
- validUntil: null,
646
- };
647
- }
648
-
649
- resetMember(clearIinAndPhone: boolean = true) {
650
- super.resetPerson(clearIinAndPhone);
651
- this.job = null;
652
- this.jobPosition = null;
653
- this.jobPlace = null;
654
- this.positionCode = null;
655
- this.registrationCountry = new Value();
656
- this.registrationProvince = new Value();
657
- this.registrationRegion = new Value();
658
- this.registrationRegionType = new Value();
659
- this.registrationCity = new Value();
660
- this.registrationQuarter = null;
661
- this.registrationMicroDistrict = null;
662
- this.registrationStreet = null;
663
- this.registrationNumberHouse = null;
664
- this.registrationNumberApartment = null;
665
- this.birthRegion = new Value();
666
- this.documentType = new Value();
667
- this.documentNumber = null;
668
- this.documentIssuers = new Value();
669
- this.documentDate = null;
670
- this.documentExpire = null;
671
- this.signOfResidency = new Value();
672
- this.signOfIPDL = new Value();
673
- this.countryOfCitizenship = new Value();
674
- this.countryOfTaxResidency = new Value();
675
- this.economySectorCode = new Value();
676
- if (clearIinAndPhone === true) {
677
- this.phoneNumber = null;
678
- }
679
- this.homePhone = null;
680
- this.email = null;
681
- this.address = null;
682
- this.familyStatus = new Value();
683
- this.isTerror = null;
684
- this.relationDegree = new Value();
685
- this.isDisability = false;
686
- this.disabilityGroup = null;
687
- this.percentageOfPayoutAmount = null;
688
- this.gotFromInsis = true;
689
- this.gosPersonData = null;
690
- this.parsedDocument = null;
691
- this.hasAgreement = null;
692
- this.insurancePay = new Value();
693
- this.migrationCard = null;
694
- this.migrationCardIssueDate = null;
695
- this.migrationCardExpireDate = null;
696
- this.confirmDocType = null;
697
- this.confirmDocNumber = null;
698
- this.confirmDocIssueDate = null;
699
- this.confirmDocExpireDate = null;
700
- this.notaryLongName = null;
701
- this.notaryLicenseNumber = null;
702
- this.notaryLicenseDate = null;
703
- this.notaryLicenseIssuer = null;
704
- this.jurLongName = null;
705
- this.fullNameRod = null;
706
- this.confirmDocTypeKz = null;
707
- this.confirmDocTypeRod = null;
708
- this.isNotary = false;
709
- }
710
-
711
- getPattern(pattern: string) {
712
- const key = `_${pattern}Pattern` as keyof typeof this;
713
- return this[key];
714
- }
715
-
716
- validatedMessage(valid: any, msg = 'Обязательное поле') {
717
- return {
718
- error: valid,
719
- msg,
720
- };
721
- }
722
-
723
- validateFullName() {
724
- return this.lastName !== null && this.firstName !== null;
725
- }
726
-
727
- getFullNameShorted() {
728
- return this.validateFullName() ? `${this.lastName} ${this.firstName?.charAt(0)}. ${this.middleName != '' ? this.middleName?.charAt(0) + '.' : ''}` : null;
729
- }
730
-
731
- getFullName() {
732
- return this.validateFullName() ? (this.lastName + ' ' + this.firstName + ' ' + this.middleName != '' ? this.middleName?.charAt(0) : '') : null;
733
- }
734
- }
735
-
736
- export class CalculatorForm {
737
- country: Value;
738
- countries: CountryValue[] | null;
739
- purpose: Value;
740
- workType: Value;
741
- sportsType: Value;
742
- type: Value;
743
- days: string | number | null;
744
- maxDays: Value;
745
- age: string | null;
746
- price: string | null;
747
- professionType: Value;
748
- amount: Value;
749
- startDate: string | null;
750
- endDate: string | null;
751
- period: Value;
752
- currency: string | null;
753
-
754
- constructor() {
755
- this.country = new Value();
756
- this.countries = [];
757
- this.purpose = new Value();
758
- this.workType = new Value();
759
- this.sportsType = new Value();
760
- this.type = new Value();
761
- this.days = null;
762
- this.maxDays = new Value();
763
- this.age = null;
764
- this.price = null;
765
- this.professionType = new Value();
766
- this.amount = new Value();
767
- this.startDate = null;
768
- this.endDate = null;
769
- this.period = new Value();
770
- this.currency = null;
771
- }
772
- }
773
-
774
- export class ProductConditions {
775
- signDate: string | null;
776
- birthDate: string | null;
777
- gender: Value;
778
- insuranceCase: string | null;
779
- coverPeriod: number | null;
780
- payPeriod: number | null;
781
- termsOfInsurance: string | null;
782
- annualIncome: string | null;
783
- processIndexRate: Value;
784
- processGfot: Value;
785
- transferContractCompany: Value;
786
- requestedSumInsured: number | string | null;
787
- requestedSumInsuredInDollar: number | string | null;
788
- insurancePremiumPerMonth: number | string | null;
789
- insurancePremiumPerMonthInDollar: number | string | null;
790
- establishingGroupDisabilityFromThirdYear: string | null;
791
- possibilityToChange: string | null;
792
- deathOfInsuredDueToAccident: Value;
793
- establishingGroupDisability: Value;
794
- temporaryDisability: Value;
795
- bodyInjury: Value;
796
- criticalIllnessOfTheInsured: Value;
797
- paymentPeriod: Value;
798
- amountOfInsurancePremium: string | number | null;
799
- lifeMultiply: string | number | null;
800
- lifeAdditive: string | number | null;
801
- lifeMultiplyClient: string | number | null;
802
- lifeAdditiveClient: string | number | null;
803
- adbMultiply: string | number | null;
804
- adbAdditive: string | number | null;
805
- disabilityMultiply: string | number | null;
806
- disabilityAdditive: string | number | null;
807
- riskGroup: Value;
808
- riskGroup2: Value;
809
- additionalConditionAnnuityPayments: boolean;
810
- guaranteedPeriod: number | null;
811
- typeAnnuityInsurance: Value;
812
- termAnnuityPayments: number | string | null;
813
- periodAnnuityPayment: Value;
814
- amountAnnuityPayments: number | string | null;
815
- isRecalculated: boolean;
816
- totalAmount5: number | string | null;
817
- totalAmount7: number | string | null;
818
- statePremium5: number | string | null;
819
- statePremium7: number | string | null;
820
- calculatorForm: CalculatorForm;
821
- agentCommission: number | null;
822
- fixInsSum: number | string | null;
823
- amountRefunded: number | string | null;
824
- amountPaid: number | string | null;
825
- calcDate: string | null;
826
- contractEndDate: string | null;
827
- currency: Value;
828
-
829
- constructor(
830
- insuranceCase = null,
831
- coverPeriod = null,
832
- payPeriod = null,
833
- termsOfInsurance = null,
834
- annualIncome = null,
835
- processIndexRate = new Value(),
836
- processGfot = new Value(),
837
- transferContractCompany = new Value(),
838
- requestedSumInsured = null,
839
- insurancePremiumPerMonth = null,
840
- establishingGroupDisabilityFromThirdYear = null,
841
- possibilityToChange = null,
842
- deathOfInsuredDueToAccident = new Value(),
843
- establishingGroupDisability = new Value(),
844
- temporaryDisability = new Value(),
845
- bodyInjury = new Value(),
846
- criticalIllnessOfTheInsured = new Value(),
847
- paymentPeriod = new Value(),
848
- amountOfInsurancePremium = null,
849
- lifeMultiply = null,
850
- lifeAdditive = null,
851
- lifeMultiplyClient = null,
852
- lifeAdditiveClient = null,
853
- adbMultiply = null,
854
- adbAdditive = null,
855
- disabilityMultiply = null,
856
- disabilityAdditive = null,
857
- riskGroup = new Value(),
858
- riskGroup2 = new Value(),
859
- additionalConditionAnnuityPayments = false,
860
- guaranteedPeriod = null,
861
- typeAnnuityInsurance = new Value(),
862
- termAnnuityPayments = null,
863
- periodAnnuityPayment = new Value(),
864
- amountAnnuityPayments = null,
865
- isRecalculated = false,
866
- totalAmount5 = null,
867
- totalAmount7 = null,
868
- statePremium5 = null,
869
- statePremium7 = null,
870
- calculatorForm = new CalculatorForm(),
871
- agentCommission = null,
872
- fixInsSum = null,
873
- amountRefunded = null,
874
- amountPaid = null,
875
- calcDate = null,
876
- contractEndDate = null,
877
- currency = new Value(),
878
- ) {
879
- this.requestedSumInsuredInDollar = null;
880
- this.insurancePremiumPerMonthInDollar = null;
881
- this.signDate = null;
882
- this.birthDate = null;
883
- this.gender = new Value();
884
- this.insuranceCase = insuranceCase;
885
- this.coverPeriod = coverPeriod;
886
- this.payPeriod = payPeriod;
887
- this.termsOfInsurance = termsOfInsurance;
888
- this.annualIncome = annualIncome;
889
- this.processIndexRate = processIndexRate;
890
- this.processGfot = processGfot;
891
- this.transferContractCompany = transferContractCompany;
892
- this.requestedSumInsured = requestedSumInsured;
893
- this.insurancePremiumPerMonth = insurancePremiumPerMonth;
894
- this.establishingGroupDisabilityFromThirdYear = establishingGroupDisabilityFromThirdYear;
895
- this.possibilityToChange = possibilityToChange;
896
- this.deathOfInsuredDueToAccident = deathOfInsuredDueToAccident;
897
- this.establishingGroupDisability = establishingGroupDisability;
898
- this.temporaryDisability = temporaryDisability;
899
- this.bodyInjury = bodyInjury;
900
- this.criticalIllnessOfTheInsured = criticalIllnessOfTheInsured;
901
- this.paymentPeriod = paymentPeriod;
902
- this.amountOfInsurancePremium = amountOfInsurancePremium;
903
- this.lifeMultiply = lifeMultiply;
904
- this.lifeAdditive = lifeAdditive;
905
- this.lifeMultiplyClient = lifeMultiplyClient;
906
- this.lifeAdditiveClient = lifeAdditiveClient;
907
- this.adbMultiply = adbMultiply;
908
- this.adbAdditive = adbAdditive;
909
- this.disabilityMultiply = disabilityMultiply;
910
- this.disabilityAdditive = disabilityAdditive;
911
- this.riskGroup = riskGroup;
912
- this.riskGroup2 = riskGroup2;
913
- this.additionalConditionAnnuityPayments = additionalConditionAnnuityPayments;
914
- this.guaranteedPeriod = guaranteedPeriod;
915
- this.typeAnnuityInsurance = typeAnnuityInsurance;
916
- this.termAnnuityPayments = termAnnuityPayments;
917
- this.periodAnnuityPayment = periodAnnuityPayment;
918
- this.amountAnnuityPayments = amountAnnuityPayments;
919
- this.isRecalculated = isRecalculated;
920
- this.totalAmount5 = totalAmount5;
921
- this.totalAmount7 = totalAmount7;
922
- this.statePremium5 = statePremium5;
923
- this.statePremium7 = statePremium7;
924
- this.calculatorForm = calculatorForm;
925
- this.agentCommission = agentCommission;
926
- this.fixInsSum = fixInsSum;
927
- this.amountRefunded = amountRefunded;
928
- this.amountPaid = amountPaid;
929
- this.calcDate = calcDate;
930
- this.contractEndDate = contractEndDate;
931
- this.currency = currency;
932
- }
933
-
934
- getSingleTripDays() {
935
- if (this.calculatorForm.startDate && this.calculatorForm.endDate) {
936
- const date1 = formatDate(this.calculatorForm.startDate);
937
- const date2 = formatDate(this.calculatorForm.endDate);
938
- if (date1 && date2) {
939
- const days = Math.ceil((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)) + 1;
940
- if (days > 0) {
941
- return days;
942
- }
943
- }
944
- }
945
- return null;
946
- }
947
- }
948
-
949
- export class MemberSettings {
950
- has?: boolean;
951
- isMultiple?: boolean;
952
- required?: boolean;
953
- limit?: number;
954
-
955
- constructor(options?: { has?: boolean; isMultiple?: boolean; required?: boolean; limit?: number }) {
956
- if (options) {
957
- this.has = options.has;
958
- this.isMultiple = options.isMultiple;
959
- this.limit = options.limit;
960
- if (this.has === true) {
961
- this.required = options.required;
962
- } else {
963
- this.required = false;
964
- }
965
- }
966
- }
967
- }
968
-
969
- export class DataStoreClass {
970
- projectConfig: Types.Utils.ProjectConfig | null;
971
- // IMP Контроллер фич
972
- controls: {
973
- // Cтавит значения по дефолту полям
974
- setDefaults: {
975
- sectorCode: boolean;
976
- percentage: boolean;
977
- signOfResidency: boolean;
978
- countryOfTaxResidency: boolean;
979
- countryOfCitizenship: boolean;
980
- };
981
- // Проверка на роль при авторизации
982
- onAuth: boolean;
983
- // Согласие на главной странице
984
- hasAgreement: boolean;
985
- // Наличие анкеты
986
- hasAnketa: boolean;
987
- // Обязательность доп анкеты
988
- isSecondAnketaRequired: boolean;
989
- // Подтягивание с ГБДФЛ
990
- hasGBDFL: boolean;
991
- // Подтягивание с ГКБ
992
- hasGKB: boolean;
993
- // Подтягивание с ИНСИС
994
- hasInsis: boolean;
995
- // Калькулятор без ввода данных
996
- hasCalculator: boolean;
997
- // Блок прикрепления к менеджеру
998
- hasAttachment: boolean;
999
- // Решение АС
1000
- hasAffiliation: boolean;
1001
- // Выбор метода подписания
1002
- hasChooseSign: boolean;
1003
- // Выбор метода оплаты
1004
- hasChoosePay: boolean;
1005
- // Блок источник
1006
- hasSource: boolean;
1007
- };
1008
- members: {
1009
- clientApp: MemberSettings;
1010
- insuredApp: MemberSettings;
1011
- beneficiaryApp: MemberSettings;
1012
- beneficialOwnerApp: MemberSettings;
1013
- spokesmanApp: MemberSettings;
1014
- };
1015
- iframeLoading: boolean;
1016
- hasLayoutMargins: boolean;
1017
- readonly product: Types.Projects | null;
1018
- readonly parentProduct: 'efo' | 'auletti';
1019
- showNav: boolean;
1020
- showDisabledMessage: boolean;
1021
- menuItems: MenuItem[];
1022
- menu: {
1023
- title: string;
1024
- hasBack: boolean;
1025
- loading: boolean;
1026
- backIcon: string;
1027
- moreIcon: string;
1028
- hasInfo: boolean;
1029
- infoIcon: string;
1030
- infoItems: MenuItem[];
1031
- onBack: any;
1032
- onLink: any;
1033
- selectedItem: MenuItem;
1034
- };
1035
- settings: {
1036
- open: boolean;
1037
- overlay: boolean;
1038
- items: MenuItem[];
1039
- };
1040
- buttons: MenuItem[];
1041
- isButtonsLoading: boolean;
1042
- panelAction: keyof typeof constants.actions | null;
1043
- panel: {
1044
- open: boolean;
1045
- overlay: boolean;
1046
- title: string;
1047
- clear: () => void;
1048
- };
1049
- rightPanel: {
1050
- open: boolean;
1051
- overlay: boolean;
1052
- title: string;
1053
- clear: () => void;
1054
- };
1055
- historyPageIndex: number;
1056
- historyPageSize: number;
1057
- historyTotalItems: number;
1058
- isColumnAsc = { ...InitialColumns() };
1059
- idleKey: number;
1060
- processList: Types.Item[] | null;
1061
- countries: Value[];
1062
- citizenshipCountries: Value[];
1063
- taxCountries: Value[];
1064
- addTaxCountries: Value[];
1065
- states: Value[];
1066
- regions: Value[];
1067
- cities: Value[];
1068
- localityTypes: Value[];
1069
- dicFileTypeList: Value[];
1070
- documentTypes: Value[];
1071
- documentIssuers: Value[];
1072
- familyStatuses: Value[];
1073
- disabilityGroups: Value[];
1074
- relations: Value[];
1075
- banks: Value[];
1076
- transferContractCompanies: Value[];
1077
- insurancePay: Value[];
1078
- questionRefs: Value[];
1079
- residents: Value[];
1080
- ipdl: Value[];
1081
- economySectorCode: Value[];
1082
- economicActivityType: Value[];
1083
- gender: Value[];
1084
- authorityBasis: Value[];
1085
- fontSize: number;
1086
- isFontChangerOpen: boolean = false;
1087
- isLoading: boolean = false;
1088
- accessToken: string | null = null;
1089
- refreshToken: string | null = null;
1090
- processIndexRate: Value[];
1091
- processGfot: Value[];
1092
- processPaymentPeriod: Value[];
1093
- dicAnnuityTypeList: Value[];
1094
- processAnnuityPaymentPeriod: Value[];
1095
- taskList: Types.TaskListItem[];
1096
- processHistory: Types.TaskHistory[];
1097
- contragentList: Types.ContragentType[];
1098
- contragentFormKey: string;
1099
- processCode: number | null;
1100
- groupCode: string;
1101
- userGroups: Types.Item[];
1102
- onMainPage: boolean;
1103
- SaleChanellPolicy: Value[];
1104
- RegionPolicy: Value[];
1105
- ManagerPolicy: Value[];
1106
- ExecutorGPH: Value[];
1107
- AgentData: Types.AgentData[];
1108
- riskGroup: Value[];
1109
- DicCoverTypePeriod: Value[];
1110
- Source: Value[];
1111
- currencies: {
1112
- eur: number | null;
1113
- usd: number | null;
1114
- };
1115
- filters: {
1116
- show: (item: MenuItem) => boolean;
1117
- disabled: (item: MenuItem) => boolean;
1118
- };
1119
- amountArray: Value[];
1120
- currency: string | number | null;
1121
- periodArray: Value[];
1122
- maxDaysAllArray: Value[];
1123
- maxDaysFiltered: Value[];
1124
- dicAllCountries: CountryValue[];
1125
- dicCountries: CountryValue[];
1126
- types: Value[];
1127
- workTypes: Value[];
1128
- sportsTypes: Value[];
1129
- purposes: Value[];
1130
- programType: Value[];
1131
- constructor() {
1132
- this.projectConfig = null;
1133
- this.filters = {
1134
- show: (item: MenuItem) => {
1135
- if (typeof item.show === 'boolean') {
1136
- return item.show;
1137
- }
1138
- return true;
1139
- },
1140
- disabled: (item: MenuItem) => {
1141
- if (typeof item.disabled === 'boolean') {
1142
- return item.disabled;
1143
- }
1144
- return false;
1145
- },
1146
- };
1147
- this.currencies = {
1148
- eur: null,
1149
- usd: null,
1150
- };
1151
- this.members = {
1152
- clientApp: new MemberSettings(),
1153
- insuredApp: new MemberSettings(),
1154
- beneficiaryApp: new MemberSettings(),
1155
- beneficialOwnerApp: new MemberSettings(),
1156
- spokesmanApp: new MemberSettings(),
1157
- };
1158
- this.controls = {
1159
- setDefaults: {
1160
- sectorCode: true,
1161
- percentage: true,
1162
- signOfResidency: false,
1163
- countryOfTaxResidency: false,
1164
- countryOfCitizenship: false,
1165
- },
1166
- onAuth: false,
1167
- hasAnketa: true,
1168
- isSecondAnketaRequired: true,
1169
- hasAgreement: true,
1170
- hasGBDFL: true,
1171
- hasGKB: false,
1172
- hasInsis: false,
1173
- hasCalculator: false,
1174
- hasAttachment: true,
1175
- hasAffiliation: true,
1176
- hasChooseSign: false,
1177
- hasChoosePay: false,
1178
- hasSource: false,
1179
- };
1180
- this.iframeLoading = false;
1181
- this.hasLayoutMargins = true;
1182
- this.processIndexRate = [];
1183
- this.processGfot = [];
1184
- this.processPaymentPeriod = [];
1185
- this.programType = [];
1186
- this.dicAnnuityTypeList = [];
1187
- this.processAnnuityPaymentPeriod = [];
1188
- this.questionRefs = [];
1189
- this.SaleChanellPolicy = [];
1190
- this.RegionPolicy = [];
1191
- this.ManagerPolicy = [];
1192
- this.ExecutorGPH = [];
1193
- this.AgentData = [];
1194
- this.DicCoverTypePeriod = [];
1195
- this.Source = [];
1196
- this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Types.Projects) : null;
1197
- this.parentProduct = import.meta.env.VITE_PARENT_PRODUCT ? import.meta.env.VITE_PARENT_PRODUCT : 'efo';
1198
- this.showNav = true;
1199
- this.showDisabledMessage = false;
1200
- this.menuItems = [];
1201
- this.menu = {
1202
- title: '',
1203
- hasBack: false,
1204
- loading: false,
1205
- backIcon: 'mdi-arrow-left',
1206
- moreIcon: 'mdi-dots-vertical',
1207
- hasInfo: false,
1208
- infoIcon: 'mdi-information-outline',
1209
- infoItems: [],
1210
- onBack: {},
1211
- onLink: {},
1212
- selectedItem: new MenuItem(),
1213
- };
1214
- this.settings = {
1215
- open: false,
1216
- overlay: false,
1217
- items: [],
1218
- };
1219
- this.buttons = [];
1220
- this.isButtonsLoading = false;
1221
- this.panel = {
1222
- open: false,
1223
- overlay: false,
1224
- title: '',
1225
- clear: () => {
1226
- const panelActions = document.getElementById('panel-actions');
1227
- if (panelActions) {
1228
- panelActions.innerHTML = '';
1229
- }
1230
- },
1231
- };
1232
- this.rightPanel = {
1233
- open: false,
1234
- overlay: false,
1235
- title: '',
1236
- clear: () => {
1237
- const panelActions = document.getElementById('right-panel-actions');
1238
- if (panelActions) {
1239
- panelActions.innerHTML = '';
1240
- }
1241
- },
1242
- };
1243
- this.panelAction = null;
1244
- this.historyPageIndex = 1;
1245
- this.historyPageSize = 10;
1246
- this.historyTotalItems = 0;
1247
- this.isColumnAsc = { ...InitialColumns() };
1248
- this.idleKey = 999;
1249
- this.processList = null;
1250
- this.countries = [];
1251
- this.citizenshipCountries = [];
1252
- this.taxCountries = [];
1253
- this.addTaxCountries = [];
1254
- this.states = [];
1255
- this.regions = [];
1256
- this.cities = [];
1257
- this.localityTypes = [];
1258
- this.dicFileTypeList = [];
1259
- this.documentTypes = [];
1260
- this.documentIssuers = [];
1261
- this.familyStatuses = [];
1262
- this.disabilityGroups = [];
1263
- this.relations = [];
1264
- this.banks = [];
1265
- this.transferContractCompanies = [];
1266
- this.insurancePay = [];
1267
- this.residents = [];
1268
- this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
1269
- this.economySectorCode = [];
1270
- this.economicActivityType = [];
1271
- this.gender = [new Value(0, null), new Value(1, 'Мужской'), new Value(2, 'Женский')];
1272
- this.authorityBasis = [];
1273
- this.fontSize = 14;
1274
- this.isFontChangerOpen = false;
1275
- this.isLoading = false;
1276
- this.accessToken = null;
1277
- this.refreshToken = null;
1278
- this.taskList = [];
1279
- this.processHistory = [];
1280
- this.contragentList = [];
1281
- this.contragentFormKey = 'contragentForm';
1282
- this.processCode = null;
1283
- this.groupCode = 'Work';
1284
- this.userGroups = [];
1285
- this.onMainPage = true;
1286
- this.riskGroup = [
1287
- {
1288
- id: '1',
1289
- nameKz: '',
1290
- nameRu: '1',
1291
- code: '',
1292
- ids: '',
1293
- },
1294
- {
1295
- id: '2',
1296
- nameKz: '',
1297
- nameRu: '2',
1298
- code: '',
1299
- ids: '',
1300
- },
1301
- {
1302
- id: '3',
1303
- nameKz: '',
1304
- nameRu: '3',
1305
- code: '',
1306
- ids: '',
1307
- },
1308
- {
1309
- id: '4',
1310
- nameKz: '',
1311
- nameRu: '4',
1312
- code: '',
1313
- ids: '',
1314
- },
1315
- {
1316
- id: '5',
1317
- nameKz: '',
1318
- nameRu: '5',
1319
- code: '',
1320
- ids: '',
1321
- },
1322
- ];
1323
- this.amountArray = [];
1324
- this.currency = null;
1325
- this.maxDaysAllArray = [];
1326
- this.periodArray = [];
1327
- this.maxDaysFiltered = [];
1328
- this.dicCountries = [];
1329
- this.dicAllCountries = [];
1330
- this.types = [];
1331
- this.purposes = [];
1332
- this.workTypes = [];
1333
- this.sportsTypes = [];
1334
- }
1335
- }
1336
-
1337
- export class FormStoreClass {
1338
- documentName: string | null;
1339
- regNumber: string | null;
1340
- policyNumber: string | null;
1341
- contractDate: string | null;
1342
- needToScanSignedContract: boolean;
1343
- isUploadedSignedContract: boolean;
1344
- signedContractFormData: any;
1345
- lfb: {
1346
- clients: Types.ClientV2[];
1347
- policyholder: PolicyholderClass;
1348
- hasAccidentIncidents: boolean;
1349
- accidentIncidents: Types.AccidentIncidents[];
1350
- policyholderActivities: PolicyholderActivity[];
1351
- beneficialOwners: BeneficialOwner[];
1352
- beneficialOwnersIndex: number;
1353
- isPolicyholderBeneficialOwner: boolean;
1354
- clientId: string | null;
1355
- insuredFile: any;
1356
- isPanelInside: boolean;
1357
- typeChange: string;
1358
- add: boolean;
1359
- };
1360
- additionalInsuranceTerms: Types.AddCover[];
1361
- additionalInsuranceTermsWithout: Types.AddCover[];
1362
- signUrls: Types.SignUrlType[];
1363
- epayLink: string | null;
1364
- invoiceData: Types.EpayResponse | null;
1365
- affilationResolution: {
1366
- id: string | number | null;
1367
- processInstanceId: string | number | null;
1368
- number: string | number | null;
1369
- date: string | null;
1370
- };
1371
- finCenterData: {
1372
- processInstanceId: string | number | null;
1373
- regNumber: string | number | null;
1374
- date: string | null;
1375
- };
1376
- signedDocumentList: IDocument[];
1377
- signatories: any[];
1378
- surveyByHealthBase: Types.AnketaFirst | null;
1379
- surveyByHealthBasePolicyholder: Types.AnketaFirst | null;
1380
- surveyByCriticalBase: Types.AnketaFirst | null;
1381
- surveyByCriticalBasePolicyholder: Types.AnketaFirst | null;
1382
- definedAnswersId: {
1383
- surveyByHealthBase: any;
1384
- surveyByCriticalBase: any;
1385
- surveyByHealthBasePolicyholder: any;
1386
- surveyByCriticalBasePolicyholder: any;
1387
- };
1388
- birthInfos: Types.Api.GKB.BirthInfo[];
1389
- SaleChanellPolicy: Value;
1390
- AgentData: Types.AgentData;
1391
- RegionPolicy: Value;
1392
- ManagerPolicy: Value;
1393
- ExecutorGPH: Value;
1394
- Source: Value;
1395
- isDisabled: {
1396
- policyholderForm: boolean;
1397
- beneficiaryForm: boolean;
1398
- beneficialOwnerForm: boolean;
1399
- insuredForm: boolean;
1400
- slaveInsuredForm: boolean;
1401
- policyholdersRepresentativeForm: boolean;
1402
- productConditionsForm: boolean;
1403
- calculatorForm: boolean;
1404
- recalculationForm: boolean;
1405
- surveyByHealthBase: boolean;
1406
- surveyByCriticalBase: boolean;
1407
- surveyByHealthBasePolicyholder: boolean;
1408
- surveyByCriticalBasePolicyholder: boolean;
1409
- insuranceDocument: boolean;
1410
- policyholderActivitiesForm: boolean;
1411
- accidentStatisticsForm: boolean;
1412
- };
1413
- isPolicyholderInsured: boolean = false;
1414
- isPolicyholderBeneficiary: boolean = false;
1415
- isActOwnBehalf: boolean = true;
1416
- hasRepresentative: boolean = false;
1417
- isPolicyholderIPDL: boolean = false;
1418
- applicationData: {
1419
- processInstanceId: number | string;
1420
- regNumber?: string;
1421
- statusCode?: keyof typeof Statuses;
1422
- clientApp?: any;
1423
- processCode?: number;
1424
- insuredApp?: any;
1425
- pensionApp?: any;
1426
- isEnpfSum?: boolean;
1427
- beneficiaryApp?: any;
1428
- beneficialOwnerApp?: any;
1429
- spokesmanApp?: any;
1430
- isTask?: boolean | null;
1431
- createDate?: string | null;
1432
- policyAppDto?: Types.PolicyAppDto;
1433
- parentPolicyDto?: Types.ParentPolicyDto | null;
1434
- insisWorkDataApp?: Types.InsisWorkDataApp;
1435
- addCoverDto?: Types.AddCover[];
1436
- slave?: any;
1437
- };
1438
- policyholderForm: Member;
1439
- policyholderFormKey: StoreMembers.policyholderForm;
1440
- policyholdersRepresentativeForm: Member;
1441
- policyholdersRepresentativeFormKey: StoreMembers.policyholdersRepresentativeForm;
1442
- beneficiaryForm: Member[];
1443
- beneficiaryFormKey: StoreMembers.beneficiaryForm;
1444
- beneficiaryFormIndex: number;
1445
- beneficialOwnerForm: Member[];
1446
- beneficialOwnerFormIndex: number;
1447
- beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
1448
- insuredForm: Member[];
1449
- slaveInsuredForm: Member;
1450
- insuredFormKey: StoreMembers.insuredForm;
1451
- insuredFormIndex: number;
1452
- productConditionsForm: ProductConditions;
1453
- productConditionsFormKey: string;
1454
- pensionApp: any;
1455
- questionnaireByHealth: any;
1456
- questionnaireByCritical: any[];
1457
- canBeClaimed: boolean | null;
1458
- applicationTaskId: string | null;
1459
- requiredDocuments: RequiredDocument[];
1460
- isNeedToRecalculate: boolean;
1461
- constructor() {
1462
- this.regNumber = null;
1463
- this.policyNumber = null;
1464
- this.contractDate = null;
1465
- this.documentName = null;
1466
- this.isUploadedSignedContract = false;
1467
- this.needToScanSignedContract = false;
1468
- this.signedContractFormData = null;
1469
- this.lfb = {
1470
- clients: [],
1471
- policyholder: new PolicyholderClass(),
1472
- hasAccidentIncidents: true,
1473
- policyholderActivities: [new PolicyholderActivity()],
1474
- beneficialOwners: [new BeneficialOwner()],
1475
- beneficialOwnersIndex: 0,
1476
- isPolicyholderBeneficialOwner: false,
1477
- accidentIncidents: [],
1478
- clientId: null,
1479
- insuredFile: null,
1480
- isPanelInside: false,
1481
- typeChange: 'calculation',
1482
- add: false,
1483
- };
1484
- this.additionalInsuranceTerms = [];
1485
- this.additionalInsuranceTermsWithout = [];
1486
- this.signUrls = [];
1487
- this.epayLink = null;
1488
- this.invoiceData = null;
1489
- this.affilationResolution = {
1490
- id: null,
1491
- processInstanceId: null,
1492
- number: null,
1493
- date: null,
1494
- };
1495
- this.finCenterData = {
1496
- processInstanceId: null,
1497
- regNumber: null,
1498
- date: null,
1499
- };
1500
- this.signedDocumentList = [];
1501
- this.signatories = [];
1502
- this.surveyByHealthBase = null;
1503
- this.surveyByHealthBasePolicyholder = null;
1504
- this.surveyByCriticalBase = null;
1505
- this.surveyByCriticalBasePolicyholder = null;
1506
- this.definedAnswersId = {
1507
- surveyByHealthBase: {},
1508
- surveyByCriticalBase: {},
1509
- surveyByHealthBasePolicyholder: {},
1510
- surveyByCriticalBasePolicyholder: {},
1511
- };
1512
- this.birthInfos = [];
1513
- this.SaleChanellPolicy = new Value();
1514
- this.AgentData = {
1515
- agentId: null,
1516
- manId: 0,
1517
- fullName: '',
1518
- officeId: null,
1519
- officeCode: null,
1520
- saleChannel: '',
1521
- managerName: '',
1522
- };
1523
- this.RegionPolicy = new Value();
1524
- this.ManagerPolicy = new Value();
1525
- this.ExecutorGPH = new Value();
1526
- this.Source = new Value();
1527
- this.isDisabled = {
1528
- policyholderForm: true,
1529
- beneficiaryForm: true,
1530
- beneficialOwnerForm: true,
1531
- insuredForm: true,
1532
- slaveInsuredForm: true,
1533
- policyholdersRepresentativeForm: true,
1534
- productConditionsForm: true,
1535
- calculatorForm: true,
1536
- recalculationForm: true,
1537
- surveyByHealthBase: true,
1538
- surveyByCriticalBase: true,
1539
- surveyByHealthBasePolicyholder: true,
1540
- surveyByCriticalBasePolicyholder: true,
1541
- insuranceDocument: true,
1542
- policyholderActivitiesForm: true,
1543
- accidentStatisticsForm: true,
1544
- };
1545
- this.isPolicyholderInsured = false;
1546
- this.isPolicyholderBeneficiary = false;
1547
- this.isActOwnBehalf = true;
1548
- this.hasRepresentative = false;
1549
- this.applicationData = { processInstanceId: 0 };
1550
- this.policyholderForm = new Member();
1551
- this.policyholderFormKey = StoreMembers.policyholderForm;
1552
- this.policyholdersRepresentativeForm = new Member();
1553
- this.policyholdersRepresentativeFormKey = StoreMembers.policyholdersRepresentativeForm;
1554
- this.beneficiaryForm = [new Member()];
1555
- this.beneficiaryFormKey = StoreMembers.beneficiaryForm;
1556
- this.beneficiaryFormIndex = 0;
1557
- this.beneficialOwnerForm = [new Member()];
1558
- this.beneficialOwnerFormIndex = 0;
1559
- this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
1560
- this.insuredForm = [new Member()];
1561
- this.slaveInsuredForm = new Member();
1562
- this.insuredFormKey = StoreMembers.insuredForm;
1563
- this.insuredFormIndex = 0;
1564
- this.productConditionsForm = new ProductConditions();
1565
- this.productConditionsFormKey = 'productConditionsForm';
1566
- this.questionnaireByHealth = {};
1567
- this.questionnaireByCritical = [];
1568
- this.canBeClaimed = null;
1569
- this.applicationTaskId = null;
1570
- this.requiredDocuments = [];
1571
- this.isNeedToRecalculate = false;
1572
- }
1573
- }
1574
-
1575
- export class Address {
1576
- country: Value;
1577
- region: Value;
1578
- state: Value;
1579
- regionType: Value;
1580
- city: Value;
1581
- square: string | null;
1582
- microdistrict: string | null;
1583
- street: string | null;
1584
- houseNumber: string | null;
1585
- kato: string | null;
1586
- longName: string | null;
1587
- longNameKz: string | null;
1588
-
1589
- constructor() {
1590
- this.country = new Value();
1591
- this.region = new Value();
1592
- this.state = new Value();
1593
- this.regionType = new Value();
1594
- this.city = new Value();
1595
- this.square = null;
1596
- this.microdistrict = null;
1597
- this.street = null;
1598
- this.houseNumber = null;
1599
- this.kato = null;
1600
- this.longName = null;
1601
- this.longNameKz = null;
1602
- }
1603
- }
1604
-
1605
- export class PolicyholderActivity {
1606
- activityTypeName: string | null;
1607
- empoloyeeCount: string | null;
1608
-
1609
- constructor() {
1610
- this.activityTypeName = null;
1611
- this.empoloyeeCount = null;
1612
- }
1613
- }
1614
-
1615
- export class BaseGroupClass {
1616
- id: string | number;
1617
- longName: string;
1618
- iin: string;
1619
- phoneNumber: string;
1620
- age: string;
1621
- name: string;
1622
- nameKz: string;
1623
- longNameKz: string;
1624
- citizenship: Value;
1625
- email: string;
1626
- resident: Value;
1627
- taxResidentCountry: Value;
1628
- addTaxResidency: Value;
1629
- economySectorCode: Value;
1630
- hasAttachedFile: boolean;
1631
- actualAddress: Address;
1632
- isActualAddressEqualLegalAddres: boolean;
1633
- legalAddress: Address;
1634
- identityDocument: {
1635
- documentType: Value;
1636
- documentNumber: string;
1637
- series: string;
1638
- issuedBy: Value;
1639
- issuedOn: string;
1640
- validUntil: string;
1641
- };
1642
- bankInfo: BankInfoClass;
1643
- kbe: string;
1644
-
1645
- constructor() {
1646
- this.id = 0;
1647
- this.longName = '';
1648
- this.iin = '';
1649
- this.phoneNumber = '';
1650
- this.age = '';
1651
- this.name = '';
1652
- this.nameKz = '';
1653
- this.longNameKz = '';
1654
- this.citizenship = new Value();
1655
- this.email = '';
1656
- this.resident = new Value();
1657
- this.taxResidentCountry = new Value();
1658
- this.addTaxResidency = new Value();
1659
- this.economySectorCode = new Value();
1660
- this.hasAttachedFile = false;
1661
- this.actualAddress = new Address();
1662
- this.isActualAddressEqualLegalAddres = true;
1663
- this.legalAddress = new Address();
1664
- this.identityDocument = {
1665
- documentType: new Value(),
1666
- documentNumber: '',
1667
- series: '',
1668
- issuedBy: new Value(),
1669
- issuedOn: '',
1670
- validUntil: '',
1671
- };
1672
- this.bankInfo = new BankInfoClass();
1673
- this.kbe = '';
1674
- }
1675
- }
1676
-
1677
- export class PhysGroupClass extends BaseGroupClass {
1678
- lastName: string;
1679
- firstName: string;
1680
- middleName: string;
1681
- birthDate: string;
1682
- gender: Value;
1683
- placeOfBirth: Value;
1684
- workDetails: { workplace: string; positionRu: string; positionKz: string; jobDuties: string };
1685
- hasContactPerson: boolean;
1686
- authorityDetails: {
1687
- basis: Value;
1688
- documentNumber: string | null;
1689
- date: string | null;
1690
- };
1691
-
1692
- constructor() {
1693
- super();
1694
- this.lastName = '';
1695
- this.firstName = '';
1696
- this.middleName = '';
1697
- this.birthDate = '';
1698
- this.gender = new Value();
1699
- this.placeOfBirth = new Value();
1700
- this.workDetails = { workplace: '', positionRu: '', positionKz: '', jobDuties: '' };
1701
- this.hasContactPerson = false;
1702
- this.authorityDetails = {
1703
- basis: new Value(),
1704
- documentNumber: null,
1705
- date: null,
1706
- };
1707
- }
1708
- }
1709
-
1710
- export class GroupMember extends PhysGroupClass {
1711
- isLeader: boolean;
1712
-
1713
- typeOfEconomicActivity: Value;
1714
- activityTypes: { activityTypeName: string; empoloyeeCount: number }[];
1715
- beneficalOwnerQuest: { order: number; text: string; answer: boolean | null }[];
1716
- authoritedPerson: PhysGroupClass;
1717
- insuredPolicyData: Types.InsuredPolicyType;
1718
-
1719
- constructor() {
1720
- super();
1721
- // Client
1722
- this.isLeader = false;
1723
- this.typeOfEconomicActivity = new Value();
1724
- this.activityTypes = [];
1725
- this.beneficalOwnerQuest = [
1726
- {
1727
- order: 0,
1728
- text: 'Отметка о наличии/отсутствии физического лица (лиц), которому прямо или косвенно принадлежат более 25 % долей участия в уставном капитале либо размещенных (за вычетом привилегированных и выкупленных обществом) акций юридического лица',
1729
- answer: null,
1730
- },
1731
- {
1732
- order: 1,
1733
- text: 'Отметка о наличии/отсутствии физического лица (лиц), осуществляющего контроль над юридическим лицом по иным основаниям',
1734
- answer: null,
1735
- },
1736
- {
1737
- order: 2,
1738
- text: 'Отметка о наличии/отсутствии физического лица (лиц) в интересах которого юридическим лицом устанавливаются деловые отношения (совершаются операции)',
1739
- answer: null,
1740
- },
1741
- ];
1742
- this.authoritedPerson = new PhysGroupClass();
1743
- // Insured
1744
- this.insuredPolicyData = {
1745
- insSum: 0,
1746
- insSumWithLoad: 0,
1747
- premium: 0,
1748
- premiumWithLoad: 0,
1749
- insuredRisk: {
1750
- lifeMultiply: 0,
1751
- lifeAdditive: 0,
1752
- disabilityMultiply: 0,
1753
- disabilityAdditive: 0,
1754
- traumaTableMultiple: 0,
1755
- accidentalLifeMultiply: 0,
1756
- accidentalLifeAdditive: 0,
1757
- criticalMultiply: 0,
1758
- criticalAdditive: 0,
1759
- },
1760
- insuredCoverData: [],
1761
- };
1762
- }
1763
- }
1764
-
1765
- export class BankInfoClass {
1766
- bankName: Value;
1767
- bin: string;
1768
- iik: string;
1769
- bik: string;
1770
- kbe: string;
1771
-
1772
- constructor() {
1773
- this.bankName = new Value();
1774
- this.bin = '';
1775
- this.iik = '';
1776
- this.bik = '';
1777
- this.kbe = '';
1778
- }
1779
- }
1780
-
1781
- export class PolicyholderClass {
1782
- isIpdl: boolean;
1783
- clientData: GroupMember;
1784
-
1785
- constructor() {
1786
- this.isIpdl = false;
1787
- this.clientData = new GroupMember();
1788
- }
1789
- }
1790
-
1791
- export class BeneficialOwner {
1792
- id: string;
1793
- isIpdl: boolean;
1794
- beneficialOwnerData: GroupMember;
1795
-
1796
- constructor() {
1797
- this.isIpdl = false;
1798
- this.beneficialOwnerData = new GroupMember();
1799
- this.id = '';
1800
- }
1801
- }
1802
-
1803
- export class TransferContract {
1804
- id: string | null;
1805
- transferContractIsOppv: boolean;
1806
- transferContractFirstPaymentDate: string;
1807
- transferContractAmount: number | string;
1808
- transferContractDate: string;
1809
- transferContractNumber: string;
1810
- transferContractRegNumber: string;
1811
- transferContract: boolean;
1812
- transferContractCompany: Value;
1813
- transferContractMonthCount: number | null;
1814
-
1815
- constructor() {
1816
- this.id = null;
1817
- this.transferContractIsOppv = false;
1818
- this.transferContractFirstPaymentDate = '';
1819
- this.transferContractAmount = 0;
1820
- this.transferContractDate = '';
1821
- this.transferContractNumber = '';
1822
- this.transferContract = false;
1823
- this.transferContractRegNumber = '';
1824
- this.transferContractCompany = new Value();
1825
- this.transferContractMonthCount = null;
1826
- }
1827
- }
1828
-
1829
- export class RequiredDocument extends Value {
1830
- iin: string = '';
1831
- }
1832
-
1833
- export class MenuItem extends MenuItemConfig {
1834
- constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
1835
- super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
1836
- }
1837
- }