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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/AssignRule/index.d.ts +1 -1
  3. package/dist/DeleteReport/index.d.ts +1 -1
  4. package/dist/DeleteReport/index.js +1 -1
  5. package/dist/PolicySystems/index.d.ts +1 -1
  6. package/dist/PolicySystemsOS/index.d.ts +33 -0
  7. package/dist/PolicySystemsOS/index.js +56 -0
  8. package/dist/PolicySystemsOS/index.js.map +1 -0
  9. package/dist/Profile/index.d.ts +1 -1
  10. package/dist/ProfileRule/index.d.ts +1 -1
  11. package/dist/ProfileRules/index.d.ts +1 -1
  12. package/dist/ReportRuleResults/index.d.ts +56 -0
  13. package/dist/ReportRuleResults/index.js +65 -0
  14. package/dist/ReportRuleResults/index.js.map +1 -0
  15. package/dist/ReportStats/index.d.ts +27 -0
  16. package/dist/ReportStats/index.js +53 -0
  17. package/dist/ReportStats/index.js.map +1 -0
  18. package/dist/ReportSystems/index.d.ts +1 -1
  19. package/dist/ReportSystemsOS/index.d.ts +33 -0
  20. package/dist/ReportSystemsOS/index.js +56 -0
  21. package/dist/ReportSystemsOS/index.js.map +1 -0
  22. package/dist/ReportTestResults/index.d.ts +1 -1
  23. package/dist/ReportTestResultsOS/index.d.ts +33 -0
  24. package/dist/ReportTestResultsOS/index.js +56 -0
  25. package/dist/ReportTestResultsOS/index.js.map +1 -0
  26. package/dist/ReportsOS/index.d.ts +27 -0
  27. package/dist/ReportsOS/index.js +55 -0
  28. package/dist/ReportsOS/index.js.map +1 -0
  29. package/dist/Rule/index.d.ts +1 -1
  30. package/dist/Rules/index.d.ts +1 -1
  31. package/dist/SecurityGuides/index.d.ts +1 -1
  32. package/dist/SecurityGuidesOS/index.d.ts +27 -0
  33. package/dist/SecurityGuidesOS/index.js +55 -0
  34. package/dist/SecurityGuidesOS/index.js.map +1 -0
  35. package/dist/SystemReports/index.d.ts +50 -0
  36. package/dist/SystemReports/index.js +64 -0
  37. package/dist/SystemReports/index.js.map +1 -0
  38. package/dist/Systems/index.d.ts +1 -1
  39. package/dist/SystemsOS/index.d.ts +27 -0
  40. package/dist/SystemsOS/index.js +55 -0
  41. package/dist/SystemsOS/index.js.map +1 -0
  42. package/dist/TailoringRules/index.d.ts +1 -1
  43. package/dist/UnassignRule/index.d.ts +1 -1
  44. package/dist/api.d.ts +1272 -1457
  45. package/dist/api.js +2411 -896
  46. package/dist/api.js.map +1 -1
  47. package/dist/index.d.ts +9 -0
  48. package/dist/index.js +28 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/types/index.d.ts +206 -5
  51. package/dist/types/index.js +15 -1
  52. package/dist/types/index.js.map +1 -1
  53. package/package.json +1 -1
@@ -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 ReportsOSParams = {
4
+ /**
5
+ * For internal use only
6
+ * @type { any }
7
+ * @memberof ReportsOSApi
8
+ */
9
+ xRHIDENTITY?: any;
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`)
12
+ * @type { any }
13
+ * @memberof ReportsOSApi
14
+ */
15
+ filter?: any;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ * This feature is exclusively used by the frontend
20
+ * @summary Request the list of available OS versions
21
+ * @param {ReportsOSParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @deprecated
24
+ * @throws {RequiredError}
25
+ */
26
+ export declare const reportsOSParamCreator: (...config: ([ReportsOSParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
27
+ export default reportsOSParamCreator;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportsOSParamCreator = 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 isReportsOSObjectParams = function (params) {
8
+ return params.length === 1 && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {ReportsOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var reportsOSParamCreator = 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, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isReportsOSObjectParams(config) ? config[0] : ['xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/reports/os_versions";
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (filter !== undefined) {
37
+ localVarQueryParameter['filter'] = filter;
38
+ }
39
+ if (xRHIDENTITY != null) {
40
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
41
+ ? xRHIDENTITY
42
+ : JSON.stringify(xRHIDENTITY);
43
+ }
44
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
45
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
46
+ return [2 /*return*/, {
47
+ urlObj: localVarUrlObj,
48
+ options: localVarRequestOptions,
49
+ }];
50
+ });
51
+ });
52
+ };
53
+ exports.reportsOSParamCreator = reportsOSParamCreator;
54
+ exports.default = exports.reportsOSParamCreator;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA0BjU,IAAM,uBAAuB,GAAG,UAAC,MAAqC;IACpE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AAC5C,CAAC,CAAA;AACD;;;;;;;EAOE;AACK,IAAM,qBAAqB,GAAG;IAAO,gBAA+D;SAA/D,UAA+D,EAA/D,qBAA+D,EAA/D,IAA+D;QAA/D,2BAA+D;;;;;YACjG,MAAM,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAoB,CAAC;YACnL,WAAW,GAA2B,MAAM,YAAjC,EAAE,MAAM,GAAmB,MAAM,OAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC/C,YAAY,GAAG,sBAAsB,CAAC;YAEtC,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,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;AA7BY,QAAA,qBAAqB,yBA6BjC;AAED,kBAAe,6BAAqB,CAAC"}
@@ -8,7 +8,7 @@ export type RuleParams = {
8
8
  */
9
9
  securityGuideId: any;
10
10
  /**
11
- * UUID or ref_id
11
+ * UUID or a ref_id with \'.\' characters replaced with \'-\'
12
12
  * @type { any }
13
13
  * @memberof RuleApi
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.: `(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>Rules are searchable using attributes `title`, `severity`, and `remediation_available`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
36
36
  * @type { any }
37
37
  * @memberof RulesApi
38
38
  */
@@ -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.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
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`, `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`)
30
30
  * @type { any }
31
31
  * @memberof SecurityGuidesApi
32
32
  */
@@ -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 SecurityGuidesOSParams = {
4
+ /**
5
+ * For internal use only
6
+ * @type { any }
7
+ * @memberof SecurityGuidesOSApi
8
+ */
9
+ xRHIDENTITY?: any;
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`)
12
+ * @type { any }
13
+ * @memberof SecurityGuidesOSApi
14
+ */
15
+ filter?: any;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ * This feature is exclusively used by the frontend
20
+ * @summary Request the list of available OS versions
21
+ * @param {SecurityGuidesOSParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @deprecated
24
+ * @throws {RequiredError}
25
+ */
26
+ export declare const securityGuidesOSParamCreator: (...config: ([SecurityGuidesOSParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
27
+ export default securityGuidesOSParamCreator;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.securityGuidesOSParamCreator = 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 isSecurityGuidesOSObjectParams = function (params) {
8
+ return params.length === 1 && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {SecurityGuidesOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var securityGuidesOSParamCreator = 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, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isSecurityGuidesOSObjectParams(config) ? config[0] : ['xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/security_guides/os_versions";
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (filter !== undefined) {
37
+ localVarQueryParameter['filter'] = filter;
38
+ }
39
+ if (xRHIDENTITY != null) {
40
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
41
+ ? xRHIDENTITY
42
+ : JSON.stringify(xRHIDENTITY);
43
+ }
44
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
45
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
46
+ return [2 /*return*/, {
47
+ urlObj: localVarUrlObj,
48
+ options: localVarRequestOptions,
49
+ }];
50
+ });
51
+ });
52
+ };
53
+ exports.securityGuidesOSParamCreator = securityGuidesOSParamCreator;
54
+ exports.default = exports.securityGuidesOSParamCreator;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../SecurityGuidesOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA0BjU,IAAM,8BAA8B,GAAG,UAAC,MAA4C;IAClF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AAC5C,CAAC,CAAA;AACD;;;;;;;EAOE;AACK,IAAM,4BAA4B,GAAG;IAAO,gBAAsE;SAAtE,UAAsE,EAAtE,qBAAsE,EAAtE,IAAsE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AA4B,gCA6BxC;AAED,kBAAe,oCAA4B,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ export type SystemReportsParams = {
4
+ /**
5
+ *
6
+ * @type { any }
7
+ * @memberof SystemReportsApi
8
+ */
9
+ systemId: any;
10
+ /**
11
+ * For internal use only
12
+ * @type { any }
13
+ * @memberof SystemReportsApi
14
+ */
15
+ xRHIDENTITY?: any;
16
+ /**
17
+ * Number of items to return per page
18
+ * @type { any }
19
+ * @memberof SystemReportsApi
20
+ */
21
+ limit?: any;
22
+ /**
23
+ * Offset of first item of paginated response
24
+ * @type { any }
25
+ * @memberof SystemReportsApi
26
+ */
27
+ offset?: any;
28
+ /**
29
+ * 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.
30
+ * @type { any }
31
+ * @memberof SystemReportsApi
32
+ */
33
+ sortBy?: any;
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`)
36
+ * @type { any }
37
+ * @memberof SystemReportsApi
38
+ */
39
+ filter?: any;
40
+ options?: AxiosRequestConfig;
41
+ };
42
+ /**
43
+ * Lists Reports
44
+ * @summary Request Reports
45
+ * @param {SystemReportsParams} config with all available params.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ export declare const systemReportsParamCreator: (...config: ([SystemReportsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
50
+ export default systemReportsParamCreator;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.systemReportsParamCreator = 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 isSystemReportsObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'systemId') && true && true && true && true && true;
9
+ };
10
+ /**
11
+ * Lists Reports
12
+ * @summary Request Reports
13
+ * @param {SystemReportsParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var systemReportsParamCreator = 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, systemId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isSystemReportsObjectParams(config) ? config[0] : ['systemId', '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
+ systemId = params.systemId, 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 = "/systems/{system_id}/reports"
31
+ .replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)));
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (limit !== undefined) {
37
+ localVarQueryParameter['limit'] = limit;
38
+ }
39
+ if (offset !== undefined) {
40
+ localVarQueryParameter['offset'] = offset;
41
+ }
42
+ if (sortBy !== undefined) {
43
+ localVarQueryParameter['sort_by'] = sortBy;
44
+ }
45
+ if (filter !== undefined) {
46
+ localVarQueryParameter['filter'] = filter;
47
+ }
48
+ if (xRHIDENTITY != null) {
49
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
50
+ ? xRHIDENTITY
51
+ : JSON.stringify(xRHIDENTITY);
52
+ }
53
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
54
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
55
+ return [2 /*return*/, {
56
+ urlObj: localVarUrlObj,
57
+ options: localVarRequestOptions,
58
+ }];
59
+ });
60
+ });
61
+ };
62
+ exports.systemReportsParamCreator = systemReportsParamCreator;
63
+ exports.default = exports.systemReportsParamCreator;
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../SystemReports/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkDjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,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,CAAA;AAChI,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,yBAAyB,GAAG;IAAO,gBAAuF;SAAvF,UAAuF,EAAvF,qBAAuF,EAAvF,IAAuF;QAAvF,2BAAuF;;;;;YAC7H,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,Q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AuB,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;AA1CY,QAAA,yBAAyB,6BA0CrC;AAED,kBAAe,iCAAyB,CAAC"}
@@ -26,7 +26,7 @@ export type SystemsParams = {
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>Systems are searchable using attributes `display_name`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
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>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`)
30
30
  * @type { any }
31
31
  * @memberof SystemsApi
32
32
  */
@@ -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 SystemsOSParams = {
4
+ /**
5
+ * For internal use only
6
+ * @type { any }
7
+ * @memberof SystemsOSApi
8
+ */
9
+ xRHIDENTITY?: any;
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`)
12
+ * @type { any }
13
+ * @memberof SystemsOSApi
14
+ */
15
+ filter?: any;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ * This feature is exclusively used by the frontend
20
+ * @summary Request the list of available OS versions
21
+ * @param {SystemsOSParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @deprecated
24
+ * @throws {RequiredError}
25
+ */
26
+ export declare const systemsOSParamCreator: (...config: ([SystemsOSParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
27
+ export default systemsOSParamCreator;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.systemsOSParamCreator = 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 isSystemsOSObjectParams = function (params) {
8
+ return params.length === 1 && true && true;
9
+ };
10
+ /**
11
+ * This feature is exclusively used by the frontend
12
+ * @summary Request the list of available OS versions
13
+ * @param {SystemsOSParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @deprecated
16
+ * @throws {RequiredError}
17
+ */
18
+ var systemsOSParamCreator = 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, xRHIDENTITY, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
25
+ return tslib_1.__generator(this, function (_b) {
26
+ params = isSystemsOSObjectParams(config) ? config[0] : ['xRHIDENTITY', 'filter', 'options'].reduce(function (acc, curr, index) {
27
+ var _a;
28
+ return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
29
+ }, {});
30
+ xRHIDENTITY = params.xRHIDENTITY, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
31
+ localVarPath = "/systems/os_versions";
32
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
33
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (filter !== undefined) {
37
+ localVarQueryParameter['filter'] = filter;
38
+ }
39
+ if (xRHIDENTITY != null) {
40
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
41
+ ? xRHIDENTITY
42
+ : JSON.stringify(xRHIDENTITY);
43
+ }
44
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
45
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
46
+ return [2 /*return*/, {
47
+ urlObj: localVarUrlObj,
48
+ options: localVarRequestOptions,
49
+ }];
50
+ });
51
+ });
52
+ };
53
+ exports.systemsOSParamCreator = systemsOSParamCreator;
54
+ exports.default = exports.systemsOSParamCreator;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../SystemsOS/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA0BjU,IAAM,uBAAuB,GAAG,UAAC,MAAqC;IACpE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IA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AC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA7BY,QAAA,qBAAqB,yBA6BjC;AAED,kBAAe,6BAAqB,CAAC"}
@@ -38,7 +38,7 @@ export type TailoringRulesParams = {
38
38
  */
39
39
  sortBy?: any;
40
40
  /**
41
- * Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
41
+ * Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title`, `severity`, and `remediation_available`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
42
42
  * @type { any }
43
43
  * @memberof TailoringRulesApi
44
44
  */
@@ -14,7 +14,7 @@ export type UnassignRuleParams = {
14
14
  */
15
15
  tailoringId: any;
16
16
  /**
17
- * UUID or ref_id
17
+ * UUID or a ref_id with \'.\' characters replaced with \'-\'
18
18
  * @type { any }
19
19
  * @memberof UnassignRuleApi
20
20
  */