@redhat-cloud-services/types 2.0.0-beta.0 → 2.0.0-beta.2
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 +13 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export type FetchData = (createAsyncRequest: CreateAxiosRequest) => Promise<any>
|
|
|
33
33
|
export type AsyncState<T = any> = {
|
|
34
34
|
data: T;
|
|
35
35
|
};
|
|
36
|
-
declare type ChromeUser = {
|
|
36
|
+
export declare type ChromeUser = {
|
|
37
37
|
entitlements: {
|
|
38
38
|
[key: string]: {
|
|
39
39
|
is_entitled: boolean;
|
|
@@ -118,6 +118,17 @@ export type ChromeWsPayload<T> = {
|
|
|
118
118
|
export type ChromeWsEventListener<T> = (event: ChromeWsPayload<T>) => void;
|
|
119
119
|
export type UnSubscribeFromChromeWsEvent = () => void;
|
|
120
120
|
export type AddChromeWsEventListener = <T>(type: ChromeWsEventTypes, listener: ChromeWsEventListener<T>) => UnSubscribeFromChromeWsEvent;
|
|
121
|
+
export type DrawerPanelActions = {
|
|
122
|
+
setDrawerPanelContent: (data: {
|
|
123
|
+
scope: string;
|
|
124
|
+
module: string;
|
|
125
|
+
} & Record<string, unknown>) => void;
|
|
126
|
+
toggleDrawerPanel: () => void;
|
|
127
|
+
toggleDrawerContent: (data: {
|
|
128
|
+
scope: string;
|
|
129
|
+
module: string;
|
|
130
|
+
} & Record<string, unknown>) => void;
|
|
131
|
+
};
|
|
121
132
|
export interface ChromeAPI {
|
|
122
133
|
$internal: any;
|
|
123
134
|
addWsEventListener: AddChromeWsEventListener;
|
|
@@ -239,6 +250,7 @@ export interface ChromeAPI {
|
|
|
239
250
|
}) => T) => T;
|
|
240
251
|
enablePackagesDebug: () => void;
|
|
241
252
|
requestPdf: (options: PDFRequestOptions) => Promise<void>;
|
|
253
|
+
drawerActions: DrawerPanelActions;
|
|
242
254
|
}
|
|
243
255
|
declare global {
|
|
244
256
|
interface Window {
|
package/package.json
CHANGED