@trackunit/react-core-contexts-api 0.2.131 → 0.2.133-alpha-811f31928e6.0

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
@@ -113,6 +113,7 @@ const assetHomePageIds = [
113
113
  "customers",
114
114
  ];
115
115
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
116
+ const customerHomePageIds = ["info", "assets", "contact-list"];
116
117
  /**
117
118
  * type guard for IrisAppOptions
118
119
  */
@@ -151,6 +152,7 @@ exports.TimeZonePreference = TimeZonePreference;
151
152
  exports.UserSubscriptionPackage = UserSubscriptionPackage;
152
153
  exports.assetHomePageIds = assetHomePageIds;
153
154
  exports.createEvent = createEvent;
155
+ exports.customerHomePageIds = customerHomePageIds;
154
156
  exports.isIrisOptions = isIrisOptions;
155
157
  exports.siteHomePageIds = siteHomePageIds;
156
158
  exports.validateStringAsAssetSortByProperty = validateStringAsAssetSortByProperty;
package/index.esm.js CHANGED
@@ -109,6 +109,7 @@ const assetHomePageIds = [
109
109
  "customers",
110
110
  ];
111
111
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
112
+ const customerHomePageIds = ["info", "assets", "contact-list"];
112
113
  /**
113
114
  * type guard for IrisAppOptions
114
115
  */
@@ -142,4 +143,4 @@ const UserSubscriptionPackage = {
142
143
  CUSTOMER_PORTAL_TEST: "Customer Portal Test",
143
144
  };
144
145
 
145
- export { AssetSortByProperty, SortOrder, SystemOfMeasurement, TimeZonePreference, UserSubscriptionPackage, assetHomePageIds, createEvent, isIrisOptions, siteHomePageIds, validateStringAsAssetSortByProperty };
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.131",
3
+ "version": "0.2.133-alpha-811f31928e6.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -33,6 +33,9 @@ export type AssetHomeStandardOptions = Page<AssetHomePageId> & NeverIrisApp;
33
33
  export declare const siteHomePageIds: readonly ["overview", "assets", "asset-visibility"];
34
34
  export type SiteHomePageId = (typeof siteHomePageIds)[number];
35
35
  export type SiteHomeStandardOptions = Page<SiteHomePageId> & NeverIrisApp;
36
+ export declare const customerHomePageIds: readonly ["info", "assets", "contact-list"];
37
+ export type CustomerHomePageId = (typeof customerHomePageIds)[number];
38
+ export type CustomerHomeStandardOptions = Page<CustomerHomePageId> & NeverIrisApp;
36
39
  export type HasAccessToOptions = (IrisAppOptions | AssetHomeStandardOptions | SiteHomeStandardOptions | FleetAppStandardOptions) & {
37
40
  assetId?: string;
38
41
  siteId?: string;
@@ -45,10 +48,11 @@ export interface INavigationContext {
45
48
  hasAccessTo: (options: HasAccessToOptions) => Promise<boolean>;
46
49
  gotoAssetHome: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<boolean>;
47
50
  gotoSiteHome: (siteId: string, options?: IrisAppOptions | SiteHomeStandardOptions) => Promise<boolean>;
51
+ gotoCustomerHome: (customerId?: string, options?: IrisAppOptions | CustomerHomeStandardOptions) => Promise<boolean>;
48
52
  gotoAppLibrary: (irisAppId?: string) => Promise<boolean>;
49
53
  gotoFleetApp: (options: IrisAppOptions | FleetAppStandardOptions) => Promise<boolean>;
50
- gotoCustomer: (customerId?: string) => Promise<boolean>;
51
54
  gotoMyExports: (exportId?: string) => Promise<boolean>;
52
55
  gotoAdmin: (url?: string) => Promise<boolean>;
56
+ reloadManager: () => Promise<boolean>;
53
57
  }
54
58
  export {};