@sonatype/nexus-iq-api-client 0.156.1 → 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/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +1 -1
- 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 +1 -1
- package/dist/esm/apis/ApplicationsApi.js +40 -1
- 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 +41 -2
- 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/ReportsApi.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.ReportsApi = 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 ReportsApi 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/reports/applications`,
|
|
40
43
|
method: 'GET',
|
|
41
44
|
headers: headerParameters,
|
|
42
45
|
query: queryParameters,
|
|
43
46
|
}, initOverrides);
|
|
44
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationReportDTOV2FromJSON));
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
@@ -61,13 +64,16 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
61
64
|
}
|
|
62
65
|
const queryParameters = {};
|
|
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/reports/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
66
72
|
method: 'GET',
|
|
67
73
|
headers: headerParameters,
|
|
68
74
|
query: queryParameters,
|
|
69
75
|
}, initOverrides);
|
|
70
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiApplicationReportDTOV2FromJSON));
|
|
71
77
|
});
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
@@ -84,13 +90,16 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
84
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
91
|
const queryParameters = {};
|
|
86
92
|
const headerParameters = {};
|
|
93
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
94
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
95
|
+
}
|
|
87
96
|
const response = yield this.request({
|
|
88
97
|
path: `/api/v2/reports/components/quarantined`,
|
|
89
98
|
method: 'GET',
|
|
90
99
|
headers: headerParameters,
|
|
91
100
|
query: queryParameters,
|
|
92
101
|
}, initOverrides);
|
|
93
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentsInQuarantineDTOFromJSON)(jsonValue));
|
|
94
103
|
});
|
|
95
104
|
}
|
|
96
105
|
/**
|
|
@@ -110,13 +119,16 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
110
119
|
queryParameters['format'] = requestParameters.format;
|
|
111
120
|
}
|
|
112
121
|
const headerParameters = {};
|
|
122
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
123
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
124
|
+
}
|
|
113
125
|
const response = yield this.request({
|
|
114
126
|
path: `/api/v2/reports/components/waivers`,
|
|
115
127
|
method: 'GET',
|
|
116
128
|
headers: headerParameters,
|
|
117
129
|
query: queryParameters,
|
|
118
130
|
}, initOverrides);
|
|
119
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentWaiversDTOFromJSON)(jsonValue));
|
|
120
132
|
});
|
|
121
133
|
}
|
|
122
134
|
/**
|
|
@@ -134,12 +146,15 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
134
146
|
const queryParameters = {};
|
|
135
147
|
const headerParameters = {};
|
|
136
148
|
headerParameters['Content-Type'] = 'application/json';
|
|
149
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
150
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
151
|
+
}
|
|
137
152
|
const response = yield this.request({
|
|
138
153
|
path: `/api/v2/reports/metrics`,
|
|
139
154
|
method: 'POST',
|
|
140
155
|
headers: headerParameters,
|
|
141
156
|
query: queryParameters,
|
|
142
|
-
body: (0,
|
|
157
|
+
body: (0, index_1.ApiMetricsReportingQueryDTOV2ToJSON)(requestParameters.apiMetricsReportingQueryDTOV2),
|
|
143
158
|
}, initOverrides);
|
|
144
159
|
return new runtime.VoidApiResponse(response);
|
|
145
160
|
});
|
|
@@ -160,13 +175,16 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
160
175
|
}
|
|
161
176
|
const queryParameters = {};
|
|
162
177
|
const headerParameters = {};
|
|
178
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
179
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
180
|
+
}
|
|
163
181
|
const response = yield this.request({
|
|
164
182
|
path: `/api/v2/reports/applications/{applicationId}/history`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
165
183
|
method: 'GET',
|
|
166
184
|
headers: headerParameters,
|
|
167
185
|
query: queryParameters,
|
|
168
186
|
}, initOverrides);
|
|
169
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
187
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiReportHistoryDTOFromJSON)(jsonValue));
|
|
170
188
|
});
|
|
171
189
|
}
|
|
172
190
|
/**
|
|
@@ -183,13 +201,16 @@ class ReportsApi extends runtime.BaseAPI {
|
|
|
183
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
202
|
const queryParameters = {};
|
|
185
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
|
+
}
|
|
186
207
|
const response = yield this.request({
|
|
187
208
|
path: `/api/v2/reports/waivers/stale`,
|
|
188
209
|
method: 'GET',
|
|
189
210
|
headers: headerParameters,
|
|
190
211
|
query: queryParameters,
|
|
191
212
|
}, initOverrides);
|
|
192
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiStaleWaiversResponseDTOFromJSON)(jsonValue));
|
|
193
214
|
});
|
|
194
215
|
}
|
|
195
216
|
/**
|
|
@@ -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;
|
|
@@ -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.RepositoriesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -42,6 +42,9 @@ class RepositoriesApi 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/repositories/{repositoryManagerInstanceId}/{repositoryPublicId}/components/quarantined/pathnames`.replace(`{${"repositoryManagerInstanceId"}}`, encodeURIComponent(String(requestParameters.repositoryManagerInstanceId))).replace(`{${"repositoryPublicId"}}`, encodeURIComponent(String(requestParameters.repositoryPublicId))),
|
|
47
50
|
method: 'POST',
|
|
@@ -49,7 +52,7 @@ class RepositoriesApi extends runtime.BaseAPI {
|
|
|
49
52
|
query: queryParameters,
|
|
50
53
|
body: requestParameters.requestBody,
|
|
51
54
|
}, initOverrides);
|
|
52
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRepositoryPathResponseDTOFromJSON)(jsonValue));
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
@@ -70,6 +73,9 @@ class RepositoriesApi extends runtime.BaseAPI {
|
|
|
70
73
|
const queryParameters = {};
|
|
71
74
|
const headerParameters = {};
|
|
72
75
|
headerParameters['Content-Type'] = 'text/plain';
|
|
76
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
77
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
78
|
+
}
|
|
73
79
|
const response = yield this.request({
|
|
74
80
|
path: `/api/v2/repositories/quarantine/{quarantineId}/release`.replace(`{${"quarantineId"}}`, encodeURIComponent(String(requestParameters.quarantineId))),
|
|
75
81
|
method: 'POST',
|
|
@@ -77,7 +83,7 @@ class RepositoriesApi extends runtime.BaseAPI {
|
|
|
77
83
|
query: queryParameters,
|
|
78
84
|
body: requestParameters.body,
|
|
79
85
|
}, initOverrides);
|
|
80
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentReleasedFromQuarantineDTOFromJSON)(jsonValue));
|
|
81
87
|
});
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
@@ -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;
|
|
@@ -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.RevokeRoleMembershipGlobalOrRepositoryContainerMemberTypeEnum = exports.RevokeRoleMembershipGlobalOrRepositoryContainerOwnerTypeEnum = exports.RevokeRoleMembershipApplicationOrOrganizationMemberTypeEnum = exports.RevokeRoleMembershipApplicationOrOrganizationOwnerTypeEnum = exports.GrantRoleMembershipGlobalOrRepositoryContainerMemberTypeEnum = exports.GrantRoleMembershipGlobalOrRepositoryContainerOwnerTypeEnum = exports.GrantRoleMembershipApplicationOrOrganizationMemberTypeEnum = exports.GrantRoleMembershipApplicationOrOrganizationOwnerTypeEnum = exports.GetRoleMembershipsGlobalOrRepositoryContainerOwnerTypeEnum = exports.GetRoleMembershipsApplicationOrOrganizationOwnerTypeEnum = exports.RoleMembershipsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
41
41
|
}
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
const headerParameters = {};
|
|
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/roleMemberships/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
46
49
|
method: 'GET',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -67,13 +70,16 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
67
70
|
}
|
|
68
71
|
const queryParameters = {};
|
|
69
72
|
const headerParameters = {};
|
|
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/roleMemberships/{ownerType}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))),
|
|
72
78
|
method: 'GET',
|
|
73
79
|
headers: headerParameters,
|
|
74
80
|
query: queryParameters,
|
|
75
81
|
}, initOverrides);
|
|
76
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiRoleMemberMappingListDTOFromJSON)(jsonValue));
|
|
77
83
|
});
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
@@ -105,6 +111,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
105
111
|
}
|
|
106
112
|
const queryParameters = {};
|
|
107
113
|
const headerParameters = {};
|
|
114
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
115
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
116
|
+
}
|
|
108
117
|
const response = yield this.request({
|
|
109
118
|
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))),
|
|
110
119
|
method: 'PUT',
|
|
@@ -139,6 +148,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
139
148
|
}
|
|
140
149
|
const queryParameters = {};
|
|
141
150
|
const headerParameters = {};
|
|
151
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
152
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
153
|
+
}
|
|
142
154
|
const response = yield this.request({
|
|
143
155
|
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))),
|
|
144
156
|
method: 'PUT',
|
|
@@ -176,6 +188,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
176
188
|
}
|
|
177
189
|
const queryParameters = {};
|
|
178
190
|
const headerParameters = {};
|
|
191
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
192
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
193
|
+
}
|
|
179
194
|
const response = yield this.request({
|
|
180
195
|
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))),
|
|
181
196
|
method: 'DELETE',
|
|
@@ -210,6 +225,9 @@ class RoleMembershipsApi extends runtime.BaseAPI {
|
|
|
210
225
|
}
|
|
211
226
|
const queryParameters = {};
|
|
212
227
|
const headerParameters = {};
|
|
228
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
229
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
230
|
+
}
|
|
213
231
|
const response = yield this.request({
|
|
214
232
|
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))),
|
|
215
233
|
method: 'DELETE',
|
package/dist/apis/RolesApi.d.ts
CHANGED
package/dist/apis/RolesApi.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.RolesApi = 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 RolesApi 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/roles`,
|
|
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.ApiRoleListDTOFromJSON)(jsonValue));
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
package/dist/apis/ScanApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiThirdPartyScanResultDTO } from '../models';
|
|
13
|
+
import type { ApiThirdPartyScanResultDTO } from '../models/index';
|
|
14
14
|
export interface GetScanStatusRequest {
|
|
15
15
|
applicationId: string;
|
|
16
16
|
scanRequestId: string;
|
package/dist/apis/ScanApi.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.ScanApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class ScanApi extends runtime.BaseAPI {
|
|
|
41
41
|
}
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
const headerParameters = {};
|
|
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/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
|
|
46
49
|
method: 'GET',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiThirdPartyScanResultDTOFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -74,6 +77,9 @@ class ScanApi extends runtime.BaseAPI {
|
|
|
74
77
|
}
|
|
75
78
|
const headerParameters = {};
|
|
76
79
|
headerParameters['Content-Type'] = 'application/xml';
|
|
80
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
81
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
82
|
+
}
|
|
77
83
|
const response = yield this.request({
|
|
78
84
|
path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
|
|
79
85
|
method: 'POST',
|
package/dist/apis/SearchApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models';
|
|
13
|
+
import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models/index';
|
|
14
14
|
export interface GetExportResultsRequest {
|
|
15
15
|
query?: string;
|
|
16
16
|
allComponents?: boolean;
|
package/dist/apis/SearchApi.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.SearchApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -35,6 +35,9 @@ class SearchApi 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/search/advanced/index`,
|
|
40
43
|
method: 'POST',
|
|
@@ -63,6 +66,9 @@ class SearchApi extends runtime.BaseAPI {
|
|
|
63
66
|
queryParameters['allComponents'] = requestParameters.allComponents;
|
|
64
67
|
}
|
|
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/search/advanced/export/csv`,
|
|
68
74
|
method: 'GET',
|
|
@@ -97,13 +103,16 @@ class SearchApi extends runtime.BaseAPI {
|
|
|
97
103
|
queryParameters['packageUrl'] = requestParameters.packageUrl;
|
|
98
104
|
}
|
|
99
105
|
const headerParameters = {};
|
|
106
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
107
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
108
|
+
}
|
|
100
109
|
const response = yield this.request({
|
|
101
110
|
path: `/api/v2/search/component`,
|
|
102
111
|
method: 'GET',
|
|
103
112
|
headers: headerParameters,
|
|
104
113
|
query: queryParameters,
|
|
105
114
|
}, initOverrides);
|
|
106
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSearchResultsDTOV2FromJSON)(jsonValue));
|
|
107
116
|
});
|
|
108
117
|
}
|
|
109
118
|
/**
|
|
@@ -132,13 +141,16 @@ class SearchApi extends runtime.BaseAPI {
|
|
|
132
141
|
queryParameters['allComponents'] = requestParameters.allComponents;
|
|
133
142
|
}
|
|
134
143
|
const headerParameters = {};
|
|
144
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
145
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
146
|
+
}
|
|
135
147
|
const response = yield this.request({
|
|
136
148
|
path: `/api/v2/search/advanced`,
|
|
137
149
|
method: 'GET',
|
|
138
150
|
headers: headerParameters,
|
|
139
151
|
query: queryParameters,
|
|
140
152
|
}, initOverrides);
|
|
141
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
153
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SearchResultDTOFromJSON)(jsonValue));
|
|
142
154
|
});
|
|
143
155
|
}
|
|
144
156
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models';
|
|
13
|
+
import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models/index';
|
|
14
14
|
export interface GetSecurityVulnerabilityOverridesRequest {
|
|
15
15
|
refId?: string;
|
|
16
16
|
componentPurl?: string;
|
|
@@ -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.SecurityOverridesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -44,13 +44,16 @@ class SecurityOverridesApi extends runtime.BaseAPI {
|
|
|
44
44
|
queryParameters['ownerId'] = requestParameters.ownerId;
|
|
45
45
|
}
|
|
46
46
|
const headerParameters = {};
|
|
47
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
48
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
49
|
+
}
|
|
47
50
|
const response = yield this.request({
|
|
48
51
|
path: `/api/v2/securityOverrides`,
|
|
49
52
|
method: 'GET',
|
|
50
53
|
headers: headerParameters,
|
|
51
54
|
query: queryParameters,
|
|
52
55
|
}, initOverrides);
|
|
53
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON)(jsonValue));
|
|
54
57
|
});
|
|
55
58
|
}
|
|
56
59
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSourceControlDTO } from '../models';
|
|
13
|
+
import type { ApiSourceControlDTO } from '../models/index';
|
|
14
14
|
export interface AddOrUpdateSourceControlRequest {
|
|
15
15
|
publicId?: string;
|
|
16
16
|
repositoryUrl?: string;
|
|
@@ -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.UpdateSourceControlOwnerTypeEnum = exports.GetSourceControl1OwnerTypeEnum = exports.DeleteSourceControlOwnerTypeEnum = exports.AddSourceControlOwnerTypeEnum = exports.SourceControlApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
41
41
|
queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
|
|
42
42
|
}
|
|
43
43
|
const headerParameters = {};
|
|
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/sourceControl`,
|
|
46
49
|
method: 'POST',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -71,14 +74,17 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
71
74
|
const queryParameters = {};
|
|
72
75
|
const headerParameters = {};
|
|
73
76
|
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
78
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
79
|
+
}
|
|
74
80
|
const response = yield this.request({
|
|
75
81
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
76
82
|
method: 'POST',
|
|
77
83
|
headers: headerParameters,
|
|
78
84
|
query: queryParameters,
|
|
79
|
-
body: (0,
|
|
85
|
+
body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
|
|
80
86
|
}, initOverrides);
|
|
81
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
87
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
82
88
|
});
|
|
83
89
|
}
|
|
84
90
|
/**
|
|
@@ -101,6 +107,9 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
101
107
|
}
|
|
102
108
|
const queryParameters = {};
|
|
103
109
|
const headerParameters = {};
|
|
110
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
111
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
112
|
+
}
|
|
104
113
|
const response = yield this.request({
|
|
105
114
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
106
115
|
method: 'DELETE',
|
|
@@ -129,13 +138,16 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
129
138
|
}
|
|
130
139
|
const queryParameters = {};
|
|
131
140
|
const headerParameters = {};
|
|
141
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
142
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
143
|
+
}
|
|
132
144
|
const response = yield this.request({
|
|
133
145
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
134
146
|
method: 'GET',
|
|
135
147
|
headers: headerParameters,
|
|
136
148
|
query: queryParameters,
|
|
137
149
|
}, initOverrides);
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
139
151
|
});
|
|
140
152
|
}
|
|
141
153
|
/**
|
|
@@ -159,14 +171,17 @@ class SourceControlApi extends runtime.BaseAPI {
|
|
|
159
171
|
const queryParameters = {};
|
|
160
172
|
const headerParameters = {};
|
|
161
173
|
headerParameters['Content-Type'] = 'application/json';
|
|
174
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
175
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
176
|
+
}
|
|
162
177
|
const response = yield this.request({
|
|
163
178
|
path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
164
179
|
method: 'PUT',
|
|
165
180
|
headers: headerParameters,
|
|
166
181
|
query: queryParameters,
|
|
167
|
-
body: (0,
|
|
182
|
+
body: (0, index_1.ApiSourceControlDTOToJSON)(requestParameters.apiSourceControlDTO),
|
|
168
183
|
}, initOverrides);
|
|
169
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSourceControlDTOFromJSON)(jsonValue));
|
|
170
185
|
});
|
|
171
186
|
}
|
|
172
187
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiPullRequestResults } from '../models';
|
|
13
|
+
import type { ApiPullRequestResults } from '../models/index';
|
|
14
14
|
export interface GetSourceControlRequest {
|
|
15
15
|
ownerType: GetSourceControlOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -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.GetSourceControlOwnerTypeEnum = exports.SourceControlMetricsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -41,13 +41,16 @@ class SourceControlMetricsApi extends runtime.BaseAPI {
|
|
|
41
41
|
}
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
const headerParameters = {};
|
|
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/sourceControlMetrics/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
46
49
|
method: 'GET',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
49
52
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPullRequestResultsFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -38,6 +38,9 @@ class TelemetryApi extends runtime.BaseAPI {
|
|
|
38
38
|
if (requestParameters.userAgent !== undefined && requestParameters.userAgent !== null) {
|
|
39
39
|
headerParameters['user-agent'] = String(requestParameters.userAgent);
|
|
40
40
|
}
|
|
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/telemetry`,
|
|
43
46
|
method: 'POST',
|