hl-core 0.0.9-beta.35 → 0.0.9-beta.36

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.
package/api/base.api.ts CHANGED
@@ -812,6 +812,16 @@ export class ApiClass {
812
812
  });
813
813
  }
814
814
 
815
+ async getBeneficialOwnerData<T>(beneficiaryId: string) {
816
+ return await this.axiosCall<T>({
817
+ method: Methods.GET,
818
+ url: `/${this.productUrl}/api/Application/GetBeneficialOwnerData`,
819
+ params: {
820
+ beneficiaryId,
821
+ },
822
+ });
823
+ }
824
+
815
825
  async saveClientData<T>(clientId: string, data: T) {
816
826
  return await this.axiosCall({
817
827
  method: Methods.POST,
@@ -847,6 +857,18 @@ export class ApiClass {
847
857
  });
848
858
  }
849
859
 
860
+ async saveBeneficialOwnerData<T>(processInstanceId: string, benificiaryId: string, data: T) {
861
+ return await this.axiosCall({
862
+ method: Methods.POST,
863
+ url: `/${this.productUrl}/api/Application/SaveBeneficialOwner`,
864
+ params: {
865
+ processInstanceId,
866
+ benificiaryId,
867
+ },
868
+ data: data,
869
+ });
870
+ }
871
+
850
872
  async setApplicationData(data: SetApplicationRequest) {
851
873
  return await this.axiosCall({
852
874
  method: Methods.POST,
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="h-[74px] !pl-2 md:!pl-5 flex items-center justify-start gap-4"
3
+ class="min-h-[74px] !pl-2 md:!pl-5 flex items-center justify-start gap-5"
4
4
  :class="[$styles.whiteBg, hasBorder ? 'border-[1px] rounded-lg' : 'border-b-[1px] border-b-[#f3f6fc] rounded']"
5
5
  >
6
6
  <v-switch
@@ -14,8 +14,10 @@
14
14
  hide-details
15
15
  :disabled="disabled"
16
16
  />
17
- <p :class="[$styles.textSimple]">{{ `${title}` }}</p>
18
- <p class="mr-3" :class="[modelValue ? $styles.greenText : '', $styles.textSimple]">{{ `${modelValue ? $dataStore.t('confirm.yes') : $dataStore.t('confirm.no')}` }}</p>
17
+ <p class="p-2" :class="[$styles.textSimple]">{{ `${title}` }}</p>
18
+ <p v-if="showValue" class="mr-3" :class="[modelValue ? $styles.greenText : '', $styles.textSimple]">
19
+ {{ `${modelValue ? $dataStore.t('confirm.yes') : $dataStore.t('confirm.no')}` }}
20
+ </p>
19
21
  </div>
20
22
  </template>
21
23
 
@@ -38,6 +40,10 @@ export default defineComponent({
38
40
  type: Boolean,
39
41
  default: true,
40
42
  },
43
+ showValue: {
44
+ type: Boolean,
45
+ default: true,
46
+ },
41
47
  },
42
48
  emits: ['update:modelValue', 'clicked'],
43
49
  });
@@ -513,7 +513,7 @@
513
513
  :clearable="!isDisabled"
514
514
  :rules="whichForm === formStore.beneficiaryFormKey || member.isInsuredUnderage ? [] : $rules.phoneFormat"
515
515
  />
516
- <base-form-input v-model.trim="member.email" :label="$dataStore.t('form.email')" :rules="$rules.email" />
516
+ <base-form-input v-model.trim="member.email" :label="$dataStore.t('form.email')" :readonly="isDisabled" :clearable="!isDisabled" :rules="$rules.email" />
517
517
  </base-form-section>
518
518
  </v-form>
519
519
  <base-btn v-if="showSaveButton" :loading="isButtonLoading || isSubmittingForm" :text="$dataStore.t('buttons.save')" @click="submitForm" />
@@ -576,7 +576,7 @@ export class Member extends Person {
576
576
  this.isDisability = isDisability;
577
577
  this.disabilityGroup = disabilityGroupId;
578
578
  this.percentageOfPayoutAmount = percentageOfPayoutAmount;
579
- this._cyrPattern = /[\u0400-\u04FF]+/;
579
+ this._cyrPattern = /[\u0400-\u04FF -]+/;
580
580
  this._numPattern = /[0-9]+/;
581
581
  this._phonePattern = /\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/;
582
582
  this._emailPattern = /.+@.+\..+/;
@@ -1230,7 +1230,13 @@ export class FormStoreClass {
1230
1230
  signedContractFormData: any;
1231
1231
  lfb: {
1232
1232
  clients: ClientV2[];
1233
- policyholder: MemberV2;
1233
+ policyholder: {
1234
+ isIpdl: boolean;
1235
+ clientData: {
1236
+ company: MemberV2;
1237
+ authoritedPerson: MemberV2;
1238
+ };
1239
+ };
1234
1240
  hasAccidentIncidents: boolean;
1235
1241
  accidentIncidents: AccidentIncidents[];
1236
1242
  policyholderActivities: PolicyholderActivity[];
@@ -1336,7 +1342,13 @@ export class FormStoreClass {
1336
1342
  this.signedContractFormData = null;
1337
1343
  this.lfb = {
1338
1344
  clients: [],
1339
- policyholder: new MemberV2(),
1345
+ policyholder: {
1346
+ isIpdl: false,
1347
+ clientData: {
1348
+ company: new MemberV2(),
1349
+ authoritedPerson: new MemberV2(),
1350
+ },
1351
+ },
1340
1352
  hasAccidentIncidents: true,
1341
1353
  policyholderActivities: [new PolicyholderActivity()],
1342
1354
  beneficialOwners: [new BeneficialOwner()],
@@ -1433,15 +1445,19 @@ export class FormStoreClass {
1433
1445
  export class MemberV2 {
1434
1446
  iin: string | null;
1435
1447
  phoneNumber: string | null;
1436
- firstName: string | null;
1437
- middleName: string | null;
1438
- lastName: string | null;
1448
+ firstName?: string | null;
1449
+ middleName?: string | null;
1450
+ lastName?: string | null;
1451
+ name?: string | null;
1452
+ longName?: string | null;
1453
+ nameKz?: string | null;
1454
+ longNameKz?: string | null;
1439
1455
  citizenship: Value;
1440
1456
  email: string | null;
1441
1457
  resident: Value;
1442
1458
  taxResidentCountry: Value;
1443
1459
  economySectorCode: Value;
1444
- isPublicPerson: boolean;
1460
+ isActualAddressEqualLegalAddres: boolean;
1445
1461
  identityDocument?: {
1446
1462
  documentType: Value;
1447
1463
  documentNumber: string | null;
@@ -1456,7 +1472,7 @@ export class MemberV2 {
1456
1472
  bik: string | null;
1457
1473
  kbe: string | null;
1458
1474
  };
1459
- workDetails: {
1475
+ workDetails?: {
1460
1476
  workplace: string | null;
1461
1477
  position: string | null;
1462
1478
  jobDuties: string | null;
@@ -1466,26 +1482,14 @@ export class MemberV2 {
1466
1482
  documentNumber: string | null;
1467
1483
  date: string | null;
1468
1484
  };
1469
- organizationInfo: {
1470
- bin: string | null;
1471
- organizationName: string | null;
1472
- kbe: string | null;
1473
- resident: Value;
1474
- taxResidentCountry: Value;
1475
- economySectorCode: Value;
1476
- typeOfEconomicActivity: string | null;
1477
- organizationPhone: string | null;
1478
- organizationEmail: string | null;
1479
- organizationInternetResource: string | null;
1480
- organizationStartDate: string | null;
1481
- isActualAddressEqualLegalAddres: boolean;
1482
- organizationLegalAddress: Address;
1483
- organizationActualAddress: Address;
1484
- activityTypes: {
1485
- activityTypeName: string | null;
1486
- empoloyeeCount: number | null;
1487
- }[];
1488
- };
1485
+ kbe: string | null;
1486
+ typeOfEconomicActivity: string | null;
1487
+ legalAddress: Address;
1488
+ actualAddress: Address;
1489
+ activityTypes: {
1490
+ activityTypeName: string | null;
1491
+ empoloyeeCount: number | null;
1492
+ }[];
1489
1493
  isLeader?: boolean;
1490
1494
  beneficalOwnerQuest?: {
1491
1495
  order: number;
@@ -1498,12 +1502,16 @@ export class MemberV2 {
1498
1502
  this.firstName = null;
1499
1503
  this.middleName = null;
1500
1504
  this.lastName = null;
1505
+ this.name = null;
1506
+ this.longName = null;
1507
+ this.nameKz = null;
1508
+ this.longNameKz = null;
1501
1509
  this.citizenship = new Value();
1502
1510
  this.email = null;
1503
1511
  this.resident = new Value();
1504
1512
  this.taxResidentCountry = new Value();
1505
1513
  this.economySectorCode = new Value();
1506
- this.isPublicPerson = false;
1514
+ this.isActualAddressEqualLegalAddres = true;
1507
1515
  this.identityDocument = {
1508
1516
  documentType: new Value(),
1509
1517
  documentNumber: null,
@@ -1528,28 +1536,16 @@ export class MemberV2 {
1528
1536
  documentNumber: null,
1529
1537
  date: null,
1530
1538
  };
1531
- this.organizationInfo = {
1532
- bin: null,
1533
- organizationName: null,
1534
- kbe: null,
1535
- resident: new Value(),
1536
- taxResidentCountry: new Value(),
1537
- economySectorCode: new Value(),
1538
- typeOfEconomicActivity: null,
1539
- organizationPhone: null,
1540
- organizationEmail: null,
1541
- organizationInternetResource: null,
1542
- organizationStartDate: null,
1543
- isActualAddressEqualLegalAddres: true,
1544
- organizationLegalAddress: new Address(),
1545
- organizationActualAddress: new Address(),
1546
- activityTypes: [
1547
- {
1548
- activityTypeName: null,
1549
- empoloyeeCount: null,
1550
- },
1551
- ],
1552
- };
1539
+ this.kbe = null;
1540
+ this.typeOfEconomicActivity = null;
1541
+ this.legalAddress = new Address();
1542
+ this.actualAddress = new Address();
1543
+ this.activityTypes = [
1544
+ {
1545
+ activityTypeName: null,
1546
+ empoloyeeCount: null,
1547
+ },
1548
+ ];
1553
1549
  this.isLeader = false;
1554
1550
  this.beneficalOwnerQuest = [
1555
1551
  {
@@ -1630,7 +1626,7 @@ export class BeneficialOwner {
1630
1626
  this.insisId = 0;
1631
1627
  this.iin = null;
1632
1628
  this.longName = null;
1633
- this.isIpdl = true;
1629
+ this.isIpdl = false;
1634
1630
  this.isTerror = true;
1635
1631
  this.isIpdlCompliance = true;
1636
1632
  this.isTerrorCompliance = true;
@@ -2,6 +2,7 @@ import { Actions, PostActions, Roles, Statuses } from '../types/enum';
2
2
 
3
3
  export const constants = Object.freeze({
4
4
  products: {
5
+ pensionannuity: 1,
5
6
  baiterek: 3,
6
7
  halykmycar: 5,
7
8
  lifetrip: 7,
package/locales/ru.json CHANGED
@@ -146,6 +146,7 @@
146
146
  "createStatement": "Создать заявку",
147
147
  "add": "Добавить",
148
148
  "addRelative": "Добавить родственника",
149
+ "addRiskPoint": "Добавить уровень риска",
149
150
  "deleteAML": "Исключить",
150
151
  "deleteRelative": "Исключить родственника",
151
152
  "editRelative": "Изменить родственника",
@@ -483,7 +484,9 @@
483
484
  "sum": "Минимальная сумма",
484
485
  "changes": "Кол-во изменений",
485
486
  "termDays": "Срок договора в днях",
486
- "termYears": "Срок договора в годах"
487
+ "termYears": "Срок договора в годах",
488
+ "notResident": "Не резидент",
489
+ "uploadExcel": "Загрузить excel файл"
487
490
  },
488
491
  "agent": {
489
492
  "currency": "Валюта",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.35",
3
+ "version": "0.0.9-beta.36",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -28,8 +28,8 @@
28
28
  "dev": "nuxt dev",
29
29
  "generate": "nuxt generate",
30
30
  "preview": "nuxt preview",
31
- "tk:all": "cd .. && cd amuletlife && yarn typecheck && cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calculator && yarn typecheck && cd .. && cd daskamkorlyk && yarn typecheck && cd .. && cd efo && yarn typecheck && cd .. && cd gons && yarn typecheck && cd .. && cd kazyna && yarn typecheck && cd .. && cd lifebusiness && yarn typecheck && cd .. && cd liferenta && yarn typecheck && cd .. && cd lifetrip && yarn typecheck && cd .. && cd core",
32
- "i:all": "cd .. && cd amuletlife && yarn && cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calculator && yarn && cd .. && cd daskamkorlyk && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd kazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd liferenta && yarn && cd .. && cd lifetrip && yarn && cd .. && cd core",
31
+ "tk:all": "cd .. && cd amuletlife && yarn typecheck && cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calculator && yarn typecheck && cd .. && cd daskamkorlyk && yarn typecheck && cd .. && cd efo && yarn typecheck && cd .. && cd gons && yarn typecheck && cd .. && cd kazyna && yarn typecheck && cd .. && cd lifebusiness && yarn typecheck && cd .. && cd liferenta && yarn typecheck && cd .. && cd lifetrip && yarn typecheck && cd .. && cd pensionannuity && yarn typecheck && cd .. && cd core",
32
+ "i:all": "cd .. && cd amuletlife && yarn && cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calculator && yarn && cd .. && cd daskamkorlyk && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd kazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd liferenta && yarn && cd .. && cd lifetrip && yarn && cd .. && cd pensionannuity && yarn && cd .. && cd core",
33
33
  "update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
34
34
  "update:aml": "cd ../../aml/aml && yarn && cd ../checkcontract && yarn && cd ../checkcontragent && yarn && cd.. && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd ../efo/core",
35
35
  "update:lka": "cd .. && cd lka && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
@@ -46,6 +46,7 @@ export const useDataStore = defineStore('data', {
46
46
  isGons: state => state.product === 'gons',
47
47
  isKazyna: state => state.product === 'halykkazyna',
48
48
  isDas: state => state.product === 'daskamkorlyk',
49
+ isPension: state => state.product === 'pensionannuity',
49
50
  isAmulet: state => state.product === 'amuletlife',
50
51
  isCalculator: state => state.product === 'calculator',
51
52
  isCheckContract: state => state.product === 'checkcontract',
@@ -1244,31 +1245,80 @@ export const useDataStore = defineStore('data', {
1244
1245
  async getAdditionalTaxCountries() {
1245
1246
  return await this.getFromApi('addTaxCountries', 'getAdditionalTaxCountries');
1246
1247
  },
1247
- async getStates(key?: string, member?: Member) {
1248
+ async getStates(key?: string, member?: Member, keys?: { key?: string; deepKey?: string; subDeepKey?: string }) {
1248
1249
  await this.getFromApi('states', 'getStates');
1249
- //@ts-ignore
1250
- if (key && member[key] && member[key].ids !== null) return this.states.filter((i: Value) => i.code === member[key].ids);
1250
+ if (!!keys) {
1251
+ if (!!keys.key) {
1252
+ if (!!keys.deepKey) {
1253
+ if (!!keys.subDeepKey) {
1254
+ //@ts-ignore
1255
+ return this.states.filter(i => i.code === member[keys.key][keys.deepKey][keys.subDeepKey].ids);
1256
+ } else {
1257
+ //@ts-ignore
1258
+ return this.states.filter(i => i.code === member[keys.key][keys.deepKey].ids);
1259
+ }
1260
+ } else {
1261
+ //@ts-ignore
1262
+ return this.states.filter(i => i.code === member[keys.key].ids);
1263
+ }
1264
+ }
1265
+ } else {
1266
+ //@ts-ignore
1267
+ if (key && member[key] && member[key].ids !== null) return this.states.filter((i: Value) => i.code === member[key].ids);
1268
+ }
1251
1269
  return this.states;
1252
1270
  },
1253
- async getRegions(key?: string, member?: Member) {
1271
+ async getRegions(key?: string, member?: Member, keys?: { key?: string; deepKey?: string; subDeepKey?: string }) {
1254
1272
  await this.getFromApi('regions', 'getRegions');
1255
- //@ts-ignore
1256
- if (key && member[key] && member[key].ids !== null) return this.regions.filter((i: Value) => i.code === member[key].ids);
1257
- if (member && member.registrationProvince.ids !== null) {
1258
- return this.regions.filter((i: Value) => i.code === member.registrationProvince.ids);
1273
+ if (!!keys) {
1274
+ if (!!keys.key) {
1275
+ if (!!keys.deepKey) {
1276
+ if (!!keys.subDeepKey) {
1277
+ //@ts-ignore
1278
+ return this.regions.filter(i => i.code === member[keys.key][keys.deepKey][keys.subDeepKey].ids);
1279
+ } else {
1280
+ //@ts-ignore
1281
+ return this.regions.filter(i => i.code === member[keys.key][keys.deepKey].ids);
1282
+ }
1283
+ } else {
1284
+ //@ts-ignore
1285
+ return this.regions.filter(i => i.code === member[keys.key].ids);
1286
+ }
1287
+ }
1259
1288
  } else {
1260
- return this.regions;
1289
+ //@ts-ignore
1290
+ if (key && member[key] && member[key].ids !== null) return this.regions.filter((i: Value) => i.code === member[key].ids);
1291
+ if (member && member.registrationProvince.ids !== null) {
1292
+ return this.regions.filter((i: Value) => i.code === member.registrationProvince.ids);
1293
+ }
1261
1294
  }
1295
+ return this.regions;
1262
1296
  },
1263
- async getCities(key?: string, member?: Member) {
1297
+ async getCities(key?: string, member?: Member, keys?: { key?: string; deepKey?: string; subDeepKey?: string }) {
1264
1298
  await this.getFromApi('cities', 'getCities');
1265
- //@ts-ignore
1266
- if (key && member[key] && member[key].ids !== null) return this.cities.filter((i: Value) => i.code === member[key].ids);
1267
- if (member && member.registrationProvince.ids !== null) {
1268
- return this.cities.filter((i: Value) => i.code === member.registrationProvince.ids);
1299
+ if (!!keys) {
1300
+ if (!!keys.key) {
1301
+ if (!!keys.deepKey) {
1302
+ if (!!keys.subDeepKey) {
1303
+ //@ts-ignore
1304
+ return this.cities.filter(i => i.code === member[keys.key][keys.deepKey][keys.subDeepKey].ids);
1305
+ } else {
1306
+ //@ts-ignore
1307
+ return this.cities.filter(i => i.code === member[keys.key][keys.deepKey].ids);
1308
+ }
1309
+ } else {
1310
+ //@ts-ignore
1311
+ return this.cities.filter(i => i.code === member[keys.key].ids);
1312
+ }
1313
+ }
1269
1314
  } else {
1270
- return this.cities;
1315
+ //@ts-ignore
1316
+ if (key && member[key] && member[key].ids !== null) return this.cities.filter((i: Value) => i.code === member[key].ids);
1317
+ if (member && member.registrationProvince.ids !== null) {
1318
+ return this.cities.filter((i: Value) => i.code === member.registrationProvince.ids);
1319
+ }
1271
1320
  }
1321
+ return this.cities;
1272
1322
  },
1273
1323
  async getCitiesEfo(key?: string, member?: MemberV2, parentKey?: string) {
1274
1324
  if (this.isLifeBusiness) {
@@ -3043,8 +3093,8 @@ export const useDataStore = defineStore('data', {
3043
3093
  if (economySectorCode) member.economySectorCode = economySectorCode;
3044
3094
  },
3045
3095
  async startApplicationV2(data: any) {
3046
- const policyholder = data.clientData as MemberV2;
3047
- if (!policyholder.iin) return false;
3096
+ const policyholder = data.clientData;
3097
+ if (!policyholder.authoritedPerson.iin) return false;
3048
3098
  try {
3049
3099
  const response = await this.api.startApplication(data);
3050
3100
  this.sendToParent(constants.postActions.applicationCreated, response.processInstanceId);
@@ -3053,10 +3103,9 @@ export const useDataStore = defineStore('data', {
3053
3103
  return ErrorHandler(err);
3054
3104
  }
3055
3105
  },
3056
- async saveClient(policyholder: MemberV2) {
3106
+ async saveClient(policyholder: any) {
3057
3107
  try {
3058
- this.formStore.applicationData.clientApp.clientData = policyholder;
3059
- await this.api.saveClient(this.formStore.applicationData.processInstanceId, this.formStore.lfb.clientId, this.formStore.applicationData.clientApp);
3108
+ await this.api.saveClient(this.formStore.applicationData.processInstanceId, this.formStore.lfb.clientId, policyholder);
3060
3109
  } catch (err) {
3061
3110
  return ErrorHandler(err);
3062
3111
  }
@@ -3094,18 +3143,21 @@ export const useDataStore = defineStore('data', {
3094
3143
  const clientId = applicationData.clientApp.id;
3095
3144
 
3096
3145
  this.formStore.applicationData.processInstanceId = applicationData.processInstanceId;
3097
- this.formStore.lfb.policyholder = clientData;
3098
- this.formStore.lfb.policyholder.iin = reformatIin(clientData.iin);
3146
+ this.formStore.lfb.policyholder.isIpdl = applicationData.clientApp.isIpdl;
3147
+ this.formStore.lfb.policyholder.clientData.company = clientData;
3148
+ this.formStore.lfb.policyholder.clientData.authoritedPerson = clientData.authoritedPerson;
3149
+ this.formStore.lfb.policyholder.clientData.company.iin = reformatIin(clientData.iin);
3150
+ this.formStore.lfb.policyholder.clientData.authoritedPerson.iin = reformatIin(clientData.authoritedPerson.iin);
3099
3151
  this.formStore.lfb.clientId = clientId;
3100
- this.formStore.lfb.policyholder.authorityDetails.date = reformatDate(clientData.authorityDetails.date);
3152
+ this.formStore.lfb.policyholder.clientData.company.authorityDetails.date = reformatDate(clientData.authorityDetails.date);
3101
3153
 
3102
- if (clientData && clientData.organizationInfo.activityTypes !== null) {
3103
- this.formStore.lfb.policyholderActivities = clientData.organizationInfo.activityTypes;
3154
+ if (clientData && clientData.activityTypes !== null) {
3155
+ this.formStore.lfb.policyholderActivities = clientData.activityTypes;
3104
3156
  }
3105
3157
 
3106
3158
  if (beneficialOwnerApp && beneficialOwnerApp.length) {
3107
3159
  this.formStore.lfb.beneficialOwners = beneficialOwnerApp;
3108
- this.formStore.lfb.isPolicyholderBeneficialOwner = clientData.iin.replace(/-/g, '') === beneficialOwnerApp[0].beneficialOwnerData.iin ? true : false;
3160
+ this.formStore.lfb.isPolicyholderBeneficialOwner = clientData.authoritedPerson.iin.replace(/-/g, '') === beneficialOwnerApp[0].beneficialOwnerData.iin ? true : false;
3109
3161
  this.formStore.lfb.beneficialOwners.forEach(beneficial => {
3110
3162
  beneficial.beneficialOwnerData.identityDocument!.validUntil = reformatDate(beneficial.beneficialOwnerData.identityDocument!.validUntil as string);
3111
3163
  beneficial.beneficialOwnerData.iin = reformatIin(beneficial.beneficialOwnerData.iin as string);
@@ -3266,7 +3318,7 @@ export const useDataStore = defineStore('data', {
3266
3318
  }
3267
3319
  }
3268
3320
 
3269
- if (this.formStore.applicationData.clientApp.clientData.organizationInfo.activityTypes === null) {
3321
+ if (this.formStore.applicationData.clientApp.clientData.activityTypes === null) {
3270
3322
  this.showToaster('error', this.t('toaster.notSavedMember', { text: 'деятельности Страхователя' }), 3000);
3271
3323
  return false;
3272
3324
  }
package/store/rules.ts CHANGED
@@ -48,14 +48,14 @@ export const rules = {
48
48
  return t('rules.required');
49
49
  },
50
50
  ],
51
- cyrillic: [(v: any) => v === null || /^[\u0400-\u04FF ]+$/.test(v) || t('rules.cyrillic')],
51
+ cyrillic: [(v: any) => v === null || /^[\u0400-\u04FF -]+$/.test(v) || t('rules.cyrillic')],
52
52
  latin: [(v: any) => v === null || /^[a-zA-Z]+$/.test(v) || t('rules.latin')],
53
53
  latinAndNumber: [(v: any) => v === null || /^[0-9a-zA-Z]+$/.test(v) || t('rules.latinAndNumber')],
54
54
  cyrillicNonRequired: [
55
55
  (v: any) => {
56
56
  if (!v) return true;
57
57
  else {
58
- return /^[\u0400-\u04FF ]+$/.test(v) || t('rules.cyrillic');
58
+ return /^[\u0400-\u04FF -]+$/.test(v) || t('rules.cyrillic');
59
59
  }
60
60
  },
61
61
  ],
package/types/index.ts CHANGED
@@ -24,6 +24,7 @@ declare global {
24
24
  | 'checkcontragent'
25
25
  | 'daskamkorlyk'
26
26
  | 'amuletlife'
27
+ | 'pensionannuity'
27
28
  | 'dso'
28
29
  | 'uu';
29
30
  type MemberKeys = keyof ReturnType<typeof useFormStore>;