hl-core 0.0.10-beta.4 → 0.0.10-beta.41

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.
Files changed (53) hide show
  1. package/README.md +0 -2
  2. package/api/base.api.ts +338 -191
  3. package/api/interceptors.ts +3 -5
  4. package/components/Complex/TextBlock.vue +2 -0
  5. package/components/Dialog/Dialog.vue +7 -1
  6. package/components/Dialog/FamilyDialog.vue +2 -0
  7. package/components/Form/DigitalDocument.vue +52 -0
  8. package/components/Form/DynamicForm.vue +1 -0
  9. package/components/Form/FormData.vue +1 -0
  10. package/components/Form/ManagerAttachment.vue +48 -10
  11. package/components/Form/ProductConditionsBlock.vue +12 -6
  12. package/components/Input/Datepicker.vue +5 -0
  13. package/components/Input/DynamicInput.vue +2 -0
  14. package/components/Input/FormInput.vue +7 -0
  15. package/components/Input/OtpInput.vue +25 -0
  16. package/components/Input/PanelInput.vue +1 -0
  17. package/components/Input/RoundedInput.vue +4 -0
  18. package/components/Input/RoundedSelect.vue +4 -0
  19. package/components/Input/SwitchInput.vue +2 -0
  20. package/components/Input/TextAreaField.vue +71 -0
  21. package/components/Input/TextInput.vue +2 -0
  22. package/components/Layout/Drawer.vue +2 -0
  23. package/components/Menu/MenuNav.vue +1 -1
  24. package/components/Pages/Anketa.vue +168 -169
  25. package/components/Pages/Auth.vue +2 -0
  26. package/components/Pages/ContragentForm.vue +2 -1
  27. package/components/Pages/Documents.vue +432 -59
  28. package/components/Pages/MemberForm.vue +334 -160
  29. package/components/Pages/ProductConditions.vue +838 -226
  30. package/components/Panel/PanelHandler.vue +280 -121
  31. package/components/Transitions/Animation.vue +2 -0
  32. package/components/Utilities/Chip.vue +3 -1
  33. package/components/Utilities/JsonViewer.vue +1 -2
  34. package/composables/classes.ts +143 -49
  35. package/composables/constants.ts +44 -0
  36. package/composables/fields.ts +6 -4
  37. package/composables/index.ts +298 -7
  38. package/composables/styles.ts +8 -24
  39. package/configs/pwa.ts +1 -7
  40. package/layouts/clear.vue +1 -1
  41. package/layouts/default.vue +1 -1
  42. package/layouts/full.vue +1 -1
  43. package/locales/ru.json +80 -19
  44. package/nuxt.config.ts +10 -13
  45. package/package.json +12 -12
  46. package/plugins/head.ts +2 -1
  47. package/store/data.store.ts +802 -531
  48. package/store/member.store.ts +18 -6
  49. package/store/rules.ts +22 -2
  50. package/types/enum.ts +33 -2
  51. package/types/env.d.ts +2 -2
  52. package/types/form.ts +71 -74
  53. package/types/index.ts +924 -873
@@ -6,6 +6,8 @@
6
6
  </template>
7
7
 
8
8
  <script setup lang="ts">
9
+ import type { Utils } from '../../types';
10
+
9
11
  defineProps({
10
12
  type: {
11
13
  type: String as PropType<Utils.VuetifyAnimations>,
@@ -1,10 +1,12 @@
1
1
  <template>
2
- <label v-if="chip && chip.title" class="transition-all leading-6 px-3 py-1 rounded-pill border-[1px] border-white mr-4 whitespace-nowrap" :class="[textSize, color]"
2
+ <label v-if="chip && chip.title" class="transition-all leading-6 px-3 rounded-pill border-[1px] border-white mr-4 whitespace-nowrap" :class="[textSize, color]"
3
3
  >{{ chip.title }}<v-tooltip v-if="chip.description" activator="parent" location="bottom" :max-width="maxWidth">{{ chip.description }}</v-tooltip></label
4
4
  >
5
5
  </template>
6
6
 
7
7
  <script lang="ts">
8
+ import type { ChipComponent } from '../../types';
9
+
8
10
  export default defineComponent({
9
11
  props: {
10
12
  chip: {
@@ -14,13 +14,12 @@
14
14
  <script lang="ts">
15
15
  import VueJsonPretty from 'vue-json-pretty';
16
16
  import 'vue-json-pretty/lib/styles.css';
17
- import { type JSONDataType } from 'vue-json-pretty/types/utils';
18
17
 
19
18
  export default defineComponent({
20
19
  components: { VueJsonPretty },
21
20
  props: {
22
21
  data: {
23
- type: Object as PropType<JSONDataType>,
22
+ type: Object as PropType<any>,
24
23
  required: false,
25
24
  },
26
25
  },
@@ -1,6 +1,7 @@
1
1
  import { Statuses, StoreMembers, MemberAppCodes } from '../types/enum';
2
2
  import { formatDate } from '.';
3
3
  import type { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router';
4
+ import type * as Types from '../types';
4
5
 
5
6
  type LinkType = Partial<RouteLocationNormalized> | Partial<RouteLocationNormalizedLoaded> | string | null | boolean;
6
7
 
@@ -17,7 +18,7 @@ class MenuItemConfig {
17
18
  disabled?: ComputedRef;
18
19
  color?: string;
19
20
  show?: ComputedRef;
20
- chip?: ChipComponent;
21
+ chip?: Types.ChipComponent;
21
22
 
22
23
  constructor(
23
24
  id: any = null,
@@ -32,7 +33,7 @@ class MenuItemConfig {
32
33
  disabled?: ComputedRef,
33
34
  color?: string,
34
35
  show?: ComputedRef,
35
- chip?: ChipComponent,
36
+ chip?: Types.ChipComponent,
36
37
  ) {
37
38
  this.id = id;
38
39
  this.title = title;
@@ -87,6 +88,7 @@ export class IDocument {
87
88
  iin?: string;
88
89
  fileTypeId?: string;
89
90
  fileTypeName?: string;
91
+ fileTypeNameRu?: string;
90
92
  fileId?: string;
91
93
  page?: number;
92
94
  fileName?: string;
@@ -95,6 +97,7 @@ export class IDocument {
95
97
  signed?: boolean | null;
96
98
  signId?: string | null;
97
99
  certificateDate?: string | null;
100
+ signedType?: number;
98
101
 
99
102
  constructor(
100
103
  id?: string,
@@ -102,6 +105,7 @@ export class IDocument {
102
105
  iin?: string,
103
106
  fileTypeId?: string,
104
107
  fileTypeName?: string,
108
+ fileTypeNameRu?: string,
105
109
  fileId?: string,
106
110
  page?: number,
107
111
  fileName?: string,
@@ -110,12 +114,14 @@ export class IDocument {
110
114
  signed?: boolean | null,
111
115
  signId?: string | null,
112
116
  certificateDate?: string | null,
117
+ signedType?: number,
113
118
  ) {
114
119
  this.id = id;
115
120
  this.processInstanceId = processInstanceId;
116
121
  this.iin = iin;
117
122
  this.fileTypeId = fileTypeId;
118
123
  this.fileTypeName = fileTypeName;
124
+ this.fileTypeNameRu = fileTypeNameRu;
119
125
  this.fileId = fileId;
120
126
  this.page = page;
121
127
  this.fileName = fileName;
@@ -124,14 +130,31 @@ export class IDocument {
124
130
  this.signed = signed;
125
131
  this.signId = signId;
126
132
  this.certificateDate = certificateDate;
133
+ this.signedType = signedType;
127
134
  }
128
135
  }
129
136
 
130
137
  export class DocumentItem extends IDocument {
131
138
  constructor(
132
- { id, processInstanceId, iin, fileTypeId, fileTypeName, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate }: IDocument = new IDocument(),
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(),
133
156
  ) {
134
- super(id, processInstanceId, iin, fileTypeId, fileTypeName, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate);
157
+ super(id, processInstanceId, iin, fileTypeId, fileTypeName, fileTypeNameRu, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate, signedType);
135
158
  }
136
159
  }
137
160
 
@@ -179,13 +202,25 @@ export class User {
179
202
  roles: string[];
180
203
  id: string | null;
181
204
  fullName: string | null;
205
+ code: string;
206
+ branchCode: string;
182
207
 
183
- constructor(login: string | null = null, password: string | null = null, roles: string[] = [], id: string | null = null, fullName: string | null = null) {
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
+ ) {
184
217
  this.login = login;
185
218
  this.password = password;
186
219
  this.roles = roles;
187
220
  this.id = id;
188
221
  this.fullName = fullName;
222
+ this.code = code;
223
+ this.branchCode = branchCode;
189
224
  }
190
225
 
191
226
  resetUser() {
@@ -194,6 +229,8 @@ export class User {
194
229
  this.roles = [];
195
230
  this.id = null;
196
231
  this.fullName = null;
232
+ this.code = '';
233
+ this.branchCode = '';
197
234
  }
198
235
  }
199
236
 
@@ -383,11 +420,11 @@ export class Contragent extends Person {
383
420
 
384
421
  export class Member extends Person {
385
422
  response?: {
386
- contragent?: ContragentType;
387
- questionnaires?: ContragentQuestionaries[];
388
- contacts?: ContragentContacts[];
389
- documents?: ContragentDocuments[];
390
- addresses?: ContragentAddress[];
423
+ contragent?: Types.ContragentType;
424
+ questionnaires?: Types.ContragentQuestionaries[];
425
+ contacts?: Types.ContragentContacts[];
426
+ documents?: Types.ContragentDocuments[];
427
+ addresses?: Types.ContragentAddress[];
391
428
  };
392
429
  verifyType: any;
393
430
  verifyDate: any;
@@ -427,7 +464,7 @@ export class Member extends Person {
427
464
  birthRegion: Value;
428
465
  documentType: Value;
429
466
  documentNumber: string | null;
430
- documentIssuers: Value;
467
+ documentIssuers: Types.Base.Document.IssuerOther;
431
468
  documentDate: string | null;
432
469
  documentExpire: string | null;
433
470
  signOfResidency: Value;
@@ -451,15 +488,16 @@ export class Member extends Person {
451
488
  _phonePattern: RegExp;
452
489
  _emailPattern: RegExp;
453
490
  gotFromInsis: boolean | null;
454
- gosPersonData: Api.GBD.Person | null;
491
+ gosPersonData: Types.Api.GBD.Person | null;
455
492
  parsedDocument: any;
456
493
  hasAgreement: boolean | null;
457
494
  otpTokenId: string | null;
458
- otpCode: string | null;
459
- documentsList: ContragentDocuments[];
495
+ otpCode: string;
496
+ documentsList: Types.ContragentDocuments[];
460
497
  isInsuredUnderage?: boolean = false;
461
498
  bankInfo: BankInfoClass;
462
499
  transferContractCompany: Value;
500
+ digitalDocument: IDocument | null;
463
501
  identityDocument: {
464
502
  documentType: Value;
465
503
  documentNumber: string | null;
@@ -586,7 +624,7 @@ export class Member extends Person {
586
624
  this.homePhone = homePhone;
587
625
  this.email = email;
588
626
  this.otpTokenId = null;
589
- this.otpCode = null;
627
+ this.otpCode = '';
590
628
  this.address = address;
591
629
  this.familyStatus = familyStatus;
592
630
  this.isTerror = isTerror;
@@ -604,6 +642,7 @@ export class Member extends Person {
604
642
  this.hasAgreement = null;
605
643
  this.bankInfo = new BankInfoClass();
606
644
  this.transferContractCompany = new Value();
645
+ this.digitalDocument = null;
607
646
  this.identityDocument = {
608
647
  documentType: new Value(),
609
648
  documentNumber: null,
@@ -771,7 +810,6 @@ export class ProductConditions {
771
810
  adbAdditive: string | number | null;
772
811
  disabilityMultiply: string | number | null;
773
812
  disabilityAdditive: string | number | null;
774
- processTariff: Value;
775
813
  riskGroup: Value;
776
814
  riskGroup2: Value;
777
815
  additionalConditionAnnuityPayments: boolean;
@@ -788,8 +826,11 @@ export class ProductConditions {
788
826
  calculatorForm: CalculatorForm;
789
827
  agentCommission: number | null;
790
828
  fixInsSum: number | string | null;
829
+ amountRefunded: number | string | null;
830
+ amountPaid: number | string | null;
791
831
  calcDate: string | null;
792
832
  contractEndDate: string | null;
833
+ currency: Value;
793
834
 
794
835
  constructor(
795
836
  insuranceCase = null,
@@ -819,7 +860,6 @@ export class ProductConditions {
819
860
  adbAdditive = null,
820
861
  disabilityMultiply = null,
821
862
  disabilityAdditive = null,
822
- processTariff = new Value(),
823
863
  riskGroup = new Value(),
824
864
  riskGroup2 = new Value(),
825
865
  additionalConditionAnnuityPayments = false,
@@ -836,8 +876,11 @@ export class ProductConditions {
836
876
  calculatorForm = new CalculatorForm(),
837
877
  agentCommission = null,
838
878
  fixInsSum = null,
879
+ amountRefunded = null,
880
+ amountPaid = null,
839
881
  calcDate = null,
840
882
  contractEndDate = null,
883
+ currency = new Value(),
841
884
  ) {
842
885
  this.requestedSumInsuredInDollar = null;
843
886
  this.insurancePremiumPerMonthInDollar = null;
@@ -871,7 +914,6 @@ export class ProductConditions {
871
914
  this.adbAdditive = adbAdditive;
872
915
  this.disabilityMultiply = disabilityMultiply;
873
916
  this.disabilityAdditive = disabilityAdditive;
874
- this.processTariff = processTariff;
875
917
  this.riskGroup = riskGroup;
876
918
  this.riskGroup2 = riskGroup2;
877
919
  this.additionalConditionAnnuityPayments = additionalConditionAnnuityPayments;
@@ -888,8 +930,11 @@ export class ProductConditions {
888
930
  this.calculatorForm = calculatorForm;
889
931
  this.agentCommission = agentCommission;
890
932
  this.fixInsSum = fixInsSum;
933
+ this.amountRefunded = amountRefunded;
934
+ this.amountPaid = amountPaid;
891
935
  this.calcDate = calcDate;
892
936
  this.contractEndDate = contractEndDate;
937
+ this.currency = currency;
893
938
  }
894
939
 
895
940
  getSingleTripDays() {
@@ -928,7 +973,7 @@ export class MemberSettings {
928
973
  }
929
974
 
930
975
  export class DataStoreClass {
931
- projectConfig: Utils.ProjectConfig | null;
976
+ projectConfig: Types.Utils.ProjectConfig | null;
932
977
  // IMP Контроллер фич
933
978
  controls: {
934
979
  // Cтавит значения по дефолту полям
@@ -973,7 +1018,7 @@ export class DataStoreClass {
973
1018
  };
974
1019
  iframeLoading: boolean;
975
1020
  hasLayoutMargins: boolean;
976
- readonly product: Projects | null;
1021
+ readonly product: Types.Projects | null;
977
1022
  readonly parentProduct: 'efo' | 'auletti';
978
1023
  showNav: boolean;
979
1024
  showDisabledMessage: boolean;
@@ -1016,7 +1061,7 @@ export class DataStoreClass {
1016
1061
  historyTotalItems: number;
1017
1062
  isColumnAsc = { ...InitialColumns() };
1018
1063
  idleKey: number;
1019
- processList: Item[] | null;
1064
+ processList: Types.Item[] | null;
1020
1065
  countries: Value[];
1021
1066
  citizenshipCountries: Value[];
1022
1067
  taxCountries: Value[];
@@ -1033,7 +1078,6 @@ export class DataStoreClass {
1033
1078
  relations: Value[];
1034
1079
  banks: Value[];
1035
1080
  transferContractCompanies: Value[];
1036
- processTariff: Value[];
1037
1081
  insurancePay: Value[];
1038
1082
  questionRefs: Value[];
1039
1083
  residents: Value[];
@@ -1045,7 +1089,6 @@ export class DataStoreClass {
1045
1089
  fontSize: number;
1046
1090
  isFontChangerOpen: boolean = false;
1047
1091
  isLoading: boolean = false;
1048
- user: User;
1049
1092
  accessToken: string | null = null;
1050
1093
  refreshToken: string | null = null;
1051
1094
  processIndexRate: Value[];
@@ -1053,18 +1096,19 @@ export class DataStoreClass {
1053
1096
  processPaymentPeriod: Value[];
1054
1097
  dicAnnuityTypeList: Value[];
1055
1098
  processAnnuityPaymentPeriod: Value[];
1056
- taskList: TaskListItem[];
1057
- processHistory: TaskHistory[];
1058
- contragentList: ContragentType[];
1099
+ taskList: Types.TaskListItem[];
1100
+ processHistory: Types.TaskHistory[];
1101
+ contragentList: Types.ContragentType[];
1059
1102
  contragentFormKey: string;
1060
1103
  processCode: number | null;
1061
1104
  groupCode: string;
1062
- userGroups: Item[];
1105
+ userGroups: Types.Item[];
1063
1106
  onMainPage: boolean;
1064
1107
  SaleChanellPolicy: Value[];
1065
1108
  RegionPolicy: Value[];
1066
1109
  ManagerPolicy: Value[];
1067
- AgentData: AgentData[];
1110
+ ExecutorGPH: Value[];
1111
+ AgentData: Types.AgentData[];
1068
1112
  riskGroup: Value[];
1069
1113
  DicCoverTypePeriod: Value[];
1070
1114
  currencies: {
@@ -1086,7 +1130,7 @@ export class DataStoreClass {
1086
1130
  workTypes: Value[];
1087
1131
  sportsTypes: Value[];
1088
1132
  purposes: Value[];
1089
-
1133
+ programType: Value[];
1090
1134
  constructor() {
1091
1135
  this.projectConfig = null;
1092
1136
  this.filters = {
@@ -1140,15 +1184,17 @@ export class DataStoreClass {
1140
1184
  this.processIndexRate = [];
1141
1185
  this.processGfot = [];
1142
1186
  this.processPaymentPeriod = [];
1187
+ this.programType = [];
1143
1188
  this.dicAnnuityTypeList = [];
1144
1189
  this.processAnnuityPaymentPeriod = [];
1145
1190
  this.questionRefs = [];
1146
1191
  this.SaleChanellPolicy = [];
1147
1192
  this.RegionPolicy = [];
1148
1193
  this.ManagerPolicy = [];
1194
+ this.ExecutorGPH = [];
1149
1195
  this.AgentData = [];
1150
1196
  this.DicCoverTypePeriod = [];
1151
- this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
1197
+ this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Types.Projects) : null;
1152
1198
  this.parentProduct = import.meta.env.VITE_PARENT_PRODUCT ? import.meta.env.VITE_PARENT_PRODUCT : 'efo';
1153
1199
  this.showNav = true;
1154
1200
  this.showDisabledMessage = false;
@@ -1216,7 +1262,6 @@ export class DataStoreClass {
1216
1262
  this.familyStatuses = [];
1217
1263
  this.disabilityGroups = [];
1218
1264
  this.relations = [];
1219
- this.processTariff = [];
1220
1265
  this.banks = [];
1221
1266
  this.transferContractCompanies = [];
1222
1267
  this.insurancePay = [];
@@ -1229,7 +1274,6 @@ export class DataStoreClass {
1229
1274
  this.fontSize = 14;
1230
1275
  this.isFontChangerOpen = false;
1231
1276
  this.isLoading = false;
1232
- this.user = new User();
1233
1277
  this.accessToken = null;
1234
1278
  this.refreshToken = null;
1235
1279
  this.taskList = [];
@@ -1300,10 +1344,10 @@ export class FormStoreClass {
1300
1344
  isUploadedSignedContract: boolean;
1301
1345
  signedContractFormData: any;
1302
1346
  lfb: {
1303
- clients: ClientV2[];
1347
+ clients: Types.ClientV2[];
1304
1348
  policyholder: PolicyholderClass;
1305
1349
  hasAccidentIncidents: boolean;
1306
- accidentIncidents: AccidentIncidents[];
1350
+ accidentIncidents: Types.AccidentIncidents[];
1307
1351
  policyholderActivities: PolicyholderActivity[];
1308
1352
  beneficialOwners: BeneficialOwner[];
1309
1353
  beneficialOwnersIndex: number;
@@ -1311,12 +1355,14 @@ export class FormStoreClass {
1311
1355
  clientId: string | null;
1312
1356
  insuredFile: any;
1313
1357
  isPanelInside: boolean;
1358
+ typeChange: string;
1359
+ add: boolean;
1314
1360
  };
1315
- additionalInsuranceTerms: AddCover[];
1316
- additionalInsuranceTermsWithout: AddCover[];
1317
- signUrls: SignUrlType[];
1361
+ additionalInsuranceTerms: Types.AddCover[];
1362
+ additionalInsuranceTermsWithout: Types.AddCover[];
1363
+ signUrls: Types.SignUrlType[];
1318
1364
  epayLink: string | null;
1319
- invoiceData: EpayResponse | null;
1365
+ invoiceData: Types.EpayResponse | null;
1320
1366
  affilationResolution: {
1321
1367
  id: string | number | null;
1322
1368
  processInstanceId: string | number | null;
@@ -1329,26 +1375,29 @@ export class FormStoreClass {
1329
1375
  date: string | null;
1330
1376
  };
1331
1377
  signedDocumentList: IDocument[];
1332
- surveyByHealthBase: AnketaFirst | null;
1333
- surveyByHealthBasePolicyholder: AnketaFirst | null;
1334
- surveyByCriticalBase: AnketaFirst | null;
1335
- surveyByCriticalBasePolicyholder: AnketaFirst | null;
1378
+ signatories: any[];
1379
+ surveyByHealthBase: Types.AnketaFirst | null;
1380
+ surveyByHealthBasePolicyholder: Types.AnketaFirst | null;
1381
+ surveyByCriticalBase: Types.AnketaFirst | null;
1382
+ surveyByCriticalBasePolicyholder: Types.AnketaFirst | null;
1336
1383
  definedAnswersId: {
1337
1384
  surveyByHealthBase: any;
1338
1385
  surveyByCriticalBase: any;
1339
1386
  surveyByHealthBasePolicyholder: any;
1340
1387
  surveyByCriticalBasePolicyholder: any;
1341
1388
  };
1342
- birthInfos: Api.GKB.BirthInfo[];
1389
+ birthInfos: Types.Api.GKB.BirthInfo[];
1343
1390
  SaleChanellPolicy: Value;
1344
- AgentData: AgentData;
1391
+ AgentData: Types.AgentData;
1345
1392
  RegionPolicy: Value;
1346
1393
  ManagerPolicy: Value;
1394
+ ExecutorGPH: Value;
1347
1395
  isDisabled: {
1348
1396
  policyholderForm: boolean;
1349
1397
  beneficiaryForm: boolean;
1350
1398
  beneficialOwnerForm: boolean;
1351
1399
  insuredForm: boolean;
1400
+ slaveInsuredForm: boolean;
1352
1401
  policyholdersRepresentativeForm: boolean;
1353
1402
  productConditionsForm: boolean;
1354
1403
  calculatorForm: boolean;
@@ -1380,9 +1429,11 @@ export class FormStoreClass {
1380
1429
  spokesmanApp?: any;
1381
1430
  isTask?: boolean | null;
1382
1431
  createDate?: string | null;
1383
- policyAppDto?: PolicyAppDto;
1384
- insisWorkDataApp?: InsisWorkDataApp;
1385
- addCoverDto?: AddCover[];
1432
+ policyAppDto?: Types.PolicyAppDto;
1433
+ parentPolicyDto?: Types.ParentPolicyDto | null;
1434
+ insisWorkDataApp?: Types.InsisWorkDataApp;
1435
+ addCoverDto?: Types.AddCover[];
1436
+ slave?: any;
1386
1437
  };
1387
1438
  policyholderForm: Member;
1388
1439
  policyholderFormKey: StoreMembers.policyholderForm;
@@ -1395,15 +1446,18 @@ export class FormStoreClass {
1395
1446
  beneficialOwnerFormIndex: number;
1396
1447
  beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
1397
1448
  insuredForm: Member[];
1449
+ slaveInsuredForm: Member;
1398
1450
  insuredFormKey: StoreMembers.insuredForm;
1399
1451
  insuredFormIndex: number;
1400
1452
  productConditionsForm: ProductConditions;
1401
1453
  productConditionsFormKey: string;
1454
+ pensionApp: any;
1402
1455
  questionnaireByHealth: any;
1403
1456
  questionnaireByCritical: any[];
1404
1457
  canBeClaimed: boolean | null;
1405
1458
  applicationTaskId: string | null;
1406
-
1459
+ requiredDocuments: RequiredDocument[];
1460
+ isNeedToRecalculate: boolean;
1407
1461
  constructor() {
1408
1462
  this.regNumber = null;
1409
1463
  this.policyNumber = null;
@@ -1424,6 +1478,8 @@ export class FormStoreClass {
1424
1478
  clientId: null,
1425
1479
  insuredFile: null,
1426
1480
  isPanelInside: false,
1481
+ typeChange: 'calculation',
1482
+ add: false,
1427
1483
  };
1428
1484
  this.additionalInsuranceTerms = [];
1429
1485
  this.additionalInsuranceTermsWithout = [];
@@ -1442,6 +1498,7 @@ export class FormStoreClass {
1442
1498
  date: null,
1443
1499
  };
1444
1500
  this.signedDocumentList = [];
1501
+ this.signatories = [];
1445
1502
  this.surveyByHealthBase = null;
1446
1503
  this.surveyByHealthBasePolicyholder = null;
1447
1504
  this.surveyByCriticalBase = null;
@@ -1465,11 +1522,13 @@ export class FormStoreClass {
1465
1522
  };
1466
1523
  this.RegionPolicy = new Value();
1467
1524
  this.ManagerPolicy = new Value();
1525
+ this.ExecutorGPH = new Value();
1468
1526
  this.isDisabled = {
1469
1527
  policyholderForm: true,
1470
1528
  beneficiaryForm: true,
1471
1529
  beneficialOwnerForm: true,
1472
1530
  insuredForm: true,
1531
+ slaveInsuredForm: true,
1473
1532
  policyholdersRepresentativeForm: true,
1474
1533
  productConditionsForm: true,
1475
1534
  calculatorForm: true,
@@ -1498,6 +1557,7 @@ export class FormStoreClass {
1498
1557
  this.beneficialOwnerFormIndex = 0;
1499
1558
  this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
1500
1559
  this.insuredForm = [new Member()];
1560
+ this.slaveInsuredForm = new Member();
1501
1561
  this.insuredFormKey = StoreMembers.insuredForm;
1502
1562
  this.insuredFormIndex = 0;
1503
1563
  this.productConditionsForm = new ProductConditions();
@@ -1506,12 +1566,15 @@ export class FormStoreClass {
1506
1566
  this.questionnaireByCritical = [];
1507
1567
  this.canBeClaimed = null;
1508
1568
  this.applicationTaskId = null;
1569
+ this.requiredDocuments = [];
1570
+ this.isNeedToRecalculate = false;
1509
1571
  }
1510
1572
  }
1511
1573
 
1512
1574
  export class Address {
1513
1575
  country: Value;
1514
1576
  region: Value;
1577
+ state: Value;
1515
1578
  regionType: Value;
1516
1579
  city: Value;
1517
1580
  square: string | null;
@@ -1525,6 +1588,7 @@ export class Address {
1525
1588
  constructor() {
1526
1589
  this.country = new Value();
1527
1590
  this.region = new Value();
1591
+ this.state = new Value();
1528
1592
  this.regionType = new Value();
1529
1593
  this.city = new Value();
1530
1594
  this.square = null;
@@ -1649,7 +1713,7 @@ export class GroupMember extends PhysGroupClass {
1649
1713
  activityTypes: { activityTypeName: string; empoloyeeCount: number }[];
1650
1714
  beneficalOwnerQuest: { order: number; text: string; answer: boolean | null }[];
1651
1715
  authoritedPerson: PhysGroupClass;
1652
- insuredPolicyData: InsuredPolicyType;
1716
+ insuredPolicyData: Types.InsuredPolicyType;
1653
1717
 
1654
1718
  constructor() {
1655
1719
  super();
@@ -1734,3 +1798,33 @@ export class BeneficialOwner {
1734
1798
  this.id = '';
1735
1799
  }
1736
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
+ }
@@ -18,6 +18,14 @@ export const constants = Object.freeze({
18
18
  gns: 16,
19
19
  prepensionannuity: 18,
20
20
  pensionannuitynew: 19,
21
+ halykkazynaap: 20,
22
+ balam: 21,
23
+ halykkazynaapsms: 23,
24
+ pensionannuityrefundnew: 24,
25
+ pensionannuityjointnew: 25,
26
+ gonsadd: 26,
27
+ tumar: 27,
28
+ criticalillness: 29,
21
29
  },
22
30
  amlProducts: {
23
31
  checkcontragent: 1,
@@ -36,6 +44,7 @@ export const constants = Object.freeze({
36
44
  returnStatementStatuses: [
37
45
  Statuses.ApproveForm,
38
46
  Statuses.ActuaryForm,
47
+ Statuses.JuristForm,
39
48
  Statuses.DsoUsnsForm,
40
49
  Statuses.AccountantForm,
41
50
  Statuses.UnderwriterForm,
@@ -74,6 +83,20 @@ export const constants = Object.freeze({
74
83
  kzt: '₸',
75
84
  usd: '$',
76
85
  },
86
+ pensionAge: {
87
+ man: 68,
88
+ woman: 68,
89
+ },
90
+ genderByIIN: {
91
+ '0': 'Ж',
92
+ '3': 'М',
93
+ '4': 'Ж',
94
+ '5': 'М',
95
+ '6': 'Ж',
96
+ '7': 'М',
97
+ '8': 'Ж',
98
+ '9': 'М',
99
+ },
77
100
  documentTypes: {
78
101
  statement: 5,
79
102
  contract: 6,
@@ -87,6 +110,11 @@ export const constants = Object.freeze({
87
110
  questionnaireInsured: 35,
88
111
  invoicePayment: 36,
89
112
  },
113
+ fileTypes: {
114
+ pdf: 'application/pdf',
115
+ docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
116
+ doc: 'application/msword',
117
+ },
90
118
  regex: {
91
119
  isoDate: /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/,
92
120
  },
@@ -162,4 +190,20 @@ export const constants = Object.freeze({
162
190
  ids: '',
163
191
  },
164
192
  ],
193
+ currencyList: [
194
+ {
195
+ code: 'KZT',
196
+ id: '1',
197
+ nameKz: 'Тенге',
198
+ nameRu: 'Тенге',
199
+ ids: '',
200
+ },
201
+ {
202
+ code: 'USD',
203
+ id: '2',
204
+ nameKz: 'С индексацией на курс USD',
205
+ nameRu: 'С индексацией на курс USD',
206
+ ids: '',
207
+ },
208
+ ],
165
209
  });