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

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.
@@ -30,6 +30,10 @@
30
30
  {{ $dataStore.t('historyStatementsAndStatuses') }}
31
31
  <i class="mdi mdi-history text-xl text-[#A0B3D8]"></i>
32
32
  </base-panel-item>
33
+ <base-panel-item v-if="hasFAQ" @click="$router.push({ name: 'FAQ' })" class="cursor-pointer">
34
+ FAQ
35
+ <i class="mdi mdi-help text-xl text-[#A0B3D8]"></i>
36
+ </base-panel-item>
33
37
  <base-panel-item @click="dialogSignOut = true" class="cursor-pointer" :class="[$styles.redText]">
34
38
  {{ $dataStore.t('buttons.logout') }}
35
39
  <i class="mdi mdi-logout text-xl"></i>
@@ -55,6 +59,7 @@ import { changeBridge } from '#imports';
55
59
  import pkg from '../../package.json';
56
60
  const dialogSignOut = ref(false);
57
61
  const dataStore = useDataStore();
62
+ const router = useRouter();
58
63
 
59
64
  const handleFontSize = (action: 'increase' | 'decrease') => {
60
65
  if (action === 'increase' && dataStore.fontSize < 24) dataStore.fontSize += 2;
@@ -75,6 +80,8 @@ const hasHistory = computed(() => {
75
80
  return !dataStore.isLKA;
76
81
  });
77
82
 
83
+ const hasFAQ = computed(() => !useEnv().isProduction && router.hasRoute('FAQ'));
84
+
78
85
  const openHistory = async () => {
79
86
  dataStore.sendToParent(constants.postActions.toStatementHistory, dataStore.isBridge || dataStore.isDSO || dataStore.isUU ? '' : dataStore.product);
80
87
  };
@@ -302,3 +302,17 @@ export const getValuePerEnv = (which: WhichValuePerEnv) => {
302
302
  };
303
303
  return valuesPerEnv[which][useEnv().envMode as Envs];
304
304
  };
305
+
306
+ export const getMainPageRoute = () => {
307
+ const dataStore = useDataStore();
308
+ if (dataStore.isEFO) {
309
+ return 'Insurance-Product';
310
+ }
311
+ if (dataStore.isLKA) {
312
+ return 'Menu';
313
+ }
314
+ if (dataStore.isAML) {
315
+ return 'Main';
316
+ }
317
+ return 'index';
318
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.36",
3
+ "version": "0.0.9-beta.37",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
package/pages/Token.vue CHANGED
@@ -12,18 +12,7 @@ export default defineComponent({
12
12
  const router = useRouter();
13
13
  const dataStore = useDataStore();
14
14
 
15
- const getMainPageRoute = () => {
16
- if (dataStore.isEFO) {
17
- return 'Insurance-Product';
18
- }
19
- if (dataStore.isLKA) {
20
- return 'Menu';
21
- }
22
- if (dataStore.isAML) {
23
- return 'Main';
24
- }
25
- return 'index';
26
- };
15
+
27
16
 
28
17
  onMounted(async () => {
29
18
  if (!dataStore.isBridge) {
package/types/index.ts CHANGED
@@ -414,7 +414,7 @@ declare global {
414
414
  items: ContragentType[];
415
415
  };
416
416
 
417
- type ContragentType = {
417
+ interface ContragentType {
418
418
  id: number;
419
419
  type: number;
420
420
  iin: string;
@@ -430,18 +430,18 @@ declare global {
430
430
  registrationDate: string;
431
431
  verifyType: string;
432
432
  verifyDate: string;
433
- };
433
+ }
434
434
 
435
- type ContragentQuestionaries = {
435
+ interface ContragentQuestionaries {
436
436
  id: number;
437
437
  contragentId: number;
438
438
  questId: string;
439
439
  questName: string;
440
440
  questAnswer: string | number | null;
441
441
  questAnswerName: string | null;
442
- };
442
+ }
443
443
 
444
- type ContragentDocuments = {
444
+ interface ContragentDocuments {
445
445
  id: number;
446
446
  contragentId: number;
447
447
  type?: string;
@@ -457,9 +457,9 @@ declare global {
457
457
  note: string | null;
458
458
  verifyType: string;
459
459
  verifyDate: string;
460
- };
460
+ }
461
461
 
462
- type ContragentAddress = {
462
+ interface ContragentAddress {
463
463
  id: number;
464
464
  contragentId: number;
465
465
  type?: string;
@@ -479,9 +479,9 @@ declare global {
479
479
  cityTypeName?: string;
480
480
  microRaion?: string | null;
481
481
  kvartal?: string | null;
482
- };
482
+ }
483
483
 
484
- type ContragentContacts = {
484
+ interface ContragentContacts {
485
485
  id: number;
486
486
  contragentId: number;
487
487
  type: string;
@@ -492,7 +492,7 @@ declare global {
492
492
  newValue: string | null;
493
493
  verifyType?: string | null;
494
494
  verifyDate?: string | null;
495
- };
495
+ }
496
496
 
497
497
  type AddCoverAnswer = {
498
498
  id: string;