@sonatype/nexus-iq-api-client 0.156.1 → 0.156.3
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/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 +53 -14
- 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 +41 -2
- 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/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/esm/runtime.js +13 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +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/dist/runtime.js +13 -5
- package/package.json +1 -1
- package/src/apis/ApplicationCategoriesApi.ts +32 -2
- package/src/apis/ApplicationsApi.ts +49 -7
- 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/models/GetApplicationsDefaultResponse.ts +72 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +12 -6
|
@@ -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 { ApiLicenseLegalApplicationReportDTOFromJSON, ApiLicenseLegalComponentReportDTOFromJSON, AttributionReportTemplateDTOFromJSON, AttributionReportTemplateDTOToJSON, FormDataMultiPartToJSON, } from '../models';
|
|
24
|
+
import { ApiLicenseLegalApplicationReportDTOFromJSON, ApiLicenseLegalComponentReportDTOFromJSON, AttributionReportTemplateDTOFromJSON, AttributionReportTemplateDTOToJSON, FormDataMultiPartToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -35,6 +35,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
35
35
|
}
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
}
|
|
38
41
|
const response = yield this.request({
|
|
39
42
|
path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,6 +60,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
57
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
61
|
const queryParameters = {};
|
|
59
62
|
const headerParameters = {};
|
|
63
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
64
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
65
|
+
}
|
|
60
66
|
const response = yield this.request({
|
|
61
67
|
path: `/api/v2/licenseLegalMetadata/report-template`,
|
|
62
68
|
method: 'GET',
|
|
@@ -83,6 +89,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
83
89
|
}
|
|
84
90
|
const queryParameters = {};
|
|
85
91
|
const headerParameters = {};
|
|
92
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
93
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
94
|
+
}
|
|
86
95
|
const response = yield this.request({
|
|
87
96
|
path: `/api/v2/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
88
97
|
method: 'GET',
|
|
@@ -112,6 +121,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
112
121
|
}
|
|
113
122
|
const queryParameters = {};
|
|
114
123
|
const headerParameters = {};
|
|
124
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
125
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
126
|
+
}
|
|
115
127
|
const response = yield this.request({
|
|
116
128
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
117
129
|
method: 'GET',
|
|
@@ -143,6 +155,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
const queryParameters = {};
|
|
145
157
|
const headerParameters = {};
|
|
158
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
159
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
160
|
+
}
|
|
146
161
|
const response = yield this.request({
|
|
147
162
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
148
163
|
method: 'GET',
|
|
@@ -172,6 +187,9 @@ export class LicenseLegalMetadataApi 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/licenseLegalMetadata/application/{applicationId}/stage/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
177
195
|
method: 'GET',
|
|
@@ -216,6 +234,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
216
234
|
queryParameters['scanId'] = requestParameters.scanId;
|
|
217
235
|
}
|
|
218
236
|
const headerParameters = {};
|
|
237
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
238
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
239
|
+
}
|
|
219
240
|
const response = yield this.request({
|
|
220
241
|
path: `/api/v2/licenseLegalMetadata/{ownerType}/{ownerId}/component`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
221
242
|
method: 'GET',
|
|
@@ -246,6 +267,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
246
267
|
const queryParameters = {};
|
|
247
268
|
const headerParameters = {};
|
|
248
269
|
headerParameters['Content-Type'] = 'application/json';
|
|
270
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
271
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
272
|
+
}
|
|
249
273
|
const response = yield this.request({
|
|
250
274
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
251
275
|
method: 'POST',
|
|
@@ -284,6 +308,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
284
308
|
}
|
|
285
309
|
const queryParameters = {};
|
|
286
310
|
const headerParameters = {};
|
|
311
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
312
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
313
|
+
}
|
|
287
314
|
const response = yield this.request({
|
|
288
315
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report/templateId/{templateId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
|
|
289
316
|
method: 'POST',
|
|
@@ -315,6 +342,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
315
342
|
}
|
|
316
343
|
const queryParameters = {};
|
|
317
344
|
const headerParameters = {};
|
|
345
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
346
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
347
|
+
}
|
|
318
348
|
const response = yield this.request({
|
|
319
349
|
path: `/api/v2/licenseLegalMetadata/multiApplication/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
|
|
320
350
|
method: 'POST',
|
|
@@ -343,6 +373,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
343
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
344
374
|
const queryParameters = {};
|
|
345
375
|
const headerParameters = {};
|
|
376
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
377
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
378
|
+
}
|
|
346
379
|
const response = yield this.request({
|
|
347
380
|
path: `/api/v2/licenseLegalMetadata/multiApplication/report`,
|
|
348
381
|
method: 'POST',
|
|
@@ -374,6 +407,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
374
407
|
}
|
|
375
408
|
const queryParameters = {};
|
|
376
409
|
const headerParameters = {};
|
|
410
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
411
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
412
|
+
}
|
|
377
413
|
const response = yield this.request({
|
|
378
414
|
path: `/api/v2/licenseLegalMetadata/multiApplication/activeUserFilter/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
|
|
379
415
|
method: 'POST',
|
|
@@ -403,6 +439,9 @@ export class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
403
439
|
const queryParameters = {};
|
|
404
440
|
const headerParameters = {};
|
|
405
441
|
headerParameters['Content-Type'] = 'application/json';
|
|
442
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
443
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
444
|
+
}
|
|
406
445
|
const response = yield this.request({
|
|
407
446
|
path: `/api/v2/licenseLegalMetadata/report-template`,
|
|
408
447
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiOrganizationDTO, ApiOrganizationListDTO } from '../models';
|
|
13
|
+
import type { ApiOrganizationDTO, ApiOrganizationListDTO } from '../models/index';
|
|
14
14
|
export interface AddOrganizationRequest {
|
|
15
15
|
apiOrganizationDTO?: ApiOrganizationDTO;
|
|
16
16
|
}
|
|
@@ -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 { ApiOrganizationDTOFromJSON, ApiOrganizationDTOToJSON, ApiOrganizationListDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiOrganizationDTOFromJSON, ApiOrganizationDTOToJSON, ApiOrganizationListDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -33,6 +33,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
|
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
35
|
headerParameters['Content-Type'] = 'application/json';
|
|
36
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
37
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
38
|
+
}
|
|
36
39
|
const response = yield this.request({
|
|
37
40
|
path: `/api/v2/organizations`,
|
|
38
41
|
method: 'POST',
|
|
@@ -60,6 +63,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
|
|
|
60
63
|
}
|
|
61
64
|
const queryParameters = {};
|
|
62
65
|
const headerParameters = {};
|
|
66
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
67
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
68
|
+
}
|
|
63
69
|
const response = yield this.request({
|
|
64
70
|
path: `/api/v2/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
65
71
|
method: 'GET',
|
|
@@ -86,6 +92,9 @@ export class OrganizationsApi extends runtime.BaseAPI {
|
|
|
86
92
|
queryParameters['organizationName'] = requestParameters.organizationName;
|
|
87
93
|
}
|
|
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/organizations`,
|
|
91
100
|
method: 'GET',
|
|
@@ -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 { ApiPolicyListDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiPolicyListDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class PoliciesApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/policies`,
|
|
37
40
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationViolationListDTOV2, ApiComponentTransitivePolicyViolationsDTO, ApiCrossStageViolationDTOV2, ApiPolicyWaiversApplicableToViolationDTO, ComponentIdentifier } from '../models';
|
|
13
|
+
import type { ApiApplicationViolationListDTOV2, ApiComponentTransitivePolicyViolationsDTO, ApiCrossStageViolationDTOV2, ApiPolicyWaiversApplicableToViolationDTO, ComponentIdentifier } from '../models/index';
|
|
14
14
|
export interface GetApplicableWaiversRequest {
|
|
15
15
|
violationId: string;
|
|
16
16
|
}
|
|
@@ -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 { ApiApplicationViolationListDTOV2FromJSON, ApiComponentTransitivePolicyViolationsDTOFromJSON, ApiCrossStageViolationDTOV2FromJSON, ApiPolicyWaiversApplicableToViolationDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiApplicationViolationListDTOV2FromJSON, ApiComponentTransitivePolicyViolationsDTOFromJSON, ApiCrossStageViolationDTOV2FromJSON, ApiPolicyWaiversApplicableToViolationDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -35,6 +35,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
35
35
|
}
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
}
|
|
38
41
|
const response = yield this.request({
|
|
39
42
|
path: `/api/v2/policyViolations/{violationId}/applicableWaivers`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
|
|
40
43
|
method: 'GET',
|
|
@@ -61,6 +64,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
61
64
|
queryParameters['constituentId'] = requestParameters.constituentId;
|
|
62
65
|
}
|
|
63
66
|
const headerParameters = {};
|
|
67
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
68
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
69
|
+
}
|
|
64
70
|
const response = yield this.request({
|
|
65
71
|
path: `/api/v2/policyViolations/crossStage`,
|
|
66
72
|
method: 'GET',
|
|
@@ -87,6 +93,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
87
93
|
}
|
|
88
94
|
const queryParameters = {};
|
|
89
95
|
const headerParameters = {};
|
|
96
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
97
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
98
|
+
}
|
|
90
99
|
const response = yield this.request({
|
|
91
100
|
path: `/api/v2/policyViolations/crossStage/{violationId}`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
|
|
92
101
|
method: 'GET',
|
|
@@ -113,6 +122,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
113
122
|
queryParameters['p'] = requestParameters.p;
|
|
114
123
|
}
|
|
115
124
|
const headerParameters = {};
|
|
125
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
126
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
127
|
+
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/api/v2/policyViolations`,
|
|
118
130
|
method: 'GET',
|
|
@@ -154,6 +166,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
154
166
|
queryParameters['hash'] = requestParameters.hash;
|
|
155
167
|
}
|
|
156
168
|
const headerParameters = {};
|
|
169
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
170
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
171
|
+
}
|
|
157
172
|
const response = yield this.request({
|
|
158
173
|
path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
159
174
|
method: 'GET',
|
|
@@ -195,6 +210,9 @@ export class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
195
210
|
queryParameters['hash'] = requestParameters.hash;
|
|
196
211
|
}
|
|
197
212
|
const headerParameters = {};
|
|
213
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
214
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
215
|
+
}
|
|
198
216
|
const response = yield this.request({
|
|
199
217
|
path: `/api/v2/policyViolations/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
200
218
|
method: 'GET',
|
|
@@ -38,6 +38,9 @@ export class PolicyWaiverApi extends runtime.BaseAPI {
|
|
|
38
38
|
const queryParameters = {};
|
|
39
39
|
const headerParameters = {};
|
|
40
40
|
headerParameters['Content-Type'] = 'text/plain';
|
|
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/policyWaiver/{policyViolationId}/{ownerType}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))).replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
|
|
43
46
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models';
|
|
13
|
+
import type { ApiComponentPolicyWaiversDTO, ApiPolicyWaiverDTO, ApiWaiverOptionsDTO, ComponentIdentifier } from '../models/index';
|
|
14
14
|
export interface AddPolicyWaiverByPolicyViolationIdRequest {
|
|
15
15
|
ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
|
|
16
16
|
ownerId: string;
|
|
@@ -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 { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiWaiverOptionsDTOToJSON, } from '../models';
|
|
24
|
+
import { ApiComponentPolicyWaiversDTOFromJSON, ApiPolicyWaiverDTOFromJSON, ApiWaiverOptionsDTOToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -42,6 +42,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
const headerParameters = {};
|
|
44
44
|
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
46
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
47
|
+
}
|
|
45
48
|
const response = yield this.request({
|
|
46
49
|
path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyViolationId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))),
|
|
47
50
|
method: 'POST',
|
|
@@ -84,6 +87,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
84
87
|
}
|
|
85
88
|
const headerParameters = {};
|
|
86
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
92
|
+
}
|
|
87
93
|
const response = yield this.request({
|
|
88
94
|
path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
89
95
|
method: 'POST',
|
|
@@ -126,6 +132,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
126
132
|
}
|
|
127
133
|
const headerParameters = {};
|
|
128
134
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
136
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
137
|
+
}
|
|
129
138
|
const response = yield this.request({
|
|
130
139
|
path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/stages/{stageId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
131
140
|
method: 'POST',
|
|
@@ -158,6 +167,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
158
167
|
}
|
|
159
168
|
const queryParameters = {};
|
|
160
169
|
const headerParameters = {};
|
|
170
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
171
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
172
|
+
}
|
|
161
173
|
const response = yield this.request({
|
|
162
174
|
path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
|
|
163
175
|
method: 'DELETE',
|
|
@@ -189,6 +201,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
189
201
|
}
|
|
190
202
|
const queryParameters = {};
|
|
191
203
|
const headerParameters = {};
|
|
204
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
205
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
206
|
+
}
|
|
192
207
|
const response = yield this.request({
|
|
193
208
|
path: `/api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"policyWaiverId"}}`, encodeURIComponent(String(requestParameters.policyWaiverId))),
|
|
194
209
|
method: 'GET',
|
|
@@ -218,6 +233,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
218
233
|
}
|
|
219
234
|
const queryParameters = {};
|
|
220
235
|
const headerParameters = {};
|
|
236
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
237
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
238
|
+
}
|
|
221
239
|
const response = yield this.request({
|
|
222
240
|
path: `/api/v2/policyWaivers/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
223
241
|
method: 'GET',
|
|
@@ -259,6 +277,9 @@ export class PolicyWaiversApi extends runtime.BaseAPI {
|
|
|
259
277
|
queryParameters['hash'] = requestParameters.hash;
|
|
260
278
|
}
|
|
261
279
|
const headerParameters = {};
|
|
280
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
281
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
282
|
+
}
|
|
262
283
|
const response = yield this.request({
|
|
263
284
|
path: `/api/v2/policyWaivers/transitive/{ownerType}/{ownerId}/{scanId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
264
285
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationReportDTOV2, ApiComponentWaiversDTO, ApiComponentsInQuarantineDTO, ApiMetricsReportingQueryDTOV2, ApiReportHistoryDTO, ApiStaleWaiversResponseDTO } from '../models';
|
|
13
|
+
import type { ApiApplicationReportDTOV2, ApiComponentWaiversDTO, ApiComponentsInQuarantineDTO, ApiMetricsReportingQueryDTOV2, ApiReportHistoryDTO, ApiStaleWaiversResponseDTO } from '../models/index';
|
|
14
14
|
export interface GetByApplicationIdRequest {
|
|
15
15
|
applicationId: string;
|
|
16
16
|
}
|
|
@@ -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 { ApiApplicationReportDTOV2FromJSON, ApiComponentWaiversDTOFromJSON, ApiComponentsInQuarantineDTOFromJSON, ApiMetricsReportingQueryDTOV2ToJSON, ApiReportHistoryDTOFromJSON, ApiStaleWaiversResponseDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiApplicationReportDTOV2FromJSON, ApiComponentWaiversDTOFromJSON, ApiComponentsInQuarantineDTOFromJSON, ApiMetricsReportingQueryDTOV2ToJSON, ApiReportHistoryDTOFromJSON, ApiStaleWaiversResponseDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/reports/applications`,
|
|
37
40
|
method: 'GET',
|
|
@@ -58,6 +61,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
58
61
|
}
|
|
59
62
|
const queryParameters = {};
|
|
60
63
|
const headerParameters = {};
|
|
64
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
65
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
66
|
+
}
|
|
61
67
|
const response = yield this.request({
|
|
62
68
|
path: `/api/v2/reports/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
63
69
|
method: 'GET',
|
|
@@ -81,6 +87,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
81
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
88
|
const queryParameters = {};
|
|
83
89
|
const headerParameters = {};
|
|
90
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
92
|
+
}
|
|
84
93
|
const response = yield this.request({
|
|
85
94
|
path: `/api/v2/reports/components/quarantined`,
|
|
86
95
|
method: 'GET',
|
|
@@ -107,6 +116,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
107
116
|
queryParameters['format'] = requestParameters.format;
|
|
108
117
|
}
|
|
109
118
|
const headerParameters = {};
|
|
119
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
120
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
121
|
+
}
|
|
110
122
|
const response = yield this.request({
|
|
111
123
|
path: `/api/v2/reports/components/waivers`,
|
|
112
124
|
method: 'GET',
|
|
@@ -131,6 +143,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
131
143
|
const queryParameters = {};
|
|
132
144
|
const headerParameters = {};
|
|
133
145
|
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
147
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
148
|
+
}
|
|
134
149
|
const response = yield this.request({
|
|
135
150
|
path: `/api/v2/reports/metrics`,
|
|
136
151
|
method: 'POST',
|
|
@@ -157,6 +172,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
157
172
|
}
|
|
158
173
|
const queryParameters = {};
|
|
159
174
|
const headerParameters = {};
|
|
175
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
176
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
177
|
+
}
|
|
160
178
|
const response = yield this.request({
|
|
161
179
|
path: `/api/v2/reports/applications/{applicationId}/history`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
162
180
|
method: 'GET',
|
|
@@ -180,6 +198,9 @@ export class ReportsApi extends runtime.BaseAPI {
|
|
|
180
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
199
|
const queryParameters = {};
|
|
182
200
|
const headerParameters = {};
|
|
201
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
202
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
203
|
+
}
|
|
183
204
|
const response = yield this.request({
|
|
184
205
|
path: `/api/v2/reports/waivers/stale`,
|
|
185
206
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiComponentReleasedFromQuarantineDTO, ApiRepositoryPathResponseDTO } from '../models';
|
|
13
|
+
import type { ApiComponentReleasedFromQuarantineDTO, ApiRepositoryPathResponseDTO } from '../models/index';
|
|
14
14
|
export interface GetQuarantinedByPathRequest {
|
|
15
15
|
repositoryManagerInstanceId: string;
|
|
16
16
|
repositoryPublicId: string;
|
|
@@ -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 { ApiComponentReleasedFromQuarantineDTOFromJSON, ApiRepositoryPathResponseDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiComponentReleasedFromQuarantineDTOFromJSON, ApiRepositoryPathResponseDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -39,6 +39,9 @@ export class RepositoriesApi 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/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames`.replace(`{${"repositoryManagerInstanceId"}}`, encodeURIComponent(String(requestParameters.repositoryManagerInstanceId))).replace(`{${"repositoryPublicId"}}`, encodeURIComponent(String(requestParameters.repositoryPublicId))),
|
|
44
47
|
method: 'POST',
|
|
@@ -67,6 +70,9 @@ export class RepositoriesApi extends runtime.BaseAPI {
|
|
|
67
70
|
const queryParameters = {};
|
|
68
71
|
const headerParameters = {};
|
|
69
72
|
headerParameters['Content-Type'] = 'text/plain';
|
|
73
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
74
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
}
|
|
70
76
|
const response = yield this.request({
|
|
71
77
|
path: `/api/v2/repositories/quarantine/{quarantineId}/release`.replace(`{${"quarantineId"}}`, encodeURIComponent(String(requestParameters.quarantineId))),
|
|
72
78
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiRoleMemberMappingListDTO } from '../models';
|
|
13
|
+
import type { ApiRoleMemberMappingListDTO } from '../models/index';
|
|
14
14
|
export interface GetRoleMembershipsApplicationOrOrganizationRequest {
|
|
15
15
|
ownerType: GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -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 { ApiRoleMemberMappingListDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiRoleMemberMappingListDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -38,6 +38,9 @@ export class RoleMembershipsApi 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/roleMemberships/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
43
46
|
method: 'GET',
|
|
@@ -64,6 +67,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
64
67
|
}
|
|
65
68
|
const queryParameters = {};
|
|
66
69
|
const headerParameters = {};
|
|
70
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
71
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
72
|
+
}
|
|
67
73
|
const response = yield this.request({
|
|
68
74
|
path: `/api/v2/roleMemberships/{ownerType}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
|
|
69
75
|
method: 'GET',
|
|
@@ -102,6 +108,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
102
108
|
}
|
|
103
109
|
const queryParameters = {};
|
|
104
110
|
const headerParameters = {};
|
|
111
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
112
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
113
|
+
}
|
|
105
114
|
const response = yield this.request({
|
|
106
115
|
path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
|
|
107
116
|
method: 'PUT',
|
|
@@ -136,6 +145,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
136
145
|
}
|
|
137
146
|
const queryParameters = {};
|
|
138
147
|
const headerParameters = {};
|
|
148
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
149
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
150
|
+
}
|
|
139
151
|
const response = yield this.request({
|
|
140
152
|
path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
|
|
141
153
|
method: 'PUT',
|
|
@@ -173,6 +185,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
173
185
|
}
|
|
174
186
|
const queryParameters = {};
|
|
175
187
|
const headerParameters = {};
|
|
188
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
189
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
190
|
+
}
|
|
176
191
|
const response = yield this.request({
|
|
177
192
|
path: `/api/v2/roleMemberships/{ownerType}/{internalOwnerId}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
|
|
178
193
|
method: 'DELETE',
|
|
@@ -207,6 +222,9 @@ export class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
207
222
|
}
|
|
208
223
|
const queryParameters = {};
|
|
209
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
|
+
}
|
|
210
228
|
const response = yield this.request({
|
|
211
229
|
path: `/api/v2/roleMemberships/{ownerType}/role/{roleId}/{memberType}/{memberName}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"memberType"}}`, encodeURIComponent(String(requestParameters.memberType))).replace(`{${"memberName"}}`, encodeURIComponent(String(requestParameters.memberName))),
|
|
212
230
|
method: 'DELETE',
|