@trackunit/react-core-contexts-api 0.2.0 → 0.2.3

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.js CHANGED
@@ -30,9 +30,12 @@ var SortOrder;
30
30
  var UserSubscriptionPackageType;
31
31
 
32
32
  (function (UserSubscriptionPackageType) {
33
- UserSubscriptionPackageType["EXPAND_FLEET_OWNER"] = "Expand (Fleet Owner)";
33
+ UserSubscriptionPackageType["EXPLORE_FLEET_OWNER"] = "Explore (Fleet Owner)";
34
34
  UserSubscriptionPackageType["EVOLVE_FLEET_OWNER"] = "Evolve (Fleet Owner)";
35
- UserSubscriptionPackageType["EXPLORE_FLEET_OWNER"] = "Explore (Fleet Owner)"; // OLD PACKAGES
35
+ UserSubscriptionPackageType["EXPAND_FLEET_OWNER"] = "Expand (Fleet Owner)";
36
+ UserSubscriptionPackageType["EXPLORE_OEM"] = "Explore (OEM)";
37
+ UserSubscriptionPackageType["EVOLVE_OEM"] = "Evolve (OEM)";
38
+ UserSubscriptionPackageType["EXPAND_OEM"] = "Expand (OEM)"; // OLD PACKAGES
36
39
 
37
40
  UserSubscriptionPackageType["Collect"] = "COLLECT";
38
41
  UserSubscriptionPackageType["Insight"] = "INSIGHT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -7,11 +7,26 @@ export interface IUserSubscriptionContext {
7
7
  * Extra features enabled for the current user. Will be null if still loading
8
8
  */
9
9
  features: IFeature[] | null;
10
+ /**
11
+ * Number of days you can see back in time for this subscription.
12
+ *
13
+ * Returns the number of days
14
+ */
15
+ numberOfDaysWithAccessToHistoricalData: number;
16
+ /**
17
+ * Number of days you can see back in time for insights for this subscription.
18
+ *
19
+ * Returns the number of days
20
+ */
21
+ numberOfDaysWithAccessToHistoricalInsights: number;
10
22
  }
11
23
  export declare enum UserSubscriptionPackageType {
12
- EXPAND_FLEET_OWNER = "Expand (Fleet Owner)",
13
- EVOLVE_FLEET_OWNER = "Evolve (Fleet Owner)",
14
24
  EXPLORE_FLEET_OWNER = "Explore (Fleet Owner)",
25
+ EVOLVE_FLEET_OWNER = "Evolve (Fleet Owner)",
26
+ EXPAND_FLEET_OWNER = "Expand (Fleet Owner)",
27
+ EXPLORE_OEM = "Explore (OEM)",
28
+ EVOLVE_OEM = "Evolve (OEM)",
29
+ EXPAND_OEM = "Expand (OEM)",
15
30
  Collect = "COLLECT",
16
31
  Insight = "INSIGHT",
17
32
  View = "VIEW",