@sonatype/nexus-iq-api-client 0.156.2 → 0.156.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/dist/apis/ApplicationsApi.d.ts +5 -5
- package/dist/apis/ApplicationsApi.js +1 -1
- package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
- package/dist/esm/apis/ApplicationsApi.js +2 -2
- package/dist/esm/models/ApiComponentDetailsDTOV2.d.ts +2 -2
- package/dist/esm/models/GetApplicationsDefaultResponse.d.ts +32 -0
- package/dist/esm/models/GetApplicationsDefaultResponse.js +44 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ApiComponentDetailsDTOV2.d.ts +2 -2
- package/dist/models/GetApplicationsDefaultResponse.d.ts +32 -0
- package/dist/models/GetApplicationsDefaultResponse.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ApplicationsApi.ts +8 -5
- package/src/models/ApiComponentDetailsDTOV2.ts +2 -2
- package/src/models/GetApplicationsDefaultResponse.ts +72 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -217,6 +217,7 @@ src/models/CweId.ts
|
|
|
217
217
|
src/models/FormDataBodyPart.ts
|
|
218
218
|
src/models/FormDataContentDisposition.ts
|
|
219
219
|
src/models/FormDataMultiPart.ts
|
|
220
|
+
src/models/GetApplicationsDefaultResponse.ts
|
|
220
221
|
src/models/GroupingByDTO.ts
|
|
221
222
|
src/models/InnerSourceData.ts
|
|
222
223
|
src/models/LabelsByOwner.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } from '../models/index';
|
|
13
|
+
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2, GetApplicationsDefaultResponse } from '../models/index';
|
|
14
14
|
export interface AddApplicationRequest {
|
|
15
15
|
apiApplicationDTO?: ApiApplicationDTO;
|
|
16
16
|
}
|
|
@@ -124,10 +124,10 @@ export interface ApplicationsApiInterface {
|
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
* @memberof ApplicationsApiInterface
|
|
126
126
|
*/
|
|
127
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
127
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
|
|
128
128
|
/**
|
|
129
129
|
*/
|
|
130
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
130
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
133
|
* @param {string} organizationId
|
|
@@ -257,10 +257,10 @@ export declare class ApplicationsApi extends runtime.BaseAPI implements Applicat
|
|
|
257
257
|
getApplication(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiApplicationDTO>;
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
260
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
263
|
+
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
266
|
getApplicationsByOrganizationIdRaw(requestParameters: GetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiApplicationListDTO>>;
|
|
@@ -170,7 +170,7 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
170
170
|
headers: headerParameters,
|
|
171
171
|
query: queryParameters,
|
|
172
172
|
}, initOverrides);
|
|
173
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetApplicationsDefaultResponseFromJSON)(jsonValue));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } from '../models/index';
|
|
13
|
+
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2, GetApplicationsDefaultResponse } from '../models/index';
|
|
14
14
|
export interface AddApplicationRequest {
|
|
15
15
|
apiApplicationDTO?: ApiApplicationDTO;
|
|
16
16
|
}
|
|
@@ -124,10 +124,10 @@ export interface ApplicationsApiInterface {
|
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
* @memberof ApplicationsApiInterface
|
|
126
126
|
*/
|
|
127
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
127
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
|
|
128
128
|
/**
|
|
129
129
|
*/
|
|
130
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
130
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
133
|
* @param {string} organizationId
|
|
@@ -257,10 +257,10 @@ export declare class ApplicationsApi extends runtime.BaseAPI implements Applicat
|
|
|
257
257
|
getApplication(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiApplicationDTO>;
|
|
258
258
|
/**
|
|
259
259
|
*/
|
|
260
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
260
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
263
|
+
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
266
|
getApplicationsByOrganizationIdRaw(requestParameters: GetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiApplicationListDTO>>;
|
|
@@ -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 { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, } from '../models/index';
|
|
24
|
+
import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, GetApplicationsDefaultResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -167,7 +167,7 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
167
167
|
headers: headerParameters,
|
|
168
168
|
query: queryParameters,
|
|
169
169
|
}, initOverrides);
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetApplicationsDefaultResponseFromJSON(jsonValue));
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -43,7 +43,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof ApiComponentDetailsDTOV2
|
|
45
45
|
*/
|
|
46
|
-
relativePopularity?: number;
|
|
46
|
+
relativePopularity?: number | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {ApiLicenseDataDTO}
|
|
@@ -61,7 +61,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof ApiComponentDetailsDTOV2
|
|
63
63
|
*/
|
|
64
|
-
hygieneRating?: string;
|
|
64
|
+
hygieneRating?: string | null;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {ApiSecurityDataDTO}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sonatype Nexus IQ Server
|
|
3
|
+
* This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 156
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiApplicationDTO } from './ApiApplicationDTO';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetApplicationsDefaultResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetApplicationsDefaultResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiApplicationDTO>}
|
|
22
|
+
* @memberof GetApplicationsDefaultResponse
|
|
23
|
+
*/
|
|
24
|
+
applications?: Array<ApiApplicationDTO>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetApplicationsDefaultResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetApplicationsDefaultResponse(value: object): boolean;
|
|
30
|
+
export declare function GetApplicationsDefaultResponseFromJSON(json: any): GetApplicationsDefaultResponse;
|
|
31
|
+
export declare function GetApplicationsDefaultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApplicationsDefaultResponse;
|
|
32
|
+
export declare function GetApplicationsDefaultResponseToJSON(value?: GetApplicationsDefaultResponse | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus IQ Server
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 156
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, } from './ApiApplicationDTO';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetApplicationsDefaultResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetApplicationsDefaultResponse(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function GetApplicationsDefaultResponseFromJSON(json) {
|
|
24
|
+
return GetApplicationsDefaultResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetApplicationsDefaultResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'applications': !exists(json, 'applications') ? undefined : (json['applications'].map(ApiApplicationDTOFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetApplicationsDefaultResponseToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'applications': value.applications === undefined ? undefined : (value.applications.map(ApiApplicationDTOToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -170,6 +170,7 @@ export * from './CweId';
|
|
|
170
170
|
export * from './FormDataBodyPart';
|
|
171
171
|
export * from './FormDataContentDisposition';
|
|
172
172
|
export * from './FormDataMultiPart';
|
|
173
|
+
export * from './GetApplicationsDefaultResponse';
|
|
173
174
|
export * from './GroupingByDTO';
|
|
174
175
|
export * from './InnerSourceData';
|
|
175
176
|
export * from './LabelsByOwner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -172,6 +172,7 @@ export * from './CweId';
|
|
|
172
172
|
export * from './FormDataBodyPart';
|
|
173
173
|
export * from './FormDataContentDisposition';
|
|
174
174
|
export * from './FormDataMultiPart';
|
|
175
|
+
export * from './GetApplicationsDefaultResponse';
|
|
175
176
|
export * from './GroupingByDTO';
|
|
176
177
|
export * from './InnerSourceData';
|
|
177
178
|
export * from './LabelsByOwner';
|
|
@@ -43,7 +43,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof ApiComponentDetailsDTOV2
|
|
45
45
|
*/
|
|
46
|
-
relativePopularity?: number;
|
|
46
|
+
relativePopularity?: number | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {ApiLicenseDataDTO}
|
|
@@ -61,7 +61,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof ApiComponentDetailsDTOV2
|
|
63
63
|
*/
|
|
64
|
-
hygieneRating?: string;
|
|
64
|
+
hygieneRating?: string | null;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {ApiSecurityDataDTO}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sonatype Nexus IQ Server
|
|
3
|
+
* This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 156
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiApplicationDTO } from './ApiApplicationDTO';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetApplicationsDefaultResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetApplicationsDefaultResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiApplicationDTO>}
|
|
22
|
+
* @memberof GetApplicationsDefaultResponse
|
|
23
|
+
*/
|
|
24
|
+
applications?: Array<ApiApplicationDTO>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetApplicationsDefaultResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetApplicationsDefaultResponse(value: object): boolean;
|
|
30
|
+
export declare function GetApplicationsDefaultResponseFromJSON(json: any): GetApplicationsDefaultResponse;
|
|
31
|
+
export declare function GetApplicationsDefaultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApplicationsDefaultResponse;
|
|
32
|
+
export declare function GetApplicationsDefaultResponseToJSON(value?: GetApplicationsDefaultResponse | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype Nexus IQ Server
|
|
6
|
+
* This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 156
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetApplicationsDefaultResponseToJSON = exports.GetApplicationsDefaultResponseFromJSONTyped = exports.GetApplicationsDefaultResponseFromJSON = exports.instanceOfGetApplicationsDefaultResponse = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const ApiApplicationDTO_1 = require("./ApiApplicationDTO");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the GetApplicationsDefaultResponse interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfGetApplicationsDefaultResponse(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfGetApplicationsDefaultResponse = instanceOfGetApplicationsDefaultResponse;
|
|
27
|
+
function GetApplicationsDefaultResponseFromJSON(json) {
|
|
28
|
+
return GetApplicationsDefaultResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.GetApplicationsDefaultResponseFromJSON = GetApplicationsDefaultResponseFromJSON;
|
|
31
|
+
function GetApplicationsDefaultResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(ApiApplicationDTO_1.ApiApplicationDTOFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.GetApplicationsDefaultResponseFromJSONTyped = GetApplicationsDefaultResponseFromJSONTyped;
|
|
40
|
+
function GetApplicationsDefaultResponseToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'applications': value.applications === undefined ? undefined : (value.applications.map(ApiApplicationDTO_1.ApiApplicationDTOToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.GetApplicationsDefaultResponseToJSON = GetApplicationsDefaultResponseToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ export * from './CweId';
|
|
|
170
170
|
export * from './FormDataBodyPart';
|
|
171
171
|
export * from './FormDataContentDisposition';
|
|
172
172
|
export * from './FormDataMultiPart';
|
|
173
|
+
export * from './GetApplicationsDefaultResponse';
|
|
173
174
|
export * from './GroupingByDTO';
|
|
174
175
|
export * from './InnerSourceData';
|
|
175
176
|
export * from './LabelsByOwner';
|
package/dist/models/index.js
CHANGED
|
@@ -188,6 +188,7 @@ __exportStar(require("./CweId"), exports);
|
|
|
188
188
|
__exportStar(require("./FormDataBodyPart"), exports);
|
|
189
189
|
__exportStar(require("./FormDataContentDisposition"), exports);
|
|
190
190
|
__exportStar(require("./FormDataMultiPart"), exports);
|
|
191
|
+
__exportStar(require("./GetApplicationsDefaultResponse"), exports);
|
|
191
192
|
__exportStar(require("./GroupingByDTO"), exports);
|
|
192
193
|
__exportStar(require("./InnerSourceData"), exports);
|
|
193
194
|
__exportStar(require("./LabelsByOwner"), exports);
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
ApiPolicyViolationDiffDTO,
|
|
23
23
|
ApiReportPolicyDataDTOV2,
|
|
24
24
|
ApiReportRawDataDTOV2,
|
|
25
|
+
GetApplicationsDefaultResponse,
|
|
25
26
|
} from '../models/index';
|
|
26
27
|
import {
|
|
27
28
|
ApiApplicationDTOFromJSON,
|
|
@@ -38,6 +39,8 @@ import {
|
|
|
38
39
|
ApiReportPolicyDataDTOV2ToJSON,
|
|
39
40
|
ApiReportRawDataDTOV2FromJSON,
|
|
40
41
|
ApiReportRawDataDTOV2ToJSON,
|
|
42
|
+
GetApplicationsDefaultResponseFromJSON,
|
|
43
|
+
GetApplicationsDefaultResponseToJSON,
|
|
41
44
|
} from '../models/index';
|
|
42
45
|
|
|
43
46
|
export interface AddApplicationRequest {
|
|
@@ -174,11 +177,11 @@ export interface ApplicationsApiInterface {
|
|
|
174
177
|
* @throws {RequiredError}
|
|
175
178
|
* @memberof ApplicationsApiInterface
|
|
176
179
|
*/
|
|
177
|
-
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
180
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>>;
|
|
178
181
|
|
|
179
182
|
/**
|
|
180
183
|
*/
|
|
181
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
184
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse>;
|
|
182
185
|
|
|
183
186
|
/**
|
|
184
187
|
*
|
|
@@ -433,7 +436,7 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
433
436
|
|
|
434
437
|
/**
|
|
435
438
|
*/
|
|
436
|
-
async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
439
|
+
async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationsDefaultResponse>> {
|
|
437
440
|
const queryParameters: any = {};
|
|
438
441
|
|
|
439
442
|
if (requestParameters.publicId) {
|
|
@@ -456,12 +459,12 @@ export class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiI
|
|
|
456
459
|
query: queryParameters,
|
|
457
460
|
}, initOverrides);
|
|
458
461
|
|
|
459
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
462
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetApplicationsDefaultResponseFromJSON(jsonValue));
|
|
460
463
|
}
|
|
461
464
|
|
|
462
465
|
/**
|
|
463
466
|
*/
|
|
464
|
-
async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
467
|
+
async getApplications(requestParameters: GetApplicationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationsDefaultResponse> {
|
|
465
468
|
const response = await this.getApplicationsRaw(requestParameters, initOverrides);
|
|
466
469
|
return await response.value();
|
|
467
470
|
}
|
|
@@ -73,7 +73,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
73
73
|
* @type {number}
|
|
74
74
|
* @memberof ApiComponentDetailsDTOV2
|
|
75
75
|
*/
|
|
76
|
-
relativePopularity?: number;
|
|
76
|
+
relativePopularity?: number | null;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {ApiLicenseDataDTO}
|
|
@@ -91,7 +91,7 @@ export interface ApiComponentDetailsDTOV2 {
|
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof ApiComponentDetailsDTOV2
|
|
93
93
|
*/
|
|
94
|
-
hygieneRating?: string;
|
|
94
|
+
hygieneRating?: string | null;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {ApiSecurityDataDTO}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus IQ Server
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 156
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ApiApplicationDTO } from './ApiApplicationDTO';
|
|
17
|
+
import {
|
|
18
|
+
ApiApplicationDTOFromJSON,
|
|
19
|
+
ApiApplicationDTOFromJSONTyped,
|
|
20
|
+
ApiApplicationDTOToJSON,
|
|
21
|
+
} from './ApiApplicationDTO';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GetApplicationsDefaultResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface GetApplicationsDefaultResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ApiApplicationDTO>}
|
|
32
|
+
* @memberof GetApplicationsDefaultResponse
|
|
33
|
+
*/
|
|
34
|
+
applications?: Array<ApiApplicationDTO>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetApplicationsDefaultResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfGetApplicationsDefaultResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetApplicationsDefaultResponseFromJSON(json: any): GetApplicationsDefaultResponse {
|
|
47
|
+
return GetApplicationsDefaultResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetApplicationsDefaultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApplicationsDefaultResponse {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(ApiApplicationDTOFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetApplicationsDefaultResponseToJSON(value?: GetApplicationsDefaultResponse | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(ApiApplicationDTOToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -172,6 +172,7 @@ export * from './CweId';
|
|
|
172
172
|
export * from './FormDataBodyPart';
|
|
173
173
|
export * from './FormDataContentDisposition';
|
|
174
174
|
export * from './FormDataMultiPart';
|
|
175
|
+
export * from './GetApplicationsDefaultResponse';
|
|
175
176
|
export * from './GroupingByDTO';
|
|
176
177
|
export * from './InnerSourceData';
|
|
177
178
|
export * from './LabelsByOwner';
|