hl-core 0.0.8 → 0.0.9-beta.10

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 (73) hide show
  1. package/api/index.ts +202 -161
  2. package/api/interceptors.ts +23 -17
  3. package/components/Button/Btn.vue +4 -4
  4. package/components/Button/ScrollButtons.vue +2 -2
  5. package/components/Complex/ContentBlock.vue +1 -1
  6. package/components/Complex/MessageBlock.vue +26 -0
  7. package/components/Complex/Page.vue +8 -2
  8. package/components/Complex/WhiteBlock.vue +7 -0
  9. package/components/Dialog/Dialog.vue +9 -39
  10. package/components/Dialog/FamilyDialog.vue +10 -7
  11. package/components/Form/FormBlock.vue +91 -45
  12. package/components/Form/FormSection.vue +5 -2
  13. package/components/Form/FormTextSection.vue +3 -3
  14. package/components/Form/FormToggle.vue +4 -5
  15. package/components/Form/ManagerAttachment.vue +210 -0
  16. package/components/Form/ProductConditionsBlock.vue +70 -16
  17. package/components/Input/Datepicker.vue +45 -0
  18. package/components/Input/EmptyFormField.vue +1 -1
  19. package/components/Input/FileInput.vue +2 -3
  20. package/components/Input/FormInput.vue +31 -7
  21. package/components/Input/PanelInput.vue +7 -2
  22. package/components/Input/RoundedEmptyField.vue +5 -0
  23. package/components/Input/RoundedInput.vue +2 -2
  24. package/components/Input/RoundedSelect.vue +150 -0
  25. package/components/Layout/Drawer.vue +5 -2
  26. package/components/Layout/Header.vue +41 -5
  27. package/components/Layout/Loader.vue +1 -1
  28. package/components/Layout/SettingsPanel.vue +47 -13
  29. package/components/List/ListEmpty.vue +1 -1
  30. package/components/Menu/MenuHover.vue +30 -0
  31. package/components/Menu/MenuNav.vue +30 -14
  32. package/components/Menu/MenuNavItem.vue +10 -7
  33. package/components/Pages/Anketa.vue +68 -47
  34. package/components/Pages/Auth.vue +139 -46
  35. package/components/Pages/ContragentForm.vue +505 -0
  36. package/components/Pages/Documents.vue +11 -11
  37. package/components/Pages/InvoiceInfo.vue +30 -0
  38. package/components/Pages/MemberForm.vue +574 -316
  39. package/components/Pages/ProductAgreement.vue +2 -2
  40. package/components/Pages/ProductConditions.vue +671 -78
  41. package/components/Panel/PanelHandler.vue +309 -0
  42. package/components/Panel/PanelSelectItem.vue +3 -3
  43. package/components/Transitions/SlideTransition.vue +5 -0
  44. package/components/Utilities/Chip.vue +27 -0
  45. package/components/Utilities/IconBorder.vue +17 -0
  46. package/components/Utilities/JsonViewer.vue +27 -0
  47. package/composables/axios.ts +2 -2
  48. package/composables/classes.ts +227 -107
  49. package/composables/constants.ts +31 -51
  50. package/composables/index.ts +106 -2
  51. package/composables/styles.ts +33 -11
  52. package/configs/i18n.ts +15 -0
  53. package/layouts/default.vue +11 -8
  54. package/layouts/full.vue +1 -1
  55. package/locales/ru.json +647 -0
  56. package/nuxt.config.ts +14 -2
  57. package/package.json +35 -12
  58. package/pages/500.vue +4 -4
  59. package/pages/Token.vue +52 -0
  60. package/plugins/helperFunctionsPlugins.ts +11 -6
  61. package/plugins/storePlugin.ts +0 -1
  62. package/plugins/vuetifyPlugin.ts +8 -1
  63. package/store/data.store.ts +2666 -0
  64. package/store/form.store.ts +1 -1
  65. package/store/member.store.ts +164 -52
  66. package/store/rules.ts +193 -0
  67. package/types/enum.ts +83 -0
  68. package/types/env.d.ts +10 -0
  69. package/types/index.ts +279 -8
  70. package/components/Button/BtnIcon.vue +0 -47
  71. package/store/data.store.js +0 -2482
  72. package/store/messages.ts +0 -429
  73. package/store/rules.js +0 -153
@@ -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;
@@ -385,11 +405,11 @@ export class Member extends Person {
385
405
  registrationRegion: Value;
386
406
  registrationRegionType: Value;
387
407
  registrationCity: Value;
388
- registrationQuarter: string | null;
389
- registrationMicroDistrict: string | null;
390
- registrationStreet: string | null;
391
- registrationNumberHouse: string | null;
392
- registrationNumberApartment: string | null;
408
+ registrationQuarter?: string | null;
409
+ registrationMicroDistrict?: string | null;
410
+ registrationStreet?: string | null;
411
+ registrationNumberHouse?: string | null;
412
+ registrationNumberApartment?: string | null;
393
413
  birthRegion: Value;
394
414
  documentType: Value;
395
415
  documentNumber: 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,65 @@ 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
+ processIndexRate: Value[];
895
+ processPaymentPeriod: Value[];
896
+ dicAnnuityTypeList: Value[];
897
+ processAnnuityPaymentPeriod: Value[];
846
898
  taskList: TaskListItem[];
847
899
  processHistory: TaskHistory[];
848
- contragentList: any[];
900
+ contragentList: ContragentType[];
849
901
  contragentFormKey: string;
850
902
  processCode: number | null;
851
903
  groupCode: string;
852
904
  userGroups: Item[];
853
905
  onMainPage: boolean;
854
- SaleChanellPolicyList: any[];
855
- RegionPolicyList: any[];
856
- ManagerPolicyList: any[];
857
- AgentDataList: any[];
858
- riskGroup: any[];
906
+ SaleChanellPolicy: Value[];
907
+ RegionPolicy: Value[];
908
+ ManagerPolicy: Value[];
909
+ AgentData: AgentData[];
910
+ riskGroup: Value[];
911
+ currencies: {
912
+ eur: number | null;
913
+ usd: number | null;
914
+ };
915
+ filters: {
916
+ show: (item: MenuItem) => boolean;
917
+ disabled: (item: MenuItem) => boolean;
918
+ };
859
919
  constructor() {
920
+ this.filters = {
921
+ show: (item: MenuItem) => {
922
+ if (typeof item.show === 'boolean') {
923
+ return item.show;
924
+ }
925
+ return true;
926
+ },
927
+ disabled: (item: MenuItem) => {
928
+ if (typeof item.disabled === 'boolean') {
929
+ return item.disabled;
930
+ }
931
+ return false;
932
+ },
933
+ };
934
+ this.currencies = {
935
+ eur: null,
936
+ usd: null,
937
+ };
938
+ this.members = {
939
+ clientApp: new MemberSettings(),
940
+ insuredApp: new MemberSettings(),
941
+ beneficiaryApp: new MemberSettings(),
942
+ beneficialOwnerApp: new MemberSettings(),
943
+ spokesmanApp: new MemberSettings(),
944
+ };
860
945
  this.controls = {
946
+ setDefaults: {
947
+ sectorCode: true,
948
+ percentage: true,
949
+ },
861
950
  onAuth: false,
862
951
  hasAnketa: true,
863
952
  hasAgreement: true,
@@ -865,16 +954,21 @@ export class DataStoreClass {
865
954
  hasGKB: false,
866
955
  hasInsis: false,
867
956
  hasCalculator: false,
957
+ hasAttachment: true,
958
+ hasAffiliation: true,
868
959
  };
960
+ this.iframeLoading = false;
869
961
  this.hasLayoutMargins = true;
870
962
  this.processIndexRate = [];
871
963
  this.processPaymentPeriod = [];
964
+ this.dicAnnuityTypeList = [];
965
+ this.processAnnuityPaymentPeriod = [];
872
966
  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;
967
+ this.SaleChanellPolicy = [];
968
+ this.RegionPolicy = [];
969
+ this.ManagerPolicy = [];
970
+ this.AgentData = [];
971
+ this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
878
972
  this.showNav = true;
879
973
  this.menuItems = [];
880
974
  this.menu = {
@@ -882,6 +976,7 @@ export class DataStoreClass {
882
976
  hasBack: false,
883
977
  loading: false,
884
978
  backIcon: 'mdi-arrow-left',
979
+ moreIcon: 'mdi-dots-vertical',
885
980
  onBack: {},
886
981
  onLink: {},
887
982
  selectedItem: new MenuItem(),
@@ -892,6 +987,7 @@ export class DataStoreClass {
892
987
  items: [],
893
988
  };
894
989
  this.buttons = [];
990
+ this.isButtonsLoading = false;
895
991
  this.panel = {
896
992
  open: false,
897
993
  overlay: false,
@@ -923,7 +1019,7 @@ export class DataStoreClass {
923
1019
  this.documentIssuers = [];
924
1020
  this.familyStatuses = [];
925
1021
  this.relations = [];
926
- this.epayLink = '';
1022
+ this.insurancePay = [];
927
1023
  this.residents = [];
928
1024
  this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
929
1025
  this.economySectorCode = [];
@@ -931,11 +1027,9 @@ export class DataStoreClass {
931
1027
  this.fontSize = 14;
932
1028
  this.isFontChangerOpen = false;
933
1029
  this.isLoading = false;
934
- this.userNotFound = false;
935
1030
  this.user = new User();
936
1031
  this.accessToken = null;
937
1032
  this.refreshToken = null;
938
- this.processCoverTypeSum = [];
939
1033
  this.taskList = [];
940
1034
  this.processHistory = [];
941
1035
  this.contragentList = [];
@@ -949,27 +1043,36 @@ export class DataStoreClass {
949
1043
  id: '1',
950
1044
  nameKz: '',
951
1045
  nameRu: '1',
952
- isDefault: true,
1046
+ code: '',
1047
+ ids: '',
953
1048
  },
954
1049
  {
955
1050
  id: '2',
956
1051
  nameKz: '',
957
1052
  nameRu: '2',
1053
+ code: '',
1054
+ ids: '',
958
1055
  },
959
1056
  {
960
1057
  id: '3',
961
1058
  nameKz: '',
962
1059
  nameRu: '3',
1060
+ code: '',
1061
+ ids: '',
963
1062
  },
964
1063
  {
965
1064
  id: '4',
966
1065
  nameKz: '',
967
1066
  nameRu: '4',
1067
+ code: '',
1068
+ ids: '',
968
1069
  },
969
1070
  {
970
1071
  id: '5',
971
1072
  nameKz: '',
972
1073
  nameRu: '5',
1074
+ code: '',
1075
+ ids: '',
973
1076
  },
974
1077
  ];
975
1078
  }
@@ -978,33 +1081,36 @@ export class DataStoreClass {
978
1081
  export class FormStoreClass {
979
1082
  additionalInsuranceTerms: AddCover[];
980
1083
  additionalInsuranceTermsWithout: AddCover[];
981
- signUrl: string | null;
1084
+ signUrls: SignUrlType[];
1085
+ epayLink: string | null;
1086
+ invoiceData: EpayResponse | null;
982
1087
  affilationResolution: {
983
1088
  id: string | number | null;
984
1089
  processInstanceId: string | number | null;
985
1090
  number: string | number | null;
986
- date: string | number | null;
1091
+ date: string | null;
1092
+ };
1093
+ finCenterData: {
1094
+ processInstanceId: string | number | null;
1095
+ regNumber: string | number | null;
1096
+ date: string | null;
987
1097
  };
988
1098
  signedDocumentList: IDocument[];
989
1099
  surveyByHealthBase: AnketaFirst | null;
1100
+ surveyByHealthBasePolicyholder: AnketaFirst | null;
990
1101
  surveyByCriticalBase: AnketaFirst | null;
1102
+ surveyByCriticalBasePolicyholder: AnketaFirst | null;
991
1103
  surveyByHealthSecond: AnketaSecond[] | null;
992
1104
  surveyByCriticalSecond: AnketaSecond[] | null;
993
1105
  definedAnswersId: {
994
1106
  surveyByHealthBase: any;
995
1107
  surveyByCriticalBase: any;
1108
+ surveyByHealthBasePolicyholder: any;
1109
+ surveyByCriticalBasePolicyholder: any;
996
1110
  };
997
1111
  birthInfos: BirthInfoGKB[];
998
1112
  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
- };
1113
+ AgentData: AgentData;
1008
1114
  RegionPolicy: Value;
1009
1115
  ManagerPolicy: Value;
1010
1116
  isDisabled: {
@@ -1028,26 +1134,29 @@ export class FormStoreClass {
1028
1134
  isPolicyholderIPDL: boolean = false;
1029
1135
  applicationData: {
1030
1136
  processInstanceId: number | string;
1031
- statusCode?: string | null;
1137
+ statusCode?: keyof typeof Statuses;
1032
1138
  clientApp?: any;
1033
1139
  insuredApp?: any;
1034
1140
  beneficiaryApp?: any;
1035
1141
  beneficialOwnerApp?: any;
1036
1142
  spokesmanApp?: any;
1037
1143
  isTask?: boolean | null;
1144
+ policyAppDto?: PolicyAppDto;
1145
+ insisWorkDataApp?: InsisWorkDataApp;
1146
+ addCoverDto?: AddCover[];
1038
1147
  };
1039
- policyholderForm: PolicyholderForm;
1040
- policyholderFormKey: string;
1041
- policyholdersRepresentativeForm: PolicyholdersRepresentativeForm;
1042
- policyholdersRepresentativeFormKey: string;
1043
- beneficiaryForm: BeneficiaryForm[];
1044
- beneficiaryFormKey: string;
1148
+ policyholderForm: Member;
1149
+ policyholderFormKey: StoreMembers.policyholderForm;
1150
+ policyholdersRepresentativeForm: Member;
1151
+ policyholdersRepresentativeFormKey: StoreMembers.policyholdersRepresentativeForm;
1152
+ beneficiaryForm: Member[];
1153
+ beneficiaryFormKey: StoreMembers.beneficiaryForm;
1045
1154
  beneficiaryFormIndex: number;
1046
- beneficialOwnerForm: BeneficialOwnerForm[];
1155
+ beneficialOwnerForm: Member[];
1047
1156
  beneficialOwnerFormIndex: number;
1048
- beneficialOwnerFormKey: string;
1049
- insuredForm: InsuredForm[];
1050
- insuredFormKey: string;
1157
+ beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
1158
+ insuredForm: Member[];
1159
+ insuredFormKey: StoreMembers.insuredForm;
1051
1160
  insuredFormIndex: number;
1052
1161
  productConditionsForm: ProductConditions;
1053
1162
  productConditionsFormKey: string;
@@ -1058,21 +1167,32 @@ export class FormStoreClass {
1058
1167
  constructor(procuctConditionsTitle?: string) {
1059
1168
  this.additionalInsuranceTerms = [];
1060
1169
  this.additionalInsuranceTermsWithout = [];
1061
- this.signUrl = null;
1170
+ this.signUrls = [];
1171
+ this.epayLink = null;
1172
+ this.invoiceData = null;
1062
1173
  this.affilationResolution = {
1063
1174
  id: null,
1064
1175
  processInstanceId: null,
1065
1176
  number: null,
1066
1177
  date: null,
1067
1178
  };
1179
+ this.finCenterData = {
1180
+ processInstanceId: null,
1181
+ regNumber: null,
1182
+ date: null,
1183
+ };
1068
1184
  this.signedDocumentList = [];
1069
1185
  this.surveyByHealthBase = null;
1186
+ this.surveyByHealthBasePolicyholder = null;
1070
1187
  this.surveyByCriticalBase = null;
1188
+ this.surveyByCriticalBasePolicyholder = null;
1071
1189
  this.surveyByHealthSecond = null;
1072
1190
  this.surveyByCriticalSecond = null;
1073
1191
  this.definedAnswersId = {
1074
1192
  surveyByHealthBase: {},
1075
1193
  surveyByCriticalBase: {},
1194
+ surveyByHealthBasePolicyholder: {},
1195
+ surveyByCriticalBasePolicyholder: {},
1076
1196
  };
1077
1197
  this.birthInfos = [];
1078
1198
  this.SaleChanellPolicy = new Value();
@@ -1106,18 +1226,18 @@ export class FormStoreClass {
1106
1226
  this.isActOwnBehalf = true;
1107
1227
  this.hasRepresentative = false;
1108
1228
  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';
1229
+ this.policyholderForm = new Member();
1230
+ this.policyholderFormKey = StoreMembers.policyholderForm;
1231
+ this.policyholdersRepresentativeForm = new Member();
1232
+ this.policyholdersRepresentativeFormKey = StoreMembers.policyholdersRepresentativeForm;
1233
+ this.beneficiaryForm = [new Member()];
1234
+ this.beneficiaryFormKey = StoreMembers.beneficiaryForm;
1115
1235
  this.beneficiaryFormIndex = 0;
1116
- this.beneficialOwnerForm = [new BeneficialOwnerForm()];
1236
+ this.beneficialOwnerForm = [new Member()];
1117
1237
  this.beneficialOwnerFormIndex = 0;
1118
- this.beneficialOwnerFormKey = 'beneficialOwnerForm';
1119
- this.insuredForm = [new InsuredForm()];
1120
- this.insuredFormKey = 'insuredForm';
1238
+ this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
1239
+ this.insuredForm = [new Member()];
1240
+ this.insuredFormKey = StoreMembers.insuredForm;
1121
1241
  this.insuredFormIndex = 0;
1122
1242
  this.productConditionsForm = new ProductConditions();
1123
1243
  this.productConditionsFormKey = 'productConditionsForm';