@redhat-cloud-services/compliance-client 0.2.3 → 1.1.0

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 (39) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +7 -8
  3. package/dist/CreateTailoring/index.d.ts +33 -0
  4. package/dist/CreateTailoring/index.js +54 -0
  5. package/dist/CreateTailoring/index.js.map +1 -0
  6. package/dist/PolicySystems/index.d.ts +1 -1
  7. package/dist/PolicySystemsOS/index.d.ts +1 -1
  8. package/dist/ProfileTree/index.d.ts +32 -0
  9. package/dist/ProfileTree/index.js +53 -0
  10. package/dist/ProfileTree/index.js.map +1 -0
  11. package/dist/ReportRuleResults/index.d.ts +1 -1
  12. package/dist/ReportSystems/index.d.ts +1 -1
  13. package/dist/ReportSystemsOS/index.d.ts +1 -1
  14. package/dist/ReportTestResults/index.d.ts +7 -1
  15. package/dist/ReportTestResults/index.js +7 -4
  16. package/dist/ReportTestResults/index.js.map +1 -1
  17. package/dist/ReportTestResultsSG/index.d.ts +27 -0
  18. package/dist/ReportTestResultsSG/index.js +53 -0
  19. package/dist/ReportTestResultsSG/index.js.map +1 -0
  20. package/dist/Reports/index.d.ts +1 -1
  21. package/dist/ReportsOS/index.d.ts +1 -1
  22. package/dist/SecurityGuides/index.d.ts +1 -1
  23. package/dist/SecurityGuidesOS/index.d.ts +1 -1
  24. package/dist/SupportedProfiles/index.d.ts +1 -1
  25. package/dist/SystemReports/index.d.ts +1 -1
  26. package/dist/Systems/index.d.ts +1 -1
  27. package/dist/SystemsOS/index.d.ts +1 -1
  28. package/dist/TailoringRuleTree/index.d.ts +32 -0
  29. package/dist/TailoringRuleTree/index.js +53 -0
  30. package/dist/TailoringRuleTree/index.js.map +1 -0
  31. package/dist/api.d.ts +58 -5235
  32. package/dist/api.js +63 -7315
  33. package/dist/api.js.map +1 -1
  34. package/dist/index.d.ts +4 -1
  35. package/dist/index.js +14 -3
  36. package/dist/index.js.map +1 -1
  37. package/dist/types/index.d.ts +44 -19
  38. package/dist/types/index.js.map +1 -1
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [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)
6
+
7
+
8
+ ### Features
9
+
10
+ * **compliance:** bump client ([7c1d8cd](https://github.com/RedHatInsights/javascript-clients/commit/7c1d8cd793ba579a529bc9677c59757f82697674))
11
+ * update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
12
+
13
+ ## [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)
14
+
15
+
16
+ ### Features
17
+
18
+ * **compliance:** bump client ([7c1d8cd](https://github.com/RedHatInsights/javascript-clients/commit/7c1d8cd793ba579a529bc9677c59757f82697674))
19
+ * update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
20
+
21
+ ## [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)
22
+
23
+
24
+ ### Features
25
+
26
+ * update compliance client with new api.ts ([306ff96](https://github.com/RedHatInsights/javascript-clients/commit/306ff9603b2d674089828f99719cac5cf8a9c8ff))
27
+
28
+ ## [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)
29
+
5
30
  ## [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)
6
31
 
7
32
  ## [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)
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 axios from 'axios';
22
- import { Configuration } from '@redhat-cloud-services/compliance-client';
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 configApi = new Configuration(undefined, BASE_PATH, instance);
27
- export configApi;
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 { Configuration } from '@redhat-cloud-services/compliance-client';
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 configApi = new Configuration(undefined, BASE_PATH, instance);
54
- export configApi;
52
+ const complianceApi = APIFactory(BASE_PATH, instance, { AssignRule });
53
+ export complianceApi;
55
54
  ```
56
55
 
57
56
  ## Building
@@ -0,0 +1,33 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ import type { TailoringCreate } from '../types';
4
+ export type CreateTailoringParams = {
5
+ /**
6
+ *
7
+ * @type { any }
8
+ * @memberof CreateTailoringApi
9
+ */
10
+ policyId: any;
11
+ /**
12
+ * For internal use only
13
+ * @type { any }
14
+ * @memberof CreateTailoringApi
15
+ */
16
+ xRHIDENTITY?: any;
17
+ /**
18
+ *
19
+ * @type { TailoringCreate }
20
+ * @memberof CreateTailoringApi
21
+ */
22
+ tailoringCreate?: TailoringCreate;
23
+ options?: AxiosRequestConfig;
24
+ };
25
+ /**
26
+ * Create a Tailoring with the provided attributes (for ImageBuilder only)
27
+ * @summary Create a Tailoring
28
+ * @param {CreateTailoringParams} config with all available params.
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ export declare const createTailoringParamCreator: (...config: ([CreateTailoringParams] | [any, any, TailoringCreate, AxiosRequestConfig])) => Promise<RequestArgs>;
33
+ export default createTailoringParamCreator;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTailoringParamCreator = 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 isCreateTailoringObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true;
9
+ };
10
+ /**
11
+ * Create a Tailoring with the provided attributes (for ImageBuilder only)
12
+ * @summary Create a Tailoring
13
+ * @param {CreateTailoringParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var createTailoringParamCreator = 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, policyId, xRHIDENTITY, tailoringCreate, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isCreateTailoringObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'tailoringCreate', '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
+ policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, tailoringCreate = params.tailoringCreate, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/policies/{policy_id}/tailorings"
31
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'POST' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (xRHIDENTITY != null) {
37
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
38
+ ? xRHIDENTITY
39
+ : JSON.stringify(xRHIDENTITY);
40
+ }
41
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
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
+ serializeData: tailoringCreate,
48
+ }];
49
+ });
50
+ });
51
+ };
52
+ exports.createTailoringParamCreator = createTailoringParamCreator;
53
+ exports.default = exports.createTailoringParamCreator;
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../CreateTailoring/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;AACx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c,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;oBAC/B,aAAa,EAAE,eAAe;iBACjC,EAAC;;;CACL,CAAA;AA7BY,QAAA,2BAA2B,+BA6BvC;AAED,kBAAe,mCAA2B,CAAC"}
@@ -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
  */
@@ -0,0 +1,32 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type ProfileTreeParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ProfileTreeApi
8
+ */
9
+ securityGuideId: any;
10
+ /**
11
+ *
12
+ * @type { any }
13
+ * @memberof ProfileTreeApi
14
+ */
15
+ profileId: any;
16
+ /**
17
+ * For internal use only
18
+ * @type { any }
19
+ * @memberof ProfileTreeApi
20
+ */
21
+ xRHIDENTITY?: any;
22
+ options?: AxiosRequestConfig;
23
+ };
24
+ /**
25
+ * Returns the Rule Tree of a Profile
26
+ * @summary Request the Rule Tree of a Profile
27
+ * @param {ProfileTreeParams} config with all available params.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ export declare const profileTreeParamCreator: (...config: ([ProfileTreeParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
32
+ export default profileTreeParamCreator;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.profileTreeParamCreator = 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 isProfileTreeObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && Object.prototype.hasOwnProperty.call(params, 'profileId') && true;
9
+ };
10
+ /**
11
+ * Returns the Rule Tree of a Profile
12
+ * @summary Request the Rule Tree of a Profile
13
+ * @param {ProfileTreeParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var profileTreeParamCreator = 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, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isProfileTreeObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', '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
+ securityGuideId = params.securityGuideId, profileId = params.profileId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rule_tree"
31
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
32
+ .replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)));
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.profileTreeParamCreator = profileTreeParamCreator;
52
+ exports.default = exports.profileTreeParamCreator;
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ProfileTree/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgCjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,IAAI,CAAA;AACpK,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,uBAAuB,GAAG;IAAO,gBAAsE;SAAtE,UAAsE,EAAtE,qBAAsE,EAAtE,IAAsE;QAAtE,2BAAsE;;;;;YAC1G,MAAM,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,WAAW,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,CAAsB,CAAC;YAC7M,eAAe,GAA2C,MAAM,gBAAjD,EAAE,SAAS,GAAgC,MAAM,UAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACnE,YAAY,GAAG,sEAAsE;iBACtF,OAAO,CAAC,WAAI,mBAAmB,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;iBAChF,OAAO,CAAC,WAAI,YAAY,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAEnE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,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;AA3BY,QAAA,uBAAuB,2BA2BnC;AAED,kBAAe,+BAAuB,CAAC"}
@@ -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 `remediation_available`<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>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;AAwDjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACxI,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,6BAA6B,GAAG;IAAO,gBAAgG;SAAhG,UAAgG,EAAhG,qBAAgG,EAAhG,IAAgG;QAAhG,2BAAgG;;;;;YAC1I,MAAM,GAAG,+BAA+B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,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,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA4B,CAAC;YACvP,QAAQ,GAAwE,MAAM,SAA9E,EAAE,WAAW,GAA2D,MAAM,YAAjE,EAAE,KAAK,GAAoD,MAAM,MAA1D,EAAE,MAAM,GAA4C,MAAM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,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;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"}
@@ -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 `with_reported_systems`<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>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 `with_reported_systems`<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>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 `os_minor_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>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
  */
@@ -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
  */
@@ -0,0 +1,32 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type TailoringRuleTreeParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof TailoringRuleTreeApi
8
+ */
9
+ policyId: any;
10
+ /**
11
+ *
12
+ * @type { any }
13
+ * @memberof TailoringRuleTreeApi
14
+ */
15
+ tailoringId: any;
16
+ /**
17
+ * For internal use only
18
+ * @type { any }
19
+ * @memberof TailoringRuleTreeApi
20
+ */
21
+ xRHIDENTITY?: any;
22
+ options?: AxiosRequestConfig;
23
+ };
24
+ /**
25
+ * Returns the Rule Tree of a Tailoring
26
+ * @summary Request the Rule Tree of a Tailoring
27
+ * @param {TailoringRuleTreeParams} config with all available params.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ export declare const tailoringRuleTreeParamCreator: (...config: ([TailoringRuleTreeParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
32
+ export default tailoringRuleTreeParamCreator;