hl-core 0.0.8-beta.1 → 0.0.8-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.
@@ -356,6 +356,13 @@ export class Contragent extends Person {
356
356
  }
357
357
 
358
358
  export class Member extends Person {
359
+ response?: {
360
+ contragent?: any;
361
+ questionnaires?: any;
362
+ contacts?: any;
363
+ documents?: any;
364
+ addresses?: any;
365
+ };
359
366
  verifyType: any;
360
367
  verifyDate: any;
361
368
  postIndex: string | null;
@@ -679,7 +686,9 @@ export class ProductConditions {
679
686
  annualIncome: string | null;
680
687
  processIndexRate: Value;
681
688
  requestedSumInsured: number | string | null;
689
+ requestedSumInsuredInDollar: number | string | null;
682
690
  insurancePremiumPerMonth: number | string | null;
691
+ insurancePremiumPerMonthInDollar: number | string | null;
683
692
  establishingGroupDisabilityFromThirdYear: string | null;
684
693
  possibilityToChange: string | null;
685
694
  deathOfInsuredDueToAccident: Value;
@@ -730,6 +739,8 @@ export class ProductConditions {
730
739
  riskGroup = new Value(),
731
740
  riskGroup2 = new Value(),
732
741
  ) {
742
+ this.requestedSumInsuredInDollar = null;
743
+ this.insurancePremiumPerMonthInDollar = null;
733
744
  this.signDate = null;
734
745
  this.birthDate = null;
735
746
  this.gender = new Value();
@@ -764,6 +775,17 @@ export class ProductConditions {
764
775
  }
765
776
  }
766
777
 
778
+ export class MemberSettings {
779
+ has?: boolean;
780
+ isMultiple?: boolean;
781
+ constructor(options?: { has?: boolean; isMultiple?: boolean }) {
782
+ if (options) {
783
+ this.has = options.has;
784
+ this.isMultiple = options.isMultiple;
785
+ }
786
+ }
787
+ }
788
+
767
789
  export class DataStoreClass {
768
790
  // IMP Контроллер фич
769
791
  controls: {
@@ -781,6 +803,15 @@ export class DataStoreClass {
781
803
  hasInsis: boolean;
782
804
  // Калькулятор без ввода данных
783
805
  hasCalculator: boolean;
806
+ // Блок прикрепления к менеджеру
807
+ hasAttachment: boolean;
808
+ };
809
+ members: {
810
+ clientApp: MemberSettings;
811
+ insuredApp: MemberSettings;
812
+ beneficiaryApp: MemberSettings;
813
+ beneficialOwnerApp: MemberSettings;
814
+ spokesmanApp: MemberSettings;
784
815
  };
785
816
  hasLayoutMargins: boolean;
786
817
  readonly product: string | null;
@@ -801,6 +832,7 @@ export class DataStoreClass {
801
832
  items: MenuItem[];
802
833
  };
803
834
  buttons: MenuItem[];
835
+ isButtonsLoading: boolean;
804
836
  panelAction: string | null;
805
837
  panel: {
806
838
  open: boolean;
@@ -839,9 +871,9 @@ export class DataStoreClass {
839
871
  user: User;
840
872
  accessToken: string | null = null;
841
873
  refreshToken: string | null = null;
842
- processCoverTypeSum: any[];
843
- processIndexRate: any[];
844
- processPaymentPeriod: any[];
874
+ processCoverTypeSum: Value[];
875
+ processIndexRate: Value[];
876
+ processPaymentPeriod: Value[];
845
877
  taskList: TaskListItem[];
846
878
  processHistory: TaskHistory[];
847
879
  contragentList: any[];
@@ -850,12 +882,27 @@ export class DataStoreClass {
850
882
  groupCode: string;
851
883
  userGroups: Item[];
852
884
  onMainPage: boolean;
853
- SaleChanellPolicyList: any[];
854
- RegionPolicyList: any[];
855
- ManagerPolicyList: any[];
856
- AgentDataList: any[];
857
- riskGroup: any[];
885
+ SaleChanellPolicy: Value[];
886
+ RegionPolicy: Value[];
887
+ ManagerPolicy: Value[];
888
+ AgentData: AgentData[];
889
+ riskGroup: Value[];
890
+ currencies: {
891
+ eur: number | null;
892
+ usd: number | null;
893
+ };
858
894
  constructor() {
895
+ this.currencies = {
896
+ eur: null,
897
+ usd: null,
898
+ };
899
+ this.members = {
900
+ clientApp: new MemberSettings(),
901
+ insuredApp: new MemberSettings(),
902
+ beneficiaryApp: new MemberSettings(),
903
+ beneficialOwnerApp: new MemberSettings(),
904
+ spokesmanApp: new MemberSettings(),
905
+ };
859
906
  this.controls = {
860
907
  onAuth: false,
861
908
  hasAnketa: true,
@@ -864,15 +911,16 @@ export class DataStoreClass {
864
911
  hasGKB: false,
865
912
  hasInsis: false,
866
913
  hasCalculator: false,
914
+ hasAttachment: true,
867
915
  };
868
916
  this.hasLayoutMargins = true;
869
917
  this.processIndexRate = [];
870
918
  this.processPaymentPeriod = [];
871
919
  this.questionRefs = [];
872
- this.SaleChanellPolicyList = [];
873
- this.RegionPolicyList = [];
874
- this.ManagerPolicyList = [];
875
- this.AgentDataList = [];
920
+ this.SaleChanellPolicy = [];
921
+ this.RegionPolicy = [];
922
+ this.ManagerPolicy = [];
923
+ this.AgentData = [];
876
924
  this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as string) : null;
877
925
  this.showNav = true;
878
926
  this.menuItems = [];
@@ -891,6 +939,7 @@ export class DataStoreClass {
891
939
  items: [],
892
940
  };
893
941
  this.buttons = [];
942
+ this.isButtonsLoading = false;
894
943
  this.panel = {
895
944
  open: false,
896
945
  overlay: false,
@@ -947,27 +996,36 @@ export class DataStoreClass {
947
996
  id: '1',
948
997
  nameKz: '',
949
998
  nameRu: '1',
950
- isDefault: true,
999
+ code: '',
1000
+ ids: '',
951
1001
  },
952
1002
  {
953
1003
  id: '2',
954
1004
  nameKz: '',
955
1005
  nameRu: '2',
1006
+ code: '',
1007
+ ids: '',
956
1008
  },
957
1009
  {
958
1010
  id: '3',
959
1011
  nameKz: '',
960
1012
  nameRu: '3',
1013
+ code: '',
1014
+ ids: '',
961
1015
  },
962
1016
  {
963
1017
  id: '4',
964
1018
  nameKz: '',
965
1019
  nameRu: '4',
1020
+ code: '',
1021
+ ids: '',
966
1022
  },
967
1023
  {
968
1024
  id: '5',
969
1025
  nameKz: '',
970
1026
  nameRu: '5',
1027
+ code: '',
1028
+ ids: '',
971
1029
  },
972
1030
  ];
973
1031
  }
@@ -995,15 +1053,7 @@ export class FormStoreClass {
995
1053
  };
996
1054
  birthInfos: BirthInfoGKB[];
997
1055
  SaleChanellPolicy: Value;
998
- AgentData: {
999
- agentId: null;
1000
- manId: number;
1001
- fullName: string;
1002
- officeId: null;
1003
- officeCode: null;
1004
- saleChannel: string;
1005
- managerName: string;
1006
- };
1056
+ AgentData: AgentData;
1007
1057
  RegionPolicy: Value;
1008
1058
  ManagerPolicy: Value;
1009
1059
  isDisabled: {
@@ -7,6 +7,7 @@ export const constants = Object.freeze({
7
7
  bolashak: 8,
8
8
  liferenta: 9,
9
9
  gons: 10,
10
+ halykkazyna: 11,
10
11
  },
11
12
 
12
13
  editableStatuses: ['StartForm', 'EditBeneficiaryForm', 'EditForm'],
@@ -26,11 +27,12 @@ export const constants = Object.freeze({
26
27
  agentMycar: 'AgentMycar',
27
28
  analyst: 'Analyst',
28
29
  upk: 'UPK',
29
- financeCenter: 'FinanceCenter',
30
+ finCenter: 'FinCenter',
30
31
  supervisor: 'Supervisor',
31
32
  support: 'Support',
32
33
  managerHalykBank: 'ManagerHalykBank',
33
34
  serviceManager: 'ServiceManager',
35
+ drn: 'DRNSJ',
34
36
  },
35
37
  actions: {
36
38
  accept: 'accept',
@@ -62,4 +64,8 @@ export const constants = Object.freeze({
62
64
  Error401: 'Error401',
63
65
  Error500: 'Error500',
64
66
  },
67
+ currencySymbols: {
68
+ kzt: '₸',
69
+ usd: '$',
70
+ },
65
71
  });
@@ -23,6 +23,8 @@ export class Styles {
23
23
 
24
24
  // Yellow
25
25
  yellowText: string = 'text-[#FAB31C]';
26
+ yellowBg: string = 'bg-[#FAB31C]';
27
+ yellowBgHover: string = 'hover:bg-[#FAB31C]';
26
28
 
27
29
  // Grey
28
30
  greyBg: string = 'bg-[#B8B8B8]';
@@ -56,6 +58,7 @@ export class Styles {
56
58
  greenBtn: string;
57
59
  blueBtn: string;
58
60
  redBtn: string;
61
+ yellowBtn: string;
59
62
  whiteBtn: string;
60
63
  blueLightBtn: string;
61
64
 
@@ -66,11 +69,13 @@ export class Styles {
66
69
 
67
70
  // Muted or disabled
68
71
  mutedText: string = 'text-[#99A3B3]';
72
+ disabled: string = 'cursor-not-allowed opacity-50';
69
73
 
70
74
  constructor() {
71
75
  // Button
72
76
  this.greenBtn = `${this.greenBg} ${this.whiteText} ${this.textTitle} ${this.rounded} w-full ${this.greenBgHover}`;
73
77
  this.redBtn = `${this.redBg} ${this.whiteText} ${this.textTitle} ${this.rounded} w-full ${this.redBgHover}`;
78
+ this.yellowBtn = `${this.yellowBg} ${this.whiteText} ${this.textTitle} ${this.rounded} w-full ${this.yellowBgHover}`;
74
79
  this.blueBtn = `${this.blueBg} ${this.whiteText} ${this.textTitle} ${this.rounded} w-full ${this.blueBgHover}`;
75
80
  this.whiteBtn = ` ${this.blackText} ${this.textTitle} ${this.rounded} w-full ${this.blueLightBgHover}`;
76
81
  this.blueLightBtn = `${this.blueBgLight} ${this.greyTextLight} ${this.textTitle} ${this.rounded} w-full ${this.blueBgLightHover}`;
@@ -0,0 +1,19 @@
1
+ import { createI18n } from 'vue-i18n';
2
+ import en from '@/locales/en.json';
3
+ import ru from '@/locales/ru.json';
4
+ import kz from '@/locales/kz.json';
5
+
6
+ const instance = createI18n({
7
+ legacy: false,
8
+ globalInjection: true,
9
+ locale: 'ru',
10
+ messages: {
11
+ en,
12
+ ru,
13
+ kz,
14
+ },
15
+ });
16
+
17
+ export default instance;
18
+
19
+ export const i18n = instance.global;