@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 CHANGED
@@ -144,7 +144,7 @@ const UserSubscriptionPackage = {
144
144
  LINK: "Link",
145
145
  LIFT: "Lift",
146
146
  LEAP: "Leap",
147
- CUSTOMER_PORTAL_TEST: "Customer Portal Test",
147
+ CUSTOMER_PORTAL: "Customer Portal",
148
148
  };
149
149
 
150
150
  exports.SystemOfMeasurement = SystemOfMeasurement;
package/index.esm.js CHANGED
@@ -140,7 +140,7 @@ const UserSubscriptionPackage = {
140
140
  LINK: "Link",
141
141
  LIFT: "Lift",
142
142
  LEAP: "Leap",
143
- CUSTOMER_PORTAL_TEST: "Customer Portal Test",
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.136",
3
+ "version": "0.2.138",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -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 CUSTOMER_PORTAL_TEST: "Customer Portal Test";
44
+ readonly CUSTOMER_PORTAL: "Customer Portal";
45
45
  };
46
46
  export type UserSubscriptionPackageType = keyof typeof UserSubscriptionPackage;
47
47
  export interface IFeature {