@trackunit/react-core-contexts-api 1.8.45 → 1.8.47-alpha-fb1493a185d.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
@@ -117,6 +117,7 @@ const assetHomePageIds = [
117
117
  "contracts",
118
118
  ];
119
119
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
120
+ const groupHomePageIds = ["assets", "users", "details"];
120
121
  const customerHomePageIds = ["info", "assets", "contact-list"];
121
122
  /**
122
123
  * type guard for IrisAppOptions
@@ -158,6 +159,7 @@ exports.UserSubscriptionPackage = UserSubscriptionPackage;
158
159
  exports.assetHomePageIds = assetHomePageIds;
159
160
  exports.createEvent = createEvent;
160
161
  exports.customerHomePageIds = customerHomePageIds;
162
+ exports.groupHomePageIds = groupHomePageIds;
161
163
  exports.isIrisOptions = isIrisOptions;
162
164
  exports.siteHomePageIds = siteHomePageIds;
163
165
  exports.validateStringAsAssetSortByProperty = validateStringAsAssetSortByProperty;
package/index.esm.js CHANGED
@@ -115,6 +115,7 @@ const assetHomePageIds = [
115
115
  "contracts",
116
116
  ];
117
117
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
118
+ const groupHomePageIds = ["assets", "users", "details"];
118
119
  const customerHomePageIds = ["info", "assets", "contact-list"];
119
120
  /**
120
121
  * type guard for IrisAppOptions
@@ -150,4 +151,4 @@ const UserSubscriptionPackage = {
150
151
  CUSTOMER_PORTAL: "Customer Portal",
151
152
  };
152
153
 
153
- export { AssetSortByProperty, SortOrder, SystemOfMeasurement, TimeZonePreference, UserSubscriptionPackage, assetHomePageIds, createEvent, customerHomePageIds, isIrisOptions, siteHomePageIds, validateStringAsAssetSortByProperty };
154
+ export { AssetSortByProperty, SortOrder, SystemOfMeasurement, TimeZonePreference, UserSubscriptionPackage, assetHomePageIds, createEvent, customerHomePageIds, groupHomePageIds, isIrisOptions, siteHomePageIds, validateStringAsAssetSortByProperty };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "1.8.45",
3
+ "version": "1.8.47-alpha-fb1493a185d.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "jest-fetch-mock": "^3.0.3",
11
- "@trackunit/shared-utils": "1.9.42",
12
- "@trackunit/geo-json-utils": "1.7.42",
13
- "@trackunit/react-test-setup": "1.4.42"
11
+ "@trackunit/shared-utils": "1.9.43-alpha-fb1493a185d.0",
12
+ "@trackunit/geo-json-utils": "1.7.43-alpha-fb1493a185d.0",
13
+ "@trackunit/react-test-setup": "1.4.43-alpha-fb1493a185d.0"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "main": "./index.cjs.js",
@@ -40,6 +40,9 @@ export type AssetHomeStandardOptions = Page<AssetHomePageId> & NeverIrisApp;
40
40
  export declare const siteHomePageIds: readonly ["overview", "assets", "asset-visibility"];
41
41
  export type SiteHomePageId = (typeof siteHomePageIds)[number];
42
42
  export type SiteHomeStandardOptions = Page<SiteHomePageId> & NeverIrisApp;
43
+ export declare const groupHomePageIds: readonly ["assets", "users", "details"];
44
+ export type GroupHomePageId = (typeof groupHomePageIds)[number];
45
+ export type GroupHomeStandardOptions = Page<GroupHomePageId> & NeverIrisApp;
43
46
  export declare const customerHomePageIds: readonly ["info", "assets", "contact-list"];
44
47
  export type CustomerHomePageId = (typeof customerHomePageIds)[number];
45
48
  export type CustomerHomeStandardOptions = Page<CustomerHomePageId> & NeverIrisApp;
@@ -56,6 +59,7 @@ export interface INavigationContext {
56
59
  gotoAssetHome: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<boolean>;
57
60
  gotoSiteHome: (siteId: string, options?: IrisAppOptions | SiteHomeStandardOptions) => Promise<boolean>;
58
61
  gotoCustomerHome: (customerId?: string, options?: IrisAppOptions | CustomerHomeStandardOptions) => Promise<boolean>;
62
+ gotoGroupHome: (groupId: string, options?: GroupHomeStandardOptions) => Promise<boolean>;
59
63
  gotoAppLibrary: (irisAppId?: string) => Promise<boolean>;
60
64
  gotoFleetApp: (options: IrisAppOptions | FleetAppStandardOptions) => Promise<boolean>;
61
65
  gotoAdmin: (url?: string) => Promise<boolean>;
@@ -67,6 +71,7 @@ export interface INavigationContext {
67
71
  getAssetHomeUrl: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<string | null>;
68
72
  getSiteHomeUrl: (siteId: string, options?: IrisAppOptions | SiteHomeStandardOptions) => Promise<string | null>;
69
73
  getCustomerHomeUrl: (customerId?: string, options?: IrisAppOptions | CustomerHomeStandardOptions) => Promise<string | null>;
74
+ getGroupHomeUrl: (groupId: string, options?: GroupHomeStandardOptions) => Promise<string | null>;
70
75
  getAppLibraryUrl: (irisAppId?: string) => Promise<string | null>;
71
76
  getFleetAppUrl: (options: IrisAppOptions | FleetAppStandardOptions) => Promise<string | null>;
72
77
  getAdminUrl: (url?: string) => Promise<string>;