hl-core 0.0.8-beta.34 → 0.0.8-beta.35

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/index.ts CHANGED
@@ -155,7 +155,10 @@ export class ApiClass {
155
155
  }
156
156
 
157
157
  async getInsurancePay(): Promise<Value[]> {
158
- return this.axiosCall({ method: Methods.GET, url: '/Arm/api/Dictionary/GetDictionaryItems/DicBeneficiaryInsurancePay' });
158
+ return this.axiosCall({
159
+ method: Methods.GET,
160
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicBeneficiaryInsurancePay',
161
+ });
159
162
  }
160
163
 
161
164
  async getQuestionList(surveyType: string, processInstanceId: string, insuredId: number | string): Promise<AnketaFirst> {
@@ -601,4 +604,11 @@ export class ApiClass {
601
604
  url: `/Ekk/api/ContragentInsis/AgentByName?fullName=${name}`,
602
605
  });
603
606
  }
607
+
608
+ async isCourseChanged(processInstanceId: string): Promise<boolean> {
609
+ return this.axiosCall({
610
+ method: Methods.GET,
611
+ url: `/${this.productUrl}/api/Application/IsCourseChanged?processInstanceId=${processInstanceId}`,
612
+ });
613
+ }
604
614
  }
package/locales/en.json CHANGED
@@ -98,7 +98,8 @@
98
98
  "beneficiary": "выгодоприобретатель",
99
99
  "beneficialOwner": "бенефициарный собственник",
100
100
  "spokesman": "представитель страхователя",
101
- "noPermission": "You have no permission on {text}"
101
+ "noPermission": "You have no permission on {text}",
102
+ "courseChanged": "The exchange rate of the NB RK has changed, it is necessary to return it for revision and make a recalculation"
102
103
  },
103
104
  "buttons": {
104
105
  "dataInput": "Input",
package/locales/kz.json CHANGED
@@ -98,7 +98,8 @@
98
98
  "beneficiary": "выгодоприобретатель",
99
99
  "beneficialOwner": "бенефициарный собственник",
100
100
  "spokesman": "представитель страхователя",
101
- "noPermission": "Сұрау салуға рұқсатыңыз жоқ {text}"
101
+ "noPermission": "Сұрау салуға рұқсатыңыз жоқ {text}",
102
+ "courseChanged": "ҚР ҰБ курсы өзгерді, қайта қарау үшін қайтарылуы және қайта есептеу қажет"
102
103
  },
103
104
  "buttons": {
104
105
  "dataInput": "Енгізу",
package/locales/ru.json CHANGED
@@ -98,7 +98,8 @@
98
98
  "beneficiary": "выгодоприобретатель",
99
99
  "beneficialOwner": "бенефициарный собственник",
100
100
  "spokesman": "представитель страхователя",
101
- "noPermission": "У вас нет привилегии на запрос {text}"
101
+ "noPermission": "У вас нет привилегии на запрос {text}",
102
+ "courseChanged": "Изменился курс НБ РК, необходимо вернуть на доработку и сделать перерасчет"
102
103
  },
103
104
  "buttons": {
104
105
  "dataInput": "Ввод данных",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.8-beta.34",
3
+ "version": "0.0.8-beta.35",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -35,6 +35,15 @@
35
35
  "update:liferenta": "cd .. && cd liferenta && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
36
36
  "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",
37
37
  "update:all": "yarn update:aml && yarn update:baiterek && yarn update:bolashak && yarn update:calculator && yarn update:efo && yarn update:gons && yarn update:kazyna && yarn update:liferenta && yarn update:lka",
38
+ "pull:aml":"cd .. && cd aml && git pull && cd .. && cd core",
39
+ "pull:baiterek":"cd .. && cd baiterek && git pull && cd .. && cd core",
40
+ "pull:bolashak":"cd .. && cd bolashak && git pull && cd .. && cd core",
41
+ "pull:calculator":"cd .. && cd calculator && git pull && cd .. && cd core",
42
+ "pull:efo":"cd .. && cd efo && git pull && cd .. && cd core",
43
+ "pull:gons":"cd .. && cd gons && git pull && cd .. && cd core",
44
+ "pull:kazyna":"cd .. && cd kazyna && git pull && cd .. && cd core",
45
+ "pull:liferenta":"cd .. && cd liferenta && git pull && cd .. && cd core",
46
+ "pull:lka":"cd .. && cd lka && git pull && cd .. && cd core",
38
47
  "pull:all": "cd .. && cd aml && git pull && cd .. && cd baiterek && git pull && cd .. && cd bolashak && git pull && cd .. && cd calculator && git pull && cd .. && cd efo && git pull && cd .. && cd gons && git pull && cd .. && cd kazyna && git pull && cd .. && cd liferenta && git pull && cd .. && cd lka && git pull && cd ..",
39
48
  "typecheck": "nuxt typecheck"
40
49
  },
@@ -830,7 +830,9 @@ export const useDataStore = defineStore('data', {
830
830
  }
831
831
  if (whichMember === 'Insured') {
832
832
  if (this.formStore.applicationData && this.formStore.applicationData.insuredApp && this.formStore.applicationData.insuredApp.length) {
833
- await this.deleteInsuredLogic();
833
+ if (this.members.insuredApp.has) {
834
+ await this.deleteInsuredLogic();
835
+ }
834
836
  if (this.formStore.applicationData.insuredApp.every(i => i.iin !== data.iin) && data.id !== null) {
835
837
  await this.api.deleteMember('Insured', data.id);
836
838
  delete data.id;
@@ -2529,6 +2531,14 @@ export const useDataStore = defineStore('data', {
2529
2531
  const economySectorCode = this.economySectorCode.find(i => i.ids === '500003.9');
2530
2532
  if (economySectorCode) member.economySectorCode = economySectorCode;
2531
2533
  },
2534
+ async isCourseChanged(processInstanceId) {
2535
+ try {
2536
+ const response = await this.api.isCourseChanged(processInstanceId);
2537
+ return response;
2538
+ } catch (err) {
2539
+ return ErrorHandler(err);
2540
+ }
2541
+ },
2532
2542
  hasJobSection(whichForm) {
2533
2543
  switch (whichForm) {
2534
2544
  case this.formStore.beneficiaryFormKey: