@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
|
@@ -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.SetComponentLabelOwnerTypeEnum = exports.GetSuggestedRemediationForComponentOwnerTypeEnum = exports.DeleteComponentLabelOwnerTypeEnum = exports.ComponentsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -47,6 +47,9 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
47
47
|
}
|
|
48
48
|
const queryParameters = {};
|
|
49
49
|
const headerParameters = {};
|
|
50
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
51
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
52
|
+
}
|
|
50
53
|
const response = yield this.request({
|
|
51
54
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
52
55
|
method: 'DELETE',
|
|
@@ -70,14 +73,17 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
70
73
|
const queryParameters = {};
|
|
71
74
|
const headerParameters = {};
|
|
72
75
|
headerParameters['Content-Type'] = 'application/json';
|
|
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/components/details`,
|
|
75
81
|
method: 'POST',
|
|
76
82
|
headers: headerParameters,
|
|
77
83
|
query: queryParameters,
|
|
78
|
-
body: (0,
|
|
84
|
+
body: (0, index_1.ApiComponentDetailsRequestDTOV2ToJSON)(requestParameters.apiComponentDetailsRequestDTOV2),
|
|
79
85
|
}, initOverrides);
|
|
80
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentDetailsResultDTOV2FromJSON)(jsonValue));
|
|
81
87
|
});
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
@@ -95,12 +101,15 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
95
101
|
const queryParameters = {};
|
|
96
102
|
const headerParameters = {};
|
|
97
103
|
headerParameters['Content-Type'] = 'application/json';
|
|
104
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
105
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
106
|
+
}
|
|
98
107
|
const response = yield this.request({
|
|
99
108
|
path: `/api/v2/components/versions`,
|
|
100
109
|
method: 'POST',
|
|
101
110
|
headers: headerParameters,
|
|
102
111
|
query: queryParameters,
|
|
103
|
-
body: (0,
|
|
112
|
+
body: (0, index_1.ApiComponentOrPurlIdentifierDTOV2ToJSON)(requestParameters.apiComponentOrPurlIdentifierDTOV2),
|
|
104
113
|
}, initOverrides);
|
|
105
114
|
return new runtime.JSONApiResponse(response);
|
|
106
115
|
});
|
|
@@ -135,14 +144,17 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
135
144
|
}
|
|
136
145
|
const headerParameters = {};
|
|
137
146
|
headerParameters['Content-Type'] = 'application/json';
|
|
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/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
140
152
|
method: 'POST',
|
|
141
153
|
headers: headerParameters,
|
|
142
154
|
query: queryParameters,
|
|
143
|
-
body: (0,
|
|
155
|
+
body: (0, index_1.ApiComponentDTOV2ToJSON)(requestParameters.apiComponentDTOV2),
|
|
144
156
|
}, initOverrides);
|
|
145
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentRemediationDTOFromJSON)(jsonValue));
|
|
146
158
|
});
|
|
147
159
|
}
|
|
148
160
|
/**
|
|
@@ -171,6 +183,9 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
171
183
|
}
|
|
172
184
|
const queryParameters = {};
|
|
173
185
|
const headerParameters = {};
|
|
186
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
187
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
188
|
+
}
|
|
174
189
|
const response = yield this.request({
|
|
175
190
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
176
191
|
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 { ApiCompositeSourceControlDTO } from '../models';
|
|
13
|
+
import type { ApiCompositeSourceControlDTO } from '../models/index';
|
|
14
14
|
export interface GetCompositeSourceControlByOwnerRequest {
|
|
15
15
|
ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
|
|
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.GetCompositeSourceControlByOwnerOwnerTypeEnum = exports.CompositeSourceControlApi = 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 CompositeSourceControlApi 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/compositeSourceControl/{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.ApiCompositeSourceControlDTOFromJSON)(jsonValue));
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ConfigurationValidationResult } from '../models';
|
|
13
|
+
import type { ConfigurationValidationResult } from '../models/index';
|
|
14
14
|
export interface ValidateSourceControlConfigRequest {
|
|
15
15
|
applicationId: 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.CompositeSourceControlConfigValidatorApi = 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 CompositeSourceControlConfigValidatorApi 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/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
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.ConfigurationValidationResultFromJSON)(jsonValue));
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
/**
|
package/dist/apis/ConfigApi.js
CHANGED
|
@@ -37,6 +37,9 @@ class ConfigApi extends runtime.BaseAPI {
|
|
|
37
37
|
queryParameters['property'] = requestParameters.property;
|
|
38
38
|
}
|
|
39
39
|
const headerParameters = {};
|
|
40
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
41
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
42
|
+
}
|
|
40
43
|
const response = yield this.request({
|
|
41
44
|
path: `/api/v2/config`,
|
|
42
45
|
method: 'DELETE',
|
|
@@ -62,6 +65,9 @@ class ConfigApi extends runtime.BaseAPI {
|
|
|
62
65
|
}
|
|
63
66
|
const queryParameters = {};
|
|
64
67
|
const headerParameters = {};
|
|
68
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
70
|
+
}
|
|
65
71
|
const response = yield this.request({
|
|
66
72
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
67
73
|
method: 'DELETE',
|
|
@@ -87,6 +93,9 @@ class ConfigApi extends runtime.BaseAPI {
|
|
|
87
93
|
}
|
|
88
94
|
const queryParameters = {};
|
|
89
95
|
const headerParameters = {};
|
|
96
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
97
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
98
|
+
}
|
|
90
99
|
const response = yield this.request({
|
|
91
100
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
92
101
|
method: 'POST',
|
|
@@ -112,6 +121,9 @@ class ConfigApi extends runtime.BaseAPI {
|
|
|
112
121
|
queryParameters['property'] = requestParameters.property;
|
|
113
122
|
}
|
|
114
123
|
const headerParameters = {};
|
|
124
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
125
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
126
|
+
}
|
|
115
127
|
const response = yield this.request({
|
|
116
128
|
path: `/api/v2/config`,
|
|
117
129
|
method: 'GET',
|
|
@@ -136,6 +148,9 @@ class ConfigApi extends runtime.BaseAPI {
|
|
|
136
148
|
const queryParameters = {};
|
|
137
149
|
const headerParameters = {};
|
|
138
150
|
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
152
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
153
|
+
}
|
|
139
154
|
const response = yield this.request({
|
|
140
155
|
path: `/api/v2/config`,
|
|
141
156
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models';
|
|
13
|
+
import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models/index';
|
|
14
14
|
export interface AddArtifactoryConnectionRequest {
|
|
15
15
|
ownerType: AddArtifactoryConnectionOwnerTypeEnum;
|
|
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.UpdateOwnerArtifactoryConnectionStatusOwnerTypeEnum = exports.UpdateArtifactoryConnectionOwnerTypeEnum = exports.TestArtifactoryConnection1OwnerTypeEnum = exports.TestArtifactoryConnectionOwnerTypeEnum = exports.GetOwnerArtifactoryConnectionOwnerTypeEnum = exports.GetArtifactoryConnectionOwnerTypeEnum = exports.DeleteArtifactoryConnectionOwnerTypeEnum = exports.AddArtifactoryConnectionOwnerTypeEnum = exports.ConfigArtifactoryConnectionApi = 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 ConfigArtifactoryConnectionApi 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/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
47
50
|
method: 'POST',
|
|
48
51
|
headers: headerParameters,
|
|
49
52
|
query: queryParameters,
|
|
50
|
-
body: (0,
|
|
53
|
+
body: (0, index_1.ApiArtifactoryConnectionDTOToJSON)(requestParameters.apiArtifactoryConnectionDTO),
|
|
51
54
|
}, initOverrides);
|
|
52
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiArtifactoryConnectionDTOFromJSON)(jsonValue));
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
@@ -75,6 +78,9 @@ class ConfigArtifactoryConnectionApi 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/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
80
86
|
method: 'DELETE',
|
|
@@ -106,13 +112,16 @@ class ConfigArtifactoryConnectionApi 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/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
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.ApiArtifactoryConnectionDTOFromJSON)(jsonValue));
|
|
116
125
|
});
|
|
117
126
|
}
|
|
118
127
|
/**
|
|
@@ -138,13 +147,16 @@ class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
138
147
|
queryParameters['inherit'] = requestParameters.inherit;
|
|
139
148
|
}
|
|
140
149
|
const headerParameters = {};
|
|
150
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
151
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
152
|
+
}
|
|
141
153
|
const response = yield this.request({
|
|
142
154
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
143
155
|
method: 'GET',
|
|
144
156
|
headers: headerParameters,
|
|
145
157
|
query: queryParameters,
|
|
146
158
|
}, initOverrides);
|
|
147
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiOwnerArtifactoryConnectionDTOFromJSON)(jsonValue));
|
|
148
160
|
});
|
|
149
161
|
}
|
|
150
162
|
/**
|
|
@@ -168,14 +180,17 @@ class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
168
180
|
const queryParameters = {};
|
|
169
181
|
const headerParameters = {};
|
|
170
182
|
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
184
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
185
|
+
}
|
|
171
186
|
const response = yield this.request({
|
|
172
187
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
173
188
|
method: 'POST',
|
|
174
189
|
headers: headerParameters,
|
|
175
190
|
query: queryParameters,
|
|
176
|
-
body: (0,
|
|
191
|
+
body: (0, index_1.ApiArtifactoryConnectionDTOToJSON)(requestParameters.apiArtifactoryConnectionDTO),
|
|
177
192
|
}, initOverrides);
|
|
178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiStatusDTOFromJSON)(jsonValue));
|
|
179
194
|
});
|
|
180
195
|
}
|
|
181
196
|
/**
|
|
@@ -201,13 +216,16 @@ class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
201
216
|
}
|
|
202
217
|
const queryParameters = {};
|
|
203
218
|
const headerParameters = {};
|
|
219
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
220
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
}
|
|
204
222
|
const response = yield this.request({
|
|
205
223
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
206
224
|
method: 'POST',
|
|
207
225
|
headers: headerParameters,
|
|
208
226
|
query: queryParameters,
|
|
209
227
|
}, initOverrides);
|
|
210
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
228
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiStatusDTOFromJSON)(jsonValue));
|
|
211
229
|
});
|
|
212
230
|
}
|
|
213
231
|
/**
|
|
@@ -234,14 +252,17 @@ class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
234
252
|
const queryParameters = {};
|
|
235
253
|
const headerParameters = {};
|
|
236
254
|
headerParameters['Content-Type'] = 'application/json';
|
|
255
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
256
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
257
|
+
}
|
|
237
258
|
const response = yield this.request({
|
|
238
259
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
239
260
|
method: 'PUT',
|
|
240
261
|
headers: headerParameters,
|
|
241
262
|
query: queryParameters,
|
|
242
|
-
body: (0,
|
|
263
|
+
body: (0, index_1.ApiArtifactoryConnectionDTOToJSON)(requestParameters.apiArtifactoryConnectionDTO),
|
|
243
264
|
}, initOverrides);
|
|
244
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
265
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiArtifactoryConnectionDTOFromJSON)(jsonValue));
|
|
245
266
|
});
|
|
246
267
|
}
|
|
247
268
|
/**
|
|
@@ -265,12 +286,15 @@ class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
265
286
|
const queryParameters = {};
|
|
266
287
|
const headerParameters = {};
|
|
267
288
|
headerParameters['Content-Type'] = 'application/json';
|
|
289
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
290
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
291
|
+
}
|
|
268
292
|
const response = yield this.request({
|
|
269
293
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
270
294
|
method: 'PUT',
|
|
271
295
|
headers: headerParameters,
|
|
272
296
|
query: queryParameters,
|
|
273
|
-
body: (0,
|
|
297
|
+
body: (0, index_1.ApiArtifactoryConnectionStatusRequestDTOToJSON)(requestParameters.apiArtifactoryConnectionStatusRequestDTO),
|
|
274
298
|
}, initOverrides);
|
|
275
299
|
return new runtime.VoidApiResponse(response);
|
|
276
300
|
});
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models';
|
|
13
|
+
import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models/index';
|
|
14
14
|
export interface InsertOrUpdateCrowdConfigurationRequest {
|
|
15
15
|
apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
|
|
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.ConfigCrowdApi = 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 ConfigCrowdApi 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/config/crowd`,
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,13 +60,16 @@ class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
57
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
61
|
const queryParameters = {};
|
|
59
62
|
const headerParameters = {};
|
|
63
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
64
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
65
|
+
}
|
|
60
66
|
const response = yield this.request({
|
|
61
67
|
path: `/api/v2/config/crowd`,
|
|
62
68
|
method: 'GET',
|
|
63
69
|
headers: headerParameters,
|
|
64
70
|
query: queryParameters,
|
|
65
71
|
}, initOverrides);
|
|
66
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiCrowdConfigurationDTOFromJSON)(jsonValue));
|
|
67
73
|
});
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
@@ -81,12 +87,15 @@ class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
81
87
|
const queryParameters = {};
|
|
82
88
|
const headerParameters = {};
|
|
83
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
92
|
+
}
|
|
84
93
|
const response = yield this.request({
|
|
85
94
|
path: `/api/v2/config/crowd`,
|
|
86
95
|
method: 'PUT',
|
|
87
96
|
headers: headerParameters,
|
|
88
97
|
query: queryParameters,
|
|
89
|
-
body: (0,
|
|
98
|
+
body: (0, index_1.ApiCrowdConfigurationDTOToJSON)(requestParameters.apiCrowdConfigurationDTO),
|
|
90
99
|
}, initOverrides);
|
|
91
100
|
return new runtime.VoidApiResponse(response);
|
|
92
101
|
});
|
|
@@ -105,14 +114,17 @@ class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
105
114
|
const queryParameters = {};
|
|
106
115
|
const headerParameters = {};
|
|
107
116
|
headerParameters['Content-Type'] = 'application/json';
|
|
117
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
118
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
119
|
+
}
|
|
108
120
|
const response = yield this.request({
|
|
109
121
|
path: `/api/v2/config/crowd/test`,
|
|
110
122
|
method: 'POST',
|
|
111
123
|
headers: headerParameters,
|
|
112
124
|
query: queryParameters,
|
|
113
|
-
body: (0,
|
|
125
|
+
body: (0, index_1.ApiCrowdConfigurationDTOToJSON)(requestParameters.apiCrowdConfigurationDTO),
|
|
114
126
|
}, initOverrides);
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiStatusDTOFromJSON)(jsonValue));
|
|
116
128
|
});
|
|
117
129
|
}
|
|
118
130
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiJiraConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiJiraConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration1Request {
|
|
15
15
|
body?: object;
|
|
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.ConfigJIRAApi = 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 ConfigJIRAApi 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/config/jira`,
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,13 +60,16 @@ class ConfigJIRAApi extends runtime.BaseAPI {
|
|
|
57
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
61
|
const queryParameters = {};
|
|
59
62
|
const headerParameters = {};
|
|
63
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
64
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
65
|
+
}
|
|
60
66
|
const response = yield this.request({
|
|
61
67
|
path: `/api/v2/config/jira`,
|
|
62
68
|
method: 'GET',
|
|
63
69
|
headers: headerParameters,
|
|
64
70
|
query: queryParameters,
|
|
65
71
|
}, initOverrides);
|
|
66
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiJiraConfigurationDTOFromJSON)(jsonValue));
|
|
67
73
|
});
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
@@ -81,6 +87,9 @@ class ConfigJIRAApi extends runtime.BaseAPI {
|
|
|
81
87
|
const queryParameters = {};
|
|
82
88
|
const headerParameters = {};
|
|
83
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
92
|
+
}
|
|
84
93
|
const response = yield this.request({
|
|
85
94
|
path: `/api/v2/config/jira`,
|
|
86
95
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiMailConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiMailConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration2Request {
|
|
15
15
|
apiMailConfigurationDTO?: ApiMailConfigurationDTO;
|
|
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.ConfigMailApi = 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 ConfigMailApi 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/config/mail`,
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,13 +60,16 @@ class ConfigMailApi extends runtime.BaseAPI {
|
|
|
57
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
61
|
const queryParameters = {};
|
|
59
62
|
const headerParameters = {};
|
|
63
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
64
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
65
|
+
}
|
|
60
66
|
const response = yield this.request({
|
|
61
67
|
path: `/api/v2/config/mail`,
|
|
62
68
|
method: 'GET',
|
|
63
69
|
headers: headerParameters,
|
|
64
70
|
query: queryParameters,
|
|
65
71
|
}, initOverrides);
|
|
66
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiMailConfigurationDTOFromJSON)(jsonValue));
|
|
67
73
|
});
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
@@ -81,12 +87,15 @@ class ConfigMailApi extends runtime.BaseAPI {
|
|
|
81
87
|
const queryParameters = {};
|
|
82
88
|
const headerParameters = {};
|
|
83
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
92
|
+
}
|
|
84
93
|
const response = yield this.request({
|
|
85
94
|
path: `/api/v2/config/mail`,
|
|
86
95
|
method: 'PUT',
|
|
87
96
|
headers: headerParameters,
|
|
88
97
|
query: queryParameters,
|
|
89
|
-
body: (0,
|
|
98
|
+
body: (0, index_1.ApiMailConfigurationDTOToJSON)(requestParameters.apiMailConfigurationDTO),
|
|
90
99
|
}, initOverrides);
|
|
91
100
|
return new runtime.VoidApiResponse(response);
|
|
92
101
|
});
|
|
@@ -108,12 +117,15 @@ class ConfigMailApi extends runtime.BaseAPI {
|
|
|
108
117
|
const queryParameters = {};
|
|
109
118
|
const headerParameters = {};
|
|
110
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
120
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
121
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
122
|
+
}
|
|
111
123
|
const response = yield this.request({
|
|
112
124
|
path: `/api/v2/config/mail/test/{recipientEmail}`.replace(`{${"recipientEmail"}}`, encodeURIComponent(String(requestParameters.recipientEmail))),
|
|
113
125
|
method: 'POST',
|
|
114
126
|
headers: headerParameters,
|
|
115
127
|
query: queryParameters,
|
|
116
|
-
body: (0,
|
|
128
|
+
body: (0, index_1.ApiMailConfigurationDTOToJSON)(requestParameters.apiMailConfigurationDTO),
|
|
117
129
|
}, initOverrides);
|
|
118
130
|
return new runtime.VoidApiResponse(response);
|
|
119
131
|
});
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiProxyServerConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiProxyServerConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration3Request {
|
|
15
15
|
apiProxyServerConfigurationDTO?: ApiProxyServerConfigurationDTO;
|
|
16
16
|
}
|