@trackunit/react-core-contexts-api 0.2.15 → 0.2.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.15",
3
+ "version": "0.2.18",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -4,6 +4,10 @@ export interface ICurrentUserContext {
4
4
  * userName used when logging in. Undefined if not authenticated
5
5
  */
6
6
  userName: string | undefined;
7
+ /**
8
+ * user role of current user. Undefined if not authenticated
9
+ */
10
+ userRole: string | undefined;
7
11
  /**
8
12
  * Legacy user id. Undefined if not authenticated
9
13
  */
@@ -23,6 +27,7 @@ export interface ICurrentUserContext {
23
27
  userId: number;
24
28
  customerId: number;
25
29
  accountId: string;
30
+ tasUserId: string | undefined;
26
31
  } | null;
27
32
  email: string | undefined;
28
33
  name: string | undefined;
@@ -31,4 +36,12 @@ export interface ICurrentUserContext {
31
36
  * Is there an authenticated user or not
32
37
  */
33
38
  isAuthenticated: boolean;
39
+ /**
40
+ * Is user verified in Okta
41
+ */
42
+ isVerified: boolean | undefined;
43
+ /**
44
+ * Is user is account owner
45
+ */
46
+ isAccountOwner: boolean | undefined;
34
47
  }