@trackunit/react-core-contexts-api 0.2.2 → 0.2.4

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
@@ -1,5 +1,4 @@
1
1
  var AssetSortByProperty;
2
-
3
2
  (function (AssetSortByProperty) {
4
3
  AssetSortByProperty["Activity"] = "ACTIVITY";
5
4
  AssetSortByProperty["Brand"] = "BRAND";
@@ -19,21 +18,21 @@ var AssetSortByProperty;
19
18
  AssetSortByProperty["TelematicsDeviceSerialNumber"] = "TELEMATICS_DEVICE_SERIAL_NUMBER";
20
19
  AssetSortByProperty["Type"] = "TYPE";
21
20
  })(AssetSortByProperty || (AssetSortByProperty = {}));
22
-
23
21
  var SortOrder;
24
-
25
22
  (function (SortOrder) {
26
23
  SortOrder["Asc"] = "ASC";
27
24
  SortOrder["Desc"] = "DESC";
28
25
  })(SortOrder || (SortOrder = {}));
29
26
 
30
27
  var UserSubscriptionPackageType;
31
-
32
28
  (function (UserSubscriptionPackageType) {
33
- UserSubscriptionPackageType["EXPAND_FLEET_OWNER"] = "Expand (Fleet Owner)";
29
+ UserSubscriptionPackageType["EXPLORE_FLEET_OWNER"] = "Explore (Fleet Owner)";
34
30
  UserSubscriptionPackageType["EVOLVE_FLEET_OWNER"] = "Evolve (Fleet Owner)";
35
- UserSubscriptionPackageType["EXPLORE_FLEET_OWNER"] = "Explore (Fleet Owner)"; // OLD PACKAGES
36
-
31
+ UserSubscriptionPackageType["EXPAND_FLEET_OWNER"] = "Expand (Fleet Owner)";
32
+ UserSubscriptionPackageType["EXPLORE_OEM"] = "Explore (OEM)";
33
+ UserSubscriptionPackageType["EVOLVE_OEM"] = "Evolve (OEM)";
34
+ UserSubscriptionPackageType["EXPAND_OEM"] = "Expand (OEM)";
35
+ // OLD PACKAGES
37
36
  UserSubscriptionPackageType["Collect"] = "COLLECT";
38
37
  UserSubscriptionPackageType["Insight"] = "INSIGHT";
39
38
  UserSubscriptionPackageType["View"] = "VIEW";
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
7
7
  "main": "./index.js",
8
8
  "type": "module",
9
- "types": "./index.d.ts"
9
+ "types": "./src/index.d.ts"
10
10
  }
File without changes
File without changes
File without changes
File without changes
@@ -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",