@trackunit/react-core-contexts-api 0.2.136 → 0.2.138
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/currentUserContext.d.ts +7 -5
- package/src/userSubscriptionContext.d.ts +1 -1
package/index.cjs.js
CHANGED
package/index.esm.js
CHANGED
@@ -140,7 +140,7 @@ const UserSubscriptionPackage = {
|
|
140
140
|
LINK: "Link",
|
141
141
|
LIFT: "Lift",
|
142
142
|
LEAP: "Leap",
|
143
|
-
|
143
|
+
CUSTOMER_PORTAL: "Customer Portal",
|
144
144
|
};
|
145
145
|
|
146
146
|
export { AssetSortByProperty, SortOrder, SystemOfMeasurement, TimeZonePreference, UserSubscriptionPackage, assetHomePageIds, createEvent, customerHomePageIds, isIrisOptions, siteHomePageIds, validateStringAsAssetSortByProperty };
|
package/package.json
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
-
import { UserSubscriptionPackageType } from "./userSubscriptionContext";
|
2
1
|
export interface ICurrentUserContext {
|
2
|
+
/**
|
3
|
+
* User id used when logging in. Undefined if not authenticated, will change if user is impersonating or not.
|
4
|
+
*/
|
5
|
+
clientSideUserId: string | undefined;
|
6
|
+
/**
|
7
|
+
* tasUserId used when logging in. Undefined if not authenticated
|
8
|
+
*/
|
3
9
|
tasUserId: string | undefined;
|
4
10
|
/**
|
5
11
|
* userName used when logging in. Undefined if not authenticated
|
@@ -53,8 +59,4 @@ export interface ICurrentUserContext {
|
|
53
59
|
* Is user is account owner
|
54
60
|
*/
|
55
61
|
isAccountOwner: boolean | undefined;
|
56
|
-
/**
|
57
|
-
* accounts subscription package name
|
58
|
-
*/
|
59
|
-
subscriptionPackage: UserSubscriptionPackageType | undefined;
|
60
62
|
}
|
@@ -41,7 +41,7 @@ export declare const UserSubscriptionPackage: {
|
|
41
41
|
readonly LINK: "Link";
|
42
42
|
readonly LIFT: "Lift";
|
43
43
|
readonly LEAP: "Leap";
|
44
|
-
readonly
|
44
|
+
readonly CUSTOMER_PORTAL: "Customer Portal";
|
45
45
|
};
|
46
46
|
export type UserSubscriptionPackageType = keyof typeof UserSubscriptionPackage;
|
47
47
|
export interface IFeature {
|