@sonatype/nexus-iq-api-client 0.192.0 → 0.192.1
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/ConfigSAMLApi.d.ts +4 -4
- package/dist/apis/ConfigSAMLApi.js +8 -2
- package/dist/apis/OrganizationsApi.d.ts +4 -4
- package/dist/apis/OrganizationsApi.js +3 -2
- package/dist/esm/apis/ConfigSAMLApi.d.ts +4 -4
- package/dist/esm/apis/ConfigSAMLApi.js +8 -2
- package/dist/esm/apis/OrganizationsApi.d.ts +4 -4
- package/dist/esm/apis/OrganizationsApi.js +3 -2
- package/package.json +1 -1
- package/src/apis/ConfigSAMLApi.ts +11 -6
- package/src/apis/OrganizationsApi.ts +7 -6
|
@@ -35,11 +35,11 @@ export interface ConfigSAMLApiInterface {
|
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
* @memberof ConfigSAMLApiInterface
|
|
37
37
|
*/
|
|
38
|
-
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
38
|
+
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
39
39
|
/**
|
|
40
40
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
41
41
|
*/
|
|
42
|
-
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
42
|
+
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
43
43
|
/**
|
|
44
44
|
* Use this method to inspect the SAML configuration. Permissions required: Edit System Configuration and Users
|
|
45
45
|
* @param {*} [options] Override http request option.
|
|
@@ -67,11 +67,11 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
67
67
|
/**
|
|
68
68
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
69
69
|
*/
|
|
70
|
-
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
70
|
+
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
71
71
|
/**
|
|
72
72
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
73
73
|
*/
|
|
74
|
-
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
74
|
+
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
75
75
|
/**
|
|
76
76
|
* Use this method to inspect the SAML configuration. Permissions required: Edit System Configuration and Users
|
|
77
77
|
*/
|
|
@@ -72,7 +72,12 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
72
72
|
headers: headerParameters,
|
|
73
73
|
query: queryParameters,
|
|
74
74
|
}, initOverrides);
|
|
75
|
-
|
|
75
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
76
|
+
return new runtime.JSONApiResponse(response);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return new runtime.TextApiResponse(response);
|
|
80
|
+
}
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
83
|
/**
|
|
@@ -80,7 +85,8 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
80
85
|
*/
|
|
81
86
|
getMetadata(initOverrides) {
|
|
82
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
yield this.getMetadataRaw(initOverrides);
|
|
88
|
+
const response = yield this.getMetadataRaw(initOverrides);
|
|
89
|
+
return yield response.value();
|
|
84
90
|
});
|
|
85
91
|
}
|
|
86
92
|
/**
|
|
@@ -42,11 +42,11 @@ export interface OrganizationsApiInterface {
|
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
* @memberof OrganizationsApiInterface
|
|
44
44
|
*/
|
|
45
|
-
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
45
|
+
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>>;
|
|
46
46
|
/**
|
|
47
47
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
48
48
|
*/
|
|
49
|
-
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
49
|
+
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO>;
|
|
50
50
|
/**
|
|
51
51
|
* Use this method to delete an existing organization, by providing the organization id. Permissions required: Edit IQ Elements
|
|
52
52
|
* @param {string} organizationId Enter the organization id to be deleted.
|
|
@@ -105,11 +105,11 @@ export declare class OrganizationsApi extends runtime.BaseAPI implements Organiz
|
|
|
105
105
|
/**
|
|
106
106
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
107
107
|
*/
|
|
108
|
-
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
108
|
+
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>>;
|
|
109
109
|
/**
|
|
110
110
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
111
111
|
*/
|
|
112
|
-
addOrganization(requestParameters?: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
112
|
+
addOrganization(requestParameters?: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO>;
|
|
113
113
|
/**
|
|
114
114
|
* Use this method to delete an existing organization, by providing the organization id. Permissions required: Edit IQ Elements
|
|
115
115
|
*/
|
|
@@ -47,7 +47,7 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
47
47
|
query: queryParameters,
|
|
48
48
|
body: (0, index_1.ApiOrganizationDTOToJSON)(requestParameters['apiOrganizationDTO']),
|
|
49
49
|
}, initOverrides);
|
|
50
|
-
return new runtime.
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiOrganizationDTOFromJSON)(jsonValue));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -55,7 +55,8 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
55
55
|
*/
|
|
56
56
|
addOrganization() {
|
|
57
57
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
58
|
-
yield this.addOrganizationRaw(requestParameters, initOverrides);
|
|
58
|
+
const response = yield this.addOrganizationRaw(requestParameters, initOverrides);
|
|
59
|
+
return yield response.value();
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
@@ -35,11 +35,11 @@ export interface ConfigSAMLApiInterface {
|
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
* @memberof ConfigSAMLApiInterface
|
|
37
37
|
*/
|
|
38
|
-
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
38
|
+
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
39
39
|
/**
|
|
40
40
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
41
41
|
*/
|
|
42
|
-
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
42
|
+
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
43
43
|
/**
|
|
44
44
|
* Use this method to inspect the SAML configuration. Permissions required: Edit System Configuration and Users
|
|
45
45
|
* @param {*} [options] Override http request option.
|
|
@@ -67,11 +67,11 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
67
67
|
/**
|
|
68
68
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
69
69
|
*/
|
|
70
|
-
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
70
|
+
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
71
71
|
/**
|
|
72
72
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
73
73
|
*/
|
|
74
|
-
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
74
|
+
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
75
75
|
/**
|
|
76
76
|
* Use this method to inspect the SAML configuration. Permissions required: Edit System Configuration and Users
|
|
77
77
|
*/
|
|
@@ -69,7 +69,12 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
69
69
|
headers: headerParameters,
|
|
70
70
|
query: queryParameters,
|
|
71
71
|
}, initOverrides);
|
|
72
|
-
|
|
72
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
73
|
+
return new runtime.JSONApiResponse(response);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return new runtime.TextApiResponse(response);
|
|
77
|
+
}
|
|
73
78
|
});
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
@@ -77,7 +82,8 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
77
82
|
*/
|
|
78
83
|
getMetadata(initOverrides) {
|
|
79
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
yield this.getMetadataRaw(initOverrides);
|
|
85
|
+
const response = yield this.getMetadataRaw(initOverrides);
|
|
86
|
+
return yield response.value();
|
|
81
87
|
});
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
@@ -42,11 +42,11 @@ export interface OrganizationsApiInterface {
|
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
* @memberof OrganizationsApiInterface
|
|
44
44
|
*/
|
|
45
|
-
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
45
|
+
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>>;
|
|
46
46
|
/**
|
|
47
47
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
48
48
|
*/
|
|
49
|
-
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
49
|
+
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO>;
|
|
50
50
|
/**
|
|
51
51
|
* Use this method to delete an existing organization, by providing the organization id. Permissions required: Edit IQ Elements
|
|
52
52
|
* @param {string} organizationId Enter the organization id to be deleted.
|
|
@@ -105,11 +105,11 @@ export declare class OrganizationsApi extends runtime.BaseAPI implements Organiz
|
|
|
105
105
|
/**
|
|
106
106
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
107
107
|
*/
|
|
108
|
-
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
108
|
+
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>>;
|
|
109
109
|
/**
|
|
110
110
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
111
111
|
*/
|
|
112
|
-
addOrganization(requestParameters?: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
112
|
+
addOrganization(requestParameters?: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO>;
|
|
113
113
|
/**
|
|
114
114
|
* Use this method to delete an existing organization, by providing the organization id. Permissions required: Edit IQ Elements
|
|
115
115
|
*/
|
|
@@ -44,7 +44,7 @@ export class OrganizationsApi extends runtime.BaseAPI {
|
|
|
44
44
|
query: queryParameters,
|
|
45
45
|
body: ApiOrganizationDTOToJSON(requestParameters['apiOrganizationDTO']),
|
|
46
46
|
}, initOverrides);
|
|
47
|
-
return new runtime.
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiOrganizationDTOFromJSON(jsonValue));
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -52,7 +52,8 @@ export class OrganizationsApi extends runtime.BaseAPI {
|
|
|
52
52
|
*/
|
|
53
53
|
addOrganization() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
55
|
-
yield this.addOrganizationRaw(requestParameters, initOverrides);
|
|
55
|
+
const response = yield this.addOrganizationRaw(requestParameters, initOverrides);
|
|
56
|
+
return yield response.value();
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
/**
|
package/package.json
CHANGED
|
@@ -48,12 +48,12 @@ export interface ConfigSAMLApiInterface {
|
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
* @memberof ConfigSAMLApiInterface
|
|
50
50
|
*/
|
|
51
|
-
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
51
|
+
getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
55
55
|
*/
|
|
56
|
-
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
56
|
+
getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Use this method to inspect the SAML configuration. Permissions required: Edit System Configuration and Users
|
|
@@ -106,7 +106,7 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
106
106
|
/**
|
|
107
107
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
108
108
|
*/
|
|
109
|
-
async getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
109
|
+
async getMetadataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
110
110
|
const queryParameters: any = {};
|
|
111
111
|
|
|
112
112
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -121,14 +121,19 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
121
121
|
query: queryParameters,
|
|
122
122
|
}, initOverrides);
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
125
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
126
|
+
} else {
|
|
127
|
+
return new runtime.TextApiResponse(response) as any;
|
|
128
|
+
}
|
|
125
129
|
}
|
|
126
130
|
|
|
127
131
|
/**
|
|
128
132
|
* Use this method to retrieve IQ Server\'s metadata service provider descriptor. Permissions required: Edit System Configuration and Users
|
|
129
133
|
*/
|
|
130
|
-
async getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
131
|
-
await this.getMetadataRaw(initOverrides);
|
|
134
|
+
async getMetadata(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
135
|
+
const response = await this.getMetadataRaw(initOverrides);
|
|
136
|
+
return await response.value();
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
/**
|
|
@@ -61,12 +61,12 @@ export interface OrganizationsApiInterface {
|
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
* @memberof OrganizationsApiInterface
|
|
63
63
|
*/
|
|
64
|
-
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
64
|
+
addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>>;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
68
68
|
*/
|
|
69
|
-
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
69
|
+
addOrganization(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO>;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Use this method to delete an existing organization, by providing the organization id. Permissions required: Edit IQ Elements
|
|
@@ -136,7 +136,7 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
|
|
|
136
136
|
/**
|
|
137
137
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
138
138
|
*/
|
|
139
|
-
async addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
139
|
+
async addOrganizationRaw(requestParameters: AddOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiOrganizationDTO>> {
|
|
140
140
|
const queryParameters: any = {};
|
|
141
141
|
|
|
142
142
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -154,14 +154,15 @@ export class OrganizationsApi extends runtime.BaseAPI implements OrganizationsAp
|
|
|
154
154
|
body: ApiOrganizationDTOToJSON(requestParameters['apiOrganizationDTO']),
|
|
155
155
|
}, initOverrides);
|
|
156
156
|
|
|
157
|
-
return new runtime.
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiOrganizationDTOFromJSON(jsonValue));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Use this method to add a new organization. Permissions required: Edit IQ Elements
|
|
162
162
|
*/
|
|
163
|
-
async addOrganization(requestParameters: AddOrganizationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
164
|
-
await this.addOrganizationRaw(requestParameters, initOverrides);
|
|
163
|
+
async addOrganization(requestParameters: AddOrganizationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiOrganizationDTO> {
|
|
164
|
+
const response = await this.addOrganizationRaw(requestParameters, initOverrides);
|
|
165
|
+
return await response.value();
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
/**
|