Skip to content

Commit a436ae1

Browse files
authored
fix!: regenerated every sdk to latest openapi generator
1 parent 6c0a460 commit a436ae1

File tree

323 files changed

+1884
-2181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+1884
-2181
lines changed

.openapi/connector_mgmt.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,18 +351,17 @@ paths:
351351
requestBody:
352352
description: Data to patch the connector with
353353
content:
354-
application/json:
355-
schema:
356-
anyOf:
357-
- $ref: "#/components/schemas/ConnectorRequest"
358-
- type: object
359354
application/merge-patch+json:
360355
schema:
361-
$ref: "#/components/schemas/ConnectorRequest"
356+
type: object
362357
application/json-patch+json:
363358
schema:
364359
description: A JSON Patch, RFC 6902 - https://tools.ietf.org/html/rfc6902
365360
type: object
361+
application/json:
362+
schema:
363+
$ref: "#/components/schemas/ConnectorRequest"
364+
366365
required: true
367366
responses:
368367
"202":

examples/src/connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const apiConfig = new Configuration({
1111

1212
const connectorsApi = new ConnectorsApi(apiConfig)
1313

14-
connectorsApi.getConnector("id", "kafka-id").then((data) => {
14+
connectorsApi.getConnector("id").then((data) => {
1515
console.log(data?.data)
1616
}).catch((err) => {
1717
if (isServiceApiError(err)) {

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
33
"spaces": 2,
44
"generator-cli": {
5-
"version": "5.2.0"
5+
"version": "5.4.0"
66
}
77
}

packages/account-management-sdk/src/generated/api/app-services-api.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515

16-
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
16+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
1717
import { Configuration } from '../configuration';
1818
// Some imports not used depending on template conditions
1919
// @ts-ignore
@@ -42,7 +42,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
4242
* @param {*} [options] Override http request option.
4343
* @throws {RequiredError}
4444
*/
45-
apiAccountsMgmtV1AccessTokenPost: async (options: any = {}): Promise<RequestArgs> => {
45+
apiAccountsMgmtV1AccessTokenPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4646
const localVarPath = `/api/accounts_mgmt/v1/access_token`;
4747
// use dummy base URL string because the URL constructor only accepts absolute URLs.
4848
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -61,7 +61,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
6161

6262

6363

64-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
64+
setSearchParams(localVarUrlObj, localVarQueryParameter);
6565
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6666
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6767

@@ -77,7 +77,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
7777
* @param {*} [options] Override http request option.
7878
* @throws {RequiredError}
7979
*/
80-
apiAccountsMgmtV1CurrentAccountGet: async (fetchLabels?: boolean, options: any = {}): Promise<RequestArgs> => {
80+
apiAccountsMgmtV1CurrentAccountGet: async (fetchLabels?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8181
const localVarPath = `/api/accounts_mgmt/v1/current_account`;
8282
// use dummy base URL string because the URL constructor only accepts absolute URLs.
8383
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -100,7 +100,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
100100

101101

102102

103-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
103+
setSearchParams(localVarUrlObj, localVarQueryParameter);
104104
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105105
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
106106

@@ -118,7 +118,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
118118
* @param {*} [options] Override http request option.
119119
* @throws {RequiredError}
120120
*/
121-
apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet: async (orgId: string, search?: string, fetchRelatedResources?: boolean, options: any = {}): Promise<RequestArgs> => {
121+
apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet: async (orgId: string, search?: string, fetchRelatedResources?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
122122
// verify required parameter 'orgId' is not null or undefined
123123
assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet', 'orgId', orgId)
124124
const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/quota_cost`
@@ -148,7 +148,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
148148

149149

150150

151-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
151+
setSearchParams(localVarUrlObj, localVarQueryParameter);
152152
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153153
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
154154

@@ -164,7 +164,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
164164
* @param {*} [options] Override http request option.
165165
* @throws {RequiredError}
166166
*/
167-
apiAuthorizationsV1SelfTermsReviewPost: async (selfTermsReview: SelfTermsReview, options: any = {}): Promise<RequestArgs> => {
167+
apiAuthorizationsV1SelfTermsReviewPost: async (selfTermsReview: SelfTermsReview, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
168168
// verify required parameter 'selfTermsReview' is not null or undefined
169169
assertParamExists('apiAuthorizationsV1SelfTermsReviewPost', 'selfTermsReview', selfTermsReview)
170170
const localVarPath = `/api/authorizations/v1/self_terms_review`;
@@ -187,7 +187,7 @@ export const AppServicesApiAxiosParamCreator = function (configuration?: Configu
187187

188188
localVarHeaderParameter['Content-Type'] = 'application/json';
189189

190-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
190+
setSearchParams(localVarUrlObj, localVarQueryParameter);
191191
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192192
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193193
localVarRequestOptions.data = serializeDataIfNeeded(selfTermsReview, localVarRequestOptions, configuration)
@@ -213,7 +213,7 @@ export const AppServicesApiFp = function(configuration?: Configuration) {
213213
* @param {*} [options] Override http request option.
214214
* @throws {RequiredError}
215215
*/
216-
async apiAccountsMgmtV1AccessTokenPost(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessTokenCfg>> {
216+
async apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessTokenCfg>> {
217217
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccessTokenPost(options);
218218
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
219219
},
@@ -224,7 +224,7 @@ export const AppServicesApiFp = function(configuration?: Configuration) {
224224
* @param {*} [options] Override http request option.
225225
* @throws {RequiredError}
226226
*/
227-
async apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
227+
async apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
228228
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1CurrentAccountGet(fetchLabels, options);
229229
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
230230
},
@@ -237,7 +237,7 @@ export const AppServicesApiFp = function(configuration?: Configuration) {
237237
* @param {*} [options] Override http request option.
238238
* @throws {RequiredError}
239239
*/
240-
async apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaCostList>> {
240+
async apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaCostList>> {
241241
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId, search, fetchRelatedResources, options);
242242
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
243243
},
@@ -248,7 +248,7 @@ export const AppServicesApiFp = function(configuration?: Configuration) {
248248
* @param {*} [options] Override http request option.
249249
* @throws {RequiredError}
250250
*/
251-
async apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TermsReviewResponse>> {
251+
async apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TermsReviewResponse>> {
252252
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options);
253253
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
254254
},
@@ -319,7 +319,7 @@ export interface AppServicesApiInterface {
319319
* @throws {RequiredError}
320320
* @memberof AppServicesApiInterface
321321
*/
322-
apiAccountsMgmtV1AccessTokenPost(options?: any): AxiosPromise<AccessTokenCfg>;
322+
apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig): AxiosPromise<AccessTokenCfg>;
323323

324324
/**
325325
*
@@ -329,7 +329,7 @@ export interface AppServicesApiInterface {
329329
* @throws {RequiredError}
330330
* @memberof AppServicesApiInterface
331331
*/
332-
apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: any): AxiosPromise<Account>;
332+
apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig): AxiosPromise<Account>;
333333

334334
/**
335335
*
@@ -341,7 +341,7 @@ export interface AppServicesApiInterface {
341341
* @throws {RequiredError}
342342
* @memberof AppServicesApiInterface
343343
*/
344-
apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: any): AxiosPromise<QuotaCostList>;
344+
apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: AxiosRequestConfig): AxiosPromise<QuotaCostList>;
345345

346346
/**
347347
*
@@ -351,7 +351,7 @@ export interface AppServicesApiInterface {
351351
* @throws {RequiredError}
352352
* @memberof AppServicesApiInterface
353353
*/
354-
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise<TermsReviewResponse>;
354+
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig): AxiosPromise<TermsReviewResponse>;
355355

356356
}
357357

@@ -369,7 +369,7 @@ export class AppServicesApi extends BaseAPI implements AppServicesApiInterface {
369369
* @throws {RequiredError}
370370
* @memberof AppServicesApi
371371
*/
372-
public apiAccountsMgmtV1AccessTokenPost(options?: any) {
372+
public apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig) {
373373
return AppServicesApiFp(this.configuration).apiAccountsMgmtV1AccessTokenPost(options).then((request) => request(this.axios, this.basePath));
374374
}
375375

@@ -381,7 +381,7 @@ export class AppServicesApi extends BaseAPI implements AppServicesApiInterface {
381381
* @throws {RequiredError}
382382
* @memberof AppServicesApi
383383
*/
384-
public apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: any) {
384+
public apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig) {
385385
return AppServicesApiFp(this.configuration).apiAccountsMgmtV1CurrentAccountGet(fetchLabels, options).then((request) => request(this.axios, this.basePath));
386386
}
387387

@@ -395,7 +395,7 @@ export class AppServicesApi extends BaseAPI implements AppServicesApiInterface {
395395
* @throws {RequiredError}
396396
* @memberof AppServicesApi
397397
*/
398-
public apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: any) {
398+
public apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, options?: AxiosRequestConfig) {
399399
return AppServicesApiFp(this.configuration).apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId, search, fetchRelatedResources, options).then((request) => request(this.axios, this.basePath));
400400
}
401401

@@ -407,7 +407,7 @@ export class AppServicesApi extends BaseAPI implements AppServicesApiInterface {
407407
* @throws {RequiredError}
408408
* @memberof AppServicesApi
409409
*/
410-
public apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any) {
410+
public apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig) {
411411
return AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(this.axios, this.basePath));
412412
}
413413
}

packages/account-management-sdk/src/generated/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import { Configuration } from "./configuration";
1717
// Some imports not used depending on template conditions
1818
// @ts-ignore
19-
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
19+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
2020

2121
export const BASE_PATH = "https://api.openshift.com".replace(/\/+$/, "");
2222

@@ -38,7 +38,7 @@ export const COLLECTION_FORMATS = {
3838
*/
3939
export interface RequestArgs {
4040
url: string;
41-
options: any;
41+
options: AxiosRequestConfig;
4242
}
4343

4444
/**

packages/account-management-sdk/src/generated/common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515

1616
import { Configuration } from "./configuration";
17-
import { RequiredError, RequestArgs } from "./base";
18-
import { AxiosInstance } from 'axios';
17+
import { RequiredError, RequestArgs } from "./base";
18+
import { AxiosInstance, AxiosResponse } from 'axios';
1919

2020
/**
2121
*
@@ -131,8 +131,8 @@ export const toPathString = function (url: URL) {
131131
* @export
132132
*/
133133
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
134-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
134+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
135135
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
136-
return axios.request(axiosRequestArgs);
136+
return axios.request<T, R>(axiosRequestArgs);
137137
};
138138
}

0 commit comments

Comments
 (0)