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

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