feat(api): add ck-api and related models for JD cookie management

This commit introduces a new API endpoint `ck-api` for managing JD cookies, including operations for adding, updating, deleting, and listing JD cookies. Additionally, several new models have been added to support these operations. The package manager version in `package.json` has also been updated to ensure compatibility.
This commit is contained in:
danial
2025-04-05 16:35:20 +08:00
parent 66caa6b214
commit e8810af15f
14 changed files with 1095 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ export default {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 200],
'body-max-line-length': [2, 'always', 400],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 200],
'subject-empty': [2, 'never'],

View File

@@ -125,5 +125,5 @@
"bin-wrapper": "npm:bin-wrapper-china",
"gifsicle": "5.2.0"
},
"packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6"
"packageManager": "pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
}

View File

@@ -1,6 +1,7 @@
.gitignore
.npmignore
api.ts
apis/ck-api.ts
apis/default-api.ts
apis/totpapi.ts
base.ts
@@ -199,6 +200,13 @@ models/kami-api-card-info-walmart-v1-order-summary-record.ts
models/kami-api-card-info-walmart-v1-redeem-config-get-res.ts
models/kami-api-card-info-walmart-v1-redeem-config-set-req.ts
models/kami-api-card-info-walmart-v1-submit-req.ts
models/kami-api-card-redeem-jd-v1-account-add-req.ts
models/kami-api-card-redeem-jd-v1-account-delete-req.ts
models/kami-api-card-redeem-jd-v1-account-get-req.ts
models/kami-api-card-redeem-jd-v1-account-get-res.ts
models/kami-api-card-redeem-jd-v1-account-list-req.ts
models/kami-api-card-redeem-jd-v1-account-list-res.ts
models/kami-api-card-redeem-jd-v1-account-update-req.ts
models/kami-api-channel-v2-entrance-create-req.ts
models/kami-api-channel-v2-entrance-delete-req.ts
models/kami-api-channel-v2-entrance-list-req.ts
@@ -306,6 +314,7 @@ models/kami-internal-model-entity-v1-card-apple-history-info.ts
models/kami-internal-model-entity-v1-card-apple-recharge-info.ts
models/kami-internal-model-entity-v1-card-redeem-account-group.ts
models/kami-internal-model-entity-v1-card-redeem-account-history.ts
models/kami-internal-model-entity-v1-card-redeem-cookie-info.ts
models/kami-internal-model-entity-v1-card-redeem-order-history.ts
models/kami-internal-model-entity-v1-card-redeem-order-info.ts
models/kami-internal-model-entity-v1-merchant-hidden-record.ts

View File

@@ -1,19 +1,17 @@
/* tslint:disable */
/* eslint-disable */
/**
*
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
* 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 * from './apis/default-api';
export * from './apis/ck-api';
export * from './apis/totpapi';

View File

@@ -0,0 +1,687 @@
/* tslint:disable */
/* eslint-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.
*/
import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction
} from '../common';
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
type RequestArgs,
BaseAPI,
RequiredError,
operationServerMap
} from '../base';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountAddReq } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountGetRes } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountListRes } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountUpdateReq } from '../models';
/**
* CkApi - axios parameter creator
* @export
*/
export const CkApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary 获取京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoIdAccountGetGet: async (
id: number,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('apiCookieInfoIdAccountGetGet', 'id', id);
const localVarPath = `/api/cookieInfo/id/account/get`;
// 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: 'GET',
...baseOptions,
...options
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (id !== undefined) {
localVarQueryParameter['id'] = id;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 添加京东ck
* @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountAddPost: async (
kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/cookieInfo/jd/account/add`;
// 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: 'POST',
...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(
kamiApiCardRedeemJdV1AccountAddReq,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 删除京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountDeleteDelete: async (
id: number,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('apiCookieInfoJdAccountDeleteDelete', 'id', id);
const localVarPath = `/api/cookieInfo/jd/account/delete`;
// 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: 'DELETE',
...baseOptions,
...options
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (id !== undefined) {
localVarQueryParameter['id'] = id;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 获取京东ck列表
* @param {number} current 页数
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountListGet: async (
current: number,
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'current' is not null or undefined
assertParamExists('apiCookieInfoJdAccountListGet', 'current', current);
// verify required parameter 'pageSize' is not null or undefined
assertParamExists('apiCookieInfoJdAccountListGet', 'pageSize', pageSize);
const localVarPath = `/api/cookieInfo/jd/account/list`;
// 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: 'GET',
...baseOptions,
...options
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (current !== undefined) {
localVarQueryParameter['current'] = current;
}
if (pageSize !== undefined) {
localVarQueryParameter['pageSize'] = pageSize;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
},
/**
*
* @summary 更新京东ck
* @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountUpdatePut: async (
kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/cookieInfo/jd/account/update`;
// 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(
kamiApiCardRedeemJdV1AccountUpdateReq,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions
};
}
};
};
/**
* CkApi - functional programming interface
* @export
*/
export const CkApiFp = function (configuration?: Configuration) {
const localVarAxiosParamCreator = CkApiAxiosParamCreator(configuration);
return {
/**
*
* @summary 获取京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCookieInfoIdAccountGetGet(
id: number,
options?: RawAxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<KamiApiCardRedeemJdV1AccountGetRes>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCookieInfoIdAccountGetGet(
id,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['CkApi.apiCookieInfoIdAccountGetGet']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 添加京东ck
* @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
options?: RawAxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['CkApi.apiCookieInfoJdAccountAddPost']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 删除京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCookieInfoJdAccountDeleteDelete(
id: number,
options?: RawAxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCookieInfoJdAccountDeleteDelete(
id,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['CkApi.apiCookieInfoJdAccountDeleteDelete']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 获取京东ck列表
* @param {number} current 页数
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCookieInfoJdAccountListGet(
current: number,
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
options?: RawAxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<KamiApiCardRedeemJdV1AccountListRes>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCookieInfoJdAccountListGet(
current,
pageSize,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['CkApi.apiCookieInfoJdAccountListGet']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary 更新京东ck
* @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
options?: RawAxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq,
options
);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
operationServerMap['CkApi.apiCookieInfoJdAccountUpdatePut']?.[
localVarOperationServerIndex
]?.url;
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
)(axios, localVarOperationServerBasePath || basePath);
}
};
};
/**
* CkApi - factory interface
* @export
*/
export const CkApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = CkApiFp(configuration);
return {
/**
*
* @summary 获取京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoIdAccountGetGet(
id: number,
options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiCardRedeemJdV1AccountGetRes> {
return localVarFp
.apiCookieInfoIdAccountGetGet(id, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 添加京东ck
* @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
options?: RawAxiosRequestConfig
): AxiosPromise<object> {
return localVarFp
.apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq,
options
)
.then(request => request(axios, basePath));
},
/**
*
* @summary 删除京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountDeleteDelete(
id: number,
options?: RawAxiosRequestConfig
): AxiosPromise<object> {
return localVarFp
.apiCookieInfoJdAccountDeleteDelete(id, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 获取京东ck列表
* @param {number} current 页数
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountListGet(
current: number,
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiCardRedeemJdV1AccountListRes> {
return localVarFp
.apiCookieInfoJdAccountListGet(current, pageSize, options)
.then(request => request(axios, basePath));
},
/**
*
* @summary 更新京东ck
* @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
options?: RawAxiosRequestConfig
): AxiosPromise<object> {
return localVarFp
.apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq,
options
)
.then(request => request(axios, basePath));
}
};
};
/**
* CkApi - object-oriented interface
* @export
* @class CkApi
* @extends {BaseAPI}
*/
export class CkApi extends BaseAPI {
/**
*
* @summary 获取京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CkApi
*/
public apiCookieInfoIdAccountGetGet(
id: number,
options?: RawAxiosRequestConfig
) {
return CkApiFp(this.configuration)
.apiCookieInfoIdAccountGetGet(id, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 添加京东ck
* @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CkApi
*/
public apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
options?: RawAxiosRequestConfig
) {
return CkApiFp(this.configuration)
.apiCookieInfoJdAccountAddPost(
kamiApiCardRedeemJdV1AccountAddReq,
options
)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 删除京东ck
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CkApi
*/
public apiCookieInfoJdAccountDeleteDelete(
id: number,
options?: RawAxiosRequestConfig
) {
return CkApiFp(this.configuration)
.apiCookieInfoJdAccountDeleteDelete(id, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 获取京东ck列表
* @param {number} current 页数
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CkApi
*/
public apiCookieInfoJdAccountListGet(
current: number,
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
options?: RawAxiosRequestConfig
) {
return CkApiFp(this.configuration)
.apiCookieInfoJdAccountListGet(current, pageSize, options)
.then(request => request(this.axios, this.basePath));
}
/**
*
* @summary 更新京东ck
* @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CkApi
*/
public apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
options?: RawAxiosRequestConfig
) {
return CkApiFp(this.configuration)
.apiCookieInfoJdAccountUpdatePut(
kamiApiCardRedeemJdV1AccountUpdateReq,
options
)
.then(request => request(this.axios, this.basePath));
}
}
/**
* @export
*/
export const ApiCookieInfoJdAccountListGetPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type ApiCookieInfoJdAccountListGetPageSizeEnum =
(typeof ApiCookieInfoJdAccountListGetPageSizeEnum)[keyof typeof ApiCookieInfoJdAccountListGetPageSizeEnum];

View File

@@ -188,6 +188,13 @@ export * from './kami-api-card-info-walmart-v1-order-summary-record';
export * from './kami-api-card-info-walmart-v1-redeem-config-get-res';
export * from './kami-api-card-info-walmart-v1-redeem-config-set-req';
export * from './kami-api-card-info-walmart-v1-submit-req';
export * from './kami-api-card-redeem-jd-v1-account-add-req';
export * from './kami-api-card-redeem-jd-v1-account-delete-req';
export * from './kami-api-card-redeem-jd-v1-account-get-req';
export * from './kami-api-card-redeem-jd-v1-account-get-res';
export * from './kami-api-card-redeem-jd-v1-account-list-req';
export * from './kami-api-card-redeem-jd-v1-account-list-res';
export * from './kami-api-card-redeem-jd-v1-account-update-req';
export * from './kami-api-channel-v2-entrance-create-req';
export * from './kami-api-channel-v2-entrance-delete-req';
export * from './kami-api-channel-v2-entrance-list-req';
@@ -295,6 +302,7 @@ export * from './kami-internal-model-entity-v1-card-apple-history-info';
export * from './kami-internal-model-entity-v1-card-apple-recharge-info';
export * from './kami-internal-model-entity-v1-card-redeem-account-group';
export * from './kami-internal-model-entity-v1-card-redeem-account-history';
export * from './kami-internal-model-entity-v1-card-redeem-cookie-info';
export * from './kami-internal-model-entity-v1-card-redeem-order-history';
export * from './kami-internal-model-entity-v1-card-redeem-order-info';
export * from './kami-internal-model-entity-v1-merchant-hidden-record';

View File

@@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-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 KamiApiCardRedeemJdV1AccountAddReq
*/
export interface KamiApiCardRedeemJdV1AccountAddReq {
/**
* 用户名
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountAddReq
*/
name: string;
/**
* cookie
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountAddReq
*/
cookie: string;
/**
* 状态
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountAddReq
*/
status: KamiApiCardRedeemJdV1AccountAddReqStatusEnum;
}
export const KamiApiCardRedeemJdV1AccountAddReqStatusEnum = {
Jd: 'jd'
} as const;
export type KamiApiCardRedeemJdV1AccountAddReqStatusEnum =
(typeof KamiApiCardRedeemJdV1AccountAddReqStatusEnum)[keyof typeof KamiApiCardRedeemJdV1AccountAddReqStatusEnum];

View File

@@ -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 KamiApiCardRedeemJdV1AccountDeleteReq
*/
export interface KamiApiCardRedeemJdV1AccountDeleteReq {
/**
*
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountDeleteReq
*/
id: number;
}

View File

@@ -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 KamiApiCardRedeemJdV1AccountGetReq
*/
export interface KamiApiCardRedeemJdV1AccountGetReq {
/**
*
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountGetReq
*/
id: number;
}

View File

@@ -0,0 +1,75 @@
/* 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 KamiApiCardRedeemJdV1AccountGetRes
*/
export interface KamiApiCardRedeemJdV1AccountGetRes {
/**
*
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
id?: number;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
name?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
cookie?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
notes?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
status?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
category?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountGetRes
*/
deletedAt?: string;
}

View File

@@ -0,0 +1,45 @@
/* tslint:disable */
/* eslint-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 KamiApiCardRedeemJdV1AccountListReq
*/
export interface KamiApiCardRedeemJdV1AccountListReq {
/**
* 页数
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountListReq
*/
pageSize: KamiApiCardRedeemJdV1AccountListReqPageSizeEnum;
}
export const KamiApiCardRedeemJdV1AccountListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiCardRedeemJdV1AccountListReqPageSizeEnum =
(typeof KamiApiCardRedeemJdV1AccountListReqPageSizeEnum)[keyof typeof KamiApiCardRedeemJdV1AccountListReqPageSizeEnum];

View File

@@ -0,0 +1,37 @@
/* 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.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { KamiInternalModelEntityV1CardRedeemCookieInfo } from './kami-internal-model-entity-v1-card-redeem-cookie-info';
/**
*
* @export
* @interface KamiApiCardRedeemJdV1AccountListRes
*/
export interface KamiApiCardRedeemJdV1AccountListRes {
/**
*
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountListRes
*/
total?: number;
/**
*
* @type {Array<KamiInternalModelEntityV1CardRedeemCookieInfo>}
* @memberof KamiApiCardRedeemJdV1AccountListRes
*/
list?: Array<KamiInternalModelEntityV1CardRedeemCookieInfo>;
}

View File

@@ -0,0 +1,52 @@
/* tslint:disable */
/* eslint-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 KamiApiCardRedeemJdV1AccountUpdateReq
*/
export interface KamiApiCardRedeemJdV1AccountUpdateReq {
/**
* 用户名
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountUpdateReq
*/
name: string;
/**
* cookie
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountUpdateReq
*/
cookie: string;
/**
* 状态
* @type {string}
* @memberof KamiApiCardRedeemJdV1AccountUpdateReq
*/
status: KamiApiCardRedeemJdV1AccountUpdateReqStatusEnum;
/**
*
* @type {number}
* @memberof KamiApiCardRedeemJdV1AccountUpdateReq
*/
id: number;
}
export const KamiApiCardRedeemJdV1AccountUpdateReqStatusEnum = {
Jd: 'jd'
} as const;
export type KamiApiCardRedeemJdV1AccountUpdateReqStatusEnum =
(typeof KamiApiCardRedeemJdV1AccountUpdateReqStatusEnum)[keyof typeof KamiApiCardRedeemJdV1AccountUpdateReqStatusEnum];

View File

@@ -0,0 +1,75 @@
/* 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 KamiInternalModelEntityV1CardRedeemCookieInfo
*/
export interface KamiInternalModelEntityV1CardRedeemCookieInfo {
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
id?: number;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
name?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
cookie?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
notes?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
status?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
category?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardRedeemCookieInfo
*/
deletedAt?: string;
}