hl-core 0.0.10-beta.41-6 → 0.0.10-beta.43
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 +18 -0
- package/components/Form/ManagerAttachment.vue +9 -1
- package/components/Panel/PanelHandler.vue +2 -2
- package/composables/classes.ts +25 -53
- package/composables/constants.ts +1 -1
- package/composables/index.ts +86 -2
- package/package.json +1 -1
- package/plugins/head.ts +5 -0
package/api/base.api.ts
CHANGED
|
@@ -221,6 +221,13 @@ export class ApiClass {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
async getQuestionListSecondById(surveyType: string, processInstanceId: string | number, insuredId: number | string, id: string) {
|
|
225
|
+
return await this.axiosCall<Types.AnketaSecond[]>({
|
|
226
|
+
method: Methods.GET,
|
|
227
|
+
url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}/${id}`,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
224
231
|
async definedAnswers(filter: string) {
|
|
225
232
|
return await this.axiosCall({
|
|
226
233
|
method: Methods.GET,
|
|
@@ -1021,6 +1028,17 @@ export class ApiClass {
|
|
|
1021
1028
|
});
|
|
1022
1029
|
}
|
|
1023
1030
|
|
|
1031
|
+
async acceptDeclaration(insuredId: string, accept: boolean) {
|
|
1032
|
+
return await this.axiosCall<boolean>({
|
|
1033
|
+
method: Methods.POST,
|
|
1034
|
+
url: `/${this.productUrl}/api/Application/AcceptDeclaration`,
|
|
1035
|
+
params: {
|
|
1036
|
+
insuredId,
|
|
1037
|
+
accept,
|
|
1038
|
+
},
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1024
1042
|
async getParentContractData(policyId: string) {
|
|
1025
1043
|
return await this.axiosCall<{ bin: string; name: string }>({
|
|
1026
1044
|
method: Methods.GET,
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
/>
|
|
84
84
|
<div v-if="isPanelLoading === false" class="w-full">
|
|
85
85
|
<div v-if="currentDictName === 'AgentData'" class="w-full flex flex-col gap-2 p-2">
|
|
86
|
-
<div v-for="(agent, index) of
|
|
86
|
+
<div v-for="(agent, index) of agentDataFiltered" :key="index">
|
|
87
87
|
<div
|
|
88
88
|
class="flex justify-between p-4 items-center cursor-pointer"
|
|
89
89
|
:class="[$styles.rounded, $styles.blueBgLight, $styles.blueBgLightHover]"
|
|
@@ -199,6 +199,13 @@ export default defineComponent({
|
|
|
199
199
|
if (dataStore.isGons) return !dataStore.isAgent();
|
|
200
200
|
return true;
|
|
201
201
|
});
|
|
202
|
+
const agentDataFiltered = computed(() => {
|
|
203
|
+
if (formStore.RegionPolicy?.nameRu && searchQuery.value === 'Без агента') {
|
|
204
|
+
return dataStore.AgentData.filter(i => String(i.officeId) === String(formStore.RegionPolicy.ids));
|
|
205
|
+
} else {
|
|
206
|
+
return dataStore.AgentData;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
202
209
|
const isExecutorShown = dataStore.isPension;
|
|
203
210
|
const openPanel = async (currentDict: ManagerAttachmentFiels, title: string) => {
|
|
204
211
|
searchQuery.value = '';
|
|
@@ -306,6 +313,7 @@ export default defineComponent({
|
|
|
306
313
|
isManagerShown,
|
|
307
314
|
isAgentShown,
|
|
308
315
|
isExecutorShown,
|
|
316
|
+
agentDataFiltered,
|
|
309
317
|
|
|
310
318
|
// Functions
|
|
311
319
|
openPanel,
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
>
|
|
24
24
|
</base-content-block>
|
|
25
25
|
<div class="flex flex-col gap-3" v-if="hasConditionsAction">
|
|
26
|
-
<base-btn :text="$dataStore.t('confirm.yes')" @click="handleTask" />
|
|
27
|
-
<base-btn :btn="$styles.blueLightBtn" :text="$dataStore.t('confirm.no')" @click="closePanel" />
|
|
26
|
+
<base-btn :text="$dataStore.t('confirm.yes')" :loading="loading" @click="handleTask" />
|
|
27
|
+
<base-btn :btn="$styles.blueLightBtn" :loading="loading" :text="$dataStore.t('confirm.no')" @click="closePanel" />
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
</section>
|
package/composables/classes.ts
CHANGED
|
@@ -5,34 +5,6 @@ import type * as Types from '../types';
|
|
|
5
5
|
|
|
6
6
|
type LinkType = Partial<RouteLocationNormalized> | Partial<RouteLocationNormalizedLoaded> | string | null | boolean;
|
|
7
7
|
|
|
8
|
-
export {
|
|
9
|
-
MenuItem,
|
|
10
|
-
Value,
|
|
11
|
-
CountryValue,
|
|
12
|
-
IDocument,
|
|
13
|
-
DocumentItem,
|
|
14
|
-
MenuOption,
|
|
15
|
-
InitialColumns,
|
|
16
|
-
User,
|
|
17
|
-
Contragent,
|
|
18
|
-
Member,
|
|
19
|
-
CalculatorForm,
|
|
20
|
-
ProductConditions,
|
|
21
|
-
MemberSettings,
|
|
22
|
-
DataStoreClass,
|
|
23
|
-
FormStoreClass,
|
|
24
|
-
Address,
|
|
25
|
-
PolicyholderActivity,
|
|
26
|
-
BaseGroupClass,
|
|
27
|
-
PhysGroupClass,
|
|
28
|
-
GroupMember,
|
|
29
|
-
BankInfoClass,
|
|
30
|
-
PolicyholderClass,
|
|
31
|
-
BeneficialOwner,
|
|
32
|
-
TransferContract,
|
|
33
|
-
RequiredDocument,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
8
|
class MenuItemConfig {
|
|
37
9
|
id: any;
|
|
38
10
|
title: string | null;
|
|
@@ -79,13 +51,13 @@ class MenuItemConfig {
|
|
|
79
51
|
}
|
|
80
52
|
}
|
|
81
53
|
|
|
82
|
-
class MenuItem extends MenuItemConfig {
|
|
54
|
+
export class MenuItem extends MenuItemConfig {
|
|
83
55
|
constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
|
|
84
56
|
super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
|
|
85
57
|
}
|
|
86
58
|
}
|
|
87
59
|
|
|
88
|
-
class Value {
|
|
60
|
+
export class Value {
|
|
89
61
|
id: string | number | null;
|
|
90
62
|
code: string | number | null;
|
|
91
63
|
nameRu: string | null;
|
|
@@ -101,7 +73,7 @@ class Value {
|
|
|
101
73
|
}
|
|
102
74
|
}
|
|
103
75
|
|
|
104
|
-
class CountryValue extends Value {
|
|
76
|
+
export class CountryValue extends Value {
|
|
105
77
|
countryTypeCode: string | number | null;
|
|
106
78
|
|
|
107
79
|
constructor(countryTypeCode = null, ...args: any) {
|
|
@@ -110,7 +82,7 @@ class CountryValue extends Value {
|
|
|
110
82
|
}
|
|
111
83
|
}
|
|
112
84
|
|
|
113
|
-
class IDocument {
|
|
85
|
+
export class IDocument {
|
|
114
86
|
id?: string;
|
|
115
87
|
processInstanceId?: string;
|
|
116
88
|
iin?: string;
|
|
@@ -162,7 +134,7 @@ class IDocument {
|
|
|
162
134
|
}
|
|
163
135
|
}
|
|
164
136
|
|
|
165
|
-
class DocumentItem extends IDocument {
|
|
137
|
+
export class DocumentItem extends IDocument {
|
|
166
138
|
constructor(
|
|
167
139
|
{
|
|
168
140
|
id,
|
|
@@ -186,7 +158,7 @@ class DocumentItem extends IDocument {
|
|
|
186
158
|
}
|
|
187
159
|
}
|
|
188
160
|
|
|
189
|
-
class MenuOption {
|
|
161
|
+
export class MenuOption {
|
|
190
162
|
text: string | null;
|
|
191
163
|
subtitle: string | null;
|
|
192
164
|
icon: string | null;
|
|
@@ -202,7 +174,7 @@ class MenuOption {
|
|
|
202
174
|
}
|
|
203
175
|
}
|
|
204
176
|
|
|
205
|
-
const InitialColumns = (): {
|
|
177
|
+
export const InitialColumns = (): {
|
|
206
178
|
addRegNumber: boolean | null;
|
|
207
179
|
number: boolean | null;
|
|
208
180
|
iin: boolean | null;
|
|
@@ -224,7 +196,7 @@ const InitialColumns = (): {
|
|
|
224
196
|
};
|
|
225
197
|
};
|
|
226
198
|
|
|
227
|
-
class User {
|
|
199
|
+
export class User {
|
|
228
200
|
login: string | null;
|
|
229
201
|
password: string | null;
|
|
230
202
|
roles: string[];
|
|
@@ -365,7 +337,7 @@ class Person {
|
|
|
365
337
|
}
|
|
366
338
|
}
|
|
367
339
|
|
|
368
|
-
class Contragent extends Person {
|
|
340
|
+
export class Contragent extends Person {
|
|
369
341
|
economySectorCode: Value;
|
|
370
342
|
countryOfCitizenship: Value;
|
|
371
343
|
countryOfTaxResidency: Value;
|
|
@@ -446,7 +418,7 @@ class Contragent extends Person {
|
|
|
446
418
|
}
|
|
447
419
|
}
|
|
448
420
|
|
|
449
|
-
class Member extends Person {
|
|
421
|
+
export class Member extends Person {
|
|
450
422
|
response?: {
|
|
451
423
|
contragent?: Types.ContragentType;
|
|
452
424
|
questionnaires?: Types.ContragentQuestionaries[];
|
|
@@ -767,7 +739,7 @@ class Member extends Person {
|
|
|
767
739
|
}
|
|
768
740
|
}
|
|
769
741
|
|
|
770
|
-
class CalculatorForm {
|
|
742
|
+
export class CalculatorForm {
|
|
771
743
|
country: Value;
|
|
772
744
|
countries: CountryValue[] | null;
|
|
773
745
|
purpose: Value;
|
|
@@ -805,7 +777,7 @@ class CalculatorForm {
|
|
|
805
777
|
}
|
|
806
778
|
}
|
|
807
779
|
|
|
808
|
-
class ProductConditions {
|
|
780
|
+
export class ProductConditions {
|
|
809
781
|
signDate: string | null;
|
|
810
782
|
birthDate: string | null;
|
|
811
783
|
gender: Value;
|
|
@@ -980,7 +952,7 @@ class ProductConditions {
|
|
|
980
952
|
}
|
|
981
953
|
}
|
|
982
954
|
|
|
983
|
-
class MemberSettings {
|
|
955
|
+
export class MemberSettings {
|
|
984
956
|
has?: boolean;
|
|
985
957
|
isMultiple?: boolean;
|
|
986
958
|
required?: boolean;
|
|
@@ -1000,7 +972,7 @@ class MemberSettings {
|
|
|
1000
972
|
}
|
|
1001
973
|
}
|
|
1002
974
|
|
|
1003
|
-
class DataStoreClass {
|
|
975
|
+
export class DataStoreClass {
|
|
1004
976
|
projectConfig: Types.Utils.ProjectConfig | null;
|
|
1005
977
|
// IMP Контроллер фич
|
|
1006
978
|
controls: {
|
|
@@ -1368,7 +1340,7 @@ class DataStoreClass {
|
|
|
1368
1340
|
}
|
|
1369
1341
|
}
|
|
1370
1342
|
|
|
1371
|
-
class FormStoreClass {
|
|
1343
|
+
export class FormStoreClass {
|
|
1372
1344
|
documentName: string | null;
|
|
1373
1345
|
regNumber: string | null;
|
|
1374
1346
|
policyNumber: string | null;
|
|
@@ -1606,7 +1578,7 @@ class FormStoreClass {
|
|
|
1606
1578
|
}
|
|
1607
1579
|
}
|
|
1608
1580
|
|
|
1609
|
-
class Address {
|
|
1581
|
+
export class Address {
|
|
1610
1582
|
country: Value;
|
|
1611
1583
|
region: Value;
|
|
1612
1584
|
state: Value;
|
|
@@ -1636,7 +1608,7 @@ class Address {
|
|
|
1636
1608
|
}
|
|
1637
1609
|
}
|
|
1638
1610
|
|
|
1639
|
-
class PolicyholderActivity {
|
|
1611
|
+
export class PolicyholderActivity {
|
|
1640
1612
|
activityTypeName: string | null;
|
|
1641
1613
|
empoloyeeCount: string | null;
|
|
1642
1614
|
|
|
@@ -1646,7 +1618,7 @@ class PolicyholderActivity {
|
|
|
1646
1618
|
}
|
|
1647
1619
|
}
|
|
1648
1620
|
|
|
1649
|
-
class BaseGroupClass {
|
|
1621
|
+
export class BaseGroupClass {
|
|
1650
1622
|
id: string | number;
|
|
1651
1623
|
longName: string;
|
|
1652
1624
|
iin: string;
|
|
@@ -1708,7 +1680,7 @@ class BaseGroupClass {
|
|
|
1708
1680
|
}
|
|
1709
1681
|
}
|
|
1710
1682
|
|
|
1711
|
-
class PhysGroupClass extends BaseGroupClass {
|
|
1683
|
+
export class PhysGroupClass extends BaseGroupClass {
|
|
1712
1684
|
lastName: string;
|
|
1713
1685
|
firstName: string;
|
|
1714
1686
|
middleName: string;
|
|
@@ -1741,7 +1713,7 @@ class PhysGroupClass extends BaseGroupClass {
|
|
|
1741
1713
|
}
|
|
1742
1714
|
}
|
|
1743
1715
|
|
|
1744
|
-
class GroupMember extends PhysGroupClass {
|
|
1716
|
+
export class GroupMember extends PhysGroupClass {
|
|
1745
1717
|
isLeader: boolean;
|
|
1746
1718
|
|
|
1747
1719
|
typeOfEconomicActivity: Value;
|
|
@@ -1796,7 +1768,7 @@ class GroupMember extends PhysGroupClass {
|
|
|
1796
1768
|
}
|
|
1797
1769
|
}
|
|
1798
1770
|
|
|
1799
|
-
class BankInfoClass {
|
|
1771
|
+
export class BankInfoClass {
|
|
1800
1772
|
bankName: Value;
|
|
1801
1773
|
bin: string;
|
|
1802
1774
|
iik: string;
|
|
@@ -1812,7 +1784,7 @@ class BankInfoClass {
|
|
|
1812
1784
|
}
|
|
1813
1785
|
}
|
|
1814
1786
|
|
|
1815
|
-
class PolicyholderClass {
|
|
1787
|
+
export class PolicyholderClass {
|
|
1816
1788
|
isIpdl: boolean;
|
|
1817
1789
|
clientData: GroupMember;
|
|
1818
1790
|
|
|
@@ -1822,7 +1794,7 @@ class PolicyholderClass {
|
|
|
1822
1794
|
}
|
|
1823
1795
|
}
|
|
1824
1796
|
|
|
1825
|
-
class BeneficialOwner {
|
|
1797
|
+
export class BeneficialOwner {
|
|
1826
1798
|
id: string;
|
|
1827
1799
|
isIpdl: boolean;
|
|
1828
1800
|
beneficialOwnerData: GroupMember;
|
|
@@ -1834,7 +1806,7 @@ class BeneficialOwner {
|
|
|
1834
1806
|
}
|
|
1835
1807
|
}
|
|
1836
1808
|
|
|
1837
|
-
class TransferContract {
|
|
1809
|
+
export class TransferContract {
|
|
1838
1810
|
id: string | null;
|
|
1839
1811
|
transferContractIsOppv: boolean;
|
|
1840
1812
|
transferContractFirstPaymentDate: string;
|
|
@@ -1860,6 +1832,6 @@ class TransferContract {
|
|
|
1860
1832
|
}
|
|
1861
1833
|
}
|
|
1862
1834
|
|
|
1863
|
-
class RequiredDocument extends Value {
|
|
1835
|
+
export class RequiredDocument extends Value {
|
|
1864
1836
|
iin: string = '';
|
|
1865
1837
|
}
|
package/composables/constants.ts
CHANGED
|
@@ -31,7 +31,7 @@ export const constants = Object.freeze({
|
|
|
31
31
|
checkcontragent: 1,
|
|
32
32
|
checkcontract: 2,
|
|
33
33
|
},
|
|
34
|
-
extractedProducts: ['dso', 'uu'],
|
|
34
|
+
extractedProducts: ['dso', 'uu', 'lka'],
|
|
35
35
|
editableStatuses: [Statuses.StartForm, Statuses.EditBeneficiaryForm, Statuses.EditForm, Statuses.InputDataForm],
|
|
36
36
|
documentsLinkVisibleStatuses: [
|
|
37
37
|
Statuses.Completed,
|
package/composables/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { XMLParser } from 'fast-xml-parser';
|
|
|
4
4
|
import { AxiosError } from 'axios';
|
|
5
5
|
import { DocumentReaderApi, Scenario, TextFieldType, LCID } from '@regulaforensics/document-reader-webclient';
|
|
6
6
|
import { PolicyholderClass, Value, User } from '../composables/classes';
|
|
7
|
-
import type { EnvModes, NestedKeyOf, Projects, ResponseStructure, Utils } from '../types';
|
|
7
|
+
import type { EnvModes, NestedKeyOf, Projects, ResponseStructure, Utils, RouteType } from '../types';
|
|
8
8
|
import { Roles, Statuses } from '../types/enum';
|
|
9
9
|
|
|
10
10
|
export const useEnv = () => {
|
|
@@ -468,7 +468,8 @@ type WhichValuePerEnv =
|
|
|
468
468
|
| 'efoBaseApi'
|
|
469
469
|
| 'efoBaseApiLocal'
|
|
470
470
|
| 'amlBaseApi'
|
|
471
|
-
| 'amlBaseApiLocal'
|
|
471
|
+
| 'amlBaseApiLocal'
|
|
472
|
+
| 'lkaUrl';
|
|
472
473
|
|
|
473
474
|
export const getStrValuePerEnv = (which: WhichValuePerEnv) => {
|
|
474
475
|
const valuesPerEnv: {
|
|
@@ -531,6 +532,11 @@ export const getStrValuePerEnv = (which: WhichValuePerEnv) => {
|
|
|
531
532
|
development: 'http://aml-dev.halyklife.nb/api',
|
|
532
533
|
test: 'http://aml-dev.halyklife.nb/api',
|
|
533
534
|
},
|
|
535
|
+
lkaUrl: {
|
|
536
|
+
production: 'https://dev.lka-web.halyklife.nb/efo',
|
|
537
|
+
development: 'https://dev.lka-web.halyklife.nb/efo',
|
|
538
|
+
test: 'https://dev.lka-web.halyklife.nb/efo',
|
|
539
|
+
},
|
|
534
540
|
};
|
|
535
541
|
return valuesPerEnv[which][import.meta.env.VITE_MODE as EnvModes];
|
|
536
542
|
};
|
|
@@ -549,6 +555,83 @@ export const getMainPageRoute = () => {
|
|
|
549
555
|
return 'index';
|
|
550
556
|
};
|
|
551
557
|
|
|
558
|
+
export const validateToken = (to: RouteType) => {
|
|
559
|
+
const dataStore = useDataStore();
|
|
560
|
+
if (to.query) {
|
|
561
|
+
if ('token' in to.query) {
|
|
562
|
+
const token = to.query.token as string;
|
|
563
|
+
if (isValidToken(token)) {
|
|
564
|
+
localStorage.setItem('accessToken', token);
|
|
565
|
+
dataStore.accessToken = token;
|
|
566
|
+
dataStore.getUserRoles();
|
|
567
|
+
}
|
|
568
|
+
} else {
|
|
569
|
+
const token = localStorage.getItem('accessToken') || null;
|
|
570
|
+
if (token && isValidToken(token)) {
|
|
571
|
+
dataStore.accessToken = token;
|
|
572
|
+
dataStore.getUserRoles();
|
|
573
|
+
} else {
|
|
574
|
+
dataStore.sendToParent(constants.postActions.toHomePage, dataStore.t('toaster.tokenExpire'));
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
export const validateRoute = (to: RouteType) => {
|
|
581
|
+
const dataStore = useDataStore();
|
|
582
|
+
const token = localStorage.getItem('accessToken') || null;
|
|
583
|
+
if (to && to.meta && 'requiresAuth' in to.meta && to.meta.requiresAuth && (!token || (token && isValidToken(token) === false))) {
|
|
584
|
+
localStorage.clear();
|
|
585
|
+
dataStore.sendToParent(constants.postActions.toHomePage, dataStore.t('toaster.tokenExpire'));
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
export const validateSettingsPanel = () => {
|
|
590
|
+
const dataStore = useDataStore();
|
|
591
|
+
const formStore = useFormStore();
|
|
592
|
+
const hasPanelItem = (id: string) => {
|
|
593
|
+
return !!Object.values(dataStore.settings.items).find(i => i.id === id);
|
|
594
|
+
};
|
|
595
|
+
// Bug in getApplicationData, if there is empty member it didn't update
|
|
596
|
+
// if (!hasPanelItem('reload') && route.params.taskId !== '0') {
|
|
597
|
+
// dataStore.settings.items.push(
|
|
598
|
+
// new MenuItem({
|
|
599
|
+
// id: 'reload',
|
|
600
|
+
// title: dataStore.t('buttons.reload'),
|
|
601
|
+
// icon: 'mdi-reload',
|
|
602
|
+
// action: async () => await dataStore.getApplicationData(route.params.taskId),
|
|
603
|
+
// }),
|
|
604
|
+
// );
|
|
605
|
+
// }
|
|
606
|
+
if (!hasPanelItem('reject') && dataStore.isInitiator()) {
|
|
607
|
+
dataStore.settings.items.push(
|
|
608
|
+
new MenuItem({
|
|
609
|
+
id: 'reject',
|
|
610
|
+
title: dataStore.t('buttons.cancelApplication'),
|
|
611
|
+
icon: 'mdi-close',
|
|
612
|
+
action: () => (dataStore.panelAction = constants.actions.rejectclient),
|
|
613
|
+
show: computed(() => dataStore.isTask() && dataStore.isProcessCancel(formStore.applicationData.statusCode)),
|
|
614
|
+
}),
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
if (!hasPanelItem('return') && (dataStore.isInitiator() || dataStore.isUnderwriter())) {
|
|
618
|
+
dataStore.settings.items.push(
|
|
619
|
+
new MenuItem({
|
|
620
|
+
id: 'return',
|
|
621
|
+
title: dataStore.t('buttons.returnStatement'),
|
|
622
|
+
icon: 'mdi-restore',
|
|
623
|
+
action: () => (dataStore.panelAction = constants.actions.return),
|
|
624
|
+
show: computed(() => dataStore.isTask() && dataStore.isProcessReturnable(formStore.applicationData.statusCode)),
|
|
625
|
+
}),
|
|
626
|
+
);
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
export const isIframe = () => {
|
|
631
|
+
if (window.location.hostname !== 'localhost' && useEnv().isProduction) return window.self !== window.top;
|
|
632
|
+
return true;
|
|
633
|
+
};
|
|
634
|
+
|
|
552
635
|
export const keyDeleter = <T extends object>(data: T, keys: Array<NestedKeyOf<T>>) => {
|
|
553
636
|
if (typeof data === 'object' && !!data && keys && Array.isArray(keys) && keys.length) {
|
|
554
637
|
keys.forEach(key => {
|
|
@@ -783,6 +866,7 @@ export class RoleController {
|
|
|
783
866
|
return {
|
|
784
867
|
invoiceInfo: this.isAdmin() || this.isSupport(),
|
|
785
868
|
toLKA: this.isAgent() || this.isManagerHalykBank() || baseAccessRoles,
|
|
869
|
+
toLKAv2: this.isAgent() || this.isManagerHalykBank() || this.isServiceManager() || baseAccessRoles,
|
|
786
870
|
toAML: this.isCompliance() || baseAccessRoles,
|
|
787
871
|
toAULETTI: this.isAgentAuletti() || this.isManagerAuletti() || baseAccessRoles,
|
|
788
872
|
toLKA_A: this.isAgentAuletti() || baseAccessRoles,
|
package/package.json
CHANGED
package/plugins/head.ts
CHANGED
|
@@ -23,5 +23,10 @@ export default defineNuxtPlugin(() => {
|
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
script: [{ children: 'if (!Object.hasOwn) {Object.hasOwn = function(obj, prop) {return Object.prototype.hasOwnProperty.call(obj, prop);};}' }],
|
|
26
|
+
meta: [
|
|
27
|
+
{ 'http-equiv': 'Expires', content: '0' },
|
|
28
|
+
{ 'http-equiv': 'Pragma', content: 'no-cache' },
|
|
29
|
+
{ 'http-equiv': 'Cache-Control', content: 'no-cache, no-store, must-revalidate' },
|
|
30
|
+
],
|
|
26
31
|
});
|
|
27
32
|
});
|