hl-core 0.0.8 → 0.0.9-beta.1

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 (62) hide show
  1. package/api/index.ts +142 -101
  2. package/api/interceptors.ts +17 -13
  3. package/components/Button/Btn.vue +1 -1
  4. package/components/Button/ScrollButtons.vue +2 -2
  5. package/components/Complex/Page.vue +1 -1
  6. package/components/Dialog/Dialog.vue +9 -39
  7. package/components/Dialog/FamilyDialog.vue +7 -4
  8. package/components/Form/FormBlock.vue +90 -42
  9. package/components/Form/FormSection.vue +4 -1
  10. package/components/Form/FormToggle.vue +1 -2
  11. package/components/Form/ManagerAttachment.vue +197 -0
  12. package/components/Form/ProductConditionsBlock.vue +68 -14
  13. package/components/Input/Datepicker.vue +45 -0
  14. package/components/Input/FileInput.vue +2 -2
  15. package/components/Input/FormInput.vue +31 -7
  16. package/components/Input/PanelInput.vue +7 -2
  17. package/components/Input/RoundedInput.vue +2 -2
  18. package/components/Input/RoundedSelect.vue +137 -0
  19. package/components/Layout/Drawer.vue +4 -2
  20. package/components/Layout/Header.vue +40 -4
  21. package/components/Layout/Loader.vue +1 -1
  22. package/components/Layout/SettingsPanel.vue +51 -13
  23. package/components/Menu/MenuHover.vue +30 -0
  24. package/components/Menu/MenuNav.vue +29 -13
  25. package/components/Menu/MenuNavItem.vue +6 -3
  26. package/components/Pages/Anketa.vue +59 -33
  27. package/components/Pages/Auth.vue +139 -46
  28. package/components/Pages/Documents.vue +7 -7
  29. package/components/Pages/InvoiceInfo.vue +30 -0
  30. package/components/Pages/MemberForm.vue +544 -293
  31. package/components/Pages/ProductAgreement.vue +4 -2
  32. package/components/Pages/ProductConditions.vue +673 -75
  33. package/components/Panel/PanelHandler.vue +304 -0
  34. package/components/Panel/PanelSelectItem.vue +1 -1
  35. package/components/Transitions/SlideTransition.vue +5 -0
  36. package/components/Utilities/Chip.vue +27 -0
  37. package/components/Utilities/JsonViewer.vue +27 -0
  38. package/composables/axios.ts +1 -1
  39. package/composables/classes.ts +223 -101
  40. package/composables/constants.ts +26 -51
  41. package/composables/index.ts +80 -2
  42. package/composables/styles.ts +15 -3
  43. package/configs/i18n.ts +17 -0
  44. package/layouts/default.vue +6 -6
  45. package/locales/kz.json +585 -0
  46. package/locales/ru.json +587 -0
  47. package/nuxt.config.ts +13 -1
  48. package/package.json +43 -11
  49. package/pages/500.vue +2 -2
  50. package/pages/Token.vue +51 -0
  51. package/plugins/helperFunctionsPlugins.ts +6 -0
  52. package/plugins/storePlugin.ts +0 -1
  53. package/plugins/vuetifyPlugin.ts +8 -1
  54. package/store/data.store.ts +2649 -0
  55. package/store/form.store.ts +1 -1
  56. package/store/member.store.ts +164 -52
  57. package/store/{rules.js → rules.ts} +65 -34
  58. package/types/enum.ts +83 -0
  59. package/types/env.d.ts +10 -0
  60. package/types/index.ts +262 -5
  61. package/store/data.store.js +0 -2482
  62. package/store/messages.ts +0 -429
@@ -1,3 +1,4 @@
1
+ import { Statuses, StoreMembers, MemberAppCodes } from '../types/enum';
1
2
  import { formatDate } from '.';
2
3
  import { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router';
3
4
 
@@ -16,6 +17,7 @@ class MenuItemConfig {
16
17
  disabled?: ComputedRef;
17
18
  color?: string;
18
19
  show?: ComputedRef;
20
+ chip?: ChipComponent;
19
21
 
20
22
  constructor(
21
23
  id: any = null,
@@ -30,6 +32,7 @@ class MenuItemConfig {
30
32
  disabled?: ComputedRef,
31
33
  color?: string,
32
34
  show?: ComputedRef,
35
+ chip?: ChipComponent,
33
36
  ) {
34
37
  this.id = id;
35
38
  this.title = title;
@@ -43,20 +46,21 @@ class MenuItemConfig {
43
46
  this.disabled = disabled;
44
47
  this.color = color;
45
48
  this.show = show;
49
+ this.chip = chip;
46
50
  }
47
51
  }
48
52
 
49
53
  export class MenuItem extends MenuItemConfig {
50
- constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show }: MenuItemConfig = new MenuItemConfig()) {
51
- super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show);
54
+ constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
55
+ super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
52
56
  }
53
57
  }
54
58
 
55
59
  export class Value {
56
60
  id: string | number | null;
57
61
  code: string | number | null;
58
- nameRu: string | number | null;
59
- nameKz: string | number | null;
62
+ nameRu: string | null;
63
+ nameKz: string | null;
60
64
  ids: string | number | null;
61
65
 
62
66
  constructor(id: string | number | null = null, nameRu: string | null = null, nameKz: string | null = null, code: string | null = null, ids: string | null = null) {
@@ -137,7 +141,16 @@ export class MenuOption {
137
141
  }
138
142
  }
139
143
 
140
- export const InitialColumns = () => {
144
+ export const InitialColumns = (): {
145
+ addRegNumber: boolean | null;
146
+ number: boolean | null;
147
+ iin: boolean | null;
148
+ longName: boolean | null;
149
+ userName: boolean | null;
150
+ processCodeTitle: boolean | null;
151
+ historyStatusTitle: boolean | null;
152
+ dateCreated: boolean | null;
153
+ } => {
141
154
  return {
142
155
  addRegNumber: null,
143
156
  number: null,
@@ -266,7 +279,7 @@ class Person {
266
279
  const date = this.formatDate(this.birthDate);
267
280
  if (date) {
268
281
  const age = Math.abs(new Date(Date.now() - new Date(date).getTime()).getUTCFullYear() - 1970);
269
- if (new Date(date) < new Date(Date.now()) && age > 0) {
282
+ if (new Date(date) < new Date(Date.now()) && age >= 0) {
270
283
  return age.toString();
271
284
  }
272
285
  } else {
@@ -356,6 +369,13 @@ export class Contragent extends Person {
356
369
  }
357
370
 
358
371
  export class Member extends Person {
372
+ response?: {
373
+ contragent?: ContragentType;
374
+ questionnaires?: ContragentQuestionaries[];
375
+ contacts?: ContragentContacts[];
376
+ documents?: ContragentDocuments[];
377
+ addresses?: ContragentAddress[];
378
+ };
359
379
  verifyType: any;
360
380
  verifyDate: any;
361
381
  postIndex: string | null;
@@ -421,6 +441,7 @@ export class Member extends Person {
421
441
  hasAgreement: boolean | null;
422
442
  otpTokenId: string | null;
423
443
  otpCode: string | null;
444
+ documentsList: ContragentDocuments[];
424
445
  constructor(
425
446
  id = 0,
426
447
  type = 1,
@@ -488,6 +509,7 @@ export class Member extends Person {
488
509
  isNotary = false,
489
510
  ) {
490
511
  super(id, type, iin, longName, lastName, firstName, middleName, birthDate, gender, genderName, birthPlace, age);
512
+ this.documentsList = [];
491
513
  this.postIndex = null;
492
514
  this.isPdl = false;
493
515
  this.migrationCard = migrationCard;
@@ -638,48 +660,20 @@ export class Member extends Person {
638
660
  }
639
661
  }
640
662
 
641
- export class PolicyholderForm extends Member {
642
- constructor(...args: any) {
643
- super(...args);
644
- }
645
- }
646
-
647
- export class InsuredForm extends Member {
648
- constructor(...args: any) {
649
- super(...args);
650
- }
651
- }
652
-
653
- export class BeneficiaryForm extends Member {
654
- constructor(...args: any) {
655
- super(...args);
656
- }
657
- }
658
-
659
- export class BeneficialOwnerForm extends Member {
660
- constructor(...args: any) {
661
- super(...args);
662
- }
663
- }
664
-
665
- export class PolicyholdersRepresentativeForm extends Member {
666
- constructor(...args: any) {
667
- super(...args);
668
- }
669
- }
670
-
671
663
  export class ProductConditions {
672
664
  signDate: string | null;
673
665
  birthDate: string | null;
674
666
  gender: Value;
675
667
  insuranceCase: string | null;
676
- coverPeriod: string | null;
677
- payPeriod: string | null;
668
+ coverPeriod: number | null;
669
+ payPeriod: number | null;
678
670
  termsOfInsurance: string | null;
679
671
  annualIncome: string | null;
680
672
  processIndexRate: Value;
681
673
  requestedSumInsured: number | string | null;
674
+ requestedSumInsuredInDollar: number | string | null;
682
675
  insurancePremiumPerMonth: number | string | null;
676
+ insurancePremiumPerMonthInDollar: number | string | null;
683
677
  establishingGroupDisabilityFromThirdYear: string | null;
684
678
  possibilityToChange: string | null;
685
679
  deathOfInsuredDueToAccident: Value;
@@ -688,18 +682,24 @@ export class ProductConditions {
688
682
  bodyInjury: Value;
689
683
  criticalIllnessOfTheInsured: Value;
690
684
  paymentPeriod: Value;
691
- amountOfInsurancePremium: string | null;
692
- lifeMultiply: string | null;
693
- lifeAdditive: string | null;
694
- lifeMultiplyClient: string | null;
695
- lifeAdditiveClient: string | null;
696
- adbMultiply: string | null;
697
- adbAdditive: string | null;
698
- disabilityMultiply: string | null;
699
- disabilityAdditive: string | null;
685
+ amountOfInsurancePremium: string | number | null;
686
+ lifeMultiply: string | number | null;
687
+ lifeAdditive: string | number | null;
688
+ lifeMultiplyClient: string | number | null;
689
+ lifeAdditiveClient: string | number | null;
690
+ adbMultiply: string | number | null;
691
+ adbAdditive: string | number | null;
692
+ disabilityMultiply: string | number | null;
693
+ disabilityAdditive: string | number | null;
700
694
  processTariff: Value;
701
695
  riskGroup: Value;
702
696
  riskGroup2: Value;
697
+ additionalConditionAnnuityPayments: boolean;
698
+ guaranteedPeriod: number | null;
699
+ typeAnnuityInsurance: Value;
700
+ termAnnuityPayments: number | string | null;
701
+ periodAnnuityPayment: Value;
702
+ amountAnnuityPayments: number | string | null;
703
703
  constructor(
704
704
  insuranceCase = null,
705
705
  coverPeriod = null,
@@ -729,7 +729,15 @@ export class ProductConditions {
729
729
  processTariff = new Value(),
730
730
  riskGroup = new Value(),
731
731
  riskGroup2 = new Value(),
732
+ additionalConditionAnnuityPayments = false,
733
+ guaranteedPeriod = null,
734
+ typeAnnuityInsurance = new Value(),
735
+ termAnnuityPayments = null,
736
+ periodAnnuityPayment = new Value(),
737
+ amountAnnuityPayments = null,
732
738
  ) {
739
+ this.requestedSumInsuredInDollar = null;
740
+ this.insurancePremiumPerMonthInDollar = null;
733
741
  this.signDate = null;
734
742
  this.birthDate = null;
735
743
  this.gender = new Value();
@@ -761,12 +769,42 @@ export class ProductConditions {
761
769
  this.processTariff = processTariff;
762
770
  this.riskGroup = riskGroup;
763
771
  this.riskGroup2 = riskGroup2;
772
+ this.additionalConditionAnnuityPayments = additionalConditionAnnuityPayments;
773
+ this.guaranteedPeriod = guaranteedPeriod;
774
+ this.typeAnnuityInsurance = typeAnnuityInsurance;
775
+ this.termAnnuityPayments = termAnnuityPayments;
776
+ this.periodAnnuityPayment = periodAnnuityPayment;
777
+ this.amountAnnuityPayments = amountAnnuityPayments;
778
+ }
779
+ }
780
+
781
+ export class MemberSettings {
782
+ has?: boolean;
783
+ isMultiple?: boolean;
784
+ required?: boolean;
785
+ limit?: number;
786
+ constructor(options?: { has?: boolean; isMultiple?: boolean; required?: boolean; limit?: number }) {
787
+ if (options) {
788
+ this.has = options.has;
789
+ this.isMultiple = options.isMultiple;
790
+ this.limit = options.limit;
791
+ if (this.has === true) {
792
+ this.required = options.required;
793
+ } else {
794
+ this.required = false;
795
+ }
796
+ }
764
797
  }
765
798
  }
766
799
 
767
800
  export class DataStoreClass {
768
801
  // IMP Контроллер фич
769
802
  controls: {
803
+ // Cтавит значения по дефолту полям
804
+ setDefaults: {
805
+ sectorCode: boolean;
806
+ percentage: boolean;
807
+ };
770
808
  // Проверка на роль при авторизации
771
809
  onAuth: boolean;
772
810
  // Согласие на главной странице
@@ -781,9 +819,21 @@ export class DataStoreClass {
781
819
  hasInsis: boolean;
782
820
  // Калькулятор без ввода данных
783
821
  hasCalculator: boolean;
822
+ // Блок прикрепления к менеджеру
823
+ hasAttachment: boolean;
824
+ // Решение АС
825
+ hasAffiliation: boolean;
826
+ };
827
+ members: {
828
+ clientApp: MemberSettings;
829
+ insuredApp: MemberSettings;
830
+ beneficiaryApp: MemberSettings;
831
+ beneficialOwnerApp: MemberSettings;
832
+ spokesmanApp: MemberSettings;
784
833
  };
834
+ iframeLoading: boolean;
785
835
  hasLayoutMargins: boolean;
786
- readonly product: string | null;
836
+ readonly product: Projects | null;
787
837
  showNav: boolean;
788
838
  menuItems: MenuItem[];
789
839
  menu: {
@@ -791,6 +841,7 @@ export class DataStoreClass {
791
841
  hasBack: boolean;
792
842
  loading: boolean;
793
843
  backIcon: string;
844
+ moreIcon: string;
794
845
  onBack: any;
795
846
  onLink: any;
796
847
  selectedItem: MenuItem;
@@ -801,7 +852,8 @@ export class DataStoreClass {
801
852
  items: MenuItem[];
802
853
  };
803
854
  buttons: MenuItem[];
804
- panelAction: string | null;
855
+ isButtonsLoading: boolean;
856
+ panelAction: keyof typeof constants.actions | null;
805
857
  panel: {
806
858
  open: boolean;
807
859
  overlay: boolean;
@@ -827,8 +879,8 @@ export class DataStoreClass {
827
879
  documentIssuers: Value[];
828
880
  familyStatuses: Value[];
829
881
  relations: Value[];
882
+ insurancePay: Value[];
830
883
  questionRefs: Value[];
831
- epayLink: string;
832
884
  residents: Value[];
833
885
  ipdl: Value[];
834
886
  economySectorCode: Value[];
@@ -836,28 +888,66 @@ export class DataStoreClass {
836
888
  fontSize: number;
837
889
  isFontChangerOpen: boolean = false;
838
890
  isLoading: boolean = false;
839
- userNotFound: boolean = false;
840
891
  user: User;
841
892
  accessToken: string | null = null;
842
893
  refreshToken: string | null = null;
843
- processCoverTypeSum: any[];
844
- processIndexRate: any[];
845
- processPaymentPeriod: any[];
894
+ processCoverTypeSum: Value[];
895
+ processIndexRate: Value[];
896
+ processPaymentPeriod: Value[];
897
+ dicAnnuityTypeList: Value[];
898
+ processAnnuityPaymentPeriod: Value[];
846
899
  taskList: TaskListItem[];
847
900
  processHistory: TaskHistory[];
848
- contragentList: any[];
901
+ contragentList: ContragentType[];
849
902
  contragentFormKey: string;
850
903
  processCode: number | null;
851
904
  groupCode: string;
852
905
  userGroups: Item[];
853
906
  onMainPage: boolean;
854
- SaleChanellPolicyList: any[];
855
- RegionPolicyList: any[];
856
- ManagerPolicyList: any[];
857
- AgentDataList: any[];
858
- riskGroup: any[];
907
+ SaleChanellPolicy: Value[];
908
+ RegionPolicy: Value[];
909
+ ManagerPolicy: Value[];
910
+ AgentData: AgentData[];
911
+ riskGroup: Value[];
912
+ currencies: {
913
+ eur: number | null;
914
+ usd: number | null;
915
+ };
916
+ filters: {
917
+ show: (item: MenuItem) => boolean;
918
+ disabled: (item: MenuItem) => boolean;
919
+ };
859
920
  constructor() {
921
+ this.filters = {
922
+ show: (item: MenuItem) => {
923
+ if (typeof item.show === 'boolean') {
924
+ return item.show;
925
+ }
926
+ return true;
927
+ },
928
+ disabled: (item: MenuItem) => {
929
+ if (typeof item.disabled === 'boolean') {
930
+ return item.disabled;
931
+ }
932
+ return false;
933
+ },
934
+ };
935
+ this.currencies = {
936
+ eur: null,
937
+ usd: null,
938
+ };
939
+ this.members = {
940
+ clientApp: new MemberSettings(),
941
+ insuredApp: new MemberSettings(),
942
+ beneficiaryApp: new MemberSettings(),
943
+ beneficialOwnerApp: new MemberSettings(),
944
+ spokesmanApp: new MemberSettings(),
945
+ };
860
946
  this.controls = {
947
+ setDefaults: {
948
+ sectorCode: true,
949
+ percentage: true,
950
+ },
861
951
  onAuth: false,
862
952
  hasAnketa: true,
863
953
  hasAgreement: true,
@@ -865,16 +955,21 @@ export class DataStoreClass {
865
955
  hasGKB: false,
866
956
  hasInsis: false,
867
957
  hasCalculator: false,
958
+ hasAttachment: true,
959
+ hasAffiliation: true,
868
960
  };
961
+ this.iframeLoading = false;
869
962
  this.hasLayoutMargins = true;
870
963
  this.processIndexRate = [];
871
964
  this.processPaymentPeriod = [];
965
+ this.dicAnnuityTypeList = [];
966
+ this.processAnnuityPaymentPeriod = [];
872
967
  this.questionRefs = [];
873
- this.SaleChanellPolicyList = [];
874
- this.RegionPolicyList = [];
875
- this.ManagerPolicyList = [];
876
- this.AgentDataList = [];
877
- this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as string) : null;
968
+ this.SaleChanellPolicy = [];
969
+ this.RegionPolicy = [];
970
+ this.ManagerPolicy = [];
971
+ this.AgentData = [];
972
+ this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
878
973
  this.showNav = true;
879
974
  this.menuItems = [];
880
975
  this.menu = {
@@ -882,6 +977,7 @@ export class DataStoreClass {
882
977
  hasBack: false,
883
978
  loading: false,
884
979
  backIcon: 'mdi-arrow-left',
980
+ moreIcon: 'mdi-dots-vertical',
885
981
  onBack: {},
886
982
  onLink: {},
887
983
  selectedItem: new MenuItem(),
@@ -892,6 +988,7 @@ export class DataStoreClass {
892
988
  items: [],
893
989
  };
894
990
  this.buttons = [];
991
+ this.isButtonsLoading = false;
895
992
  this.panel = {
896
993
  open: false,
897
994
  overlay: false,
@@ -923,7 +1020,7 @@ export class DataStoreClass {
923
1020
  this.documentIssuers = [];
924
1021
  this.familyStatuses = [];
925
1022
  this.relations = [];
926
- this.epayLink = '';
1023
+ this.insurancePay = [];
927
1024
  this.residents = [];
928
1025
  this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
929
1026
  this.economySectorCode = [];
@@ -931,7 +1028,6 @@ export class DataStoreClass {
931
1028
  this.fontSize = 14;
932
1029
  this.isFontChangerOpen = false;
933
1030
  this.isLoading = false;
934
- this.userNotFound = false;
935
1031
  this.user = new User();
936
1032
  this.accessToken = null;
937
1033
  this.refreshToken = null;
@@ -949,27 +1045,36 @@ export class DataStoreClass {
949
1045
  id: '1',
950
1046
  nameKz: '',
951
1047
  nameRu: '1',
952
- isDefault: true,
1048
+ code: '',
1049
+ ids: '',
953
1050
  },
954
1051
  {
955
1052
  id: '2',
956
1053
  nameKz: '',
957
1054
  nameRu: '2',
1055
+ code: '',
1056
+ ids: '',
958
1057
  },
959
1058
  {
960
1059
  id: '3',
961
1060
  nameKz: '',
962
1061
  nameRu: '3',
1062
+ code: '',
1063
+ ids: '',
963
1064
  },
964
1065
  {
965
1066
  id: '4',
966
1067
  nameKz: '',
967
1068
  nameRu: '4',
1069
+ code: '',
1070
+ ids: '',
968
1071
  },
969
1072
  {
970
1073
  id: '5',
971
1074
  nameKz: '',
972
1075
  nameRu: '5',
1076
+ code: '',
1077
+ ids: '',
973
1078
  },
974
1079
  ];
975
1080
  }
@@ -978,33 +1083,36 @@ export class DataStoreClass {
978
1083
  export class FormStoreClass {
979
1084
  additionalInsuranceTerms: AddCover[];
980
1085
  additionalInsuranceTermsWithout: AddCover[];
981
- signUrl: string | null;
1086
+ signUrls: SignUrlType[];
1087
+ epayLink: string | null;
1088
+ invoiceData: EpayResponse | null;
982
1089
  affilationResolution: {
983
1090
  id: string | number | null;
984
1091
  processInstanceId: string | number | null;
985
1092
  number: string | number | null;
986
- date: string | number | null;
1093
+ date: string | null;
1094
+ };
1095
+ finCenterData: {
1096
+ processInstanceId: string | number | null;
1097
+ regNumber: string | number | null;
1098
+ date: string | null;
987
1099
  };
988
1100
  signedDocumentList: IDocument[];
989
1101
  surveyByHealthBase: AnketaFirst | null;
1102
+ surveyByHealthBasePolicyholder: AnketaFirst | null;
990
1103
  surveyByCriticalBase: AnketaFirst | null;
1104
+ surveyByCriticalBasePolicyholder: AnketaFirst | null;
991
1105
  surveyByHealthSecond: AnketaSecond[] | null;
992
1106
  surveyByCriticalSecond: AnketaSecond[] | null;
993
1107
  definedAnswersId: {
994
1108
  surveyByHealthBase: any;
995
1109
  surveyByCriticalBase: any;
1110
+ surveyByHealthBasePolicyholder: any;
1111
+ surveyByCriticalBasePolicyholder: any;
996
1112
  };
997
1113
  birthInfos: BirthInfoGKB[];
998
1114
  SaleChanellPolicy: Value;
999
- AgentData: {
1000
- agentId: null;
1001
- manId: number;
1002
- fullName: string;
1003
- officeId: null;
1004
- officeCode: null;
1005
- saleChannel: string;
1006
- managerName: string;
1007
- };
1115
+ AgentData: AgentData;
1008
1116
  RegionPolicy: Value;
1009
1117
  ManagerPolicy: Value;
1010
1118
  isDisabled: {
@@ -1028,26 +1136,29 @@ export class FormStoreClass {
1028
1136
  isPolicyholderIPDL: boolean = false;
1029
1137
  applicationData: {
1030
1138
  processInstanceId: number | string;
1031
- statusCode?: string | null;
1139
+ statusCode?: keyof typeof Statuses;
1032
1140
  clientApp?: any;
1033
1141
  insuredApp?: any;
1034
1142
  beneficiaryApp?: any;
1035
1143
  beneficialOwnerApp?: any;
1036
1144
  spokesmanApp?: any;
1037
1145
  isTask?: boolean | null;
1146
+ policyAppDto?: PolicyAppDto;
1147
+ insisWorkDataApp?: InsisWorkDataApp;
1148
+ addCoverDto?: AddCover[];
1038
1149
  };
1039
- policyholderForm: PolicyholderForm;
1040
- policyholderFormKey: string;
1041
- policyholdersRepresentativeForm: PolicyholdersRepresentativeForm;
1042
- policyholdersRepresentativeFormKey: string;
1043
- beneficiaryForm: BeneficiaryForm[];
1044
- beneficiaryFormKey: string;
1150
+ policyholderForm: Member;
1151
+ policyholderFormKey: StoreMembers.policyholderForm;
1152
+ policyholdersRepresentativeForm: Member;
1153
+ policyholdersRepresentativeFormKey: StoreMembers.policyholdersRepresentativeForm;
1154
+ beneficiaryForm: Member[];
1155
+ beneficiaryFormKey: StoreMembers.beneficiaryForm;
1045
1156
  beneficiaryFormIndex: number;
1046
- beneficialOwnerForm: BeneficialOwnerForm[];
1157
+ beneficialOwnerForm: Member[];
1047
1158
  beneficialOwnerFormIndex: number;
1048
- beneficialOwnerFormKey: string;
1049
- insuredForm: InsuredForm[];
1050
- insuredFormKey: string;
1159
+ beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
1160
+ insuredForm: Member[];
1161
+ insuredFormKey: StoreMembers.insuredForm;
1051
1162
  insuredFormIndex: number;
1052
1163
  productConditionsForm: ProductConditions;
1053
1164
  productConditionsFormKey: string;
@@ -1058,21 +1169,32 @@ export class FormStoreClass {
1058
1169
  constructor(procuctConditionsTitle?: string) {
1059
1170
  this.additionalInsuranceTerms = [];
1060
1171
  this.additionalInsuranceTermsWithout = [];
1061
- this.signUrl = null;
1172
+ this.signUrls = [];
1173
+ this.epayLink = null;
1174
+ this.invoiceData = null;
1062
1175
  this.affilationResolution = {
1063
1176
  id: null,
1064
1177
  processInstanceId: null,
1065
1178
  number: null,
1066
1179
  date: null,
1067
1180
  };
1181
+ this.finCenterData = {
1182
+ processInstanceId: null,
1183
+ regNumber: null,
1184
+ date: null,
1185
+ };
1068
1186
  this.signedDocumentList = [];
1069
1187
  this.surveyByHealthBase = null;
1188
+ this.surveyByHealthBasePolicyholder = null;
1070
1189
  this.surveyByCriticalBase = null;
1190
+ this.surveyByCriticalBasePolicyholder = null;
1071
1191
  this.surveyByHealthSecond = null;
1072
1192
  this.surveyByCriticalSecond = null;
1073
1193
  this.definedAnswersId = {
1074
1194
  surveyByHealthBase: {},
1075
1195
  surveyByCriticalBase: {},
1196
+ surveyByHealthBasePolicyholder: {},
1197
+ surveyByCriticalBasePolicyholder: {},
1076
1198
  };
1077
1199
  this.birthInfos = [];
1078
1200
  this.SaleChanellPolicy = new Value();
@@ -1106,18 +1228,18 @@ export class FormStoreClass {
1106
1228
  this.isActOwnBehalf = true;
1107
1229
  this.hasRepresentative = false;
1108
1230
  this.applicationData = { processInstanceId: 0 };
1109
- this.policyholderForm = new PolicyholderForm();
1110
- this.policyholderFormKey = 'policyholderForm';
1111
- this.policyholdersRepresentativeForm = new PolicyholdersRepresentativeForm();
1112
- this.policyholdersRepresentativeFormKey = 'policyholdersRepresentativeForm';
1113
- this.beneficiaryForm = [new BeneficiaryForm()];
1114
- this.beneficiaryFormKey = 'beneficiaryForm';
1231
+ this.policyholderForm = new Member();
1232
+ this.policyholderFormKey = StoreMembers.policyholderForm;
1233
+ this.policyholdersRepresentativeForm = new Member();
1234
+ this.policyholdersRepresentativeFormKey = StoreMembers.policyholdersRepresentativeForm;
1235
+ this.beneficiaryForm = [new Member()];
1236
+ this.beneficiaryFormKey = StoreMembers.beneficiaryForm;
1115
1237
  this.beneficiaryFormIndex = 0;
1116
- this.beneficialOwnerForm = [new BeneficialOwnerForm()];
1238
+ this.beneficialOwnerForm = [new Member()];
1117
1239
  this.beneficialOwnerFormIndex = 0;
1118
- this.beneficialOwnerFormKey = 'beneficialOwnerForm';
1119
- this.insuredForm = [new InsuredForm()];
1120
- this.insuredFormKey = 'insuredForm';
1240
+ this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
1241
+ this.insuredForm = [new Member()];
1242
+ this.insuredFormKey = StoreMembers.insuredForm;
1121
1243
  this.insuredFormIndex = 0;
1122
1244
  this.productConditionsForm = new ProductConditions();
1123
1245
  this.productConditionsFormKey = 'productConditionsForm';