@gizone/rrs-client 4.2.9-alpha.556 → 4.2.9-alpha.558

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 (83) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/api.ts +1 -0
  3. package/apis/energy-cost-analysis-controller-api.ts +517 -0
  4. package/apis/energy-cost-record-controller-api.ts +18 -18
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/apis/energy-cost-analysis-controller-api.d.ts +276 -0
  8. package/dist/apis/energy-cost-analysis-controller-api.js +419 -0
  9. package/dist/apis/energy-cost-record-controller-api.d.ts +12 -12
  10. package/dist/apis/energy-cost-record-controller-api.js +14 -14
  11. package/dist/esm/api.d.ts +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/apis/energy-cost-analysis-controller-api.d.ts +276 -0
  14. package/dist/esm/apis/energy-cost-analysis-controller-api.js +412 -0
  15. package/dist/esm/apis/energy-cost-record-controller-api.d.ts +12 -12
  16. package/dist/esm/apis/energy-cost-record-controller-api.js +13 -13
  17. package/dist/esm/models/energy-cost-analysis-list-vo.d.ts +102 -0
  18. package/dist/esm/models/energy-cost-analysis-list-vo.js +23 -0
  19. package/dist/esm/models/energy-cost-analysis-query-dto.d.ts +83 -0
  20. package/dist/esm/models/energy-cost-analysis-query-dto.js +17 -0
  21. package/dist/esm/models/energy-cost-per-area-analysis-vo.d.ts +42 -0
  22. package/dist/esm/models/energy-cost-per-area-analysis-vo.js +14 -0
  23. package/dist/esm/models/energy-cost-per-unit-analysis-vo.d.ts +48 -0
  24. package/dist/esm/models/energy-cost-per-unit-analysis-vo.js +14 -0
  25. package/dist/esm/models/energy-cost-trend-vo.d.ts +38 -0
  26. package/dist/esm/models/energy-cost-trend-vo.js +19 -0
  27. package/dist/esm/models/energy-cost-unit-price-analysis-vo.d.ts +36 -0
  28. package/dist/esm/models/energy-cost-unit-price-analysis-vo.js +14 -0
  29. package/dist/esm/models/index.d.ts +12 -0
  30. package/dist/esm/models/index.js +12 -0
  31. package/dist/esm/models/json-result-energy-cost-per-area-analysis-vo.d.ts +62 -0
  32. package/dist/esm/models/json-result-energy-cost-per-area-analysis-vo.js +14 -0
  33. package/dist/esm/models/json-result-energy-cost-per-unit-analysis-vo.d.ts +62 -0
  34. package/dist/esm/models/json-result-energy-cost-per-unit-analysis-vo.js +14 -0
  35. package/dist/esm/models/json-result-energy-cost-unit-price-analysis-vo.d.ts +62 -0
  36. package/dist/esm/models/json-result-energy-cost-unit-price-analysis-vo.js +14 -0
  37. package/dist/esm/models/json-result-list-energy-cost-analysis-list-vo.d.ts +62 -0
  38. package/dist/esm/models/json-result-list-energy-cost-analysis-list-vo.js +14 -0
  39. package/dist/esm/models/json-result-list-energy-cost-trend-vo.d.ts +62 -0
  40. package/dist/esm/models/json-result-list-energy-cost-trend-vo.js +14 -0
  41. package/dist/esm/models/monthly-data-vo.d.ts +48 -0
  42. package/dist/esm/models/monthly-data-vo.js +14 -0
  43. package/dist/models/energy-cost-analysis-list-vo.d.ts +102 -0
  44. package/dist/models/energy-cost-analysis-list-vo.js +26 -0
  45. package/dist/models/energy-cost-analysis-query-dto.d.ts +83 -0
  46. package/dist/models/energy-cost-analysis-query-dto.js +20 -0
  47. package/dist/models/energy-cost-per-area-analysis-vo.d.ts +42 -0
  48. package/dist/models/energy-cost-per-area-analysis-vo.js +15 -0
  49. package/dist/models/energy-cost-per-unit-analysis-vo.d.ts +48 -0
  50. package/dist/models/energy-cost-per-unit-analysis-vo.js +15 -0
  51. package/dist/models/energy-cost-trend-vo.d.ts +38 -0
  52. package/dist/models/energy-cost-trend-vo.js +22 -0
  53. package/dist/models/energy-cost-unit-price-analysis-vo.d.ts +36 -0
  54. package/dist/models/energy-cost-unit-price-analysis-vo.js +15 -0
  55. package/dist/models/index.d.ts +12 -0
  56. package/dist/models/index.js +12 -0
  57. package/dist/models/json-result-energy-cost-per-area-analysis-vo.d.ts +62 -0
  58. package/dist/models/json-result-energy-cost-per-area-analysis-vo.js +15 -0
  59. package/dist/models/json-result-energy-cost-per-unit-analysis-vo.d.ts +62 -0
  60. package/dist/models/json-result-energy-cost-per-unit-analysis-vo.js +15 -0
  61. package/dist/models/json-result-energy-cost-unit-price-analysis-vo.d.ts +62 -0
  62. package/dist/models/json-result-energy-cost-unit-price-analysis-vo.js +15 -0
  63. package/dist/models/json-result-list-energy-cost-analysis-list-vo.d.ts +62 -0
  64. package/dist/models/json-result-list-energy-cost-analysis-list-vo.js +15 -0
  65. package/dist/models/json-result-list-energy-cost-trend-vo.d.ts +62 -0
  66. package/dist/models/json-result-list-energy-cost-trend-vo.js +15 -0
  67. package/dist/models/monthly-data-vo.d.ts +48 -0
  68. package/dist/models/monthly-data-vo.js +15 -0
  69. package/models/energy-cost-analysis-list-vo.ts +112 -0
  70. package/models/energy-cost-analysis-query-dto.ts +92 -0
  71. package/models/energy-cost-per-area-analysis-vo.ts +48 -0
  72. package/models/energy-cost-per-unit-analysis-vo.ts +54 -0
  73. package/models/energy-cost-trend-vo.ts +49 -0
  74. package/models/energy-cost-unit-price-analysis-vo.ts +42 -0
  75. package/models/index.ts +12 -0
  76. package/models/json-result-energy-cost-per-area-analysis-vo.ts +72 -0
  77. package/models/json-result-energy-cost-per-unit-analysis-vo.ts +72 -0
  78. package/models/json-result-energy-cost-unit-price-analysis-vo.ts +72 -0
  79. package/models/json-result-list-energy-cost-analysis-list-vo.ts +72 -0
  80. package/models/json-result-list-energy-cost-trend-vo.ts +72 -0
  81. package/models/monthly-data-vo.ts +54 -0
  82. package/ossutil.log +1086 -1080
  83. package/package.json +1 -1
@@ -0,0 +1,412 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenAPI definition
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * EnergyCostAnalysisControllerApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const EnergyCostAnalysisControllerApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ * 获取账单分析列表数据
37
+ * @summary 分析列表数据
38
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ getAnalysisList: (energyCostAnalysisQueryDTO_1, ...args_1) => __awaiter(this, [energyCostAnalysisQueryDTO_1, ...args_1], void 0, function* (energyCostAnalysisQueryDTO, options = {}) {
43
+ // verify required parameter 'energyCostAnalysisQueryDTO' is not null or undefined
44
+ assertParamExists('getAnalysisList', 'energyCostAnalysisQueryDTO', energyCostAnalysisQueryDTO);
45
+ const localVarPath = `/gizone/energy/cost/analysis/list`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication tokenScheme required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAnalysisQueryDTO, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ * 获取当年各场景的用量趋势图数据
70
+ * @summary 用量趋势分析
71
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ getUsageTrend: (energyCostAnalysisQueryDTO_1, ...args_1) => __awaiter(this, [energyCostAnalysisQueryDTO_1, ...args_1], void 0, function* (energyCostAnalysisQueryDTO, options = {}) {
76
+ // verify required parameter 'energyCostAnalysisQueryDTO' is not null or undefined
77
+ assertParamExists('getUsageTrend', 'energyCostAnalysisQueryDTO', energyCostAnalysisQueryDTO);
78
+ const localVarPath = `/gizone/energy/cost/analysis/trend`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication tokenScheme required
89
+ // http bearer authentication required
90
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
91
+ localVarHeaderParameter['Content-Type'] = 'application/json';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAnalysisQueryDTO, localVarRequestOptions, configuration);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ * 计算园区单平单价,包括实际、年平均、上月、去年同期等指标
103
+ * @summary 单平单价分析
104
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ perAreaAnalysis: (energyCostAnalysisQueryDTO_1, ...args_1) => __awaiter(this, [energyCostAnalysisQueryDTO_1, ...args_1], void 0, function* (energyCostAnalysisQueryDTO, options = {}) {
109
+ // verify required parameter 'energyCostAnalysisQueryDTO' is not null or undefined
110
+ assertParamExists('perAreaAnalysis', 'energyCostAnalysisQueryDTO', energyCostAnalysisQueryDTO);
111
+ const localVarPath = `/gizone/energy/cost/analysis/per-area-analysis`;
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication tokenScheme required
122
+ // http bearer authentication required
123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
124
+ localVarHeaderParameter['Content-Type'] = 'application/json';
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
128
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAnalysisQueryDTO, localVarRequestOptions, configuration);
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ }),
134
+ /**
135
+ * 计算园区单耗,包括实际/标准、年平均、上月、去年同期
136
+ * @summary 单耗分析
137
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ perUnitAnalysis: (energyCostAnalysisQueryDTO_1, ...args_1) => __awaiter(this, [energyCostAnalysisQueryDTO_1, ...args_1], void 0, function* (energyCostAnalysisQueryDTO, options = {}) {
142
+ // verify required parameter 'energyCostAnalysisQueryDTO' is not null or undefined
143
+ assertParamExists('perUnitAnalysis', 'energyCostAnalysisQueryDTO', energyCostAnalysisQueryDTO);
144
+ const localVarPath = `/gizone/energy/cost/analysis/per-unit-analysis`;
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
152
+ const localVarHeaderParameter = {};
153
+ const localVarQueryParameter = {};
154
+ // authentication tokenScheme required
155
+ // http bearer authentication required
156
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
158
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAnalysisQueryDTO, localVarRequestOptions, configuration);
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ }),
167
+ /**
168
+ * 计算园区平均单价,包括当期、年平均、上月等指标
169
+ * @summary 单价分析
170
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ unitPriceAnalysis: (energyCostAnalysisQueryDTO_1, ...args_1) => __awaiter(this, [energyCostAnalysisQueryDTO_1, ...args_1], void 0, function* (energyCostAnalysisQueryDTO, options = {}) {
175
+ // verify required parameter 'energyCostAnalysisQueryDTO' is not null or undefined
176
+ assertParamExists('unitPriceAnalysis', 'energyCostAnalysisQueryDTO', energyCostAnalysisQueryDTO);
177
+ const localVarPath = `/gizone/energy/cost/analysis/unit-price-analysis`;
178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
179
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
180
+ let baseOptions;
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
185
+ const localVarHeaderParameter = {};
186
+ const localVarQueryParameter = {};
187
+ // authentication tokenScheme required
188
+ // http bearer authentication required
189
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
190
+ localVarHeaderParameter['Content-Type'] = 'application/json';
191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
194
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAnalysisQueryDTO, localVarRequestOptions, configuration);
195
+ return {
196
+ url: toPathString(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ };
199
+ }),
200
+ };
201
+ };
202
+ /**
203
+ * EnergyCostAnalysisControllerApi - functional programming interface
204
+ * @export
205
+ */
206
+ export const EnergyCostAnalysisControllerApiFp = function (configuration) {
207
+ const localVarAxiosParamCreator = EnergyCostAnalysisControllerApiAxiosParamCreator(configuration);
208
+ return {
209
+ /**
210
+ * 获取账单分析列表数据
211
+ * @summary 分析列表数据
212
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getAnalysisList(energyCostAnalysisQueryDTO, options) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a, _b, _c;
219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAnalysisList(energyCostAnalysisQueryDTO, options);
220
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
221
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostAnalysisControllerApi.getAnalysisList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
+ });
224
+ },
225
+ /**
226
+ * 获取当年各场景的用量趋势图数据
227
+ * @summary 用量趋势分析
228
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ getUsageTrend(energyCostAnalysisQueryDTO, options) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ var _a, _b, _c;
235
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUsageTrend(energyCostAnalysisQueryDTO, options);
236
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
237
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostAnalysisControllerApi.getUsageTrend']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
238
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
239
+ });
240
+ },
241
+ /**
242
+ * 计算园区单平单价,包括实际、年平均、上月、去年同期等指标
243
+ * @summary 单平单价分析
244
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ perAreaAnalysis(energyCostAnalysisQueryDTO, options) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ var _a, _b, _c;
251
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.perAreaAnalysis(energyCostAnalysisQueryDTO, options);
252
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
253
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostAnalysisControllerApi.perAreaAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
255
+ });
256
+ },
257
+ /**
258
+ * 计算园区单耗,包括实际/标准、年平均、上月、去年同期
259
+ * @summary 单耗分析
260
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ perUnitAnalysis(energyCostAnalysisQueryDTO, options) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ var _a, _b, _c;
267
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.perUnitAnalysis(energyCostAnalysisQueryDTO, options);
268
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
269
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostAnalysisControllerApi.perUnitAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
271
+ });
272
+ },
273
+ /**
274
+ * 计算园区平均单价,包括当期、年平均、上月等指标
275
+ * @summary 单价分析
276
+ * @param {EnergyCostAnalysisQueryDTO} energyCostAnalysisQueryDTO
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ unitPriceAnalysis(energyCostAnalysisQueryDTO, options) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ var _a, _b, _c;
283
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unitPriceAnalysis(energyCostAnalysisQueryDTO, options);
284
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
285
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostAnalysisControllerApi.unitPriceAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
286
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
287
+ });
288
+ },
289
+ };
290
+ };
291
+ /**
292
+ * EnergyCostAnalysisControllerApi - factory interface
293
+ * @export
294
+ */
295
+ export const EnergyCostAnalysisControllerApiFactory = function (configuration, basePath, axios) {
296
+ const localVarFp = EnergyCostAnalysisControllerApiFp(configuration);
297
+ return {
298
+ /**
299
+ * 获取账单分析列表数据
300
+ * @summary 分析列表数据
301
+ * @param {EnergyCostAnalysisControllerApiGetAnalysisListRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ getAnalysisList(requestParameters, options) {
306
+ return localVarFp.getAnalysisList(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(axios, basePath));
307
+ },
308
+ /**
309
+ * 获取当年各场景的用量趋势图数据
310
+ * @summary 用量趋势分析
311
+ * @param {EnergyCostAnalysisControllerApiGetUsageTrendRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ getUsageTrend(requestParameters, options) {
316
+ return localVarFp.getUsageTrend(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(axios, basePath));
317
+ },
318
+ /**
319
+ * 计算园区单平单价,包括实际、年平均、上月、去年同期等指标
320
+ * @summary 单平单价分析
321
+ * @param {EnergyCostAnalysisControllerApiPerAreaAnalysisRequest} requestParameters Request parameters.
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ perAreaAnalysis(requestParameters, options) {
326
+ return localVarFp.perAreaAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(axios, basePath));
327
+ },
328
+ /**
329
+ * 计算园区单耗,包括实际/标准、年平均、上月、去年同期
330
+ * @summary 单耗分析
331
+ * @param {EnergyCostAnalysisControllerApiPerUnitAnalysisRequest} requestParameters Request parameters.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ perUnitAnalysis(requestParameters, options) {
336
+ return localVarFp.perUnitAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(axios, basePath));
337
+ },
338
+ /**
339
+ * 计算园区平均单价,包括当期、年平均、上月等指标
340
+ * @summary 单价分析
341
+ * @param {EnergyCostAnalysisControllerApiUnitPriceAnalysisRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ unitPriceAnalysis(requestParameters, options) {
346
+ return localVarFp.unitPriceAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(axios, basePath));
347
+ },
348
+ };
349
+ };
350
+ /**
351
+ * EnergyCostAnalysisControllerApi - object-oriented interface
352
+ * @export
353
+ * @class EnergyCostAnalysisControllerApi
354
+ * @extends {BaseAPI}
355
+ */
356
+ export class EnergyCostAnalysisControllerApi extends BaseAPI {
357
+ /**
358
+ * 获取账单分析列表数据
359
+ * @summary 分析列表数据
360
+ * @param {EnergyCostAnalysisControllerApiGetAnalysisListRequest} requestParameters Request parameters.
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ * @memberof EnergyCostAnalysisControllerApi
364
+ */
365
+ getAnalysisList(requestParameters, options) {
366
+ return EnergyCostAnalysisControllerApiFp(this.configuration).getAnalysisList(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(this.axios, this.basePath));
367
+ }
368
+ /**
369
+ * 获取当年各场景的用量趋势图数据
370
+ * @summary 用量趋势分析
371
+ * @param {EnergyCostAnalysisControllerApiGetUsageTrendRequest} requestParameters Request parameters.
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ * @memberof EnergyCostAnalysisControllerApi
375
+ */
376
+ getUsageTrend(requestParameters, options) {
377
+ return EnergyCostAnalysisControllerApiFp(this.configuration).getUsageTrend(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(this.axios, this.basePath));
378
+ }
379
+ /**
380
+ * 计算园区单平单价,包括实际、年平均、上月、去年同期等指标
381
+ * @summary 单平单价分析
382
+ * @param {EnergyCostAnalysisControllerApiPerAreaAnalysisRequest} requestParameters Request parameters.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ * @memberof EnergyCostAnalysisControllerApi
386
+ */
387
+ perAreaAnalysis(requestParameters, options) {
388
+ return EnergyCostAnalysisControllerApiFp(this.configuration).perAreaAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(this.axios, this.basePath));
389
+ }
390
+ /**
391
+ * 计算园区单耗,包括实际/标准、年平均、上月、去年同期
392
+ * @summary 单耗分析
393
+ * @param {EnergyCostAnalysisControllerApiPerUnitAnalysisRequest} requestParameters Request parameters.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ * @memberof EnergyCostAnalysisControllerApi
397
+ */
398
+ perUnitAnalysis(requestParameters, options) {
399
+ return EnergyCostAnalysisControllerApiFp(this.configuration).perUnitAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(this.axios, this.basePath));
400
+ }
401
+ /**
402
+ * 计算园区平均单价,包括当期、年平均、上月等指标
403
+ * @summary 单价分析
404
+ * @param {EnergyCostAnalysisControllerApiUnitPriceAnalysisRequest} requestParameters Request parameters.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ * @memberof EnergyCostAnalysisControllerApi
408
+ */
409
+ unitPriceAnalysis(requestParameters, options) {
410
+ return EnergyCostAnalysisControllerApiFp(this.configuration).unitPriceAnalysis(requestParameters.energyCostAnalysisQueryDTO, options).then((request) => request(this.axios, this.basePath));
411
+ }
412
+ }
@@ -59,12 +59,12 @@ export declare const EnergyCostRecordControllerApiAxiosParamCreator: (configurat
59
59
  * @param {string} [billCode]
60
60
  * @param {string} [startTime]
61
61
  * @param {string} [endTime]
62
- * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
63
- * @param {number} [status]
62
+ * @param {Array<EnergyCostAddRecordListEnergyTypesEnum>} [energyTypes]
63
+ * @param {Array<number>} [status]
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
67
- energyCostAddRecordList: (page?: number, size?: number, billCode?: string, startTime?: string, endTime?: string, energyType?: EnergyCostAddRecordListEnergyTypeEnum, status?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
67
+ energyCostAddRecordList: (page?: number, size?: number, billCode?: string, startTime?: string, endTime?: string, energyTypes?: Array<EnergyCostAddRecordListEnergyTypesEnum>, status?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
68
68
  /**
69
69
  *
70
70
  * @summary 新增能源消耗-next
@@ -137,12 +137,12 @@ export declare const EnergyCostRecordControllerApiFp: (configuration?: Configura
137
137
  * @param {string} [billCode]
138
138
  * @param {string} [startTime]
139
139
  * @param {string} [endTime]
140
- * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
141
- * @param {number} [status]
140
+ * @param {Array<EnergyCostAddRecordListEnergyTypesEnum>} [energyTypes]
141
+ * @param {Array<number>} [status]
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- energyCostAddRecordList(page?: number, size?: number, billCode?: string, startTime?: string, endTime?: string, energyType?: EnergyCostAddRecordListEnergyTypeEnum, status?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultIPageEnergyCostRecordInfoVO>>;
145
+ energyCostAddRecordList(page?: number, size?: number, billCode?: string, startTime?: string, endTime?: string, energyTypes?: Array<EnergyCostAddRecordListEnergyTypesEnum>, status?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultIPageEnergyCostRecordInfoVO>>;
146
146
  /**
147
147
  *
148
148
  * @summary 新增能源消耗-next
@@ -335,16 +335,16 @@ export interface EnergyCostRecordControllerApiEnergyCostAddRecordListRequest {
335
335
  readonly endTime?: string;
336
336
  /**
337
337
  *
338
- * @type {'ELECTRIC' | 'WATER'}
338
+ * @type {Array<'ELECTRIC' | 'WATER'>}
339
339
  * @memberof EnergyCostRecordControllerApiEnergyCostAddRecordList
340
340
  */
341
- readonly energyType?: EnergyCostAddRecordListEnergyTypeEnum;
341
+ readonly energyTypes?: Array<EnergyCostAddRecordListEnergyTypesEnum>;
342
342
  /**
343
343
  *
344
- * @type {number}
344
+ * @type {Array<number>}
345
345
  * @memberof EnergyCostRecordControllerApiEnergyCostAddRecordList
346
346
  */
347
- readonly status?: number;
347
+ readonly status?: Array<number>;
348
348
  }
349
349
  /**
350
350
  * Request parameters for energyCostAddRecordNext operation in EnergyCostRecordControllerApi.
@@ -481,8 +481,8 @@ export declare class EnergyCostRecordControllerApi extends BaseAPI {
481
481
  /**
482
482
  * @export
483
483
  */
484
- export declare const EnergyCostAddRecordListEnergyTypeEnum: {
484
+ export declare const EnergyCostAddRecordListEnergyTypesEnum: {
485
485
  readonly Electric: "ELECTRIC";
486
486
  readonly Water: "WATER";
487
487
  };
488
- export type EnergyCostAddRecordListEnergyTypeEnum = typeof EnergyCostAddRecordListEnergyTypeEnum[keyof typeof EnergyCostAddRecordListEnergyTypeEnum];
488
+ export type EnergyCostAddRecordListEnergyTypesEnum = typeof EnergyCostAddRecordListEnergyTypesEnum[keyof typeof EnergyCostAddRecordListEnergyTypesEnum];
@@ -147,12 +147,12 @@ export const EnergyCostRecordControllerApiAxiosParamCreator = function (configur
147
147
  * @param {string} [billCode]
148
148
  * @param {string} [startTime]
149
149
  * @param {string} [endTime]
150
- * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
151
- * @param {number} [status]
150
+ * @param {Array<EnergyCostAddRecordListEnergyTypesEnum>} [energyTypes]
151
+ * @param {Array<number>} [status]
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
155
- 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 = {}) {
155
+ energyCostAddRecordList: (page_1, size_1, billCode_1, startTime_1, endTime_1, energyTypes_1, status_1, ...args_1) => __awaiter(this, [page_1, size_1, billCode_1, startTime_1, endTime_1, energyTypes_1, status_1, ...args_1], void 0, function* (page, size, billCode, startTime, endTime, energyTypes, status, options = {}) {
156
156
  const localVarPath = `/gizone/energy/cost/record/list`;
157
157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
158
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -181,10 +181,10 @@ export const EnergyCostRecordControllerApiAxiosParamCreator = function (configur
181
181
  if (endTime !== undefined) {
182
182
  localVarQueryParameter['endTime'] = endTime;
183
183
  }
184
- if (energyType !== undefined) {
185
- localVarQueryParameter['energyType'] = energyType;
184
+ if (energyTypes) {
185
+ localVarQueryParameter['energyTypes'] = energyTypes;
186
186
  }
187
- if (status !== undefined) {
187
+ if (status) {
188
188
  localVarQueryParameter['status'] = status;
189
189
  }
190
190
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -393,15 +393,15 @@ export const EnergyCostRecordControllerApiFp = function (configuration) {
393
393
  * @param {string} [billCode]
394
394
  * @param {string} [startTime]
395
395
  * @param {string} [endTime]
396
- * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
397
- * @param {number} [status]
396
+ * @param {Array<EnergyCostAddRecordListEnergyTypesEnum>} [energyTypes]
397
+ * @param {Array<number>} [status]
398
398
  * @param {*} [options] Override http request option.
399
399
  * @throws {RequiredError}
400
400
  */
401
- energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options) {
401
+ energyCostAddRecordList(page, size, billCode, startTime, endTime, energyTypes, status, options) {
402
402
  return __awaiter(this, void 0, void 0, function* () {
403
403
  var _a, _b, _c;
404
- const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options);
404
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billCode, startTime, endTime, energyTypes, status, options);
405
405
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
406
406
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
407
407
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -518,7 +518,7 @@ export const EnergyCostRecordControllerApiFactory = function (configuration, bas
518
518
  * @throws {RequiredError}
519
519
  */
520
520
  energyCostAddRecordList(requestParameters = {}, options) {
521
- return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
521
+ return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyTypes, requestParameters.status, options).then((request) => request(axios, basePath));
522
522
  },
523
523
  /**
524
524
  *
@@ -611,7 +611,7 @@ export class EnergyCostRecordControllerApi extends BaseAPI {
611
611
  * @memberof EnergyCostRecordControllerApi
612
612
  */
613
613
  energyCostAddRecordList(requestParameters = {}, options) {
614
- return EnergyCostRecordControllerApiFp(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));
614
+ return EnergyCostRecordControllerApiFp(this.configuration).energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyTypes, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
615
615
  }
616
616
  /**
617
617
  *
@@ -661,7 +661,7 @@ export class EnergyCostRecordControllerApi extends BaseAPI {
661
661
  /**
662
662
  * @export
663
663
  */
664
- export const EnergyCostAddRecordListEnergyTypeEnum = {
664
+ export const EnergyCostAddRecordListEnergyTypesEnum = {
665
665
  Electric: 'ELECTRIC',
666
666
  Water: 'WATER'
667
667
  };
@@ -0,0 +1,102 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * 能源成本分析列表数据
14
+ * @export
15
+ * @interface EnergyCostAnalysisListVO
16
+ */
17
+ export interface EnergyCostAnalysisListVO {
18
+ /**
19
+ * 能源类型
20
+ * @type {string}
21
+ * @memberof EnergyCostAnalysisListVO
22
+ */
23
+ 'energyType'?: EnergyCostAnalysisListVOEnergyTypeEnum;
24
+ /**
25
+ * 场景类型
26
+ * @type {string}
27
+ * @memberof EnergyCostAnalysisListVO
28
+ */
29
+ 'scenario'?: EnergyCostAnalysisListVOScenarioEnum;
30
+ /**
31
+ * 园区用量
32
+ * @type {number}
33
+ * @memberof EnergyCostAnalysisListVO
34
+ */
35
+ 'parkUtilityUsage'?: number;
36
+ /**
37
+ * 园区费用
38
+ * @type {number}
39
+ * @memberof EnergyCostAnalysisListVO
40
+ */
41
+ 'billCharges'?: number;
42
+ /**
43
+ * 单平单价当期
44
+ * @type {number}
45
+ * @memberof EnergyCostAnalysisListVO
46
+ */
47
+ 'perAreaAnalysisCurrentPeriod'?: number;
48
+ /**
49
+ * 单平单价年平均
50
+ * @type {number}
51
+ * @memberof EnergyCostAnalysisListVO
52
+ */
53
+ 'perAreaAnalysisYearlyAverage'?: number;
54
+ /**
55
+ * 单平单价上月
56
+ * @type {number}
57
+ * @memberof EnergyCostAnalysisListVO
58
+ */
59
+ 'perAreaAnalysisLastMonth'?: number;
60
+ /**
61
+ * 单平单价去年同期
62
+ * @type {number}
63
+ * @memberof EnergyCostAnalysisListVO
64
+ */
65
+ 'perAreaAnalysisSamePeriodLastYear'?: number;
66
+ /**
67
+ * 单耗
68
+ * @type {number}
69
+ * @memberof EnergyCostAnalysisListVO
70
+ */
71
+ 'perUnitAnalysis'?: number;
72
+ /**
73
+ * 单耗年平均
74
+ * @type {number}
75
+ * @memberof EnergyCostAnalysisListVO
76
+ */
77
+ 'perUnitAnalysisYearlyAverage'?: number;
78
+ /**
79
+ * 单耗上月
80
+ * @type {number}
81
+ * @memberof EnergyCostAnalysisListVO
82
+ */
83
+ 'perUnitAnalysisLastMonth'?: number;
84
+ /**
85
+ * 单耗去年同期
86
+ * @type {number}
87
+ * @memberof EnergyCostAnalysisListVO
88
+ */
89
+ 'perUnitAnalysisSamePeriodLastYear'?: number;
90
+ }
91
+ export declare const EnergyCostAnalysisListVOEnergyTypeEnum: {
92
+ readonly Electric: "ELECTRIC";
93
+ readonly Water: "WATER";
94
+ };
95
+ export type EnergyCostAnalysisListVOEnergyTypeEnum = typeof EnergyCostAnalysisListVOEnergyTypeEnum[keyof typeof EnergyCostAnalysisListVOEnergyTypeEnum];
96
+ export declare const EnergyCostAnalysisListVOScenarioEnum: {
97
+ readonly ColdStorage: "COLD_STORAGE";
98
+ readonly SmartWarehouse: "SMART_WAREHOUSE";
99
+ readonly LeasingTenant: "LEASING_TENANT";
100
+ readonly PrivateConventionalWarehouse: "PRIVATE_CONVENTIONAL_WAREHOUSE";
101
+ };
102
+ export type EnergyCostAnalysisListVOScenarioEnum = typeof EnergyCostAnalysisListVOScenarioEnum[keyof typeof EnergyCostAnalysisListVOScenarioEnum];