@gizone/rrs-client 4.2.9-alpha.539 → 4.2.9-alpha.541

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 (63) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/api.ts +2 -1
  3. package/apis/energy-cost-controller-api.ts +769 -0
  4. package/apis/energy-cost-record-controller-api.ts +686 -0
  5. package/dist/api.d.ts +2 -1
  6. package/dist/api.js +2 -1
  7. package/dist/apis/energy-cost-controller-api.d.ts +418 -0
  8. package/dist/apis/energy-cost-controller-api.js +595 -0
  9. package/dist/apis/energy-cost-record-controller-api.d.ts +377 -0
  10. package/dist/apis/energy-cost-record-controller-api.js +523 -0
  11. package/dist/esm/api.d.ts +2 -1
  12. package/dist/esm/api.js +2 -1
  13. package/dist/esm/apis/energy-cost-controller-api.d.ts +418 -0
  14. package/dist/esm/apis/energy-cost-controller-api.js +588 -0
  15. package/dist/esm/apis/energy-cost-record-controller-api.d.ts +377 -0
  16. package/dist/esm/apis/energy-cost-record-controller-api.js +516 -0
  17. package/dist/esm/models/energy-cost-add-record-dto.d.ts +7 -0
  18. package/dist/esm/models/energy-cost-add-setting-dto.d.ts +4 -39
  19. package/dist/esm/models/energy-cost-add-setting-dto.js +1 -10
  20. package/dist/esm/models/energy-cost-setting-delete-dto.d.ts +41 -0
  21. package/dist/esm/models/energy-cost-setting-delete-dto.js +17 -0
  22. package/dist/esm/models/energy-cost-update-setting-dto.d.ts +1 -1
  23. package/dist/esm/models/index.d.ts +3 -0
  24. package/dist/esm/models/index.js +3 -0
  25. package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +5 -5
  26. package/dist/esm/models/item.d.ts +4 -4
  27. package/dist/esm/models/park-setting.d.ts +42 -0
  28. package/dist/esm/models/park-setting.js +17 -0
  29. package/dist/esm/models/pricing-item.d.ts +50 -0
  30. package/dist/esm/models/pricing-item.js +20 -0
  31. package/dist/esm/models/sys-user.d.ts +4 -4
  32. package/dist/models/energy-cost-add-record-dto.d.ts +7 -0
  33. package/dist/models/energy-cost-add-setting-dto.d.ts +4 -39
  34. package/dist/models/energy-cost-add-setting-dto.js +0 -11
  35. package/dist/models/energy-cost-setting-delete-dto.d.ts +41 -0
  36. package/dist/models/energy-cost-setting-delete-dto.js +20 -0
  37. package/dist/models/energy-cost-update-setting-dto.d.ts +1 -1
  38. package/dist/models/index.d.ts +3 -0
  39. package/dist/models/index.js +3 -0
  40. package/dist/models/ipage-energy-cost-record-info-vo.d.ts +5 -5
  41. package/dist/models/item.d.ts +4 -4
  42. package/dist/models/park-setting.d.ts +42 -0
  43. package/dist/models/park-setting.js +20 -0
  44. package/dist/models/pricing-item.d.ts +50 -0
  45. package/dist/models/pricing-item.js +23 -0
  46. package/dist/models/sys-user.d.ts +4 -4
  47. package/models/energy-cost-add-record-dto.ts +9 -0
  48. package/models/energy-cost-add-setting-dto.ts +6 -43
  49. package/models/energy-cost-setting-delete-dto.ts +50 -0
  50. package/models/energy-cost-update-setting-dto.ts +1 -1
  51. package/models/index.ts +3 -0
  52. package/models/ipage-energy-cost-record-info-vo.ts +5 -5
  53. package/models/item.ts +4 -4
  54. package/models/park-setting.ts +53 -0
  55. package/models/pricing-item.ts +59 -0
  56. package/models/sys-user.ts +4 -4
  57. package/ossutil.log +1056 -1056
  58. package/package.json +1 -1
  59. package/apis/default-api.ts +0 -1302
  60. package/dist/apis/default-api.d.ts +0 -707
  61. package/dist/apis/default-api.js +0 -979
  62. package/dist/esm/apis/default-api.d.ts +0 -707
  63. package/dist/esm/apis/default-api.js +0 -972
@@ -1,979 +0,0 @@
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.EnergyCostMonthSettingSummaryListEnergyTypeEnum = exports.EnergyCostMonthSettingListEnergyTypeEnum = exports.EnergyCostAddRecordListEnergyTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
- * DefaultApi - axios parameter creator
34
- * @export
35
- */
36
- const DefaultApiAxiosParamCreator = 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 {EnergyCostSettingSummyAddDTO} energyCostSettingSummyAddDTO
304
- * @param {*} [options] Override http request option.
305
- * @throws {RequiredError}
306
- */
307
- energyCostMonthSettingSummaryAdd: (energyCostSettingSummyAddDTO_1, ...args_1) => __awaiter(this, [energyCostSettingSummyAddDTO_1, ...args_1], void 0, function* (energyCostSettingSummyAddDTO, options = {}) {
308
- // verify required parameter 'energyCostSettingSummyAddDTO' is not null or undefined
309
- (0, common_1.assertParamExists)('energyCostMonthSettingSummaryAdd', 'energyCostSettingSummyAddDTO', energyCostSettingSummyAddDTO);
310
- const localVarPath = `/gizone/energy/cost/month/setting/summaryStandards`;
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: 'POST' }, 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)(energyCostSettingSummyAddDTO, localVarRequestOptions, configuration);
328
- return {
329
- url: (0, common_1.toPathString)(localVarUrlObj),
330
- options: localVarRequestOptions,
331
- };
332
- }),
333
- /**
334
- *
335
- * @summary 新增能源费用管理设置-列表-查询园区汇总标准
336
- * @param {EnergyCostMonthSettingSummaryListEnergyTypeEnum} energyType
337
- * @param {string} [startTime]
338
- * @param {string} [endTime]
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- energyCostMonthSettingSummaryList: (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 = {}) {
343
- // verify required parameter 'energyType' is not null or undefined
344
- (0, common_1.assertParamExists)('energyCostMonthSettingSummaryList', 'energyType', energyType);
345
- const localVarPath = `/gizone/energy/cost/month/setting/summaryStandards`;
346
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
- let baseOptions;
349
- if (configuration) {
350
- baseOptions = configuration.baseOptions;
351
- }
352
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
353
- const localVarHeaderParameter = {};
354
- const localVarQueryParameter = {};
355
- // authentication tokenScheme required
356
- // http bearer authentication required
357
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
358
- if (startTime !== undefined) {
359
- localVarQueryParameter['startTime'] = startTime;
360
- }
361
- if (endTime !== undefined) {
362
- localVarQueryParameter['endTime'] = endTime;
363
- }
364
- if (energyType !== undefined) {
365
- localVarQueryParameter['energyType'] = energyType;
366
- }
367
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
368
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
369
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
370
- return {
371
- url: (0, common_1.toPathString)(localVarUrlObj),
372
- options: localVarRequestOptions,
373
- };
374
- }),
375
- /**
376
- *
377
- * @summary 新增能源费用管理设置-园区汇总标准修改
378
- * @param {EnergyCostSettingSummyUpdateDTO} energyCostSettingSummyUpdateDTO
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- */
382
- energyCostMonthSettingSummaryUpdate: (energyCostSettingSummyUpdateDTO_1, ...args_1) => __awaiter(this, [energyCostSettingSummyUpdateDTO_1, ...args_1], void 0, function* (energyCostSettingSummyUpdateDTO, options = {}) {
383
- // verify required parameter 'energyCostSettingSummyUpdateDTO' is not null or undefined
384
- (0, common_1.assertParamExists)('energyCostMonthSettingSummaryUpdate', 'energyCostSettingSummyUpdateDTO', energyCostSettingSummyUpdateDTO);
385
- const localVarPath = `/gizone/energy/cost/month/setting/summaryStandards`;
386
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
387
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
388
- let baseOptions;
389
- if (configuration) {
390
- baseOptions = configuration.baseOptions;
391
- }
392
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
393
- const localVarHeaderParameter = {};
394
- const localVarQueryParameter = {};
395
- // authentication tokenScheme required
396
- // http bearer authentication required
397
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
398
- localVarHeaderParameter['Content-Type'] = 'application/json';
399
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
400
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
401
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
402
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostSettingSummyUpdateDTO, localVarRequestOptions, configuration);
403
- return {
404
- url: (0, common_1.toPathString)(localVarUrlObj),
405
- options: localVarRequestOptions,
406
- };
407
- }),
408
- /**
409
- *
410
- * @summary 新增能源费用管理设置-单条修改
411
- * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
412
- * @param {*} [options] Override http request option.
413
- * @throws {RequiredError}
414
- */
415
- energyCostMonthSettingUpdate: (energyCostUpdateSettingDTO_1, ...args_1) => __awaiter(this, [energyCostUpdateSettingDTO_1, ...args_1], void 0, function* (energyCostUpdateSettingDTO, options = {}) {
416
- // verify required parameter 'energyCostUpdateSettingDTO' is not null or undefined
417
- (0, common_1.assertParamExists)('energyCostMonthSettingUpdate', 'energyCostUpdateSettingDTO', energyCostUpdateSettingDTO);
418
- const localVarPath = `/gizone/energy/cost/month/setting`;
419
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
420
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
421
- let baseOptions;
422
- if (configuration) {
423
- baseOptions = configuration.baseOptions;
424
- }
425
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
426
- const localVarHeaderParameter = {};
427
- const localVarQueryParameter = {};
428
- // authentication tokenScheme required
429
- // http bearer authentication required
430
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
431
- localVarHeaderParameter['Content-Type'] = 'application/json';
432
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
433
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
434
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
435
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostUpdateSettingDTO, localVarRequestOptions, configuration);
436
- return {
437
- url: (0, common_1.toPathString)(localVarUrlObj),
438
- options: localVarRequestOptions,
439
- };
440
- }),
441
- /**
442
- *
443
- * @summary 获取下拉框内容
444
- * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
445
- * @param {*} [options] Override http request option.
446
- * @throws {RequiredError}
447
- */
448
- getOptions: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
449
- const localVarPath = `/gizone/energy/cost/record/getOptions`;
450
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
452
- let baseOptions;
453
- if (configuration) {
454
- baseOptions = configuration.baseOptions;
455
- }
456
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
457
- const localVarHeaderParameter = {};
458
- const localVarQueryParameter = {};
459
- // authentication tokenScheme required
460
- // http bearer authentication required
461
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
462
- if (type !== undefined) {
463
- localVarQueryParameter['type'] = type;
464
- }
465
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
466
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
467
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
468
- return {
469
- url: (0, common_1.toPathString)(localVarUrlObj),
470
- options: localVarRequestOptions,
471
- };
472
- }),
473
- };
474
- };
475
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
476
- /**
477
- * DefaultApi - functional programming interface
478
- * @export
479
- */
480
- const DefaultApiFp = function (configuration) {
481
- const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
482
- return {
483
- /**
484
- *
485
- * @summary 新增能源消耗-返回详情
486
- * @param {number} id
487
- * @param {*} [options] Override http request option.
488
- * @throws {RequiredError}
489
- */
490
- energyCostAddRecordDetail(id, options) {
491
- return __awaiter(this, void 0, void 0, function* () {
492
- var _a, _b, _c;
493
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordDetail(id, options);
494
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
495
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostAddRecordDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
496
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
497
- });
498
- },
499
- /**
500
- *
501
- * @summary 新增能源消耗-录入保存为草稿
502
- * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
503
- * @param {*} [options] Override http request option.
504
- * @throws {RequiredError}
505
- */
506
- energyCostAddRecordInputDraft(energyCostAddRecordDTO, options) {
507
- return __awaiter(this, void 0, void 0, function* () {
508
- var _a, _b, _c;
509
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInputDraft(energyCostAddRecordDTO, options);
510
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
511
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostAddRecordInputDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
512
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
513
- });
514
- },
515
- /**
516
- *
517
- * @summary 新增能源消耗-列表
518
- * @param {number} [page]
519
- * @param {number} [size]
520
- * @param {string} [billCode]
521
- * @param {string} [startTime]
522
- * @param {string} [endTime]
523
- * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
524
- * @param {number} [status]
525
- * @param {*} [options] Override http request option.
526
- * @throws {RequiredError}
527
- */
528
- energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options) {
529
- return __awaiter(this, void 0, void 0, function* () {
530
- var _a, _b, _c;
531
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options);
532
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
533
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
534
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
535
- });
536
- },
537
- /**
538
- *
539
- * @summary 新增能源消耗-next
540
- * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- */
544
- energyCostAddRecordNext(energyCostAddRecordDTO, options) {
545
- return __awaiter(this, void 0, void 0, function* () {
546
- var _a, _b, _c;
547
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordNext(energyCostAddRecordDTO, options);
548
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
549
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostAddRecordNext']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
550
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
551
- });
552
- },
553
- /**
554
- *
555
- * @summary 新增能源消耗-提交
556
- * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- */
560
- energyCostAddRecordSubmit(energyCostAddRecordDTO, options) {
561
- return __awaiter(this, void 0, void 0, function* () {
562
- var _a, _b, _c;
563
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordSubmit(energyCostAddRecordDTO, options);
564
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostAddRecordSubmit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
566
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
- });
568
- },
569
- /**
570
- *
571
- * @summary 新增能源费用管理设置-单条新增
572
- * @param {EnergyCostAddSettingDTO} energyCostAddSettingDTO
573
- * @param {*} [options] Override http request option.
574
- * @throws {RequiredError}
575
- */
576
- energyCostMonthSettingAdd(energyCostAddSettingDTO, options) {
577
- return __awaiter(this, void 0, void 0, function* () {
578
- var _a, _b, _c;
579
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingAdd(energyCostAddSettingDTO, options);
580
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
581
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
582
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
583
- });
584
- },
585
- /**
586
- *
587
- * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
588
- * @param {EnergyCostMonthSettingListEnergyTypeEnum} energyType
589
- * @param {string} [startTime]
590
- * @param {string} [endTime]
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- */
594
- energyCostMonthSettingList(energyType, startTime, endTime, options) {
595
- return __awaiter(this, void 0, void 0, function* () {
596
- var _a, _b, _c;
597
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingList(energyType, startTime, endTime, options);
598
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
599
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
600
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
601
- });
602
- },
603
- /**
604
- *
605
- * @summary 新增能源费用管理设置-园区汇总标准新增
606
- * @param {EnergyCostSettingSummyAddDTO} energyCostSettingSummyAddDTO
607
- * @param {*} [options] Override http request option.
608
- * @throws {RequiredError}
609
- */
610
- energyCostMonthSettingSummaryAdd(energyCostSettingSummyAddDTO, options) {
611
- return __awaiter(this, void 0, void 0, function* () {
612
- var _a, _b, _c;
613
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingSummaryAdd(energyCostSettingSummyAddDTO, options);
614
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
615
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingSummaryAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
616
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
617
- });
618
- },
619
- /**
620
- *
621
- * @summary 新增能源费用管理设置-列表-查询园区汇总标准
622
- * @param {EnergyCostMonthSettingSummaryListEnergyTypeEnum} energyType
623
- * @param {string} [startTime]
624
- * @param {string} [endTime]
625
- * @param {*} [options] Override http request option.
626
- * @throws {RequiredError}
627
- */
628
- energyCostMonthSettingSummaryList(energyType, startTime, endTime, options) {
629
- return __awaiter(this, void 0, void 0, function* () {
630
- var _a, _b, _c;
631
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingSummaryList(energyType, startTime, endTime, options);
632
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
633
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingSummaryList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
634
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
635
- });
636
- },
637
- /**
638
- *
639
- * @summary 新增能源费用管理设置-园区汇总标准修改
640
- * @param {EnergyCostSettingSummyUpdateDTO} energyCostSettingSummyUpdateDTO
641
- * @param {*} [options] Override http request option.
642
- * @throws {RequiredError}
643
- */
644
- energyCostMonthSettingSummaryUpdate(energyCostSettingSummyUpdateDTO, options) {
645
- return __awaiter(this, void 0, void 0, function* () {
646
- var _a, _b, _c;
647
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingSummaryUpdate(energyCostSettingSummyUpdateDTO, options);
648
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
649
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingSummaryUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
650
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
651
- });
652
- },
653
- /**
654
- *
655
- * @summary 新增能源费用管理设置-单条修改
656
- * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
657
- * @param {*} [options] Override http request option.
658
- * @throws {RequiredError}
659
- */
660
- energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options) {
661
- return __awaiter(this, void 0, void 0, function* () {
662
- var _a, _b, _c;
663
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options);
664
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
665
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.energyCostMonthSettingUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
666
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
667
- });
668
- },
669
- /**
670
- *
671
- * @summary 获取下拉框内容
672
- * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
673
- * @param {*} [options] Override http request option.
674
- * @throws {RequiredError}
675
- */
676
- getOptions(type, options) {
677
- return __awaiter(this, void 0, void 0, function* () {
678
- var _a, _b, _c;
679
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptions(type, options);
680
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
681
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
682
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
683
- });
684
- },
685
- };
686
- };
687
- exports.DefaultApiFp = DefaultApiFp;
688
- /**
689
- * DefaultApi - factory interface
690
- * @export
691
- */
692
- const DefaultApiFactory = function (configuration, basePath, axios) {
693
- const localVarFp = (0, exports.DefaultApiFp)(configuration);
694
- return {
695
- /**
696
- *
697
- * @summary 新增能源消耗-返回详情
698
- * @param {DefaultApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
699
- * @param {*} [options] Override http request option.
700
- * @throws {RequiredError}
701
- */
702
- energyCostAddRecordDetail(requestParameters, options) {
703
- return localVarFp.energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(axios, basePath));
704
- },
705
- /**
706
- *
707
- * @summary 新增能源消耗-录入保存为草稿
708
- * @param {DefaultApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
709
- * @param {*} [options] Override http request option.
710
- * @throws {RequiredError}
711
- */
712
- energyCostAddRecordInputDraft(requestParameters, options) {
713
- return localVarFp.energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
714
- },
715
- /**
716
- *
717
- * @summary 新增能源消耗-列表
718
- * @param {DefaultApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
719
- * @param {*} [options] Override http request option.
720
- * @throws {RequiredError}
721
- */
722
- energyCostAddRecordList(requestParameters = {}, options) {
723
- return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
724
- },
725
- /**
726
- *
727
- * @summary 新增能源消耗-next
728
- * @param {DefaultApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
729
- * @param {*} [options] Override http request option.
730
- * @throws {RequiredError}
731
- */
732
- energyCostAddRecordNext(requestParameters, options) {
733
- return localVarFp.energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
734
- },
735
- /**
736
- *
737
- * @summary 新增能源消耗-提交
738
- * @param {DefaultApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
739
- * @param {*} [options] Override http request option.
740
- * @throws {RequiredError}
741
- */
742
- energyCostAddRecordSubmit(requestParameters, options) {
743
- return localVarFp.energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
744
- },
745
- /**
746
- *
747
- * @summary 新增能源费用管理设置-单条新增
748
- * @param {DefaultApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
749
- * @param {*} [options] Override http request option.
750
- * @throws {RequiredError}
751
- */
752
- energyCostMonthSettingAdd(requestParameters, options) {
753
- return localVarFp.energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(axios, basePath));
754
- },
755
- /**
756
- *
757
- * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
758
- * @param {DefaultApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
759
- * @param {*} [options] Override http request option.
760
- * @throws {RequiredError}
761
- */
762
- energyCostMonthSettingList(requestParameters, options) {
763
- return localVarFp.energyCostMonthSettingList(requestParameters.energyType, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
764
- },
765
- /**
766
- *
767
- * @summary 新增能源费用管理设置-园区汇总标准新增
768
- * @param {DefaultApiEnergyCostMonthSettingSummaryAddRequest} requestParameters Request parameters.
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- energyCostMonthSettingSummaryAdd(requestParameters, options) {
773
- return localVarFp.energyCostMonthSettingSummaryAdd(requestParameters.energyCostSettingSummyAddDTO, options).then((request) => request(axios, basePath));
774
- },
775
- /**
776
- *
777
- * @summary 新增能源费用管理设置-列表-查询园区汇总标准
778
- * @param {DefaultApiEnergyCostMonthSettingSummaryListRequest} requestParameters Request parameters.
779
- * @param {*} [options] Override http request option.
780
- * @throws {RequiredError}
781
- */
782
- energyCostMonthSettingSummaryList(requestParameters, options) {
783
- return localVarFp.energyCostMonthSettingSummaryList(requestParameters.energyType, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
784
- },
785
- /**
786
- *
787
- * @summary 新增能源费用管理设置-园区汇总标准修改
788
- * @param {DefaultApiEnergyCostMonthSettingSummaryUpdateRequest} requestParameters Request parameters.
789
- * @param {*} [options] Override http request option.
790
- * @throws {RequiredError}
791
- */
792
- energyCostMonthSettingSummaryUpdate(requestParameters, options) {
793
- return localVarFp.energyCostMonthSettingSummaryUpdate(requestParameters.energyCostSettingSummyUpdateDTO, options).then((request) => request(axios, basePath));
794
- },
795
- /**
796
- *
797
- * @summary 新增能源费用管理设置-单条修改
798
- * @param {DefaultApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
799
- * @param {*} [options] Override http request option.
800
- * @throws {RequiredError}
801
- */
802
- energyCostMonthSettingUpdate(requestParameters, options) {
803
- return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
804
- },
805
- /**
806
- *
807
- * @summary 获取下拉框内容
808
- * @param {DefaultApiGetOptionsRequest} requestParameters Request parameters.
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- */
812
- getOptions(requestParameters = {}, options) {
813
- return localVarFp.getOptions(requestParameters.type, options).then((request) => request(axios, basePath));
814
- },
815
- };
816
- };
817
- exports.DefaultApiFactory = DefaultApiFactory;
818
- /**
819
- * DefaultApi - object-oriented interface
820
- * @export
821
- * @class DefaultApi
822
- * @extends {BaseAPI}
823
- */
824
- class DefaultApi extends base_1.BaseAPI {
825
- /**
826
- *
827
- * @summary 新增能源消耗-返回详情
828
- * @param {DefaultApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
829
- * @param {*} [options] Override http request option.
830
- * @throws {RequiredError}
831
- * @memberof DefaultApi
832
- */
833
- energyCostAddRecordDetail(requestParameters, options) {
834
- return (0, exports.DefaultApiFp)(this.configuration).energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
835
- }
836
- /**
837
- *
838
- * @summary 新增能源消耗-录入保存为草稿
839
- * @param {DefaultApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
840
- * @param {*} [options] Override http request option.
841
- * @throws {RequiredError}
842
- * @memberof DefaultApi
843
- */
844
- energyCostAddRecordInputDraft(requestParameters, options) {
845
- return (0, exports.DefaultApiFp)(this.configuration).energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
846
- }
847
- /**
848
- *
849
- * @summary 新增能源消耗-列表
850
- * @param {DefaultApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
851
- * @param {*} [options] Override http request option.
852
- * @throws {RequiredError}
853
- * @memberof DefaultApi
854
- */
855
- energyCostAddRecordList(requestParameters = {}, options) {
856
- return (0, exports.DefaultApiFp)(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));
857
- }
858
- /**
859
- *
860
- * @summary 新增能源消耗-next
861
- * @param {DefaultApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
862
- * @param {*} [options] Override http request option.
863
- * @throws {RequiredError}
864
- * @memberof DefaultApi
865
- */
866
- energyCostAddRecordNext(requestParameters, options) {
867
- return (0, exports.DefaultApiFp)(this.configuration).energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
868
- }
869
- /**
870
- *
871
- * @summary 新增能源消耗-提交
872
- * @param {DefaultApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
873
- * @param {*} [options] Override http request option.
874
- * @throws {RequiredError}
875
- * @memberof DefaultApi
876
- */
877
- energyCostAddRecordSubmit(requestParameters, options) {
878
- return (0, exports.DefaultApiFp)(this.configuration).energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
879
- }
880
- /**
881
- *
882
- * @summary 新增能源费用管理设置-单条新增
883
- * @param {DefaultApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
884
- * @param {*} [options] Override http request option.
885
- * @throws {RequiredError}
886
- * @memberof DefaultApi
887
- */
888
- energyCostMonthSettingAdd(requestParameters, options) {
889
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(this.axios, this.basePath));
890
- }
891
- /**
892
- *
893
- * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
894
- * @param {DefaultApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
895
- * @param {*} [options] Override http request option.
896
- * @throws {RequiredError}
897
- * @memberof DefaultApi
898
- */
899
- energyCostMonthSettingList(requestParameters, options) {
900
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingList(requestParameters.energyType, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
901
- }
902
- /**
903
- *
904
- * @summary 新增能源费用管理设置-园区汇总标准新增
905
- * @param {DefaultApiEnergyCostMonthSettingSummaryAddRequest} requestParameters Request parameters.
906
- * @param {*} [options] Override http request option.
907
- * @throws {RequiredError}
908
- * @memberof DefaultApi
909
- */
910
- energyCostMonthSettingSummaryAdd(requestParameters, options) {
911
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingSummaryAdd(requestParameters.energyCostSettingSummyAddDTO, options).then((request) => request(this.axios, this.basePath));
912
- }
913
- /**
914
- *
915
- * @summary 新增能源费用管理设置-列表-查询园区汇总标准
916
- * @param {DefaultApiEnergyCostMonthSettingSummaryListRequest} requestParameters Request parameters.
917
- * @param {*} [options] Override http request option.
918
- * @throws {RequiredError}
919
- * @memberof DefaultApi
920
- */
921
- energyCostMonthSettingSummaryList(requestParameters, options) {
922
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingSummaryList(requestParameters.energyType, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
923
- }
924
- /**
925
- *
926
- * @summary 新增能源费用管理设置-园区汇总标准修改
927
- * @param {DefaultApiEnergyCostMonthSettingSummaryUpdateRequest} requestParameters Request parameters.
928
- * @param {*} [options] Override http request option.
929
- * @throws {RequiredError}
930
- * @memberof DefaultApi
931
- */
932
- energyCostMonthSettingSummaryUpdate(requestParameters, options) {
933
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingSummaryUpdate(requestParameters.energyCostSettingSummyUpdateDTO, options).then((request) => request(this.axios, this.basePath));
934
- }
935
- /**
936
- *
937
- * @summary 新增能源费用管理设置-单条修改
938
- * @param {DefaultApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
939
- * @param {*} [options] Override http request option.
940
- * @throws {RequiredError}
941
- * @memberof DefaultApi
942
- */
943
- energyCostMonthSettingUpdate(requestParameters, options) {
944
- return (0, exports.DefaultApiFp)(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
945
- }
946
- /**
947
- *
948
- * @summary 获取下拉框内容
949
- * @param {DefaultApiGetOptionsRequest} requestParameters Request parameters.
950
- * @param {*} [options] Override http request option.
951
- * @throws {RequiredError}
952
- * @memberof DefaultApi
953
- */
954
- getOptions(requestParameters = {}, options) {
955
- return (0, exports.DefaultApiFp)(this.configuration).getOptions(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
956
- }
957
- }
958
- exports.DefaultApi = DefaultApi;
959
- /**
960
- * @export
961
- */
962
- exports.EnergyCostAddRecordListEnergyTypeEnum = {
963
- Electric: 'ELECTRIC',
964
- Water: 'WATER'
965
- };
966
- /**
967
- * @export
968
- */
969
- exports.EnergyCostMonthSettingListEnergyTypeEnum = {
970
- Electric: 'ELECTRIC',
971
- Water: 'WATER'
972
- };
973
- /**
974
- * @export
975
- */
976
- exports.EnergyCostMonthSettingSummaryListEnergyTypeEnum = {
977
- Electric: 'ELECTRIC',
978
- Water: 'WATER'
979
- };