@cherryin/api-client 0.0.6 → 0.0.8
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 -4
- package/README.md +2 -6
- package/api.ts +73 -101
- package/dist/api.d.ts +45 -69
- package/dist/api.js +60 -64
- package/dist/esm/api.d.ts +45 -69
- package/dist/esm/api.js +60 -64
- package/docs/DiscountAdminServiceApi.md +6 -7
- package/docs/ProviderAdminServiceApi.md +1 -1
- 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/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 获取折扣接口
|
|
@@ -3047,7 +3046,7 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
3047
3046
|
};
|
|
3048
3047
|
}),
|
|
3049
3048
|
/**
|
|
3050
|
-
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径:
|
|
3049
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: DELETE /admin/provider/delete Request path: DELETE /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3051
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}
|
|
@@ -3195,7 +3194,7 @@ export const ProviderAdminServiceApiFp = function (configuration) {
|
|
|
3195
3194
|
});
|
|
3196
3195
|
},
|
|
3197
3196
|
/**
|
|
3198
|
-
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径:
|
|
3197
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: DELETE /admin/provider/delete Request path: DELETE /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3199
3198
|
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3200
3199
|
* @param {*} [options] Override http request option.
|
|
3201
3200
|
* @throws {RequiredError}
|
|
@@ -3275,7 +3274,7 @@ export const ProviderAdminServiceApiFactory = function (configuration, basePath,
|
|
|
3275
3274
|
return localVarFp.providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(axios, basePath));
|
|
3276
3275
|
},
|
|
3277
3276
|
/**
|
|
3278
|
-
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径:
|
|
3277
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: DELETE /admin/provider/delete Request path: DELETE /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3279
3278
|
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3280
3279
|
* @param {*} [options] Override http request option.
|
|
3281
3280
|
* @throws {RequiredError}
|
|
@@ -3329,7 +3328,7 @@ export class ProviderAdminServiceApi extends BaseAPI {
|
|
|
3329
3328
|
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3330
3329
|
}
|
|
3331
3330
|
/**
|
|
3332
|
-
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径:
|
|
3331
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: DELETE /admin/provider/delete Request path: DELETE /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3333
3332
|
* @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
3334
3333
|
* @param {*} [options] Override http request option.
|
|
3335
3334
|
* @throws {RequiredError}
|
|
@@ -3404,13 +3403,11 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
3404
3403
|
}),
|
|
3405
3404
|
/**
|
|
3406
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
|
|
3407
|
-
* @param {
|
|
3406
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3408
3407
|
* @param {*} [options] Override http request option.
|
|
3409
3408
|
* @throws {RequiredError}
|
|
3410
3409
|
*/
|
|
3411
|
-
providerModelAdminServiceProviderModelDelete: (
|
|
3412
|
-
// verify required parameter 'providerModelDeleteRequest' is not null or undefined
|
|
3413
|
-
assertParamExists('providerModelAdminServiceProviderModelDelete', 'providerModelDeleteRequest', providerModelDeleteRequest);
|
|
3410
|
+
providerModelAdminServiceProviderModelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3414
3411
|
const localVarPath = `/admin/provider-model/delete`;
|
|
3415
3412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3416
3413
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3421,11 +3418,12 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
3421
3418
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3422
3419
|
const localVarHeaderParameter = {};
|
|
3423
3420
|
const localVarQueryParameter = {};
|
|
3424
|
-
|
|
3421
|
+
if (id !== undefined) {
|
|
3422
|
+
localVarQueryParameter['id'] = id;
|
|
3423
|
+
}
|
|
3425
3424
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3426
3425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3427
3426
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3428
|
-
localVarRequestOptions.data = serializeDataIfNeeded(providerModelDeleteRequest, localVarRequestOptions, configuration);
|
|
3429
3427
|
return {
|
|
3430
3428
|
url: toPathString(localVarUrlObj),
|
|
3431
3429
|
options: localVarRequestOptions,
|
|
@@ -3557,14 +3555,14 @@ export const ProviderModelAdminServiceApiFp = function (configuration) {
|
|
|
3557
3555
|
},
|
|
3558
3556
|
/**
|
|
3559
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
|
|
3560
|
-
* @param {
|
|
3558
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3561
3559
|
* @param {*} [options] Override http request option.
|
|
3562
3560
|
* @throws {RequiredError}
|
|
3563
3561
|
*/
|
|
3564
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3562
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3565
3563
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3566
3564
|
var _a, _b, _c;
|
|
3567
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(
|
|
3565
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(id, options);
|
|
3568
3566
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3569
3567
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3570
3568
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3638,12 +3636,12 @@ export const ProviderModelAdminServiceApiFactory = function (configuration, base
|
|
|
3638
3636
|
},
|
|
3639
3637
|
/**
|
|
3640
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
|
|
3641
|
-
* @param {
|
|
3639
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3642
3640
|
* @param {*} [options] Override http request option.
|
|
3643
3641
|
* @throws {RequiredError}
|
|
3644
3642
|
*/
|
|
3645
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3646
|
-
return localVarFp.providerModelAdminServiceProviderModelDelete(
|
|
3643
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3644
|
+
return localVarFp.providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(axios, basePath));
|
|
3647
3645
|
},
|
|
3648
3646
|
/**
|
|
3649
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
|
|
@@ -3693,12 +3691,12 @@ export class ProviderModelAdminServiceApi extends BaseAPI {
|
|
|
3693
3691
|
}
|
|
3694
3692
|
/**
|
|
3695
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
|
|
3696
|
-
* @param {
|
|
3694
|
+
* @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
3697
3695
|
* @param {*} [options] Override http request option.
|
|
3698
3696
|
* @throws {RequiredError}
|
|
3699
3697
|
*/
|
|
3700
|
-
providerModelAdminServiceProviderModelDelete(
|
|
3701
|
-
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelDelete(
|
|
3698
|
+
providerModelAdminServiceProviderModelDelete(id, options) {
|
|
3699
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3702
3700
|
}
|
|
3703
3701
|
/**
|
|
3704
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
|
|
@@ -3768,13 +3766,11 @@ export const RemoteConfigAdminServiceApiAxiosParamCreator = function (configurat
|
|
|
3768
3766
|
}),
|
|
3769
3767
|
/**
|
|
3770
3768
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3771
|
-
* @param {
|
|
3769
|
+
* @param {string} [key]
|
|
3772
3770
|
* @param {*} [options] Override http request option.
|
|
3773
3771
|
* @throws {RequiredError}
|
|
3774
3772
|
*/
|
|
3775
|
-
remoteConfigAdminServiceRemoteConfigItemDelete: (
|
|
3776
|
-
// verify required parameter 'remoteConfigItemDeleteRequest' is not null or undefined
|
|
3777
|
-
assertParamExists('remoteConfigAdminServiceRemoteConfigItemDelete', 'remoteConfigItemDeleteRequest', remoteConfigItemDeleteRequest);
|
|
3773
|
+
remoteConfigAdminServiceRemoteConfigItemDelete: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
3778
3774
|
const localVarPath = `/admin/remote-config/delete`;
|
|
3779
3775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3780
3776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3785,11 +3781,12 @@ export const RemoteConfigAdminServiceApiAxiosParamCreator = function (configurat
|
|
|
3785
3781
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3786
3782
|
const localVarHeaderParameter = {};
|
|
3787
3783
|
const localVarQueryParameter = {};
|
|
3788
|
-
|
|
3784
|
+
if (key !== undefined) {
|
|
3785
|
+
localVarQueryParameter['key'] = key;
|
|
3786
|
+
}
|
|
3789
3787
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3790
3788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3791
3789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3792
|
-
localVarRequestOptions.data = serializeDataIfNeeded(remoteConfigItemDeleteRequest, localVarRequestOptions, configuration);
|
|
3793
3790
|
return {
|
|
3794
3791
|
url: toPathString(localVarUrlObj),
|
|
3795
3792
|
options: localVarRequestOptions,
|
|
@@ -3921,14 +3918,14 @@ export const RemoteConfigAdminServiceApiFp = function (configuration) {
|
|
|
3921
3918
|
},
|
|
3922
3919
|
/**
|
|
3923
3920
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3924
|
-
* @param {
|
|
3921
|
+
* @param {string} [key]
|
|
3925
3922
|
* @param {*} [options] Override http request option.
|
|
3926
3923
|
* @throws {RequiredError}
|
|
3927
3924
|
*/
|
|
3928
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
3925
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
3929
3926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
3927
|
var _a, _b, _c;
|
|
3931
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
3928
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(key, options);
|
|
3932
3929
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3933
3930
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3934
3931
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4002,12 +3999,12 @@ export const RemoteConfigAdminServiceApiFactory = function (configuration, baseP
|
|
|
4002
3999
|
},
|
|
4003
4000
|
/**
|
|
4004
4001
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
4005
|
-
* @param {
|
|
4002
|
+
* @param {string} [key]
|
|
4006
4003
|
* @param {*} [options] Override http request option.
|
|
4007
4004
|
* @throws {RequiredError}
|
|
4008
4005
|
*/
|
|
4009
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4010
|
-
return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4006
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
4007
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(axios, basePath));
|
|
4011
4008
|
},
|
|
4012
4009
|
/**
|
|
4013
4010
|
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
@@ -4057,12 +4054,12 @@ export class RemoteConfigAdminServiceApi extends BaseAPI {
|
|
|
4057
4054
|
}
|
|
4058
4055
|
/**
|
|
4059
4056
|
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
4060
|
-
* @param {
|
|
4057
|
+
* @param {string} [key]
|
|
4061
4058
|
* @param {*} [options] Override http request option.
|
|
4062
4059
|
* @throws {RequiredError}
|
|
4063
4060
|
*/
|
|
4064
|
-
remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4065
|
-
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(
|
|
4061
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
|
|
4062
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(this.axios, this.basePath));
|
|
4066
4063
|
}
|
|
4067
4064
|
/**
|
|
4068
4065
|
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
@@ -4854,13 +4851,11 @@ export const UserLabelServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4854
4851
|
}),
|
|
4855
4852
|
/**
|
|
4856
4853
|
*
|
|
4857
|
-
* @param {
|
|
4854
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
4858
4855
|
* @param {*} [options] Override http request option.
|
|
4859
4856
|
* @throws {RequiredError}
|
|
4860
4857
|
*/
|
|
4861
|
-
userLabelServiceLabelDelete: (
|
|
4862
|
-
// verify required parameter 'labelDeleteRequest' is not null or undefined
|
|
4863
|
-
assertParamExists('userLabelServiceLabelDelete', 'labelDeleteRequest', labelDeleteRequest);
|
|
4858
|
+
userLabelServiceLabelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
4864
4859
|
const localVarPath = `/admin/label/delete`;
|
|
4865
4860
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4866
4861
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4871,11 +4866,12 @@ export const UserLabelServiceApiAxiosParamCreator = function (configuration) {
|
|
|
4871
4866
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4872
4867
|
const localVarHeaderParameter = {};
|
|
4873
4868
|
const localVarQueryParameter = {};
|
|
4874
|
-
|
|
4869
|
+
if (id !== undefined) {
|
|
4870
|
+
localVarQueryParameter['id'] = id;
|
|
4871
|
+
}
|
|
4875
4872
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4876
4873
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4877
4874
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4878
|
-
localVarRequestOptions.data = serializeDataIfNeeded(labelDeleteRequest, localVarRequestOptions, configuration);
|
|
4879
4875
|
return {
|
|
4880
4876
|
url: toPathString(localVarUrlObj),
|
|
4881
4877
|
options: localVarRequestOptions,
|
|
@@ -5062,14 +5058,14 @@ export const UserLabelServiceApiFp = function (configuration) {
|
|
|
5062
5058
|
},
|
|
5063
5059
|
/**
|
|
5064
5060
|
*
|
|
5065
|
-
* @param {
|
|
5061
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5066
5062
|
* @param {*} [options] Override http request option.
|
|
5067
5063
|
* @throws {RequiredError}
|
|
5068
5064
|
*/
|
|
5069
|
-
userLabelServiceLabelDelete(
|
|
5065
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5070
5066
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5071
5067
|
var _a, _b, _c;
|
|
5072
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(
|
|
5068
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(id, options);
|
|
5073
5069
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5074
5070
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLabelServiceApi.userLabelServiceLabelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5075
5071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5172,12 +5168,12 @@ export const UserLabelServiceApiFactory = function (configuration, basePath, axi
|
|
|
5172
5168
|
},
|
|
5173
5169
|
/**
|
|
5174
5170
|
*
|
|
5175
|
-
* @param {
|
|
5171
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5176
5172
|
* @param {*} [options] Override http request option.
|
|
5177
5173
|
* @throws {RequiredError}
|
|
5178
5174
|
*/
|
|
5179
|
-
userLabelServiceLabelDelete(
|
|
5180
|
-
return localVarFp.userLabelServiceLabelDelete(
|
|
5175
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5176
|
+
return localVarFp.userLabelServiceLabelDelete(id, options).then((request) => request(axios, basePath));
|
|
5181
5177
|
},
|
|
5182
5178
|
/**
|
|
5183
5179
|
*
|
|
@@ -5244,12 +5240,12 @@ export class UserLabelServiceApi extends BaseAPI {
|
|
|
5244
5240
|
}
|
|
5245
5241
|
/**
|
|
5246
5242
|
*
|
|
5247
|
-
* @param {
|
|
5243
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
5248
5244
|
* @param {*} [options] Override http request option.
|
|
5249
5245
|
* @throws {RequiredError}
|
|
5250
5246
|
*/
|
|
5251
|
-
userLabelServiceLabelDelete(
|
|
5252
|
-
return UserLabelServiceApiFp(this.configuration).userLabelServiceLabelDelete(
|
|
5247
|
+
userLabelServiceLabelDelete(id, options) {
|
|
5248
|
+
return UserLabelServiceApiFp(this.configuration).userLabelServiceLabelDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
5253
5249
|
}
|
|
5254
5250
|
/**
|
|
5255
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
|
|
|
@@ -66,7 +66,7 @@ No authorization required
|
|
|
66
66
|
# **providerAdminServiceProviderDelete**
|
|
67
67
|
> ProviderDeleteResponse providerAdminServiceProviderDelete()
|
|
68
68
|
|
|
69
|
-
ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径:
|
|
69
|
+
ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: DELETE /admin/provider/delete Request path: DELETE /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
70
70
|
|
|
71
71
|
### Example
|
|
72
72
|
|
|
@@ -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
|
|
|
@@ -65,7 +65,7 @@ No authorization required
|
|
|
65
65
|
[[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)
|
|
66
66
|
|
|
67
67
|
# **userLabelServiceLabelDelete**
|
|
68
|
-
> LabelDeleteResponse userLabelServiceLabelDelete(
|
|
68
|
+
> LabelDeleteResponse userLabelServiceLabelDelete()
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
### Example
|
|
@@ -73,17 +73,16 @@ No authorization required
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
75
|
UserLabelServiceApi,
|
|
76
|
-
Configuration
|
|
77
|
-
LabelDeleteRequest
|
|
76
|
+
Configuration
|
|
78
77
|
} from '@cherryin/api-client';
|
|
79
78
|
|
|
80
79
|
const configuration = new Configuration();
|
|
81
80
|
const apiInstance = new UserLabelServiceApi(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.userLabelServiceLabelDelete(
|
|
86
|
-
|
|
85
|
+
id
|
|
87
86
|
);
|
|
88
87
|
```
|
|
89
88
|
|
|
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.userLabelServiceLabelDelete(
|
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# DiscountDeleteRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | @gotags: form:\"id\" | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { DiscountDeleteRequest } from '@cherryin/api-client';
|
|
14
|
-
|
|
15
|
-
const instance: DiscountDeleteRequest = {
|
|
16
|
-
id,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# LabelDeleteRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | @gotags: form:\"id\" | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { LabelDeleteRequest } from '@cherryin/api-client';
|
|
14
|
-
|
|
15
|
-
const instance: LabelDeleteRequest = {
|
|
16
|
-
id,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# ProviderModelDeleteRequest
|
|
2
|
-
|
|
3
|
-
ProviderModelDeleteRequest 删除 ProviderModel 的请求 Request message for deleting a provider model
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\" | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ProviderModelDeleteRequest } from '@cherryin/api-client';
|
|
15
|
-
|
|
16
|
-
const instance: ProviderModelDeleteRequest = {
|
|
17
|
-
id,
|
|
18
|
-
};
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|