@redhat-cloud-services/compliance-client 0.1.0 → 0.1.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 (71) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/AssignRule/index.d.ts +1 -1
  3. package/dist/AssignRules/index.d.ts +1 -1
  4. package/dist/AssignSystem/index.d.ts +1 -1
  5. package/dist/AssignSystems/index.d.ts +1 -1
  6. package/dist/CreatePolicy/index.d.ts +2 -2
  7. package/dist/CreatePolicy/index.js +1 -1
  8. package/dist/DeletePolicy/index.d.ts +1 -1
  9. package/dist/Policies/index.d.ts +4 -4
  10. package/dist/Policies/index.js +2 -2
  11. package/dist/Policy/index.d.ts +1 -1
  12. package/dist/PolicySystems/index.d.ts +2 -2
  13. package/dist/Profile/index.d.ts +1 -1
  14. package/dist/ProfileRule/index.d.ts +1 -1
  15. package/dist/ProfileRules/index.d.ts +2 -2
  16. package/dist/Profiles/index.d.ts +4 -4
  17. package/dist/Profiles/index.js +2 -2
  18. package/dist/Report/index.d.ts +26 -0
  19. package/dist/Report/index.js +52 -0
  20. package/dist/Report/index.js.map +1 -0
  21. package/dist/Reports/index.d.ts +44 -0
  22. package/dist/Reports/index.js +63 -0
  23. package/dist/Reports/index.js.map +1 -0
  24. package/dist/Rule/index.d.ts +1 -1
  25. package/dist/RuleGroup/index.d.ts +1 -1
  26. package/dist/RuleGroups/index.d.ts +4 -4
  27. package/dist/RuleGroups/index.js +2 -2
  28. package/dist/Rules/index.d.ts +3 -3
  29. package/dist/Rules/index.js +1 -1
  30. package/dist/SecurityGuide/index.d.ts +1 -1
  31. package/dist/SecurityGuideRuleTree/index.d.ts +1 -1
  32. package/dist/SecurityGuides/index.d.ts +4 -4
  33. package/dist/SecurityGuides/index.js +2 -2
  34. package/dist/SupportedProfiles/index.d.ts +4 -4
  35. package/dist/SupportedProfiles/index.js +2 -2
  36. package/dist/System/index.d.ts +1 -1
  37. package/dist/Systems/index.d.ts +4 -4
  38. package/dist/Systems/index.js +2 -2
  39. package/dist/SystemsPolicies/index.d.ts +2 -2
  40. package/dist/Tailoring/index.d.ts +1 -1
  41. package/dist/TailoringFile/index.d.ts +1 -1
  42. package/dist/TailoringRules/index.d.ts +2 -2
  43. package/dist/Tailorings/index.d.ts +4 -4
  44. package/dist/Tailorings/index.js +2 -2
  45. package/dist/UnassignRule/index.d.ts +1 -1
  46. package/dist/UnassignSystem/index.d.ts +1 -1
  47. package/dist/UpdatePolicy/index.d.ts +2 -2
  48. package/dist/UpdatePolicy/index.js +1 -1
  49. package/dist/UpdateTailoring/index.d.ts +39 -0
  50. package/dist/UpdateTailoring/index.js +55 -0
  51. package/dist/UpdateTailoring/index.js.map +1 -0
  52. package/dist/ValueDefinition/index.d.ts +1 -1
  53. package/dist/ValueDefinitions/index.d.ts +4 -4
  54. package/dist/ValueDefinitions/index.js +2 -2
  55. package/dist/api.d.ts +738 -318
  56. package/dist/api.js +581 -173
  57. package/dist/api.js.map +1 -1
  58. package/dist/base.d.ts +2 -2
  59. package/dist/base.js +1 -1
  60. package/dist/common.d.ts +1 -1
  61. package/dist/common.js +1 -1
  62. package/dist/configuration.d.ts +1 -12
  63. package/dist/configuration.js +0 -11
  64. package/dist/configuration.js.map +1 -1
  65. package/dist/index.d.ts +3 -0
  66. package/dist/index.js +10 -1
  67. package/dist/index.js.map +1 -1
  68. package/dist/types/index.d.ts +160 -20
  69. package/dist/types/index.js +4 -1
  70. package/dist/types/index.js.map +1 -1
  71. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.2](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.1.1...@redhat-cloud-services/compliance-client-0.1.2) (2024-05-28)
6
+
7
+ ## [0.1.1](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.1.0...@redhat-cloud-services/compliance-client-0.1.1) (2024-05-23)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add shared package to compliance ([bcac8bc](https://github.com/RedHatInsights/javascript-clients/commit/bcac8bc3220cb7f8e2a7947ac86f4f9f9aadf5d7))
13
+
5
14
  ## 0.1.0 (2024-05-16)
6
15
 
7
16
  ### Dependency Updates
@@ -20,7 +20,7 @@ export type AssignRuleParams = {
20
20
  */
21
21
  id: any;
22
22
  /**
23
- *
23
+ * For internal use only
24
24
  * @type { any }
25
25
  * @memberof AssignRuleApi
26
26
  */
@@ -15,7 +15,7 @@ export type AssignRulesParams = {
15
15
  */
16
16
  tailoringId: any;
17
17
  /**
18
- *
18
+ * For internal use only
19
19
  * @type { any }
20
20
  * @memberof AssignRulesApi
21
21
  */
@@ -14,7 +14,7 @@ export type AssignSystemParams = {
14
14
  */
15
15
  policyId: any;
16
16
  /**
17
- *
17
+ * For internal use only
18
18
  * @type { any }
19
19
  * @memberof AssignSystemApi
20
20
  */
@@ -9,7 +9,7 @@ export type AssignSystemsParams = {
9
9
  */
10
10
  policyId: any;
11
11
  /**
12
- *
12
+ * For internal use only
13
13
  * @type { any }
14
14
  * @memberof AssignSystemsApi
15
15
  */
@@ -3,7 +3,7 @@ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shar
3
3
  import type { Policy } from '../types';
4
4
  export type CreatePolicyParams = {
5
5
  /**
6
- *
6
+ * For internal use only
7
7
  * @type { any }
8
8
  * @memberof CreatePolicyApi
9
9
  */
@@ -17,7 +17,7 @@ export type CreatePolicyParams = {
17
17
  options?: AxiosRequestConfig;
18
18
  };
19
19
  /**
20
- * Create a Policy with the provided attributes
20
+ * Create a Policy with the provided attribute
21
21
  * @summary Create a Policy
22
22
  * @param {CreatePolicyParams} config with all available params.
23
23
  * @param {*} [options] Override http request option.
@@ -8,7 +8,7 @@ var isCreatePolicyObjectParams = function (params) {
8
8
  return params.length === 1 && true && true;
9
9
  };
10
10
  /**
11
- * Create a Policy with the provided attributes
11
+ * Create a Policy with the provided attribute
12
12
  * @summary Create a Policy
13
13
  * @param {CreatePolicyParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
@@ -8,7 +8,7 @@ export type DeletePolicyParams = {
8
8
  */
9
9
  id: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof DeletePolicyApi
14
14
  */
@@ -2,7 +2,7 @@ import type { AxiosRequestConfig } from 'axios';
2
2
  import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
3
3
  export type PoliciesParams = {
4
4
  /**
5
- *
5
+ * For internal use only
6
6
  * @type { any }
7
7
  * @memberof PoliciesApi
8
8
  */
@@ -26,7 +26,7 @@ export type PoliciesParams = {
26
26
  */
27
27
  sortBy?: any;
28
28
  /**
29
- * 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>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
29
+ * 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>Policies are searchable using attributes `title`, `os_major_version`, and `os_minor_version`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
30
30
  * @type { any }
31
31
  * @memberof PoliciesApi
32
32
  */
@@ -34,8 +34,8 @@ export type PoliciesParams = {
34
34
  options?: AxiosRequestConfig;
35
35
  };
36
36
  /**
37
- * Lists Policies
38
- * @summary Request Policies
37
+ * Lists Policie
38
+ * @summary Request Policie
39
39
  * @param {PoliciesParams} config with all available params.
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
@@ -8,8 +8,8 @@ var isPoliciesObjectParams = function (params) {
8
8
  return params.length === 1 && true && true && true && true && true;
9
9
  };
10
10
  /**
11
- * Lists Policies
12
- * @summary Request Policies
11
+ * Lists Policie
12
+ * @summary Request Policie
13
13
  * @param {PoliciesParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
15
15
  * @throws {RequiredError}
@@ -8,7 +8,7 @@ export type PolicyParams = {
8
8
  */
9
9
  id: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof PolicyApi
14
14
  */
@@ -8,7 +8,7 @@ export type PolicySystemsParams = {
8
8
  */
9
9
  policyId: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof PolicySystemsApi
14
14
  */
@@ -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`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
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`, and `assigned_or_scanned`<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
  */
@@ -14,7 +14,7 @@ export type ProfileParams = {
14
14
  */
15
15
  id: any;
16
16
  /**
17
- *
17
+ * For internal use only
18
18
  * @type { any }
19
19
  * @memberof ProfileApi
20
20
  */
@@ -20,7 +20,7 @@ export type ProfileRuleParams = {
20
20
  */
21
21
  id: any;
22
22
  /**
23
- *
23
+ * For internal use only
24
24
  * @type { any }
25
25
  * @memberof ProfileRuleApi
26
26
  */
@@ -14,7 +14,7 @@ export type ProfileRulesParams = {
14
14
  */
15
15
  profileId: any;
16
16
  /**
17
- *
17
+ * For internal use only
18
18
  * @type { any }
19
19
  * @memberof ProfileRulesApi
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.: `(version=0.1.47 AND os_major_verision=8)`)
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`)
42
42
  * @type { any }
43
43
  * @memberof ProfileRulesApi
44
44
  */
@@ -8,7 +8,7 @@ export type ProfilesParams = {
8
8
  */
9
9
  securityGuideId: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof ProfilesApi
14
14
  */
@@ -32,7 +32,7 @@ export type ProfilesParams = {
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>Profiles are searchable using attributes `title` and `ref_id`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
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>Profiles are searchable using attributes `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 ProfilesApi
38
38
  */
@@ -40,8 +40,8 @@ export type ProfilesParams = {
40
40
  options?: AxiosRequestConfig;
41
41
  };
42
42
  /**
43
- * Lists Profiles
44
- * @summary Request Profiles
43
+ * Lists Profile
44
+ * @summary Request Profile
45
45
  * @param {ProfilesParams} config with all available params.
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
@@ -8,8 +8,8 @@ var isProfilesObjectParams = function (params) {
8
8
  return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true;
9
9
  };
10
10
  /**
11
- * Lists Profiles
12
- * @summary Request Profiles
11
+ * Lists Profile
12
+ * @summary Request Profile
13
13
  * @param {ProfilesParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
15
15
  * @throws {RequiredError}
@@ -0,0 +1,26 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
3
+ export type ReportParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof ReportApi
8
+ */
9
+ id: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof ReportApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ * Returns a Report
20
+ * @summary Request a Report
21
+ * @param {ReportParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @throws {RequiredError}
24
+ */
25
+ export declare const reportParamCreator: (...config: ([ReportParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
26
+ export default reportParamCreator;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
7
+ var isReportObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'id') && true;
9
+ };
10
+ /**
11
+ * Returns a Report
12
+ * @summary Request a Report
13
+ * @param {ReportParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var reportParamCreator = 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, id, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isReportObjectParams(config) ? config[0] : ['id', '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
+ id = params.id, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/reports/{id}"
31
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, 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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
42
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
43
+ return [2 /*return*/, {
44
+ urlObj: localVarUrlObj,
45
+ options: localVarRequestOptions,
46
+ }];
47
+ });
48
+ });
49
+ };
50
+ exports.reportParamCreator = reportParamCreator;
51
+ exports.default = exports.reportParamCreator;
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Report/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AA0B5T,IAAM,oBAAoB,GAAG,UAAC,MAAkC;IAC9D,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,IAAI,CAAA;AAC1F,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,kBAAkB,GAAG;IAAO,gBAA4D;SAA5D,UAA4D,EAA5D,qBAA4D,EAA5D,IAA4D;QAA5D,2BAA4D;;;;;YAC3F,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,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,CAAiB,CAAC;YACzK,EAAE,GAAgC,MAAM,GAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC3C,YAAY,GAAG,eAAe;iBAC/B,OAAO,CAAC,WAAI,IAAI,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAEpD,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,kBAAkB,sBA0B9B;AAED,kBAAe,0BAAkB,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
3
+ export type ReportsParams = {
4
+ /**
5
+ * For internal use only
6
+ * @type { any }
7
+ * @memberof ReportsApi
8
+ */
9
+ xRHIDENTITY?: any;
10
+ /**
11
+ * Number of items to return per page
12
+ * @type { any }
13
+ * @memberof ReportsApi
14
+ */
15
+ limit?: any;
16
+ /**
17
+ * Offset of first item of paginated response
18
+ * @type { any }
19
+ * @memberof ReportsApi
20
+ */
21
+ offset?: any;
22
+ /**
23
+ * 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.
24
+ * @type { any }
25
+ * @memberof ReportsApi
26
+ */
27
+ sortBy?: any;
28
+ /**
29
+ * 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 `os_major_version`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
30
+ * @type { any }
31
+ * @memberof ReportsApi
32
+ */
33
+ filter?: any;
34
+ options?: AxiosRequestConfig;
35
+ };
36
+ /**
37
+ * Lists Report
38
+ * @summary Request Report
39
+ * @param {ReportsParams} config with all available params.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ export declare const reportsParamCreator: (...config: ([ReportsParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
44
+ export default reportsParamCreator;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportsParamCreator = void 0;
4
+ var tslib_1 = require("tslib");
5
+ // @ts-ignore
6
+ var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
7
+ var isReportsObjectParams = function (params) {
8
+ return params.length === 1 && true && true && true && true && true;
9
+ };
10
+ /**
11
+ * Lists Report
12
+ * @summary Request Report
13
+ * @param {ReportsParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var reportsParamCreator = 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, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isReportsObjectParams(config) ? config[0] : ['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
+ 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";
31
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
32
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
33
+ localVarHeaderParameter = {};
34
+ localVarQueryParameter = {};
35
+ if (limit !== undefined) {
36
+ localVarQueryParameter['limit'] = limit;
37
+ }
38
+ if (offset !== undefined) {
39
+ localVarQueryParameter['offset'] = offset;
40
+ }
41
+ if (sortBy !== undefined) {
42
+ localVarQueryParameter['sort_by'] = sortBy;
43
+ }
44
+ if (filter !== undefined) {
45
+ localVarQueryParameter['filter'] = filter;
46
+ }
47
+ if (xRHIDENTITY != null) {
48
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
49
+ ? xRHIDENTITY
50
+ : JSON.stringify(xRHIDENTITY);
51
+ }
52
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
54
+ return [2 /*return*/, {
55
+ urlObj: localVarUrlObj,
56
+ options: localVarRequestOptions,
57
+ }];
58
+ });
59
+ });
60
+ };
61
+ exports.reportsParamCreator = reportsParamCreator;
62
+ exports.default = exports.reportsParamCreator;
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Reports/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AA4C5T,IAAM,qBAAqB,GAAG,UAAC,MAAmC;IAChE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACpE,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,mBAAmB,GAAG;IAAO,gBAA4E;SAA5E,UAA4E,EAA5E,qBAA4E,EAA5E,IAA4E;QAA5E,2BAA4E;;;;;YAC5G,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,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,CAAkB,CAAC;YAC5M,WAAW,GAAkD,MAAM,YAAxD,EAAE,KAAK,GAA2C,MAAM,MAAjD,EAAE,MAAM,GAAmC,MAAM,OAAzC,EAAE,MAAM,GAA2B,MAAM,OAAjC,EAAE,MAAM,GAAmB,MAAM,OAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACtE,YAAY,GAAG,UAAU,CAAC;YAE1B,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,KAAK,KAAK,SAAS,EAAE;gBACrB,sBAAsB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;aAC3C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;aAC9C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,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;AAzCY,QAAA,mBAAmB,uBAyC/B;AAED,kBAAe,2BAAmB,CAAC"}
@@ -14,7 +14,7 @@ export type RuleParams = {
14
14
  */
15
15
  id: any;
16
16
  /**
17
- *
17
+ * For internal use only
18
18
  * @type { any }
19
19
  * @memberof RuleApi
20
20
  */
@@ -14,7 +14,7 @@ export type RuleGroupParams = {
14
14
  */
15
15
  id: any;
16
16
  /**
17
- *
17
+ * For internal use only
18
18
  * @type { any }
19
19
  * @memberof RuleGroupApi
20
20
  */
@@ -8,7 +8,7 @@ export type RuleGroupsParams = {
8
8
  */
9
9
  securityGuideId: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof RuleGroupsApi
14
14
  */
@@ -32,7 +32,7 @@ export type RuleGroupsParams = {
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>Rule Groups are searchable using attributes <br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
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>Rule Groups are searchable using attributes `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 RuleGroupsApi
38
38
  */
@@ -40,8 +40,8 @@ export type RuleGroupsParams = {
40
40
  options?: AxiosRequestConfig;
41
41
  };
42
42
  /**
43
- * Lists Rule Groups
44
- * @summary Request Rule Groups
43
+ * Lists Rule Group
44
+ * @summary Request Rule Group
45
45
  * @param {RuleGroupsParams} config with all available params.
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
@@ -8,8 +8,8 @@ var isRuleGroupsObjectParams = function (params) {
8
8
  return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true;
9
9
  };
10
10
  /**
11
- * Lists Rule Groups
12
- * @summary Request Rule Groups
11
+ * Lists Rule Group
12
+ * @summary Request Rule Group
13
13
  * @param {RuleGroupsParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
15
15
  * @throws {RequiredError}
@@ -8,7 +8,7 @@ export type RulesParams = {
8
8
  */
9
9
  securityGuideId: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof RulesApi
14
14
  */
@@ -32,7 +32,7 @@ export type RulesParams = {
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>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
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>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
36
36
  * @type { any }
37
37
  * @memberof RulesApi
38
38
  */
@@ -41,7 +41,7 @@ export type RulesParams = {
41
41
  };
42
42
  /**
43
43
  * Lists Rules assigned
44
- * @summary Request Rules
44
+ * @summary Request Rule
45
45
  * @param {RulesParams} config with all available params.
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
@@ -9,7 +9,7 @@ var isRulesObjectParams = function (params) {
9
9
  };
10
10
  /**
11
11
  * Lists Rules assigned
12
- * @summary Request Rules
12
+ * @summary Request Rule
13
13
  * @param {RulesParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
15
15
  * @throws {RequiredError}
@@ -8,7 +8,7 @@ export type SecurityGuideParams = {
8
8
  */
9
9
  id: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof SecurityGuideApi
14
14
  */
@@ -8,7 +8,7 @@ export type SecurityGuideRuleTreeParams = {
8
8
  */
9
9
  id: any;
10
10
  /**
11
- *
11
+ * For internal use only
12
12
  * @type { any }
13
13
  * @memberof SecurityGuideRuleTreeApi
14
14
  */
@@ -2,7 +2,7 @@ import type { AxiosRequestConfig } from 'axios';
2
2
  import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
3
3
  export type SecurityGuidesParams = {
4
4
  /**
5
- *
5
+ * For internal use only
6
6
  * @type { any }
7
7
  * @memberof SecurityGuidesApi
8
8
  */
@@ -26,7 +26,7 @@ export type SecurityGuidesParams = {
26
26
  */
27
27
  sortBy?: any;
28
28
  /**
29
- * 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`, and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
29
+ * 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`, and `os_major_version`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
30
30
  * @type { any }
31
31
  * @memberof SecurityGuidesApi
32
32
  */
@@ -34,8 +34,8 @@ export type SecurityGuidesParams = {
34
34
  options?: AxiosRequestConfig;
35
35
  };
36
36
  /**
37
- * Lists Security Guides
38
- * @summary Request Security Guides
37
+ * Lists Security Guide
38
+ * @summary Request Security Guide
39
39
  * @param {SecurityGuidesParams} config with all available params.
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
@@ -8,8 +8,8 @@ var isSecurityGuidesObjectParams = function (params) {
8
8
  return params.length === 1 && true && true && true && true && true;
9
9
  };
10
10
  /**
11
- * Lists Security Guides
12
- * @summary Request Security Guides
11
+ * Lists Security Guide
12
+ * @summary Request Security Guide
13
13
  * @param {SecurityGuidesParams} config with all available params.
14
14
  * @param {*} [options] Override http request option.
15
15
  * @throws {RequiredError}
@@ -2,7 +2,7 @@ import type { AxiosRequestConfig } from 'axios';
2
2
  import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
3
3
  export type SupportedProfilesParams = {
4
4
  /**
5
- *
5
+ * For internal use only
6
6
  * @type { any }
7
7
  * @memberof SupportedProfilesApi
8
8
  */
@@ -26,7 +26,7 @@ export type SupportedProfilesParams = {
26
26
  */
27
27
  sortBy?: any;
28
28
  /**
29
- * 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.: `(version=0.1.47 AND os_major_verision=8)`)
29
+ * 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`)
30
30
  * @type { any }
31
31
  * @memberof SupportedProfilesApi
32
32
  */
@@ -34,8 +34,8 @@ export type SupportedProfilesParams = {
34
34
  options?: AxiosRequestConfig;
35
35
  };
36
36
  /**
37
- * Lists Supported Profiles
38
- * @summary Request Supported Profiles
37
+ * Lists Supported Profile
38
+ * @summary Request Supported Profile
39
39
  * @param {SupportedProfilesParams} config with all available params.
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}