@telia-ace/alliance-utilities 1.0.11-next.1 → 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 +26 -0
- package/dist/current-user.d.ts +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +221 -532
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
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
|
+
|
|
12
|
+
## 1.0.11
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- fd378fe: Add `hasPermission(appName: string, permissionName: string): Promise<boolean>` and `isSystemAdmin(): Promise<boolean>` utilities.
|
|
17
|
+
- fd378fe: Move internal utilities from `@telia-ace/alliance-utilities` to `@telia-ace/alliance-internal-client-utilities` and `@telia-ace/alliance-internal-node-utilities`.
|
|
18
|
+
- 511ba31: Add translation text for dev server logging flag description.
|
|
19
|
+
- 511ba31: Move internal utility `matchRegExpLike` back to framework package.
|
|
20
|
+
- fd378fe: Package has been repurposed to export utility functionalities used by various apps.
|
|
21
|
+
- Updated dependencies [511ba31]
|
|
22
|
+
- Updated dependencies [d646342]
|
|
23
|
+
- Updated dependencies [fd378fe]
|
|
24
|
+
- Updated dependencies [236e315]
|
|
25
|
+
- Updated dependencies [511ba31]
|
|
26
|
+
- @telia-ace/alliance-framework@1.0.11
|
|
27
|
+
- @telia-ace/alliance-internal-client-utilities@1.0.1
|
|
28
|
+
|
|
3
29
|
## 1.0.11-next.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/current-user.d.ts
CHANGED
|
@@ -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';
|