@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
|
@@ -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 DeleteReportParams = {
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -15,13 +15,13 @@ export type DeleteReportParams = {
|
|
|
15
15
|
xRHIDENTITY?: any;
|
|
16
16
|
options?: AxiosRequestConfig;
|
|
17
17
|
};
|
|
18
|
-
export type DeleteReportReturnType =
|
|
18
|
+
export type DeleteReportReturnType = void;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Delete test results for a specific report.
|
|
21
21
|
* @summary Delete a Report results
|
|
22
22
|
* @param {DeleteReportParams} config with all available params.
|
|
23
23
|
* @param {*} [options] Override http request option.
|
|
24
24
|
* @throws {RequiredError}
|
|
25
25
|
*/
|
|
26
|
-
export declare const deleteReportParamCreator: (...config: ([DeleteReportParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
26
|
+
export declare const deleteReportParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([DeleteReportParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
27
27
|
export default deleteReportParamCreator;
|
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isDeleteReportObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'reportId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Delete test results for a specific report.
|
|
12
16
|
* @summary Delete a Report results
|
|
13
17
|
* @param {DeleteReportParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var deleteReportParamCreator = function () {
|
|
21
|
+
var deleteReportParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isDeleteReportObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -40,10 +44,11 @@ var deleteReportParamCreator = function () {
|
|
|
40
44
|
}
|
|
41
45
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
42
46
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
args = {
|
|
48
|
+
urlObj: localVarUrlObj,
|
|
49
|
+
options: localVarRequestOptions,
|
|
50
|
+
};
|
|
51
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
47
52
|
});
|
|
48
53
|
});
|
|
49
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../DeleteReport/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../DeleteReport/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,IAAM,CAAC,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;IAC7B,IAAG,CAAC,I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I,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,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,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;AA5BY,QAAA,wBAAwB,4BA4BpC;AAED,kBAAe,gCAAwB,CAAC"}
|
package/dist/Policies/index.d.ts
CHANGED
|
@@ -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 { Policies200Response } from '../types';
|
|
4
4
|
export type PoliciesParams = {
|
|
5
5
|
/**
|
|
@@ -40,13 +40,13 @@ export type PoliciesParams = {
|
|
|
40
40
|
filter?: any;
|
|
41
41
|
options?: AxiosRequestConfig;
|
|
42
42
|
};
|
|
43
|
-
export type PoliciesReturnType =
|
|
43
|
+
export type PoliciesReturnType = Policies200Response;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Retrieve the list of policies that have been created to test the compliance of your registered systems.
|
|
46
46
|
* @summary Request Policies
|
|
47
47
|
* @param {PoliciesParams} config with all available params.
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
export declare const policiesParamCreator: (...config: ([PoliciesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
51
|
+
export declare const policiesParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([PoliciesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Policies200Response, any, {}>>;
|
|
52
52
|
export default policiesParamCreator;
|
package/dist/Policies/index.js
CHANGED
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isPoliciesObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Retrieve the list of policies that have been created to test the compliance of your registered systems.
|
|
12
16
|
* @summary Request Policies
|
|
13
17
|
* @param {PoliciesParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var policiesParamCreator = function () {
|
|
21
|
+
var policiesParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isPoliciesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -54,10 +58,11 @@ var policiesParamCreator = function () {
|
|
|
54
58
|
}
|
|
55
59
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
60
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
args = {
|
|
62
|
+
urlObj: localVarUrlObj,
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
61
66
|
});
|
|
62
67
|
});
|
|
63
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Policies/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAoDjU,IAAM,sBAAsB,GAAG,UAAC,MAAoC;IAClE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Policies/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAoDjU,IAAM,sBAAsB,GAAG,UAAC,MAAoC;IAClE,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,CAAA;IACb,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,oBAAoB,GAAG,UAAO,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C,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,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,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;AA/CY,QAAA,oBAAoB,wBA+ChC;AAED,kBAAe,4BAAoB,CAAC"}
|
package/dist/Policy/index.d.ts
CHANGED
|
@@ -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 { CreatePolicy201Response } from '../types';
|
|
4
4
|
export type PolicyParams = {
|
|
5
5
|
/**
|
|
@@ -16,13 +16,13 @@ export type PolicyParams = {
|
|
|
16
16
|
xRHIDENTITY?: any;
|
|
17
17
|
options?: AxiosRequestConfig;
|
|
18
18
|
};
|
|
19
|
-
export type PolicyReturnType =
|
|
19
|
+
export type PolicyReturnType = CreatePolicy201Response;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Retrieve a specific policy.
|
|
22
22
|
* @summary Request a Policy
|
|
23
23
|
* @param {PolicyParams} config with all available params.
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
export declare const policyParamCreator: (...config: ([PolicyParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
27
|
+
export declare const policyParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([PolicyParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<CreatePolicy201Response, any, {}>>;
|
|
28
28
|
export default policyParamCreator;
|
package/dist/Policy/index.js
CHANGED
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isPolicyObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'policyId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Retrieve a specific policy.
|
|
12
16
|
* @summary Request a Policy
|
|
13
17
|
* @param {PolicyParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var policyParamCreator = function () {
|
|
21
|
+
var policyParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, policyId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, policyId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isPolicyObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -40,10 +44,11 @@ var policyParamCreator = function () {
|
|
|
40
44
|
}
|
|
41
45
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
42
46
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
args = {
|
|
48
|
+
urlObj: localVarUrlObj,
|
|
49
|
+
options: localVarRequestOptions,
|
|
50
|
+
};
|
|
51
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
47
52
|
});
|
|
48
53
|
});
|
|
49
54
|
};
|
package/dist/Policy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Policy/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,oBAAoB,GAAG,UAAC,MAAkC;IAC9D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Policy/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;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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eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAAmB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CAC/D,CAAA;AA5BY,QAAA,kBAAkB,sBA4B9B;AAED,kBAAe,0BAAkB,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 { Systems200Response } from '../types';
|
|
4
4
|
export type PolicySystemsParams = {
|
|
5
5
|
/**
|
|
@@ -45,20 +45,20 @@ export type PolicySystemsParams = {
|
|
|
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>Systems are searchable using attributes `display_name`, `
|
|
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>Systems are searchable using attributes `display_name`, `os_minor_version`, and `group_name`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
49
49
|
* @type { any }
|
|
50
50
|
* @memberof PolicySystemsApi
|
|
51
51
|
*/
|
|
52
52
|
filter?: any;
|
|
53
53
|
options?: AxiosRequestConfig;
|
|
54
54
|
};
|
|
55
|
-
export type PolicySystemsReturnType =
|
|
55
|
+
export type PolicySystemsReturnType = Systems200Response;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Retrieve all of the systems assigned to a specific policy.
|
|
58
58
|
* @summary Request Systems assigned to a Policy
|
|
59
59
|
* @param {PolicySystemsParams} config with all available params.
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
|
-
export declare const policySystemsParamCreator: (...config: ([PolicySystemsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
63
|
+
export declare const policySystemsParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([PolicySystemsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Systems200Response, any, {}>>;
|
|
64
64
|
export default policySystemsParamCreator;
|
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isPolicySystemsObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'policyId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Retrieve all of the systems assigned to a specific policy.
|
|
12
16
|
* @summary Request Systems assigned to a Policy
|
|
13
17
|
* @param {PolicySystemsParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var policySystemsParamCreator = function () {
|
|
21
|
+
var policySystemsParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, policyId, xRHIDENTITY, tags, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, policyId, xRHIDENTITY, tags, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isPolicySystemsObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'tags', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -58,10 +62,11 @@ var policySystemsParamCreator = function () {
|
|
|
58
62
|
}
|
|
59
63
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
60
64
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
args = {
|
|
66
|
+
urlObj: localVarUrlObj,
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
65
70
|
});
|
|
66
71
|
});
|
|
67
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgEjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgEjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,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;AACK,IAAM,yBAAyB,GAAG,UAAO,WAAmC;IAAE,gBAAiG;SAAjG,UAAiG,EAAjG,qBAAiG,EAAjG,IAAiG;QAAjG,+BAAiG;;;;;YAC5K,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAwB,CAAC;YACvP,QAAQ,GAA8E,MAAM,SAApF,EAAE,WAAW,GAAiE,MAAM,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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,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAA0B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACtE,CAAA;AApDY,QAAA,yBAAyB,6BAoDrC;AAED,kBAAe,iCAAyB,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 PolicySystemsOSParams = {
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -21,7 +21,7 @@ export type PolicySystemsOSParams = {
|
|
|
21
21
|
filter?: any;
|
|
22
22
|
options?: AxiosRequestConfig;
|
|
23
23
|
};
|
|
24
|
-
export type PolicySystemsOSReturnType =
|
|
24
|
+
export type PolicySystemsOSReturnType = any;
|
|
25
25
|
/**
|
|
26
26
|
* This feature is exclusively used by the frontend
|
|
27
27
|
* @summary Request the list of available OS versions
|
|
@@ -30,5 +30,5 @@ export type PolicySystemsOSReturnType = AxiosPromise<any>;
|
|
|
30
30
|
* @deprecated
|
|
31
31
|
* @throws {RequiredError}
|
|
32
32
|
*/
|
|
33
|
-
export declare const policySystemsOSParamCreator: (...config: ([PolicySystemsOSParams] | [any, any, any, AxiosRequestConfig])) => Promise<
|
|
33
|
+
export declare const policySystemsOSParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([PolicySystemsOSParams] | [any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
34
34
|
export default policySystemsOSParamCreator;
|
|
@@ -5,7 +5,11 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isPolicySystemsOSObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'policyId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
15
|
* This feature is exclusively used by the frontend
|
|
@@ -15,13 +19,13 @@ var isPolicySystemsOSObjectParams = function (params) {
|
|
|
15
19
|
* @deprecated
|
|
16
20
|
* @throws {RequiredError}
|
|
17
21
|
*/
|
|
18
|
-
var policySystemsOSParamCreator = function () {
|
|
22
|
+
var policySystemsOSParamCreator = function (sendRequest) {
|
|
19
23
|
var config = [];
|
|
20
|
-
for (var _i =
|
|
21
|
-
config[_i] = arguments[_i];
|
|
24
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
25
|
+
config[_i - 1] = arguments[_i];
|
|
22
26
|
}
|
|
23
27
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
24
|
-
var params, policyId, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
28
|
+
var params, policyId, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
25
29
|
return tslib_1.__generator(this, function (_b) {
|
|
26
30
|
params = isPolicySystemsOSObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
27
31
|
var _a;
|
|
@@ -44,10 +48,11 @@ var policySystemsOSParamCreator = function () {
|
|
|
44
48
|
}
|
|
45
49
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
46
50
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
args = {
|
|
52
|
+
urlObj: localVarUrlObj,
|
|
53
|
+
options: localVarRequestOptions,
|
|
54
|
+
};
|
|
55
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
51
56
|
});
|
|
52
57
|
});
|
|
53
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystemsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkCjU,IAAM,6BAA6B,GAAG,UAAC,MAA2C;IAChF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystemsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkCjU,IAAM,6BAA6B,GAAG,UAAC,MAA2C;IAChF,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;;;;;;;EAO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AAC,CAAC;YACtC,CAAC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAA4B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACxE,CAAA;AAhCY,QAAA,2BAA2B,+BAgCvC;AAED,kBAAe,mCAA2B,CAAC"}
|
package/dist/Profile/index.d.ts
CHANGED
|
@@ -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 { Profile200Response } from '../types';
|
|
4
4
|
export type ProfileParams = {
|
|
5
5
|
/**
|
|
@@ -22,13 +22,13 @@ export type ProfileParams = {
|
|
|
22
22
|
xRHIDENTITY?: any;
|
|
23
23
|
options?: AxiosRequestConfig;
|
|
24
24
|
};
|
|
25
|
-
export type ProfileReturnType =
|
|
25
|
+
export type ProfileReturnType = Profile200Response;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Retrieve a specific profile.
|
|
28
28
|
* @summary Request a Profile
|
|
29
29
|
* @param {ProfileParams} config with all available params.
|
|
30
30
|
* @param {*} [options] Override http request option.
|
|
31
31
|
* @throws {RequiredError}
|
|
32
32
|
*/
|
|
33
|
-
export declare const profileParamCreator: (...config: ([ProfileParams] | [any, any, any, AxiosRequestConfig])) => Promise<
|
|
33
|
+
export declare const profileParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ProfileParams] | [any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Profile200Response, any, {}>>;
|
|
34
34
|
export default profileParamCreator;
|
package/dist/Profile/index.js
CHANGED
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isProfileObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'securityGuideId') && Object.prototype.hasOwnProperty.call(params[0], 'profileId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Retrieve a specific profile.
|
|
12
16
|
* @summary Request a Profile
|
|
13
17
|
* @param {ProfileParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var profileParamCreator = function () {
|
|
21
|
+
var profileParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isProfileObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -41,10 +45,11 @@ var profileParamCreator = function () {
|
|
|
41
45
|
}
|
|
42
46
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
43
47
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
args = {
|
|
49
|
+
urlObj: localVarUrlObj,
|
|
50
|
+
options: localVarRequestOptions,
|
|
51
|
+
};
|
|
52
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
48
53
|
});
|
|
49
54
|
});
|
|
50
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Profile/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkCjU,IAAM,qBAAqB,GAAG,UAAC,MAAmC;IAChE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Profile/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkCjU,IAAM,qBAAqB,GAAG,UAAC,MAAmC;IAChE,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;AACK,IAAM,mBAAmB,GAAG,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EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,GAAG;gBACT,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAsB;aAClC,CAAC;YAEF,sBAAO,WAAW,CAAoB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CAChE,CAAA;AA7BY,QAAA,mBAAmB,uBA6B/B;AAED,kBAAe,2BAAmB,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 { Rule200Response } from '../types';
|
|
4
4
|
export type ProfileRuleParams = {
|
|
5
5
|
/**
|
|
@@ -28,13 +28,13 @@ export type ProfileRuleParams = {
|
|
|
28
28
|
xRHIDENTITY?: any;
|
|
29
29
|
options?: AxiosRequestConfig;
|
|
30
30
|
};
|
|
31
|
-
export type ProfileRuleReturnType =
|
|
31
|
+
export type ProfileRuleReturnType = Rule200Response;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Retrieve a specific security guide rule for a specific profile.
|
|
34
34
|
* @summary Request a Rule assigned to a Profile
|
|
35
35
|
* @param {ProfileRuleParams} config with all available params.
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
export declare const profileRuleParamCreator: (...config: ([ProfileRuleParams] | [any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
39
|
+
export declare const profileRuleParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([ProfileRuleParams] | [any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Rule200Response, any, {}>>;
|
|
40
40
|
export default profileRuleParamCreator;
|
|
@@ -5,22 +5,26 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isProfileRuleObjectParams = function (params) {
|
|
8
|
-
|
|
8
|
+
var l = params.length === 1;
|
|
9
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
10
|
+
return true && Object.prototype.hasOwnProperty.call(params[0], 'securityGuideId') && Object.prototype.hasOwnProperty.call(params[0], 'profileId') && Object.prototype.hasOwnProperty.call(params[0], 'ruleId');
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Retrieve a specific security guide rule for a specific profile.
|
|
12
16
|
* @summary Request a Rule assigned to a Profile
|
|
13
17
|
* @param {ProfileRuleParams} config with all available params.
|
|
14
18
|
* @param {*} [options] Override http request option.
|
|
15
19
|
* @throws {RequiredError}
|
|
16
20
|
*/
|
|
17
|
-
var profileRuleParamCreator = function () {
|
|
21
|
+
var profileRuleParamCreator = function (sendRequest) {
|
|
18
22
|
var config = [];
|
|
19
|
-
for (var _i =
|
|
20
|
-
config[_i] = arguments[_i];
|
|
23
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24
|
+
config[_i - 1] = arguments[_i];
|
|
21
25
|
}
|
|
22
26
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, securityGuideId, profileId, ruleId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
27
|
+
var params, securityGuideId, profileId, ruleId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
24
28
|
return tslib_1.__generator(this, function (_b) {
|
|
25
29
|
params = isProfileRuleObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'ruleId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
26
30
|
var _a;
|
|
@@ -42,10 +46,11 @@ var profileRuleParamCreator = function () {
|
|
|
42
46
|
}
|
|
43
47
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
44
48
|
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
args = {
|
|
50
|
+
urlObj: localVarUrlObj,
|
|
51
|
+
options: localVarRequestOptions,
|
|
52
|
+
};
|
|
53
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
49
54
|
});
|
|
50
55
|
});
|
|
51
56
|
};
|