@trackunit/react-core-contexts-api 0.2.7 → 0.2.8

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
@@ -24,19 +24,17 @@ var SortOrder;
24
24
  SortOrder["Desc"] = "DESC";
25
25
  })(SortOrder || (SortOrder = {}));
26
26
 
27
- var UserSubscriptionPackageType;
28
- (function (UserSubscriptionPackageType) {
29
- UserSubscriptionPackageType["EXPLORE_FLEET_OWNER"] = "Explore (Fleet Owner)";
30
- UserSubscriptionPackageType["EVOLVE_FLEET_OWNER"] = "Evolve (Fleet Owner)";
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
36
- UserSubscriptionPackageType["Collect"] = "COLLECT";
37
- UserSubscriptionPackageType["Insight"] = "INSIGHT";
38
- UserSubscriptionPackageType["View"] = "VIEW";
39
- UserSubscriptionPackageType["None"] = "NONE";
40
- })(UserSubscriptionPackageType || (UserSubscriptionPackageType = {}));
27
+ const UserSubscriptionPackage = {
28
+ EXPLORE_FLEET_OWNER: "Explore (Fleet Owner)",
29
+ EVOLVE_FLEET_OWNER: "Evolve (Fleet Owner)",
30
+ EXPAND_FLEET_OWNER: "Expand (Fleet Owner)",
31
+ EXPLORE_OEM: "Explore (OEM)",
32
+ EVOLVE_OEM: "Evolve (OEM)",
33
+ EXPAND_OEM: "Expand (OEM)",
34
+ COLLECT: "COLLECT",
35
+ INSIGHT: "INSIGHT",
36
+ VIEW: "VIEW",
37
+ NONE: "NONE",
38
+ };
41
39
 
42
- export { AssetSortByProperty, SortOrder, UserSubscriptionPackageType };
40
+ export { AssetSortByProperty, SortOrder, UserSubscriptionPackage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -20,18 +20,19 @@ export interface IUserSubscriptionContext {
20
20
  */
21
21
  numberOfDaysWithAccessToHistoricalInsights: number;
22
22
  }
23
- export declare enum UserSubscriptionPackageType {
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)",
30
- Collect = "COLLECT",
31
- Insight = "INSIGHT",
32
- View = "VIEW",
33
- None = "NONE"
34
- }
23
+ export declare const UserSubscriptionPackage: {
24
+ readonly EXPLORE_FLEET_OWNER: "Explore (Fleet Owner)";
25
+ readonly EVOLVE_FLEET_OWNER: "Evolve (Fleet Owner)";
26
+ readonly EXPAND_FLEET_OWNER: "Expand (Fleet Owner)";
27
+ readonly EXPLORE_OEM: "Explore (OEM)";
28
+ readonly EVOLVE_OEM: "Evolve (OEM)";
29
+ readonly EXPAND_OEM: "Expand (OEM)";
30
+ readonly COLLECT: "COLLECT";
31
+ readonly INSIGHT: "INSIGHT";
32
+ readonly VIEW: "VIEW";
33
+ readonly NONE: "NONE";
34
+ };
35
+ export declare type UserSubscriptionPackageType = keyof typeof UserSubscriptionPackage;
35
36
  export interface IFeature {
36
37
  id: string;
37
38
  name: string;