@redhat-cloud-services/types 0.0.1 → 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.
Files changed (2) hide show
  1. package/index.d.ts +15 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -111,12 +111,15 @@ export interface ChromeAPI {
111
111
  portal: string;
112
112
  };
113
113
  getUserPermissions: (applicationName?: string, disableCache?: boolean) => Promise<Access[]>;
114
- globalFilterScope: (scope?: string) => void;
115
- hideGlobalFilter: (hide?: boolean) => void;
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<undefined>;
118
- init: () => void;
119
- isbeta: () => boolean;
120
+ identifyApp: (data: any, appTitle?: string, noSuffix?: boolean) => Promise<any>;
121
+ init: () => ChromeAPI;
122
+ isBeta: () => boolean;
120
123
  isChrome2: boolean;
121
124
  isDemo: () => boolean;
122
125
  isPenTest: () => 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?: boolean) => void;
132
- updateDocumentTitle: (title: string) => void;
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
  }
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": "0.0.1",
4
+ "version": "0.0.4",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
7
  "publishConfig": {