@sonatype/nexus-iq-api-client 0.184.0 → 0.184.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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2 } from '../models/index';
13
+ import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationValueDTO } from '../models/index';
14
14
  export interface DeleteComponentLabelRequest {
15
15
  ownerType: DeleteComponentLabelOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -97,11 +97,11 @@ export interface ComponentsApiInterface {
97
97
  * @throws {RequiredError}
98
98
  * @memberof ComponentsApiInterface
99
99
  */
100
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
100
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
101
101
  /**
102
102
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
103
103
  */
104
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
105
105
  /**
106
106
  * Use this method to assign an existing label to a component.
107
107
  * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository' | 'global'} ownerType Possible values: application or organization
@@ -149,11 +149,11 @@ export declare class ComponentsApi extends runtime.BaseAPI implements Components
149
149
  /**
150
150
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
151
151
  */
152
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
152
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
153
153
  /**
154
154
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
155
155
  */
156
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
156
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
157
157
  /**
158
158
  * Use this method to assign an existing label to a component.
159
159
  */
@@ -167,7 +167,7 @@ class ComponentsApi extends runtime.BaseAPI {
167
167
  query: queryParameters,
168
168
  body: (0, index_1.ApiComponentDTOV2ToJSON)(requestParameters['apiComponentDTOV2']),
169
169
  }, initOverrides);
170
- return new runtime.VoidApiResponse(response);
170
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentRemediationValueDTOFromJSON)(jsonValue));
171
171
  });
172
172
  }
173
173
  /**
@@ -175,7 +175,8 @@ class ComponentsApi extends runtime.BaseAPI {
175
175
  */
176
176
  getSuggestedRemediationForComponent(requestParameters, initOverrides) {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
- yield this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
178
+ const response = yield this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
179
+ return yield response.value();
179
180
  });
180
181
  }
181
182
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2 } from '../models/index';
13
+ import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationValueDTO } from '../models/index';
14
14
  export interface DeleteComponentLabelRequest {
15
15
  ownerType: DeleteComponentLabelOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -97,11 +97,11 @@ export interface ComponentsApiInterface {
97
97
  * @throws {RequiredError}
98
98
  * @memberof ComponentsApiInterface
99
99
  */
100
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
100
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
101
101
  /**
102
102
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
103
103
  */
104
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
105
105
  /**
106
106
  * Use this method to assign an existing label to a component.
107
107
  * @param {'application' | 'organization' | 'repository_container' | 'repository_manager' | 'repository' | 'global'} ownerType Possible values: application or organization
@@ -149,11 +149,11 @@ export declare class ComponentsApi extends runtime.BaseAPI implements Components
149
149
  /**
150
150
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
151
151
  */
152
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
152
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
153
153
  /**
154
154
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
155
155
  */
156
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
156
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
157
157
  /**
158
158
  * Use this method to assign an existing label to a component.
159
159
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, } from '../models/index';
24
+ import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationValueDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -164,7 +164,7 @@ export class ComponentsApi extends runtime.BaseAPI {
164
164
  query: queryParameters,
165
165
  body: ApiComponentDTOV2ToJSON(requestParameters['apiComponentDTOV2']),
166
166
  }, initOverrides);
167
- return new runtime.VoidApiResponse(response);
167
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiComponentRemediationValueDTOFromJSON(jsonValue));
168
168
  });
169
169
  }
170
170
  /**
@@ -172,7 +172,8 @@ export class ComponentsApi extends runtime.BaseAPI {
172
172
  */
173
173
  getSuggestedRemediationForComponent(requestParameters, initOverrides) {
174
174
  return __awaiter(this, void 0, void 0, function* () {
175
- yield this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
175
+ const response = yield this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
176
+ return yield response.value();
176
177
  });
177
178
  }
178
179
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-iq-api-client",
3
- "version": "0.184.0",
3
+ "version": "0.184.2",
4
4
  "description": "OpenAPI client for @sonatype/nexus-iq-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,6 +19,7 @@ import type {
19
19
  ApiComponentDetailsRequestDTOV2,
20
20
  ApiComponentDetailsResultDTOV2,
21
21
  ApiComponentOrPurlIdentifierDTOV2,
22
+ ApiComponentRemediationValueDTO,
22
23
  } from '../models/index';
23
24
  import {
24
25
  ApiComponentDTOV2FromJSON,
@@ -29,6 +30,8 @@ import {
29
30
  ApiComponentDetailsResultDTOV2ToJSON,
30
31
  ApiComponentOrPurlIdentifierDTOV2FromJSON,
31
32
  ApiComponentOrPurlIdentifierDTOV2ToJSON,
33
+ ApiComponentRemediationValueDTOFromJSON,
34
+ ApiComponentRemediationValueDTOToJSON,
32
35
  } from '../models/index';
33
36
 
34
37
  export interface DeleteComponentLabelRequest {
@@ -128,12 +131,12 @@ export interface ComponentsApiInterface {
128
131
  * @throws {RequiredError}
129
132
  * @memberof ComponentsApiInterface
130
133
  */
131
- getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
134
+ getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>>;
132
135
 
133
136
  /**
134
137
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
135
138
  */
136
- getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
139
+ getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO>;
137
140
 
138
141
  /**
139
142
  * Use this method to assign an existing label to a component.
@@ -289,7 +292,7 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
289
292
  /**
290
293
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
291
294
  */
292
- async getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
295
+ async getSuggestedRemediationForComponentRaw(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentRemediationValueDTO>> {
293
296
  if (requestParameters['ownerType'] == null) {
294
297
  throw new runtime.RequiredError(
295
298
  'ownerType',
@@ -337,14 +340,15 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
337
340
  body: ApiComponentDTOV2ToJSON(requestParameters['apiComponentDTOV2']),
338
341
  }, initOverrides);
339
342
 
340
- return new runtime.VoidApiResponse(response);
343
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiComponentRemediationValueDTOFromJSON(jsonValue));
341
344
  }
342
345
 
343
346
  /**
344
347
  * Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
345
348
  */
346
- async getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
347
- await this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
349
+ async getSuggestedRemediationForComponent(requestParameters: GetSuggestedRemediationForComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentRemediationValueDTO> {
350
+ const response = await this.getSuggestedRemediationForComponentRaw(requestParameters, initOverrides);
351
+ return await response.value();
348
352
  }
349
353
 
350
354
  /**