@redhat-cloud-services/compliance-client 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/AssignRule/index.d.ts +1 -1
  3. package/dist/DeleteReport/index.d.ts +1 -1
  4. package/dist/DeleteReport/index.js +1 -1
  5. package/dist/PolicySystems/index.d.ts +1 -1
  6. package/dist/PolicySystemsOS/index.d.ts +33 -0
  7. package/dist/PolicySystemsOS/index.js +56 -0
  8. package/dist/PolicySystemsOS/index.js.map +1 -0
  9. package/dist/Profile/index.d.ts +1 -1
  10. package/dist/ProfileRule/index.d.ts +1 -1
  11. package/dist/ProfileRules/index.d.ts +1 -1
  12. package/dist/ReportRuleResults/index.d.ts +56 -0
  13. package/dist/ReportRuleResults/index.js +65 -0
  14. package/dist/ReportRuleResults/index.js.map +1 -0
  15. package/dist/ReportStats/index.d.ts +27 -0
  16. package/dist/ReportStats/index.js +53 -0
  17. package/dist/ReportStats/index.js.map +1 -0
  18. package/dist/ReportSystems/index.d.ts +1 -1
  19. package/dist/ReportSystemsOS/index.d.ts +33 -0
  20. package/dist/ReportSystemsOS/index.js +56 -0
  21. package/dist/ReportSystemsOS/index.js.map +1 -0
  22. package/dist/ReportTestResults/index.d.ts +1 -1
  23. package/dist/ReportTestResultsOS/index.d.ts +33 -0
  24. package/dist/ReportTestResultsOS/index.js +56 -0
  25. package/dist/ReportTestResultsOS/index.js.map +1 -0
  26. package/dist/ReportsOS/index.d.ts +27 -0
  27. package/dist/ReportsOS/index.js +55 -0
  28. package/dist/ReportsOS/index.js.map +1 -0
  29. package/dist/Rule/index.d.ts +1 -1
  30. package/dist/Rules/index.d.ts +1 -1
  31. package/dist/SecurityGuides/index.d.ts +1 -1
  32. package/dist/SecurityGuidesOS/index.d.ts +27 -0
  33. package/dist/SecurityGuidesOS/index.js +55 -0
  34. package/dist/SecurityGuidesOS/index.js.map +1 -0
  35. package/dist/SystemReports/index.d.ts +50 -0
  36. package/dist/SystemReports/index.js +64 -0
  37. package/dist/SystemReports/index.js.map +1 -0
  38. package/dist/Systems/index.d.ts +1 -1
  39. package/dist/SystemsOS/index.d.ts +27 -0
  40. package/dist/SystemsOS/index.js +55 -0
  41. package/dist/SystemsOS/index.js.map +1 -0
  42. package/dist/TailoringRules/index.d.ts +1 -1
  43. package/dist/UnassignRule/index.d.ts +1 -1
  44. package/dist/api.d.ts +1272 -1457
  45. package/dist/api.js +2411 -896
  46. package/dist/api.js.map +1 -1
  47. package/dist/index.d.ts +9 -0
  48. package/dist/index.js +28 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/types/index.d.ts +206 -5
  51. package/dist/types/index.js +15 -1
  52. package/dist/types/index.js.map +1 -1
  53. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.2](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.1...@redhat-cloud-services/compliance-client-0.2.2) (2024-09-04)
6
+
7
+ ## [0.2.1](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.0...@redhat-cloud-services/compliance-client-0.2.1) (2024-08-31)
8
+
5
9
  ## [0.2.0](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.1.7...@redhat-cloud-services/compliance-client-0.2.0) (2024-08-05)
6
10
 
7
11
 
@@ -14,7 +14,7 @@ export type AssignRuleParams = {
14
14
  */
15
15
  tailoringId: any;
16
16
  /**
17
- * UUID or ref_id
17
+ * UUID or a ref_id with \'.\' characters replaced with \'-\'
18
18
  * @type { any }
19
19
  * @memberof AssignRuleApi
20
20
  */
@@ -16,7 +16,7 @@ export type DeleteReportParams = {
16
16
  options?: AxiosRequestConfig;
17
17
  };
18
18
  /**
19
- * Deletes a Report results
19
+ * Deletes Report\'s test results
20
20
  * @summary Delete a Report results
21
21
  * @param {DeleteReportParams} config with all available params.
22
22
  * @param {*} [options] Override http request option.
@@ -8,7 +8,7 @@ var isDeleteReportObjectParams = function (params) {
8
8
  return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true;
9
9
  };
10
10
  /**
11
- * Deletes a Report results
11
+ * Deletes Report\'s test results
12
12
  * @summary Delete a Report results
13
13
  * @param {DeleteReportParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
@@ -32,7 +32,7 @@ export type PolicySystemsParams = {
32
32
  */
33
33
  sortBy?: any;
34
34
  /**
35
- * 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`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
35
+ * 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`, `never_reported`, `group_name`, `policies`, and `profile_ref_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
36
36
  * @type { any }
37
37
  * @memberof PolicySystemsApi
38
38
  */
@@ -0,0 +1,33 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type PolicySystemsOSParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof PolicySystemsOSApi
8
+ */
9
+ policyId: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof PolicySystemsOSApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ /**
17
+ * 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`, `never_reported`, `group_name`, `policies`, and `profile_ref_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
18
+ * @type { any }
19
+ * @memberof PolicySystemsOSApi
20
+ */
21
+ filter?: any;
22
+ options?: AxiosRequestConfig;
23
+ };
24
+ /**
25
+ * This feature is exclusively used by the frontend
26
+ * @summary Request the list of available OS versions
27
+ * @param {PolicySystemsOSParams} config with all available params.
28
+ * @param {*} [options] Override http request option.
29
+ * @deprecated
30
+ * @throws {RequiredError}
31
+ */
32
+ export declare const policySystemsOSParamCreator: (...config: ([PolicySystemsOSParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
33
+ export default policySystemsOSParamCreator;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.policySystemsOSParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
7
+ var isPolicySystemsOSObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {PolicySystemsOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var policySystemsOSParamCreator = function () {
19
+ var config = [];
20
+ for (var _i = 0; _i < arguments.length; _i++) {
21
+ config[_i] = arguments[_i];
22
+ }
23
+ return tslib_1.__awaiter(void 0, void 0, void 0, function () {
24
+ var params, policyId, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isPolicySystemsOSObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/policies/{policy_id}/systems/os_versions"
32
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
33
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
34
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
35
+ localVarHeaderParameter = {};
36
+ localVarQueryParameter = {};
37
+ if (filter !== undefined) {
38
+ localVarQueryParameter['filter'] = filter;
39
+ }
40
+ if (xRHIDENTITY != null) {
41
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
42
+ ? xRHIDENTITY
43
+ : JSON.stringify(xRHIDENTITY);
44
+ }
45
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
47
+ return [2 /*return*/, {
48
+ urlObj: localVarUrlObj,
49
+ options: localVarRequestOptions,
50
+ }];
51
+ });
52
+ });
53
+ };
54
+ exports.policySystemsOSParamCreator = policySystemsOSParamCreator;
55
+ exports.default = exports.policySystemsOSParamCreator;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystemsOS/index.ts"],"names":[],"mapp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BAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA9BY,QAAA,2BAA2B,+BA8BvC;AAED,kBAAe,mCAA2B,CAAC"}
@@ -8,7 +8,7 @@ export type ProfileParams = {
8
8
  */
9
9
  securityGuideId: any;
10
10
  /**
11
- * UUID or ref_id
11
+ * UUID or a ref_id with \'.\' characters replaced with \'-\'
12
12
  * @type { any }
13
13
  * @memberof ProfileApi
14
14
  */
@@ -14,7 +14,7 @@ export type ProfileRuleParams = {
14
14
  */
15
15
  profileId: any;
16
16
  /**
17
- * UUID or ref_id
17
+ * UUID or a ref_id with \'.\' characters replaced with \'-\'
18
18
  * @type { any }
19
19
  * @memberof ProfileRuleApi
20
20
  */
@@ -38,7 +38,7 @@ export type ProfileRulesParams = {
38
38
  */
39
39
  sortBy?: any;
40
40
  /**
41
- * 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>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
41
+ * 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>Rules are searchable using attributes `title`, `severity`, and `remediation_available`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
42
42
  * @type { any }
43
43
  * @memberof ProfileRulesApi
44
44
  */
@@ -0,0 +1,56 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type ReportRuleResultsParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ReportRuleResultsApi
8
+ */
9
+ testResultId: any;
10
+ /**
11
+ *
12
+ * @type { any }
13
+ * @memberof ReportRuleResultsApi
14
+ */
15
+ reportId: any;
16
+ /**
17
+ * For internal use only
18
+ * @type { any }
19
+ * @memberof ReportRuleResultsApi
20
+ */
21
+ xRHIDENTITY?: any;
22
+ /**
23
+ * Number of items to return per page
24
+ * @type { any }
25
+ * @memberof ReportRuleResultsApi
26
+ */
27
+ limit?: any;
28
+ /**
29
+ * Offset of first item of paginated response
30
+ * @type { any }
31
+ * @memberof ReportRuleResultsApi
32
+ */
33
+ offset?: any;
34
+ /**
35
+ * Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
36
+ * @type { any }
37
+ * @memberof ReportRuleResultsApi
38
+ */
39
+ sortBy?: any;
40
+ /**
41
+ * Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rule Results are searchable using attributes `result`, `title`, `severity`, and `remediation_available`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
42
+ * @type { any }
43
+ * @memberof ReportRuleResultsApi
44
+ */
45
+ filter?: any;
46
+ options?: AxiosRequestConfig;
47
+ };
48
+ /**
49
+ * Lists Rule Results under a Report
50
+ * @summary Request Rule Results under a Report
51
+ * @param {ReportRuleResultsParams} config with all available params.
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ export declare const reportRuleResultsParamCreator: (...config: ([ReportRuleResultsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
56
+ export default reportRuleResultsParamCreator;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportRuleResultsParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
7
+ var isReportRuleResultsObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'testResultId') && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true;
9
+ };
10
+ /**
11
+ * Lists Rule Results under a Report
12
+ * @summary Request Rule Results under a Report
13
+ * @param {ReportRuleResultsParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var reportRuleResultsParamCreator = function () {
18
+ var config = [];
19
+ for (var _i = 0; _i < arguments.length; _i++) {
20
+ config[_i] = arguments[_i];
21
+ }
22
+ return tslib_1.__awaiter(void 0, void 0, void 0, function () {
23
+ var params, testResultId, reportId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isReportRuleResultsObjectParams(config) ? config[0] : ['testResultId', 'reportId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
26
+ var _a;
27
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
28
+ }, {});
29
+ testResultId = params.testResultId, reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/reports/{report_id}/test_results/{test_result_id}/rule_results"
31
+ .replace("{".concat("test_result_id", "}"), encodeURIComponent(String(testResultId)))
32
+ .replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
33
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
34
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
35
+ localVarHeaderParameter = {};
36
+ localVarQueryParameter = {};
37
+ if (limit !== undefined) {
38
+ localVarQueryParameter['limit'] = limit;
39
+ }
40
+ if (offset !== undefined) {
41
+ localVarQueryParameter['offset'] = offset;
42
+ }
43
+ if (sortBy !== undefined) {
44
+ localVarQueryParameter['sort_by'] = sortBy;
45
+ }
46
+ if (filter !== undefined) {
47
+ localVarQueryParameter['filter'] = filter;
48
+ }
49
+ if (xRHIDENTITY != null) {
50
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
51
+ ? xRHIDENTITY
52
+ : JSON.stringify(xRHIDENTITY);
53
+ }
54
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
56
+ return [2 /*return*/, {
57
+ urlObj: localVarUrlObj,
58
+ options: localVarRequestOptions,
59
+ }];
60
+ });
61
+ });
62
+ };
63
+ exports.reportRuleResultsParamCreator = reportRuleResultsParamCreator;
64
+ exports.default = exports.reportRuleResultsParamCreator;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportRuleResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAwDjU,IAAM,+BAA+B,GAAG,UAAC,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common';
3
+ export type ReportStatsParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ReportStatsApi
8
+ */
9
+ reportId: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof ReportStatsApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ * Returns detailed stats for a Report
20
+ * @summary Request detailed stats for a Report
21
+ * @param {ReportStatsParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @deprecated
24
+ * @throws {RequiredError}
25
+ */
26
+ export declare const reportStatsParamCreator: (...config: ([ReportStatsParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
27
+ export default reportStatsParamCreator;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportStatsParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
7
+ var isReportStatsObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true;
9
+ };
10
+ /**
11
+ * Returns detailed stats for a Report
12
+ * @summary Request detailed stats for a Report
13
+ * @param {ReportStatsParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var reportStatsParamCreator = function () {
19
+ var config = [];
20
+ for (var _i = 0; _i < arguments.length; _i++) {
21
+ config[_i] = arguments[_i];
22
+ }
23
+ return tslib_1.__awaiter(void 0, void 0, void 0, function () {
24
+ var params, reportId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isReportStatsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/reports/{report_id}/stats"
32
+ .replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
33
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
34
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
35
+ localVarHeaderParameter = {};
36
+ localVarQueryParameter = {};
37
+ if (xRHIDENTITY != null) {
38
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
39
+ ? xRHIDENTITY
40
+ : JSON.stringify(xRHIDENTITY);
41
+ }
42
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
43
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
44
+ return [2 /*return*/, {
45
+ urlObj: localVarUrlObj,
46
+ options: localVarRequestOptions,
47
+ }];
48
+ });
49
+ });
50
+ };
51
+ exports.reportStatsParamCreator = reportStatsParamCreator;
52
+ exports.default = exports.reportStatsParamCreator;
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportStats/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA0BjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,CAAA;AAChG,CAAC,CAAA;AACD;;;;;;;EAOE;AACK,IAAM,uBAAuB,GAAG;IAAO,gBAAiE;SAAjE,UAAiE,EAAjE,qBAAiE,EAAjE,IAAiE;QAAjE,2BAAiE;;;;;YACrG,MAAM,GAAG,yB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
@@ -32,7 +32,7 @@ export type ReportSystemsParams = {
32
32
  */
33
33
  sortBy?: any;
34
34
  /**
35
- * 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`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
35
+ * 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`, `never_reported`, `group_name`, `policies`, and `profile_ref_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
36
36
  * @type { any }
37
37
  * @memberof ReportSystemsApi
38
38
  */
@@ -0,0 +1,33 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type ReportSystemsOSParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ReportSystemsOSApi
8
+ */
9
+ reportId: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof ReportSystemsOSApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ /**
17
+ * 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`, `never_reported`, `group_name`, `policies`, and `profile_ref_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
18
+ * @type { any }
19
+ * @memberof ReportSystemsOSApi
20
+ */
21
+ filter?: any;
22
+ options?: AxiosRequestConfig;
23
+ };
24
+ /**
25
+ * This feature is exclusively used by the frontend
26
+ * @summary Request the list of available OS versions
27
+ * @param {ReportSystemsOSParams} config with all available params.
28
+ * @param {*} [options] Override http request option.
29
+ * @deprecated
30
+ * @throws {RequiredError}
31
+ */
32
+ export declare const reportSystemsOSParamCreator: (...config: ([ReportSystemsOSParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
33
+ export default reportSystemsOSParamCreator;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportSystemsOSParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
7
+ var isReportSystemsOSObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {ReportSystemsOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var reportSystemsOSParamCreator = function () {
19
+ var config = [];
20
+ for (var _i = 0; _i < arguments.length; _i++) {
21
+ config[_i] = arguments[_i];
22
+ }
23
+ return tslib_1.__awaiter(void 0, void 0, void 0, function () {
24
+ var params, reportId, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isReportSystemsOSObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/reports/{report_id}/systems/os_versions"
32
+ .replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
33
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
34
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
35
+ localVarHeaderParameter = {};
36
+ localVarQueryParameter = {};
37
+ if (filter !== undefined) {
38
+ localVarQueryParameter['filter'] = filter;
39
+ }
40
+ if (xRHIDENTITY != null) {
41
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
42
+ ? xRHIDENTITY
43
+ : JSON.stringify(xRHIDENTITY);
44
+ }
45
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
47
+ return [2 /*return*/, {
48
+ urlObj: localVarUrlObj,
49
+ options: localVarRequestOptions,
50
+ }];
51
+ });
52
+ });
53
+ };
54
+ exports.reportSystemsOSParamCreator = reportSystemsOSParamCreator;
55
+ exports.default = exports.reportSystemsOSParamCreator;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportSystemsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgCjU,IAAM,6BAA6B,GAAG,UAAC,MAA2C;IAChF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AACxG,CAAC,CAAA;AACD;;;;;;;EAOE;AACK,IAAM,2BAA2B,GAAG;IAAO,gBAA0E;SAA1E,UAA0E,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AAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA9BY,QAAA,2BAA2B,+BA8BvC;AAED,kBAAe,mCAA2B,CAAC"}
@@ -32,7 +32,7 @@ export type ReportTestResultsParams = {
32
32
  */
33
33
  sortBy?: any;
34
34
  /**
35
- * 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>Test Results are searchable using attributes `score`, `supported`, `display_name`, `os_minor_version`, `security_guide_version`, and `compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
35
+ * 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>Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, and `failed_rule_severity`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
36
36
  * @type { any }
37
37
  * @memberof ReportTestResultsApi
38
38
  */
@@ -0,0 +1,33 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type ReportTestResultsOSParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ReportTestResultsOSApi
8
+ */
9
+ reportId: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof ReportTestResultsOSApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ /**
17
+ * 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>Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, and `failed_rule_severity`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
18
+ * @type { any }
19
+ * @memberof ReportTestResultsOSApi
20
+ */
21
+ filter?: any;
22
+ options?: AxiosRequestConfig;
23
+ };
24
+ /**
25
+ * This feature is exclusively used by the frontend
26
+ * @summary Request the list of available OS versions
27
+ * @param {ReportTestResultsOSParams} config with all available params.
28
+ * @param {*} [options] Override http request option.
29
+ * @deprecated
30
+ * @throws {RequiredError}
31
+ */
32
+ export declare const reportTestResultsOSParamCreator: (...config: ([ReportTestResultsOSParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
33
+ export default reportTestResultsOSParamCreator;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportTestResultsOSParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
7
+ var isReportTestResultsOSObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {ReportTestResultsOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var reportTestResultsOSParamCreator = function () {
19
+ var config = [];
20
+ for (var _i = 0; _i < arguments.length; _i++) {
21
+ config[_i] = arguments[_i];
22
+ }
23
+ return tslib_1.__awaiter(void 0, void 0, void 0, function () {
24
+ var params, reportId, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isReportTestResultsOSObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/reports/{report_id}/test_results/os_versions"
32
+ .replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
33
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
34
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
35
+ localVarHeaderParameter = {};
36
+ localVarQueryParameter = {};
37
+ if (filter !== undefined) {
38
+ localVarQueryParameter['filter'] = filter;
39
+ }
40
+ if (xRHIDENTITY != null) {
41
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
42
+ ? xRHIDENTITY
43
+ : JSON.stringify(xRHIDENTITY);
44
+ }
45
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
47
+ return [2 /*return*/, {
48
+ urlObj: localVarUrlObj,
49
+ options: localVarRequestOptions,
50
+ }];
51
+ });
52
+ });
53
+ };
54
+ exports.reportTestResultsOSParamCreator = reportTestResultsOSParamCreator;
55
+ exports.default = exports.reportTestResultsOSParamCreator;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportTestResultsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgCjU,IAAM,iCAAiC,GAAG,UAAC,MAA+C;IACxF,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