@cherryin/api-client 0.0.5 → 0.0.7
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/.openapi-generator/FILES +0 -5
- package/README.md +2 -7
- package/api.ts +85 -123
- package/dist/api.d.ts +50 -83
- package/dist/api.js +70 -75
- package/dist/esm/api.d.ts +50 -83
- package/dist/esm/api.js +70 -75
- package/docs/DiscountAdminServiceApi.md +6 -7
- package/docs/ProviderAdminServiceApi.md +6 -7
- package/docs/ProviderModelAdminServiceApi.md +6 -7
- package/docs/RemoteConfigAdminServiceApi.md +6 -7
- package/docs/UserLabelServiceApi.md +6 -7
- package/package.json +1 -1
- package/docs/DiscountDeleteRequest.md +0 -20
- package/docs/LabelDeleteRequest.md +0 -20
- package/docs/ProviderDeleteRequest.md +0 -21
- package/docs/ProviderModelDeleteRequest.md +0 -21
- package/docs/RemoteConfigItemDeleteRequest.md +0 -20
package/dist/esm/api.js
CHANGED
|
@@ -2698,13 +2698,11 @@ export const DiscountAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
2698
2698
|
}),
|
|
2699
2699
|
/**
|
|
2700
2700
|
* DiscountDelete 删除折扣接口
|
|
2701
|
-
* @param {
|
|
2701
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2702
2702
|
* @param {*} [options] Override http request option.
|
|
2703
2703
|
* @throws {RequiredError}
|
|
2704
2704
|
*/
|
|
2705
|
-
discountAdminServiceDiscountDelete: (
|
|
2706
|
-
// verify required parameter 'discountDeleteRequest' is not null or undefined
|
|
2707
|
-
assertParamExists('discountAdminServiceDiscountDelete', 'discountDeleteRequest', discountDeleteRequest);
|
|
2705
|
+
discountAdminServiceDiscountDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2708
2706
|
const localVarPath = `/admin/discount/delete`;
|
|
2709
2707
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2710
2708
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2715,11 +2713,12 @@ export const DiscountAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
2715
2713
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2716
2714
|
const localVarHeaderParameter = {};
|
|
2717
2715
|
const localVarQueryParameter = {};
|
|
2718
|
-
|
|
2716
|
+
if (id !== undefined) {
|
|
2717
|
+
localVarQueryParameter['id'] = id;
|
|
2718
|
+
}
|
|
2719
2719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2720
2720
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2721
2721
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2722
|
-
localVarRequestOptions.data = serializeDataIfNeeded(discountDeleteRequest, localVarRequestOptions, configuration);
|
|
2723
2722
|
return {
|
|
2724
2723
|
url: toPathString(localVarUrlObj),
|
|
2725
2724
|
options: localVarRequestOptions,
|
|
@@ -2843,14 +2842,14 @@ export const DiscountAdminServiceApiFp = function (configuration) {
|
|
|
2843
2842
|
},
|
|
2844
2843
|
/**
|
|
2845
2844
|
* DiscountDelete 删除折扣接口
|
|
2846
|
-
* @param {
|
|
2845
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2847
2846
|
* @param {*} [options] Override http request option.
|
|
2848
2847
|
* @throws {RequiredError}
|
|
2849
2848
|
*/
|
|
2850
|
-
discountAdminServiceDiscountDelete(
|
|
2849
|
+
discountAdminServiceDiscountDelete(id, options) {
|
|
2851
2850
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2852
2851
|
var _a, _b, _c;
|
|
2853
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(
|
|
2852
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(id, options);
|
|
2854
2853
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2855
2854
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2856
2855
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2922,12 +2921,12 @@ export const DiscountAdminServiceApiFactory = function (configuration, basePath,
|
|
|
2922
2921
|
},
|
|
2923
2922
|
/**
|
|
2924
2923
|
* DiscountDelete 删除折扣接口
|
|
2925
|
-
* @param {
|
|
2924
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2926
2925
|
* @param {*} [options] Override http request option.
|
|
2927
2926
|
* @throws {RequiredError}
|
|
2928
2927
|
*/
|
|
2929
|
-
discountAdminServiceDiscountDelete(
|
|
2930
|
-
return localVarFp.discountAdminServiceDiscountDelete(
|
|
2928
|
+
discountAdminServiceDiscountDelete(id, options) {
|
|
2929
|
+
return localVarFp.discountAdminServiceDiscountDelete(id, options).then((request) => request(axios, basePath));
|
|
2931
2930
|
},
|
|
2932
2931
|
/**
|
|
2933
2932
|
* DiscountGet 获取折扣接口
|
|
@@ -2975,12 +2974,12 @@ export class DiscountAdminServiceApi extends BaseAPI {
|
|
|
2975
2974
|
}
|
|
2976
2975
|
/**
|
|
2977
2976
|
* DiscountDelete 删除折扣接口
|
|
2978
|
-
* @param {
|
|
2977
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2979
2978
|
* @param {*} [options] Override http request option.
|
|
2980
2979
|
* @throws {RequiredError}
|
|
2981
2980
|
*/
|
|
2982
|
-
discountAdminServiceDiscountDelete(
|
|
2983
|
-
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountDelete(
|
|
2981
|
+
discountAdminServiceDiscountDelete(id, options) {
|
|
2982
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2984
2983
|
}
|
|
2985
2984
|
/**
|
|
2986
2985
|
* DiscountGet 获取折扣接口
|
|
@@ -3048,13 +3047,11 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
3048
3047
|
}),
|
|
3049
3048
|
/**
|
|
3050
3049
|
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3051
|
-
* @param {
|
|
3050
|
+
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3052
3051
|
* @param {*} [options] Override http request option.
|
|
3053
3052
|
* @throws {RequiredError}
|
|
3054
3053
|
*/
|
|
3055
|
-
providerAdminServiceProviderDelete: (
|
|
3056
|
-
// verify required parameter 'providerDeleteRequest' is not null or undefined
|
|
3057
|
-
assertParamExists('providerAdminServiceProviderDelete', 'providerDeleteRequest', providerDeleteRequest);
|
|
3054
|
+
providerAdminServiceProviderDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3058
3055
|
const localVarPath = `/admin/provider/delete`;
|
|
3059
3056
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3060
3057
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3065,11 +3062,12 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
3065
3062
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3066
3063
|
const localVarHeaderParameter = {};
|
|
3067
3064
|
const localVarQueryParameter = {};
|
|
3068
|
-
|
|
3065
|
+
if (id !== undefined) {
|
|
3066
|
+
localVarQueryParameter['id'] = id;
|
|
3067
|
+
}
|
|
3069
3068
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3070
3069
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3071
3070
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3072
|
-
localVarRequestOptions.data = serializeDataIfNeeded(providerDeleteRequest, localVarRequestOptions, configuration);
|
|
3073
3071
|
return {
|
|
3074
3072
|
url: toPathString(localVarUrlObj),
|
|
3075
3073
|
options: localVarRequestOptions,
|
|
@@ -3197,14 +3195,14 @@ export const ProviderAdminServiceApiFp = function (configuration) {
|
|
|
3197
3195
|
},
|
|
3198
3196
|
/**
|
|
3199
3197
|
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3200
|
-
* @param {
|
|
3198
|
+
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3201
3199
|
* @param {*} [options] Override http request option.
|
|
3202
3200
|
* @throws {RequiredError}
|
|
3203
3201
|
*/
|
|
3204
|
-
providerAdminServiceProviderDelete(
|
|
3202
|
+
providerAdminServiceProviderDelete(id, options) {
|
|
3205
3203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3206
3204
|
var _a, _b, _c;
|
|
3207
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(
|
|
3205
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(id, options);
|
|
3208
3206
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3209
3207
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3210
3208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3277,12 +3275,12 @@ export const ProviderAdminServiceApiFactory = function (configuration, basePath,
|
|
|
3277
3275
|
},
|
|
3278
3276
|
/**
|
|
3279
3277
|
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3280
|
-
* @param {
|
|
3278
|
+
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3281
3279
|
* @param {*} [options] Override http request option.
|
|
3282
3280
|
* @throws {RequiredError}
|
|
3283
3281
|
*/
|
|
3284
|
-
providerAdminServiceProviderDelete(
|
|
3285
|
-
return localVarFp.providerAdminServiceProviderDelete(
|
|
3282
|
+
providerAdminServiceProviderDelete(id, options) {
|
|
3283
|
+
return localVarFp.providerAdminServiceProviderDelete(id, options).then((request) => request(axios, basePath));
|
|
3286
3284
|
},
|
|
3287
3285
|
/**
|
|
3288
3286
|
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
@@ -3331,12 +3329,12 @@ export class ProviderAdminServiceApi extends BaseAPI {
|
|
|
3331
3329
|
}
|
|
3332
3330
|
/**
|
|
3333
3331
|
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3334
|
-
* @param {
|
|
3332
|
+
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3335
3333
|
* @param {*} [options] Override http request option.
|
|
3336
3334
|
* @throws {RequiredError}
|
|
3337
3335
|
*/
|
|
3338
|
-
providerAdminServiceProviderDelete(
|
|
3339
|
-
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderDelete(
|
|
3336
|
+
providerAdminServiceProviderDelete(id, options) {
|
|
3337
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3340
3338
|
}
|
|
3341
3339
|
/**
|
|
3342
3340
|
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
@@ -3405,13 +3403,11 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
3405
3403
|
}),
|
|
3406
3404
|
/**
|
|
3407
3405
|
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3408
|
-
* @param {
|
|
3406
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3409
3407
|
* @param {*} [options] Override http request option.
|
|
3410
3408
|
* @throws {RequiredError}
|
|
3411
3409
|
*/
|
|
3412
|
-
providerModelAdminServiceProviderModelDelete: (
|
|
3413
|
-
// verify required parameter 'providerModelDeleteRequest' is not null or undefined
|
|
3414
|
-
assertParamExists('providerModelAdminServiceProviderModelDelete', 'providerModelDeleteRequest', providerModelDeleteRequest);
|
|
3410
|
+
providerModelAdminServiceProviderModelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3415
3411
|
const localVarPath = `/admin/provider-model/delete`;
|
|
3416
3412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3417
3413
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3422,11 +3418,12 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
3422
3418
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3423
3419
|
const localVarHeaderParameter = {};
|
|
3424
3420
|
const localVarQueryParameter = {};
|
|
3425
|
-
|
|
3421
|
+
if (id !== undefined) {
|
|
3422
|
+
localVarQueryParameter['id'] = id;
|
|
3423
|
+
}
|
|
3426
3424
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3427
3425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3428
3426
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3429
|
-
localVarRequestOptions.data = serializeDataIfNeeded(providerModelDeleteRequest, localVarRequestOptions, configuration);
|
|
3430
3427
|
return {
|
|
3431
3428
|
url: toPathString(localVarUrlObj),
|
|
3432
3429
|
options: localVarRequestOptions,
|
|
@@ -3558,14 +3555,14 @@ export const ProviderModelAdminServiceApiFp = function (configuration) {
|
|
|
3558
3555
|
},
|
|
3559
3556
|
/**
|
|
3560
3557
|
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3561
|
-
* @param {
|
|
3558
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3562
3559
|
* @param {*} [options] Override http request option.
|
|
3563
3560
|
* @throws {RequiredError}
|
|
3564
3561
|
*/
|
|
3565
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3562
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3566
3563
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3567
3564
|
var _a, _b, _c;
|
|
3568
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(
|
|
3565
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(id, options);
|
|
3569
3566
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3570
3567
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3571
3568
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3639,12 +3636,12 @@ export const ProviderModelAdminServiceApiFactory = function (configuration, base
|
|
|
3639
3636
|
},
|
|
3640
3637
|
/**
|
|
3641
3638
|
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3642
|
-
* @param {
|
|
3639
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3643
3640
|
* @param {*} [options] Override http request option.
|
|
3644
3641
|
* @throws {RequiredError}
|
|
3645
3642
|
*/
|
|
3646
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3647
|
-
return localVarFp.providerModelAdminServiceProviderModelDelete(
|
|
3643
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3644
|
+
return localVarFp.providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(axios, basePath));
|
|
3648
3645
|
},
|
|
3649
3646
|
/**
|
|
3650
3647
|
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
@@ -3694,12 +3691,12 @@ export class ProviderModelAdminServiceApi extends BaseAPI {
|
|
|
3694
3691
|
}
|
|
3695
3692
|
/**
|
|
3696
3693
|
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3697
|
-
* @param {
|
|
3694
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3698
3695
|
* @param {*} [options] Override http request option.
|
|
3699
3696
|
* @throws {RequiredError}
|
|
3700
3697
|
*/
|
|
3701
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3702
|
-
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelDelete(
|
|
3698
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3699
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3703
3700
|
}
|
|
3704
3701
|
/**
|
|
3705
3702
|
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
@@ -3769,13 +3766,11 @@ export const RemoteConfigAdminServiceApiAxiosParamCreator = function (configurat
|
|
|
3769
3766
|
}),
|
|
3770
3767
|
/**
|
|
3771
3768
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3772
|
-
* @param {
|
|
3769
|
+
* @param {string} [key]
|
|
3773
3770
|
* @param {*} [options] Override http request option.
|
|
3774
3771
|
* @throws {RequiredError}
|
|
3775
3772
|
*/
|
|
3776
|
-
remoteConfigAdminServiceRemoteConfigItemDelete: (
|
|
3777
|
-
// verify required parameter 'remoteConfigItemDeleteRequest' is not null or undefined
|
|
3778
|
-
assertParamExists('remoteConfigAdminServiceRemoteConfigItemDelete', 'remoteConfigItemDeleteRequest', remoteConfigItemDeleteRequest);
|
|
3773
|
+
remoteConfigAdminServiceRemoteConfigItemDelete: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
3779
3774
|
const localVarPath = `/admin/remote-config/delete`;
|
|
3780
3775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3781
3776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3786,11 +3781,12 @@ export const RemoteConfigAdminServiceApiAxiosParamCreator = function (configurat
|
|
|
3786
3781
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3787
3782
|
const localVarHeaderParameter = {};
|
|
3788
3783
|
const localVarQueryParameter = {};
|
|
3789
|
-
|
|
3784
|
+
if (key !== undefined) {
|
|
3785
|
+
localVarQueryParameter['key'] = key;
|
|
3786
|
+
}
|
|
3790
3787
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3791
3788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
3789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3793
|
-
localVarRequestOptions.data = serializeDataIfNeeded(remoteConfigItemDeleteRequest, localVarRequestOptions, configuration);
|
|
3794
3790
|
return {
|
|
3795
3791
|
url: toPathString(localVarUrlObj),
|
|
3796
3792
|
options: localVarRequestOptions,
|
|
@@ -3922,14 +3918,14 @@ export const RemoteConfigAdminServiceApiFp = function (configuration) {
|
|
|
3922
3918
|
},
|
|
3923
3919
|
/**
|
|
3924
3920
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3925
|
-
* @param {
|
|
3921
|
+
* @param {string} [key]
|
|
3926
3922
|
* @param {*} [options] Override http request option.
|
|
3927
3923
|
* @throws {RequiredError}
|
|
3928
3924
|
*/
|
|
3929
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
3925
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
3930
3926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3931
3927
|
var _a, _b, _c;
|
|
3932
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
3928
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(key, options);
|
|
3933
3929
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3934
3930
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3935
3931
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4003,12 +3999,12 @@ export const RemoteConfigAdminServiceApiFactory = function (configuration, baseP
|
|
|
4003
3999
|
},
|
|
4004
4000
|
/**
|
|
4005
4001
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
4006
|
-
* @param {
|
|
4002
|
+
* @param {string} [key]
|
|
4007
4003
|
* @param {*} [options] Override http request option.
|
|
4008
4004
|
* @throws {RequiredError}
|
|
4009
4005
|
*/
|
|
4010
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4011
|
-
return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4006
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
4007
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(axios, basePath));
|
|
4012
4008
|
},
|
|
4013
4009
|
/**
|
|
4014
4010
|
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
@@ -4058,12 +4054,12 @@ export class RemoteConfigAdminServiceApi extends BaseAPI {
|
|
|
4058
4054
|
}
|
|
4059
4055
|
/**
|
|
4060
4056
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
4061
|
-
* @param {
|
|
4057
|
+
* @param {string} [key]
|
|
4062
4058
|
* @param {*} [options] Override http request option.
|
|
4063
4059
|
* @throws {RequiredError}
|
|
4064
4060
|
*/
|
|
4065
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4066
|
-
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4061
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
4062
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(this.axios, this.basePath));
|
|
4067
4063
|
}
|
|
4068
4064
|
/**
|
|
4069
4065
|
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
@@ -4855,13 +4851,11 @@ export const UserLabelServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4855
4851
|
}),
|
|
4856
4852
|
/**
|
|
4857
4853
|
*
|
|
4858
|
-
* @param {
|
|
4854
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
4859
4855
|
* @param {*} [options] Override http request option.
|
|
4860
4856
|
* @throws {RequiredError}
|
|
4861
4857
|
*/
|
|
4862
|
-
userLabelServiceLabelDelete: (
|
|
4863
|
-
// verify required parameter 'labelDeleteRequest' is not null or undefined
|
|
4864
|
-
assertParamExists('userLabelServiceLabelDelete', 'labelDeleteRequest', labelDeleteRequest);
|
|
4858
|
+
userLabelServiceLabelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
4865
4859
|
const localVarPath = `/admin/label/delete`;
|
|
4866
4860
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4867
4861
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4872,11 +4866,12 @@ export const UserLabelServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4872
4866
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4873
4867
|
const localVarHeaderParameter = {};
|
|
4874
4868
|
const localVarQueryParameter = {};
|
|
4875
|
-
|
|
4869
|
+
if (id !== undefined) {
|
|
4870
|
+
localVarQueryParameter['id'] = id;
|
|
4871
|
+
}
|
|
4876
4872
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4877
4873
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4878
4874
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4879
|
-
localVarRequestOptions.data = serializeDataIfNeeded(labelDeleteRequest, localVarRequestOptions, configuration);
|
|
4880
4875
|
return {
|
|
4881
4876
|
url: toPathString(localVarUrlObj),
|
|
4882
4877
|
options: localVarRequestOptions,
|
|
@@ -5063,14 +5058,14 @@ export const UserLabelServiceApiFp = function (configuration) {
|
|
|
5063
5058
|
},
|
|
5064
5059
|
/**
|
|
5065
5060
|
*
|
|
5066
|
-
* @param {
|
|
5061
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5067
5062
|
* @param {*} [options] Override http request option.
|
|
5068
5063
|
* @throws {RequiredError}
|
|
5069
5064
|
*/
|
|
5070
|
-
userLabelServiceLabelDelete(
|
|
5065
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5071
5066
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5072
5067
|
var _a, _b, _c;
|
|
5073
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(
|
|
5068
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(id, options);
|
|
5074
5069
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5075
5070
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLabelServiceApi.userLabelServiceLabelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5076
5071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5173,12 +5168,12 @@ export const UserLabelServiceApiFactory = function (configuration, basePath, axi
|
|
|
5173
5168
|
},
|
|
5174
5169
|
/**
|
|
5175
5170
|
*
|
|
5176
|
-
* @param {
|
|
5171
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5177
5172
|
* @param {*} [options] Override http request option.
|
|
5178
5173
|
* @throws {RequiredError}
|
|
5179
5174
|
*/
|
|
5180
|
-
userLabelServiceLabelDelete(
|
|
5181
|
-
return localVarFp.userLabelServiceLabelDelete(
|
|
5175
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5176
|
+
return localVarFp.userLabelServiceLabelDelete(id, options).then((request) => request(axios, basePath));
|
|
5182
5177
|
},
|
|
5183
5178
|
/**
|
|
5184
5179
|
*
|
|
@@ -5245,12 +5240,12 @@ export class UserLabelServiceApi extends BaseAPI {
|
|
|
5245
5240
|
}
|
|
5246
5241
|
/**
|
|
5247
5242
|
*
|
|
5248
|
-
* @param {
|
|
5243
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5249
5244
|
* @param {*} [options] Override http request option.
|
|
5250
5245
|
* @throws {RequiredError}
|
|
5251
5246
|
*/
|
|
5252
|
-
userLabelServiceLabelDelete(
|
|
5253
|
-
return UserLabelServiceApiFp(this.configuration).userLabelServiceLabelDelete(
|
|
5247
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5248
|
+
return UserLabelServiceApiFp(this.configuration).userLabelServiceLabelDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
5254
5249
|
}
|
|
5255
5250
|
/**
|
|
5256
5251
|
*
|
|
@@ -64,7 +64,7 @@ No authorization required
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **discountAdminServiceDiscountDelete**
|
|
67
|
-
> DiscountDeleteResponse discountAdminServiceDiscountDelete(
|
|
67
|
+
> DiscountDeleteResponse discountAdminServiceDiscountDelete()
|
|
68
68
|
|
|
69
69
|
DiscountDelete 删除折扣接口
|
|
70
70
|
|
|
@@ -73,17 +73,16 @@ DiscountDelete 删除折扣接口
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
75
|
DiscountAdminServiceApi,
|
|
76
|
-
Configuration
|
|
77
|
-
DiscountDeleteRequest
|
|
76
|
+
Configuration
|
|
78
77
|
} from '@cherryin/api-client';
|
|
79
78
|
|
|
80
79
|
const configuration = new Configuration();
|
|
81
80
|
const apiInstance = new DiscountAdminServiceApi(configuration);
|
|
82
81
|
|
|
83
|
-
let
|
|
82
|
+
let id: string; //@gotags: form:\"id\" (optional) (default to undefined)
|
|
84
83
|
|
|
85
84
|
const { status, data } = await apiInstance.discountAdminServiceDiscountDelete(
|
|
86
|
-
|
|
85
|
+
id
|
|
87
86
|
);
|
|
88
87
|
```
|
|
89
88
|
|
|
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.discountAdminServiceDiscountDelete(
|
|
|
91
90
|
|
|
92
91
|
|Name | Type | Description | Notes|
|
|
93
92
|
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **
|
|
93
|
+
| **id** | [**string**] | @gotags: form:\"id\" | (optional) defaults to undefined|
|
|
95
94
|
|
|
96
95
|
|
|
97
96
|
### Return type
|
|
@@ -104,7 +103,7 @@ No authorization required
|
|
|
104
103
|
|
|
105
104
|
### HTTP request headers
|
|
106
105
|
|
|
107
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: Not defined
|
|
108
107
|
- **Accept**: application/json
|
|
109
108
|
|
|
110
109
|
|
|
@@ -64,7 +64,7 @@ No authorization required
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **providerAdminServiceProviderDelete**
|
|
67
|
-
> ProviderDeleteResponse providerAdminServiceProviderDelete(
|
|
67
|
+
> ProviderDeleteResponse providerAdminServiceProviderDelete()
|
|
68
68
|
|
|
69
69
|
ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
70
70
|
|
|
@@ -73,17 +73,16 @@ ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete)
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
75
|
ProviderAdminServiceApi,
|
|
76
|
-
Configuration
|
|
77
|
-
ProviderDeleteRequest
|
|
76
|
+
Configuration
|
|
78
77
|
} from '@cherryin/api-client';
|
|
79
78
|
|
|
80
79
|
const configuration = new Configuration();
|
|
81
80
|
const apiInstance = new ProviderAdminServiceApi(configuration);
|
|
82
81
|
|
|
83
|
-
let
|
|
82
|
+
let id: string; //id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
|
|
84
83
|
|
|
85
84
|
const { status, data } = await apiInstance.providerAdminServiceProviderDelete(
|
|
86
|
-
|
|
85
|
+
id
|
|
87
86
|
);
|
|
88
87
|
```
|
|
89
88
|
|
|
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.providerAdminServiceProviderDelete(
|
|
|
91
90
|
|
|
92
91
|
|Name | Type | Description | Notes|
|
|
93
92
|
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **
|
|
93
|
+
| **id** | [**string**] | id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
|
|
95
94
|
|
|
96
95
|
|
|
97
96
|
### Return type
|
|
@@ -104,7 +103,7 @@ No authorization required
|
|
|
104
103
|
|
|
105
104
|
### HTTP request headers
|
|
106
105
|
|
|
107
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: Not defined
|
|
108
107
|
- **Accept**: application/json
|
|
109
108
|
|
|
110
109
|
|
|
@@ -64,7 +64,7 @@ No authorization required
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **providerModelAdminServiceProviderModelDelete**
|
|
67
|
-
> ProviderModelDeleteResponse providerModelAdminServiceProviderModelDelete(
|
|
67
|
+
> ProviderModelDeleteResponse providerModelAdminServiceProviderModelDelete()
|
|
68
68
|
|
|
69
69
|
ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
70
70
|
|
|
@@ -73,17 +73,16 @@ ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
75
|
ProviderModelAdminServiceApi,
|
|
76
|
-
Configuration
|
|
77
|
-
ProviderModelDeleteRequest
|
|
76
|
+
Configuration
|
|
78
77
|
} from '@cherryin/api-client';
|
|
79
78
|
|
|
80
79
|
const configuration = new Configuration();
|
|
81
80
|
const apiInstance = new ProviderModelAdminServiceApi(configuration);
|
|
82
81
|
|
|
83
|
-
let
|
|
82
|
+
let id: string; //id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
|
|
84
83
|
|
|
85
84
|
const { status, data } = await apiInstance.providerModelAdminServiceProviderModelDelete(
|
|
86
|
-
|
|
85
|
+
id
|
|
87
86
|
);
|
|
88
87
|
```
|
|
89
88
|
|
|
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.providerModelAdminServiceProviderMode
|
|
|
91
90
|
|
|
92
91
|
|Name | Type | Description | Notes|
|
|
93
92
|
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **
|
|
93
|
+
| **id** | [**string**] | id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
|
|
95
94
|
|
|
96
95
|
|
|
97
96
|
### Return type
|
|
@@ -104,7 +103,7 @@ No authorization required
|
|
|
104
103
|
|
|
105
104
|
### HTTP request headers
|
|
106
105
|
|
|
107
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: Not defined
|
|
108
107
|
- **Accept**: application/json
|
|
109
108
|
|
|
110
109
|
|
|
@@ -64,7 +64,7 @@ No authorization required
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **remoteConfigAdminServiceRemoteConfigItemDelete**
|
|
67
|
-
> RemoteConfigItemDeleteResponse remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
67
|
+
> RemoteConfigItemDeleteResponse remoteConfigAdminServiceRemoteConfigItemDelete()
|
|
68
68
|
|
|
69
69
|
RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
70
70
|
|
|
@@ -73,17 +73,16 @@ RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admi
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
75
|
RemoteConfigAdminServiceApi,
|
|
76
|
-
Configuration
|
|
77
|
-
RemoteConfigItemDeleteRequest
|
|
76
|
+
Configuration
|
|
78
77
|
} from '@cherryin/api-client';
|
|
79
78
|
|
|
80
79
|
const configuration = new Configuration();
|
|
81
80
|
const apiInstance = new RemoteConfigAdminServiceApi(configuration);
|
|
82
81
|
|
|
83
|
-
let
|
|
82
|
+
let key: string; // (optional) (default to undefined)
|
|
84
83
|
|
|
85
84
|
const { status, data } = await apiInstance.remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
86
|
-
|
|
85
|
+
key
|
|
87
86
|
);
|
|
88
87
|
```
|
|
89
88
|
|
|
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.remoteConfigAdminServiceRemoteConfigI
|
|
|
91
90
|
|
|
92
91
|
|Name | Type | Description | Notes|
|
|
93
92
|
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **
|
|
93
|
+
| **key** | [**string**] | | (optional) defaults to undefined|
|
|
95
94
|
|
|
96
95
|
|
|
97
96
|
### Return type
|
|
@@ -104,7 +103,7 @@ No authorization required
|
|
|
104
103
|
|
|
105
104
|
### HTTP request headers
|
|
106
105
|
|
|
107
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: Not defined
|
|
108
107
|
- **Accept**: application/json
|
|
109
108
|
|
|
110
109
|
|