@redhat-cloud-services/compliance-client 0.2.4 → 1.1.1
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/CHANGELOG.md +28 -0
- package/README.md +7 -8
- package/dist/PolicySystems/index.d.ts +1 -1
- package/dist/PolicySystemsOS/index.d.ts +1 -1
- package/dist/ReportRuleResults/index.d.ts +1 -1
- package/dist/ReportSystems/index.d.ts +1 -1
- package/dist/ReportSystemsOS/index.d.ts +1 -1
- package/dist/ReportTestResults/index.d.ts +7 -1
- package/dist/ReportTestResults/index.js +7 -4
- package/dist/ReportTestResults/index.js.map +1 -1
- package/dist/ReportTestResultsSG/index.d.ts +27 -0
- package/dist/ReportTestResultsSG/index.js +53 -0
- package/dist/ReportTestResultsSG/index.js.map +1 -0
- package/dist/Reports/index.d.ts +1 -1
- package/dist/ReportsOS/index.d.ts +1 -1
- package/dist/SecurityGuides/index.d.ts +1 -1
- package/dist/SecurityGuidesOS/index.d.ts +1 -1
- package/dist/SupportedProfiles/index.d.ts +1 -1
- package/dist/SystemReports/index.d.ts +1 -1
- package/dist/Systems/index.d.ts +1 -1
- package/dist/SystemsOS/index.d.ts +1 -1
- package/dist/api.d.ts +113 -5449
- package/dist/api.js +63 -7719
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.1.1](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-1.1.0...@redhat-cloud-services/compliance-client-1.1.1) (2024-11-18)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@redhat-cloud-services/javascript-clients-shared` updated to version `1.2.5`
|
|
10
|
+
## [1.1.0](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-1.0.0...@redhat-cloud-services/compliance-client-1.1.0) (2024-11-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **compliance:** bump client ([7c1d8cd](https://github.com/RedHatInsights/javascript-clients/commit/7c1d8cd793ba579a529bc9677c59757f82697674))
|
|
16
|
+
* update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
|
|
17
|
+
|
|
18
|
+
## [1.1.0](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-1.0.0...@redhat-cloud-services/compliance-client-1.1.0) (2024-11-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **compliance:** bump client ([7c1d8cd](https://github.com/RedHatInsights/javascript-clients/commit/7c1d8cd793ba579a529bc9677c59757f82697674))
|
|
24
|
+
* update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
|
|
25
|
+
|
|
26
|
+
## [1.1.0](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-1.0.0...@redhat-cloud-services/compliance-client-1.1.0) (2024-11-08)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
|
|
32
|
+
|
|
5
33
|
## [0.2.4](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.3...@redhat-cloud-services/compliance-client-0.2.4) (2024-10-21)
|
|
6
34
|
|
|
7
35
|
## [0.2.3](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.2...@redhat-cloud-services/compliance-client-0.2.3) (2024-10-15)
|
package/README.md
CHANGED
|
@@ -18,20 +18,19 @@ This client is using typescript and axios. Types are distributed with this packa
|
|
|
18
18
|
To correctly bootstrap this API you should use this config (no need to define it multiple times, just one config and reimport it anywhere you want to use it).
|
|
19
19
|
```JS
|
|
20
20
|
// api.js
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
const instance = axios.create();
|
|
21
|
+
import APIFactory from '@redhat-cloud-services/compliance-client/utils';
|
|
22
|
+
import createEndpoint from '@redhat-cloud-services/compliance-client/AssignRule';
|
|
24
23
|
|
|
25
24
|
// BASE_PATH should be set in your constants file
|
|
26
|
-
const
|
|
27
|
-
export
|
|
25
|
+
const complianceApi = APIFactory(BASE_PATH, undefined, { AssignRule });
|
|
26
|
+
export complianceApi;
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
If you want to add some interceptors you can use axios build in interceptors
|
|
31
30
|
```JS
|
|
32
31
|
// api.js
|
|
33
32
|
import axios from 'axios';
|
|
34
|
-
import {
|
|
33
|
+
import { complianceApi } from '@redhat-cloud-services/compliance-client';
|
|
35
34
|
const instance = axios.create();
|
|
36
35
|
|
|
37
36
|
// Request interceptor
|
|
@@ -50,8 +49,8 @@ instance.interceptors.response.use(null, (error) => {
|
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
// BASE_PATH should be set in your constants file
|
|
53
|
-
const
|
|
54
|
-
export
|
|
52
|
+
const complianceApi = APIFactory(BASE_PATH, instance, { AssignRule });
|
|
53
|
+
export complianceApi;
|
|
55
54
|
```
|
|
56
55
|
|
|
57
56
|
## Building
|
|
@@ -44,7 +44,7 @@ export type PolicySystemsParams = {
|
|
|
44
44
|
*/
|
|
45
45
|
sortBy?: any;
|
|
46
46
|
/**
|
|
47
|
-
* 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`)
|
|
47
|
+
* 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_version`, `os_minor_version`, and `group_name`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
48
48
|
* @type { any }
|
|
49
49
|
* @memberof PolicySystemsApi
|
|
50
50
|
*/
|
|
@@ -14,7 +14,7 @@ export type PolicySystemsOSParams = {
|
|
|
14
14
|
*/
|
|
15
15
|
xRHIDENTITY?: any;
|
|
16
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`)
|
|
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_version`, `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
18
|
* @type { any }
|
|
19
19
|
* @memberof PolicySystemsOSApi
|
|
20
20
|
*/
|
|
@@ -44,7 +44,7 @@ export type ReportRuleResultsParams = {
|
|
|
44
44
|
*/
|
|
45
45
|
sortBy?: any;
|
|
46
46
|
/**
|
|
47
|
-
* 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 `
|
|
47
|
+
* 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`, `remediation_available`, and `rule_group_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
48
48
|
* @type { any }
|
|
49
49
|
* @memberof ReportRuleResultsApi
|
|
50
50
|
*/
|
|
@@ -44,7 +44,7 @@ export type ReportSystemsParams = {
|
|
|
44
44
|
*/
|
|
45
45
|
sortBy?: any;
|
|
46
46
|
/**
|
|
47
|
-
* 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`, `never_reported`, and `group_name`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
47
|
+
* 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_version`, `os_minor_version`, `never_reported`, and `group_name`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
48
48
|
* @type { any }
|
|
49
49
|
* @memberof ReportSystemsApi
|
|
50
50
|
*/
|
|
@@ -14,7 +14,7 @@ export type ReportSystemsOSParams = {
|
|
|
14
14
|
*/
|
|
15
15
|
xRHIDENTITY?: any;
|
|
16
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`)
|
|
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_version`, `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
18
|
* @type { any }
|
|
19
19
|
* @memberof ReportSystemsOSApi
|
|
20
20
|
*/
|
|
@@ -14,6 +14,12 @@ export type ReportTestResultsParams = {
|
|
|
14
14
|
*/
|
|
15
15
|
xRHIDENTITY?: any;
|
|
16
16
|
/**
|
|
17
|
+
* An array of tags to narrow down the search results. In case the value contains symbols used for separators (`/` or `=`), they need to be encoded.<br>e.g.: `namespace/key=value`, `insights-client/selinux-config=SELINUX%3Denforcing`
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof ReportTestResultsApi
|
|
20
|
+
*/
|
|
21
|
+
tags?: any;
|
|
22
|
+
/**
|
|
17
23
|
* Number of items to return per page
|
|
18
24
|
* @type { any }
|
|
19
25
|
* @memberof ReportTestResultsApi
|
|
@@ -52,5 +58,5 @@ export type ReportTestResultsParams = {
|
|
|
52
58
|
* @param {*} [options] Override http request option.
|
|
53
59
|
* @throws {RequiredError}
|
|
54
60
|
*/
|
|
55
|
-
export declare const reportTestResultsParamCreator: (...config: ([ReportTestResultsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
61
|
+
export declare const reportTestResultsParamCreator: (...config: ([ReportTestResultsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
56
62
|
export default reportTestResultsParamCreator;
|
|
@@ -5,7 +5,7 @@ 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 isReportTestResultsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Test Results under a Report
|
|
@@ -20,19 +20,22 @@ var reportTestResultsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, reportId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, reportId, xRHIDENTITY, tags, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isReportTestResultsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isReportTestResultsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'tags', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, tags = params.tags, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/reports/{report_id}/test_results"
|
|
31
31
|
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
33
|
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
34
|
localVarHeaderParameter = {};
|
|
35
35
|
localVarQueryParameter = {};
|
|
36
|
+
if (tags !== undefined) {
|
|
37
|
+
localVarQueryParameter['tags'] = tags;
|
|
38
|
+
}
|
|
36
39
|
if (limit !== undefined) {
|
|
37
40
|
localVarQueryParameter['limit'] = limit;
|
|
38
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportTestResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot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C,EAAC;;;CACL,CAAA;AAlDY,QAAA,6BAA6B,iCAkDzC;AAED,kBAAe,qCAA6B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type ReportTestResultsSGParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof ReportTestResultsSGApi
|
|
8
|
+
*/
|
|
9
|
+
reportId: any;
|
|
10
|
+
/**
|
|
11
|
+
* For internal use only
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof ReportTestResultsSGApi
|
|
14
|
+
*/
|
|
15
|
+
xRHIDENTITY?: any;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* This feature is exclusively used by the frontend
|
|
20
|
+
* @summary Request the list of available Security Guide versions
|
|
21
|
+
* @param {ReportTestResultsSGParams} config with all available params.
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @deprecated
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
export declare const reportTestResultsSGParamCreator: (...config: ([ReportTestResultsSGParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
27
|
+
export default reportTestResultsSGParamCreator;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportTestResultsSGParamCreator = 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 isReportTestResultsSGObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* This feature is exclusively used by the frontend
|
|
12
|
+
* @summary Request the list of available Security Guide versions
|
|
13
|
+
* @param {ReportTestResultsSGParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @deprecated
|
|
16
|
+
* @throws {RequiredError}
|
|
17
|
+
*/
|
|
18
|
+
var reportTestResultsSGParamCreator = 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 = isReportTestResultsSGObjectParams(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}/test_results/security_guide_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 (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.reportTestResultsSGParamCreator = reportTestResultsSGParamCreator;
|
|
52
|
+
exports.default = exports.reportTestResultsSGParamCreator;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportTestResultsSG/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA0BjU,IAAM,iCAAiC,GAAG,UAAC,MAA+C;IACxF,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,+BAA+B,GAAG;IAAO,gBAAyE;SAAzE,UAAyE,EAAzE,qBAAyE,EAAzE,IAAyE;QAAzE,2BAAyE;;;;;YACrH,MAAM,GAAG,iCAAiC,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,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA8B,CAAC;YACzM,QAAQ,GAAgC,MAAM,SAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACjD,YAAY,GAAG,2DAA2D;iBAC3E,OAAO,CAAC,WAAI,WAAW,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAEjE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAEzC,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;AA1BY,QAAA,+BAA+B,mCA0B3C;AAED,kBAAe,uCAA+B,CAAC"}
|
package/dist/Reports/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type ReportsParams = {
|
|
|
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>Reports are searchable using attributes `title`, `os_major_version`, and `
|
|
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>Reports are searchable using attributes `title`, `os_major_version`, `with_reported_systems`, and `percent_compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
36
36
|
* @type { any }
|
|
37
37
|
* @memberof ReportsApi
|
|
38
38
|
*/
|
|
@@ -8,7 +8,7 @@ export type ReportsOSParams = {
|
|
|
8
8
|
*/
|
|
9
9
|
xRHIDENTITY?: any;
|
|
10
10
|
/**
|
|
11
|
-
* 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`, `os_major_version`, and `
|
|
11
|
+
* 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`, `os_major_version`, `with_reported_systems`, and `percent_compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
12
12
|
* @type { any }
|
|
13
13
|
* @memberof ReportsOSApi
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export type SecurityGuidesParams = {
|
|
|
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>Security Guides are searchable using attributes `title`, `version`, `ref_id`, `os_major_version`, `profile_ref_id`, and `
|
|
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>Security Guides are searchable using attributes `title`, `version`, `ref_id`, `os_major_version`, `profile_ref_id`, and `supported_profile`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
36
36
|
* @type { any }
|
|
37
37
|
* @memberof SecurityGuidesApi
|
|
38
38
|
*/
|
|
@@ -8,7 +8,7 @@ export type SecurityGuidesOSParams = {
|
|
|
8
8
|
*/
|
|
9
9
|
xRHIDENTITY?: any;
|
|
10
10
|
/**
|
|
11
|
-
* 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`)
|
|
11
|
+
* 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_version`, `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`)
|
|
12
12
|
* @type { any }
|
|
13
13
|
* @memberof SecurityGuidesOSApi
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export type SupportedProfilesParams = {
|
|
|
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>Supported Profiles are searchable using attributes `os_major_version`<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>Supported Profiles are searchable using attributes `os_major_version`, `title`, and `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 SupportedProfilesApi
|
|
38
38
|
*/
|
|
@@ -38,7 +38,7 @@ export type SystemReportsParams = {
|
|
|
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>Reports are searchable using attributes `title`<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>Reports are searchable using attributes `title` and `percent_compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
42
42
|
* @type { any }
|
|
43
43
|
* @memberof SystemReportsApi
|
|
44
44
|
*/
|
package/dist/Systems/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export type SystemsParams = {
|
|
|
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>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`)
|
|
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>Systems are searchable using attributes `display_name`, `os_version`, `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`)
|
|
42
42
|
* @type { any }
|
|
43
43
|
* @memberof SystemsApi
|
|
44
44
|
*/
|
|
@@ -8,7 +8,7 @@ export type SystemsOSParams = {
|
|
|
8
8
|
*/
|
|
9
9
|
xRHIDENTITY?: any;
|
|
10
10
|
/**
|
|
11
|
-
* 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`)
|
|
11
|
+
* 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_version`, `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`)
|
|
12
12
|
* @type { any }
|
|
13
13
|
* @memberof SystemsOSApi
|
|
14
14
|
*/
|