@redhat-cloud-services/frontend-components-advisor-components 1.0.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/README.md +22 -0
- package/RebootRequired/RebootRequired.css +16 -0
- package/RebootRequired/RebootRequired.d.ts +9 -0
- package/RebootRequired/RebootRequired.js +18 -0
- package/RebootRequired/RebootRequired.js.map +1 -0
- package/RebootRequired/RebootRequired.scss +19 -0
- package/RebootRequired/index.d.ts +2 -0
- package/RebootRequired/index.js +20 -0
- package/RebootRequired/index.js.map +1 -0
- package/RebootRequired/package.json +1 -0
- package/RuleDescription/RuleDescription.css +4 -0
- package/RuleDescription/RuleDescription.d.ts +10 -0
- package/RuleDescription/RuleDescription.js +18 -0
- package/RuleDescription/RuleDescription.js.map +1 -0
- package/RuleDescription/RuleDescription.scss +6 -0
- package/RuleDescription/index.d.ts +2 -0
- package/RuleDescription/index.js +20 -0
- package/RuleDescription/index.js.map +1 -0
- package/RuleDescription/package.json +1 -0
- package/RuleDetails/RuleDetails.css +16 -0
- package/RuleDetails/RuleDetails.d.ts +37 -0
- package/RuleDetails/RuleDetails.js +76 -0
- package/RuleDetails/RuleDetails.js.map +1 -0
- package/RuleDetails/RuleDetails.scss +16 -0
- package/RuleDetails/index.d.ts +2 -0
- package/RuleDetails/index.js +20 -0
- package/RuleDetails/index.js.map +1 -0
- package/RuleDetails/package.json +1 -0
- package/RuleRating/RuleRating.css +14 -0
- package/RuleRating/RuleRating.d.ts +12 -0
- package/RuleRating/RuleRating.js +56 -0
- package/RuleRating/RuleRating.js.map +1 -0
- package/RuleRating/RuleRating.scss +14 -0
- package/RuleRating/index.d.ts +2 -0
- package/RuleRating/index.js +20 -0
- package/RuleRating/index.js.map +1 -0
- package/RuleRating/package.json +1 -0
- package/ViewAffectedLink/ViewAffectedLink.d.ts +11 -0
- package/ViewAffectedLink/ViewAffectedLink.js +16 -0
- package/ViewAffectedLink/ViewAffectedLink.js.map +1 -0
- package/ViewAffectedLink/index.d.ts +2 -0
- package/ViewAffectedLink/index.js +20 -0
- package/ViewAffectedLink/index.js.map +1 -0
- package/ViewAffectedLink/package.json +1 -0
- package/common.d.ts +3 -0
- package/common.js +24 -0
- package/common.js.map +1 -0
- package/constants.d.ts +26 -0
- package/constants.js +51 -0
- package/constants.js.map +1 -0
- package/esm/RebootRequired/RebootRequired.css +16 -0
- package/esm/RebootRequired/RebootRequired.js +13 -0
- package/esm/RebootRequired/RebootRequired.js.map +1 -0
- package/esm/RebootRequired/RebootRequired.scss +19 -0
- package/esm/RebootRequired/index.js +3 -0
- package/esm/RebootRequired/index.js.map +1 -0
- package/esm/RuleDescription/RuleDescription.css +4 -0
- package/esm/RuleDescription/RuleDescription.js +13 -0
- package/esm/RuleDescription/RuleDescription.js.map +1 -0
- package/esm/RuleDescription/RuleDescription.scss +6 -0
- package/esm/RuleDescription/index.js +3 -0
- package/esm/RuleDescription/index.js.map +1 -0
- package/esm/RuleDetails/RuleDetails.css +16 -0
- package/esm/RuleDetails/RuleDetails.js +71 -0
- package/esm/RuleDetails/RuleDetails.js.map +1 -0
- package/esm/RuleDetails/RuleDetails.scss +16 -0
- package/esm/RuleDetails/index.js +3 -0
- package/esm/RuleDetails/index.js.map +1 -0
- package/esm/RuleRating/RuleRating.css +14 -0
- package/esm/RuleRating/RuleRating.js +32 -0
- package/esm/RuleRating/RuleRating.js.map +1 -0
- package/esm/RuleRating/RuleRating.scss +14 -0
- package/esm/RuleRating/index.js +3 -0
- package/esm/RuleRating/index.js.map +1 -0
- package/esm/ViewAffectedLink/ViewAffectedLink.js +11 -0
- package/esm/ViewAffectedLink/ViewAffectedLink.js.map +1 -0
- package/esm/ViewAffectedLink/index.js +3 -0
- package/esm/ViewAffectedLink/index.js.map +1 -0
- package/esm/common.js +16 -0
- package/esm/common.js.map +1 -0
- package/esm/constants.js +44 -0
- package/esm/constants.js.map +1 -0
- package/esm/index.js +7 -0
- package/esm/index.js.map +1 -0
- package/esm/types.js +6 -0
- package/esm/types.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +19 -0
- package/index.js.map +1 -0
- package/package.json +43 -0
- package/tsconfig.cjs.json +8 -0
- package/types.d.ts +68 -0
- package/types.js +9 -0
- package/types.js.map +1 -0
package/types.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare enum AdvisorProduct {
|
|
2
|
+
ocp = "ocp",
|
|
3
|
+
rhel = "rhel"
|
|
4
|
+
}
|
|
5
|
+
export declare type TotalRisk = 1 | 2 | 3 | 4;
|
|
6
|
+
export declare type RiskOfChange = 1 | 2 | 3 | 4;
|
|
7
|
+
export declare type Impact = 1 | 2 | 3 | 4;
|
|
8
|
+
export declare type Rating = -1 | 0 | 1;
|
|
9
|
+
export declare type Likelihood = 1 | 2 | 3 | 4;
|
|
10
|
+
export interface RuleContent {
|
|
11
|
+
rule_id: string;
|
|
12
|
+
generic: string;
|
|
13
|
+
summary: string;
|
|
14
|
+
total_risk: TotalRisk;
|
|
15
|
+
likelihood: number;
|
|
16
|
+
description: string;
|
|
17
|
+
publish_date: string;
|
|
18
|
+
more_info: string;
|
|
19
|
+
hosts_acked_count: number;
|
|
20
|
+
rating: Rating;
|
|
21
|
+
impact: {
|
|
22
|
+
impact: Impact;
|
|
23
|
+
name?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface RhelResolution {
|
|
27
|
+
system_type: number;
|
|
28
|
+
resolution: string;
|
|
29
|
+
resolution_risk: {
|
|
30
|
+
name: string;
|
|
31
|
+
risk: number;
|
|
32
|
+
};
|
|
33
|
+
has_playbook: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface RuleContentRhel extends RuleContent {
|
|
36
|
+
impacted_systems_count: number;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
deleted_at: string;
|
|
40
|
+
active: boolean;
|
|
41
|
+
category: {
|
|
42
|
+
id: number;
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
playbook_count: number;
|
|
46
|
+
reboot_required: boolean;
|
|
47
|
+
reports_shown: boolean;
|
|
48
|
+
rule_status: string;
|
|
49
|
+
resolution_set: RhelResolution[];
|
|
50
|
+
node_id: string;
|
|
51
|
+
tags: string;
|
|
52
|
+
}
|
|
53
|
+
export interface RuleContentOcp extends RuleContent {
|
|
54
|
+
reason: string;
|
|
55
|
+
resolution: string;
|
|
56
|
+
risk_of_change: RiskOfChange;
|
|
57
|
+
impacted_clusters_count: number;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
tags: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface TopicRhel {
|
|
62
|
+
name: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
tag: string;
|
|
65
|
+
featured: boolean;
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
impacted_systems_count: number;
|
|
68
|
+
}
|
package/types.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdvisorProduct = void 0;
|
|
4
|
+
var AdvisorProduct;
|
|
5
|
+
(function (AdvisorProduct) {
|
|
6
|
+
AdvisorProduct["ocp"] = "ocp";
|
|
7
|
+
AdvisorProduct["rhel"] = "rhel";
|
|
8
|
+
})(AdvisorProduct = exports.AdvisorProduct || (exports.AdvisorProduct = {}));
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
package/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|