@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
package/dist/apis/LabelsApi.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.UpdateLabelOwnerTypeEnum = exports.GetLabelsOwnerTypeEnum = exports.GetApplicableLabelsOwnerTypeEnum = exports.GetApplicableContextsOwnerTypeEnum = exports.DeleteLabelOwnerTypeEnum = exports.AddLabelOwnerTypeEnum = exports.LabelsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -42,14 +42,17 @@ class LabelsApi 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/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
47
50
|
method: 'POST',
|
|
48
51
|
headers: headerParameters,
|
|
49
52
|
query: queryParameters,
|
|
50
|
-
body: (0,
|
|
53
|
+
body: (0, index_1.ApiLabelDTOToJSON)(requestParameters.apiLabelDTO),
|
|
51
54
|
}, initOverrides);
|
|
52
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLabelDTOFromJSON)(jsonValue));
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
@@ -75,6 +78,9 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
75
78
|
}
|
|
76
79
|
const queryParameters = {};
|
|
77
80
|
const headerParameters = {};
|
|
81
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
82
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
83
|
+
}
|
|
78
84
|
const response = yield this.request({
|
|
79
85
|
path: `/api/v2/labels/{ownerType}/{ownerId}/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
|
|
80
86
|
method: 'DELETE',
|
|
@@ -106,13 +112,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
106
112
|
}
|
|
107
113
|
const queryParameters = {};
|
|
108
114
|
const headerParameters = {};
|
|
115
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
116
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
117
|
+
}
|
|
109
118
|
const response = yield this.request({
|
|
110
119
|
path: `/api/v2/labels/{ownerType}/{ownerId}/applicable/context/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
|
|
111
120
|
method: 'GET',
|
|
112
121
|
headers: headerParameters,
|
|
113
122
|
query: queryParameters,
|
|
114
123
|
}, initOverrides);
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableContextFromJSON)(jsonValue));
|
|
116
125
|
});
|
|
117
126
|
}
|
|
118
127
|
/**
|
|
@@ -135,13 +144,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
135
144
|
}
|
|
136
145
|
const queryParameters = {};
|
|
137
146
|
const headerParameters = {};
|
|
147
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
148
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
149
|
+
}
|
|
138
150
|
const response = yield this.request({
|
|
139
151
|
path: `/api/v2/labels/{ownerType}/{ownerId}/applicable`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
140
152
|
method: 'GET',
|
|
141
153
|
headers: headerParameters,
|
|
142
154
|
query: queryParameters,
|
|
143
155
|
}, initOverrides);
|
|
144
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableLabelsFromJSON)(jsonValue));
|
|
145
157
|
});
|
|
146
158
|
}
|
|
147
159
|
/**
|
|
@@ -167,13 +179,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
167
179
|
queryParameters['inherit'] = requestParameters.inherit;
|
|
168
180
|
}
|
|
169
181
|
const headerParameters = {};
|
|
182
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
183
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
184
|
+
}
|
|
170
185
|
const response = yield this.request({
|
|
171
186
|
path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
172
187
|
method: 'GET',
|
|
173
188
|
headers: headerParameters,
|
|
174
189
|
query: queryParameters,
|
|
175
190
|
}, initOverrides);
|
|
176
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
191
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiLabelDTOFromJSON));
|
|
177
192
|
});
|
|
178
193
|
}
|
|
179
194
|
/**
|
|
@@ -197,14 +212,17 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
197
212
|
const queryParameters = {};
|
|
198
213
|
const headerParameters = {};
|
|
199
214
|
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
216
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
217
|
+
}
|
|
200
218
|
const response = yield this.request({
|
|
201
219
|
path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
202
220
|
method: 'PUT',
|
|
203
221
|
headers: headerParameters,
|
|
204
222
|
query: queryParameters,
|
|
205
|
-
body: (0,
|
|
223
|
+
body: (0, index_1.ApiLabelDTOToJSON)(requestParameters.apiLabelDTO),
|
|
206
224
|
}, initOverrides);
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLabelDTOFromJSON)(jsonValue));
|
|
208
226
|
});
|
|
209
227
|
}
|
|
210
228
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models';
|
|
13
|
+
import type { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models/index';
|
|
14
14
|
export interface DeleteAttributionReportTemplateRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -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.GetLicenseLegalComponentReportOwnerTypeEnum = exports.LicenseLegalMetadataApi = 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 LicenseLegalMetadataApi 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/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
43
46
|
method: 'DELETE',
|
|
@@ -60,13 +63,16 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
60
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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/licenseLegalMetadata/report-template`,
|
|
65
71
|
method: 'GET',
|
|
66
72
|
headers: headerParameters,
|
|
67
73
|
query: queryParameters,
|
|
68
74
|
}, initOverrides);
|
|
69
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AttributionReportTemplateDTOFromJSON));
|
|
70
76
|
});
|
|
71
77
|
}
|
|
72
78
|
/**
|
|
@@ -86,13 +92,16 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
86
92
|
}
|
|
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/licenseLegalMetadata/report-template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
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.AttributionReportTemplateDTOFromJSON)(jsonValue));
|
|
96
105
|
});
|
|
97
106
|
}
|
|
98
107
|
/**
|
|
@@ -115,6 +124,9 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
115
124
|
}
|
|
116
125
|
const queryParameters = {};
|
|
117
126
|
const headerParameters = {};
|
|
127
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
128
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
129
|
+
}
|
|
118
130
|
const response = yield this.request({
|
|
119
131
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
120
132
|
method: 'GET',
|
|
@@ -146,13 +158,16 @@ class LicenseLegalMetadataApi 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/licenseLegalMetadata/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
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.ApiLicenseLegalApplicationReportDTOFromJSON)(jsonValue));
|
|
156
171
|
});
|
|
157
172
|
}
|
|
158
173
|
/**
|
|
@@ -175,13 +190,16 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
175
190
|
}
|
|
176
191
|
const queryParameters = {};
|
|
177
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
|
+
}
|
|
178
196
|
const response = yield this.request({
|
|
179
197
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
180
198
|
method: 'GET',
|
|
181
199
|
headers: headerParameters,
|
|
182
200
|
query: queryParameters,
|
|
183
201
|
}, initOverrides);
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLicenseLegalApplicationReportDTOFromJSON)(jsonValue));
|
|
185
203
|
});
|
|
186
204
|
}
|
|
187
205
|
/**
|
|
@@ -219,13 +237,16 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
219
237
|
queryParameters['scanId'] = requestParameters.scanId;
|
|
220
238
|
}
|
|
221
239
|
const headerParameters = {};
|
|
240
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
241
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
242
|
+
}
|
|
222
243
|
const response = yield this.request({
|
|
223
244
|
path: `/api/v2/licenseLegalMetadata/{ownerType}/{ownerId}/component`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
224
245
|
method: 'GET',
|
|
225
246
|
headers: headerParameters,
|
|
226
247
|
query: queryParameters,
|
|
227
248
|
}, initOverrides);
|
|
228
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLicenseLegalComponentReportDTOFromJSON)(jsonValue));
|
|
229
250
|
});
|
|
230
251
|
}
|
|
231
252
|
/**
|
|
@@ -249,12 +270,15 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
249
270
|
const queryParameters = {};
|
|
250
271
|
const headerParameters = {};
|
|
251
272
|
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
274
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
275
|
+
}
|
|
252
276
|
const response = yield this.request({
|
|
253
277
|
path: `/api/v2/licenseLegalMetadata/application/{applicationId}/stage/{stageId}/report`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
254
278
|
method: 'POST',
|
|
255
279
|
headers: headerParameters,
|
|
256
280
|
query: queryParameters,
|
|
257
|
-
body: (0,
|
|
281
|
+
body: (0, index_1.FormDataMultiPartToJSON)(requestParameters.formDataMultiPart),
|
|
258
282
|
}, initOverrides);
|
|
259
283
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
260
284
|
return new runtime.JSONApiResponse(response);
|
|
@@ -287,6 +311,9 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
287
311
|
}
|
|
288
312
|
const queryParameters = {};
|
|
289
313
|
const headerParameters = {};
|
|
314
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
315
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
316
|
+
}
|
|
290
317
|
const response = yield this.request({
|
|
291
318
|
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))),
|
|
292
319
|
method: 'POST',
|
|
@@ -318,6 +345,9 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
318
345
|
}
|
|
319
346
|
const queryParameters = {};
|
|
320
347
|
const headerParameters = {};
|
|
348
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
349
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
350
|
+
}
|
|
321
351
|
const response = yield this.request({
|
|
322
352
|
path: `/api/v2/licenseLegalMetadata/multiApplication/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
|
|
323
353
|
method: 'POST',
|
|
@@ -346,6 +376,9 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
346
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
377
|
const queryParameters = {};
|
|
348
378
|
const headerParameters = {};
|
|
379
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
380
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
381
|
+
}
|
|
349
382
|
const response = yield this.request({
|
|
350
383
|
path: `/api/v2/licenseLegalMetadata/multiApplication/report`,
|
|
351
384
|
method: 'POST',
|
|
@@ -377,6 +410,9 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
377
410
|
}
|
|
378
411
|
const queryParameters = {};
|
|
379
412
|
const headerParameters = {};
|
|
413
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
414
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
415
|
+
}
|
|
380
416
|
const response = yield this.request({
|
|
381
417
|
path: `/api/v2/licenseLegalMetadata/multiApplication/activeUserFilter/report/templateId/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(requestParameters.templateId))),
|
|
382
418
|
method: 'POST',
|
|
@@ -406,14 +442,17 @@ class LicenseLegalMetadataApi extends runtime.BaseAPI {
|
|
|
406
442
|
const queryParameters = {};
|
|
407
443
|
const headerParameters = {};
|
|
408
444
|
headerParameters['Content-Type'] = 'application/json';
|
|
445
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
446
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
447
|
+
}
|
|
409
448
|
const response = yield this.request({
|
|
410
449
|
path: `/api/v2/licenseLegalMetadata/report-template`,
|
|
411
450
|
method: 'POST',
|
|
412
451
|
headers: headerParameters,
|
|
413
452
|
query: queryParameters,
|
|
414
|
-
body: (0,
|
|
453
|
+
body: (0, index_1.AttributionReportTemplateDTOToJSON)(requestParameters.attributionReportTemplateDTO),
|
|
415
454
|
}, initOverrides);
|
|
416
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
455
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AttributionReportTemplateDTOFromJSON)(jsonValue));
|
|
417
456
|
});
|
|
418
457
|
}
|
|
419
458
|
/**
|
|
@@ -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
|
}
|
|
@@ -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.OrganizationsApi = 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 OrganizationsApi 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/organizations`,
|
|
41
44
|
method: 'POST',
|
|
42
45
|
headers: headerParameters,
|
|
43
46
|
query: queryParameters,
|
|
44
|
-
body: (0,
|
|
47
|
+
body: (0, index_1.ApiOrganizationDTOToJSON)(requestParameters.apiOrganizationDTO),
|
|
45
48
|
}, initOverrides);
|
|
46
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
49
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiOrganizationDTOFromJSON)(jsonValue));
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
52
|
/**
|
|
@@ -63,13 +66,16 @@ class OrganizationsApi 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/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
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.ApiOrganizationDTOFromJSON)(jsonValue));
|
|
73
79
|
});
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
@@ -89,13 +95,16 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
89
95
|
queryParameters['organizationName'] = requestParameters.organizationName;
|
|
90
96
|
}
|
|
91
97
|
const headerParameters = {};
|
|
98
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
99
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
100
|
+
}
|
|
92
101
|
const response = yield this.request({
|
|
93
102
|
path: `/api/v2/organizations`,
|
|
94
103
|
method: 'GET',
|
|
95
104
|
headers: headerParameters,
|
|
96
105
|
query: queryParameters,
|
|
97
106
|
}, initOverrides);
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
107
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiOrganizationListDTOFromJSON)(jsonValue));
|
|
99
108
|
});
|
|
100
109
|
}
|
|
101
110
|
/**
|
package/dist/apis/PoliciesApi.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.PoliciesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -35,13 +35,16 @@ class PoliciesApi extends runtime.BaseAPI {
|
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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/policies`,
|
|
40
43
|
method: 'GET',
|
|
41
44
|
headers: headerParameters,
|
|
42
45
|
query: queryParameters,
|
|
43
46
|
}, initOverrides);
|
|
44
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPolicyListDTOFromJSON)(jsonValue));
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
@@ -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
|
}
|
|
@@ -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.GetTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum = exports.GetTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum = exports.PolicyViolationsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -38,13 +38,16 @@ class PolicyViolationsApi 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/policyViolations/{violationId}/applicableWaivers`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
|
|
43
46
|
method: 'GET',
|
|
44
47
|
headers: headerParameters,
|
|
45
48
|
query: queryParameters,
|
|
46
49
|
}, initOverrides);
|
|
47
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPolicyWaiversApplicableToViolationDTOFromJSON)(jsonValue));
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
@@ -64,13 +67,16 @@ class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
64
67
|
queryParameters['constituentId'] = requestParameters.constituentId;
|
|
65
68
|
}
|
|
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/policyViolations/crossStage`,
|
|
69
75
|
method: 'GET',
|
|
70
76
|
headers: headerParameters,
|
|
71
77
|
query: queryParameters,
|
|
72
78
|
}, initOverrides);
|
|
73
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiCrossStageViolationDTOV2FromJSON)(jsonValue));
|
|
74
80
|
});
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
@@ -90,13 +96,16 @@ class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
90
96
|
}
|
|
91
97
|
const queryParameters = {};
|
|
92
98
|
const headerParameters = {};
|
|
99
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
100
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
101
|
+
}
|
|
93
102
|
const response = yield this.request({
|
|
94
103
|
path: `/api/v2/policyViolations/crossStage/{violationId}`.replace(`{${"violationId"}}`, encodeURIComponent(String(requestParameters.violationId))),
|
|
95
104
|
method: 'GET',
|
|
96
105
|
headers: headerParameters,
|
|
97
106
|
query: queryParameters,
|
|
98
107
|
}, initOverrides);
|
|
99
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiCrossStageViolationDTOV2FromJSON)(jsonValue));
|
|
100
109
|
});
|
|
101
110
|
}
|
|
102
111
|
/**
|
|
@@ -116,13 +125,16 @@ class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
116
125
|
queryParameters['p'] = requestParameters.p;
|
|
117
126
|
}
|
|
118
127
|
const headerParameters = {};
|
|
128
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
129
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
130
|
+
}
|
|
119
131
|
const response = yield this.request({
|
|
120
132
|
path: `/api/v2/policyViolations`,
|
|
121
133
|
method: 'GET',
|
|
122
134
|
headers: headerParameters,
|
|
123
135
|
query: queryParameters,
|
|
124
136
|
}, initOverrides);
|
|
125
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationViolationListDTOV2FromJSON)(jsonValue));
|
|
126
138
|
});
|
|
127
139
|
}
|
|
128
140
|
/**
|
|
@@ -157,13 +169,16 @@ class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
157
169
|
queryParameters['hash'] = requestParameters.hash;
|
|
158
170
|
}
|
|
159
171
|
const headerParameters = {};
|
|
172
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
173
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
174
|
+
}
|
|
160
175
|
const response = yield this.request({
|
|
161
176
|
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))),
|
|
162
177
|
method: 'GET',
|
|
163
178
|
headers: headerParameters,
|
|
164
179
|
query: queryParameters,
|
|
165
180
|
}, initOverrides);
|
|
166
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentTransitivePolicyViolationsDTOFromJSON)(jsonValue));
|
|
167
182
|
});
|
|
168
183
|
}
|
|
169
184
|
/**
|
|
@@ -198,13 +213,16 @@ class PolicyViolationsApi extends runtime.BaseAPI {
|
|
|
198
213
|
queryParameters['hash'] = requestParameters.hash;
|
|
199
214
|
}
|
|
200
215
|
const headerParameters = {};
|
|
216
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
217
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
218
|
+
}
|
|
201
219
|
const response = yield this.request({
|
|
202
220
|
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))),
|
|
203
221
|
method: 'GET',
|
|
204
222
|
headers: headerParameters,
|
|
205
223
|
query: queryParameters,
|
|
206
224
|
}, initOverrides);
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentTransitivePolicyViolationsDTOFromJSON)(jsonValue));
|
|
208
226
|
});
|
|
209
227
|
}
|
|
210
228
|
/**
|
|
@@ -41,6 +41,9 @@ class PolicyWaiverApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'text/plain';
|
|
44
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
45
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
46
|
+
}
|
|
44
47
|
const response = yield this.request({
|
|
45
48
|
path: `/api/v2/policyWaiver/{policyViolationId}/{ownerType}`.replace(`{${"policyViolationId"}}`, encodeURIComponent(String(requestParameters.policyViolationId))).replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
|
|
46
49
|
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;
|