@golemio/energetics 1.4.5 → 1.4.6-dev.1506998228
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.
|
@@ -14,6 +14,7 @@ const PpasAveApiDataSourceProvider_1 = require("../datasources/ppas-ave-api/Ppas
|
|
|
14
14
|
const PreElectroApiDataSourceProvider_1 = require("../datasources/pre-elektro-api/PreElectroApiDataSourceProvider");
|
|
15
15
|
const PreElectroHelper_1 = require("../datasources/pre-elektro-api/helpers/PreElectroHelper");
|
|
16
16
|
const AccessConfigurationDataSource_1 = require("../datasources/static-data/AccessConfigurationDataSource");
|
|
17
|
+
const StaticMeterSettingsDataSourceCapitalDs_1 = require("../datasources/static-data/StaticMeterSettingsDataSourceCapitalDs");
|
|
17
18
|
const StaticMeterSettingsRepository_1 = require("../repositories/StaticMeterSettingsRepository");
|
|
18
19
|
const AveMeasurementTransformation_1 = require("../transformations/AveMeasurementTransformation");
|
|
19
20
|
const PreElectroTransformation_1 = require("../transformations/PreElectroTransformation");
|
|
@@ -25,7 +26,6 @@ const FetchPpasMeasurementsTask_1 = require("../workers/tasks/FetchPpasMeasureme
|
|
|
25
26
|
const FetchPreMeasurementDataTask_1 = require("../workers/tasks/FetchPreMeasurementDataTask");
|
|
26
27
|
const FetchPtasWebScrapedMeasurementsTask_1 = require("../workers/tasks/FetchPtasWebScrapedMeasurementsTask");
|
|
27
28
|
const WorkerContainerToken_1 = require("./WorkerContainerToken");
|
|
28
|
-
const StaticMeterSettingsDataSourceCapitalDs_1 = require("../datasources/static-data/StaticMeterSettingsDataSourceCapitalDs");
|
|
29
29
|
//#region Initialization
|
|
30
30
|
const CommodityContainer = Di_1.VPalaceContainer.createChildContainer();
|
|
31
31
|
exports.CommodityContainer = CommodityContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/commodity-providers/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,0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E,yDAA2B,CAAC,CAAC;AAC3G,kBAAkB,CAAC,QAAQ,CAAC,2CAAoB,CAAC,yBAAyB,EAAE,qDAAyB,CAAC,CAAC;AACvG,kBAAkB,CAAC,QAAQ,CAAC,2CAAoB,CAAC,2BAA2B,EAAE,yDAA2B,CAAC,CAAC;AAC3G,kBAAkB,CAAC,QAAQ,CAAC,2CAAoB,CAAC,qCAAqC,EAAE,6EAAqC,CAAC,CAAC;AAC/H,kBAAkB,CAAC,QAAQ,CAAC,2CAAoB,CAAC,2BAA2B,EAAE,yDAA2B,CAAC,CAAC;AAC3G,kBAAkB,CAAC,iBAAiB,CAChC,2CAAoB,CAAC,mCAAmC,EACxD,yEAAmC,CACtC,CAAC;AACF,YAAY;AAEZ,iBAAiB;AACjB,kBAAkB,CAAC,QAAQ,CAAC,2CAAoB,CAAC,gBAAgB,EAAE,mCAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
asyncapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Energetics
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Energetics
|
|
6
|
+
channels:
|
|
7
|
+
fetchAccessConfiguration:
|
|
8
|
+
address: dataplatform.energeticsoict.fetchAccessConfiguration
|
|
9
|
+
description: updates access configuration table in the databse from blob storage datasource
|
|
10
|
+
bindings:
|
|
11
|
+
amqp:
|
|
12
|
+
is: queue
|
|
13
|
+
queue:
|
|
14
|
+
durable: true
|
|
15
|
+
messages:
|
|
16
|
+
empty:
|
|
17
|
+
$ref: "#/components/messages/EmptyObject"
|
|
18
|
+
fetchConsumption:
|
|
19
|
+
address: dataplatform.energeticsoict.fetchConsumption
|
|
20
|
+
description: updates consumption in database table consumption_energy_consumption
|
|
21
|
+
bindings:
|
|
22
|
+
amqp:
|
|
23
|
+
is: queue
|
|
24
|
+
queue:
|
|
25
|
+
durable: true
|
|
26
|
+
messages:
|
|
27
|
+
fetchConsumptionMessage:
|
|
28
|
+
$ref: "#/components/messages/fetchConsumptionMessage"
|
|
29
|
+
fetchData:
|
|
30
|
+
address: dataplatform.energeticsoict.fetchData
|
|
31
|
+
description: create messages for queue fetchConsumption based on input message
|
|
32
|
+
bindings:
|
|
33
|
+
amqp:
|
|
34
|
+
is: queue
|
|
35
|
+
queue:
|
|
36
|
+
durable: true
|
|
37
|
+
messages:
|
|
38
|
+
targetDays:
|
|
39
|
+
$ref: "#/components/messages/fetchDataMessage"
|
|
40
|
+
fetchVpalacXDaysData:
|
|
41
|
+
address: dataplatform.energetics.fetchVpalacXDaysData
|
|
42
|
+
description: updates vpalac data (measuremenets, measuringEquipment, meterTypes, typeMeasuringEquipment, unitData) in database
|
|
43
|
+
bindings:
|
|
44
|
+
amqp:
|
|
45
|
+
is: queue
|
|
46
|
+
queue:
|
|
47
|
+
durable: true
|
|
48
|
+
messages:
|
|
49
|
+
targetDays:
|
|
50
|
+
$ref: "#/components/messages/fetchDataMessage"
|
|
51
|
+
fetchVpalacXHoursData:
|
|
52
|
+
address: dataplatform.energetics.fetchVpalacXHoursData
|
|
53
|
+
description: updates vpalac data (measuremenets, measuringEquipment, meterTypes, typeMeasuringEquipment, unitData) in database
|
|
54
|
+
bindings:
|
|
55
|
+
amqp:
|
|
56
|
+
is: queue
|
|
57
|
+
queue:
|
|
58
|
+
durable: true
|
|
59
|
+
messages:
|
|
60
|
+
targetDays:
|
|
61
|
+
$ref: "#/components/messages/fetchXHoursDataMessage"
|
|
62
|
+
fetchMeasurementOptionsStaticData:
|
|
63
|
+
address: dataplatform.energeticscommodity.fetchMeasurementOptionsStaticData
|
|
64
|
+
description: updates meter settings in database table commodity_static_meter_settings
|
|
65
|
+
bindings:
|
|
66
|
+
amqp:
|
|
67
|
+
is: queue
|
|
68
|
+
queue:
|
|
69
|
+
durable: true
|
|
70
|
+
messages:
|
|
71
|
+
empty:
|
|
72
|
+
$ref: "#/components/messages/EmptyObject"
|
|
73
|
+
fetchMeasurementsFromEEProviders:
|
|
74
|
+
address: dataplatform.energeticscommodity.fetchMeasurementsFromEEProviders
|
|
75
|
+
description: based on input message it generates messages for queue fetchPpasEEMeasurements
|
|
76
|
+
bindings:
|
|
77
|
+
amqp:
|
|
78
|
+
is: queue
|
|
79
|
+
queue:
|
|
80
|
+
durable: true
|
|
81
|
+
messages:
|
|
82
|
+
targetDays:
|
|
83
|
+
$ref: "#/components/messages/fetchDataMessage"
|
|
84
|
+
fetchPpasEEMeasurements:
|
|
85
|
+
address: dataplatform.energeticscommodity.fetchPpasEEMeasurements
|
|
86
|
+
description: downloads measurements data from Pražská Plynárenská
|
|
87
|
+
bindings:
|
|
88
|
+
amqp:
|
|
89
|
+
is: queue
|
|
90
|
+
queue:
|
|
91
|
+
durable: true
|
|
92
|
+
messages:
|
|
93
|
+
targetDays:
|
|
94
|
+
$ref: "#/components/messages/fetchDataMessage"
|
|
95
|
+
fetchMeasurementsFromProviders:
|
|
96
|
+
address: dataplatform.energeticscommodity.fetchMeasurementsFromProviders
|
|
97
|
+
description: create messages for other queues to download measurements data from Veolia, Pražská Plynárenská and Pre electro
|
|
98
|
+
bindings:
|
|
99
|
+
amqp:
|
|
100
|
+
is: queue
|
|
101
|
+
queue:
|
|
102
|
+
durable: true
|
|
103
|
+
messages:
|
|
104
|
+
targetDays:
|
|
105
|
+
$ref: "#/components/messages/fetchDataMessage"
|
|
106
|
+
fetchPpasMeasurements:
|
|
107
|
+
address: dataplatform.energeticscommodity.fetchPpasMeasurements
|
|
108
|
+
description: downloads measurements data from Pražská Plynárenská
|
|
109
|
+
bindings:
|
|
110
|
+
amqp:
|
|
111
|
+
is: queue
|
|
112
|
+
queue:
|
|
113
|
+
durable: true
|
|
114
|
+
messages:
|
|
115
|
+
targetDays:
|
|
116
|
+
$ref: "#/components/messages/PpasMeasurementsMessages"
|
|
117
|
+
fetchPreElectroMeasurementsTask:
|
|
118
|
+
address: dataplatform.energeticscommodity.fetchPreElectroMeasurementsTask
|
|
119
|
+
description: downloads measurements data from PRE
|
|
120
|
+
bindings:
|
|
121
|
+
amqp:
|
|
122
|
+
is: queue
|
|
123
|
+
queue:
|
|
124
|
+
durable: true
|
|
125
|
+
messages:
|
|
126
|
+
targetDays:
|
|
127
|
+
$ref: "#/components/messages/fetchConsumptionMessage"
|
|
128
|
+
savePtasMeasurements:
|
|
129
|
+
address: dataplatform.energeticscommodity.savePtasMeasurements
|
|
130
|
+
description: downloads measurements data from Pražská Teplárenská
|
|
131
|
+
bindings:
|
|
132
|
+
amqp:
|
|
133
|
+
is: queue
|
|
134
|
+
queue:
|
|
135
|
+
durable: true
|
|
136
|
+
messages:
|
|
137
|
+
targetDays:
|
|
138
|
+
$ref: "#/components/messages/PtasMeasurementsMessages"
|
|
139
|
+
fetchVeoliaMeasurements:
|
|
140
|
+
address: dataplatform.energeticscommodity.fetchVeoliaMeasurements
|
|
141
|
+
description: downloads measurements data from Veolia
|
|
142
|
+
bindings:
|
|
143
|
+
amqp:
|
|
144
|
+
is: queue
|
|
145
|
+
queue:
|
|
146
|
+
durable: true
|
|
147
|
+
messages:
|
|
148
|
+
targetDays:
|
|
149
|
+
$ref: "#/components/messages/VeoliaMeasurementsMessages"
|
|
150
|
+
operations:
|
|
151
|
+
fetchAccessConfiguration:
|
|
152
|
+
action: "send"
|
|
153
|
+
channel:
|
|
154
|
+
$ref: "#/channels/fetchAccessConfiguration"
|
|
155
|
+
fetchConsumption:
|
|
156
|
+
action: "send"
|
|
157
|
+
channel:
|
|
158
|
+
$ref: "#/channels/fetchConsumption"
|
|
159
|
+
fetchData:
|
|
160
|
+
action: "send"
|
|
161
|
+
channel:
|
|
162
|
+
$ref: "#/channels/fetchData"
|
|
163
|
+
fetchVpalacXDaysData:
|
|
164
|
+
action: "send"
|
|
165
|
+
channel:
|
|
166
|
+
$ref: "#/channels/fetchVpalacXDaysData"
|
|
167
|
+
fetchVpalacXHoursData:
|
|
168
|
+
action: "send"
|
|
169
|
+
channel:
|
|
170
|
+
$ref: "#/channels/fetchVpalacXHoursData"
|
|
171
|
+
fetchMeasurementOptionsStaticData:
|
|
172
|
+
action: "send"
|
|
173
|
+
channel:
|
|
174
|
+
$ref: "#/channels/fetchMeasurementOptionsStaticData"
|
|
175
|
+
fetchMeasurementsFromEEProviders:
|
|
176
|
+
action: "send"
|
|
177
|
+
channel:
|
|
178
|
+
$ref: "#/channels/fetchMeasurementsFromEEProviders"
|
|
179
|
+
fetchPpasEEMeasurements:
|
|
180
|
+
action: "send"
|
|
181
|
+
channel:
|
|
182
|
+
$ref: "#/channels/fetchPpasEEMeasurements"
|
|
183
|
+
fetchMeasurementsFromProviders:
|
|
184
|
+
action: "send"
|
|
185
|
+
channel:
|
|
186
|
+
$ref: "#/channels/fetchMeasurementsFromProviders"
|
|
187
|
+
fetchPpasMeasurements:
|
|
188
|
+
action: "send"
|
|
189
|
+
channel:
|
|
190
|
+
$ref: "#/channels/fetchPpasMeasurements"
|
|
191
|
+
fetchPreElectroMeasurementsTask:
|
|
192
|
+
action: "send"
|
|
193
|
+
channel:
|
|
194
|
+
$ref: "#/channels/fetchPreElectroMeasurementsTask"
|
|
195
|
+
savePtasMeasurements:
|
|
196
|
+
action: "send"
|
|
197
|
+
channel:
|
|
198
|
+
$ref: "#/channels/savePtasMeasurements"
|
|
199
|
+
fetchVeoliaMeasurements:
|
|
200
|
+
action: "send"
|
|
201
|
+
channel:
|
|
202
|
+
$ref: "#/channels/fetchVeoliaMeasurements"
|
|
203
|
+
components:
|
|
204
|
+
messages:
|
|
205
|
+
EmptyObject:
|
|
206
|
+
payload:
|
|
207
|
+
type: object
|
|
208
|
+
additionalProperties: false
|
|
209
|
+
fetchConsumptionMessage:
|
|
210
|
+
payload:
|
|
211
|
+
type: object
|
|
212
|
+
$ref: "#/components/schemas/IFetchConsumptionInput"
|
|
213
|
+
additionalProperties: false
|
|
214
|
+
fetchDataMessage:
|
|
215
|
+
payload:
|
|
216
|
+
type: object
|
|
217
|
+
$ref: "#/components/schemas/IFetchDataInput"
|
|
218
|
+
additionalProperties: false
|
|
219
|
+
fetchXHoursDataMessage:
|
|
220
|
+
payload:
|
|
221
|
+
type: object
|
|
222
|
+
$ref: "#/components/schemas/IFetchXHoursDataInput"
|
|
223
|
+
additionalProperties: false
|
|
224
|
+
PpasMeasurementsMessages:
|
|
225
|
+
payload:
|
|
226
|
+
type: object
|
|
227
|
+
$ref: "#/components/schemas/IPpasMeasurementsParams"
|
|
228
|
+
additionalProperties: false
|
|
229
|
+
PtasMeasurementsMessages:
|
|
230
|
+
payload:
|
|
231
|
+
type: object
|
|
232
|
+
$ref: "#/components/schemas/IPtasWebScrapingInput"
|
|
233
|
+
additionalProperties: false
|
|
234
|
+
VeoliaMeasurementsMessages:
|
|
235
|
+
payload:
|
|
236
|
+
type: object
|
|
237
|
+
$ref: "#/components/schemas/IVeoliaMeasurementsMessages"
|
|
238
|
+
additionalProperties: false
|
|
239
|
+
schemas:
|
|
240
|
+
IFetchConsumptionInput:
|
|
241
|
+
type: object
|
|
242
|
+
properties:
|
|
243
|
+
dateFrom:
|
|
244
|
+
type: string
|
|
245
|
+
format: date
|
|
246
|
+
description: The date from which the consumption is to be fetched
|
|
247
|
+
dateTo:
|
|
248
|
+
type: string
|
|
249
|
+
format: date
|
|
250
|
+
description: The date to which the consumption is to be fetched
|
|
251
|
+
additionalProperties: false
|
|
252
|
+
IFetchDataInput:
|
|
253
|
+
type: object
|
|
254
|
+
properties:
|
|
255
|
+
targetDays:
|
|
256
|
+
type: number
|
|
257
|
+
description: The number of days for which the consumption is to be fetched
|
|
258
|
+
additionalProperties: false
|
|
259
|
+
IFetchXHoursDataInput:
|
|
260
|
+
type: object
|
|
261
|
+
properties:
|
|
262
|
+
targetHours:
|
|
263
|
+
type: number
|
|
264
|
+
description: The number of hours for which the consumption is to be fetched
|
|
265
|
+
additionalProperties: false
|
|
266
|
+
IPpasMeasurementsParams:
|
|
267
|
+
type: object
|
|
268
|
+
properties:
|
|
269
|
+
dateFrom:
|
|
270
|
+
type: string
|
|
271
|
+
format: date
|
|
272
|
+
description: The date from which the consumption is to be fetched
|
|
273
|
+
dateTo:
|
|
274
|
+
type: string
|
|
275
|
+
format: date
|
|
276
|
+
description: The date to which the consumption is to be fetched
|
|
277
|
+
providerType:
|
|
278
|
+
type: string
|
|
279
|
+
description: The type of provider from which the measurements are to be fetched
|
|
280
|
+
enum:
|
|
281
|
+
- "ppas_ave_api_v"
|
|
282
|
+
- "ppas_ave_api_m"
|
|
283
|
+
- "ppas_ave_api_a"
|
|
284
|
+
- "ppas_ave_api_c"
|
|
285
|
+
- "ppas_ave_api_mo"
|
|
286
|
+
IPtasWebScrapingInput:
|
|
287
|
+
type: object
|
|
288
|
+
properties:
|
|
289
|
+
placeId:
|
|
290
|
+
type: string
|
|
291
|
+
description: The place id for which the measurements are to be fetched
|
|
292
|
+
measurements:
|
|
293
|
+
type: array
|
|
294
|
+
items:
|
|
295
|
+
type: object
|
|
296
|
+
properties:
|
|
297
|
+
"Datum odečtu":
|
|
298
|
+
type: string
|
|
299
|
+
"Čas odečtu":
|
|
300
|
+
type: string
|
|
301
|
+
"Výrobní číslo":
|
|
302
|
+
type: string
|
|
303
|
+
"Druh registru":
|
|
304
|
+
type: string
|
|
305
|
+
"Odečet":
|
|
306
|
+
type: string
|
|
307
|
+
"MJ odečtu":
|
|
308
|
+
type: string
|
|
309
|
+
"MJ zúčt.":
|
|
310
|
+
type: string
|
|
311
|
+
"OM závislé":
|
|
312
|
+
type: string
|
|
313
|
+
"Typ odečtu":
|
|
314
|
+
type: string
|
|
315
|
+
"Status odečtu":
|
|
316
|
+
type: string
|
|
317
|
+
IVeoliaMeasurementsMessages:
|
|
318
|
+
type: object
|
|
319
|
+
properties:
|
|
320
|
+
dateFrom:
|
|
321
|
+
type: string
|
|
322
|
+
format: date
|
|
323
|
+
description: The date from which the consumption is to be fetched
|
|
324
|
+
dateTo:
|
|
325
|
+
type: string
|
|
326
|
+
format: date
|
|
327
|
+
description: The date to which the consumption is to be fetched
|
|
328
|
+
providerType:
|
|
329
|
+
type: string
|
|
330
|
+
description: The type of provider from which the measurements are to be fetched
|
|
331
|
+
enum:
|
|
332
|
+
- "cem_api_veolia_water"
|
|
333
|
+
- "cem_api_veolia_electro"
|
|
@@ -46,7 +46,6 @@ Modul slouží k ukládání dat o spotřebě energií v budovách a jednotlivý
|
|
|
46
46
|
- prod `0 30 * * * *`
|
|
47
47
|
- názvy rabbitmq front
|
|
48
48
|
- dataplatform.energeticsoict.fetchData
|
|
49
|
-
- dataplatform.energeticsoict.fetchBuildings
|
|
50
49
|
- dataplatform.energeticsoict.fetchConsumption
|
|
51
50
|
|
|
52
51
|
#### _Unimonitor CEM API - Vrtbovský palác_
|
|
@@ -272,7 +271,7 @@ Worker se stará o stahování dat (spotřeba, seznamy budov a meřidel) z datov
|
|
|
272
271
|
|
|
273
272
|
#### _task: FetchDataTask_
|
|
274
273
|
|
|
275
|
-
Metoda pouze rozesílá zprávy do ostatních front (
|
|
274
|
+
Metoda pouze rozesílá zprávy do ostatních front (fetchConsumption)
|
|
276
275
|
|
|
277
276
|
- vstupní rabbitmq fronta
|
|
278
277
|
- název: dataplatform.energeticsoict.fetchData
|
|
@@ -280,7 +279,6 @@ Metoda pouze rozesílá zprávy do ostatních front (fetchBuildings, fetchConsum
|
|
|
280
279
|
- parametry: `{ targetDays }`
|
|
281
280
|
- validační schéma: [FetchDataSchema](../src/integration-engine/schema/oict-energetika/FetchDataSchema.ts)
|
|
282
281
|
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
283
|
-
- dataplatform.energeticsoict.fetchBuildings
|
|
284
282
|
- dataplatform.energeticsoict.fetchConsumption
|
|
285
283
|
- datové zdroje
|
|
286
284
|
- žádné
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/energetics",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6-dev.1506998228",
|
|
4
4
|
"description": "Golemio Energetics Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@apideck/portman": "^1.26.5",
|
|
36
36
|
"@commitlint/cli": "^11.0.0",
|
|
37
37
|
"@commitlint/config-conventional": "^11.0.0",
|
|
38
|
-
"@golemio/cli": "1.7.
|
|
39
|
-
"@golemio/core": "1.
|
|
38
|
+
"@golemio/cli": "1.7.3",
|
|
39
|
+
"@golemio/core": "1.15.0",
|
|
40
40
|
"@golemio/db-common": "1.1.4",
|
|
41
41
|
"@golemio/eslint-config": "1.1.2",
|
|
42
42
|
"@types/chai": "4.2.3",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typescript-transform-paths": "^3.4.6"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@golemio/core": "
|
|
72
|
+
"@golemio/core": "1.12.3-dev.1387916806"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"basic-ftp": "^5.0.2",
|