@webitel/ui-sdk 25.6.15 → 25.6.17

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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [v25.6.17] - 2025-05-19
2
+ ### :recycle: Refactors
3
+ - [`5e9f56c`](https://github.com/webitel/webitel-ui-sdk/commit/5e9f56c28cee3e0cf4bc1f1f6097a7efdeeaa19c) - update package versions to 25.6.16 and 25.6.17 [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
4
+
5
+
6
+ ## [v25.6.16] - 2025-05-16
7
+ ### :sparkles: New Features
8
+ - [`34690f0`](https://github.com/webitel/webitel-ui-sdk/commit/34690f06a47f2f4e0bc6e69b2cddb423cf51b119) - new method for permissions added permission added [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
9
+
10
+ ### :recycle: Refactors
11
+ - [`8ea620e`](https://github.com/webitel/webitel-ui-sdk/commit/8ea620e3df81a3c8d613d6943bb42b33c75c6ca3) - code review refactor [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
12
+ - [`7cf5626`](https://github.com/webitel/webitel-ui-sdk/commit/7cf5626ce5a53ebbb5a39d7696c6c29484d7fc62) - code review refactor [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
13
+ - [`3ea12dd`](https://github.com/webitel/webitel-ui-sdk/commit/3ea12dd998957d2593f24a9a6a48114875477bd5) - code review refactor [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
14
+ - [`b1d0c07`](https://github.com/webitel/webitel-ui-sdk/commit/b1d0c07d2cfeda62e5f4eec9ca52dc7e48a6bd49) - code review refactor [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
15
+ - [`a50a114`](https://github.com/webitel/webitel-ui-sdk/commit/a50a114a1fe9b58497bf4daf1696c4b4bd1489c9) - code review refactor [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
16
+ - [`d101aed`](https://github.com/webitel/webitel-ui-sdk/commit/d101aedbc5fb6540d81c26c27785b1d6211b4375) - merge with master and increment version [WTEL-6827](https://webitel.atlassian.net/browse/WTEL-6827) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))*
17
+
18
+
1
19
  ## [v25.6.15] - 2025-05-14
2
20
  ### :sparkles: New Features
3
21
  - [`bcaec52`](https://github.com/webitel/webitel-ui-sdk/commit/bcaec52fd8cb9dcbf230de597fb911ba677ae086) - add locale for notification [WTEL-6860](https://webitel.atlassian.net/browse/WTEL-6860) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))*
@@ -2154,3 +2172,5 @@
2154
2172
  [v25.6.13]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.12...v25.6.13
2155
2173
  [v25.6.14]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.13...v25.6.14
2156
2174
  [v25.6.15]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.14...v25.6.15
2175
+ [v25.6.16]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.15...v25.6.16
2176
+ [v25.6.17]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.16...v25.6.17
@@ -18,14 +18,17 @@ export type CrudGlobalAction = (typeof CrudGlobalAction)[keyof typeof CrudGlobal
18
18
  * like downloading files or exporting data
19
19
  * */
20
20
  export declare const SpecialGlobalAction: {
21
- readonly PlaybackRecordFile: "playbackRecordFile";
22
- readonly ManageUserLicense: "manageUserLicense";
23
- readonly SchemeVariables: "schemeVariables";
24
- readonly SystemSetting: "systemSetting";
25
- readonly ManageUserRoles: "manageUserRoles";
26
- readonly ExportDataGrid: "exportDataGrid";
27
- readonly ViewCdrPhoneNumbers: "viewCdrPhoneNumbers";
28
- readonly ChangeUserPassword: "changeUserPassword";
29
- readonly EavesdropCall: "eavesdropCall";
21
+ readonly PlaybackRecordFile: "playback_record_file";
22
+ readonly ResetActiveAttempts: "reset_active_attempts";
23
+ readonly TimeLimitedRecordFile: "time_limited_record_file";
24
+ readonly ManageUserLicense: "manage_user_license";
25
+ readonly SchemeVariables: "scheme_variables";
26
+ readonly SystemSetting: "system_setting";
27
+ readonly ManageUserRoles: "manage_user_roles";
28
+ readonly ExportDataGrid: "export_data_grid";
29
+ readonly LimitWorkspaceContacts: "limit_workspace_contacts";
30
+ readonly ViewCdrPhoneNumbers: "view_cdr_phone_numbers";
31
+ readonly ChangeUserPassword: "change_user_password";
32
+ readonly EavesdropCall: "eavesdrop_call";
30
33
  };
31
34
  export type SpecialGlobalAction = (typeof SpecialGlobalAction)[keyof typeof SpecialGlobalAction];
@@ -6,6 +6,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
6
6
  hasUpdateAccess: (object?: import("../../../../enums").WtObject) => boolean;
7
7
  hasDeleteAccess: (object?: import("../../../../enums").WtObject) => boolean;
8
8
  routeAccessGuard: import("vue-router").NavigationGuard;
9
+ hasSpecialGlobalActionAccess: (id: import("../enums").SpecialGlobalAction) => boolean;
9
10
  }, "userId">, Pick<{
10
11
  userId: import("vue").Ref<any, any>;
11
12
  initialize: () => Promise<void>;
@@ -14,6 +15,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
14
15
  hasUpdateAccess: (object?: import("../../../../enums").WtObject) => boolean;
15
16
  hasDeleteAccess: (object?: import("../../../../enums").WtObject) => boolean;
16
17
  routeAccessGuard: import("vue-router").NavigationGuard;
18
+ hasSpecialGlobalActionAccess: (id: import("../enums").SpecialGlobalAction) => boolean;
17
19
  }, never>, Pick<{
18
20
  userId: import("vue").Ref<any, any>;
19
21
  initialize: () => Promise<void>;
@@ -22,4 +24,5 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
22
24
  hasUpdateAccess: (object?: import("../../../../enums").WtObject) => boolean;
23
25
  hasDeleteAccess: (object?: import("../../../../enums").WtObject) => boolean;
24
26
  routeAccessGuard: import("vue-router").NavigationGuard;
25
- }, "initialize" | "hasReadAccess" | "hasCreateAccess" | "hasUpdateAccess" | "hasDeleteAccess" | "routeAccessGuard">>;
27
+ hasSpecialGlobalActionAccess: (id: import("../enums").SpecialGlobalAction) => boolean;
28
+ }, "initialize" | "hasReadAccess" | "hasCreateAccess" | "hasUpdateAccess" | "hasDeleteAccess" | "routeAccessGuard" | "hasSpecialGlobalActionAccess">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.6.15",
3
+ "version": "25.6.17",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -21,15 +21,18 @@ export type CrudGlobalAction =
21
21
  * like downloading files or exporting data
22
22
  * */
23
23
  export const SpecialGlobalAction = {
24
- PlaybackRecordFile: 'playbackRecordFile',
25
- ManageUserLicense: 'manageUserLicense',
26
- SchemeVariables: 'schemeVariables',
27
- SystemSetting: 'systemSetting',
28
- ManageUserRoles: 'manageUserRoles',
29
- ExportDataGrid: 'exportDataGrid',
30
- ViewCdrPhoneNumbers: 'viewCdrPhoneNumbers',
31
- ChangeUserPassword: 'changeUserPassword',
32
- EavesdropCall: 'eavesdropCall',
24
+ PlaybackRecordFile: 'playback_record_file',
25
+ ResetActiveAttempts: 'reset_active_attempts',
26
+ TimeLimitedRecordFile: 'time_limited_record_file',
27
+ ManageUserLicense: 'manage_user_license',
28
+ SchemeVariables: 'scheme_variables',
29
+ SystemSetting: 'system_setting',
30
+ ManageUserRoles: 'manage_user_roles',
31
+ ExportDataGrid: 'export_data_grid',
32
+ LimitWorkspaceContacts: 'limit_workspace_contacts',
33
+ ViewCdrPhoneNumbers: 'view_cdr_phone_numbers',
34
+ ChangeUserPassword: 'change_user_password',
35
+ EavesdropCall: 'eavesdrop_call',
33
36
  } as const;
34
37
 
35
38
  export type SpecialGlobalAction =
@@ -106,6 +106,11 @@ export const createUserAccessStore = ({
106
106
  return true;
107
107
  };
108
108
 
109
+
110
+ const hasSpecialGlobalActionAccess = (id: SpecialGlobalAction): boolean => {
111
+ return !!globalAccess.get(id);
112
+ };
113
+
109
114
  const initialize = ({
110
115
  permissions: rawGlobalAccess,
111
116
  scope: rawScopeAccess,
@@ -126,6 +131,7 @@ export const createUserAccessStore = ({
126
131
  hasDeleteAccess,
127
132
 
128
133
  routeAccessGuard,
134
+ hasSpecialGlobalActionAccess,
129
135
  };
130
136
  });
131
137
  };
@@ -19,6 +19,7 @@ export const createUserinfoStore = () => {
19
19
  hasDeleteAccess,
20
20
  initialize: initializeAccessStore,
21
21
  routeAccessGuard,
22
+ hasSpecialGlobalActionAccess,
22
23
  } = accessStore;
23
24
 
24
25
  const userId = ref();
@@ -46,6 +47,7 @@ export const createUserinfoStore = () => {
46
47
  hasDeleteAccess,
47
48
 
48
49
  routeAccessGuard,
50
+ hasSpecialGlobalActionAccess,
49
51
  };
50
52
  });
51
53
 
@@ -113,6 +113,8 @@ export interface UserAccessStore {
113
113
 
114
114
  routeAccessGuard: NavigationGuard;
115
115
 
116
+ hasSpecialGlobalActionAccess: (id: SpecialGlobalAction) => boolean;
117
+
116
118
  // hasApplicationVisibility: (app: WtApplication) => boolean;
117
119
  // hasSectionVisibility: (section: UiSection) => boolean;
118
120
  }