@redhat-cloud-services/types 0.0.3 → 0.0.4
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.d.ts +14 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -111,11 +111,14 @@ export interface ChromeAPI {
|
|
|
111
111
|
portal: string;
|
|
112
112
|
};
|
|
113
113
|
getUserPermissions: (applicationName?: string, disableCache?: boolean) => Promise<Access[]>;
|
|
114
|
-
globalFilterScope: (scope
|
|
115
|
-
|
|
114
|
+
globalFilterScope: (scope: string) => {
|
|
115
|
+
type: string;
|
|
116
|
+
payload: string;
|
|
117
|
+
};
|
|
118
|
+
hideGlobalFilter: (isHidden: boolean) => void;
|
|
116
119
|
/** @deprecated This function server no purpse. For document title update use "updateDocumentTitle" function instead. */
|
|
117
|
-
identifyApp: (data: any, appTitle?: string) => Promise<
|
|
118
|
-
init: () =>
|
|
120
|
+
identifyApp: (data: any, appTitle?: string, noSuffix?: boolean) => Promise<any>;
|
|
121
|
+
init: () => ChromeAPI;
|
|
119
122
|
isBeta: () => boolean;
|
|
120
123
|
isChrome2: boolean;
|
|
121
124
|
isDemo: () => boolean;
|
|
@@ -128,7 +131,12 @@ export interface ChromeAPI {
|
|
|
128
131
|
on: (...args: any[]) => any;
|
|
129
132
|
registerModule: (module: string, manifest: string) => void;
|
|
130
133
|
/** @duplicate of "hideGlobalFilter" TODO: deprecate this function */
|
|
131
|
-
removeGlobalFilter: (isHidden
|
|
132
|
-
|
|
134
|
+
removeGlobalFilter: (isHidden: boolean) => {
|
|
135
|
+
type: string;
|
|
136
|
+
payload: {
|
|
137
|
+
isHidden: boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
updateDocumentTitle: (title: string, noSuffix?: boolean) => void;
|
|
133
141
|
visibilityFunctions: VisibilityFunctions;
|
|
134
142
|
}
|