@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/dist/api.js CHANGED
@@ -2714,13 +2714,11 @@ const DiscountAdminServiceApiAxiosParamCreator = function (configuration) {
2714
2714
  }),
2715
2715
  /**
2716
2716
  * DiscountDelete 删除折扣接口
2717
- * @param {DiscountDeleteRequest} discountDeleteRequest
2717
+ * @param {string} [id] @gotags: form:\"id\"
2718
2718
  * @param {*} [options] Override http request option.
2719
2719
  * @throws {RequiredError}
2720
2720
  */
2721
- discountAdminServiceDiscountDelete: (discountDeleteRequest_1, ...args_1) => __awaiter(this, [discountDeleteRequest_1, ...args_1], void 0, function* (discountDeleteRequest, options = {}) {
2722
- // verify required parameter 'discountDeleteRequest' is not null or undefined
2723
- (0, common_1.assertParamExists)('discountAdminServiceDiscountDelete', 'discountDeleteRequest', discountDeleteRequest);
2721
+ discountAdminServiceDiscountDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2724
2722
  const localVarPath = `/admin/discount/delete`;
2725
2723
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2726
2724
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2731,11 +2729,12 @@ const DiscountAdminServiceApiAxiosParamCreator = function (configuration) {
2731
2729
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2732
2730
  const localVarHeaderParameter = {};
2733
2731
  const localVarQueryParameter = {};
2734
- localVarHeaderParameter['Content-Type'] = 'application/json';
2732
+ if (id !== undefined) {
2733
+ localVarQueryParameter['id'] = id;
2734
+ }
2735
2735
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2736
2736
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2737
2737
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2738
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(discountDeleteRequest, localVarRequestOptions, configuration);
2739
2738
  return {
2740
2739
  url: (0, common_1.toPathString)(localVarUrlObj),
2741
2740
  options: localVarRequestOptions,
@@ -2860,14 +2859,14 @@ const DiscountAdminServiceApiFp = function (configuration) {
2860
2859
  },
2861
2860
  /**
2862
2861
  * DiscountDelete 删除折扣接口
2863
- * @param {DiscountDeleteRequest} discountDeleteRequest
2862
+ * @param {string} [id] @gotags: form:\"id\"
2864
2863
  * @param {*} [options] Override http request option.
2865
2864
  * @throws {RequiredError}
2866
2865
  */
2867
- discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
2866
+ discountAdminServiceDiscountDelete(id, options) {
2868
2867
  return __awaiter(this, void 0, void 0, function* () {
2869
2868
  var _a, _b, _c;
2870
- const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(discountDeleteRequest, options);
2869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(id, options);
2871
2870
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2872
2871
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2873
2872
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2940,12 +2939,12 @@ const DiscountAdminServiceApiFactory = function (configuration, basePath, axios)
2940
2939
  },
2941
2940
  /**
2942
2941
  * DiscountDelete 删除折扣接口
2943
- * @param {DiscountDeleteRequest} discountDeleteRequest
2942
+ * @param {string} [id] @gotags: form:\"id\"
2944
2943
  * @param {*} [options] Override http request option.
2945
2944
  * @throws {RequiredError}
2946
2945
  */
2947
- discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
2948
- return localVarFp.discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(axios, basePath));
2946
+ discountAdminServiceDiscountDelete(id, options) {
2947
+ return localVarFp.discountAdminServiceDiscountDelete(id, options).then((request) => request(axios, basePath));
2949
2948
  },
2950
2949
  /**
2951
2950
  * DiscountGet 获取折扣接口
@@ -2994,12 +2993,12 @@ class DiscountAdminServiceApi extends base_1.BaseAPI {
2994
2993
  }
2995
2994
  /**
2996
2995
  * DiscountDelete 删除折扣接口
2997
- * @param {DiscountDeleteRequest} discountDeleteRequest
2996
+ * @param {string} [id] @gotags: form:\"id\"
2998
2997
  * @param {*} [options] Override http request option.
2999
2998
  * @throws {RequiredError}
3000
2999
  */
3001
- discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
3002
- return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(this.axios, this.basePath));
3000
+ discountAdminServiceDiscountDelete(id, options) {
3001
+ return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountDelete(id, options).then((request) => request(this.axios, this.basePath));
3003
3002
  }
3004
3003
  /**
3005
3004
  * DiscountGet 获取折扣接口
@@ -3068,13 +3067,11 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
3068
3067
  }),
3069
3068
  /**
3070
3069
  * ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3071
- * @param {ProviderDeleteRequest} providerDeleteRequest
3070
+ * @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
3072
3071
  * @param {*} [options] Override http request option.
3073
3072
  * @throws {RequiredError}
3074
3073
  */
3075
- providerAdminServiceProviderDelete: (providerDeleteRequest_1, ...args_1) => __awaiter(this, [providerDeleteRequest_1, ...args_1], void 0, function* (providerDeleteRequest, options = {}) {
3076
- // verify required parameter 'providerDeleteRequest' is not null or undefined
3077
- (0, common_1.assertParamExists)('providerAdminServiceProviderDelete', 'providerDeleteRequest', providerDeleteRequest);
3074
+ providerAdminServiceProviderDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3078
3075
  const localVarPath = `/admin/provider/delete`;
3079
3076
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3080
3077
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3085,11 +3082,12 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
3085
3082
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3086
3083
  const localVarHeaderParameter = {};
3087
3084
  const localVarQueryParameter = {};
3088
- localVarHeaderParameter['Content-Type'] = 'application/json';
3085
+ if (id !== undefined) {
3086
+ localVarQueryParameter['id'] = id;
3087
+ }
3089
3088
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3090
3089
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3091
3090
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3092
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerDeleteRequest, localVarRequestOptions, configuration);
3093
3091
  return {
3094
3092
  url: (0, common_1.toPathString)(localVarUrlObj),
3095
3093
  options: localVarRequestOptions,
@@ -3218,14 +3216,14 @@ const ProviderAdminServiceApiFp = function (configuration) {
3218
3216
  },
3219
3217
  /**
3220
3218
  * ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3221
- * @param {ProviderDeleteRequest} providerDeleteRequest
3219
+ * @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
3222
3220
  * @param {*} [options] Override http request option.
3223
3221
  * @throws {RequiredError}
3224
3222
  */
3225
- providerAdminServiceProviderDelete(providerDeleteRequest, options) {
3223
+ providerAdminServiceProviderDelete(id, options) {
3226
3224
  return __awaiter(this, void 0, void 0, function* () {
3227
3225
  var _a, _b, _c;
3228
- const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(providerDeleteRequest, options);
3226
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(id, options);
3229
3227
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3230
3228
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3231
3229
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3299,12 +3297,12 @@ const ProviderAdminServiceApiFactory = function (configuration, basePath, axios)
3299
3297
  },
3300
3298
  /**
3301
3299
  * ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3302
- * @param {ProviderDeleteRequest} providerDeleteRequest
3300
+ * @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
3303
3301
  * @param {*} [options] Override http request option.
3304
3302
  * @throws {RequiredError}
3305
3303
  */
3306
- providerAdminServiceProviderDelete(providerDeleteRequest, options) {
3307
- return localVarFp.providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(axios, basePath));
3304
+ providerAdminServiceProviderDelete(id, options) {
3305
+ return localVarFp.providerAdminServiceProviderDelete(id, options).then((request) => request(axios, basePath));
3308
3306
  },
3309
3307
  /**
3310
3308
  * 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
@@ -3354,12 +3352,12 @@ class ProviderAdminServiceApi extends base_1.BaseAPI {
3354
3352
  }
3355
3353
  /**
3356
3354
  * ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3357
- * @param {ProviderDeleteRequest} providerDeleteRequest
3355
+ * @param {string} [id] id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
3358
3356
  * @param {*} [options] Override http request option.
3359
3357
  * @throws {RequiredError}
3360
3358
  */
3361
- providerAdminServiceProviderDelete(providerDeleteRequest, options) {
3362
- return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(this.axios, this.basePath));
3359
+ providerAdminServiceProviderDelete(id, options) {
3360
+ return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderDelete(id, options).then((request) => request(this.axios, this.basePath));
3363
3361
  }
3364
3362
  /**
3365
3363
  * 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
@@ -3429,13 +3427,11 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
3429
3427
  }),
3430
3428
  /**
3431
3429
  * ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3432
- * @param {ProviderModelDeleteRequest} providerModelDeleteRequest
3430
+ * @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
3433
3431
  * @param {*} [options] Override http request option.
3434
3432
  * @throws {RequiredError}
3435
3433
  */
3436
- providerModelAdminServiceProviderModelDelete: (providerModelDeleteRequest_1, ...args_1) => __awaiter(this, [providerModelDeleteRequest_1, ...args_1], void 0, function* (providerModelDeleteRequest, options = {}) {
3437
- // verify required parameter 'providerModelDeleteRequest' is not null or undefined
3438
- (0, common_1.assertParamExists)('providerModelAdminServiceProviderModelDelete', 'providerModelDeleteRequest', providerModelDeleteRequest);
3434
+ providerModelAdminServiceProviderModelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3439
3435
  const localVarPath = `/admin/provider-model/delete`;
3440
3436
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3441
3437
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3446,11 +3442,12 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
3446
3442
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3447
3443
  const localVarHeaderParameter = {};
3448
3444
  const localVarQueryParameter = {};
3449
- localVarHeaderParameter['Content-Type'] = 'application/json';
3445
+ if (id !== undefined) {
3446
+ localVarQueryParameter['id'] = id;
3447
+ }
3450
3448
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3451
3449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3452
3450
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3453
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerModelDeleteRequest, localVarRequestOptions, configuration);
3454
3451
  return {
3455
3452
  url: (0, common_1.toPathString)(localVarUrlObj),
3456
3453
  options: localVarRequestOptions,
@@ -3583,14 +3580,14 @@ const ProviderModelAdminServiceApiFp = function (configuration) {
3583
3580
  },
3584
3581
  /**
3585
3582
  * ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3586
- * @param {ProviderModelDeleteRequest} providerModelDeleteRequest
3583
+ * @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
3587
3584
  * @param {*} [options] Override http request option.
3588
3585
  * @throws {RequiredError}
3589
3586
  */
3590
- providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
3587
+ providerModelAdminServiceProviderModelDelete(id, options) {
3591
3588
  return __awaiter(this, void 0, void 0, function* () {
3592
3589
  var _a, _b, _c;
3593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options);
3590
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(id, options);
3594
3591
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3595
3592
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3596
3593
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3665,12 +3662,12 @@ const ProviderModelAdminServiceApiFactory = function (configuration, basePath, a
3665
3662
  },
3666
3663
  /**
3667
3664
  * ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3668
- * @param {ProviderModelDeleteRequest} providerModelDeleteRequest
3665
+ * @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
3669
3666
  * @param {*} [options] Override http request option.
3670
3667
  * @throws {RequiredError}
3671
3668
  */
3672
- providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
3673
- return localVarFp.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(axios, basePath));
3669
+ providerModelAdminServiceProviderModelDelete(id, options) {
3670
+ return localVarFp.providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(axios, basePath));
3674
3671
  },
3675
3672
  /**
3676
3673
  * 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
@@ -3721,12 +3718,12 @@ class ProviderModelAdminServiceApi extends base_1.BaseAPI {
3721
3718
  }
3722
3719
  /**
3723
3720
  * ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
3724
- * @param {ProviderModelDeleteRequest} providerModelDeleteRequest
3721
+ * @param {string} [id] id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
3725
3722
  * @param {*} [options] Override http request option.
3726
3723
  * @throws {RequiredError}
3727
3724
  */
3728
- providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
3729
- return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
3725
+ providerModelAdminServiceProviderModelDelete(id, options) {
3726
+ return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelDelete(id, options).then((request) => request(this.axios, this.basePath));
3730
3727
  }
3731
3728
  /**
3732
3729
  * 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
@@ -3797,13 +3794,11 @@ const RemoteConfigAdminServiceApiAxiosParamCreator = function (configuration) {
3797
3794
  }),
3798
3795
  /**
3799
3796
  * RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
3800
- * @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
3797
+ * @param {string} [key]
3801
3798
  * @param {*} [options] Override http request option.
3802
3799
  * @throws {RequiredError}
3803
3800
  */
3804
- remoteConfigAdminServiceRemoteConfigItemDelete: (remoteConfigItemDeleteRequest_1, ...args_1) => __awaiter(this, [remoteConfigItemDeleteRequest_1, ...args_1], void 0, function* (remoteConfigItemDeleteRequest, options = {}) {
3805
- // verify required parameter 'remoteConfigItemDeleteRequest' is not null or undefined
3806
- (0, common_1.assertParamExists)('remoteConfigAdminServiceRemoteConfigItemDelete', 'remoteConfigItemDeleteRequest', remoteConfigItemDeleteRequest);
3801
+ remoteConfigAdminServiceRemoteConfigItemDelete: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
3807
3802
  const localVarPath = `/admin/remote-config/delete`;
3808
3803
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3809
3804
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3814,11 +3809,12 @@ const RemoteConfigAdminServiceApiAxiosParamCreator = function (configuration) {
3814
3809
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3815
3810
  const localVarHeaderParameter = {};
3816
3811
  const localVarQueryParameter = {};
3817
- localVarHeaderParameter['Content-Type'] = 'application/json';
3812
+ if (key !== undefined) {
3813
+ localVarQueryParameter['key'] = key;
3814
+ }
3818
3815
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3819
3816
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3820
3817
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3821
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(remoteConfigItemDeleteRequest, localVarRequestOptions, configuration);
3822
3818
  return {
3823
3819
  url: (0, common_1.toPathString)(localVarUrlObj),
3824
3820
  options: localVarRequestOptions,
@@ -3951,14 +3947,14 @@ const RemoteConfigAdminServiceApiFp = function (configuration) {
3951
3947
  },
3952
3948
  /**
3953
3949
  * RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
3954
- * @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
3950
+ * @param {string} [key]
3955
3951
  * @param {*} [options] Override http request option.
3956
3952
  * @throws {RequiredError}
3957
3953
  */
3958
- remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
3954
+ remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
3959
3955
  return __awaiter(this, void 0, void 0, function* () {
3960
3956
  var _a, _b, _c;
3961
- const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options);
3957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(key, options);
3962
3958
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3963
3959
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3964
3960
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4033,12 +4029,12 @@ const RemoteConfigAdminServiceApiFactory = function (configuration, basePath, ax
4033
4029
  },
4034
4030
  /**
4035
4031
  * RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
4036
- * @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
4032
+ * @param {string} [key]
4037
4033
  * @param {*} [options] Override http request option.
4038
4034
  * @throws {RequiredError}
4039
4035
  */
4040
- remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
4041
- return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options).then((request) => request(axios, basePath));
4036
+ remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
4037
+ return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(axios, basePath));
4042
4038
  },
4043
4039
  /**
4044
4040
  * RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
@@ -4089,12 +4085,12 @@ class RemoteConfigAdminServiceApi extends base_1.BaseAPI {
4089
4085
  }
4090
4086
  /**
4091
4087
  * RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
4092
- * @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
4088
+ * @param {string} [key]
4093
4089
  * @param {*} [options] Override http request option.
4094
4090
  * @throws {RequiredError}
4095
4091
  */
4096
- remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
4097
- return (0, exports.RemoteConfigAdminServiceApiFp)(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options).then((request) => request(this.axios, this.basePath));
4092
+ remoteConfigAdminServiceRemoteConfigItemDelete(key, options) {
4093
+ return (0, exports.RemoteConfigAdminServiceApiFp)(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(key, options).then((request) => request(this.axios, this.basePath));
4098
4094
  }
4099
4095
  /**
4100
4096
  * RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
@@ -4895,13 +4891,11 @@ const UserLabelServiceApiAxiosParamCreator = function (configuration) {
4895
4891
  }),
4896
4892
  /**
4897
4893
  *
4898
- * @param {LabelDeleteRequest} labelDeleteRequest
4894
+ * @param {string} [id] @gotags: form:\"id\"
4899
4895
  * @param {*} [options] Override http request option.
4900
4896
  * @throws {RequiredError}
4901
4897
  */
4902
- userLabelServiceLabelDelete: (labelDeleteRequest_1, ...args_1) => __awaiter(this, [labelDeleteRequest_1, ...args_1], void 0, function* (labelDeleteRequest, options = {}) {
4903
- // verify required parameter 'labelDeleteRequest' is not null or undefined
4904
- (0, common_1.assertParamExists)('userLabelServiceLabelDelete', 'labelDeleteRequest', labelDeleteRequest);
4898
+ userLabelServiceLabelDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4905
4899
  const localVarPath = `/admin/label/delete`;
4906
4900
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4907
4901
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4912,11 +4906,12 @@ const UserLabelServiceApiAxiosParamCreator = function (configuration) {
4912
4906
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4913
4907
  const localVarHeaderParameter = {};
4914
4908
  const localVarQueryParameter = {};
4915
- localVarHeaderParameter['Content-Type'] = 'application/json';
4909
+ if (id !== undefined) {
4910
+ localVarQueryParameter['id'] = id;
4911
+ }
4916
4912
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4917
4913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4918
4914
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4919
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(labelDeleteRequest, localVarRequestOptions, configuration);
4920
4915
  return {
4921
4916
  url: (0, common_1.toPathString)(localVarUrlObj),
4922
4917
  options: localVarRequestOptions,
@@ -5104,14 +5099,14 @@ const UserLabelServiceApiFp = function (configuration) {
5104
5099
  },
5105
5100
  /**
5106
5101
  *
5107
- * @param {LabelDeleteRequest} labelDeleteRequest
5102
+ * @param {string} [id] @gotags: form:\"id\"
5108
5103
  * @param {*} [options] Override http request option.
5109
5104
  * @throws {RequiredError}
5110
5105
  */
5111
- userLabelServiceLabelDelete(labelDeleteRequest, options) {
5106
+ userLabelServiceLabelDelete(id, options) {
5112
5107
  return __awaiter(this, void 0, void 0, function* () {
5113
5108
  var _a, _b, _c;
5114
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(labelDeleteRequest, options);
5109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(id, options);
5115
5110
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5116
5111
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5117
5112
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5215,12 +5210,12 @@ const UserLabelServiceApiFactory = function (configuration, basePath, axios) {
5215
5210
  },
5216
5211
  /**
5217
5212
  *
5218
- * @param {LabelDeleteRequest} labelDeleteRequest
5213
+ * @param {string} [id] @gotags: form:\"id\"
5219
5214
  * @param {*} [options] Override http request option.
5220
5215
  * @throws {RequiredError}
5221
5216
  */
5222
- userLabelServiceLabelDelete(labelDeleteRequest, options) {
5223
- return localVarFp.userLabelServiceLabelDelete(labelDeleteRequest, options).then((request) => request(axios, basePath));
5217
+ userLabelServiceLabelDelete(id, options) {
5218
+ return localVarFp.userLabelServiceLabelDelete(id, options).then((request) => request(axios, basePath));
5224
5219
  },
5225
5220
  /**
5226
5221
  *
@@ -5288,12 +5283,12 @@ class UserLabelServiceApi extends base_1.BaseAPI {
5288
5283
  }
5289
5284
  /**
5290
5285
  *
5291
- * @param {LabelDeleteRequest} labelDeleteRequest
5286
+ * @param {string} [id] @gotags: form:\"id\"
5292
5287
  * @param {*} [options] Override http request option.
5293
5288
  * @throws {RequiredError}
5294
5289
  */
5295
- userLabelServiceLabelDelete(labelDeleteRequest, options) {
5296
- return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelDelete(labelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
5290
+ userLabelServiceLabelDelete(id, options) {
5291
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelDelete(id, options).then((request) => request(this.axios, this.basePath));
5297
5292
  }
5298
5293
  /**
5299
5294
  *