hl-core 0.0.10-beta.51 → 0.0.10-beta.52

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.
@@ -840,7 +840,7 @@ export class RoleController {
840
840
  isUpk = () => this.isRole(constants.roles.UPK);
841
841
  isUrp = () => this.isRole(constants.roles.URP);
842
842
  isUsns = () => this.isRole(constants.roles.USNS);
843
- isUsnsHead = () => this.isRole(constants.roles.UsnsHead);
843
+ isNotAccumulativeSanctionerUSNS = () => this.isRole(constants.roles.NotAccumulativeSanctionerUSNS);
844
844
  isAccountant = () => this.isRole(constants.roles.Accountant);
845
845
  isDrn = () => this.isRole(constants.roles.DRNSJ);
846
846
  isSupport = () => this.isRole(constants.roles.Support);
@@ -887,13 +887,14 @@ export class RoleController {
887
887
  this.isSecurity() ||
888
888
  baseAccessRoles,
889
889
  toDSO:
890
+ this.isUsns() ||
890
891
  this.isDsuio() ||
891
892
  this.isActuary() ||
892
- this.isUsnsHead() ||
893
893
  this.isHeadOfDso() ||
894
894
  this.isAccountant() ||
895
895
  this.isUSNSACCINS() ||
896
896
  this.isDsoDirector() ||
897
+ this.isNotAccumulativeSanctionerUSNS() ||
897
898
  this.isServiceManager() ||
898
899
  this.isUSNSsanctioner() ||
899
900
  this.isAccountantDirector() ||
@@ -933,7 +934,7 @@ export class RoleController {
933
934
  this.isURAP() ||
934
935
  this.isTravelAgent() ||
935
936
  this.isHR() ||
936
- this.isUsnsHead() ||
937
+ this.isNotAccumulativeSanctionerUSNS() ||
937
938
  baseAccessRoles,
938
939
  };
939
940
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.51",
3
+ "version": "0.0.10-beta.52",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -390,19 +390,19 @@ export const useDataStore = defineStore('data', {
390
390
  try {
391
391
  const queryData = isNonResident
392
392
  ? {
393
- firstName: member.firstName ?? '',
394
- lastName: member.lastName ?? '',
395
- middleName: member.middleName ?? '',
396
- iin: '',
397
- birthDate: member.birthDate ? formatDate(member.birthDate)?.toISOString() ?? '' : '',
398
- }
393
+ firstName: member.firstName ?? '',
394
+ lastName: member.lastName ?? '',
395
+ middleName: member.middleName ?? '',
396
+ iin: '',
397
+ birthDate: member.birthDate ? formatDate(member.birthDate)?.toISOString() ?? '' : '',
398
+ }
399
399
  : {
400
- firstName: '',
401
- lastName: '',
402
- middleName: '',
403
- iin: member.iin ? member.iin.replace(/-/g, '') : '',
404
- birthDate: '',
405
- };
400
+ firstName: '',
401
+ lastName: '',
402
+ middleName: '',
403
+ iin: member.iin ? member.iin.replace(/-/g, '') : '',
404
+ birthDate: '',
405
+ };
406
406
  const contragentResponse = await this.api.getContragent(queryData);
407
407
  if (contragentResponse.totalItems > 0) {
408
408
  if (contragentResponse.items.length === 1) {
@@ -1656,11 +1656,11 @@ export const useDataStore = defineStore('data', {
1656
1656
  return n === null
1657
1657
  ? null
1658
1658
  : n
1659
- .toLocaleString('ru', {
1660
- maximumFractionDigits: 2,
1661
- minimumFractionDigits: 2,
1662
- })
1663
- .replace(/,/g, '.');
1659
+ .toLocaleString('ru', {
1660
+ maximumFractionDigits: 2,
1661
+ minimumFractionDigits: 2,
1662
+ })
1663
+ .replace(/,/g, '.');
1664
1664
  },
1665
1665
  async getTaskList(
1666
1666
  search: string = '',
@@ -1696,8 +1696,8 @@ export const useDataStore = defineStore('data', {
1696
1696
  groupCode: groupCode,
1697
1697
  processCodes: this.isEFO
1698
1698
  ? Object.values(constants.products).filter(
1699
- i => i !== constants.products.pensionannuity && i !== constants.products.pensionannuityrefund && i !== constants.products.pensionannuityjoint,
1700
- )
1699
+ i => i !== constants.products.pensionannuity && i !== constants.products.pensionannuityrefund && i !== constants.products.pensionannuityjoint,
1700
+ )
1701
1701
  : [constants.products.baiterek],
1702
1702
  };
1703
1703
  if (byOneProcess !== null) {
@@ -1708,9 +1708,9 @@ export const useDataStore = defineStore('data', {
1708
1708
  processInstanceId === null
1709
1709
  ? query
1710
1710
  : {
1711
- ...query,
1712
- processInstanceId: processInstanceId,
1713
- },
1711
+ ...query,
1712
+ processInstanceId: processInstanceId,
1713
+ },
1714
1714
  );
1715
1715
  if (needToReturn) {
1716
1716
  this.isLoading = false;
@@ -2115,8 +2115,8 @@ export const useDataStore = defineStore('data', {
2115
2115
  } catch (err) {
2116
2116
  ErrorHandler(err);
2117
2117
  return {
2118
- "scheduleDividend": null,
2119
- "scheduleDividend2": null
2118
+ scheduleDividend: null,
2119
+ scheduleDividend2: null,
2120
2120
  };
2121
2121
  } finally {
2122
2122
  this.isLoading = false;
@@ -3347,62 +3347,62 @@ export const useDataStore = defineStore('data', {
3347
3347
  await Promise.allSettled([
3348
3348
  this.getQuestionList('health', this.formStore.applicationData.processInstanceId, this.formStore.applicationData.insuredApp[0].id, 'surveyByHealthBase'),
3349
3349
  this.isClientAnketaCondition &&
3350
- this.getQuestionList(
3351
- 'health',
3352
- this.formStore.applicationData.processInstanceId,
3353
- this.formStore.applicationData.clientApp.id,
3354
- 'surveyByHealthBasePolicyholder',
3355
- 'policyholder',
3356
- ),
3350
+ this.getQuestionList(
3351
+ 'health',
3352
+ this.formStore.applicationData.processInstanceId,
3353
+ this.formStore.applicationData.clientApp.id,
3354
+ 'surveyByHealthBasePolicyholder',
3355
+ 'policyholder',
3356
+ ),
3357
3357
  ,
3358
3358
  ]);
3359
3359
  this.isClientAnketaCondition
3360
3360
  ? await Promise.allSettled([
3361
- ...this.formStore.surveyByHealthBase!.body.map(async question => {
3362
- await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3363
- }),
3364
- ...this.formStore.surveyByHealthBasePolicyholder!.body.map(async question => {
3365
- await this.definedAnswers(question.first.id, 'surveyByHealthBasePolicyholder');
3366
- }),
3367
- ])
3361
+ ...this.formStore.surveyByHealthBase!.body.map(async question => {
3362
+ await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3363
+ }),
3364
+ ...this.formStore.surveyByHealthBasePolicyholder!.body.map(async question => {
3365
+ await this.definedAnswers(question.first.id, 'surveyByHealthBasePolicyholder');
3366
+ }),
3367
+ ])
3368
3368
  : await Promise.allSettled(
3369
- this.formStore.surveyByHealthBase!.body.map(async question => {
3370
- await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3371
- }),
3372
- );
3369
+ this.formStore.surveyByHealthBase!.body.map(async question => {
3370
+ await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3371
+ }),
3372
+ );
3373
3373
  } else {
3374
3374
  await Promise.allSettled([
3375
3375
  this.getQuestionList('health', this.formStore.applicationData.processInstanceId, this.formStore.applicationData.insuredApp[0].id, 'surveyByHealthBase'),
3376
3376
  this.getQuestionList('critical', this.formStore.applicationData.processInstanceId, this.formStore.applicationData.insuredApp[0].id, 'surveyByCriticalBase'),
3377
3377
  this.isClientAnketaCondition &&
3378
- this.getQuestionList(
3379
- 'health',
3380
- this.formStore.applicationData.processInstanceId,
3381
- this.formStore.applicationData.clientApp.id,
3382
- 'surveyByHealthBasePolicyholder',
3383
- 'policyholder',
3384
- ),
3378
+ this.getQuestionList(
3379
+ 'health',
3380
+ this.formStore.applicationData.processInstanceId,
3381
+ this.formStore.applicationData.clientApp.id,
3382
+ 'surveyByHealthBasePolicyholder',
3383
+ 'policyholder',
3384
+ ),
3385
3385
  ]);
3386
3386
  this.isClientAnketaCondition
3387
3387
  ? await Promise.allSettled([
3388
- ...this.formStore.surveyByHealthBase!.body.map(async question => {
3389
- await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3390
- }),
3391
- ...this.formStore.surveyByCriticalBase!.body.map(async question => {
3392
- await this.definedAnswers(question.first.id, 'surveyByCriticalBase');
3393
- }),
3394
- ...this.formStore.surveyByHealthBasePolicyholder!.body.map(async question => {
3395
- await this.definedAnswers(question.first.id, 'surveyByHealthBasePolicyholder');
3396
- }),
3397
- ])
3388
+ ...this.formStore.surveyByHealthBase!.body.map(async question => {
3389
+ await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3390
+ }),
3391
+ ...this.formStore.surveyByCriticalBase!.body.map(async question => {
3392
+ await this.definedAnswers(question.first.id, 'surveyByCriticalBase');
3393
+ }),
3394
+ ...this.formStore.surveyByHealthBasePolicyholder!.body.map(async question => {
3395
+ await this.definedAnswers(question.first.id, 'surveyByHealthBasePolicyholder');
3396
+ }),
3397
+ ])
3398
3398
  : await Promise.allSettled([
3399
- ...this.formStore.surveyByHealthBase!.body.map(async question => {
3400
- await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3401
- }),
3402
- ...this.formStore.surveyByCriticalBase!.body.map(async question => {
3403
- await this.definedAnswers(question.first.id, 'surveyByCriticalBase');
3404
- }),
3405
- ]);
3399
+ ...this.formStore.surveyByHealthBase!.body.map(async question => {
3400
+ await this.definedAnswers(question.first.id, 'surveyByHealthBase');
3401
+ }),
3402
+ ...this.formStore.surveyByCriticalBase!.body.map(async question => {
3403
+ await this.definedAnswers(question.first.id, 'surveyByCriticalBase');
3404
+ }),
3405
+ ]);
3406
3406
  }
3407
3407
  if (this.validateAnketa('surveyByHealthBase')) {
3408
3408
  let hasCriticalAndItsValid = null;
@@ -3681,8 +3681,8 @@ export const useDataStore = defineStore('data', {
3681
3681
  const validDocument = this.isLifetrip
3682
3682
  ? filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes.PS)
3683
3683
  : filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes['1UDL']) ??
3684
- filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes.VNZ) ??
3685
- filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes.PS);
3684
+ filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes.VNZ) ??
3685
+ filteredDocuments.find(i => i.type.code === CoreEnums.GBD.DocTypes.PS);
3686
3686
  if (validDocument) {
3687
3687
  const documentType = this.documentTypes.find(
3688
3688
  (i: Value) => i.ids === Object.keys(CoreEnums.GBD.DocTypes)[Object.values(CoreEnums.GBD.DocTypes).indexOf(validDocument.type.code)],
@@ -3751,9 +3751,11 @@ export const useDataStore = defineStore('data', {
3751
3751
  try {
3752
3752
  (Object.keys(local) as Array<keyof GroupMember>).forEach(key => {
3753
3753
  if (key === 'actualAddress' || key === 'legalAddress') {
3754
- const address = `${checkForNull(local[key].country.nameRu)}, ${checkForNull(local[key].state.nameRu)},${local[key].region.nameRu ? ` ${local[key].region.nameRu},` : ''
3755
- } ${checkForNull(local[key].regionType.nameRu)} ${checkForNull(local[key].city.nameRu)},${local[key].square ? ` квартал ${local[key].square},` : ''}${local[key].microdistrict ? ` мкр ${local[key].microdistrict},` : ''
3756
- } ул. ${checkForNull(local[key].street)}, д. ${checkForNull(local[key].houseNumber)}`;
3754
+ const address = `${checkForNull(local[key].country.nameRu)}, ${checkForNull(local[key].state.nameRu)},${
3755
+ local[key].region.nameRu ? ` ${local[key].region.nameRu},` : ''
3756
+ } ${checkForNull(local[key].regionType.nameRu)} ${checkForNull(local[key].city.nameRu)},${local[key].square ? ` квартал ${local[key].square},` : ''}${
3757
+ local[key].microdistrict ? ` мкр ${local[key].microdistrict},` : ''
3758
+ } ул. ${checkForNull(local[key].street)}, д. ${checkForNull(local[key].houseNumber)}`;
3757
3759
  local[key].longName = address;
3758
3760
  local[key].longNameKz = address;
3759
3761
  }
package/types/enum.ts CHANGED
@@ -125,7 +125,7 @@ export enum Roles {
125
125
  URAP = 'URAP',
126
126
  TravelAgent = 'TravelAgent',
127
127
  HR = 'HR',
128
- UsnsHead = 'UsnsHead',
128
+ NotAccumulativeSanctionerUSNS = 'NotAccumulativeSanctionerUSNS',
129
129
  }
130
130
 
131
131
  export enum Statuses {