@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
|
@@ -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.ConfigSAMLApi = 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 ConfigSAMLApi 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/saml`,
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,6 +60,9 @@ class ConfigSAMLApi 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/saml/metadata`,
|
|
62
68
|
method: 'GET',
|
|
@@ -85,13 +91,16 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
85
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
92
|
const queryParameters = {};
|
|
87
93
|
const headerParameters = {};
|
|
94
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
95
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
96
|
+
}
|
|
88
97
|
const response = yield this.request({
|
|
89
98
|
path: `/api/v2/config/saml`,
|
|
90
99
|
method: 'GET',
|
|
91
100
|
headers: headerParameters,
|
|
92
101
|
query: queryParameters,
|
|
93
102
|
}, initOverrides);
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSamlConfigurationResponseDTOFromJSON)(jsonValue));
|
|
95
104
|
});
|
|
96
105
|
}
|
|
97
106
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiSourceControlConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiSourceControlConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration5Request {
|
|
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.ConfigSourceControlApi = 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 ConfigSourceControlApi 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/sourceControl`,
|
|
40
43
|
method: 'DELETE',
|
|
@@ -57,13 +60,16 @@ class ConfigSourceControlApi 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/sourceControl`,
|
|
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.ApiSourceControlConfigurationDTOFromJSON)(jsonValue));
|
|
67
73
|
});
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
@@ -81,6 +87,9 @@ class ConfigSourceControlApi 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/sourceControl`,
|
|
86
95
|
method: 'PUT',
|
|
@@ -40,6 +40,9 @@ class CycloneDxApi extends runtime.BaseAPI {
|
|
|
40
40
|
}
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
44
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
45
|
+
}
|
|
43
46
|
const response = yield this.request({
|
|
44
47
|
path: `/api/v2/cycloneDx/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))),
|
|
45
48
|
method: 'GET',
|
|
@@ -71,6 +74,9 @@ class CycloneDxApi extends runtime.BaseAPI {
|
|
|
71
74
|
}
|
|
72
75
|
const queryParameters = {};
|
|
73
76
|
const headerParameters = {};
|
|
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/cycloneDx/{cdxVersion}/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
|
|
76
82
|
method: 'GET',
|
|
@@ -99,6 +105,9 @@ class CycloneDxApi extends runtime.BaseAPI {
|
|
|
99
105
|
}
|
|
100
106
|
const queryParameters = {};
|
|
101
107
|
const headerParameters = {};
|
|
108
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
109
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
110
|
+
}
|
|
102
111
|
const response = yield this.request({
|
|
103
112
|
path: `/api/v2/cycloneDx/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
104
113
|
method: 'GET',
|
|
@@ -130,6 +139,9 @@ class CycloneDxApi extends runtime.BaseAPI {
|
|
|
130
139
|
}
|
|
131
140
|
const queryParameters = {};
|
|
132
141
|
const headerParameters = {};
|
|
142
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
143
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
144
|
+
}
|
|
133
145
|
const response = yield this.request({
|
|
134
146
|
path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
|
|
135
147
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiDataRetentionPoliciesDTO } from '../models';
|
|
13
|
+
import type { ApiDataRetentionPoliciesDTO } from '../models/index';
|
|
14
14
|
export interface GetDataRetentionPoliciesRequest {
|
|
15
15
|
organizationId: 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.DataRetentionPoliciesApi = 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 DataRetentionPoliciesApi 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/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
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.ApiDataRetentionPoliciesDTOFromJSON)(jsonValue));
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
@@ -65,12 +68,15 @@ class DataRetentionPoliciesApi extends runtime.BaseAPI {
|
|
|
65
68
|
const queryParameters = {};
|
|
66
69
|
const headerParameters = {};
|
|
67
70
|
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
72
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
73
|
+
}
|
|
68
74
|
const response = yield this.request({
|
|
69
75
|
path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
70
76
|
method: 'PUT',
|
|
71
77
|
headers: headerParameters,
|
|
72
78
|
query: queryParameters,
|
|
73
|
-
body: (0,
|
|
79
|
+
body: (0, index_1.ApiDataRetentionPoliciesDTOToJSON)(requestParameters.apiDataRetentionPoliciesDTO),
|
|
74
80
|
}, initOverrides);
|
|
75
81
|
return new runtime.VoidApiResponse(response);
|
|
76
82
|
});
|
|
@@ -37,6 +37,9 @@ class EndpointsApi extends runtime.BaseAPI {
|
|
|
37
37
|
}
|
|
38
38
|
const queryParameters = {};
|
|
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/endpoints/{apiType}`.replace(`{${"apiType"}}`, encodeURIComponent(String(requestParameters.apiType))),
|
|
42
45
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiApplicationEvaluationResultDTOV2, ApiApplicationEvaluationStatusDTOV2, ApiComponentEvaluationRequestDTOV2, ApiComponentEvaluationResultDTOV2, ApiComponentEvaluationTicketDTOV2, ApiPromoteScanRequestDTOV2, ApiSourceControlEvaluationRequestDTO } from '../models';
|
|
13
|
+
import type { ApiApplicationEvaluationResultDTOV2, ApiApplicationEvaluationStatusDTOV2, ApiComponentEvaluationRequestDTOV2, ApiComponentEvaluationResultDTOV2, ApiComponentEvaluationTicketDTOV2, ApiPromoteScanRequestDTOV2, ApiSourceControlEvaluationRequestDTO } from '../models/index';
|
|
14
14
|
export interface DeprecatedManifestEvaluationRequest {
|
|
15
15
|
applicationId: string;
|
|
16
16
|
apiSourceControlEvaluationRequestDTO?: ApiSourceControlEvaluationRequestDTO;
|
|
@@ -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.EvaluationApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -39,14 +39,17 @@ class EvaluationApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
43
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
44
|
+
}
|
|
42
45
|
const response = yield this.request({
|
|
43
46
|
path: `/api/v2/evaluation/applications/{applicationId}/manifestEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
44
47
|
method: 'POST',
|
|
45
48
|
headers: headerParameters,
|
|
46
49
|
query: queryParameters,
|
|
47
|
-
body: (0,
|
|
50
|
+
body: (0, index_1.ApiSourceControlEvaluationRequestDTOToJSON)(requestParameters.apiSourceControlEvaluationRequestDTO),
|
|
48
51
|
}, initOverrides);
|
|
49
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationEvaluationStatusDTOV2FromJSON)(jsonValue));
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
55
|
/**
|
|
@@ -67,14 +70,17 @@ class EvaluationApi extends runtime.BaseAPI {
|
|
|
67
70
|
const queryParameters = {};
|
|
68
71
|
const headerParameters = {};
|
|
69
72
|
headerParameters['Content-Type'] = 'application/json';
|
|
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/evaluation/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
72
78
|
method: 'POST',
|
|
73
79
|
headers: headerParameters,
|
|
74
80
|
query: queryParameters,
|
|
75
|
-
body: (0,
|
|
81
|
+
body: (0, index_1.ApiComponentEvaluationRequestDTOV2ToJSON)(requestParameters.apiComponentEvaluationRequestDTOV2),
|
|
76
82
|
}, initOverrides);
|
|
77
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentEvaluationTicketDTOV2FromJSON)(jsonValue));
|
|
78
84
|
});
|
|
79
85
|
}
|
|
80
86
|
/**
|
|
@@ -95,14 +101,17 @@ class EvaluationApi 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/evaluation/applications/{applicationId}/sourceControlEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
100
109
|
method: 'POST',
|
|
101
110
|
headers: headerParameters,
|
|
102
111
|
query: queryParameters,
|
|
103
|
-
body: (0,
|
|
112
|
+
body: (0, index_1.ApiSourceControlEvaluationRequestDTOToJSON)(requestParameters.apiSourceControlEvaluationRequestDTO),
|
|
104
113
|
}, initOverrides);
|
|
105
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationEvaluationStatusDTOV2FromJSON)(jsonValue));
|
|
106
115
|
});
|
|
107
116
|
}
|
|
108
117
|
/**
|
|
@@ -125,13 +134,16 @@ class EvaluationApi extends runtime.BaseAPI {
|
|
|
125
134
|
}
|
|
126
135
|
const queryParameters = {};
|
|
127
136
|
const headerParameters = {};
|
|
137
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
138
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
139
|
+
}
|
|
128
140
|
const response = yield this.request({
|
|
129
141
|
path: `/api/v2/evaluation/applications/{applicationId}/status/{statusId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"statusId"}}`, encodeURIComponent(String(requestParameters.statusId))),
|
|
130
142
|
method: 'GET',
|
|
131
143
|
headers: headerParameters,
|
|
132
144
|
query: queryParameters,
|
|
133
145
|
}, initOverrides);
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationEvaluationResultDTOV2FromJSON)(jsonValue));
|
|
135
147
|
});
|
|
136
148
|
}
|
|
137
149
|
/**
|
|
@@ -154,13 +166,16 @@ class EvaluationApi extends runtime.BaseAPI {
|
|
|
154
166
|
}
|
|
155
167
|
const queryParameters = {};
|
|
156
168
|
const headerParameters = {};
|
|
169
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
170
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
171
|
+
}
|
|
157
172
|
const response = yield this.request({
|
|
158
173
|
path: `/api/v2/evaluation/applications/{applicationId}/results/{resultId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"resultId"}}`, encodeURIComponent(String(requestParameters.resultId))),
|
|
159
174
|
method: 'GET',
|
|
160
175
|
headers: headerParameters,
|
|
161
176
|
query: queryParameters,
|
|
162
177
|
}, initOverrides);
|
|
163
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiComponentEvaluationResultDTOV2FromJSON)(jsonValue));
|
|
164
179
|
});
|
|
165
180
|
}
|
|
166
181
|
/**
|
|
@@ -181,14 +196,17 @@ class EvaluationApi extends runtime.BaseAPI {
|
|
|
181
196
|
const queryParameters = {};
|
|
182
197
|
const headerParameters = {};
|
|
183
198
|
headerParameters['Content-Type'] = 'application/json';
|
|
199
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
200
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
201
|
+
}
|
|
184
202
|
const response = yield this.request({
|
|
185
203
|
path: `/api/v2/evaluation/applications/{applicationId}/promoteScan`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
186
204
|
method: 'POST',
|
|
187
205
|
headers: headerParameters,
|
|
188
206
|
query: queryParameters,
|
|
189
|
-
body: (0,
|
|
207
|
+
body: (0, index_1.ApiPromoteScanRequestDTOV2ToJSON)(requestParameters.apiPromoteScanRequestDTOV2),
|
|
190
208
|
}, initOverrides);
|
|
191
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
209
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiApplicationEvaluationStatusDTOV2FromJSON)(jsonValue));
|
|
192
210
|
});
|
|
193
211
|
}
|
|
194
212
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiFirewallQuarantineSummaryDTO, ApiFirewallReleaseQuarantineConfigDTO, ApiFirewallReleaseQuarantineSummaryDTO } from '../models';
|
|
13
|
+
import type { ApiFirewallQuarantineSummaryDTO, ApiFirewallReleaseQuarantineConfigDTO, ApiFirewallReleaseQuarantineSummaryDTO } from '../models/index';
|
|
14
14
|
export interface GetQuarantineListRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
package/dist/apis/FirewallApi.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.FirewallApi = 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 FirewallApi 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/firewall/releaseQuarantine/configuration`,
|
|
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.ApiFirewallReleaseQuarantineConfigDTOFromJSON));
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
@@ -58,13 +61,16 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
58
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
62
|
const queryParameters = {};
|
|
60
63
|
const headerParameters = {};
|
|
64
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
65
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
66
|
+
}
|
|
61
67
|
const response = yield this.request({
|
|
62
68
|
path: `/api/v2/firewall/releaseQuarantine/summary`,
|
|
63
69
|
method: 'GET',
|
|
64
70
|
headers: headerParameters,
|
|
65
71
|
query: queryParameters,
|
|
66
72
|
}, initOverrides);
|
|
67
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiFirewallReleaseQuarantineSummaryDTOFromJSON)(jsonValue));
|
|
68
74
|
});
|
|
69
75
|
}
|
|
70
76
|
/**
|
|
@@ -96,6 +102,9 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
96
102
|
queryParameters['asc'] = requestParameters.asc;
|
|
97
103
|
}
|
|
98
104
|
const headerParameters = {};
|
|
105
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
106
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
107
|
+
}
|
|
99
108
|
const response = yield this.request({
|
|
100
109
|
path: `/api/v2/firewall/components/quarantined`,
|
|
101
110
|
method: 'GET',
|
|
@@ -118,13 +127,16 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
118
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
128
|
const queryParameters = {};
|
|
120
129
|
const headerParameters = {};
|
|
130
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
131
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
132
|
+
}
|
|
121
133
|
const response = yield this.request({
|
|
122
134
|
path: `/api/v2/firewall/quarantine/summary`,
|
|
123
135
|
method: 'GET',
|
|
124
136
|
headers: headerParameters,
|
|
125
137
|
query: queryParameters,
|
|
126
138
|
}, initOverrides);
|
|
127
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiFirewallQuarantineSummaryDTOFromJSON)(jsonValue));
|
|
128
140
|
});
|
|
129
141
|
}
|
|
130
142
|
/**
|
|
@@ -141,6 +153,9 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
141
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
154
|
const queryParameters = {};
|
|
143
155
|
const headerParameters = {};
|
|
156
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
157
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
158
|
+
}
|
|
144
159
|
const response = yield this.request({
|
|
145
160
|
path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess`,
|
|
146
161
|
method: 'GET',
|
|
@@ -178,6 +193,9 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
178
193
|
queryParameters['asc'] = requestParameters.asc;
|
|
179
194
|
}
|
|
180
195
|
const headerParameters = {};
|
|
196
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
197
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
198
|
+
}
|
|
181
199
|
const response = yield this.request({
|
|
182
200
|
path: `/api/v2/firewall/components/autoReleasedFromQuarantine`,
|
|
183
201
|
method: 'GET',
|
|
@@ -201,14 +219,17 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
201
219
|
const queryParameters = {};
|
|
202
220
|
const headerParameters = {};
|
|
203
221
|
headerParameters['Content-Type'] = 'application/json';
|
|
222
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
223
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
224
|
+
}
|
|
204
225
|
const response = yield this.request({
|
|
205
226
|
path: `/api/v2/firewall/releaseQuarantine/configuration`,
|
|
206
227
|
method: 'PUT',
|
|
207
228
|
headers: headerParameters,
|
|
208
229
|
query: queryParameters,
|
|
209
|
-
body: requestParameters.apiFirewallReleaseQuarantineConfigDTO.map(
|
|
230
|
+
body: requestParameters.apiFirewallReleaseQuarantineConfigDTO.map(index_1.ApiFirewallReleaseQuarantineConfigDTOToJSON),
|
|
210
231
|
}, initOverrides);
|
|
211
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiFirewallReleaseQuarantineConfigDTOFromJSON));
|
|
212
233
|
});
|
|
213
234
|
}
|
|
214
235
|
/**
|
|
@@ -228,6 +249,9 @@ class FirewallApi extends runtime.BaseAPI {
|
|
|
228
249
|
}
|
|
229
250
|
const queryParameters = {};
|
|
230
251
|
const headerParameters = {};
|
|
252
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
253
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
254
|
+
}
|
|
231
255
|
const response = yield this.request({
|
|
232
256
|
path: `/api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess/{enabled}`.replace(`{${"enabled"}}`, encodeURIComponent(String(requestParameters.enabled))),
|
|
233
257
|
method: 'PUT',
|
package/dist/apis/LabelsApi.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 { ApiLabelDTO, ApplicableContext, ApplicableLabels } from '../models';
|
|
13
|
+
import type { ApiLabelDTO, ApplicableContext, ApplicableLabels } from '../models/index';
|
|
14
14
|
export interface AddLabelRequest {
|
|
15
15
|
ownerType: AddLabelOwnerTypeEnum;
|
|
16
16
|
ownerId: string;
|
package/dist/apis/LabelsApi.js
CHANGED
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UpdateLabelOwnerTypeEnum = exports.GetLabelsOwnerTypeEnum = exports.GetApplicableLabelsOwnerTypeEnum = exports.GetApplicableContextsOwnerTypeEnum = exports.DeleteLabelOwnerTypeEnum = exports.AddLabelOwnerTypeEnum = exports.LabelsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -42,14 +42,17 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
const headerParameters = {};
|
|
44
44
|
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
46
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
47
|
+
}
|
|
45
48
|
const response = yield this.request({
|
|
46
49
|
path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
47
50
|
method: 'POST',
|
|
48
51
|
headers: headerParameters,
|
|
49
52
|
query: queryParameters,
|
|
50
|
-
body: (0,
|
|
53
|
+
body: (0, index_1.ApiLabelDTOToJSON)(requestParameters.apiLabelDTO),
|
|
51
54
|
}, initOverrides);
|
|
52
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLabelDTOFromJSON)(jsonValue));
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
@@ -75,6 +78,9 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
75
78
|
}
|
|
76
79
|
const queryParameters = {};
|
|
77
80
|
const headerParameters = {};
|
|
81
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
82
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
83
|
+
}
|
|
78
84
|
const response = yield this.request({
|
|
79
85
|
path: `/api/v2/labels/{ownerType}/{ownerId}/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
|
|
80
86
|
method: 'DELETE',
|
|
@@ -106,13 +112,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
106
112
|
}
|
|
107
113
|
const queryParameters = {};
|
|
108
114
|
const headerParameters = {};
|
|
115
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
116
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
117
|
+
}
|
|
109
118
|
const response = yield this.request({
|
|
110
119
|
path: `/api/v2/labels/{ownerType}/{ownerId}/applicable/context/{labelId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))).replace(`{${"labelId"}}`, encodeURIComponent(String(requestParameters.labelId))),
|
|
111
120
|
method: 'GET',
|
|
112
121
|
headers: headerParameters,
|
|
113
122
|
query: queryParameters,
|
|
114
123
|
}, initOverrides);
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableContextFromJSON)(jsonValue));
|
|
116
125
|
});
|
|
117
126
|
}
|
|
118
127
|
/**
|
|
@@ -135,13 +144,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
135
144
|
}
|
|
136
145
|
const queryParameters = {};
|
|
137
146
|
const headerParameters = {};
|
|
147
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
148
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
149
|
+
}
|
|
138
150
|
const response = yield this.request({
|
|
139
151
|
path: `/api/v2/labels/{ownerType}/{ownerId}/applicable`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
140
152
|
method: 'GET',
|
|
141
153
|
headers: headerParameters,
|
|
142
154
|
query: queryParameters,
|
|
143
155
|
}, initOverrides);
|
|
144
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicableLabelsFromJSON)(jsonValue));
|
|
145
157
|
});
|
|
146
158
|
}
|
|
147
159
|
/**
|
|
@@ -167,13 +179,16 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
167
179
|
queryParameters['inherit'] = requestParameters.inherit;
|
|
168
180
|
}
|
|
169
181
|
const headerParameters = {};
|
|
182
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
183
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
184
|
+
}
|
|
170
185
|
const response = yield this.request({
|
|
171
186
|
path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
172
187
|
method: 'GET',
|
|
173
188
|
headers: headerParameters,
|
|
174
189
|
query: queryParameters,
|
|
175
190
|
}, initOverrides);
|
|
176
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
191
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiLabelDTOFromJSON));
|
|
177
192
|
});
|
|
178
193
|
}
|
|
179
194
|
/**
|
|
@@ -197,14 +212,17 @@ class LabelsApi extends runtime.BaseAPI {
|
|
|
197
212
|
const queryParameters = {};
|
|
198
213
|
const headerParameters = {};
|
|
199
214
|
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
216
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
217
|
+
}
|
|
200
218
|
const response = yield this.request({
|
|
201
219
|
path: `/api/v2/labels/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
202
220
|
method: 'PUT',
|
|
203
221
|
headers: headerParameters,
|
|
204
222
|
query: queryParameters,
|
|
205
|
-
body: (0,
|
|
223
|
+
body: (0, index_1.ApiLabelDTOToJSON)(requestParameters.apiLabelDTO),
|
|
206
224
|
}, initOverrides);
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiLabelDTOFromJSON)(jsonValue));
|
|
208
226
|
});
|
|
209
227
|
}
|
|
210
228
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models';
|
|
13
|
+
import type { ApiLicenseLegalApplicationReportDTO, ApiLicenseLegalComponentReportDTO, AttributionReportTemplateDTO, ComponentIdentifier, FormDataMultiPart } from '../models/index';
|
|
14
14
|
export interface DeleteAttributionReportTemplateRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|