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

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.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -6,7 +6,7 @@ export interface IDeveloperSettingsContext {
6
6
  launchdarklyFlags?: FeatureFlags;
7
7
  setFlags?: React.Dispatch<React.SetStateAction<FeatureFlags | undefined>>;
8
8
  }
9
- export declare type FeatureFlags = {
9
+ export type FeatureFlags = {
10
10
  [key: string]: boolean | Json;
11
11
  };
12
- export declare type Json = string;
12
+ export type Json = string;
@@ -17,7 +17,6 @@ export interface IEnvironmentContext {
17
17
  graphqlManagerUrl: string;
18
18
  graphqlManagerImageUploadUrl: string;
19
19
  graphqlReportUrl: string;
20
- graphqlSimulatorUrl: string;
21
20
  buildVersion: string;
22
21
  commitNumber: number;
23
22
  buildDate: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare type AlertColors = "info" | "warning" | "danger" | "success";
3
- export declare type AlertAction = {
2
+ export type AlertColors = "info" | "warning" | "danger" | "success";
3
+ export type AlertAction = {
4
4
  label: string;
5
5
  onClick: () => void;
6
6
  loading?: boolean;
@@ -14,7 +14,7 @@ export interface Toast {
14
14
  secondaryAction?: AlertAction;
15
15
  duration?: number;
16
16
  }
17
- export declare type AddToast = (toast: Toast) => void;
17
+ export type AddToast = (toast: Toast) => void;
18
18
  export interface IToastContext {
19
19
  addToast: AddToast;
20
20
  setIsManifestError?: React.Dispatch<React.SetStateAction<boolean>>;
@@ -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 type UserSubscriptionPackageType = keyof typeof UserSubscriptionPackage;
35
36
  export interface IFeature {
36
37
  id: string;
37
38
  name: string;