hl-core 0.0.8-beta.4 → 0.0.8-beta.40

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 (61) hide show
  1. package/api/index.ts +117 -44
  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 +77 -33
  9. package/components/Form/FormSection.vue +4 -1
  10. package/components/Form/FormToggle.vue +2 -3
  11. package/components/Form/ManagerAttachment.vue +197 -0
  12. package/components/Form/ProductConditionsBlock.vue +60 -10
  13. package/components/Input/Datepicker.vue +6 -2
  14. package/components/Input/FileInput.vue +2 -2
  15. package/components/Input/FormInput.vue +29 -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 +3 -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 +51 -33
  27. package/components/Pages/Auth.vue +139 -46
  28. package/components/Pages/Documents.vue +6 -6
  29. package/components/Pages/InvoiceInfo.vue +30 -0
  30. package/components/Pages/MemberForm.vue +533 -292
  31. package/components/Pages/ProductAgreement.vue +4 -2
  32. package/components/Pages/ProductConditions.vue +509 -99
  33. package/components/Panel/PanelHandler.vue +93 -20
  34. package/components/Panel/PanelSelectItem.vue +1 -1
  35. package/components/Utilities/Chip.vue +27 -0
  36. package/components/Utilities/JsonViewer.vue +27 -0
  37. package/composables/axios.ts +1 -1
  38. package/composables/classes.ts +217 -97
  39. package/composables/constants.ts +26 -52
  40. package/composables/index.ts +80 -2
  41. package/composables/styles.ts +8 -3
  42. package/configs/i18n.ts +17 -0
  43. package/layouts/default.vue +6 -6
  44. package/locales/kz.json +585 -0
  45. package/locales/ru.json +587 -0
  46. package/nuxt.config.ts +9 -1
  47. package/package.json +41 -11
  48. package/pages/500.vue +2 -2
  49. package/pages/Token.vue +51 -0
  50. package/plugins/helperFunctionsPlugins.ts +3 -0
  51. package/plugins/storePlugin.ts +0 -1
  52. package/plugins/vuetifyPlugin.ts +8 -1
  53. package/store/data.store.ts +2649 -0
  54. package/store/form.store.ts +1 -1
  55. package/store/member.store.ts +164 -52
  56. package/store/{rules.js → rules.ts} +63 -25
  57. package/types/enum.ts +83 -0
  58. package/types/env.d.ts +10 -0
  59. package/types/index.ts +211 -7
  60. package/store/data.store.js +0 -2508
  61. package/store/messages.ts +0 -434
@@ -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;
@@ -802,7 +853,7 @@ export class DataStoreClass {
802
853
  };
803
854
  buttons: MenuItem[];
804
855
  isButtonsLoading: boolean;
805
- panelAction: string | null;
856
+ panelAction: keyof typeof constants.actions | null;
806
857
  panel: {
807
858
  open: boolean;
808
859
  overlay: boolean;
@@ -828,6 +879,7 @@ export class DataStoreClass {
828
879
  documentIssuers: Value[];
829
880
  familyStatuses: Value[];
830
881
  relations: Value[];
882
+ insurancePay: Value[];
831
883
  questionRefs: Value[];
832
884
  residents: Value[];
833
885
  ipdl: 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(),
@@ -924,6 +1020,7 @@ export class DataStoreClass {
924
1020
  this.documentIssuers = [];
925
1021
  this.familyStatuses = [];
926
1022
  this.relations = [];
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
  }
@@ -980,32 +1085,34 @@ export class FormStoreClass {
980
1085
  additionalInsuranceTermsWithout: AddCover[];
981
1086
  signUrls: SignUrlType[];
982
1087
  epayLink: string | null;
1088
+ invoiceData: EpayResponse | null;
983
1089
  affilationResolution: {
984
1090
  id: string | number | null;
985
1091
  processInstanceId: string | number | null;
986
1092
  number: string | number | null;
987
- 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;
988
1099
  };
989
1100
  signedDocumentList: IDocument[];
990
1101
  surveyByHealthBase: AnketaFirst | null;
1102
+ surveyByHealthBasePolicyholder: AnketaFirst | null;
991
1103
  surveyByCriticalBase: AnketaFirst | null;
1104
+ surveyByCriticalBasePolicyholder: AnketaFirst | null;
992
1105
  surveyByHealthSecond: AnketaSecond[] | null;
993
1106
  surveyByCriticalSecond: AnketaSecond[] | null;
994
1107
  definedAnswersId: {
995
1108
  surveyByHealthBase: any;
996
1109
  surveyByCriticalBase: any;
1110
+ surveyByHealthBasePolicyholder: any;
1111
+ surveyByCriticalBasePolicyholder: any;
997
1112
  };
998
1113
  birthInfos: BirthInfoGKB[];
999
1114
  SaleChanellPolicy: Value;
1000
- AgentData: {
1001
- agentId: null;
1002
- manId: number;
1003
- fullName: string;
1004
- officeId: null;
1005
- officeCode: null;
1006
- saleChannel: string;
1007
- managerName: string;
1008
- };
1115
+ AgentData: AgentData;
1009
1116
  RegionPolicy: Value;
1010
1117
  ManagerPolicy: Value;
1011
1118
  isDisabled: {
@@ -1029,26 +1136,29 @@ export class FormStoreClass {
1029
1136
  isPolicyholderIPDL: boolean = false;
1030
1137
  applicationData: {
1031
1138
  processInstanceId: number | string;
1032
- statusCode?: string | null;
1139
+ statusCode?: keyof typeof Statuses;
1033
1140
  clientApp?: any;
1034
1141
  insuredApp?: any;
1035
1142
  beneficiaryApp?: any;
1036
1143
  beneficialOwnerApp?: any;
1037
1144
  spokesmanApp?: any;
1038
1145
  isTask?: boolean | null;
1146
+ policyAppDto?: PolicyAppDto;
1147
+ insisWorkDataApp?: InsisWorkDataApp;
1148
+ addCoverDto?: AddCover[];
1039
1149
  };
1040
- policyholderForm: PolicyholderForm;
1041
- policyholderFormKey: string;
1042
- policyholdersRepresentativeForm: PolicyholdersRepresentativeForm;
1043
- policyholdersRepresentativeFormKey: string;
1044
- beneficiaryForm: BeneficiaryForm[];
1045
- beneficiaryFormKey: string;
1150
+ policyholderForm: Member;
1151
+ policyholderFormKey: StoreMembers.policyholderForm;
1152
+ policyholdersRepresentativeForm: Member;
1153
+ policyholdersRepresentativeFormKey: StoreMembers.policyholdersRepresentativeForm;
1154
+ beneficiaryForm: Member[];
1155
+ beneficiaryFormKey: StoreMembers.beneficiaryForm;
1046
1156
  beneficiaryFormIndex: number;
1047
- beneficialOwnerForm: BeneficialOwnerForm[];
1157
+ beneficialOwnerForm: Member[];
1048
1158
  beneficialOwnerFormIndex: number;
1049
- beneficialOwnerFormKey: string;
1050
- insuredForm: InsuredForm[];
1051
- insuredFormKey: string;
1159
+ beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
1160
+ insuredForm: Member[];
1161
+ insuredFormKey: StoreMembers.insuredForm;
1052
1162
  insuredFormIndex: number;
1053
1163
  productConditionsForm: ProductConditions;
1054
1164
  productConditionsFormKey: string;
@@ -1061,20 +1171,30 @@ export class FormStoreClass {
1061
1171
  this.additionalInsuranceTermsWithout = [];
1062
1172
  this.signUrls = [];
1063
1173
  this.epayLink = null;
1174
+ this.invoiceData = null;
1064
1175
  this.affilationResolution = {
1065
1176
  id: null,
1066
1177
  processInstanceId: null,
1067
1178
  number: null,
1068
1179
  date: null,
1069
1180
  };
1181
+ this.finCenterData = {
1182
+ processInstanceId: null,
1183
+ regNumber: null,
1184
+ date: null,
1185
+ };
1070
1186
  this.signedDocumentList = [];
1071
1187
  this.surveyByHealthBase = null;
1188
+ this.surveyByHealthBasePolicyholder = null;
1072
1189
  this.surveyByCriticalBase = null;
1190
+ this.surveyByCriticalBasePolicyholder = null;
1073
1191
  this.surveyByHealthSecond = null;
1074
1192
  this.surveyByCriticalSecond = null;
1075
1193
  this.definedAnswersId = {
1076
1194
  surveyByHealthBase: {},
1077
1195
  surveyByCriticalBase: {},
1196
+ surveyByHealthBasePolicyholder: {},
1197
+ surveyByCriticalBasePolicyholder: {},
1078
1198
  };
1079
1199
  this.birthInfos = [];
1080
1200
  this.SaleChanellPolicy = new Value();
@@ -1108,18 +1228,18 @@ export class FormStoreClass {
1108
1228
  this.isActOwnBehalf = true;
1109
1229
  this.hasRepresentative = false;
1110
1230
  this.applicationData = { processInstanceId: 0 };
1111
- this.policyholderForm = new PolicyholderForm();
1112
- this.policyholderFormKey = 'policyholderForm';
1113
- this.policyholdersRepresentativeForm = new PolicyholdersRepresentativeForm();
1114
- this.policyholdersRepresentativeFormKey = 'policyholdersRepresentativeForm';
1115
- this.beneficiaryForm = [new BeneficiaryForm()];
1116
- 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;
1117
1237
  this.beneficiaryFormIndex = 0;
1118
- this.beneficialOwnerForm = [new BeneficialOwnerForm()];
1238
+ this.beneficialOwnerForm = [new Member()];
1119
1239
  this.beneficialOwnerFormIndex = 0;
1120
- this.beneficialOwnerFormKey = 'beneficialOwnerForm';
1121
- this.insuredForm = [new InsuredForm()];
1122
- this.insuredFormKey = 'insuredForm';
1240
+ this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
1241
+ this.insuredForm = [new Member()];
1242
+ this.insuredFormKey = StoreMembers.insuredForm;
1123
1243
  this.insuredFormIndex = 0;
1124
1244
  this.productConditionsForm = new ProductConditions();
1125
1245
  this.productConditionsFormKey = 'productConditionsForm';
@@ -1,66 +1,40 @@
1
+ import { Actions, PostActions, Roles, Statuses } from '../types/enum';
2
+
1
3
  export const constants = Object.freeze({
2
4
  products: {
3
- pensionannuity: 1,
4
5
  baiterek: 3,
5
6
  halykmycar: 5,
6
7
  lifetrip: 7,
7
8
  bolashak: 8,
8
9
  liferenta: 9,
9
10
  gons: 10,
11
+ halykkazyna: 11,
10
12
  },
11
-
12
- editableStatuses: ['StartForm', 'EditBeneficiaryForm', 'EditForm'],
13
- documentsLinkVisibleStatuses: ['DocumentsSignedFrom', 'UnderwriterForm', 'AffilationResolutionForm', 'Completed', 'InsurancePremiumOnlinePaid'],
13
+ editableStatuses: [Statuses.StartForm, Statuses.EditBeneficiaryForm, Statuses.EditForm],
14
+ documentsLinkVisibleStatuses: [
15
+ Statuses.DocumentsSignedFrom,
16
+ Statuses.UnderwriterForm,
17
+ Statuses.AffilationResolutionForm,
18
+ Statuses.Completed,
19
+ Statuses.InsurancePremiumOnlinePaid,
20
+ ],
21
+ returnStatementStatuses: [Statuses.DocumentsSignedFrom, Statuses.ContractSignedFrom, Statuses.WaitingInsurancePremiumForm, Statuses.UnderwriterForm],
22
+ cancelApplicationStatuses: [
23
+ Statuses.StartForm,
24
+ Statuses.EditForm,
25
+ Statuses.EditBeneficiaryForm,
26
+ Statuses.WaitingInsurancePremiumForm,
27
+ Statuses.DocumentsSignedFrom,
28
+ Statuses.ContractSignedFrom,
29
+ ],
14
30
  gbdErrors: ['INVALID', 'TIMEOUT', 'ERROR', 'NOT_FOUND'],
15
- types: {
16
- string: 'string',
17
- array: 'object',
18
- object: 'object',
19
- },
20
- roles: {
21
- manager: 'Manager',
22
- admin: 'Admin',
23
- underwriter: 'Underwriter',
24
- agent: 'Agent',
25
- compliance: 'Compliance',
26
- agentMycar: 'AgentMycar',
27
- analyst: 'Analyst',
28
- upk: 'UPK',
29
- financeCenter: 'FinanceCenter',
30
- supervisor: 'Supervisor',
31
- support: 'Support',
32
- managerHalykBank: 'ManagerHalykBank',
33
- serviceManager: 'ServiceManager',
34
- drn: 'DRNSJ',
35
- },
36
- actions: {
37
- accept: 'accept',
38
- rejectclient: 'rejectclient',
39
- reject: 'reject',
40
- return: 'return',
41
- claim: 'claim',
42
- sign: 'sign',
43
- pay: 'pay',
44
- },
31
+ roles: Roles,
32
+ actions: Actions,
33
+ postActions: PostActions,
45
34
  yearCases: [2, 0, 1, 1, 1, 2],
46
35
  yearTitles: ['год', 'года', 'лет'],
47
- panelActions: {
48
- accept: 'accept',
49
- claim: 'claim',
50
- return: 'return',
51
- reject: 'reject',
52
- rejectclient: 'rejectclient',
53
- },
54
- postActions: {
55
- font: 'font',
56
- route: 'route',
57
- applicationCreated: 'applicationCreated',
58
- clipboard: 'clipboard',
59
- toHomePage: 'toHomePage',
60
- toStatementHistory: 'toStatementHistory',
61
- toAuth: 'toAuth',
62
- DOMevent: 'DOMevent',
63
- Error401: 'Error401',
64
- Error500: 'Error500',
36
+ currencySymbols: {
37
+ kzt: '',
38
+ usd: '$',
65
39
  },
66
40
  });