hl-core 0.0.10-beta.53 → 0.0.10-beta.54

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.
@@ -620,7 +620,7 @@ export default defineComponent({
620
620
  const price = computed(() => dataStore.getNumberWithSpaces(formStore.productConditionsForm.calculatorForm.price));
621
621
  const insuredAmount = computed(() => formStore.productConditionsForm.calculatorForm.amount!.nameRu! + dataStore.currency);
622
622
  const hasConditionsInfo = computed(() => {
623
- if (dataStore.isLifetrip || dataStore.isDas || dataStore.isUU || dataStore.isPrePension || dataStore.isCritical || dataStore.isPension) {
623
+ if (dataStore.isLifetrip || dataStore.isDas || dataStore.isUU || dataStore.isReInsurance || dataStore.isPrePension || dataStore.isCritical || dataStore.isPension) {
624
624
  return false;
625
625
  }
626
626
  if (dataStore.isFinCenter()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.53",
3
+ "version": "0.0.10-beta.54",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -69,6 +69,7 @@ export const useDataStore = defineStore('data', {
69
69
  isBorrower: state => state.product === 'borrower',
70
70
  isDSO: state => state.product === 'dso',
71
71
  isUU: state => state.product === 'uu',
72
+ isReInsurance: state => state.product === 'reinsurance',
72
73
  hasClientAnketa: state => Array.isArray(state.formStore.additionalInsuranceTerms) && state.formStore.additionalInsuranceTerms.find(i => i.coverTypeCode === 10),
73
74
  isClientAnketaCondition: state =>
74
75
  Array.isArray(state.formStore.additionalInsuranceTerms) &&
@@ -4002,7 +4003,8 @@ export const useDataStore = defineStore('data', {
4002
4003
  await this.api.saveInsuredList(this.formStore.applicationData.processInstanceId, newInsureds, insuredList);
4003
4004
  return true;
4004
4005
  } catch (err) {
4005
- return ErrorHandler(err);
4006
+ ErrorHandler(err);
4007
+ return false;
4006
4008
  }
4007
4009
  },
4008
4010
  async saveInsured(insured: any) {
package/types/index.ts CHANGED
@@ -28,6 +28,7 @@ export type Projects =
28
28
  | 'pensionannuitynew'
29
29
  | 'dso'
30
30
  | 'uu'
31
+ | 'reinsurance'
31
32
  | 'auletti'
32
33
  | 'lka-auletti'
33
34
  | 'prepensionannuity'