@telia-ace/alliance-utilities 1.0.11 → 1.0.12-next.0

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,5 +1,14 @@
1
1
  # @telia-ace/alliance-utilities
2
2
 
3
+ ## 1.0.12-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 8763155: Fix `isSystemAdmin()` utility not checking user type correctly.
8
+ - 8763155: Update all dependencies to latest.
9
+ - Updated dependencies [8763155]
10
+ - @telia-ace/alliance-framework@1.0.12-next.0
11
+
3
12
  ## 1.0.11
4
13
 
5
14
  ### Patch Changes
@@ -1,2 +1,16 @@
1
+ type CurrentUser = {
2
+ permissions: {
3
+ permission: {
4
+ name: string;
5
+ app: {
6
+ name: string;
7
+ };
8
+ };
9
+ }[];
10
+ email: string;
11
+ type: 'system-admin' | 'user';
12
+ };
13
+ export declare function getCurrentUser(): Promise<CurrentUser>;
1
14
  export declare function isSystemAdmin(): Promise<boolean>;
2
15
  export declare function hasPermission(appName: string, permissionName: string): Promise<boolean>;
16
+ export {};
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { hasPermission, isSystemAdmin } from './current-user';
1
+ export { getCurrentUser, hasPermission, isSystemAdmin } from './current-user';