@webitel/ui-sdk 26.4.30 → 26.4.32
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/dist/{index-BgvQJ55B.js → index-CWYU_mwG.js} +1 -1
- package/dist/{index-BDiSa4-m.js → index-Cm3e6GRo.js} +1 -1
- package/dist/{install-CmnYn4Q5.js → install-MeHxIEWi.js} +37 -36
- package/dist/{isObject-KF_Ebg5z.js → isObject-D71pqbIt.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{useVidstackSrc-B0xwIfTb.js → useVidstackSrc-CpHWbv6g.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-DhvXCxPV.js → vidstack-Bq6c3Bam-Bt_4I4OY.js} +3 -3
- package/dist/{vidstack-D2pY00kU-sPoBbX0L.js → vidstack-D2pY00kU-TAqIAVUC.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-BM2BGxFz.js → vidstack-DDXt6fpN-BwFa-8yL.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-C2DgO-os.js → vidstack-D_-9AA6_-Fj0XhDLk.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-Ysy5Vb6Y.js → vidstack-DqAw8m9J-B_83AagG.js} +1 -1
- package/dist/{vidstack-audio-B37XwcY8.js → vidstack-audio-_sHFibxB.js} +2 -2
- package/dist/{vidstack-dash-BXHoBGdo.js → vidstack-dash-osW7_t7U.js} +4 -4
- package/dist/{vidstack-google-cast-D9nG4uOf.js → vidstack-google-cast-Dojpp59m.js} +4 -4
- package/dist/{vidstack-hls-BcaqlMdk.js → vidstack-hls-DXkSTucY.js} +4 -4
- package/dist/{vidstack-video-DhvV6yuT.js → vidstack-video-C7Qptkzg.js} +3 -3
- package/dist/{vidstack-vimeo-BIOQ72l9.js → vidstack-vimeo-CeaMORm2.js} +4 -4
- package/dist/{vidstack-youtube-LPvkuIr0.js → vidstack-youtube-BdX6H3uU.js} +3 -3
- package/dist/{wt-action-bar-5Y74_D0e.js → wt-action-bar-CBibsTjl.js} +1 -1
- package/dist/{wt-button-select-DZslcZ1V.js → wt-button-select-Pons2KxM.js} +1 -1
- package/dist/{wt-chat-emoji-D3g6pOHE.js → wt-chat-emoji-gtRYtqkJ.js} +2 -2
- package/dist/{wt-confirm-dialog-ZFQkFkvI.js → wt-confirm-dialog-C-zIlk7t.js} +1 -1
- package/dist/{wt-context-menu-C4yrbjs6.js → wt-context-menu-gqhg9Dut.js} +1 -1
- package/dist/{wt-copy-action-B4_vhvMK.js → wt-copy-action-q5aQb8MF.js} +1 -1
- package/dist/{wt-datepicker-B7l8plHH.js → wt-datepicker-DpDI_kB8.js} +1 -1
- package/dist/{wt-display-chip-items-CfngGHWP.js → wt-display-chip-items-mlhCN3fk.js} +1 -1
- package/dist/{wt-dual-panel-YwIAy-CK.js → wt-dual-panel-BsgUBc28.js} +1 -1
- package/dist/{wt-dummy-CvpMQfG2.js → wt-dummy-BJqC03G2.js} +1 -1
- package/dist/{wt-error-page-D-Y9PhH1.js → wt-error-page-fD1n6Ca8.js} +1 -1
- package/dist/{wt-expansion-card-tqRrluyb.js → wt-expansion-card-BA4S2ek-.js} +1 -1
- package/dist/{wt-expansion-panel-30caNqys.js → wt-expansion-panel-z2cHIrtf.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-D76zEG78.js → wt-filters-panel-wrapper-CMaOQ4qA.js} +1 -1
- package/dist/{wt-galleria-cwy7Tvf-.js → wt-galleria-BM3Xor8E.js} +1 -1
- package/dist/{wt-navigation-menu-BYbM07l8.js → wt-navigation-menu-C5TQqfjM.js} +1 -1
- package/dist/{wt-notifications-bar-DezuiAAo.js → wt-notifications-bar-Coqv4RKY.js} +2 -2
- package/dist/{wt-pagination-BGmYgSMp.js → wt-pagination-C7XbmBD5.js} +1 -1
- package/dist/{wt-player-DQ8YcvKj.js → wt-player-DVXm-whp.js} +2 -2
- package/dist/{wt-screen-recordings-action-iak2FA0l.js → wt-screen-recordings-action-Bs5d5Qza.js} +1 -1
- package/dist/{wt-search-bar-B_a0nLqc.js → wt-search-bar-Q7WOxr_e.js} +1 -1
- package/dist/{wt-selection-popup-Bs5eyX7a.js → wt-selection-popup-XSUoyYXq.js} +1 -1
- package/dist/{wt-start-page-DfMKqk3M.js → wt-start-page-DSLIDt4I.js} +1 -1
- package/dist/{wt-status-select-zfarytHm.js → wt-status-select-k7fT8EML.js} +1 -1
- package/dist/{wt-stepper-DUG3Xaez.js → wt-stepper-B8hTikvF.js} +1 -1
- package/dist/{wt-table-hMzPySzt.js → wt-table-CTQFqBOY.js} +1 -1
- package/dist/{wt-table-actions-u2XOfySQ.js → wt-table-actions-BpjPRhUw.js} +1 -1
- package/dist/{wt-table-column-select-DbZqK3Qm.js → wt-table-column-select-Rxr-d2pp.js} +2 -2
- package/dist/{wt-tabs-DTvCfvL6.js → wt-tabs-DJ64mvrE.js} +1 -1
- package/dist/{wt-tags-input-D3aSj0H_.js → wt-tags-input-CTp5WHMb.js} +2 -2
- package/dist/{wt-timepicker-CtEEP15t.js → wt-timepicker-NAD78264.js} +1 -1
- package/dist/{wt-tree-table-DBI1YzTG.js → wt-tree-table-Cz4fvtT7.js} +1 -1
- package/dist/{wt-tree-DKIlJ5Lj.js → wt-tree-wViLtwUK.js} +2 -2
- package/dist/{wt-type-extension-value-input-D2-w-B9U.js → wt-type-extension-value-input-DlAUGobl.js} +2 -2
- package/dist/{wt-vidstack-player-71xF8aro.js → wt-vidstack-player-1ALWyNaS.js} +10 -10
- package/package.json +1 -1
- package/src/components/wt-button/wt-button.vue +9 -0
- package/src/locale/en/en.js +1 -1
- package/src/locale/es/es.js +1 -1
- package/src/locale/kz/kz.js +1 -1
- package/src/locale/pl/pl.js +1 -1
- package/src/locale/ro/ro.js +1 -1
- package/src/locale/ru/ru.js +1 -1
- package/src/locale/uk/uk.js +1 -1
- package/src/locale/uz/uz.js +1 -1
- package/src/locale/vi/vi.js +1 -1
- package/src/modules/UserNotifications/api/UserNotifications.ts +18 -0
- package/src/modules/UserNotifications/maps/userNotificationConfigsMap.ts +16 -0
- package/src/modules/UserNotifications/stores/__tests__/userNotificationsStore.spec.ts +118 -0
- package/src/modules/UserNotifications/stores/userNotificationsStore.ts +76 -0
- package/src/modules/UserNotifications/types/UserNotifications.ts +15 -0
- package/src/modules/Userinfo/stores/__tests__/UserinfoAccessControl.spec.ts +19 -11
- package/src/modules/Userinfo/stores/userinfoStore.ts +10 -1
- package/types/locale/en/en.d.ts +1 -1
- package/types/locale/es/es.d.ts +1 -1
- package/types/locale/i18n.d.ts +9 -9
- package/types/locale/index.d.ts +9 -9
- package/types/locale/kz/kz.d.ts +1 -1
- package/types/locale/pl/pl.d.ts +1 -1
- package/types/locale/ro/ro.d.ts +1 -1
- package/types/locale/ru/ru.d.ts +1 -1
- package/types/locale/uk/uk.d.ts +1 -1
- package/types/locale/uz/uz.d.ts +1 -1
- package/types/locale/vi/vi.d.ts +1 -1
- package/types/modules/UserNotifications/api/UserNotifications.d.ts +2 -0
- package/types/modules/UserNotifications/maps/userNotificationConfigsMap.d.ts +1 -0
- package/types/modules/UserNotifications/stores/userNotificationsStore.d.ts +105 -0
- package/types/modules/UserNotifications/types/UserNotifications.d.ts +13 -0
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +4 -1
|
@@ -3,6 +3,25 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
|
3
3
|
|
|
4
4
|
import { createUserinfoStore } from '../userinfoStore';
|
|
5
5
|
|
|
6
|
+
// Mock modules at top-level so vitest hoists them before imports
|
|
7
|
+
vi.mock('../../api/UserinfoAPI', () => ({
|
|
8
|
+
getSession: vi.fn().mockResolvedValue({
|
|
9
|
+
userId: 1,
|
|
10
|
+
username: 'test',
|
|
11
|
+
permissions: [],
|
|
12
|
+
scope: [],
|
|
13
|
+
access: {},
|
|
14
|
+
license: [],
|
|
15
|
+
}),
|
|
16
|
+
getUiVisibilityAccess: vi.fn().mockResolvedValue({}),
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
vi.mock('../../../UserWarnings/api/UserWarnings', () => ({
|
|
20
|
+
getUserWarnings: vi.fn().mockResolvedValue({
|
|
21
|
+
warnings: [],
|
|
22
|
+
}),
|
|
23
|
+
}));
|
|
24
|
+
|
|
6
25
|
describe('UserinfoAccessControl', () => {
|
|
7
26
|
let useUserinfoStore: ReturnType<typeof createUserinfoStore>;
|
|
8
27
|
|
|
@@ -13,17 +32,6 @@ describe('UserinfoAccessControl', () => {
|
|
|
13
32
|
});
|
|
14
33
|
|
|
15
34
|
it('should be defined', async () => {
|
|
16
|
-
vi.mock(import('../../api/UserinfoAPI'), () => ({
|
|
17
|
-
getSession: vi.fn().mockResolvedValue({
|
|
18
|
-
userId: 1,
|
|
19
|
-
username: 'test',
|
|
20
|
-
permissions: [],
|
|
21
|
-
scope: [],
|
|
22
|
-
access: {},
|
|
23
|
-
license: [],
|
|
24
|
-
}),
|
|
25
|
-
getUiVisibilityAccess: vi.fn().mockResolvedValue({}),
|
|
26
|
-
}));
|
|
27
35
|
const userinfoStore = useUserinfoStore();
|
|
28
36
|
const { initialize } = userinfoStore;
|
|
29
37
|
const { userId } = storeToRefs(userinfoStore);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pick from 'lodash/pick';
|
|
2
2
|
import { defineStore, storeToRefs } from 'pinia';
|
|
3
3
|
import { ref } from 'vue';
|
|
4
|
-
|
|
4
|
+
import { createUserNotificationsStore } from '../../UserNotifications/stores/userNotificationsStore';
|
|
5
5
|
import { getSession, getUiVisibilityAccess, logout } from '../api/UserinfoAPI';
|
|
6
6
|
import { createUserAccessStore } from './accessStore';
|
|
7
7
|
import { createSettingsStore } from './settingsStore';
|
|
@@ -15,6 +15,8 @@ export const createUserinfoStore = () => {
|
|
|
15
15
|
namespace,
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
+
const useUserNotificationsStore = createUserNotificationsStore();
|
|
19
|
+
|
|
18
20
|
const store = defineStore(namespace, () => {
|
|
19
21
|
const accessStore = useAccessStore();
|
|
20
22
|
const {
|
|
@@ -34,6 +36,11 @@ export const createUserinfoStore = () => {
|
|
|
34
36
|
const settingsStore = useSettingsStore();
|
|
35
37
|
const { initialize: initializeSettingsStore } = settingsStore;
|
|
36
38
|
const { timezone } = storeToRefs(settingsStore);
|
|
39
|
+
const userNotificationsStore = useUserNotificationsStore();
|
|
40
|
+
const {
|
|
41
|
+
initialize: initializeUserNotificationsStore,
|
|
42
|
+
show: showUserNotifications,
|
|
43
|
+
} = userNotificationsStore;
|
|
37
44
|
|
|
38
45
|
const userId = ref();
|
|
39
46
|
const userInfo = ref();
|
|
@@ -41,6 +48,7 @@ export const createUserinfoStore = () => {
|
|
|
41
48
|
const initialize = async () => {
|
|
42
49
|
const session = await getSession();
|
|
43
50
|
const access = await getUiVisibilityAccess();
|
|
51
|
+
await initializeUserNotificationsStore();
|
|
44
52
|
|
|
45
53
|
userId.value = session.userId;
|
|
46
54
|
userInfo.value = pick(session, [
|
|
@@ -89,6 +97,7 @@ export const createUserinfoStore = () => {
|
|
|
89
97
|
hasSpecialGlobalActionAccess,
|
|
90
98
|
hasApplicationVisibility,
|
|
91
99
|
logoutUser,
|
|
100
|
+
showUserNotifications,
|
|
92
101
|
};
|
|
93
102
|
});
|
|
94
103
|
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
package/types/locale/i18n.d.ts
CHANGED
|
@@ -799,7 +799,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
799
799
|
named: any;
|
|
800
800
|
}) => string;
|
|
801
801
|
};
|
|
802
|
-
|
|
802
|
+
warnings: {
|
|
803
803
|
passwordExpirationMessage: string;
|
|
804
804
|
};
|
|
805
805
|
};
|
|
@@ -1623,7 +1623,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
1623
1623
|
named: any;
|
|
1624
1624
|
}) => string;
|
|
1625
1625
|
};
|
|
1626
|
-
|
|
1626
|
+
warnings: {
|
|
1627
1627
|
passwordExpirationMessage: string;
|
|
1628
1628
|
};
|
|
1629
1629
|
};
|
|
@@ -2431,7 +2431,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
2431
2431
|
named: any;
|
|
2432
2432
|
}) => string;
|
|
2433
2433
|
};
|
|
2434
|
-
|
|
2434
|
+
warnings: {
|
|
2435
2435
|
passwordExpirationMessage: string;
|
|
2436
2436
|
};
|
|
2437
2437
|
};
|
|
@@ -3241,7 +3241,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
3241
3241
|
named: any;
|
|
3242
3242
|
}) => string;
|
|
3243
3243
|
};
|
|
3244
|
-
|
|
3244
|
+
warnings: {
|
|
3245
3245
|
passwordExpirationMessage: string;
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
|
@@ -4049,7 +4049,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4049
4049
|
named: any;
|
|
4050
4050
|
}) => string;
|
|
4051
4051
|
};
|
|
4052
|
-
|
|
4052
|
+
warnings: {
|
|
4053
4053
|
passwordExpirationMessage: string;
|
|
4054
4054
|
};
|
|
4055
4055
|
};
|
|
@@ -4859,7 +4859,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4859
4859
|
named: any;
|
|
4860
4860
|
}) => string;
|
|
4861
4861
|
};
|
|
4862
|
-
|
|
4862
|
+
warnings: {
|
|
4863
4863
|
passwordExpirationMessage: string;
|
|
4864
4864
|
};
|
|
4865
4865
|
};
|
|
@@ -5669,7 +5669,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
5669
5669
|
named: any;
|
|
5670
5670
|
}) => string;
|
|
5671
5671
|
};
|
|
5672
|
-
|
|
5672
|
+
warnings: {
|
|
5673
5673
|
passwordExpirationMessage: string;
|
|
5674
5674
|
};
|
|
5675
5675
|
};
|
|
@@ -6480,7 +6480,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
6480
6480
|
named: any;
|
|
6481
6481
|
}) => string;
|
|
6482
6482
|
};
|
|
6483
|
-
|
|
6483
|
+
warnings: {
|
|
6484
6484
|
passwordExpirationMessage: string;
|
|
6485
6485
|
};
|
|
6486
6486
|
};
|
|
@@ -7290,7 +7290,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
7290
7290
|
named: any;
|
|
7291
7291
|
}) => string;
|
|
7292
7292
|
};
|
|
7293
|
-
|
|
7293
|
+
warnings: {
|
|
7294
7294
|
passwordExpirationMessage: string;
|
|
7295
7295
|
};
|
|
7296
7296
|
};
|
package/types/locale/index.d.ts
CHANGED
|
@@ -809,7 +809,7 @@ export declare const messages: {
|
|
|
809
809
|
named: any;
|
|
810
810
|
}) => string;
|
|
811
811
|
};
|
|
812
|
-
|
|
812
|
+
warnings: {
|
|
813
813
|
passwordExpirationMessage: string;
|
|
814
814
|
};
|
|
815
815
|
};
|
|
@@ -1633,7 +1633,7 @@ export declare const messages: {
|
|
|
1633
1633
|
named: any;
|
|
1634
1634
|
}) => string;
|
|
1635
1635
|
};
|
|
1636
|
-
|
|
1636
|
+
warnings: {
|
|
1637
1637
|
passwordExpirationMessage: string;
|
|
1638
1638
|
};
|
|
1639
1639
|
};
|
|
@@ -2441,7 +2441,7 @@ export declare const messages: {
|
|
|
2441
2441
|
named: any;
|
|
2442
2442
|
}) => string;
|
|
2443
2443
|
};
|
|
2444
|
-
|
|
2444
|
+
warnings: {
|
|
2445
2445
|
passwordExpirationMessage: string;
|
|
2446
2446
|
};
|
|
2447
2447
|
};
|
|
@@ -3251,7 +3251,7 @@ export declare const messages: {
|
|
|
3251
3251
|
named: any;
|
|
3252
3252
|
}) => string;
|
|
3253
3253
|
};
|
|
3254
|
-
|
|
3254
|
+
warnings: {
|
|
3255
3255
|
passwordExpirationMessage: string;
|
|
3256
3256
|
};
|
|
3257
3257
|
};
|
|
@@ -4059,7 +4059,7 @@ export declare const messages: {
|
|
|
4059
4059
|
named: any;
|
|
4060
4060
|
}) => string;
|
|
4061
4061
|
};
|
|
4062
|
-
|
|
4062
|
+
warnings: {
|
|
4063
4063
|
passwordExpirationMessage: string;
|
|
4064
4064
|
};
|
|
4065
4065
|
};
|
|
@@ -4869,7 +4869,7 @@ export declare const messages: {
|
|
|
4869
4869
|
named: any;
|
|
4870
4870
|
}) => string;
|
|
4871
4871
|
};
|
|
4872
|
-
|
|
4872
|
+
warnings: {
|
|
4873
4873
|
passwordExpirationMessage: string;
|
|
4874
4874
|
};
|
|
4875
4875
|
};
|
|
@@ -5679,7 +5679,7 @@ export declare const messages: {
|
|
|
5679
5679
|
named: any;
|
|
5680
5680
|
}) => string;
|
|
5681
5681
|
};
|
|
5682
|
-
|
|
5682
|
+
warnings: {
|
|
5683
5683
|
passwordExpirationMessage: string;
|
|
5684
5684
|
};
|
|
5685
5685
|
};
|
|
@@ -6490,7 +6490,7 @@ export declare const messages: {
|
|
|
6490
6490
|
named: any;
|
|
6491
6491
|
}) => string;
|
|
6492
6492
|
};
|
|
6493
|
-
|
|
6493
|
+
warnings: {
|
|
6494
6494
|
passwordExpirationMessage: string;
|
|
6495
6495
|
};
|
|
6496
6496
|
};
|
|
@@ -7300,7 +7300,7 @@ export declare const messages: {
|
|
|
7300
7300
|
named: any;
|
|
7301
7301
|
}) => string;
|
|
7302
7302
|
};
|
|
7303
|
-
|
|
7303
|
+
warnings: {
|
|
7304
7304
|
passwordExpirationMessage: string;
|
|
7305
7305
|
};
|
|
7306
7306
|
};
|
package/types/locale/kz/kz.d.ts
CHANGED
package/types/locale/pl/pl.d.ts
CHANGED
package/types/locale/ro/ro.d.ts
CHANGED
package/types/locale/ru/ru.d.ts
CHANGED
package/types/locale/uk/uk.d.ts
CHANGED
package/types/locale/uz/uz.d.ts
CHANGED
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const USER_NOTIFICATION_CONFIGS_MAP: Map<string, UserNotificationsConfigsMap>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { ApiUserWarning } from '@webitel/api-services/gen/models';
|
|
2
|
+
import type { NotificationsType } from '../types/UserNotifications';
|
|
3
|
+
export declare const createUserNotificationsStore: () => import("pinia").StoreDefinition<"userNotifications", Pick<{
|
|
4
|
+
initialize: () => Promise<void>;
|
|
5
|
+
show: () => void;
|
|
6
|
+
/** internal for devtools/debug */
|
|
7
|
+
rawNotifications: import("vue").Ref<{
|
|
8
|
+
detail?: string;
|
|
9
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
10
|
+
warningData?: {
|
|
11
|
+
licenseExpiry?: {
|
|
12
|
+
daysRemaining?: string;
|
|
13
|
+
expiresAt?: string;
|
|
14
|
+
licenseName?: string;
|
|
15
|
+
};
|
|
16
|
+
passwordExpiry?: {
|
|
17
|
+
daysRemaining?: string;
|
|
18
|
+
expiresAt?: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}[], ApiUserWarning[] | {
|
|
22
|
+
detail?: string;
|
|
23
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
24
|
+
warningData?: {
|
|
25
|
+
licenseExpiry?: {
|
|
26
|
+
daysRemaining?: string;
|
|
27
|
+
expiresAt?: string;
|
|
28
|
+
licenseName?: string;
|
|
29
|
+
};
|
|
30
|
+
passwordExpiry?: {
|
|
31
|
+
daysRemaining?: string;
|
|
32
|
+
expiresAt?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}[]>;
|
|
36
|
+
notifications: import("vue").ComputedRef<NotificationsType[]>;
|
|
37
|
+
}, "rawNotifications">, Pick<{
|
|
38
|
+
initialize: () => Promise<void>;
|
|
39
|
+
show: () => void;
|
|
40
|
+
/** internal for devtools/debug */
|
|
41
|
+
rawNotifications: import("vue").Ref<{
|
|
42
|
+
detail?: string;
|
|
43
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
44
|
+
warningData?: {
|
|
45
|
+
licenseExpiry?: {
|
|
46
|
+
daysRemaining?: string;
|
|
47
|
+
expiresAt?: string;
|
|
48
|
+
licenseName?: string;
|
|
49
|
+
};
|
|
50
|
+
passwordExpiry?: {
|
|
51
|
+
daysRemaining?: string;
|
|
52
|
+
expiresAt?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}[], ApiUserWarning[] | {
|
|
56
|
+
detail?: string;
|
|
57
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
58
|
+
warningData?: {
|
|
59
|
+
licenseExpiry?: {
|
|
60
|
+
daysRemaining?: string;
|
|
61
|
+
expiresAt?: string;
|
|
62
|
+
licenseName?: string;
|
|
63
|
+
};
|
|
64
|
+
passwordExpiry?: {
|
|
65
|
+
daysRemaining?: string;
|
|
66
|
+
expiresAt?: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}[]>;
|
|
70
|
+
notifications: import("vue").ComputedRef<NotificationsType[]>;
|
|
71
|
+
}, "notifications">, Pick<{
|
|
72
|
+
initialize: () => Promise<void>;
|
|
73
|
+
show: () => void;
|
|
74
|
+
/** internal for devtools/debug */
|
|
75
|
+
rawNotifications: import("vue").Ref<{
|
|
76
|
+
detail?: string;
|
|
77
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
78
|
+
warningData?: {
|
|
79
|
+
licenseExpiry?: {
|
|
80
|
+
daysRemaining?: string;
|
|
81
|
+
expiresAt?: string;
|
|
82
|
+
licenseName?: string;
|
|
83
|
+
};
|
|
84
|
+
passwordExpiry?: {
|
|
85
|
+
daysRemaining?: string;
|
|
86
|
+
expiresAt?: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}[], ApiUserWarning[] | {
|
|
90
|
+
detail?: string;
|
|
91
|
+
id?: import("@webitel/api-services/gen/models").ApiUserWarningId;
|
|
92
|
+
warningData?: {
|
|
93
|
+
licenseExpiry?: {
|
|
94
|
+
daysRemaining?: string;
|
|
95
|
+
expiresAt?: string;
|
|
96
|
+
licenseName?: string;
|
|
97
|
+
};
|
|
98
|
+
passwordExpiry?: {
|
|
99
|
+
daysRemaining?: string;
|
|
100
|
+
expiresAt?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}[]>;
|
|
104
|
+
notifications: import("vue").ComputedRef<NotificationsType[]>;
|
|
105
|
+
}, "show" | "initialize">>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface UserNotificationsConfigsMap {
|
|
2
|
+
id: string;
|
|
3
|
+
type: 'info' | 'warning' | 'error';
|
|
4
|
+
localeKey: string;
|
|
5
|
+
getDays: (warningData: number) => number;
|
|
6
|
+
}
|
|
7
|
+
interface NotificationsType {
|
|
8
|
+
type: 'info' | 'warning' | 'error';
|
|
9
|
+
localeKey: string;
|
|
10
|
+
days: number;
|
|
11
|
+
shown?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type { NotificationsType, UserNotificationsConfigsMap };
|
|
@@ -19,6 +19,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
|
|
|
19
19
|
hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
|
|
20
20
|
hasApplicationVisibility: (app: pick) => boolean;
|
|
21
21
|
logoutUser: () => Promise<void>;
|
|
22
|
+
showUserNotifications: () => void;
|
|
22
23
|
}, "timezone" | "userId" | "userInfo">, Pick<{
|
|
23
24
|
userId: import("vue").Ref<any, any>;
|
|
24
25
|
userInfo: import("vue").Ref<any, any>;
|
|
@@ -39,6 +40,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
|
|
|
39
40
|
hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
|
|
40
41
|
hasApplicationVisibility: (app: pick) => boolean;
|
|
41
42
|
logoutUser: () => Promise<void>;
|
|
43
|
+
showUserNotifications: () => void;
|
|
42
44
|
}, never>, Pick<{
|
|
43
45
|
userId: import("vue").Ref<any, any>;
|
|
44
46
|
userInfo: import("vue").Ref<any, any>;
|
|
@@ -59,4 +61,5 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
|
|
|
59
61
|
hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
|
|
60
62
|
hasApplicationVisibility: (app: pick) => boolean;
|
|
61
63
|
logoutUser: () => Promise<void>;
|
|
62
|
-
|
|
64
|
+
showUserNotifications: () => void;
|
|
65
|
+
}, "initialize" | "hasReadAccess" | "hasCreateAccess" | "hasUpdateAccess" | "hasDeleteAccess" | "routeAccessGuard" | "hasSpecialGlobalActionAccess" | "hasGlobalCrudActionAccess" | "hasLicense" | "hasApplicationVisibility" | "hasSectionVisibility" | "logoutUser" | "showUserNotifications">>;
|