@redhat-cloud-services/types 1.0.8 → 1.0.10
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 +15 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -19,6 +19,19 @@ export declare type HelpTopic = {
|
|
|
19
19
|
links?: HelpTopicLink[];
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
export declare type PDFRequestPayload = {
|
|
23
|
+
manifestLocation: string;
|
|
24
|
+
scope: string;
|
|
25
|
+
module: string;
|
|
26
|
+
importName?: string;
|
|
27
|
+
fetchDataParams?: Record<string, any>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare type PDFRequestOptions = {
|
|
31
|
+
payload: PDFRequestPayload;
|
|
32
|
+
filename?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
22
35
|
declare type ChromeUser = {
|
|
23
36
|
entitlements: {
|
|
24
37
|
[key: string]: {
|
|
@@ -169,6 +182,7 @@ export interface ChromeAPI {
|
|
|
169
182
|
type: string;
|
|
170
183
|
payload: string;
|
|
171
184
|
};
|
|
185
|
+
getAvailableBundles: () => { id: string; title: string }[];
|
|
172
186
|
helpTopics: {
|
|
173
187
|
addHelpTopics: (topics: HelpTopic[], enabled?: boolean) => void;
|
|
174
188
|
enableTopics: (...topicsNames: EnableTopicsArgs) => Promise<HelpTopic[]>;
|
|
@@ -233,7 +247,7 @@ export interface ChromeAPI {
|
|
|
233
247
|
}) => T
|
|
234
248
|
) => T;
|
|
235
249
|
enablePackagesDebug: () => void;
|
|
236
|
-
requestPdf: (options:
|
|
250
|
+
requestPdf: (options: PDFRequestOptions) => Promise<void>;
|
|
237
251
|
}
|
|
238
252
|
|
|
239
253
|
declare global {
|