build(api): 生成 API 客户端代码
- 更新 API 模型,新增 account-status-reset-req.ts 文件 - 修改 API 导出,添加 totpapi 导出 - 更新 ESLint 注释,移除 TSLint 注释
This commit is contained in:
@@ -175,6 +175,7 @@ models/kami-api-card-info-walmart-v1-account-load-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-refresh-status-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-status-detect-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-status-detect-res.ts
|
||||
models/kami-api-card-info-walmart-v1-account-status-reset-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-summary-download-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-update-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-update-status-req.ts
|
||||
|
||||
@@ -251,6 +251,8 @@ import type { KamiApiCardInfoWalmartV1AccountRefreshStatusReq } from '../models'
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountStatusDetectRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountStatusResetReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountUpdateReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountUpdateStatusReq } from '../models';
|
||||
@@ -5231,6 +5233,54 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 重置账户状态
|
||||
* @param {KamiApiCardInfoWalmartV1AccountStatusResetReq} [kamiApiCardInfoWalmartV1AccountStatusResetReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountStatusResetPut: async (
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq?: KamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cardInfo/walmart/account/statusReset`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = {
|
||||
method: 'PUT',
|
||||
...baseOptions,
|
||||
...options
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
@@ -13371,6 +13421,37 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 重置账户状态
|
||||
* @param {KamiApiCardInfoWalmartV1AccountStatusResetReq} [kamiApiCardInfoWalmartV1AccountStatusResetReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq?: KamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap[
|
||||
'DefaultApi.apiCardInfoWalmartAccountStatusResetPut'
|
||||
]?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
@@ -18405,6 +18486,24 @@ export const DefaultApiFactory = function (
|
||||
.apiCardInfoWalmartAccountStatusDetectGet(id, options)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 重置账户状态
|
||||
* @param {KamiApiCardInfoWalmartV1AccountStatusResetReq} [kamiApiCardInfoWalmartV1AccountStatusResetReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq?: KamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object> {
|
||||
return localVarFp
|
||||
.apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
@@ -22044,6 +22143,26 @@ export class DefaultApi extends BaseAPI {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 重置账户状态
|
||||
* @param {KamiApiCardInfoWalmartV1AccountStatusResetReq} [kamiApiCardInfoWalmartV1AccountStatusResetReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DefaultApi
|
||||
*/
|
||||
public apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq?: KamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoWalmartAccountStatusResetPut(
|
||||
kamiApiCardInfoWalmartV1AccountStatusResetReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
|
||||
@@ -164,6 +164,7 @@ export * from './kami-api-card-info-walmart-v1-account-load-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-refresh-status-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-status-detect-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-status-detect-res';
|
||||
export * from './kami-api-card-info-walmart-v1-account-status-reset-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-summary-download-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-update-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-update-status-req';
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* tslint:disable */
|
||||
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1AccountStatusResetReq
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountStatusResetReq {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountStatusResetReq
|
||||
*/
|
||||
id: string;
|
||||
}
|
||||
Reference in New Issue
Block a user