@trackunit/iris-app-runtime-core-api 0.3.75 → 0.3.76
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
@@ -7,13 +7,16 @@ export type AutocompletePreservingString = string & {};
|
|
7
7
|
*/
|
8
8
|
type Page<TPage extends string> = {
|
9
9
|
page: TPage;
|
10
|
-
};
|
10
|
+
} & SubPage & QueryString;
|
11
11
|
/**
|
12
12
|
* SubPage allows for extra deep navigation inside of the app.
|
13
13
|
*/
|
14
14
|
type SubPage = {
|
15
15
|
subPage?: string;
|
16
16
|
};
|
17
|
+
type QueryString = {
|
18
|
+
queryString?: string;
|
19
|
+
};
|
17
20
|
type NeverPage = {
|
18
21
|
page?: never;
|
19
22
|
};
|
@@ -24,11 +27,12 @@ type NeverIrisApp = {
|
|
24
27
|
export type IrisAppOptions = {
|
25
28
|
irisAppId: string;
|
26
29
|
extensionId: string;
|
27
|
-
} & SubPage & NeverPage;
|
30
|
+
} & SubPage & QueryString & NeverPage;
|
28
31
|
declare const mainApps: readonly ["fleet", "reports", "sites"];
|
29
32
|
export type MainFleetApp = (typeof mainApps)[number];
|
30
|
-
export type AssetHomeStandardOptions = Page<AssetHomePageId> &
|
31
|
-
export type SiteHomeStandardOptions = Page<SiteHomePageId> &
|
33
|
+
export type AssetHomeStandardOptions = Page<AssetHomePageId> & NeverIrisApp;
|
34
|
+
export type SiteHomeStandardOptions = Page<SiteHomePageId> & NeverIrisApp;
|
35
|
+
export type FleetAppStandardOptions = Page<MainFleetApp> & NeverIrisApp;
|
32
36
|
/**
|
33
37
|
* type guard for IrisAppOptions
|
34
38
|
*/
|
@@ -38,6 +42,6 @@ export interface INavigationRuntime {
|
|
38
42
|
gotoAssetHome: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<boolean>;
|
39
43
|
gotoSiteHome: (siteId: string, options?: IrisAppOptions | SiteHomeStandardOptions) => Promise<boolean>;
|
40
44
|
gotoAppLibrary: (irisAppId?: string) => Promise<boolean>;
|
41
|
-
gotoFleetApp: (options: IrisAppOptions |
|
45
|
+
gotoFleetApp: (options: IrisAppOptions | FleetAppStandardOptions) => Promise<boolean>;
|
42
46
|
}
|
43
47
|
export {};
|