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