@gizone/rrs-client 4.2.9-alpha.874 → 4.2.9-alpha.875
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/apis/energy-cost-controller-api.ts +87 -0
- package/dist/apis/energy-cost-controller-api.d.ts +46 -0
- package/dist/apis/energy-cost-controller-api.js +69 -0
- package/dist/esm/apis/energy-cost-controller-api.d.ts +46 -0
- package/dist/esm/apis/energy-cost-controller-api.js +69 -0
- package/dist/esm/models/result-code.d.ts +1 -0
- package/dist/esm/models/result-code.js +2 -1
- package/dist/models/result-code.d.ts +1 -0
- package/dist/models/result-code.js +2 -1
- package/models/result-code.ts +2 -1
- package/ossutil.log +1221 -1221
- package/package.json +1 -1
|
@@ -481,6 +481,44 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration?
|
|
|
481
481
|
options: localVarRequestOptions,
|
|
482
482
|
};
|
|
483
483
|
},
|
|
484
|
+
/**
|
|
485
|
+
*
|
|
486
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
487
|
+
* @param {number} id
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
energyCostSettingsDeleteById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
492
|
+
// verify required parameter 'id' is not null or undefined
|
|
493
|
+
assertParamExists('energyCostSettingsDeleteById', 'id', id)
|
|
494
|
+
const localVarPath = `/gizone/energy/cost/month/setting/{id}`
|
|
495
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
496
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
497
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
498
|
+
let baseOptions;
|
|
499
|
+
if (configuration) {
|
|
500
|
+
baseOptions = configuration.baseOptions;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
504
|
+
const localVarHeaderParameter = {} as any;
|
|
505
|
+
const localVarQueryParameter = {} as any;
|
|
506
|
+
|
|
507
|
+
// authentication tokenScheme required
|
|
508
|
+
// http bearer authentication required
|
|
509
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
516
|
+
|
|
517
|
+
return {
|
|
518
|
+
url: toPathString(localVarUrlObj),
|
|
519
|
+
options: localVarRequestOptions,
|
|
520
|
+
};
|
|
521
|
+
},
|
|
484
522
|
/**
|
|
485
523
|
*
|
|
486
524
|
* @summary 导出电费标准导入模板
|
|
@@ -694,6 +732,19 @@ export const EnergyCostControllerApiFp = function(configuration?: Configuration)
|
|
|
694
732
|
const localVarOperationServerBasePath = operationServerMap['EnergyCostControllerApi.energyCostMonthSettingUpdate']?.[localVarOperationServerIndex]?.url;
|
|
695
733
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
696
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
738
|
+
* @param {number} id
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
async energyCostSettingsDeleteById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.energyCostSettingsDeleteById(id, options);
|
|
744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
745
|
+
const localVarOperationServerBasePath = operationServerMap['EnergyCostControllerApi.energyCostSettingsDeleteById']?.[localVarOperationServerIndex]?.url;
|
|
746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
747
|
+
},
|
|
697
748
|
/**
|
|
698
749
|
*
|
|
699
750
|
* @summary 导出电费标准导入模板
|
|
@@ -828,6 +879,16 @@ export const EnergyCostControllerApiFactory = function (configuration?: Configur
|
|
|
828
879
|
energyCostMonthSettingUpdate(requestParameters: EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
829
880
|
return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
|
|
830
881
|
},
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
885
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
886
|
+
* @param {*} [options] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
*/
|
|
889
|
+
energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
890
|
+
return localVarFp.energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
891
|
+
},
|
|
831
892
|
/**
|
|
832
893
|
*
|
|
833
894
|
* @summary 导出电费标准导入模板
|
|
@@ -1024,6 +1085,20 @@ export interface EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest {
|
|
|
1024
1085
|
readonly energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO
|
|
1025
1086
|
}
|
|
1026
1087
|
|
|
1088
|
+
/**
|
|
1089
|
+
* Request parameters for energyCostSettingsDeleteById operation in EnergyCostControllerApi.
|
|
1090
|
+
* @export
|
|
1091
|
+
* @interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest
|
|
1092
|
+
*/
|
|
1093
|
+
export interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest {
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @type {number}
|
|
1097
|
+
* @memberof EnergyCostControllerApiEnergyCostSettingsDeleteById
|
|
1098
|
+
*/
|
|
1099
|
+
readonly id: number
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1027
1102
|
/**
|
|
1028
1103
|
* EnergyCostControllerApi - object-oriented interface
|
|
1029
1104
|
* @export
|
|
@@ -1151,6 +1226,18 @@ export class EnergyCostControllerApi extends BaseAPI {
|
|
|
1151
1226
|
return EnergyCostControllerApiFp(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1152
1227
|
}
|
|
1153
1228
|
|
|
1229
|
+
/**
|
|
1230
|
+
*
|
|
1231
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
1232
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
* @memberof EnergyCostControllerApi
|
|
1236
|
+
*/
|
|
1237
|
+
public energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig) {
|
|
1238
|
+
return EnergyCostControllerApiFp(this.configuration).energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1154
1241
|
/**
|
|
1155
1242
|
*
|
|
1156
1243
|
* @summary 导出电费标准导入模板
|
|
@@ -111,6 +111,14 @@ export declare const EnergyCostControllerApiAxiosParamCreator: (configuration?:
|
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
113
|
energyCostMonthSettingUpdate: (energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
117
|
+
* @param {number} id
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
energyCostSettingsDeleteById: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
122
|
/**
|
|
115
123
|
*
|
|
116
124
|
* @summary 导出电费标准导入模板
|
|
@@ -216,6 +224,14 @@ export declare const EnergyCostControllerApiFp: (configuration?: Configuration)
|
|
|
216
224
|
* @throws {RequiredError}
|
|
217
225
|
*/
|
|
218
226
|
energyCostMonthSettingUpdate(energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
230
|
+
* @param {number} id
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
energyCostSettingsDeleteById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
219
235
|
/**
|
|
220
236
|
*
|
|
221
237
|
* @summary 导出电费标准导入模板
|
|
@@ -316,6 +332,14 @@ export declare const EnergyCostControllerApiFactory: (configuration?: Configurat
|
|
|
316
332
|
* @throws {RequiredError}
|
|
317
333
|
*/
|
|
318
334
|
energyCostMonthSettingUpdate(requestParameters: EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
338
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
319
343
|
/**
|
|
320
344
|
*
|
|
321
345
|
* @summary 导出电费标准导入模板
|
|
@@ -491,6 +515,19 @@ export interface EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest {
|
|
|
491
515
|
*/
|
|
492
516
|
readonly energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO;
|
|
493
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Request parameters for energyCostSettingsDeleteById operation in EnergyCostControllerApi.
|
|
520
|
+
* @export
|
|
521
|
+
* @interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest
|
|
522
|
+
*/
|
|
523
|
+
export interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest {
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {number}
|
|
527
|
+
* @memberof EnergyCostControllerApiEnergyCostSettingsDeleteById
|
|
528
|
+
*/
|
|
529
|
+
readonly id: number;
|
|
530
|
+
}
|
|
494
531
|
/**
|
|
495
532
|
* EnergyCostControllerApi - object-oriented interface
|
|
496
533
|
* @export
|
|
@@ -588,6 +625,15 @@ export declare class EnergyCostControllerApi extends BaseAPI {
|
|
|
588
625
|
* @memberof EnergyCostControllerApi
|
|
589
626
|
*/
|
|
590
627
|
energyCostMonthSettingUpdate(requestParameters: EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
631
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof EnergyCostControllerApi
|
|
635
|
+
*/
|
|
636
|
+
energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
591
637
|
/**
|
|
592
638
|
*
|
|
593
639
|
* @summary 导出电费标准导入模板
|
|
@@ -395,6 +395,38 @@ const EnergyCostControllerApiAxiosParamCreator = function (configuration) {
|
|
|
395
395
|
options: localVarRequestOptions,
|
|
396
396
|
};
|
|
397
397
|
}),
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
401
|
+
* @param {number} id
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
energyCostSettingsDeleteById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
406
|
+
// verify required parameter 'id' is not null or undefined
|
|
407
|
+
(0, common_1.assertParamExists)('energyCostSettingsDeleteById', 'id', id);
|
|
408
|
+
const localVarPath = `/gizone/energy/cost/month/setting/{id}`
|
|
409
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
410
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
411
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
412
|
+
let baseOptions;
|
|
413
|
+
if (configuration) {
|
|
414
|
+
baseOptions = configuration.baseOptions;
|
|
415
|
+
}
|
|
416
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
417
|
+
const localVarHeaderParameter = {};
|
|
418
|
+
const localVarQueryParameter = {};
|
|
419
|
+
// authentication tokenScheme required
|
|
420
|
+
// http bearer authentication required
|
|
421
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
422
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
425
|
+
return {
|
|
426
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
427
|
+
options: localVarRequestOptions,
|
|
428
|
+
};
|
|
429
|
+
}),
|
|
398
430
|
/**
|
|
399
431
|
*
|
|
400
432
|
* @summary 导出电费标准导入模板
|
|
@@ -626,6 +658,22 @@ const EnergyCostControllerApiFp = function (configuration) {
|
|
|
626
658
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
627
659
|
});
|
|
628
660
|
},
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
664
|
+
* @param {number} id
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
energyCostSettingsDeleteById(id, options) {
|
|
669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
var _a, _b, _c;
|
|
671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostSettingsDeleteById(id, options);
|
|
672
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
673
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostSettingsDeleteById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
674
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
|
+
});
|
|
676
|
+
},
|
|
629
677
|
/**
|
|
630
678
|
*
|
|
631
679
|
* @summary 导出电费标准导入模板
|
|
@@ -766,6 +814,16 @@ const EnergyCostControllerApiFactory = function (configuration, basePath, axios)
|
|
|
766
814
|
energyCostMonthSettingUpdate(requestParameters, options) {
|
|
767
815
|
return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
|
|
768
816
|
},
|
|
817
|
+
/**
|
|
818
|
+
*
|
|
819
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
820
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
821
|
+
* @param {*} [options] Override http request option.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
energyCostSettingsDeleteById(requestParameters, options) {
|
|
825
|
+
return localVarFp.energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
826
|
+
},
|
|
769
827
|
/**
|
|
770
828
|
*
|
|
771
829
|
* @summary 导出电费标准导入模板
|
|
@@ -904,6 +962,17 @@ class EnergyCostControllerApi extends base_1.BaseAPI {
|
|
|
904
962
|
energyCostMonthSettingUpdate(requestParameters, options) {
|
|
905
963
|
return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
906
964
|
}
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
968
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
* @memberof EnergyCostControllerApi
|
|
972
|
+
*/
|
|
973
|
+
energyCostSettingsDeleteById(requestParameters, options) {
|
|
974
|
+
return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
975
|
+
}
|
|
907
976
|
/**
|
|
908
977
|
*
|
|
909
978
|
* @summary 导出电费标准导入模板
|
|
@@ -111,6 +111,14 @@ export declare const EnergyCostControllerApiAxiosParamCreator: (configuration?:
|
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
113
|
energyCostMonthSettingUpdate: (energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
117
|
+
* @param {number} id
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
energyCostSettingsDeleteById: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
122
|
/**
|
|
115
123
|
*
|
|
116
124
|
* @summary 导出电费标准导入模板
|
|
@@ -216,6 +224,14 @@ export declare const EnergyCostControllerApiFp: (configuration?: Configuration)
|
|
|
216
224
|
* @throws {RequiredError}
|
|
217
225
|
*/
|
|
218
226
|
energyCostMonthSettingUpdate(energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
230
|
+
* @param {number} id
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
energyCostSettingsDeleteById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
219
235
|
/**
|
|
220
236
|
*
|
|
221
237
|
* @summary 导出电费标准导入模板
|
|
@@ -316,6 +332,14 @@ export declare const EnergyCostControllerApiFactory: (configuration?: Configurat
|
|
|
316
332
|
* @throws {RequiredError}
|
|
317
333
|
*/
|
|
318
334
|
energyCostMonthSettingUpdate(requestParameters: EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
338
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
319
343
|
/**
|
|
320
344
|
*
|
|
321
345
|
* @summary 导出电费标准导入模板
|
|
@@ -491,6 +515,19 @@ export interface EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest {
|
|
|
491
515
|
*/
|
|
492
516
|
readonly energyCostUpdateSettingDTO: EnergyCostUpdateSettingDTO;
|
|
493
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Request parameters for energyCostSettingsDeleteById operation in EnergyCostControllerApi.
|
|
520
|
+
* @export
|
|
521
|
+
* @interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest
|
|
522
|
+
*/
|
|
523
|
+
export interface EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest {
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {number}
|
|
527
|
+
* @memberof EnergyCostControllerApiEnergyCostSettingsDeleteById
|
|
528
|
+
*/
|
|
529
|
+
readonly id: number;
|
|
530
|
+
}
|
|
494
531
|
/**
|
|
495
532
|
* EnergyCostControllerApi - object-oriented interface
|
|
496
533
|
* @export
|
|
@@ -588,6 +625,15 @@ export declare class EnergyCostControllerApi extends BaseAPI {
|
|
|
588
625
|
* @memberof EnergyCostControllerApi
|
|
589
626
|
*/
|
|
590
627
|
energyCostMonthSettingUpdate(requestParameters: EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
631
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof EnergyCostControllerApi
|
|
635
|
+
*/
|
|
636
|
+
energyCostSettingsDeleteById(requestParameters: EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
591
637
|
/**
|
|
592
638
|
*
|
|
593
639
|
* @summary 导出电费标准导入模板
|
|
@@ -392,6 +392,38 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration)
|
|
|
392
392
|
options: localVarRequestOptions,
|
|
393
393
|
};
|
|
394
394
|
}),
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
398
|
+
* @param {number} id
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
energyCostSettingsDeleteById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
403
|
+
// verify required parameter 'id' is not null or undefined
|
|
404
|
+
assertParamExists('energyCostSettingsDeleteById', 'id', id);
|
|
405
|
+
const localVarPath = `/gizone/energy/cost/month/setting/{id}`
|
|
406
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
408
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
409
|
+
let baseOptions;
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
}
|
|
413
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
414
|
+
const localVarHeaderParameter = {};
|
|
415
|
+
const localVarQueryParameter = {};
|
|
416
|
+
// authentication tokenScheme required
|
|
417
|
+
// http bearer authentication required
|
|
418
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
419
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
422
|
+
return {
|
|
423
|
+
url: toPathString(localVarUrlObj),
|
|
424
|
+
options: localVarRequestOptions,
|
|
425
|
+
};
|
|
426
|
+
}),
|
|
395
427
|
/**
|
|
396
428
|
*
|
|
397
429
|
* @summary 导出电费标准导入模板
|
|
@@ -622,6 +654,22 @@ export const EnergyCostControllerApiFp = function (configuration) {
|
|
|
622
654
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
623
655
|
});
|
|
624
656
|
},
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
660
|
+
* @param {number} id
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
energyCostSettingsDeleteById(id, options) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
var _a, _b, _c;
|
|
667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostSettingsDeleteById(id, options);
|
|
668
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
669
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostSettingsDeleteById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
670
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
671
|
+
});
|
|
672
|
+
},
|
|
625
673
|
/**
|
|
626
674
|
*
|
|
627
675
|
* @summary 导出电费标准导入模板
|
|
@@ -761,6 +809,16 @@ export const EnergyCostControllerApiFactory = function (configuration, basePath,
|
|
|
761
809
|
energyCostMonthSettingUpdate(requestParameters, options) {
|
|
762
810
|
return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
|
|
763
811
|
},
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
815
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
energyCostSettingsDeleteById(requestParameters, options) {
|
|
820
|
+
return localVarFp.energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
821
|
+
},
|
|
764
822
|
/**
|
|
765
823
|
*
|
|
766
824
|
* @summary 导出电费标准导入模板
|
|
@@ -898,6 +956,17 @@ export class EnergyCostControllerApi extends BaseAPI {
|
|
|
898
956
|
energyCostMonthSettingUpdate(requestParameters, options) {
|
|
899
957
|
return EnergyCostControllerApiFp(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
900
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @summary 能源费用管理设置-通过ID删除
|
|
962
|
+
* @param {EnergyCostControllerApiEnergyCostSettingsDeleteByIdRequest} requestParameters Request parameters.
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
* @memberof EnergyCostControllerApi
|
|
966
|
+
*/
|
|
967
|
+
energyCostSettingsDeleteById(requestParameters, options) {
|
|
968
|
+
return EnergyCostControllerApiFp(this.configuration).energyCostSettingsDeleteById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
969
|
+
}
|
|
901
970
|
/**
|
|
902
971
|
*
|
|
903
972
|
* @summary 导出电费标准导入模板
|
|
@@ -137,5 +137,6 @@ export declare const ResultCode: {
|
|
|
137
137
|
readonly SqlException: "SQL_EXCEPTION";
|
|
138
138
|
readonly FrequentAlarms: "FREQUENT_ALARMS";
|
|
139
139
|
readonly RateLimit: "RATE_LIMIT";
|
|
140
|
+
readonly HworkDataPermissionNotConfigured: "HWORK_DATA_PERMISSION_NOT_CONFIGURED";
|
|
140
141
|
};
|
|
141
142
|
export type ResultCode = typeof ResultCode[keyof typeof ResultCode];
|
|
@@ -138,5 +138,6 @@ export const ResultCode = {
|
|
|
138
138
|
RecordAlreadyExistsInTheDatabase: 'RECORD_ALREADY_EXISTS_IN_THE_DATABASE',
|
|
139
139
|
SqlException: 'SQL_EXCEPTION',
|
|
140
140
|
FrequentAlarms: 'FREQUENT_ALARMS',
|
|
141
|
-
RateLimit: 'RATE_LIMIT'
|
|
141
|
+
RateLimit: 'RATE_LIMIT',
|
|
142
|
+
HworkDataPermissionNotConfigured: 'HWORK_DATA_PERMISSION_NOT_CONFIGURED'
|
|
142
143
|
};
|
|
@@ -137,5 +137,6 @@ export declare const ResultCode: {
|
|
|
137
137
|
readonly SqlException: "SQL_EXCEPTION";
|
|
138
138
|
readonly FrequentAlarms: "FREQUENT_ALARMS";
|
|
139
139
|
readonly RateLimit: "RATE_LIMIT";
|
|
140
|
+
readonly HworkDataPermissionNotConfigured: "HWORK_DATA_PERMISSION_NOT_CONFIGURED";
|
|
140
141
|
};
|
|
141
142
|
export type ResultCode = typeof ResultCode[keyof typeof ResultCode];
|
|
@@ -141,5 +141,6 @@ exports.ResultCode = {
|
|
|
141
141
|
RecordAlreadyExistsInTheDatabase: 'RECORD_ALREADY_EXISTS_IN_THE_DATABASE',
|
|
142
142
|
SqlException: 'SQL_EXCEPTION',
|
|
143
143
|
FrequentAlarms: 'FREQUENT_ALARMS',
|
|
144
|
-
RateLimit: 'RATE_LIMIT'
|
|
144
|
+
RateLimit: 'RATE_LIMIT',
|
|
145
|
+
HworkDataPermissionNotConfigured: 'HWORK_DATA_PERMISSION_NOT_CONFIGURED'
|
|
145
146
|
};
|
package/models/result-code.ts
CHANGED
|
@@ -142,7 +142,8 @@ export const ResultCode = {
|
|
|
142
142
|
RecordAlreadyExistsInTheDatabase: 'RECORD_ALREADY_EXISTS_IN_THE_DATABASE',
|
|
143
143
|
SqlException: 'SQL_EXCEPTION',
|
|
144
144
|
FrequentAlarms: 'FREQUENT_ALARMS',
|
|
145
|
-
RateLimit: 'RATE_LIMIT'
|
|
145
|
+
RateLimit: 'RATE_LIMIT',
|
|
146
|
+
HworkDataPermissionNotConfigured: 'HWORK_DATA_PERMISSION_NOT_CONFIGURED'
|
|
146
147
|
} as const;
|
|
147
148
|
|
|
148
149
|
export type ResultCode = typeof ResultCode[keyof typeof ResultCode];
|