@golemio/energetics 1.2.10 → 1.2.11-dev.1148398936
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.
- package/dist/integration-engine/datasources/oict-energetika/OictDataSourceFactory.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/OictApiHelper.js +1 -1
- package/dist/integration-engine/datasources/oict-energetika/helpers/OictApiHelper.js.map +1 -0
- package/dist/integration-engine/datasources/oict-energetika/helpers/index.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.d.ts +6 -0
- package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.js +31 -0
- package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.d.ts +9 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.js +50 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.d.ts +9 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.js +50 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.d.ts +9 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.js +50 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.d.ts +9 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.js +50 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.js.map +1 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.d.ts +9 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.js +50 -0
- package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.js.map +1 -0
- package/dist/integration-engine/helpers/UnimonitorCemApiHelper.d.ts +5 -4
- package/dist/integration-engine/helpers/UnimonitorCemApiHelper.js +76 -58
- package/dist/integration-engine/helpers/UnimonitorCemApiHelper.js.map +1 -1
- package/dist/integration-engine/index.d.ts +0 -3
- package/dist/integration-engine/index.js +2 -18
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/interfaces/oict-energetika/IFetchConsumptionInput.js.map +1 -0
- package/dist/integration-engine/interfaces/oict-energetika/IFetchDataInput.js.map +1 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.d.ts +3 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.js +3 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.js.map +1 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.d.ts +3 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.js +3 -0
- package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.js.map +1 -0
- package/dist/integration-engine/ioc/Di.d.ts +3 -0
- package/dist/integration-engine/ioc/Di.js +68 -0
- package/dist/integration-engine/ioc/Di.js.map +1 -0
- package/dist/integration-engine/ioc/ModuleContainer.d.ts +27 -0
- package/dist/integration-engine/ioc/ModuleContainer.js +40 -0
- package/dist/integration-engine/ioc/ModuleContainer.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/BuildingsRepository.js +2 -2
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/ConsumptionRepository.d.ts +1 -1
- package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/ConsumptionRepository.js +2 -2
- package/dist/integration-engine/repositories/oict-energetika/ConsumptionRepository.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/DevicesRepository.js +2 -2
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js.map +1 -0
- package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.d.ts +9 -0
- package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.js +53 -0
- package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.js.map +1 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.d.ts +9 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.js +53 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.js.map +1 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.d.ts +9 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.js +53 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.js.map +1 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.d.ts +9 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.js +53 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.js.map +1 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.d.ts +9 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.js +53 -0
- package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchConsumptionSchema.d.ts +1 -1
- package/dist/integration-engine/schema/oict-energetika/FetchConsumptionSchema.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchDataSchema.d.ts +1 -1
- package/dist/integration-engine/schema/oict-energetika/FetchDataSchema.js.map +1 -0
- package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.d.ts +4 -0
- package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.js +22 -0
- package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.js.map +1 -0
- package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.d.ts +4 -0
- package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.js +22 -0
- package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchBuildingsTask.js +4 -4
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchConsumptionTask.d.ts +2 -2
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchConsumptionTask.js +9 -9
- package/dist/integration-engine/tasks/oict-energetika/FetchConsumptionTask.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDataTask.d.ts +2 -2
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDataTask.js +1 -1
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDevicesTask.js +7 -7
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/FetchDateFactory.d.ts +16 -0
- package/dist/integration-engine/tasks/vpalace/FetchDateFactory.js +76 -0
- package/dist/integration-engine/tasks/vpalace/FetchDateFactory.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.d.ts +16 -0
- package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.js +76 -0
- package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.d.ts +14 -0
- package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.js +69 -0
- package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.d.ts +11 -0
- package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.js +53 -0
- package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.d.ts +11 -0
- package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.js +51 -0
- package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.d.ts +11 -0
- package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.js +51 -0
- package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.d.ts +11 -0
- package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.js +51 -0
- package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.js.map +1 -0
- package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.d.ts +11 -0
- package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.js +51 -0
- package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/BuildingsTransformation.d.ts +2 -2
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/BuildingsTransformation.js +1 -1
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/ConsumptionTransformation.d.ts +2 -2
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/ConsumptionTransformation.js +1 -1
- package/dist/integration-engine/transformations/oict-energetika/ConsumptionTransformation.js.map +1 -0
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/DevicesTransformation.d.ts +2 -2
- package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/DevicesTransformation.js +1 -1
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/vpalace/VpalacMeasurementTransformation.js +38 -0
- package/dist/integration-engine/transformations/vpalace/VpalacMeasurementTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/{VpalacMeasuringEquipmentTransformation.js → vpalace/VpalacMeasuringEquipmentTransformation.js} +17 -4
- package/dist/integration-engine/transformations/vpalace/VpalacMeasuringEquipmentTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/{VpalacMeterTypeTransformation.js → vpalace/VpalacMeterTypeTransformation.js} +17 -4
- package/dist/integration-engine/transformations/vpalace/VpalacMeterTypeTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/{VpalacTypeMeasuringEquipmentTransformation.js → vpalace/VpalacTypeMeasuringEquipmentTransformation.js} +17 -4
- package/dist/integration-engine/transformations/vpalace/VpalacTypeMeasuringEquipmentTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/{VpalacUnitsTransformation.js → vpalace/VpalacUnitsTransformation.js} +17 -4
- package/dist/integration-engine/transformations/vpalace/VpalacUnitsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/vpalace/index.js.map +1 -0
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.d.ts +1 -1
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js +6 -6
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js.map +1 -1
- package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.d.ts +5 -0
- package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.js +21 -0
- package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.js.map +1 -0
- package/package.json +2 -2
- package/dist/integration-engine/queueDefinitions.d.ts +0 -6
- package/dist/integration-engine/queueDefinitions.js +0 -39
- package/dist/integration-engine/queueDefinitions.js.map +0 -1
- package/dist/integration-engine/transformations/VpalacMeasurementTransformation.js +0 -25
- package/dist/integration-engine/transformations/VpalacMeasurementTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/VpalacMeasuringEquipmentTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/VpalacMeterTypeTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/VpalacTypeMeasuringEquipmentTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/VpalacUnitsTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/index.js.map +0 -1
- package/dist/integration-engine/workers/EnergeticsBaseWorker.d.ts +0 -13
- package/dist/integration-engine/workers/EnergeticsBaseWorker.js +0 -39
- package/dist/integration-engine/workers/EnergeticsBaseWorker.js.map +0 -1
- package/dist/integration-engine/workers/EnergeticsVpalacWorker.d.ts +0 -36
- package/dist/integration-engine/workers/EnergeticsVpalacWorker.js +0 -197
- package/dist/integration-engine/workers/EnergeticsVpalacWorker.js.map +0 -1
- package/dist/integration-engine/workers/index.d.ts +0 -2
- package/dist/integration-engine/workers/index.js +0 -19
- package/dist/integration-engine/workers/index.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/data-access/BuildingsRepository.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/data-access/ConsumptionRepository.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/data-access/DevicesRepository.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/datasources/OictDataSourceFactory.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/datasources/helpers/OictApiHelper.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/datasources/helpers/index.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/interfaces/IFetchConsumptionInput.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/interfaces/IFetchDataInput.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/schema/FetchConsumptionSchema.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/schema/FetchDataSchema.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/tasks/FetchBuildingsTask.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/tasks/FetchConsumptionTask.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/tasks/FetchDataTask.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/tasks/FetchDevicesTask.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/transformations/BuildingsTransformation.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/transformations/ConsumptionTransformation.js.map +0 -1
- package/dist/integration-engine/workers/oict-energetika/transformations/DevicesTransformation.js.map +0 -1
- /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/OictDataSourceFactory.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/OictDataSourceFactory.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/OictApiHelper.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/index.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/index.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchConsumptionInput.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchConsumptionInput.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchDataInput.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchDataInput.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/BuildingsRepository.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/DevicesRepository.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchConsumptionSchema.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchDataSchema.js +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchBuildingsTask.d.ts +0 -0
- /package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDevicesTask.d.ts +0 -0
- /package/dist/integration-engine/transformations/{VpalacMeasurementTransformation.d.ts → vpalace/VpalacMeasurementTransformation.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{VpalacMeasuringEquipmentTransformation.d.ts → vpalace/VpalacMeasuringEquipmentTransformation.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{VpalacMeterTypeTransformation.d.ts → vpalace/VpalacMeterTypeTransformation.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{VpalacTypeMeasuringEquipmentTransformation.d.ts → vpalace/VpalacTypeMeasuringEquipmentTransformation.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{VpalacUnitsTransformation.d.ts → vpalace/VpalacUnitsTransformation.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{index.d.ts → vpalace/index.d.ts} +0 -0
- /package/dist/integration-engine/transformations/{index.js → vpalace/index.js} +0 -0
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.workers = void 0;
|
|
18
4
|
const OictEnergetikaWorker_1 = require("./workers/oict-energetika/OictEnergetikaWorker");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__exportStar(require("./workers"), exports);
|
|
22
|
-
exports.workers = [OictEnergetikaWorker_1.OictEnergetikaWorker];
|
|
5
|
+
const EnergeticsNewVpalaceWorker_1 = require("./workers/vpalace/EnergeticsNewVpalaceWorker");
|
|
6
|
+
exports.workers = [OictEnergetikaWorker_1.OictEnergetikaWorker, EnergeticsNewVpalaceWorker_1.EnergeticsNewVpalaceWorker];
|
|
23
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration-engine/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration-engine/index.ts"],"names":[],"mappings":";;;AAAA,yFAAwF;AAExF,6FAA0F;AAE7E,QAAA,OAAO,GAAoC,CAAC,2CAAoB,EAAE,uDAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFetchConsumptionInput.js","sourceRoot":"","sources":["../../../../src/integration-engine/interfaces/oict-energetika/IFetchConsumptionInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFetchDataInput.js","sourceRoot":"","sources":["../../../../src/integration-engine/interfaces/oict-energetika/IFetchDataInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFetchXDaysDataInput.js","sourceRoot":"","sources":["../../../../src/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFetchXHoursDataInput.js","sourceRoot":"","sources":["../../../../src/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VPalaceContainer = void 0;
|
|
7
|
+
const VpalaceMeasurementDataSource_1 = require("../datasources/vpalace/VpalaceMeasurementDataSource");
|
|
8
|
+
const VpalaceMeasuringEquipmentDataSource_1 = require("../datasources/vpalace/VpalaceMeasuringEquipmentDataSource");
|
|
9
|
+
const VpalaceMeterTypeDataSource_1 = require("../datasources/vpalace/VpalaceMeterTypeDataSource");
|
|
10
|
+
const VpalaceTypeMeasuringEquipmentDataSource_1 = require("../datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource");
|
|
11
|
+
const VpalaceUnitsDataSource_1 = require("../datasources/vpalace/VpalaceUnitsDataSource");
|
|
12
|
+
const UnimonitorCemApiHelper_1 = require("../helpers/UnimonitorCemApiHelper");
|
|
13
|
+
const VpalaceMeasurementRepository_1 = require("../repositories/vpalace/VpalaceMeasurementRepository");
|
|
14
|
+
const VpalaceMeasuringEquipmentRepository_1 = require("../repositories/vpalace/VpalaceMeasuringEquipmentRepository");
|
|
15
|
+
const VpalaceMeterTypeRepository_1 = require("../repositories/vpalace/VpalaceMeterTypeRepository");
|
|
16
|
+
const VpalaceTypeMeasuringEquipmentRepository_1 = require("../repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository");
|
|
17
|
+
const VpalacUnitsRepository_1 = require("../repositories/vpalace/VpalacUnitsRepository");
|
|
18
|
+
const FetchDateFactory_1 = require("../tasks/vpalace/FetchDateFactory");
|
|
19
|
+
const UnitDataFetcher_1 = require("../tasks/vpalace/UnitDataFetcher");
|
|
20
|
+
const FetchXDaysDataTask_1 = __importDefault(require("../tasks/vpalace/FetchXDaysDataTask"));
|
|
21
|
+
const FetchXHoursDataTask_1 = __importDefault(require("../tasks/vpalace/FetchXHoursDataTask"));
|
|
22
|
+
const vpalace_1 = require("../transformations/vpalace");
|
|
23
|
+
const Di_1 = require("@golemio/core/dist/integration-engine/ioc/Di");
|
|
24
|
+
const ModuleContainer_1 = require("./ModuleContainer");
|
|
25
|
+
const MeasurementDataFetcher_1 = require("../tasks/vpalace/MeasurementDataFetcher");
|
|
26
|
+
const MeasuringEquipmentFetcher_1 = require("../tasks/vpalace/MeasuringEquipmentFetcher");
|
|
27
|
+
const MeterTypeFetcher_1 = require("../tasks/vpalace/MeterTypeFetcher");
|
|
28
|
+
const TypeMeasuringEquipmentFetcher_1 = require("../tasks/vpalace/TypeMeasuringEquipmentFetcher");
|
|
29
|
+
//#region Initialization
|
|
30
|
+
const VPalaceContainer = Di_1.IntegrationEngineContainer.createChildContainer();
|
|
31
|
+
exports.VPalaceContainer = VPalaceContainer;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region Helpers
|
|
34
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.UnimonitorCemApi, UnimonitorCemApiHelper_1.UnimonitorCemApi);
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region Datasource
|
|
37
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeasurementDataSource, VpalaceMeasurementDataSource_1.VpalaceMeasurementDataSource);
|
|
38
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeasuringEquipmentDataSource, VpalaceMeasuringEquipmentDataSource_1.VpalaceMeasuringEquipmentDataSource);
|
|
39
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeterTypeDataSource, VpalaceMeterTypeDataSource_1.VpalaceMeterTypeDataSource);
|
|
40
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceTypeMeasuringEquipmentDataSource, VpalaceTypeMeasuringEquipmentDataSource_1.VpalaceTypeMeasuringEquipmentDataSource);
|
|
41
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceUnitsDataSource, VpalaceUnitsDataSource_1.VpalaceUnitsDataSource);
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region Repositories
|
|
44
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeasurementRepository, VpalaceMeasurementRepository_1.VpalaceMeasurementRepository);
|
|
45
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeasuringEquipmentRepository, VpalaceMeasuringEquipmentRepository_1.VpalaceMeasuringEquipmentRepository);
|
|
46
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceMeterTypeRepository, VpalaceMeterTypeRepository_1.VpalaceMeterTypeRepository);
|
|
47
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceTypeMeasuringEquipmentRepository, VpalaceTypeMeasuringEquipmentRepository_1.VpalaceTypeMeasuringEquipmentRepository);
|
|
48
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalaceUnitsRepository, VpalacUnitsRepository_1.VpalaceUnitsRepository);
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region Transformation
|
|
51
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalacMeasurementTransformation, vpalace_1.VpalacMeasurementTransformation);
|
|
52
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalacMeasuringEquipmentTransformation, vpalace_1.VpalacMeasuringEquipmentTransformation);
|
|
53
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalacMeterTypeTransformation, vpalace_1.VpalacMeterTypeTransformation);
|
|
54
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalacTypeMeasuringEquipmentTransformation, vpalace_1.VpalacTypeMeasuringEquipmentTransformation);
|
|
55
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.VpalacUnitsTransformation, vpalace_1.VpalacUnitsTransformation);
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region Factory
|
|
58
|
+
VPalaceContainer.register(ModuleContainer_1.ModuleContainerToken.FetchDateFactory, FetchDateFactory_1.FetchDateFactory);
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region Tasks
|
|
61
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.MeasurementDataFetcher, MeasurementDataFetcher_1.MeasurementDataFetcher);
|
|
62
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.MeasuringEquipmentFetcher, MeasuringEquipmentFetcher_1.MeasuringEquipmentFetcher);
|
|
63
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.MeterTypeFetcher, MeterTypeFetcher_1.MeterTypeFetcher);
|
|
64
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.TypeMeasuringEquipmentFetcher, TypeMeasuringEquipmentFetcher_1.TypeMeasuringEquipmentFetcher);
|
|
65
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.UnitDataFetcher, UnitDataFetcher_1.UnitDataFetcher);
|
|
66
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.FetchXDaysDataTask, FetchXDaysDataTask_1.default);
|
|
67
|
+
VPalaceContainer.registerSingleton(ModuleContainer_1.ModuleContainerToken.FetchXHoursDataTask, FetchXHoursDataTask_1.default);
|
|
68
|
+
//# sourceMappingURL=Di.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/integration-engine/ioc/Di.ts"],"names":[],"mappings":";;;;;;AAAA,sGAAoG;AACpG,oHAAkH;AAClH,kGAAgG;AAChG,4HAA0H;AAC1H,0FAAwF;AACxF,8EAAsE;AACtE,uGAAqG;AACrG,qHAAmH;AACnH,mGAAiG;AACjG,6HAA2H;AAC3H,yFAAwF;AACxF,wEAAsE;AAEtE,sEAAoE;AACpE,6FAAsE;AACtE,+FAAwE;AACxE,wDAMqC;AACrC,qEAA0F;AAE1F,uDAAyD;AACzD,oFAAkF;AAClF,0FAAwF;AACxF,wEAAsE;AACtE,kGAAgG;AAEhG,wBAAwB;AACxB,MAAM,gBAAgB,GAAwB,+BAA0B,CAAC,oBAAoB,EAAE,CAAC;AAuDvF,4CAAgB;AAtDzB,YAAY;AAEZ,iBAAiB;AACjB,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,gBAAgB,EAAE,yCAAgB,CAAC,CAAC;AACnF,YAAY;AAEZ,oBAAoB;AACpB,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,4BAA4B,EAAE,2DAA4B,CAAC,CAAC;AAC3G,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,mCAAmC,EAAE,yEAAmC,CAAC,CAAC;AACzH,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACvG,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,uCAAuC,EAAE,iFAAuC,CAAC,CAAC;AACjI,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AAC/F,YAAY;AAEZ,sBAAsB;AACtB,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,4BAA4B,EAAE,2DAA4B,CAAC,CAAC;AAC3G,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,mCAAmC,EAAE,yEAAmC,CAAC,CAAC;AACzH,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACvG,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,uCAAuC,EAAE,iFAAuC,CAAC,CAAC;AACjI,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,sBAAsB,EAAE,8CAAsB,CAAC,CAAC;AAC/F,YAAY;AAEZ,wBAAwB;AACxB,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,+BAA+B,EAAE,yCAA+B,CAAC,CAAC;AACjH,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,sCAAsC,EAAE,gDAAsC,CAAC,CAAC;AAC/H,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,6BAA6B,EAAE,uCAA6B,CAAC,CAAC;AAC7G,gBAAgB,CAAC,QAAQ,CACrB,sCAAoB,CAAC,0CAA0C,EAC/D,oDAA0C,CAC7C,CAAC;AACF,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,yBAAyB,EAAE,mCAAyB,CAAC,CAAC;AACrG,YAAY;AAEZ,iBAAiB;AACjB,gBAAgB,CAAC,QAAQ,CAAC,sCAAoB,CAAC,gBAAgB,EAAE,mCAAgB,CAAC,CAAC;AACnF,YAAY;AAEZ,eAAe;AACf,gBAAgB,CAAC,iBAAiB,CAAyB,sCAAoB,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AAChI,gBAAgB,CAAC,iBAAiB,CAC9B,sCAAoB,CAAC,yBAAyB,EAC9C,qDAAyB,CAC5B,CAAC;AACF,gBAAgB,CAAC,iBAAiB,CAAmB,sCAAoB,CAAC,gBAAgB,EAAE,mCAAgB,CAAC,CAAC;AAC9G,gBAAgB,CAAC,iBAAiB,CAC9B,sCAAoB,CAAC,6BAA6B,EAClD,6DAA6B,CAChC,CAAC;AACF,gBAAgB,CAAC,iBAAiB,CAAkB,sCAAoB,CAAC,eAAe,EAAE,iCAAe,CAAC,CAAC;AAE3G,gBAAgB,CAAC,iBAAiB,CAAqB,sCAAoB,CAAC,kBAAkB,EAAE,4BAAkB,CAAC,CAAC;AACpH,gBAAgB,CAAC,iBAAiB,CAAsB,sCAAoB,CAAC,mBAAmB,EAAE,6BAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const ModuleContainerToken: {
|
|
2
|
+
VpalaceMeasurementRepository: symbol;
|
|
3
|
+
VpalaceMeasurementDataSource: symbol;
|
|
4
|
+
VpalacMeasurementTransformation: symbol;
|
|
5
|
+
VpalaceMeasuringEquipmentDataSource: symbol;
|
|
6
|
+
VpalaceMeasuringEquipmentRepository: symbol;
|
|
7
|
+
VpalacMeasuringEquipmentTransformation: symbol;
|
|
8
|
+
VpalaceMeterTypeDataSource: symbol;
|
|
9
|
+
VpalaceMeterTypeRepository: symbol;
|
|
10
|
+
VpalacMeterTypeTransformation: symbol;
|
|
11
|
+
VpalaceTypeMeasuringEquipmentDataSource: symbol;
|
|
12
|
+
VpalaceTypeMeasuringEquipmentRepository: symbol;
|
|
13
|
+
VpalacTypeMeasuringEquipmentTransformation: symbol;
|
|
14
|
+
VpalaceUnitsDataSource: symbol;
|
|
15
|
+
VpalaceUnitsRepository: symbol;
|
|
16
|
+
VpalacUnitsTransformation: symbol;
|
|
17
|
+
FetchDateFactory: symbol;
|
|
18
|
+
FetchXDaysDataTask: symbol;
|
|
19
|
+
FetchXHoursDataTask: symbol;
|
|
20
|
+
MeasurementDataFetcher: symbol;
|
|
21
|
+
MeasuringEquipmentFetcher: symbol;
|
|
22
|
+
MeterTypeFetcher: symbol;
|
|
23
|
+
TypeMeasuringEquipmentFetcher: symbol;
|
|
24
|
+
UnitDataFetcher: symbol;
|
|
25
|
+
UnimonitorCemApi: symbol;
|
|
26
|
+
};
|
|
27
|
+
export { ModuleContainerToken };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModuleContainerToken = void 0;
|
|
4
|
+
const ModuleContainerToken = {
|
|
5
|
+
//measurement
|
|
6
|
+
VpalaceMeasurementRepository: Symbol(),
|
|
7
|
+
VpalaceMeasurementDataSource: Symbol(),
|
|
8
|
+
VpalacMeasurementTransformation: Symbol(),
|
|
9
|
+
//measuring equipment
|
|
10
|
+
VpalaceMeasuringEquipmentDataSource: Symbol(),
|
|
11
|
+
VpalaceMeasuringEquipmentRepository: Symbol(),
|
|
12
|
+
VpalacMeasuringEquipmentTransformation: Symbol(),
|
|
13
|
+
//meter type
|
|
14
|
+
VpalaceMeterTypeDataSource: Symbol(),
|
|
15
|
+
VpalaceMeterTypeRepository: Symbol(),
|
|
16
|
+
VpalacMeterTypeTransformation: Symbol(),
|
|
17
|
+
//type measuring equipment
|
|
18
|
+
VpalaceTypeMeasuringEquipmentDataSource: Symbol(),
|
|
19
|
+
VpalaceTypeMeasuringEquipmentRepository: Symbol(),
|
|
20
|
+
VpalacTypeMeasuringEquipmentTransformation: Symbol(),
|
|
21
|
+
//units
|
|
22
|
+
VpalaceUnitsDataSource: Symbol(),
|
|
23
|
+
VpalaceUnitsRepository: Symbol(),
|
|
24
|
+
VpalacUnitsTransformation: Symbol(),
|
|
25
|
+
//factory
|
|
26
|
+
FetchDateFactory: Symbol(),
|
|
27
|
+
//tasks
|
|
28
|
+
FetchXDaysDataTask: Symbol(),
|
|
29
|
+
FetchXHoursDataTask: Symbol(),
|
|
30
|
+
//data tasks
|
|
31
|
+
MeasurementDataFetcher: Symbol(),
|
|
32
|
+
MeasuringEquipmentFetcher: Symbol(),
|
|
33
|
+
MeterTypeFetcher: Symbol(),
|
|
34
|
+
TypeMeasuringEquipmentFetcher: Symbol(),
|
|
35
|
+
UnitDataFetcher: Symbol(),
|
|
36
|
+
//token
|
|
37
|
+
UnimonitorCemApi: Symbol(),
|
|
38
|
+
};
|
|
39
|
+
exports.ModuleContainerToken = ModuleContainerToken;
|
|
40
|
+
//# sourceMappingURL=ModuleContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleContainer.js","sourceRoot":"","sources":["../../../src/integration-engine/ioc/ModuleContainer.ts"],"names":[],"mappings":";;;AAAA,MAAM,oBAAoB,GAAG;IACzB,aAAa;IACb,4BAA4B,EAAE,MAAM,EAAE;IACtC,4BAA4B,EAAE,MAAM,EAAE;IACtC,+BAA+B,EAAE,MAAM,EAAE;IACzC,qBAAqB;IACrB,mCAAmC,EAAE,MAAM,EAAE;IAC7C,mCAAmC,EAAE,MAAM,EAAE;IAC7C,sCAAsC,EAAE,MAAM,EAAE;IAChD,YAAY;IACZ,0BAA0B,EAAE,MAAM,EAAE;IACpC,0BAA0B,EAAE,MAAM,EAAE;IACpC,6BAA6B,EAAE,MAAM,EAAE;IACvC,0BAA0B;IAC1B,uCAAuC,EAAE,MAAM,EAAE;IACjD,uCAAuC,EAAE,MAAM,EAAE;IACjD,0CAA0C,EAAE,MAAM,EAAE;IACpD,OAAO;IACP,sBAAsB,EAAE,MAAM,EAAE;IAChC,sBAAsB,EAAE,MAAM,EAAE;IAChC,yBAAyB,EAAE,MAAM,EAAE;IACnC,SAAS;IACT,gBAAgB,EAAE,MAAM,EAAE;IAC1B,OAAO;IACP,kBAAkB,EAAE,MAAM,EAAE;IAC5B,mBAAmB,EAAE,MAAM,EAAE;IAC7B,YAAY;IACZ,sBAAsB,EAAE,MAAM,EAAE;IAChC,yBAAyB,EAAE,MAAM,EAAE;IACnC,gBAAgB,EAAE,MAAM,EAAE;IAC1B,6BAA6B,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,MAAM,EAAE;IACzB,OAAO;IACP,gBAAgB,EAAE,MAAM,EAAE;CAC7B,CAAC;AAEO,oDAAoB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BuildingsRepository = void 0;
|
|
4
|
-
const _sch_1 = require("
|
|
5
|
-
const models_1 = require("
|
|
4
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
5
|
+
const models_1 = require("../../../schema-definitions/models");
|
|
6
6
|
const models_2 = require("@golemio/core/dist/integration-engine/models");
|
|
7
7
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
8
|
class BuildingsRepository extends models_2.PostgresModel {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildingsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/oict-energetika/BuildingsRepository.ts"],"names":[],"mappings":";;;AAAA,sDAAwC;AACxC,+DAA6C;AAC7C,yEAAqF;AACrF,mFAAkF;AAElF,MAAa,mBAAoB,SAAQ,sBAAa;IAClD;QACI,KAAK,CACD,qBAAqB,EACrB;YACI,WAAW,EAAE,uBAAc,CAAC,UAAU;YACtC,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,yBAAyB,EAAE,uBAAc,CAAC,cAAc;YACxD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,8BAA8B,EAAE,uBAAc,CAAC,eAAe,CAAC,CAC1F,CAAC;IACN,CAAC;CACJ;AAbD,kDAaC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConsumptionModel } from "
|
|
1
|
+
import { ConsumptionModel } from "../../../schema-definitions/models/ConsumptionModel";
|
|
2
2
|
import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine/models";
|
|
3
3
|
export declare class ConsumptionRepository extends PostgresModel implements IModel {
|
|
4
4
|
constructor();
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ConsumptionRepository = void 0;
|
|
13
|
-
const _sch_1 = require("
|
|
14
|
-
const ConsumptionModel_1 = require("
|
|
13
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
14
|
+
const ConsumptionModel_1 = require("../../../schema-definitions/models/ConsumptionModel");
|
|
15
15
|
const models_1 = require("@golemio/core/dist/integration-engine/models");
|
|
16
16
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
17
17
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsumptionRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/oict-energetika/ConsumptionRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAwC;AACxC,0FAAgE;AAChE,yEAAqF;AACrF,6EAAwE;AACxE,mFAAkF;AAElF,MAAa,qBAAsB,SAAQ,sBAAa;IACpD;QACI,KAAK,CACD,uBAAuB,EACvB;YACI,WAAW,EAAE,mCAAgB,CAAC,UAAU;YACxC,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,yBAAyB,EAAE,mCAAgB,CAAC,cAAc;YAC1D,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,gCAAgC,EAAE,mCAAgB,CAAC,eAAe,CAAC,CAC9F,CAAC;QAGC,aAAQ,GAAG,CAAO,IAAwB,EAA+B,EAAE;YAC9E,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAmB,IAAI,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;aACnG;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,0BAA0B,GAAG,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACxH;QACL,CAAC,CAAA,CAAC;IARF,CAAC;CASJ;AArBD,sDAqBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DevicesRepository = void 0;
|
|
4
|
-
const _sch_1 = require("
|
|
5
|
-
const models_1 = require("
|
|
4
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
5
|
+
const models_1 = require("../../../schema-definitions/models");
|
|
6
6
|
const models_2 = require("@golemio/core/dist/integration-engine/models");
|
|
7
7
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
8
|
class DevicesRepository extends models_2.PostgresModel {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevicesRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/oict-energetika/DevicesRepository.ts"],"names":[],"mappings":";;;AAAA,sDAAwC;AACxC,+DAA2C;AAC3C,yEAAqF;AACrF,mFAAkF;AAElF,MAAa,iBAAkB,SAAQ,sBAAa;IAChD;QACI,KAAK,CACD,mBAAmB,EACnB;YACI,WAAW,EAAE,qBAAY,CAAC,UAAU;YACpC,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,yBAAyB,EAAE,qBAAY,CAAC,cAAc;YACtD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,qBAAY,CAAC,eAAe,CAAC,CACtF,CAAC;IACN,CAAC;CACJ;AAbD,8CAaC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine";
|
|
3
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models";
|
|
4
|
+
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
+
export declare class VpalaceUnitsRepository extends PostgresModel implements IModel {
|
|
6
|
+
private databaseConnector;
|
|
7
|
+
constructor(databaseConnector: IDatabaseConnector);
|
|
8
|
+
saveBulk: (data: any, t: Transaction) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VpalaceUnitsRepository = void 0;
|
|
25
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
26
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
27
|
+
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
28
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
29
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
30
|
+
let VpalaceUnitsRepository = exports.VpalaceUnitsRepository = class VpalaceUnitsRepository extends integration_engine_1.PostgresModel {
|
|
31
|
+
constructor(databaseConnector) {
|
|
32
|
+
super(_sch_1.EnergeticsSchema.vpalac.units.name + "Model", {
|
|
33
|
+
outputSequelizeAttributes: _sch_1.EnergeticsSchema.vpalac.units.outputSequelizeAttributes,
|
|
34
|
+
pgTableName: _sch_1.EnergeticsSchema.vpalac.units.pgTableName,
|
|
35
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
36
|
+
savingType: "insertOrUpdate",
|
|
37
|
+
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.EnergeticsSchema.vpalac.units.name + "ModelValidator", _sch_1.EnergeticsSchema.vpalac.units.outputJsonSchema));
|
|
38
|
+
this.databaseConnector = databaseConnector;
|
|
39
|
+
this.saveBulk = (data, t) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield this.validate(data);
|
|
41
|
+
yield this.sequelizeModel.bulkCreate(data, {
|
|
42
|
+
updateOnDuplicate: Object.keys(data[0]).concat("updated_at"),
|
|
43
|
+
transaction: t,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.VpalaceUnitsRepository = VpalaceUnitsRepository = __decorate([
|
|
49
|
+
(0, tsyringe_1.injectable)(),
|
|
50
|
+
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
51
|
+
__metadata("design:paramtypes", [Object])
|
|
52
|
+
], VpalaceUnitsRepository);
|
|
53
|
+
//# sourceMappingURL=VpalacUnitsRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VpalacUnitsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/vpalace/VpalacUnitsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAExC,wEAAqE;AACrE,8EAAsE;AAEtE,mFAAkF;AAElF,iEAAwE;AAGjE,IAAM,sBAAsB,oCAA5B,MAAM,sBAAuB,SAAQ,kCAAa;IACrD,YAAiD,iBAA6C;QAC1F,KAAK,CACD,uBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,EAC5C;YACI,yBAAyB,EAAE,uBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,yBAAyB;YAClF,WAAW,EAAE,uBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW;YACtD,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,gBAAgB,EACrD,uBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CACjD,CACJ,CAAC;QAbmD,sBAAiB,GAAjB,iBAAiB,CAAoB;QAgBvF,aAAQ,GAAG,CAAO,IAAS,EAAE,CAAc,EAAE,EAAE;YAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACvC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC5D,WAAW,EAAE,CAAC;aACjB,CAAC,CAAC;QACP,CAAC,CAAA,CAAC;IARF,CAAC;CASJ,CAAA;iCAxBY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;;GADvC,sBAAsB,CAwBlC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine";
|
|
3
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models";
|
|
4
|
+
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
+
export declare class VpalaceMeasurementRepository extends PostgresModel implements IModel {
|
|
6
|
+
private databaseConnector;
|
|
7
|
+
constructor(databaseConnector: IDatabaseConnector);
|
|
8
|
+
saveBulk: (data: any, t: Transaction) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VpalaceMeasurementRepository = void 0;
|
|
25
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
26
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
27
|
+
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
28
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
29
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
30
|
+
let VpalaceMeasurementRepository = exports.VpalaceMeasurementRepository = class VpalaceMeasurementRepository extends integration_engine_1.PostgresModel {
|
|
31
|
+
constructor(databaseConnector) {
|
|
32
|
+
super(_sch_1.EnergeticsSchema.vpalac.measurement.name + "Model", {
|
|
33
|
+
outputSequelizeAttributes: _sch_1.EnergeticsSchema.vpalac.measurement.outputSequelizeAttributes,
|
|
34
|
+
pgTableName: _sch_1.EnergeticsSchema.vpalac.measurement.pgTableName,
|
|
35
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
36
|
+
savingType: "insertOrUpdate",
|
|
37
|
+
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.EnergeticsSchema.vpalac.measurement.name + "ModelValidator", _sch_1.EnergeticsSchema.vpalac.measurement.outputJsonSchema));
|
|
38
|
+
this.databaseConnector = databaseConnector;
|
|
39
|
+
this.saveBulk = (data, t) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield this.validate(data);
|
|
41
|
+
yield this.sequelizeModel.bulkCreate(data, {
|
|
42
|
+
updateOnDuplicate: Object.keys(data[0]).concat("updated_at"),
|
|
43
|
+
transaction: t,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.VpalaceMeasurementRepository = VpalaceMeasurementRepository = __decorate([
|
|
49
|
+
(0, tsyringe_1.injectable)(),
|
|
50
|
+
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
51
|
+
__metadata("design:paramtypes", [Object])
|
|
52
|
+
], VpalaceMeasurementRepository);
|
|
53
|
+
//# sourceMappingURL=VpalaceMeasurementRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VpalaceMeasurementRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAExC,wEAAqE;AACrE,8EAAsE;AAEtE,mFAAkF;AAElF,iEAAwE;AAGjE,IAAM,4BAA4B,0CAAlC,MAAM,4BAA6B,SAAQ,kCAAa;IAC3D,YAAiD,iBAA6C;QAC1F,KAAK,CACD,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,OAAO,EAClD;YACI,yBAAyB,EAAE,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,yBAAyB;YACxF,WAAW,EAAE,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW;YAC5D,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,gBAAgB,EAC3D,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CACvD,CACJ,CAAC;QAbmD,sBAAiB,GAAjB,iBAAiB,CAAoB;QAgBvF,aAAQ,GAAG,CAAO,IAAS,EAAE,CAAc,EAAE,EAAE;YAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACvC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC5D,WAAW,EAAE,CAAC;aACjB,CAAC,CAAC;QACP,CAAC,CAAA,CAAC;IARF,CAAC;CASJ,CAAA;uCAxBY,4BAA4B;IADxC,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;;GADvC,4BAA4B,CAwBxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine";
|
|
3
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models";
|
|
4
|
+
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
+
export declare class VpalaceMeasuringEquipmentRepository extends PostgresModel implements IModel {
|
|
6
|
+
private databaseConnector;
|
|
7
|
+
constructor(databaseConnector: IDatabaseConnector);
|
|
8
|
+
saveBulk: (data: any, t: Transaction) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VpalaceMeasuringEquipmentRepository = void 0;
|
|
25
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
26
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
27
|
+
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
28
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
29
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
30
|
+
let VpalaceMeasuringEquipmentRepository = exports.VpalaceMeasuringEquipmentRepository = class VpalaceMeasuringEquipmentRepository extends integration_engine_1.PostgresModel {
|
|
31
|
+
constructor(databaseConnector) {
|
|
32
|
+
super(_sch_1.EnergeticsSchema.vpalac.measuringEquipment.name + "Model", {
|
|
33
|
+
outputSequelizeAttributes: _sch_1.EnergeticsSchema.vpalac.measuringEquipment.outputSequelizeAttributes,
|
|
34
|
+
pgTableName: _sch_1.EnergeticsSchema.vpalac.measuringEquipment.pgTableName,
|
|
35
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
36
|
+
savingType: "insertOrUpdate",
|
|
37
|
+
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.EnergeticsSchema.vpalac.measuringEquipment.name + "ModelValidator", _sch_1.EnergeticsSchema.vpalac.measuringEquipment.outputJsonSchema));
|
|
38
|
+
this.databaseConnector = databaseConnector;
|
|
39
|
+
this.saveBulk = (data, t) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield this.validate(data);
|
|
41
|
+
yield this.sequelizeModel.bulkCreate(data, {
|
|
42
|
+
updateOnDuplicate: Object.keys(data[0]).concat("updated_at"),
|
|
43
|
+
transaction: t,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.VpalaceMeasuringEquipmentRepository = VpalaceMeasuringEquipmentRepository = __decorate([
|
|
49
|
+
(0, tsyringe_1.injectable)(),
|
|
50
|
+
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
51
|
+
__metadata("design:paramtypes", [Object])
|
|
52
|
+
], VpalaceMeasuringEquipmentRepository);
|
|
53
|
+
//# sourceMappingURL=VpalaceMeasuringEquipmentRepository.js.map
|
package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VpalaceMeasuringEquipmentRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAExC,wEAAqE;AACrE,8EAAsE;AAEtE,mFAAkF;AAElF,iEAAwE;AAGjE,IAAM,mCAAmC,iDAAzC,MAAM,mCAAoC,SAAQ,kCAAa;IAClE,YAAiD,iBAA6C;QAC1F,KAAK,CACD,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,GAAG,OAAO,EACzD;YACI,yBAAyB,EAAE,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,yBAAyB;YAC/F,WAAW,EAAE,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,WAAW;YACnE,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,GAAG,gBAAgB,EAClE,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAC9D,CACJ,CAAC;QAbmD,sBAAiB,GAAjB,iBAAiB,CAAoB;QAgBvF,aAAQ,GAAG,CAAO,IAAS,EAAE,CAAc,EAAE,EAAE;YAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACvC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC5D,WAAW,EAAE,CAAC;aACjB,CAAC,CAAC;QACP,CAAC,CAAA,CAAC;IARF,CAAC;CASJ,CAAA;8CAxBY,mCAAmC;IAD/C,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;;GADvC,mCAAmC,CAwB/C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine";
|
|
3
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models";
|
|
4
|
+
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
+
export declare class VpalaceMeterTypeRepository extends PostgresModel implements IModel {
|
|
6
|
+
private databaseConnector;
|
|
7
|
+
constructor(databaseConnector: IDatabaseConnector);
|
|
8
|
+
saveBulk: (data: any, t: Transaction) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VpalaceMeterTypeRepository = void 0;
|
|
25
|
+
const _sch_1 = require("../../../schema-definitions");
|
|
26
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
27
|
+
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
28
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
29
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
30
|
+
let VpalaceMeterTypeRepository = exports.VpalaceMeterTypeRepository = class VpalaceMeterTypeRepository extends integration_engine_1.PostgresModel {
|
|
31
|
+
constructor(databaseConnector) {
|
|
32
|
+
super(_sch_1.EnergeticsSchema.vpalac.meterType.name + "Model", {
|
|
33
|
+
outputSequelizeAttributes: _sch_1.EnergeticsSchema.vpalac.meterType.outputSequelizeAttributes,
|
|
34
|
+
pgTableName: _sch_1.EnergeticsSchema.vpalac.meterType.pgTableName,
|
|
35
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
36
|
+
savingType: "insertOrUpdate",
|
|
37
|
+
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.EnergeticsSchema.vpalac.meterType.name + "ModelValidator", _sch_1.EnergeticsSchema.vpalac.meterType.outputJsonSchema));
|
|
38
|
+
this.databaseConnector = databaseConnector;
|
|
39
|
+
this.saveBulk = (data, t) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield this.validate(data);
|
|
41
|
+
yield this.sequelizeModel.bulkCreate(data, {
|
|
42
|
+
updateOnDuplicate: Object.keys(data[0]).concat("updated_at"),
|
|
43
|
+
transaction: t,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.VpalaceMeterTypeRepository = VpalaceMeterTypeRepository = __decorate([
|
|
49
|
+
(0, tsyringe_1.injectable)(),
|
|
50
|
+
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
51
|
+
__metadata("design:paramtypes", [Object])
|
|
52
|
+
], VpalaceMeterTypeRepository);
|
|
53
|
+
//# sourceMappingURL=VpalaceMeterTypeRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VpalaceMeterTypeRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAExC,wEAAqE;AACrE,8EAAsE;AAEtE,mFAAkF;AAElF,iEAAwE;AAGjE,IAAM,0BAA0B,wCAAhC,MAAM,0BAA2B,SAAQ,kCAAa;IACzD,YAAiD,iBAA6C;QAC1F,KAAK,CACD,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,OAAO,EAChD;YACI,yBAAyB,EAAE,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,yBAAyB;YACtF,WAAW,EAAE,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW;YAC1D,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,gBAAgB,EACzD,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CACrD,CACJ,CAAC;QAbmD,sBAAiB,GAAjB,iBAAiB,CAAoB;QAgBvF,aAAQ,GAAG,CAAO,IAAS,EAAE,CAAc,EAAE,EAAE;YAClD,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACvC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC5D,WAAW,EAAE,CAAC;aACjB,CAAC,CAAC;QACP,CAAC,CAAA,CAAC;IARF,CAAC;CASJ,CAAA;qCAxBY,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;;GADvC,0BAA0B,CAwBtC"}
|
package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine";
|
|
3
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models";
|
|
4
|
+
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
+
export declare class VpalaceTypeMeasuringEquipmentRepository extends PostgresModel implements IModel {
|
|
6
|
+
private databaseConnector;
|
|
7
|
+
constructor(databaseConnector: IDatabaseConnector);
|
|
8
|
+
saveBulk: (data: any, t: Transaction) => Promise<void>;
|
|
9
|
+
}
|