@redhat-cloud-services/types 1.0.9 → 1.0.11

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.
Files changed (2) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +2 -2
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]: {
@@ -234,7 +247,7 @@ export interface ChromeAPI {
234
247
  }) => T
235
248
  ) => T;
236
249
  enablePackagesDebug: () => void;
237
- requestPdf: (options: { service: string; template: string; filename?: string; [key: string]: any }) => Promise<void>;
250
+ requestPdf: (options: PDFRequestOptions) => Promise<void>;
238
251
  }
239
252
 
240
253
  declare global {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/types",
3
3
  "description": "TypeScript definitions for @redhat-cloud-services common typings",
4
- "version": "1.0.9",
4
+ "version": "1.0.11",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
7
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  "scripts": {},
16
16
  "devDependencies": {
17
17
  "@patternfly/quickstarts": "^5.0.0",
18
- "@redhat-cloud-services/rbac-client": "^1.0.111",
18
+ "@redhat-cloud-services/rbac-client": "^1.0.111 || 2.x",
19
19
  "history": "^4.10.1",
20
20
  "glob": "10.3.3",
21
21
  "@segment/analytics-next": "^1.43.2"