@redhat-cloud-services/types 3.1.0 → 3.2.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.d.ts +5 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ export type EnableTopicsArgs = [{
|
|
|
108
108
|
names: string[];
|
|
109
109
|
append?: boolean;
|
|
110
110
|
}] | string[];
|
|
111
|
+
type SearchNavItemPermission<T extends keyof VisibilityFunctions = 'isOrgAdmin'> = {
|
|
112
|
+
method: T;
|
|
113
|
+
args: Parameters<VisibilityFunctions[T]>;
|
|
114
|
+
};
|
|
111
115
|
export type ChromeWsEventTypes = 'com.redhat.console.notifications.drawer';
|
|
112
116
|
export type ChromeWsPayload<T> = {
|
|
113
117
|
data: T;
|
|
@@ -131,6 +135,7 @@ export interface SearchEntry {
|
|
|
131
135
|
altTitle?: string[];
|
|
132
136
|
icon?: string;
|
|
133
137
|
type: SearchDataType;
|
|
138
|
+
permissions?: SearchNavItemPermission[];
|
|
134
139
|
}
|
|
135
140
|
export interface ChromeSearchAPI {
|
|
136
141
|
fillStore: (type: SearchDataType, data: SearchEntry[]) => Promise<void>;
|
package/package.json
CHANGED