@gizone/rrs-client 4.2.9-alpha.527 → 4.2.9-alpha.537

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.
Files changed (101) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/api.ts +1 -0
  3. package/apis/device-api.ts +91 -0
  4. package/apis/energy-cost-controller-api.ts +973 -0
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/apis/device-api.d.ts +47 -0
  8. package/dist/apis/device-api.js +70 -0
  9. package/dist/apis/energy-cost-controller-api.d.ts +527 -0
  10. package/dist/apis/energy-cost-controller-api.js +737 -0
  11. package/dist/esm/api.d.ts +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/apis/device-api.d.ts +47 -0
  14. package/dist/esm/apis/device-api.js +70 -0
  15. package/dist/esm/apis/energy-cost-controller-api.d.ts +527 -0
  16. package/dist/esm/apis/energy-cost-controller-api.js +730 -0
  17. package/dist/esm/models/energy-cost-add-record-dto.d.ts +138 -0
  18. package/dist/esm/models/energy-cost-add-record-dto.js +27 -0
  19. package/dist/esm/models/energy-cost-add-setting-dto.d.ts +60 -0
  20. package/dist/esm/models/energy-cost-add-setting-dto.js +23 -0
  21. package/dist/esm/models/energy-cost-confirm-record-dto.d.ts +42 -0
  22. package/dist/esm/models/energy-cost-confirm-record-dto.js +17 -0
  23. package/dist/esm/models/energy-cost-month-setting-list-vo.d.ts +96 -0
  24. package/dist/esm/models/energy-cost-month-setting-list-vo.js +23 -0
  25. package/dist/esm/models/energy-cost-record-info-vo.d.ts +192 -0
  26. package/dist/esm/models/energy-cost-record-info-vo.js +27 -0
  27. package/dist/esm/models/energy-cost-scenarios-info-vo.d.ts +132 -0
  28. package/dist/esm/models/energy-cost-scenarios-info-vo.js +23 -0
  29. package/dist/esm/models/energy-cost-update-setting-dto.d.ts +60 -0
  30. package/dist/esm/models/energy-cost-update-setting-dto.js +23 -0
  31. package/dist/esm/models/index.d.ts +15 -0
  32. package/dist/esm/models/index.js +15 -0
  33. package/dist/esm/models/iot-device-unit-delete-dto.d.ts +42 -0
  34. package/dist/esm/models/iot-device-unit-delete-dto.js +14 -0
  35. package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +62 -0
  36. package/dist/esm/models/ipage-energy-cost-record-info-vo.js +14 -0
  37. package/dist/esm/models/item.d.ts +55 -0
  38. package/dist/esm/models/item.js +19 -0
  39. package/dist/esm/models/json-result-energy-cost-record-info-vo.d.ts +62 -0
  40. package/dist/esm/models/json-result-energy-cost-record-info-vo.js +14 -0
  41. package/dist/esm/models/json-result-ipage-energy-cost-record-info-vo.d.ts +62 -0
  42. package/dist/esm/models/json-result-ipage-energy-cost-record-info-vo.js +14 -0
  43. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-vo.d.ts +62 -0
  44. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-vo.js +14 -0
  45. package/dist/esm/models/json-result-map-string-object.d.ts +63 -0
  46. package/dist/esm/models/json-result-map-string-object.js +14 -0
  47. package/dist/esm/models/surveillance-batch-import-template-dto.d.ts +7 -0
  48. package/dist/esm/models/surveillance-entity.d.ts +171 -0
  49. package/dist/esm/models/surveillance-entity.js +14 -0
  50. package/dist/models/energy-cost-add-record-dto.d.ts +138 -0
  51. package/dist/models/energy-cost-add-record-dto.js +30 -0
  52. package/dist/models/energy-cost-add-setting-dto.d.ts +60 -0
  53. package/dist/models/energy-cost-add-setting-dto.js +26 -0
  54. package/dist/models/energy-cost-confirm-record-dto.d.ts +42 -0
  55. package/dist/models/energy-cost-confirm-record-dto.js +20 -0
  56. package/dist/models/energy-cost-month-setting-list-vo.d.ts +96 -0
  57. package/dist/models/energy-cost-month-setting-list-vo.js +26 -0
  58. package/dist/models/energy-cost-record-info-vo.d.ts +192 -0
  59. package/dist/models/energy-cost-record-info-vo.js +30 -0
  60. package/dist/models/energy-cost-scenarios-info-vo.d.ts +132 -0
  61. package/dist/models/energy-cost-scenarios-info-vo.js +26 -0
  62. package/dist/models/energy-cost-update-setting-dto.d.ts +60 -0
  63. package/dist/models/energy-cost-update-setting-dto.js +26 -0
  64. package/dist/models/index.d.ts +15 -0
  65. package/dist/models/index.js +15 -0
  66. package/dist/models/iot-device-unit-delete-dto.d.ts +42 -0
  67. package/dist/models/iot-device-unit-delete-dto.js +15 -0
  68. package/dist/models/ipage-energy-cost-record-info-vo.d.ts +62 -0
  69. package/dist/models/ipage-energy-cost-record-info-vo.js +15 -0
  70. package/dist/models/item.d.ts +55 -0
  71. package/dist/models/item.js +22 -0
  72. package/dist/models/json-result-energy-cost-record-info-vo.d.ts +62 -0
  73. package/dist/models/json-result-energy-cost-record-info-vo.js +15 -0
  74. package/dist/models/json-result-ipage-energy-cost-record-info-vo.d.ts +62 -0
  75. package/dist/models/json-result-ipage-energy-cost-record-info-vo.js +15 -0
  76. package/dist/models/json-result-list-energy-cost-month-setting-list-vo.d.ts +62 -0
  77. package/dist/models/json-result-list-energy-cost-month-setting-list-vo.js +15 -0
  78. package/dist/models/json-result-map-string-object.d.ts +63 -0
  79. package/dist/models/json-result-map-string-object.js +15 -0
  80. package/dist/models/surveillance-batch-import-template-dto.d.ts +7 -0
  81. package/dist/models/surveillance-entity.d.ts +171 -0
  82. package/dist/models/surveillance-entity.js +15 -0
  83. package/models/energy-cost-add-record-dto.ts +151 -0
  84. package/models/energy-cost-add-setting-dto.ts +70 -0
  85. package/models/energy-cost-confirm-record-dto.ts +53 -0
  86. package/models/energy-cost-month-setting-list-vo.ts +106 -0
  87. package/models/energy-cost-record-info-vo.ts +205 -0
  88. package/models/energy-cost-scenarios-info-vo.ts +142 -0
  89. package/models/energy-cost-update-setting-dto.ts +70 -0
  90. package/models/index.ts +15 -0
  91. package/models/iot-device-unit-delete-dto.ts +48 -0
  92. package/models/ipage-energy-cost-record-info-vo.ts +70 -0
  93. package/models/item.ts +64 -0
  94. package/models/json-result-energy-cost-record-info-vo.ts +72 -0
  95. package/models/json-result-ipage-energy-cost-record-info-vo.ts +72 -0
  96. package/models/json-result-list-energy-cost-month-setting-list-vo.ts +72 -0
  97. package/models/json-result-map-string-object.ts +69 -0
  98. package/models/surveillance-batch-import-template-dto.ts +9 -0
  99. package/models/surveillance-entity.ts +185 -0
  100. package/ossutil.log +1047 -0
  101. package/package.json +1 -1
@@ -0,0 +1,737 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.EnergyCostAddRecordListEnergyTypeEnum = exports.EnergyCostControllerApi = exports.EnergyCostControllerApiFactory = exports.EnergyCostControllerApiFp = exports.EnergyCostControllerApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * EnergyCostControllerApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const EnergyCostControllerApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary 新增能源消耗-提交
41
+ * @param {EnergyCostConfirmRecordDTO} energyCostConfirmRecordDTO
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ energyCostAddRecordConfirm: (energyCostConfirmRecordDTO_1, ...args_1) => __awaiter(this, [energyCostConfirmRecordDTO_1, ...args_1], void 0, function* (energyCostConfirmRecordDTO, options = {}) {
46
+ // verify required parameter 'energyCostConfirmRecordDTO' is not null or undefined
47
+ (0, common_1.assertParamExists)('energyCostAddRecordConfirm', 'energyCostConfirmRecordDTO', energyCostConfirmRecordDTO);
48
+ const localVarPath = `/gizone/energy/cost/record/confirm`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication tokenScheme required
59
+ // http bearer authentication required
60
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
+ localVarHeaderParameter['Content-Type'] = 'application/json';
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostConfirmRecordDTO, localVarRequestOptions, configuration);
66
+ return {
67
+ url: (0, common_1.toPathString)(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
71
+ /**
72
+ *
73
+ * @summary 新增能源消耗-返回详情
74
+ * @param {number} id
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ energyCostAddRecordDetail: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
79
+ // verify required parameter 'id' is not null or undefined
80
+ (0, common_1.assertParamExists)('energyCostAddRecordDetail', 'id', id);
81
+ const localVarPath = `/gizone/energy/cost/record/detail/{id}`
82
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication tokenScheme required
93
+ // http bearer authentication required
94
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
+ return {
99
+ url: (0, common_1.toPathString)(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ }),
103
+ /**
104
+ *
105
+ * @summary 新增能源消耗-录入
106
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ energyCostAddRecordInput: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
111
+ // verify required parameter 'energyCostAddRecordDTO' is not null or undefined
112
+ (0, common_1.assertParamExists)('energyCostAddRecordInput', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
113
+ const localVarPath = `/gizone/energy/cost/record/input`;
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ // authentication tokenScheme required
124
+ // http bearer authentication required
125
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddRecordDTO, localVarRequestOptions, configuration);
131
+ return {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ }),
136
+ /**
137
+ *
138
+ * @summary 新增能源消耗-录入保存为草稿
139
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ energyCostAddRecordInputDraft: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
144
+ // verify required parameter 'energyCostAddRecordDTO' is not null or undefined
145
+ (0, common_1.assertParamExists)('energyCostAddRecordInputDraft', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
146
+ const localVarPath = `/gizone/energy/cost/record/input/draft`;
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
154
+ const localVarHeaderParameter = {};
155
+ const localVarQueryParameter = {};
156
+ // authentication tokenScheme required
157
+ // http bearer authentication required
158
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
159
+ localVarHeaderParameter['Content-Type'] = 'application/json';
160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddRecordDTO, localVarRequestOptions, configuration);
164
+ return {
165
+ url: (0, common_1.toPathString)(localVarUrlObj),
166
+ options: localVarRequestOptions,
167
+ };
168
+ }),
169
+ /**
170
+ *
171
+ * @summary 新增能源消耗-列表
172
+ * @param {number} [page]
173
+ * @param {number} [size]
174
+ * @param {string} [billNo]
175
+ * @param {string} [startTime]
176
+ * @param {string} [endTime]
177
+ * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
178
+ * @param {number} [status]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ energyCostAddRecordList: (page_1, size_1, billNo_1, startTime_1, endTime_1, energyType_1, status_1, ...args_1) => __awaiter(this, [page_1, size_1, billNo_1, startTime_1, endTime_1, energyType_1, status_1, ...args_1], void 0, function* (page, size, billNo, startTime, endTime, energyType, status, options = {}) {
183
+ const localVarPath = `/gizone/energy/cost/record/list`;
184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ // authentication tokenScheme required
194
+ // http bearer authentication required
195
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
196
+ if (page !== undefined) {
197
+ localVarQueryParameter['page'] = page;
198
+ }
199
+ if (size !== undefined) {
200
+ localVarQueryParameter['size'] = size;
201
+ }
202
+ if (billNo !== undefined) {
203
+ localVarQueryParameter['billNo'] = billNo;
204
+ }
205
+ if (startTime !== undefined) {
206
+ localVarQueryParameter['startTime'] = startTime;
207
+ }
208
+ if (endTime !== undefined) {
209
+ localVarQueryParameter['endTime'] = endTime;
210
+ }
211
+ if (energyType !== undefined) {
212
+ localVarQueryParameter['energyType'] = energyType;
213
+ }
214
+ if (status !== undefined) {
215
+ localVarQueryParameter['status'] = status;
216
+ }
217
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
219
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
220
+ return {
221
+ url: (0, common_1.toPathString)(localVarUrlObj),
222
+ options: localVarRequestOptions,
223
+ };
224
+ }),
225
+ /**
226
+ *
227
+ * @summary 新增能源费用管理设置-单条新增
228
+ * @param {EnergyCostAddSettingDTO} energyCostAddSettingDTO
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ energyCostMonthSettingAdd: (energyCostAddSettingDTO_1, ...args_1) => __awaiter(this, [energyCostAddSettingDTO_1, ...args_1], void 0, function* (energyCostAddSettingDTO, options = {}) {
233
+ // verify required parameter 'energyCostAddSettingDTO' is not null or undefined
234
+ (0, common_1.assertParamExists)('energyCostMonthSettingAdd', 'energyCostAddSettingDTO', energyCostAddSettingDTO);
235
+ const localVarPath = `/gizone/energy/cost/month/setting`;
236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
238
+ let baseOptions;
239
+ if (configuration) {
240
+ baseOptions = configuration.baseOptions;
241
+ }
242
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
243
+ const localVarHeaderParameter = {};
244
+ const localVarQueryParameter = {};
245
+ // authentication tokenScheme required
246
+ // http bearer authentication required
247
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
248
+ localVarHeaderParameter['Content-Type'] = 'application/json';
249
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
252
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddSettingDTO, localVarRequestOptions, configuration);
253
+ return {
254
+ url: (0, common_1.toPathString)(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ }),
258
+ /**
259
+ *
260
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
261
+ * @param {string} [startTime]
262
+ * @param {string} [endTime]
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ energyCostMonthSettingList: (startTime_1, endTime_1, ...args_1) => __awaiter(this, [startTime_1, endTime_1, ...args_1], void 0, function* (startTime, endTime, options = {}) {
267
+ const localVarPath = `/gizone/energy/cost/month/setting`;
268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
269
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ }
274
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
275
+ const localVarHeaderParameter = {};
276
+ const localVarQueryParameter = {};
277
+ // authentication tokenScheme required
278
+ // http bearer authentication required
279
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
280
+ if (startTime !== undefined) {
281
+ localVarQueryParameter['startTime'] = startTime;
282
+ }
283
+ if (endTime !== undefined) {
284
+ localVarQueryParameter['endTime'] = endTime;
285
+ }
286
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
289
+ return {
290
+ url: (0, common_1.toPathString)(localVarUrlObj),
291
+ options: localVarRequestOptions,
292
+ };
293
+ }),
294
+ /**
295
+ *
296
+ * @summary 新增能源费用管理设置-单条修改
297
+ * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ energyCostMonthSettingUpdate: (energyCostUpdateSettingDTO_1, ...args_1) => __awaiter(this, [energyCostUpdateSettingDTO_1, ...args_1], void 0, function* (energyCostUpdateSettingDTO, options = {}) {
302
+ // verify required parameter 'energyCostUpdateSettingDTO' is not null or undefined
303
+ (0, common_1.assertParamExists)('energyCostMonthSettingUpdate', 'energyCostUpdateSettingDTO', energyCostUpdateSettingDTO);
304
+ const localVarPath = `/gizone/energy/cost/month/setting`;
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ if (configuration) {
309
+ baseOptions = configuration.baseOptions;
310
+ }
311
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
312
+ const localVarHeaderParameter = {};
313
+ const localVarQueryParameter = {};
314
+ // authentication tokenScheme required
315
+ // http bearer authentication required
316
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
318
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
321
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostUpdateSettingDTO, localVarRequestOptions, configuration);
322
+ return {
323
+ url: (0, common_1.toPathString)(localVarUrlObj),
324
+ options: localVarRequestOptions,
325
+ };
326
+ }),
327
+ /**
328
+ *
329
+ * @summary 获取下拉框内容
330
+ * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ getOptions: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
335
+ const localVarPath = `/gizone/energy/cost/record/getOptions`;
336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
337
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
338
+ let baseOptions;
339
+ if (configuration) {
340
+ baseOptions = configuration.baseOptions;
341
+ }
342
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
343
+ const localVarHeaderParameter = {};
344
+ const localVarQueryParameter = {};
345
+ // authentication tokenScheme required
346
+ // http bearer authentication required
347
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
348
+ if (type !== undefined) {
349
+ localVarQueryParameter['type'] = type;
350
+ }
351
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
354
+ return {
355
+ url: (0, common_1.toPathString)(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ };
358
+ }),
359
+ };
360
+ };
361
+ exports.EnergyCostControllerApiAxiosParamCreator = EnergyCostControllerApiAxiosParamCreator;
362
+ /**
363
+ * EnergyCostControllerApi - functional programming interface
364
+ * @export
365
+ */
366
+ const EnergyCostControllerApiFp = function (configuration) {
367
+ const localVarAxiosParamCreator = (0, exports.EnergyCostControllerApiAxiosParamCreator)(configuration);
368
+ return {
369
+ /**
370
+ *
371
+ * @summary 新增能源消耗-提交
372
+ * @param {EnergyCostConfirmRecordDTO} energyCostConfirmRecordDTO
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ energyCostAddRecordConfirm(energyCostConfirmRecordDTO, options) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ var _a, _b, _c;
379
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordConfirm(energyCostConfirmRecordDTO, options);
380
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
381
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostAddRecordConfirm']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
382
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
383
+ });
384
+ },
385
+ /**
386
+ *
387
+ * @summary 新增能源消耗-返回详情
388
+ * @param {number} id
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ energyCostAddRecordDetail(id, options) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ var _a, _b, _c;
395
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordDetail(id, options);
396
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
397
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostAddRecordDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
398
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
399
+ });
400
+ },
401
+ /**
402
+ *
403
+ * @summary 新增能源消耗-录入
404
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ energyCostAddRecordInput(energyCostAddRecordDTO, options) {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ var _a, _b, _c;
411
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInput(energyCostAddRecordDTO, options);
412
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
413
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostAddRecordInput']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
414
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
415
+ });
416
+ },
417
+ /**
418
+ *
419
+ * @summary 新增能源消耗-录入保存为草稿
420
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ energyCostAddRecordInputDraft(energyCostAddRecordDTO, options) {
425
+ return __awaiter(this, void 0, void 0, function* () {
426
+ var _a, _b, _c;
427
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInputDraft(energyCostAddRecordDTO, options);
428
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
429
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostAddRecordInputDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
430
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
431
+ });
432
+ },
433
+ /**
434
+ *
435
+ * @summary 新增能源消耗-列表
436
+ * @param {number} [page]
437
+ * @param {number} [size]
438
+ * @param {string} [billNo]
439
+ * @param {string} [startTime]
440
+ * @param {string} [endTime]
441
+ * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
442
+ * @param {number} [status]
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ energyCostAddRecordList(page, size, billNo, startTime, endTime, energyType, status, options) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ var _a, _b, _c;
449
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billNo, startTime, endTime, energyType, status, options);
450
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
451
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
452
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
453
+ });
454
+ },
455
+ /**
456
+ *
457
+ * @summary 新增能源费用管理设置-单条新增
458
+ * @param {EnergyCostAddSettingDTO} energyCostAddSettingDTO
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ energyCostMonthSettingAdd(energyCostAddSettingDTO, options) {
463
+ return __awaiter(this, void 0, void 0, function* () {
464
+ var _a, _b, _c;
465
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingAdd(energyCostAddSettingDTO, options);
466
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
467
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostMonthSettingAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
468
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
469
+ });
470
+ },
471
+ /**
472
+ *
473
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
474
+ * @param {string} [startTime]
475
+ * @param {string} [endTime]
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ energyCostMonthSettingList(startTime, endTime, options) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ var _a, _b, _c;
482
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingList(startTime, endTime, options);
483
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
484
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostMonthSettingList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
485
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
486
+ });
487
+ },
488
+ /**
489
+ *
490
+ * @summary 新增能源费用管理设置-单条修改
491
+ * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options) {
496
+ return __awaiter(this, void 0, void 0, function* () {
497
+ var _a, _b, _c;
498
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options);
499
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
500
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostMonthSettingUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
501
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
502
+ });
503
+ },
504
+ /**
505
+ *
506
+ * @summary 获取下拉框内容
507
+ * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ getOptions(type, options) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ var _a, _b, _c;
514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptions(type, options);
515
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
516
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.getOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
517
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
518
+ });
519
+ },
520
+ };
521
+ };
522
+ exports.EnergyCostControllerApiFp = EnergyCostControllerApiFp;
523
+ /**
524
+ * EnergyCostControllerApi - factory interface
525
+ * @export
526
+ */
527
+ const EnergyCostControllerApiFactory = function (configuration, basePath, axios) {
528
+ const localVarFp = (0, exports.EnergyCostControllerApiFp)(configuration);
529
+ return {
530
+ /**
531
+ *
532
+ * @summary 新增能源消耗-提交
533
+ * @param {EnergyCostControllerApiEnergyCostAddRecordConfirmRequest} requestParameters Request parameters.
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ energyCostAddRecordConfirm(requestParameters, options) {
538
+ return localVarFp.energyCostAddRecordConfirm(requestParameters.energyCostConfirmRecordDTO, options).then((request) => request(axios, basePath));
539
+ },
540
+ /**
541
+ *
542
+ * @summary 新增能源消耗-返回详情
543
+ * @param {EnergyCostControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ energyCostAddRecordDetail(requestParameters, options) {
548
+ return localVarFp.energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(axios, basePath));
549
+ },
550
+ /**
551
+ *
552
+ * @summary 新增能源消耗-录入
553
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputRequest} requestParameters Request parameters.
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ energyCostAddRecordInput(requestParameters, options) {
558
+ return localVarFp.energyCostAddRecordInput(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
559
+ },
560
+ /**
561
+ *
562
+ * @summary 新增能源消耗-录入保存为草稿
563
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ energyCostAddRecordInputDraft(requestParameters, options) {
568
+ return localVarFp.energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
569
+ },
570
+ /**
571
+ *
572
+ * @summary 新增能源消耗-列表
573
+ * @param {EnergyCostControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ energyCostAddRecordList(requestParameters = {}, options) {
578
+ return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billNo, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
579
+ },
580
+ /**
581
+ *
582
+ * @summary 新增能源费用管理设置-单条新增
583
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ energyCostMonthSettingAdd(requestParameters, options) {
588
+ return localVarFp.energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(axios, basePath));
589
+ },
590
+ /**
591
+ *
592
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
593
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ energyCostMonthSettingList(requestParameters = {}, options) {
598
+ return localVarFp.energyCostMonthSettingList(requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
599
+ },
600
+ /**
601
+ *
602
+ * @summary 新增能源费用管理设置-单条修改
603
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ energyCostMonthSettingUpdate(requestParameters, options) {
608
+ return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
609
+ },
610
+ /**
611
+ *
612
+ * @summary 获取下拉框内容
613
+ * @param {EnergyCostControllerApiGetOptionsRequest} requestParameters Request parameters.
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ getOptions(requestParameters = {}, options) {
618
+ return localVarFp.getOptions(requestParameters.type, options).then((request) => request(axios, basePath));
619
+ },
620
+ };
621
+ };
622
+ exports.EnergyCostControllerApiFactory = EnergyCostControllerApiFactory;
623
+ /**
624
+ * EnergyCostControllerApi - object-oriented interface
625
+ * @export
626
+ * @class EnergyCostControllerApi
627
+ * @extends {BaseAPI}
628
+ */
629
+ class EnergyCostControllerApi extends base_1.BaseAPI {
630
+ /**
631
+ *
632
+ * @summary 新增能源消耗-提交
633
+ * @param {EnergyCostControllerApiEnergyCostAddRecordConfirmRequest} requestParameters Request parameters.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ * @memberof EnergyCostControllerApi
637
+ */
638
+ energyCostAddRecordConfirm(requestParameters, options) {
639
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostAddRecordConfirm(requestParameters.energyCostConfirmRecordDTO, options).then((request) => request(this.axios, this.basePath));
640
+ }
641
+ /**
642
+ *
643
+ * @summary 新增能源消耗-返回详情
644
+ * @param {EnergyCostControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ * @memberof EnergyCostControllerApi
648
+ */
649
+ energyCostAddRecordDetail(requestParameters, options) {
650
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
651
+ }
652
+ /**
653
+ *
654
+ * @summary 新增能源消耗-录入
655
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputRequest} requestParameters Request parameters.
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ * @memberof EnergyCostControllerApi
659
+ */
660
+ energyCostAddRecordInput(requestParameters, options) {
661
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostAddRecordInput(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
662
+ }
663
+ /**
664
+ *
665
+ * @summary 新增能源消耗-录入保存为草稿
666
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof EnergyCostControllerApi
670
+ */
671
+ energyCostAddRecordInputDraft(requestParameters, options) {
672
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
673
+ }
674
+ /**
675
+ *
676
+ * @summary 新增能源消耗-列表
677
+ * @param {EnergyCostControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof EnergyCostControllerApi
681
+ */
682
+ energyCostAddRecordList(requestParameters = {}, options) {
683
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billNo, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
684
+ }
685
+ /**
686
+ *
687
+ * @summary 新增能源费用管理设置-单条新增
688
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof EnergyCostControllerApi
692
+ */
693
+ energyCostMonthSettingAdd(requestParameters, options) {
694
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(this.axios, this.basePath));
695
+ }
696
+ /**
697
+ *
698
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
699
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
700
+ * @param {*} [options] Override http request option.
701
+ * @throws {RequiredError}
702
+ * @memberof EnergyCostControllerApi
703
+ */
704
+ energyCostMonthSettingList(requestParameters = {}, options) {
705
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostMonthSettingList(requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
706
+ }
707
+ /**
708
+ *
709
+ * @summary 新增能源费用管理设置-单条修改
710
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ * @memberof EnergyCostControllerApi
714
+ */
715
+ energyCostMonthSettingUpdate(requestParameters, options) {
716
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
717
+ }
718
+ /**
719
+ *
720
+ * @summary 获取下拉框内容
721
+ * @param {EnergyCostControllerApiGetOptionsRequest} requestParameters Request parameters.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ * @memberof EnergyCostControllerApi
725
+ */
726
+ getOptions(requestParameters = {}, options) {
727
+ return (0, exports.EnergyCostControllerApiFp)(this.configuration).getOptions(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
728
+ }
729
+ }
730
+ exports.EnergyCostControllerApi = EnergyCostControllerApi;
731
+ /**
732
+ * @export
733
+ */
734
+ exports.EnergyCostAddRecordListEnergyTypeEnum = {
735
+ Electric: 'ELECTRIC',
736
+ Water: 'WATER'
737
+ };