@sonatype/nexus-iq-api-client 0.156.0 → 0.156.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.
- package/.openapi-generator/VERSION +1 -1
- package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +5 -5
- package/dist/apis/ApplicationsApi.js +55 -15
- package/dist/apis/ClaimApi.d.ts +1 -1
- package/dist/apis/ClaimApi.js +17 -5
- package/dist/apis/ComponentsApi.d.ts +1 -1
- package/dist/apis/ComponentsApi.js +21 -6
- package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlApi.js +5 -2
- package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
- package/dist/apis/ConfigApi.js +15 -0
- package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
- package/dist/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/apis/ConfigCrowdApi.js +17 -5
- package/dist/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/apis/ConfigJIRAApi.js +11 -2
- package/dist/apis/ConfigMailApi.d.ts +1 -1
- package/dist/apis/ConfigMailApi.js +16 -4
- package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/apis/ConfigProxyServerApi.js +12 -3
- package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
- package/dist/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/apis/ConfigSAMLApi.js +11 -2
- package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/apis/ConfigSourceControlApi.js +11 -2
- package/dist/apis/CycloneDxApi.js +12 -0
- package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/apis/DataRetentionPoliciesApi.js +9 -3
- package/dist/apis/EndpointsApi.js +3 -0
- package/dist/apis/EvaluationApi.d.ts +1 -1
- package/dist/apis/EvaluationApi.js +29 -11
- package/dist/apis/FirewallApi.d.ts +1 -1
- package/dist/apis/FirewallApi.js +30 -6
- package/dist/apis/LabelsApi.d.ts +1 -1
- package/dist/apis/LabelsApi.js +26 -8
- package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/apis/LicenseLegalMetadataApi.js +48 -9
- package/dist/apis/OrganizationsApi.d.ts +1 -1
- package/dist/apis/OrganizationsApi.js +14 -5
- package/dist/apis/PoliciesApi.d.ts +1 -1
- package/dist/apis/PoliciesApi.js +5 -2
- package/dist/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/apis/PolicyViolationsApi.js +25 -7
- package/dist/apis/PolicyWaiverApi.js +3 -0
- package/dist/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/apis/PolicyWaiversApi.js +28 -7
- package/dist/apis/ReportsApi.d.ts +1 -1
- package/dist/apis/ReportsApi.js +29 -8
- package/dist/apis/RepositoriesApi.d.ts +1 -1
- package/dist/apis/RepositoriesApi.js +9 -3
- package/dist/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/apis/RoleMembershipsApi.js +21 -3
- package/dist/apis/RolesApi.d.ts +1 -1
- package/dist/apis/RolesApi.js +5 -2
- package/dist/apis/ScanApi.d.ts +1 -1
- package/dist/apis/ScanApi.js +8 -2
- package/dist/apis/SearchApi.d.ts +1 -1
- package/dist/apis/SearchApi.js +15 -3
- package/dist/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/apis/SecurityOverridesApi.js +5 -2
- package/dist/apis/SourceControlApi.d.ts +1 -1
- package/dist/apis/SourceControlApi.js +22 -7
- package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/apis/SourceControlMetricsApi.js +5 -2
- package/dist/apis/TelemetryApi.js +3 -0
- package/dist/apis/UserTokensApi.d.ts +1 -1
- package/dist/apis/UserTokensApi.js +26 -5
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +21 -6
- package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/apis/VulnerabilitiesApi.js +5 -2
- package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
- package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
- package/dist/esm/apis/ApplicationsApi.js +43 -3
- package/dist/esm/apis/ClaimApi.d.ts +1 -1
- package/dist/esm/apis/ClaimApi.js +13 -1
- package/dist/esm/apis/ComponentsApi.d.ts +1 -1
- package/dist/esm/apis/ComponentsApi.js +16 -1
- package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
- package/dist/esm/apis/ConfigApi.js +15 -0
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
- package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/esm/apis/ConfigCrowdApi.js +13 -1
- package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/esm/apis/ConfigJIRAApi.js +10 -1
- package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
- package/dist/esm/apis/ConfigMailApi.js +13 -1
- package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
- package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSAMLApi.js +10 -1
- package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
- package/dist/esm/apis/CycloneDxApi.js +12 -0
- package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
- package/dist/esm/apis/EndpointsApi.js +3 -0
- package/dist/esm/apis/EvaluationApi.d.ts +1 -1
- package/dist/esm/apis/EvaluationApi.js +19 -1
- package/dist/esm/apis/FirewallApi.d.ts +1 -1
- package/dist/esm/apis/FirewallApi.js +25 -1
- package/dist/esm/apis/LabelsApi.d.ts +1 -1
- package/dist/esm/apis/LabelsApi.js +19 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
- package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
- package/dist/esm/apis/OrganizationsApi.js +10 -1
- package/dist/esm/apis/PoliciesApi.d.ts +1 -1
- package/dist/esm/apis/PoliciesApi.js +4 -1
- package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/esm/apis/PolicyViolationsApi.js +19 -1
- package/dist/esm/apis/PolicyWaiverApi.js +3 -0
- package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/esm/apis/PolicyWaiversApi.js +22 -1
- package/dist/esm/apis/ReportsApi.d.ts +1 -1
- package/dist/esm/apis/ReportsApi.js +22 -1
- package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
- package/dist/esm/apis/RepositoriesApi.js +7 -1
- package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/esm/apis/RoleMembershipsApi.js +19 -1
- package/dist/esm/apis/RolesApi.d.ts +1 -1
- package/dist/esm/apis/RolesApi.js +4 -1
- package/dist/esm/apis/ScanApi.d.ts +1 -1
- package/dist/esm/apis/ScanApi.js +7 -1
- package/dist/esm/apis/SearchApi.d.ts +1 -1
- package/dist/esm/apis/SearchApi.js +13 -1
- package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/esm/apis/SecurityOverridesApi.js +4 -1
- package/dist/esm/apis/SourceControlApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlApi.js +16 -1
- package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
- package/dist/esm/apis/TelemetryApi.js +3 -0
- package/dist/esm/apis/UserTokensApi.d.ts +1 -1
- package/dist/esm/apis/UserTokensApi.js +22 -1
- package/dist/esm/apis/UsersApi.d.ts +1 -1
- package/dist/esm/apis/UsersApi.js +16 -1
- package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/runtime.js +13 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/runtime.js +13 -5
- package/package.json +1 -1
- package/src/apis/ApplicationCategoriesApi.ts +32 -2
- package/src/apis/ApplicationsApi.ts +48 -8
- package/src/apis/ClaimApi.ts +14 -2
- package/src/apis/ComponentsApi.ts +17 -2
- package/src/apis/CompositeSourceControlApi.ts +5 -2
- package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
- package/src/apis/ConfigApi.ts +15 -0
- package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
- package/src/apis/ConfigCrowdApi.ts +14 -2
- package/src/apis/ConfigJIRAApi.ts +11 -2
- package/src/apis/ConfigMailApi.ts +14 -2
- package/src/apis/ConfigProxyServerApi.ts +11 -2
- package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
- package/src/apis/ConfigSAMLApi.ts +11 -2
- package/src/apis/ConfigSourceControlApi.ts +11 -2
- package/src/apis/CycloneDxApi.ts +12 -0
- package/src/apis/DataRetentionPoliciesApi.ts +8 -2
- package/src/apis/EndpointsApi.ts +3 -0
- package/src/apis/EvaluationApi.ts +20 -2
- package/src/apis/FirewallApi.ts +26 -2
- package/src/apis/LabelsApi.ts +20 -2
- package/src/apis/LicenseLegalMetadataApi.ts +41 -2
- package/src/apis/OrganizationsApi.ts +11 -2
- package/src/apis/PoliciesApi.ts +5 -2
- package/src/apis/PolicyViolationsApi.ts +20 -2
- package/src/apis/PolicyWaiverApi.ts +3 -0
- package/src/apis/PolicyWaiversApi.ts +23 -2
- package/src/apis/ReportsApi.ts +23 -2
- package/src/apis/RepositoriesApi.ts +8 -2
- package/src/apis/RoleMembershipsApi.ts +20 -2
- package/src/apis/RolesApi.ts +5 -2
- package/src/apis/ScanApi.ts +8 -2
- package/src/apis/SearchApi.ts +14 -2
- package/src/apis/SecurityOverridesApi.ts +5 -2
- package/src/apis/SourceControlApi.ts +17 -2
- package/src/apis/SourceControlMetricsApi.ts +5 -2
- package/src/apis/TelemetryApi.ts +3 -0
- package/src/apis/UserTokensApi.ts +23 -2
- package/src/apis/UsersApi.ts +17 -2
- package/src/apis/VulnerabilitiesApi.ts +5 -2
- package/src/index.ts +2 -2
- package/src/runtime.ts +12 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7.0.0-SNAPSHOT
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationCategoryDTO, ApplicableTagsDTO, AppliedTagsDTO, PolicyTag } from '../models';
|
|
13
|
+
import type { ApiApplicationCategoryDTO, ApplicableTagsDTO, AppliedTagsDTO, PolicyTag } from '../models/index';
|
|
14
14
|
export interface AddTagRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
apiApplicationCategoryDTO?: ApiApplicationCategoryDTO;
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ApplicationCategoriesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -39,14 +39,17 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
43
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
44
|
+
}
|
|
42
45
|
const response = yield this.request({
|
|
43
46
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
44
47
|
method: 'POST',
|
|
45
48
|
headers: headerParameters,
|
|
46
49
|
query: queryParameters,
|
|
47
|
-
body: (0,
|
|
50
|
+
body: (0, index_1.ApiApplicationCategoryDTOToJSON)(requestParameters.apiApplicationCategoryDTO),
|
|
48
51
|
}, initOverrides);
|
|
49
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationCategoryDTOFromJSON)(jsonValue));
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
55
|
/**
|
|
@@ -69,6 +72,9 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
69
72
|
}
|
|
70
73
|
const queryParameters = {};
|
|
71
74
|
const headerParameters = {};
|
|
75
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
77
|
+
}
|
|
72
78
|
const response = yield this.request({
|
|
73
79
|
path: `/api/v2/applicationCategories/organization/{organizationId}/{tagId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tagId"}}`, encodeURIComponent(String(requestParameters.tagId))),
|
|
74
80
|
method: 'DELETE',
|
|
@@ -94,13 +100,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
94
100
|
}
|
|
95
101
|
const queryParameters = {};
|
|
96
102
|
const headerParameters = {};
|
|
103
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
104
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
105
|
+
}
|
|
97
106
|
const response = yield this.request({
|
|
98
107
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applicable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
99
108
|
method: 'GET',
|
|
100
109
|
headers: headerParameters,
|
|
101
110
|
query: queryParameters,
|
|
102
111
|
}, initOverrides);
|
|
103
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
112
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableTagsDTOFromJSON)(jsonValue));
|
|
104
113
|
});
|
|
105
114
|
}
|
|
106
115
|
/**
|
|
@@ -120,13 +129,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
120
129
|
}
|
|
121
130
|
const queryParameters = {};
|
|
122
131
|
const headerParameters = {};
|
|
132
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
133
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
134
|
+
}
|
|
123
135
|
const response = yield this.request({
|
|
124
136
|
path: `/api/v2/applicationCategories/application/{applicationPublicId}/applicable`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
125
137
|
method: 'GET',
|
|
126
138
|
headers: headerParameters,
|
|
127
139
|
query: queryParameters,
|
|
128
140
|
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationCategoryDTOFromJSON));
|
|
130
142
|
});
|
|
131
143
|
}
|
|
132
144
|
/**
|
|
@@ -146,13 +158,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
146
158
|
}
|
|
147
159
|
const queryParameters = {};
|
|
148
160
|
const headerParameters = {};
|
|
161
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
162
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
163
|
+
}
|
|
149
164
|
const response = yield this.request({
|
|
150
165
|
path: `/api/v2/applicationCategories/application/{applicationPublicId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
151
166
|
method: 'GET',
|
|
152
167
|
headers: headerParameters,
|
|
153
168
|
query: queryParameters,
|
|
154
169
|
}, initOverrides);
|
|
155
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableTagsDTOFromJSON)(jsonValue));
|
|
156
171
|
});
|
|
157
172
|
}
|
|
158
173
|
/**
|
|
@@ -172,13 +187,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
172
187
|
}
|
|
173
188
|
const queryParameters = {};
|
|
174
189
|
const headerParameters = {};
|
|
190
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
191
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
192
|
+
}
|
|
175
193
|
const response = yield this.request({
|
|
176
194
|
path: `/api/v2/applicationCategories/organization/{organizationId}/policy`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
177
195
|
method: 'GET',
|
|
178
196
|
headers: headerParameters,
|
|
179
197
|
query: queryParameters,
|
|
180
198
|
}, initOverrides);
|
|
181
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.PolicyTagFromJSON));
|
|
182
200
|
});
|
|
183
201
|
}
|
|
184
202
|
/**
|
|
@@ -198,13 +216,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
198
216
|
}
|
|
199
217
|
const queryParameters = {};
|
|
200
218
|
const headerParameters = {};
|
|
219
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
220
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
}
|
|
201
222
|
const response = yield this.request({
|
|
202
223
|
path: `/api/v2/applicationCategories/organization/{organizationId}/applied`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
203
224
|
method: 'GET',
|
|
204
225
|
headers: headerParameters,
|
|
205
226
|
query: queryParameters,
|
|
206
227
|
}, initOverrides);
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
228
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppliedTagsDTOFromJSON)(jsonValue));
|
|
208
229
|
});
|
|
209
230
|
}
|
|
210
231
|
/**
|
|
@@ -224,13 +245,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
224
245
|
}
|
|
225
246
|
const queryParameters = {};
|
|
226
247
|
const headerParameters = {};
|
|
248
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
249
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
250
|
+
}
|
|
227
251
|
const response = yield this.request({
|
|
228
252
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
229
253
|
method: 'GET',
|
|
230
254
|
headers: headerParameters,
|
|
231
255
|
query: queryParameters,
|
|
232
256
|
}, initOverrides);
|
|
233
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
257
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationCategoryDTOFromJSON));
|
|
234
258
|
});
|
|
235
259
|
}
|
|
236
260
|
/**
|
|
@@ -247,13 +271,16 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
247
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
248
272
|
const queryParameters = {};
|
|
249
273
|
const headerParameters = {};
|
|
274
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
275
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
276
|
+
}
|
|
250
277
|
const response = yield this.request({
|
|
251
278
|
path: `/api/v2/applicationCategories/application`,
|
|
252
279
|
method: 'GET',
|
|
253
280
|
headers: headerParameters,
|
|
254
281
|
query: queryParameters,
|
|
255
282
|
}, initOverrides);
|
|
256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationCategoryDTOFromJSON));
|
|
257
284
|
});
|
|
258
285
|
}
|
|
259
286
|
/**
|
|
@@ -274,14 +301,17 @@ class ApplicationCategoriesApi extends runtime.BaseAPI {
|
|
|
274
301
|
const queryParameters = {};
|
|
275
302
|
const headerParameters = {};
|
|
276
303
|
headerParameters['Content-Type'] = 'application/json';
|
|
304
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
305
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
306
|
+
}
|
|
277
307
|
const response = yield this.request({
|
|
278
308
|
path: `/api/v2/applicationCategories/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
279
309
|
method: 'PUT',
|
|
280
310
|
headers: headerParameters,
|
|
281
311
|
query: queryParameters,
|
|
282
|
-
body: (0,
|
|
312
|
+
body: (0, index_1.ApiApplicationCategoryDTOToJSON)(requestParameters.apiApplicationCategoryDTO),
|
|
283
313
|
}, initOverrides);
|
|
284
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationCategoryDTOFromJSON)(jsonValue));
|
|
285
315
|
});
|
|
286
316
|
}
|
|
287
317
|
/**
|
|
@@ -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';
|
|
13
|
+
import type { ApiApplicationDTO, ApiApplicationListDTO, ApiDependencyTreeResponseDTO, ApiMoveApplicationResponseDTOV2, ApiPolicyViolationDiffDTO, ApiReportPolicyDataDTOV2, ApiReportRawDataDTOV2 } 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<Array<ApiApplicationDTO>>>;
|
|
128
128
|
/**
|
|
129
129
|
*/
|
|
130
|
-
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
130
|
+
getApplications(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
|
|
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<Array<ApiApplicationDTO>>>;
|
|
261
261
|
/**
|
|
262
262
|
*/
|
|
263
|
-
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
263
|
+
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiApplicationDTO>>;
|
|
264
264
|
/**
|
|
265
265
|
*/
|
|
266
266
|
getApplicationsByOrganizationIdRaw(requestParameters: GetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiApplicationListDTO>>;
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ApplicationsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -36,14 +36,17 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
40
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
41
|
+
}
|
|
39
42
|
const response = yield this.request({
|
|
40
43
|
path: `/api/v2/applications`,
|
|
41
44
|
method: 'POST',
|
|
42
45
|
headers: headerParameters,
|
|
43
46
|
query: queryParameters,
|
|
44
|
-
body: (0,
|
|
47
|
+
body: (0, index_1.ApiApplicationDTOToJSON)(requestParameters.apiApplicationDTO),
|
|
45
48
|
}, initOverrides);
|
|
46
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
49
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationDTOFromJSON)(jsonValue));
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
52
|
/**
|
|
@@ -69,13 +72,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
69
72
|
queryParameters['clonedApplicationPublicId'] = requestParameters.clonedApplicationPublicId;
|
|
70
73
|
}
|
|
71
74
|
const headerParameters = {};
|
|
75
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
77
|
+
}
|
|
72
78
|
const response = yield this.request({
|
|
73
79
|
path: `/api/v2/applications/{sourceApplicationId}/clone`.replace(`{${"sourceApplicationId"}}`, encodeURIComponent(String(requestParameters.sourceApplicationId))),
|
|
74
80
|
method: 'POST',
|
|
75
81
|
headers: headerParameters,
|
|
76
82
|
query: queryParameters,
|
|
77
83
|
}, initOverrides);
|
|
78
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationDTOFromJSON)(jsonValue));
|
|
79
85
|
});
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
@@ -95,6 +101,9 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
95
101
|
}
|
|
96
102
|
const queryParameters = {};
|
|
97
103
|
const headerParameters = {};
|
|
104
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
105
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
106
|
+
}
|
|
98
107
|
const response = yield this.request({
|
|
99
108
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
100
109
|
method: 'DELETE',
|
|
@@ -120,13 +129,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
120
129
|
}
|
|
121
130
|
const queryParameters = {};
|
|
122
131
|
const headerParameters = {};
|
|
132
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
133
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
134
|
+
}
|
|
123
135
|
const response = yield this.request({
|
|
124
136
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
125
137
|
method: 'GET',
|
|
126
138
|
headers: headerParameters,
|
|
127
139
|
query: queryParameters,
|
|
128
140
|
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationDTOFromJSON)(jsonValue));
|
|
130
142
|
});
|
|
131
143
|
}
|
|
132
144
|
/**
|
|
@@ -149,20 +161,24 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
149
161
|
queryParameters['includeCategories'] = requestParameters.includeCategories;
|
|
150
162
|
}
|
|
151
163
|
const headerParameters = {};
|
|
164
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
165
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
166
|
+
}
|
|
152
167
|
const response = yield this.request({
|
|
153
168
|
path: `/api/v2/applications`,
|
|
154
169
|
method: 'GET',
|
|
155
170
|
headers: headerParameters,
|
|
156
171
|
query: queryParameters,
|
|
157
172
|
}, initOverrides);
|
|
158
|
-
return new runtime.
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationDTOFromJSON));
|
|
159
174
|
});
|
|
160
175
|
}
|
|
161
176
|
/**
|
|
162
177
|
*/
|
|
163
178
|
getApplications(requestParameters = {}, initOverrides) {
|
|
164
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
yield this.getApplicationsRaw(requestParameters, initOverrides);
|
|
180
|
+
const response = yield this.getApplicationsRaw(requestParameters, initOverrides);
|
|
181
|
+
return yield response.value();
|
|
166
182
|
});
|
|
167
183
|
}
|
|
168
184
|
/**
|
|
@@ -174,13 +190,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
174
190
|
}
|
|
175
191
|
const queryParameters = {};
|
|
176
192
|
const headerParameters = {};
|
|
193
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
194
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
195
|
+
}
|
|
177
196
|
const response = yield this.request({
|
|
178
197
|
path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
179
198
|
method: 'GET',
|
|
180
199
|
headers: headerParameters,
|
|
181
200
|
query: queryParameters,
|
|
182
201
|
}, initOverrides);
|
|
183
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationListDTOFromJSON)(jsonValue));
|
|
184
203
|
});
|
|
185
204
|
}
|
|
186
205
|
/**
|
|
@@ -203,6 +222,9 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
203
222
|
}
|
|
204
223
|
const queryParameters = {};
|
|
205
224
|
const headerParameters = {};
|
|
225
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
226
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
227
|
+
}
|
|
206
228
|
const response = yield this.request({
|
|
207
229
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
208
230
|
method: 'GET',
|
|
@@ -231,13 +253,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
231
253
|
}
|
|
232
254
|
const queryParameters = {};
|
|
233
255
|
const headerParameters = {};
|
|
256
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
257
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
258
|
+
}
|
|
234
259
|
const response = yield this.request({
|
|
235
260
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
236
261
|
method: 'GET',
|
|
237
262
|
headers: headerParameters,
|
|
238
263
|
query: queryParameters,
|
|
239
264
|
}, initOverrides);
|
|
240
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
265
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiDependencyTreeResponseDTOFromJSON)(jsonValue));
|
|
241
266
|
});
|
|
242
267
|
}
|
|
243
268
|
/**
|
|
@@ -269,13 +294,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
269
294
|
queryParameters['toPolicyEvaluationId'] = requestParameters.toPolicyEvaluationId;
|
|
270
295
|
}
|
|
271
296
|
const headerParameters = {};
|
|
297
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
298
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
299
|
+
}
|
|
272
300
|
const response = yield this.request({
|
|
273
301
|
path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
274
302
|
method: 'GET',
|
|
275
303
|
headers: headerParameters,
|
|
276
304
|
query: queryParameters,
|
|
277
305
|
}, initOverrides);
|
|
278
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPolicyViolationDiffDTOFromJSON)(jsonValue));
|
|
279
307
|
});
|
|
280
308
|
}
|
|
281
309
|
/**
|
|
@@ -298,13 +326,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
298
326
|
}
|
|
299
327
|
const queryParameters = {};
|
|
300
328
|
const headerParameters = {};
|
|
329
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
330
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
331
|
+
}
|
|
301
332
|
const response = yield this.request({
|
|
302
333
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
303
334
|
method: 'GET',
|
|
304
335
|
headers: headerParameters,
|
|
305
336
|
query: queryParameters,
|
|
306
337
|
}, initOverrides);
|
|
307
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiReportPolicyDataDTOV2FromJSON)(jsonValue));
|
|
308
339
|
});
|
|
309
340
|
}
|
|
310
341
|
/**
|
|
@@ -327,13 +358,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
327
358
|
}
|
|
328
359
|
const queryParameters = {};
|
|
329
360
|
const headerParameters = {};
|
|
361
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
362
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
363
|
+
}
|
|
330
364
|
const response = yield this.request({
|
|
331
365
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
332
366
|
method: 'GET',
|
|
333
367
|
headers: headerParameters,
|
|
334
368
|
query: queryParameters,
|
|
335
369
|
}, initOverrides);
|
|
336
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
370
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiReportRawDataDTOV2FromJSON)(jsonValue));
|
|
337
371
|
});
|
|
338
372
|
}
|
|
339
373
|
/**
|
|
@@ -356,13 +390,16 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
356
390
|
}
|
|
357
391
|
const queryParameters = {};
|
|
358
392
|
const headerParameters = {};
|
|
393
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
394
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
395
|
+
}
|
|
359
396
|
const response = yield this.request({
|
|
360
397
|
path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
361
398
|
method: 'POST',
|
|
362
399
|
headers: headerParameters,
|
|
363
400
|
query: queryParameters,
|
|
364
401
|
}, initOverrides);
|
|
365
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
402
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiMoveApplicationResponseDTOV2FromJSON)(jsonValue));
|
|
366
403
|
});
|
|
367
404
|
}
|
|
368
405
|
/**
|
|
@@ -383,14 +420,17 @@ class ApplicationsApi extends runtime.BaseAPI {
|
|
|
383
420
|
const queryParameters = {};
|
|
384
421
|
const headerParameters = {};
|
|
385
422
|
headerParameters['Content-Type'] = 'application/json';
|
|
423
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
424
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
425
|
+
}
|
|
386
426
|
const response = yield this.request({
|
|
387
427
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
388
428
|
method: 'PUT',
|
|
389
429
|
headers: headerParameters,
|
|
390
430
|
query: queryParameters,
|
|
391
|
-
body: (0,
|
|
431
|
+
body: (0, index_1.ApiApplicationDTOToJSON)(requestParameters.apiApplicationDTO),
|
|
392
432
|
}, initOverrides);
|
|
393
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
433
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationDTOFromJSON)(jsonValue));
|
|
394
434
|
});
|
|
395
435
|
}
|
|
396
436
|
/**
|
package/dist/apis/ClaimApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models';
|
|
13
|
+
import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models/index';
|
|
14
14
|
export interface DeleteRequest {
|
|
15
15
|
hash: string;
|
|
16
16
|
}
|
package/dist/apis/ClaimApi.js
CHANGED
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ClaimApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -38,6 +38,9 @@ class ClaimApi extends runtime.BaseAPI {
|
|
|
38
38
|
}
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
42
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
43
|
+
}
|
|
41
44
|
const response = yield this.request({
|
|
42
45
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
43
46
|
method: 'DELETE',
|
|
@@ -63,13 +66,16 @@ class ClaimApi extends runtime.BaseAPI {
|
|
|
63
66
|
}
|
|
64
67
|
const queryParameters = {};
|
|
65
68
|
const headerParameters = {};
|
|
69
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
70
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
71
|
+
}
|
|
66
72
|
const response = yield this.request({
|
|
67
73
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
68
74
|
method: 'GET',
|
|
69
75
|
headers: headerParameters,
|
|
70
76
|
query: queryParameters,
|
|
71
77
|
}, initOverrides);
|
|
72
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHashComponentIdentifierDTOFromJSON)(jsonValue));
|
|
73
79
|
});
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
@@ -86,13 +92,16 @@ class ClaimApi extends runtime.BaseAPI {
|
|
|
86
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
93
|
const queryParameters = {};
|
|
88
94
|
const headerParameters = {};
|
|
95
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
96
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
97
|
+
}
|
|
89
98
|
const response = yield this.request({
|
|
90
99
|
path: `/api/v2/claim/components`,
|
|
91
100
|
method: 'GET',
|
|
92
101
|
headers: headerParameters,
|
|
93
102
|
query: queryParameters,
|
|
94
103
|
}, initOverrides);
|
|
95
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHashComponentIdentifiersDTOFromJSON)(jsonValue));
|
|
96
105
|
});
|
|
97
106
|
}
|
|
98
107
|
/**
|
|
@@ -110,14 +119,17 @@ class ClaimApi extends runtime.BaseAPI {
|
|
|
110
119
|
const queryParameters = {};
|
|
111
120
|
const headerParameters = {};
|
|
112
121
|
headerParameters['Content-Type'] = 'application/json';
|
|
122
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
123
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
124
|
+
}
|
|
113
125
|
const response = yield this.request({
|
|
114
126
|
path: `/api/v2/claim/components`,
|
|
115
127
|
method: 'POST',
|
|
116
128
|
headers: headerParameters,
|
|
117
129
|
query: queryParameters,
|
|
118
|
-
body: (0,
|
|
130
|
+
body: (0, index_1.ApiHashComponentIdentifierDTOToJSON)(requestParameters.apiHashComponentIdentifierDTO),
|
|
119
131
|
}, initOverrides);
|
|
120
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHashComponentIdentifierDTOFromJSON)(jsonValue));
|
|
121
133
|
});
|
|
122
134
|
}
|
|
123
135
|
/**
|
|
@@ -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, ApiComponentRemediationDTO } from '../models';
|
|
13
|
+
import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationDTO } from '../models/index';
|
|
14
14
|
export interface DeleteComponentLabelRequest {
|
|
15
15
|
ownerType: DeleteComponentLabelOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|