@redhat-cloud-services/compliance-client 3.0.5 → 3.0.7
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/dist/AssignRule/index.d.ts +5 -5
- package/dist/AssignRule/index.js +15 -10
- package/dist/AssignRule/index.js.map +1 -1
- package/dist/AssignRules/index.d.ts +4 -4
- package/dist/AssignRules/index.js +15 -10
- package/dist/AssignRules/index.js.map +1 -1
- package/dist/AssignSystem/index.d.ts +5 -5
- package/dist/AssignSystem/index.js +15 -10
- package/dist/AssignSystem/index.js.map +1 -1
- package/dist/AssignSystems/index.d.ts +4 -4
- package/dist/AssignSystems/index.js +15 -10
- package/dist/AssignSystems/index.js.map +1 -1
- package/dist/CreatePolicy/index.d.ts +5 -5
- package/dist/CreatePolicy/index.js +16 -11
- package/dist/CreatePolicy/index.js.map +1 -1
- package/dist/CreateTailoring/index.d.ts +5 -4
- package/dist/CreateTailoring/index.js +16 -10
- package/dist/CreateTailoring/index.js.map +1 -1
- package/dist/DeletePolicy/index.d.ts +5 -5
- package/dist/DeletePolicy/index.js +15 -10
- package/dist/DeletePolicy/index.js.map +1 -1
- package/dist/DeleteReport/index.d.ts +5 -5
- package/dist/DeleteReport/index.js +15 -10
- package/dist/DeleteReport/index.js.map +1 -1
- package/dist/Policies/index.d.ts +5 -5
- package/dist/Policies/index.js +15 -10
- package/dist/Policies/index.js.map +1 -1
- package/dist/Policy/index.d.ts +5 -5
- package/dist/Policy/index.js +15 -10
- package/dist/Policy/index.js.map +1 -1
- package/dist/PolicySystems/index.d.ts +6 -6
- package/dist/PolicySystems/index.js +15 -10
- package/dist/PolicySystems/index.js.map +1 -1
- package/dist/PolicySystemsOS/index.d.ts +4 -4
- package/dist/PolicySystemsOS/index.js +14 -9
- package/dist/PolicySystemsOS/index.js.map +1 -1
- package/dist/Profile/index.d.ts +5 -5
- package/dist/Profile/index.js +15 -10
- package/dist/Profile/index.js.map +1 -1
- package/dist/ProfileRule/index.d.ts +5 -5
- package/dist/ProfileRule/index.js +15 -10
- package/dist/ProfileRule/index.js.map +1 -1
- package/dist/ProfileRules/index.d.ts +6 -6
- package/dist/ProfileRules/index.js +15 -10
- package/dist/ProfileRules/index.js.map +1 -1
- package/dist/ProfileTree/index.d.ts +5 -4
- package/dist/ProfileTree/index.js +15 -9
- package/dist/ProfileTree/index.js.map +1 -1
- package/dist/Profiles/index.d.ts +5 -5
- package/dist/Profiles/index.js +15 -10
- package/dist/Profiles/index.js.map +1 -1
- package/dist/Report/index.d.ts +5 -5
- package/dist/Report/index.js +15 -10
- package/dist/Report/index.js.map +1 -1
- package/dist/ReportRuleResults/index.d.ts +6 -6
- package/dist/ReportRuleResults/index.js +15 -10
- package/dist/ReportRuleResults/index.js.map +1 -1
- package/dist/ReportStats/index.d.ts +4 -4
- package/dist/ReportStats/index.js +14 -9
- package/dist/ReportStats/index.js.map +1 -1
- package/dist/ReportSystem/index.d.ts +5 -5
- package/dist/ReportSystem/index.js +15 -10
- package/dist/ReportSystem/index.js.map +1 -1
- package/dist/ReportSystems/index.d.ts +6 -6
- package/dist/ReportSystems/index.js +15 -10
- package/dist/ReportSystems/index.js.map +1 -1
- package/dist/ReportSystemsOS/index.d.ts +4 -4
- package/dist/ReportSystemsOS/index.js +14 -9
- package/dist/ReportSystemsOS/index.js.map +1 -1
- package/dist/ReportTestResult/index.d.ts +5 -5
- package/dist/ReportTestResult/index.js +15 -10
- package/dist/ReportTestResult/index.js.map +1 -1
- package/dist/ReportTestResults/index.d.ts +5 -5
- package/dist/ReportTestResults/index.js +15 -10
- package/dist/ReportTestResults/index.js.map +1 -1
- package/dist/ReportTestResultsOS/index.d.ts +4 -4
- package/dist/ReportTestResultsOS/index.js +14 -9
- package/dist/ReportTestResultsOS/index.js.map +1 -1
- package/dist/ReportTestResultsSG/index.d.ts +4 -4
- package/dist/ReportTestResultsSG/index.js +14 -9
- package/dist/ReportTestResultsSG/index.js.map +1 -1
- package/dist/Reports/index.d.ts +5 -5
- package/dist/Reports/index.js +15 -10
- package/dist/Reports/index.js.map +1 -1
- package/dist/ReportsOS/index.d.ts +4 -4
- package/dist/ReportsOS/index.js +14 -9
- package/dist/ReportsOS/index.js.map +1 -1
- package/dist/Rule/index.d.ts +5 -5
- package/dist/Rule/index.js +15 -10
- package/dist/Rule/index.js.map +1 -1
- package/dist/RuleGroup/index.d.ts +5 -5
- package/dist/RuleGroup/index.js +15 -10
- package/dist/RuleGroup/index.js.map +1 -1
- package/dist/RuleGroups/index.d.ts +5 -5
- package/dist/RuleGroups/index.js +15 -10
- package/dist/RuleGroups/index.js.map +1 -1
- package/dist/Rules/index.d.ts +6 -6
- package/dist/Rules/index.js +15 -10
- package/dist/Rules/index.js.map +1 -1
- package/dist/SecurityGuide/index.d.ts +5 -5
- package/dist/SecurityGuide/index.js +15 -10
- package/dist/SecurityGuide/index.js.map +1 -1
- package/dist/SecurityGuideRuleTree/index.d.ts +6 -5
- package/dist/SecurityGuideRuleTree/index.js +16 -10
- package/dist/SecurityGuideRuleTree/index.js.map +1 -1
- package/dist/SecurityGuides/index.d.ts +5 -5
- package/dist/SecurityGuides/index.js +15 -10
- package/dist/SecurityGuides/index.js.map +1 -1
- package/dist/SecurityGuidesOS/index.d.ts +4 -4
- package/dist/SecurityGuidesOS/index.js +14 -9
- package/dist/SecurityGuidesOS/index.js.map +1 -1
- package/dist/Status/index.d.ts +16 -0
- package/dist/Status/index.js +51 -0
- package/dist/Status/index.js.map +1 -0
- package/dist/SupportedProfiles/index.d.ts +5 -5
- package/dist/SupportedProfiles/index.js +15 -10
- package/dist/SupportedProfiles/index.js.map +1 -1
- package/dist/System/index.d.ts +5 -5
- package/dist/System/index.js +15 -10
- package/dist/System/index.js.map +1 -1
- package/dist/SystemReports/index.d.ts +6 -6
- package/dist/SystemReports/index.js +15 -10
- package/dist/SystemReports/index.js.map +1 -1
- package/dist/Systems/index.d.ts +6 -6
- package/dist/Systems/index.js +15 -10
- package/dist/Systems/index.js.map +1 -1
- package/dist/SystemsOS/index.d.ts +5 -5
- package/dist/SystemsOS/index.js +15 -10
- package/dist/SystemsOS/index.js.map +1 -1
- package/dist/SystemsPolicies/index.d.ts +5 -5
- package/dist/SystemsPolicies/index.js +15 -10
- package/dist/SystemsPolicies/index.js.map +1 -1
- package/dist/Tailoring/index.d.ts +5 -5
- package/dist/Tailoring/index.js +15 -10
- package/dist/Tailoring/index.js.map +1 -1
- package/dist/TailoringFileJSON/index.d.ts +34 -0
- package/dist/TailoringFileJSON/index.js +58 -0
- package/dist/TailoringFileJSON/index.js.map +1 -0
- package/dist/TailoringFileTOML/index.d.ts +34 -0
- package/dist/TailoringFileTOML/index.js +58 -0
- package/dist/TailoringFileTOML/index.js.map +1 -0
- package/dist/TailoringRuleTree/index.d.ts +6 -5
- package/dist/TailoringRuleTree/index.js +16 -10
- package/dist/TailoringRuleTree/index.js.map +1 -1
- package/dist/TailoringRules/index.d.ts +6 -6
- package/dist/TailoringRules/index.js +15 -10
- package/dist/TailoringRules/index.js.map +1 -1
- package/dist/Tailorings/index.d.ts +5 -5
- package/dist/Tailorings/index.js +15 -10
- package/dist/Tailorings/index.js.map +1 -1
- package/dist/UnassignRule/index.d.ts +5 -5
- package/dist/UnassignRule/index.js +15 -10
- package/dist/UnassignRule/index.js.map +1 -1
- package/dist/UnassignSystem/index.d.ts +5 -5
- package/dist/UnassignSystem/index.js +15 -10
- package/dist/UnassignSystem/index.js.map +1 -1
- package/dist/UpdatePolicy/index.d.ts +5 -5
- package/dist/UpdatePolicy/index.js +16 -11
- package/dist/UpdatePolicy/index.js.map +1 -1
- package/dist/UpdateTailoring/index.d.ts +5 -5
- package/dist/UpdateTailoring/index.js +16 -11
- package/dist/UpdateTailoring/index.js.map +1 -1
- package/dist/ValueDefinition/index.d.ts +5 -5
- package/dist/ValueDefinition/index.js +15 -10
- package/dist/ValueDefinition/index.js.map +1 -1
- package/dist/ValueDefinitions/index.d.ts +5 -5
- package/dist/ValueDefinitions/index.js +15 -10
- package/dist/ValueDefinitions/index.js.map +1 -1
- package/dist/api.d.ts +114 -112
- package/dist/api.js +5 -1
- package/dist/api.js.map +1 -1
- package/dist/esm/AssignRule/index.d.ts +5 -5
- package/dist/esm/AssignRule/index.js +15 -10
- package/dist/esm/AssignRule/index.js.map +1 -1
- package/dist/esm/AssignRules/index.d.ts +4 -4
- package/dist/esm/AssignRules/index.js +15 -10
- package/dist/esm/AssignRules/index.js.map +1 -1
- package/dist/esm/AssignSystem/index.d.ts +5 -5
- package/dist/esm/AssignSystem/index.js +15 -10
- package/dist/esm/AssignSystem/index.js.map +1 -1
- package/dist/esm/AssignSystems/index.d.ts +4 -4
- package/dist/esm/AssignSystems/index.js +15 -10
- package/dist/esm/AssignSystems/index.js.map +1 -1
- package/dist/esm/CreatePolicy/index.d.ts +5 -5
- package/dist/esm/CreatePolicy/index.js +16 -11
- package/dist/esm/CreatePolicy/index.js.map +1 -1
- package/dist/esm/CreateTailoring/index.d.ts +5 -4
- package/dist/esm/CreateTailoring/index.js +16 -10
- package/dist/esm/CreateTailoring/index.js.map +1 -1
- package/dist/esm/DeletePolicy/index.d.ts +5 -5
- package/dist/esm/DeletePolicy/index.js +15 -10
- package/dist/esm/DeletePolicy/index.js.map +1 -1
- package/dist/esm/DeleteReport/index.d.ts +5 -5
- package/dist/esm/DeleteReport/index.js +15 -10
- package/dist/esm/DeleteReport/index.js.map +1 -1
- package/dist/esm/Policies/index.d.ts +5 -5
- package/dist/esm/Policies/index.js +15 -10
- package/dist/esm/Policies/index.js.map +1 -1
- package/dist/esm/Policy/index.d.ts +5 -5
- package/dist/esm/Policy/index.js +15 -10
- package/dist/esm/Policy/index.js.map +1 -1
- package/dist/esm/PolicySystems/index.d.ts +6 -6
- package/dist/esm/PolicySystems/index.js +15 -10
- package/dist/esm/PolicySystems/index.js.map +1 -1
- package/dist/esm/PolicySystemsOS/index.d.ts +4 -4
- package/dist/esm/PolicySystemsOS/index.js +14 -9
- package/dist/esm/PolicySystemsOS/index.js.map +1 -1
- package/dist/esm/Profile/index.d.ts +5 -5
- package/dist/esm/Profile/index.js +15 -10
- package/dist/esm/Profile/index.js.map +1 -1
- package/dist/esm/ProfileRule/index.d.ts +5 -5
- package/dist/esm/ProfileRule/index.js +15 -10
- package/dist/esm/ProfileRule/index.js.map +1 -1
- package/dist/esm/ProfileRules/index.d.ts +6 -6
- package/dist/esm/ProfileRules/index.js +15 -10
- package/dist/esm/ProfileRules/index.js.map +1 -1
- package/dist/esm/ProfileTree/index.d.ts +5 -4
- package/dist/esm/ProfileTree/index.js +15 -9
- package/dist/esm/ProfileTree/index.js.map +1 -1
- package/dist/esm/Profiles/index.d.ts +5 -5
- package/dist/esm/Profiles/index.js +15 -10
- package/dist/esm/Profiles/index.js.map +1 -1
- package/dist/esm/Report/index.d.ts +5 -5
- package/dist/esm/Report/index.js +15 -10
- package/dist/esm/Report/index.js.map +1 -1
- package/dist/esm/ReportRuleResults/index.d.ts +6 -6
- package/dist/esm/ReportRuleResults/index.js +15 -10
- package/dist/esm/ReportRuleResults/index.js.map +1 -1
- package/dist/esm/ReportStats/index.d.ts +4 -4
- package/dist/esm/ReportStats/index.js +14 -9
- package/dist/esm/ReportStats/index.js.map +1 -1
- package/dist/esm/ReportSystem/index.d.ts +5 -5
- package/dist/esm/ReportSystem/index.js +15 -10
- package/dist/esm/ReportSystem/index.js.map +1 -1
- package/dist/esm/ReportSystems/index.d.ts +6 -6
- package/dist/esm/ReportSystems/index.js +15 -10
- package/dist/esm/ReportSystems/index.js.map +1 -1
- package/dist/esm/ReportSystemsOS/index.d.ts +4 -4
- package/dist/esm/ReportSystemsOS/index.js +14 -9
- package/dist/esm/ReportSystemsOS/index.js.map +1 -1
- package/dist/esm/ReportTestResult/index.d.ts +5 -5
- package/dist/esm/ReportTestResult/index.js +15 -10
- package/dist/esm/ReportTestResult/index.js.map +1 -1
- package/dist/esm/ReportTestResults/index.d.ts +5 -5
- package/dist/esm/ReportTestResults/index.js +15 -10
- package/dist/esm/ReportTestResults/index.js.map +1 -1
- package/dist/esm/ReportTestResultsOS/index.d.ts +4 -4
- package/dist/esm/ReportTestResultsOS/index.js +14 -9
- package/dist/esm/ReportTestResultsOS/index.js.map +1 -1
- package/dist/esm/ReportTestResultsSG/index.d.ts +4 -4
- package/dist/esm/ReportTestResultsSG/index.js +14 -9
- package/dist/esm/ReportTestResultsSG/index.js.map +1 -1
- package/dist/esm/Reports/index.d.ts +5 -5
- package/dist/esm/Reports/index.js +15 -10
- package/dist/esm/Reports/index.js.map +1 -1
- package/dist/esm/ReportsOS/index.d.ts +4 -4
- package/dist/esm/ReportsOS/index.js +14 -9
- package/dist/esm/ReportsOS/index.js.map +1 -1
- package/dist/esm/Rule/index.d.ts +5 -5
- package/dist/esm/Rule/index.js +15 -10
- package/dist/esm/Rule/index.js.map +1 -1
- package/dist/esm/RuleGroup/index.d.ts +5 -5
- package/dist/esm/RuleGroup/index.js +15 -10
- package/dist/esm/RuleGroup/index.js.map +1 -1
- package/dist/esm/RuleGroups/index.d.ts +5 -5
- package/dist/esm/RuleGroups/index.js +15 -10
- package/dist/esm/RuleGroups/index.js.map +1 -1
- package/dist/esm/Rules/index.d.ts +6 -6
- package/dist/esm/Rules/index.js +15 -10
- package/dist/esm/Rules/index.js.map +1 -1
- package/dist/esm/SecurityGuide/index.d.ts +5 -5
- package/dist/esm/SecurityGuide/index.js +15 -10
- package/dist/esm/SecurityGuide/index.js.map +1 -1
- package/dist/esm/SecurityGuideRuleTree/index.d.ts +6 -5
- package/dist/esm/SecurityGuideRuleTree/index.js +16 -10
- package/dist/esm/SecurityGuideRuleTree/index.js.map +1 -1
- package/dist/esm/SecurityGuides/index.d.ts +5 -5
- package/dist/esm/SecurityGuides/index.js +15 -10
- package/dist/esm/SecurityGuides/index.js.map +1 -1
- package/dist/esm/SecurityGuidesOS/index.d.ts +4 -4
- package/dist/esm/SecurityGuidesOS/index.js +14 -9
- package/dist/esm/SecurityGuidesOS/index.js.map +1 -1
- package/dist/esm/Status/index.d.ts +16 -0
- package/dist/esm/Status/index.js +47 -0
- package/dist/esm/Status/index.js.map +1 -0
- package/dist/esm/SupportedProfiles/index.d.ts +5 -5
- package/dist/esm/SupportedProfiles/index.js +15 -10
- package/dist/esm/SupportedProfiles/index.js.map +1 -1
- package/dist/esm/System/index.d.ts +5 -5
- package/dist/esm/System/index.js +15 -10
- package/dist/esm/System/index.js.map +1 -1
- package/dist/esm/SystemReports/index.d.ts +6 -6
- package/dist/esm/SystemReports/index.js +15 -10
- package/dist/esm/SystemReports/index.js.map +1 -1
- package/dist/esm/Systems/index.d.ts +6 -6
- package/dist/esm/Systems/index.js +15 -10
- package/dist/esm/Systems/index.js.map +1 -1
- package/dist/esm/SystemsOS/index.d.ts +5 -5
- package/dist/esm/SystemsOS/index.js +15 -10
- package/dist/esm/SystemsOS/index.js.map +1 -1
- package/dist/esm/SystemsPolicies/index.d.ts +5 -5
- package/dist/esm/SystemsPolicies/index.js +15 -10
- package/dist/esm/SystemsPolicies/index.js.map +1 -1
- package/dist/esm/Tailoring/index.d.ts +5 -5
- package/dist/esm/Tailoring/index.js +15 -10
- package/dist/esm/Tailoring/index.js.map +1 -1
- package/dist/esm/TailoringFileJSON/index.d.ts +34 -0
- package/dist/esm/TailoringFileJSON/index.js +54 -0
- package/dist/esm/TailoringFileJSON/index.js.map +1 -0
- package/dist/esm/TailoringFileTOML/index.d.ts +34 -0
- package/dist/esm/TailoringFileTOML/index.js +54 -0
- package/dist/esm/TailoringFileTOML/index.js.map +1 -0
- package/dist/esm/TailoringRuleTree/index.d.ts +6 -5
- package/dist/esm/TailoringRuleTree/index.js +16 -10
- package/dist/esm/TailoringRuleTree/index.js.map +1 -1
- package/dist/esm/TailoringRules/index.d.ts +6 -6
- package/dist/esm/TailoringRules/index.js +15 -10
- package/dist/esm/TailoringRules/index.js.map +1 -1
- package/dist/esm/Tailorings/index.d.ts +5 -5
- package/dist/esm/Tailorings/index.js +15 -10
- package/dist/esm/Tailorings/index.js.map +1 -1
- package/dist/esm/UnassignRule/index.d.ts +5 -5
- package/dist/esm/UnassignRule/index.js +15 -10
- package/dist/esm/UnassignRule/index.js.map +1 -1
- package/dist/esm/UnassignSystem/index.d.ts +5 -5
- package/dist/esm/UnassignSystem/index.js +15 -10
- package/dist/esm/UnassignSystem/index.js.map +1 -1
- package/dist/esm/UpdatePolicy/index.d.ts +5 -5
- package/dist/esm/UpdatePolicy/index.js +16 -11
- package/dist/esm/UpdatePolicy/index.js.map +1 -1
- package/dist/esm/UpdateTailoring/index.d.ts +5 -5
- package/dist/esm/UpdateTailoring/index.js +16 -11
- package/dist/esm/UpdateTailoring/index.js.map +1 -1
- package/dist/esm/ValueDefinition/index.d.ts +5 -5
- package/dist/esm/ValueDefinition/index.js +15 -10
- package/dist/esm/ValueDefinition/index.js.map +1 -1
- package/dist/esm/ValueDefinitions/index.d.ts +5 -5
- package/dist/esm/ValueDefinitions/index.js +15 -10
- package/dist/esm/ValueDefinitions/index.js.map +1 -1
- package/dist/esm/api.d.ts +114 -112
- package/dist/esm/api.js +6 -2
- package/dist/esm/api.js.map +1 -1
- package/dist/esm/index.d.ts +57 -54
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +70 -5
- package/dist/esm/types/index.js.map +1 -1
- package/dist/index.d.ts +57 -54
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/types/index.d.ts +70 -5
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,22 +2,26 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isProfileRulesObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'securityGuideId') && Object.prototype.hasOwnProperty.call(params[0], 'profileId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve a list of all security guide rules for a specific profile.
|
|
9
13
|
* @summary Request Rules assigned to a Profile
|
|
10
14
|
* @param {ProfileRulesParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var profileRulesParamCreator = function () {
|
|
18
|
+
export var profileRulesParamCreator = function (sendRequest) {
|
|
15
19
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
18
22
|
}
|
|
19
23
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, securityGuideId, profileId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, securityGuideId, profileId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isProfileRulesObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -53,10 +57,11 @@ export var profileRulesParamCreator = function () {
|
|
|
53
57
|
}
|
|
54
58
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
59
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
args = {
|
|
61
|
+
urlObj: localVarUrlObj,
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
60
65
|
});
|
|
61
66
|
});
|
|
62
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ProfileRules/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAgEjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ProfileRules/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAgEjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,IAAM,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;IAC7B,IAAG,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IACnJ,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,wBAAwB,GAAG,UAAO,WAAmC;IAAE,gBAAgG;SAAhG,UAAgG,EAAhG,qBAAgG,EAAhG,IAAgG;QAAhG,+BAAgG;;;;;YAC1K,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C5C,CAAC;YAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACvB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAC9C,CAAC;YAED,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBACxB,sBAAsB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;YACjD,CAAC;YAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACvB,sBAAsB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;YAC/C,CAAC;YAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACvB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAC9C,CAAC;YAED,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;gBACtB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;YAID,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAAyB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACrE,CAAA;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
export type ProfileTreeParams = {
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -21,13 +21,14 @@ export type ProfileTreeParams = {
|
|
|
21
21
|
xRHIDENTITY?: any;
|
|
22
22
|
options?: AxiosRequestConfig;
|
|
23
23
|
};
|
|
24
|
-
export type ProfileTreeReturnType =
|
|
24
|
+
export type ProfileTreeReturnType = any;
|
|
25
25
|
/**
|
|
26
26
|
* Returns the Rule Tree of a Profile
|
|
27
27
|
* @summary Request the Rule Tree of a Profile
|
|
28
28
|
* @param {ProfileTreeParams} config with all available params.
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
30
|
+
* @deprecated
|
|
30
31
|
* @throws {RequiredError}
|
|
31
32
|
*/
|
|
32
|
-
export declare const profileTreeParamCreator: (...config: ([ProfileTreeParams] | [any, any, any, AxiosRequestConfig])) => Promise<
|
|
33
|
+
export declare const profileTreeParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ProfileTreeParams] | [any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
33
34
|
export default profileTreeParamCreator;
|
|
@@ -2,22 +2,27 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isProfileTreeObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'securityGuideId') && Object.prototype.hasOwnProperty.call(params[0], 'profileId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
12
|
* Returns the Rule Tree of a Profile
|
|
9
13
|
* @summary Request the Rule Tree of a Profile
|
|
10
14
|
* @param {ProfileTreeParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
16
|
+
* @deprecated
|
|
12
17
|
* @throws {RequiredError}
|
|
13
18
|
*/
|
|
14
|
-
export var profileTreeParamCreator = function () {
|
|
19
|
+
export var profileTreeParamCreator = function (sendRequest) {
|
|
15
20
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
21
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
22
|
+
config[_i - 1] = arguments[_i];
|
|
18
23
|
}
|
|
19
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
25
|
+
var params, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
26
|
return __generator(this, function (_b) {
|
|
22
27
|
params = isProfileTreeObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
28
|
var _a;
|
|
@@ -38,10 +43,11 @@ export var profileTreeParamCreator = function () {
|
|
|
38
43
|
}
|
|
39
44
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40
45
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
args = {
|
|
47
|
+
urlObj: localVarUrlObj,
|
|
48
|
+
options: localVarRequestOptions,
|
|
49
|
+
};
|
|
50
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
45
51
|
});
|
|
46
52
|
});
|
|
47
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ProfileTree/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,
|
|
1
|
+
{"version":3,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AzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACnE,YAAY,GAAG,sEAAsE;iBACtF,OAAO,CAAC,WAAI,mBAAmB,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;iBAChF,OAAO,CAAC,WAAI,YAAY,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAEnE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YACvD,sBAAsB,cAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;gBACtB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;YAID,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAAwB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACpE,CAAA;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { Profiles200Response } from '../types';
|
|
4
4
|
export type ProfilesParams = {
|
|
5
5
|
/**
|
|
@@ -46,13 +46,13 @@ export type ProfilesParams = {
|
|
|
46
46
|
filter?: any;
|
|
47
47
|
options?: AxiosRequestConfig;
|
|
48
48
|
};
|
|
49
|
-
export type ProfilesReturnType =
|
|
49
|
+
export type ProfilesReturnType = Profiles200Response;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* List all security guide profiles.
|
|
52
52
|
* @summary Request Profiles
|
|
53
53
|
* @param {ProfilesParams} config with all available params.
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
export declare const profilesParamCreator: (...config: ([ProfilesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
57
|
+
export declare const profilesParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ProfilesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Profiles200Response, any, {}>>;
|
|
58
58
|
export default profilesParamCreator;
|
|
@@ -2,22 +2,26 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isProfilesObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'securityGuideId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* List all security guide profiles.
|
|
9
13
|
* @summary Request Profiles
|
|
10
14
|
* @param {ProfilesParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var profilesParamCreator = function () {
|
|
18
|
+
export var profilesParamCreator = function (sendRequest) {
|
|
15
19
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
18
22
|
}
|
|
19
23
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, securityGuideId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, securityGuideId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isProfilesObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -52,10 +56,11 @@ export var profilesParamCreator = function () {
|
|
|
52
56
|
}
|
|
53
57
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
58
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
args = {
|
|
60
|
+
urlObj: localVarUrlObj,
|
|
61
|
+
options: localVarRequestOptions,
|
|
62
|
+
};
|
|
63
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
59
64
|
});
|
|
60
65
|
});
|
|
61
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Profiles/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA0DjU,IAAM,sBAAsB,GAA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,CAAC;YACtC,CAAC;YAID,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAAqB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACjE,CAAA;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { Report200Response } from '../types';
|
|
4
4
|
export type ReportParams = {
|
|
5
5
|
/**
|
|
@@ -16,13 +16,13 @@ export type ReportParams = {
|
|
|
16
16
|
xRHIDENTITY?: any;
|
|
17
17
|
options?: AxiosRequestConfig;
|
|
18
18
|
};
|
|
19
|
-
export type ReportReturnType =
|
|
19
|
+
export type ReportReturnType = Report200Response;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Retrieve a specific report.
|
|
22
22
|
* @summary Request a Report
|
|
23
23
|
* @param {ReportParams} config with all available params.
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
export declare const reportParamCreator: (...config: ([ReportParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
27
|
+
export declare const reportParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ReportParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Report200Response, any, {}>>;
|
|
28
28
|
export default reportParamCreator;
|
package/dist/esm/Report/index.js
CHANGED
|
@@ -2,22 +2,26 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isReportObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'reportId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve a specific report.
|
|
9
13
|
* @summary Request a Report
|
|
10
14
|
* @param {ReportParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var reportParamCreator = function () {
|
|
18
|
+
export var reportParamCreator = function (sendRequest) {
|
|
15
19
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
18
22
|
}
|
|
19
23
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isReportObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -37,10 +41,11 @@ export var reportParamCreator = function () {
|
|
|
37
41
|
}
|
|
38
42
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39
43
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
args = {
|
|
45
|
+
urlObj: localVarUrlObj,
|
|
46
|
+
options: localVarRequestOptions,
|
|
47
|
+
};
|
|
48
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
44
49
|
});
|
|
45
50
|
});
|
|
46
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Report/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,oBAAoB,GAAG,UAAC,MAAkC;IAC9D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Report/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,oBAAoB,GAAG,UAAC,MAAkC;IAC9D,IAAM,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;IAC7B,IAAG,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;IAC5E,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAO,WAAmC;IAAE,gBAA4D;SAA5D,UAA4D,EAA5D,qBAA4D,EAA5D,IAA4D;QAA5D,+BAA4D;;;;;YAChI,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAA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AkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { ReportRuleResults200Response } from '../types';
|
|
4
4
|
export type ReportRuleResultsParams = {
|
|
5
5
|
/**
|
|
@@ -45,20 +45,20 @@ export type ReportRuleResultsParams = {
|
|
|
45
45
|
*/
|
|
46
46
|
sortBy?: any;
|
|
47
47
|
/**
|
|
48
|
-
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rule Results are searchable using attributes `result`, `title`, `severity`, `
|
|
48
|
+
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rule Results are searchable using attributes `result`, `title`, `severity`, `rule_group_id`, and `identifier_label`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
49
49
|
* @type { any }
|
|
50
50
|
* @memberof ReportRuleResultsApi
|
|
51
51
|
*/
|
|
52
52
|
filter?: any;
|
|
53
53
|
options?: AxiosRequestConfig;
|
|
54
54
|
};
|
|
55
|
-
export type ReportRuleResultsReturnType =
|
|
55
|
+
export type ReportRuleResultsReturnType = ReportRuleResults200Response;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Retrieve all of the rule results for a specific report.
|
|
58
58
|
* @summary Request Rule Results under a Report
|
|
59
59
|
* @param {ReportRuleResultsParams} config with all available params.
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
|
-
export declare const reportRuleResultsParamCreator: (...config: ([ReportRuleResultsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
63
|
+
export declare const reportRuleResultsParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ReportRuleResultsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<ReportRuleResults200Response, any, {}>>;
|
|
64
64
|
export default reportRuleResultsParamCreator;
|
|
@@ -2,22 +2,26 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isReportRuleResultsObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'testResultId') && Object.prototype.hasOwnProperty.call(params[0], 'reportId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve all of the rule results for a specific report.
|
|
9
13
|
* @summary Request Rule Results under a Report
|
|
10
14
|
* @param {ReportRuleResultsParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var reportRuleResultsParamCreator = function () {
|
|
18
|
+
export var reportRuleResultsParamCreator = function (sendRequest) {
|
|
15
19
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
18
22
|
}
|
|
19
23
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, testResultId, reportId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, testResultId, reportId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isReportRuleResultsObjectParams(config) ? config[0] : ['testResultId', 'reportId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -53,10 +57,11 @@ export var reportRuleResultsParamCreator = function () {
|
|
|
53
57
|
}
|
|
54
58
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
59
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
args = {
|
|
61
|
+
urlObj: localVarUrlObj,
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
60
65
|
});
|
|
61
66
|
});
|
|
62
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportRuleResults/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAgEjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportRuleResults/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAgEjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,IAAM,CAA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;YACtC,CAAC;YAID,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAA8B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CAC1E,CAAA;AAED,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { ReportStats200Response } from '../types';
|
|
4
4
|
export type ReportStatsParams = {
|
|
5
5
|
/**
|
|
@@ -16,7 +16,7 @@ export type ReportStatsParams = {
|
|
|
16
16
|
xRHIDENTITY?: any;
|
|
17
17
|
options?: AxiosRequestConfig;
|
|
18
18
|
};
|
|
19
|
-
export type ReportStatsReturnType =
|
|
19
|
+
export type ReportStatsReturnType = ReportStats200Response;
|
|
20
20
|
/**
|
|
21
21
|
* Returns detailed stats for a Report
|
|
22
22
|
* @summary Request detailed stats for a Report
|
|
@@ -25,5 +25,5 @@ export type ReportStatsReturnType = AxiosPromise<ReportStats200Response>;
|
|
|
25
25
|
* @deprecated
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
export declare const reportStatsParamCreator: (...config: ([ReportStatsParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
28
|
+
export declare const reportStatsParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ReportStatsParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<ReportStats200Response, any, {}>>;
|
|
29
29
|
export default reportStatsParamCreator;
|
|
@@ -2,7 +2,11 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isReportStatsObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'reportId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
12
|
* Returns detailed stats for a Report
|
|
@@ -12,13 +16,13 @@ var isReportStatsObjectParams = function (params) {
|
|
|
12
16
|
* @deprecated
|
|
13
17
|
* @throws {RequiredError}
|
|
14
18
|
*/
|
|
15
|
-
export var reportStatsParamCreator = function () {
|
|
19
|
+
export var reportStatsParamCreator = function (sendRequest) {
|
|
16
20
|
var config = [];
|
|
17
|
-
for (var _i =
|
|
18
|
-
config[_i] = arguments[_i];
|
|
21
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
22
|
+
config[_i - 1] = arguments[_i];
|
|
19
23
|
}
|
|
20
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
21
|
-
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
25
|
+
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
22
26
|
return __generator(this, function (_b) {
|
|
23
27
|
params = isReportStatsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
24
28
|
var _a;
|
|
@@ -38,10 +42,11 @@ export var reportStatsParamCreator = function () {
|
|
|
38
42
|
}
|
|
39
43
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40
44
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
args = {
|
|
46
|
+
urlObj: localVarUrlObj,
|
|
47
|
+
options: localVarRequestOptions,
|
|
48
|
+
};
|
|
49
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
45
50
|
});
|
|
46
51
|
});
|
|
47
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportStats/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportStats/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,IAAM,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;IAC7B,IAAG,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;IAC5E,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;;EAOE;AACF,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAO,WAAmC;IAAE,gBAAiE;SAAjE,UAAiE,EAAjE,qBAAiE,EAAjE,IAAiE;QAAjE,+BAAiE;;;;;YAC1I,MAAM,GAAG,yBAAyB,CAAC,M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ACpE,CAAA;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { System200Response } from '../types';
|
|
4
4
|
export type ReportSystemParams = {
|
|
5
5
|
/**
|
|
@@ -22,13 +22,13 @@ export type ReportSystemParams = {
|
|
|
22
22
|
xRHIDENTITY?: any;
|
|
23
23
|
options?: AxiosRequestConfig;
|
|
24
24
|
};
|
|
25
|
-
export type ReportSystemReturnType =
|
|
25
|
+
export type ReportSystemReturnType = System200Response;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Retrieve a specific system from a specific report.
|
|
28
28
|
* @summary Request a System
|
|
29
29
|
* @param {ReportSystemParams} config with all available params.
|
|
30
30
|
* @param {*} [options] Override http request option.
|
|
31
31
|
* @throws {RequiredError}
|
|
32
32
|
*/
|
|
33
|
-
export declare const reportSystemParamCreator: (...config: ([ReportSystemParams] | [any, any, any, AxiosRequestConfig])) => Promise<
|
|
33
|
+
export declare const reportSystemParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ReportSystemParams] | [any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<System200Response, any, {}>>;
|
|
34
34
|
export default reportSystemParamCreator;
|
|
@@ -2,22 +2,26 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
4
|
var isReportSystemObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'systemId') && Object.prototype.hasOwnProperty.call(params[0], 'reportId');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve a specific system from a specific report.
|
|
9
13
|
* @summary Request a System
|
|
10
14
|
* @param {ReportSystemParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var reportSystemParamCreator = function () {
|
|
18
|
+
export var reportSystemParamCreator = function (sendRequest) {
|
|
15
19
|
var config = [];
|
|
16
|
-
for (var _i =
|
|
17
|
-
config[_i] = arguments[_i];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
18
22
|
}
|
|
19
23
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
-
var params, systemId, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, systemId, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isReportSystemObjectParams(config) ? config[0] : ['systemId', 'reportId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -38,10 +42,11 @@ export var reportSystemParamCreator = function () {
|
|
|
38
42
|
}
|
|
39
43
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40
44
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
args = {
|
|
46
|
+
urlObj: localVarUrlObj,
|
|
47
|
+
options: localVarRequestOptions,
|
|
48
|
+
};
|
|
49
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
45
50
|
});
|
|
46
51
|
});
|
|
47
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportSystem/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ReportSystem/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,IAAM,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;IAC7B,IAAG,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;IAC3I,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,wBAAwB,GAAG,UAAO,WAAmC;IAAE,gBAAuE;SAAvE,UAAuE,EAAvE,qBAAuE,EAAvE,IAAuE;QAAvE,+BAAuE;;;;;YACjJ,MAAM,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,M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