@trackunit/react-core-contexts-api 0.2.70 → 0.2.72
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/package.json
CHANGED
@@ -34,6 +34,10 @@ export type AssetHomeStandardOptions = Page<AssetHomePageId> & NeverIrisApp;
|
|
34
34
|
export declare const siteHomePageIds: readonly ["overview", "assets", "asset-visibility"];
|
35
35
|
export type SiteHomePageId = (typeof siteHomePageIds)[number];
|
36
36
|
export type SiteHomeStandardOptions = Page<SiteHomePageId> & NeverIrisApp;
|
37
|
+
export type HasAccessToOptions = (IrisAppOptions | AssetHomeStandardOptions | SiteHomeStandardOptions | FleetAppStandardOptions) & {
|
38
|
+
assetId?: string;
|
39
|
+
siteId?: string;
|
40
|
+
};
|
37
41
|
/**
|
38
42
|
* type guard for IrisAppOptions
|
39
43
|
*/
|
@@ -46,6 +50,7 @@ export type DeepLink = {
|
|
46
50
|
hash: Location["hash"];
|
47
51
|
};
|
48
52
|
export interface INavigationContext {
|
53
|
+
hasAccessTo: (options: HasAccessToOptions) => Promise<boolean>;
|
49
54
|
gotoAssetHome: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<boolean>;
|
50
55
|
gotoSiteHome: (siteId: string, options?: IrisAppOptions | SiteHomeStandardOptions) => Promise<boolean>;
|
51
56
|
gotoAppLibrary: (irisAppId?: string) => Promise<boolean>;
|