@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,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 isSecurityGuideRuleTreeObjectParams = 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
|
-
* Returns
|
|
12
|
+
* Returns rule tree of a security guide.
|
|
9
13
|
* @summary Request the Rule Tree of a Security Guide
|
|
10
14
|
* @param {SecurityGuideRuleTreeParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
16
|
+
* @deprecated
|
|
12
17
|
* @throws {RequiredError}
|
|
13
18
|
*/
|
|
14
|
-
export var securityGuideRuleTreeParamCreator = function () {
|
|
19
|
+
export var securityGuideRuleTreeParamCreator = 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, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
25
|
+
var params, securityGuideId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
26
|
return __generator(this, function (_b) {
|
|
22
27
|
params = isSecurityGuideRuleTreeObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
28
|
var _a;
|
|
@@ -37,10 +42,11 @@ export var securityGuideRuleTreeParamCreator = function () {
|
|
|
37
42
|
}
|
|
38
43
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39
44
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
args = {
|
|
46
|
+
urlObj: localVarUrlObj,
|
|
47
|
+
options: localVarRequestOptions,
|
|
48
|
+
};
|
|
49
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
44
50
|
});
|
|
45
51
|
});
|
|
46
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SecurityGuideRuleTree/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,mCAAmC,GAAG,UAAC,MAAiD;IAC5F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SecurityGuideRuleTree/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,mCAAmC,GAAG,UAAC,MAAiD;IAC5F,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,CAAA;IACnF,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;;EAOE;AACF,MAAM,CAAC,IAAM,iCAAiC,GAAG,UAAO,WAAmC;IAAE,gBAA2E;SAA3E,UAA2E,EAA3E,qBAA2E,EAA3E,IAA2E;QAA3E,+BAA2E;;;;;YAC9J,MAAM,GAAG,mCAAmC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAA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fig } from 'axios';
|
|
2
|
+
import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
|
|
3
3
|
import type { SecurityGuides200Response } from '../types';
|
|
4
4
|
export type SecurityGuidesParams = {
|
|
5
5
|
/**
|
|
@@ -40,13 +40,13 @@ export type SecurityGuidesParams = {
|
|
|
40
40
|
filter?: any;
|
|
41
41
|
options?: AxiosRequestConfig;
|
|
42
42
|
};
|
|
43
|
-
export type SecurityGuidesReturnType =
|
|
43
|
+
export type SecurityGuidesReturnType = SecurityGuides200Response;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Retrieve a list of all SCAP security guides.
|
|
46
46
|
* @summary Request Security Guides
|
|
47
47
|
* @param {SecurityGuidesParams} config with all available params.
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
export declare const securityGuidesParamCreator: (...config: ([SecurityGuidesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
51
|
+
export declare const securityGuidesParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SecurityGuidesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<SecurityGuides200Response, any, {}>>;
|
|
52
52
|
export default securityGuidesParamCreator;
|
|
@@ -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 isSecurityGuidesObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve a list of all SCAP security guides.
|
|
9
13
|
* @summary Request Security Guides
|
|
10
14
|
* @param {SecurityGuidesParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var securityGuidesParamCreator = function () {
|
|
18
|
+
export var securityGuidesParamCreator = 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, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isSecurityGuidesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -51,10 +55,11 @@ export var securityGuidesParamCreator = function () {
|
|
|
51
55
|
}
|
|
52
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
57
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
args = {
|
|
59
|
+
urlObj: localVarUrlObj,
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
58
63
|
});
|
|
59
64
|
});
|
|
60
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SecurityGuides/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAoDjU,IAAM,4BAA4B,GAAG,UAAC,MAA0C;IAC9E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SecurityGuides/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAoDjU,IAAM,4BAA4B,GAAG,UAAC,MAA0C;IAC9E,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;AACF,MAAM,CAAC,IAAM,0BAA0B,GAAG,UAAO,WAAmC;IAAE,gBAAwF;SAAxF,UAAwF,EAAxF,qBAAwF,EAAxF,IAAwF;QAAxF,+BAAwF;;;;;YACpK,MAAM,GAAG,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uBAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAyB,CAAC;YACrO,WAAW,GAA2D,MAAM,YAAjE,EAAE,KAAK,GAAoD,MAAM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AC,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,CAA2B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACvE,CAAA;AAED,eAAe,0BAA0B,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 SecurityGuidesOSParams = {
|
|
4
4
|
/**
|
|
5
5
|
* For internal use only
|
|
@@ -15,7 +15,7 @@ export type SecurityGuidesOSParams = {
|
|
|
15
15
|
filter?: any;
|
|
16
16
|
options?: AxiosRequestConfig;
|
|
17
17
|
};
|
|
18
|
-
export type SecurityGuidesOSReturnType =
|
|
18
|
+
export type SecurityGuidesOSReturnType = any;
|
|
19
19
|
/**
|
|
20
20
|
* This feature is exclusively used by the frontend
|
|
21
21
|
* @summary Request the list of available OS versions
|
|
@@ -24,5 +24,5 @@ export type SecurityGuidesOSReturnType = AxiosPromise<any>;
|
|
|
24
24
|
* @deprecated
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
export declare const securityGuidesOSParamCreator: (...config: ([SecurityGuidesOSParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
27
|
+
export declare const securityGuidesOSParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SecurityGuidesOSParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
28
28
|
export default securityGuidesOSParamCreator;
|
|
@@ -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 isSecurityGuidesOSObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
12
|
* This feature is exclusively used by the frontend
|
|
@@ -12,13 +16,13 @@ var isSecurityGuidesOSObjectParams = function (params) {
|
|
|
12
16
|
* @deprecated
|
|
13
17
|
* @throws {RequiredError}
|
|
14
18
|
*/
|
|
15
|
-
export var securityGuidesOSParamCreator = function () {
|
|
19
|
+
export var securityGuidesOSParamCreator = 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, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
25
|
+
var params, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
22
26
|
return __generator(this, function (_b) {
|
|
23
27
|
params = isSecurityGuidesOSObjectParams(config) ? config[0] : ['xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
24
28
|
var _a;
|
|
@@ -40,10 +44,11 @@ export var securityGuidesOSParamCreator = function () {
|
|
|
40
44
|
}
|
|
41
45
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42
46
|
localVarRequestOptions.headers = __assign(__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":["../../../SecurityGuidesOS/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,8BAA8B,GAAG,UAAC,MAA4C;IAClF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SecurityGuidesOS/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA4BjU,IAAM,8BAA8B,GAAG,UAAC,MAA4C;IAClF,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;;;;;;;EAOE;AACF,MAAM,CAAC,IAAM,4BAA4B,GAAG,UAAO,WAAmC;IAAE,gBAAsE;SAAtE,UAAsE,EAAtE,qBAAsE,EAAtE,IAAsE;QAAtE,+BAAsE;;;;;YACpJ,MAAM,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAA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|
3
|
+
import type { Status200Response } from '../types';
|
|
4
|
+
export type StatusParams = {
|
|
5
|
+
options?: AxiosRequestConfig;
|
|
6
|
+
};
|
|
7
|
+
export type StatusReturnType = Status200Response;
|
|
8
|
+
/**
|
|
9
|
+
* Display Compliance status
|
|
10
|
+
* @summary status
|
|
11
|
+
* @param {StatusParams} config with all available params.
|
|
12
|
+
* @param {*} [options] Override http request option.
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
export declare const statusParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([StatusParams] | [AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Status200Response, any, {}>>;
|
|
16
|
+
export default statusParamCreator;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isStatusObjectParams = function (params) {
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Display Compliance status
|
|
13
|
+
* @summary status
|
|
14
|
+
* @param {StatusParams} config with all available params.
|
|
15
|
+
* @param {*} [options] Override http request option.
|
|
16
|
+
* @throws {RequiredError}
|
|
17
|
+
*/
|
|
18
|
+
export var statusParamCreator = function (sendRequest) {
|
|
19
|
+
var config = [];
|
|
20
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
21
|
+
config[_i - 1] = arguments[_i];
|
|
22
|
+
}
|
|
23
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
24
|
+
var params, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
25
|
+
return __generator(this, function (_b) {
|
|
26
|
+
params = isStatusObjectParams(config) ? config[0] : ['options'].reduce(function (acc, curr, index) {
|
|
27
|
+
var _a;
|
|
28
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
29
|
+
}, {});
|
|
30
|
+
_a = params.options, options = _a === void 0 ? {} : _a;
|
|
31
|
+
localVarPath = "/status";
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = __assign({ method: 'GET' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
38
|
+
args = {
|
|
39
|
+
urlObj: localVarUrlObj,
|
|
40
|
+
options: localVarRequestOptions,
|
|
41
|
+
};
|
|
42
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export default statusParamCreator;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Status/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAgBjU,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,CAAA;IACb,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAO,WAAmC;IAAE,gBAAkD;SAAlD,UAAkD,EAAlD,qBAAkD,EAAlD,IAAkD;QAAlD,+BAAkD;;;;;YACtH,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uBAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAiB,CAAC;YACpJ,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC1B,YAAY,GAAG,SAAS,CAAC;YAEzB,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;YAIzC,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,CAAmB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CAC/D,CAAA;AAED,eAAe,kBAAkB,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 { SupportedProfiles200Response } from '../types';
|
|
4
4
|
export type SupportedProfilesParams = {
|
|
5
5
|
/**
|
|
@@ -40,13 +40,13 @@ export type SupportedProfilesParams = {
|
|
|
40
40
|
filter?: any;
|
|
41
41
|
options?: AxiosRequestConfig;
|
|
42
42
|
};
|
|
43
|
-
export type SupportedProfilesReturnType =
|
|
43
|
+
export type SupportedProfilesReturnType = SupportedProfiles200Response;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Retrieve the list of profiles supported by particular RHEL versions.
|
|
46
46
|
* @summary Request Supported Profiles
|
|
47
47
|
* @param {SupportedProfilesParams} config with all available params.
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
export declare const supportedProfilesParamCreator: (...config: ([SupportedProfilesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
51
|
+
export declare const supportedProfilesParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SupportedProfilesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<SupportedProfiles200Response, any, {}>>;
|
|
52
52
|
export default supportedProfilesParamCreator;
|
|
@@ -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 isSupportedProfilesObjectParams = function (params) {
|
|
5
|
-
|
|
5
|
+
var l = params.length === 1;
|
|
6
|
+
if (l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve the list of profiles supported by particular RHEL versions.
|
|
9
13
|
* @summary Request Supported Profiles
|
|
10
14
|
* @param {SupportedProfilesParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var supportedProfilesParamCreator = function () {
|
|
18
|
+
export var supportedProfilesParamCreator = 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, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isSupportedProfilesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -51,10 +55,11 @@ export var supportedProfilesParamCreator = function () {
|
|
|
51
55
|
}
|
|
52
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
57
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
args = {
|
|
59
|
+
urlObj: localVarUrlObj,
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
return [2 /*return*/, sendRequest(Promise.resolve(args))];
|
|
58
63
|
});
|
|
59
64
|
});
|
|
60
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SupportedProfiles/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,E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AAG;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 { System200Response } from '../types';
|
|
4
4
|
export type SystemParams = {
|
|
5
5
|
/**
|
|
@@ -16,13 +16,13 @@ export type SystemParams = {
|
|
|
16
16
|
xRHIDENTITY?: any;
|
|
17
17
|
options?: AxiosRequestConfig;
|
|
18
18
|
};
|
|
19
|
-
export type SystemReturnType =
|
|
19
|
+
export type SystemReturnType = System200Response;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Get information about one specific system.
|
|
22
22
|
* @summary Request a System
|
|
23
23
|
* @param {SystemParams} config with all available params.
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
export declare const systemParamCreator: (...config: ([SystemParams] | [any, any, AxiosRequestConfig])) => Promise<
|
|
27
|
+
export declare const systemParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SystemParams] | [any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<System200Response, any, {}>>;
|
|
28
28
|
export default systemParamCreator;
|
package/dist/esm/System/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 isSystemObjectParams = 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');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Get information about one specific system.
|
|
9
13
|
* @summary Request a System
|
|
10
14
|
* @param {SystemParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var systemParamCreator = function () {
|
|
18
|
+
export var systemParamCreator = 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, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, systemId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isSystemObjectParams(config) ? config[0] : ['systemId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -37,10 +41,11 @@ export var systemParamCreator = 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":["../../../System/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":["../../../System/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,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uBAAM,GAAG,g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
3
3
|
import type { Reports200Response } from '../types';
|
|
4
4
|
export type SystemReportsParams = {
|
|
5
5
|
/**
|
|
@@ -39,20 +39,20 @@ export type SystemReportsParams = {
|
|
|
39
39
|
*/
|
|
40
40
|
sortBy?: any;
|
|
41
41
|
/**
|
|
42
|
-
* 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>Reports are searchable using attributes `title
|
|
42
|
+
* 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>Reports are searchable using attributes `title`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
43
43
|
* @type { any }
|
|
44
44
|
* @memberof SystemReportsApi
|
|
45
45
|
*/
|
|
46
46
|
filter?: any;
|
|
47
47
|
options?: AxiosRequestConfig;
|
|
48
48
|
};
|
|
49
|
-
export type SystemReportsReturnType =
|
|
49
|
+
export type SystemReportsReturnType = Reports200Response;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Retrieve a list of reports for a specific system.
|
|
52
52
|
* @summary Request Reports
|
|
53
53
|
* @param {SystemReportsParams} config with all available params.
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
export declare const systemReportsParamCreator: (...config: ([SystemReportsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
57
|
+
export declare const systemReportsParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SystemReportsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Reports200Response, any, {}>>;
|
|
58
58
|
export default systemReportsParamCreator;
|
|
@@ -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 isSystemReportsObjectParams = 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');
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Retrieve a list of reports for a specific system.
|
|
9
13
|
* @summary Request Reports
|
|
10
14
|
* @param {SystemReportsParams} config with all available params.
|
|
11
15
|
* @param {*} [options] Override http request option.
|
|
12
16
|
* @throws {RequiredError}
|
|
13
17
|
*/
|
|
14
|
-
export var systemReportsParamCreator = function () {
|
|
18
|
+
export var systemReportsParamCreator = 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, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
var params, systemId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, args;
|
|
21
25
|
return __generator(this, function (_b) {
|
|
22
26
|
params = isSystemReportsObjectParams(config) ? config[0] : ['systemId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
23
27
|
var _a;
|
|
@@ -52,10 +56,11 @@ export var systemReportsParamCreator = 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":["../../../SystemReports/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA0DjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../SystemReports/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AA0DjU,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;A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AC;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,CAA0B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAC;;;CACtE,CAAA;AAED,eAAe,yBAAyB,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 SystemsParams = {
|
|
5
5
|
/**
|
|
@@ -39,20 +39,20 @@ export type SystemsParams = {
|
|
|
39
39
|
*/
|
|
40
40
|
sortBy?: any;
|
|
41
41
|
/**
|
|
42
|
-
* 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`, `
|
|
42
|
+
* 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_major_version`, `os_minor_version`, `assigned_or_scanned`, `group_name`, `policies`, and `profile_ref_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
43
43
|
* @type { any }
|
|
44
44
|
* @memberof SystemsApi
|
|
45
45
|
*/
|
|
46
46
|
filter?: any;
|
|
47
47
|
options?: AxiosRequestConfig;
|
|
48
48
|
};
|
|
49
|
-
export type SystemsReturnType =
|
|
49
|
+
export type SystemsReturnType = Systems200Response;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* List all systems that are accessible when you are logged into your account.
|
|
52
52
|
* @summary Request Systems
|
|
53
53
|
* @param {SystemsParams} config with all available params.
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
export declare const systemsParamCreator: (...config: ([SystemsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<
|
|
57
|
+
export declare const systemsParamCreator: (sendRequest: BaseAPI["sendRequest"], ...config: ([SystemsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<import("axios").AxiosResponse<Systems200Response, any, {}>>;
|
|
58
58
|
export default systemsParamCreator;
|