@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.
Files changed (193) hide show
  1. package/dist/integration-engine/datasources/oict-energetika/OictDataSourceFactory.js.map +1 -0
  2. package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/OictApiHelper.js +1 -1
  3. package/dist/integration-engine/datasources/oict-energetika/helpers/OictApiHelper.js.map +1 -0
  4. package/dist/integration-engine/datasources/oict-energetika/helpers/index.js.map +1 -0
  5. package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.d.ts +6 -0
  6. package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.js +31 -0
  7. package/dist/integration-engine/datasources/vpalace/BaseVpalaceFactory.js.map +1 -0
  8. package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.d.ts +9 -0
  9. package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.js +50 -0
  10. package/dist/integration-engine/datasources/vpalace/VpalaceMeasurementDataSource.js.map +1 -0
  11. package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.d.ts +9 -0
  12. package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.js +50 -0
  13. package/dist/integration-engine/datasources/vpalace/VpalaceMeasuringEquipmentDataSource.js.map +1 -0
  14. package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.d.ts +9 -0
  15. package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.js +50 -0
  16. package/dist/integration-engine/datasources/vpalace/VpalaceMeterTypeDataSource.js.map +1 -0
  17. package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.d.ts +9 -0
  18. package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.js +50 -0
  19. package/dist/integration-engine/datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource.js.map +1 -0
  20. package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.d.ts +9 -0
  21. package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.js +50 -0
  22. package/dist/integration-engine/datasources/vpalace/VpalaceUnitsDataSource.js.map +1 -0
  23. package/dist/integration-engine/helpers/UnimonitorCemApiHelper.d.ts +5 -4
  24. package/dist/integration-engine/helpers/UnimonitorCemApiHelper.js +76 -58
  25. package/dist/integration-engine/helpers/UnimonitorCemApiHelper.js.map +1 -1
  26. package/dist/integration-engine/index.d.ts +0 -3
  27. package/dist/integration-engine/index.js +2 -18
  28. package/dist/integration-engine/index.js.map +1 -1
  29. package/dist/integration-engine/interfaces/oict-energetika/IFetchConsumptionInput.js.map +1 -0
  30. package/dist/integration-engine/interfaces/oict-energetika/IFetchDataInput.js.map +1 -0
  31. package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.d.ts +3 -0
  32. package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.js +3 -0
  33. package/dist/integration-engine/interfaces/vpalace/IFetchXDaysDataInput.js.map +1 -0
  34. package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.d.ts +3 -0
  35. package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.js +3 -0
  36. package/dist/integration-engine/interfaces/vpalace/IFetchXHoursDataInput.js.map +1 -0
  37. package/dist/integration-engine/ioc/Di.d.ts +3 -0
  38. package/dist/integration-engine/ioc/Di.js +68 -0
  39. package/dist/integration-engine/ioc/Di.js.map +1 -0
  40. package/dist/integration-engine/ioc/ModuleContainer.d.ts +27 -0
  41. package/dist/integration-engine/ioc/ModuleContainer.js +40 -0
  42. package/dist/integration-engine/ioc/ModuleContainer.js.map +1 -0
  43. package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/BuildingsRepository.js +2 -2
  44. package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js.map +1 -0
  45. package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/ConsumptionRepository.d.ts +1 -1
  46. package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/ConsumptionRepository.js +2 -2
  47. package/dist/integration-engine/repositories/oict-energetika/ConsumptionRepository.js.map +1 -0
  48. package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/DevicesRepository.js +2 -2
  49. package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js.map +1 -0
  50. package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.d.ts +9 -0
  51. package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.js +53 -0
  52. package/dist/integration-engine/repositories/vpalace/VpalacUnitsRepository.js.map +1 -0
  53. package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.d.ts +9 -0
  54. package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.js +53 -0
  55. package/dist/integration-engine/repositories/vpalace/VpalaceMeasurementRepository.js.map +1 -0
  56. package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.d.ts +9 -0
  57. package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.js +53 -0
  58. package/dist/integration-engine/repositories/vpalace/VpalaceMeasuringEquipmentRepository.js.map +1 -0
  59. package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.d.ts +9 -0
  60. package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.js +53 -0
  61. package/dist/integration-engine/repositories/vpalace/VpalaceMeterTypeRepository.js.map +1 -0
  62. package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.d.ts +9 -0
  63. package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.js +53 -0
  64. package/dist/integration-engine/repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository.js.map +1 -0
  65. package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchConsumptionSchema.d.ts +1 -1
  66. package/dist/integration-engine/schema/oict-energetika/FetchConsumptionSchema.js.map +1 -0
  67. package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchDataSchema.d.ts +1 -1
  68. package/dist/integration-engine/schema/oict-energetika/FetchDataSchema.js.map +1 -0
  69. package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.d.ts +4 -0
  70. package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.js +22 -0
  71. package/dist/integration-engine/schema/vpalace/FetchXDaysDataValidationSchema.js.map +1 -0
  72. package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.d.ts +4 -0
  73. package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.js +22 -0
  74. package/dist/integration-engine/schema/vpalace/FetchXHoursDataValidationSchema.js.map +1 -0
  75. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchBuildingsTask.js +4 -4
  76. package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js.map +1 -0
  77. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchConsumptionTask.d.ts +2 -2
  78. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchConsumptionTask.js +9 -9
  79. package/dist/integration-engine/tasks/oict-energetika/FetchConsumptionTask.js.map +1 -0
  80. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDataTask.d.ts +2 -2
  81. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDataTask.js +1 -1
  82. package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js.map +1 -0
  83. package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDevicesTask.js +7 -7
  84. package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js.map +1 -0
  85. package/dist/integration-engine/tasks/vpalace/FetchDateFactory.d.ts +16 -0
  86. package/dist/integration-engine/tasks/vpalace/FetchDateFactory.js +76 -0
  87. package/dist/integration-engine/tasks/vpalace/FetchDateFactory.js.map +1 -0
  88. package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.d.ts +16 -0
  89. package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.js +76 -0
  90. package/dist/integration-engine/tasks/vpalace/FetchXDaysDataTask.js.map +1 -0
  91. package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.d.ts +14 -0
  92. package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.js +69 -0
  93. package/dist/integration-engine/tasks/vpalace/FetchXHoursDataTask.js.map +1 -0
  94. package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.d.ts +11 -0
  95. package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.js +53 -0
  96. package/dist/integration-engine/tasks/vpalace/MeasurementDataFetcher.js.map +1 -0
  97. package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.d.ts +11 -0
  98. package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.js +51 -0
  99. package/dist/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.js.map +1 -0
  100. package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.d.ts +11 -0
  101. package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.js +51 -0
  102. package/dist/integration-engine/tasks/vpalace/MeterTypeFetcher.js.map +1 -0
  103. package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.d.ts +11 -0
  104. package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.js +51 -0
  105. package/dist/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.js.map +1 -0
  106. package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.d.ts +11 -0
  107. package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.js +51 -0
  108. package/dist/integration-engine/tasks/vpalace/UnitDataFetcher.js.map +1 -0
  109. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/BuildingsTransformation.d.ts +2 -2
  110. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/BuildingsTransformation.js +1 -1
  111. package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js.map +1 -0
  112. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/ConsumptionTransformation.d.ts +2 -2
  113. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/ConsumptionTransformation.js +1 -1
  114. package/dist/integration-engine/transformations/oict-energetika/ConsumptionTransformation.js.map +1 -0
  115. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/DevicesTransformation.d.ts +2 -2
  116. package/dist/integration-engine/{workers/oict-energetika/transformations → transformations/oict-energetika}/DevicesTransformation.js +1 -1
  117. package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js.map +1 -0
  118. package/dist/integration-engine/transformations/vpalace/VpalacMeasurementTransformation.js +38 -0
  119. package/dist/integration-engine/transformations/vpalace/VpalacMeasurementTransformation.js.map +1 -0
  120. package/dist/integration-engine/transformations/{VpalacMeasuringEquipmentTransformation.js → vpalace/VpalacMeasuringEquipmentTransformation.js} +17 -4
  121. package/dist/integration-engine/transformations/vpalace/VpalacMeasuringEquipmentTransformation.js.map +1 -0
  122. package/dist/integration-engine/transformations/{VpalacMeterTypeTransformation.js → vpalace/VpalacMeterTypeTransformation.js} +17 -4
  123. package/dist/integration-engine/transformations/vpalace/VpalacMeterTypeTransformation.js.map +1 -0
  124. package/dist/integration-engine/transformations/{VpalacTypeMeasuringEquipmentTransformation.js → vpalace/VpalacTypeMeasuringEquipmentTransformation.js} +17 -4
  125. package/dist/integration-engine/transformations/vpalace/VpalacTypeMeasuringEquipmentTransformation.js.map +1 -0
  126. package/dist/integration-engine/transformations/{VpalacUnitsTransformation.js → vpalace/VpalacUnitsTransformation.js} +17 -4
  127. package/dist/integration-engine/transformations/vpalace/VpalacUnitsTransformation.js.map +1 -0
  128. package/dist/integration-engine/transformations/vpalace/index.js.map +1 -0
  129. package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.d.ts +1 -1
  130. package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js +6 -6
  131. package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js.map +1 -1
  132. package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.d.ts +5 -0
  133. package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.js +21 -0
  134. package/dist/integration-engine/workers/vpalace/EnergeticsNewVpalaceWorker.js.map +1 -0
  135. package/package.json +2 -2
  136. package/dist/integration-engine/queueDefinitions.d.ts +0 -6
  137. package/dist/integration-engine/queueDefinitions.js +0 -39
  138. package/dist/integration-engine/queueDefinitions.js.map +0 -1
  139. package/dist/integration-engine/transformations/VpalacMeasurementTransformation.js +0 -25
  140. package/dist/integration-engine/transformations/VpalacMeasurementTransformation.js.map +0 -1
  141. package/dist/integration-engine/transformations/VpalacMeasuringEquipmentTransformation.js.map +0 -1
  142. package/dist/integration-engine/transformations/VpalacMeterTypeTransformation.js.map +0 -1
  143. package/dist/integration-engine/transformations/VpalacTypeMeasuringEquipmentTransformation.js.map +0 -1
  144. package/dist/integration-engine/transformations/VpalacUnitsTransformation.js.map +0 -1
  145. package/dist/integration-engine/transformations/index.js.map +0 -1
  146. package/dist/integration-engine/workers/EnergeticsBaseWorker.d.ts +0 -13
  147. package/dist/integration-engine/workers/EnergeticsBaseWorker.js +0 -39
  148. package/dist/integration-engine/workers/EnergeticsBaseWorker.js.map +0 -1
  149. package/dist/integration-engine/workers/EnergeticsVpalacWorker.d.ts +0 -36
  150. package/dist/integration-engine/workers/EnergeticsVpalacWorker.js +0 -197
  151. package/dist/integration-engine/workers/EnergeticsVpalacWorker.js.map +0 -1
  152. package/dist/integration-engine/workers/index.d.ts +0 -2
  153. package/dist/integration-engine/workers/index.js +0 -19
  154. package/dist/integration-engine/workers/index.js.map +0 -1
  155. package/dist/integration-engine/workers/oict-energetika/data-access/BuildingsRepository.js.map +0 -1
  156. package/dist/integration-engine/workers/oict-energetika/data-access/ConsumptionRepository.js.map +0 -1
  157. package/dist/integration-engine/workers/oict-energetika/data-access/DevicesRepository.js.map +0 -1
  158. package/dist/integration-engine/workers/oict-energetika/datasources/OictDataSourceFactory.js.map +0 -1
  159. package/dist/integration-engine/workers/oict-energetika/datasources/helpers/OictApiHelper.js.map +0 -1
  160. package/dist/integration-engine/workers/oict-energetika/datasources/helpers/index.js.map +0 -1
  161. package/dist/integration-engine/workers/oict-energetika/interfaces/IFetchConsumptionInput.js.map +0 -1
  162. package/dist/integration-engine/workers/oict-energetika/interfaces/IFetchDataInput.js.map +0 -1
  163. package/dist/integration-engine/workers/oict-energetika/schema/FetchConsumptionSchema.js.map +0 -1
  164. package/dist/integration-engine/workers/oict-energetika/schema/FetchDataSchema.js.map +0 -1
  165. package/dist/integration-engine/workers/oict-energetika/tasks/FetchBuildingsTask.js.map +0 -1
  166. package/dist/integration-engine/workers/oict-energetika/tasks/FetchConsumptionTask.js.map +0 -1
  167. package/dist/integration-engine/workers/oict-energetika/tasks/FetchDataTask.js.map +0 -1
  168. package/dist/integration-engine/workers/oict-energetika/tasks/FetchDevicesTask.js.map +0 -1
  169. package/dist/integration-engine/workers/oict-energetika/transformations/BuildingsTransformation.js.map +0 -1
  170. package/dist/integration-engine/workers/oict-energetika/transformations/ConsumptionTransformation.js.map +0 -1
  171. package/dist/integration-engine/workers/oict-energetika/transformations/DevicesTransformation.js.map +0 -1
  172. /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/OictDataSourceFactory.d.ts +0 -0
  173. /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/OictDataSourceFactory.js +0 -0
  174. /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/OictApiHelper.d.ts +0 -0
  175. /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/index.d.ts +0 -0
  176. /package/dist/integration-engine/{workers/oict-energetika/datasources → datasources/oict-energetika}/helpers/index.js +0 -0
  177. /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchConsumptionInput.d.ts +0 -0
  178. /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchConsumptionInput.js +0 -0
  179. /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchDataInput.d.ts +0 -0
  180. /package/dist/integration-engine/{workers/oict-energetika/interfaces → interfaces/oict-energetika}/IFetchDataInput.js +0 -0
  181. /package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/BuildingsRepository.d.ts +0 -0
  182. /package/dist/integration-engine/{workers/oict-energetika/data-access → repositories/oict-energetika}/DevicesRepository.d.ts +0 -0
  183. /package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchConsumptionSchema.js +0 -0
  184. /package/dist/integration-engine/{workers/oict-energetika/schema → schema/oict-energetika}/FetchDataSchema.js +0 -0
  185. /package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchBuildingsTask.d.ts +0 -0
  186. /package/dist/integration-engine/{workers/oict-energetika/tasks → tasks/oict-energetika}/FetchDevicesTask.d.ts +0 -0
  187. /package/dist/integration-engine/transformations/{VpalacMeasurementTransformation.d.ts → vpalace/VpalacMeasurementTransformation.d.ts} +0 -0
  188. /package/dist/integration-engine/transformations/{VpalacMeasuringEquipmentTransformation.d.ts → vpalace/VpalacMeasuringEquipmentTransformation.d.ts} +0 -0
  189. /package/dist/integration-engine/transformations/{VpalacMeterTypeTransformation.d.ts → vpalace/VpalacMeterTypeTransformation.d.ts} +0 -0
  190. /package/dist/integration-engine/transformations/{VpalacTypeMeasuringEquipmentTransformation.d.ts → vpalace/VpalacTypeMeasuringEquipmentTransformation.d.ts} +0 -0
  191. /package/dist/integration-engine/transformations/{VpalacUnitsTransformation.d.ts → vpalace/VpalacUnitsTransformation.d.ts} +0 -0
  192. /package/dist/integration-engine/transformations/{index.d.ts → vpalace/index.d.ts} +0 -0
  193. /package/dist/integration-engine/transformations/{index.js → vpalace/index.js} +0 -0
@@ -0,0 +1,11 @@
1
+ import { VpalaceMeasurementDataSource } from "../../datasources/vpalace/VpalaceMeasurementDataSource";
2
+ import { VpalaceMeasurementRepository } from "../../repositories/vpalace/VpalaceMeasurementRepository";
3
+ import { VpalacMeasurementTransformation } from "../../transformations/vpalace/VpalacMeasurementTransformation";
4
+ import { Transaction } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class MeasurementDataFetcher {
6
+ private readonly transformationVpalaceMeasurement;
7
+ private readonly modelVpalaceMeasurement;
8
+ private readonly datasourceVpalaceMeasurement;
9
+ constructor(transformationVpalaceMeasurement: VpalacMeasurementTransformation, modelVpalaceMeasurement: VpalaceMeasurementRepository, datasourceVpalaceMeasurement: VpalaceMeasurementDataSource);
10
+ execute: (from: string, to: string, authCookie: string, t: Transaction) => Promise<void>;
11
+ }
@@ -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.MeasurementDataFetcher = void 0;
25
+ const VpalaceMeasurementDataSource_1 = require("../../datasources/vpalace/VpalaceMeasurementDataSource");
26
+ const ModuleContainer_1 = require("../../ioc/ModuleContainer");
27
+ const VpalaceMeasurementRepository_1 = require("../../repositories/vpalace/VpalaceMeasurementRepository");
28
+ const VpalacMeasurementTransformation_1 = require("../../transformations/vpalace/VpalacMeasurementTransformation");
29
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
30
+ let MeasurementDataFetcher = exports.MeasurementDataFetcher = class MeasurementDataFetcher {
31
+ constructor(transformationVpalaceMeasurement, modelVpalaceMeasurement, datasourceVpalaceMeasurement) {
32
+ this.transformationVpalaceMeasurement = transformationVpalaceMeasurement;
33
+ this.modelVpalaceMeasurement = modelVpalaceMeasurement;
34
+ this.datasourceVpalaceMeasurement = datasourceVpalaceMeasurement;
35
+ this.execute = (from, to, authCookie, t) => __awaiter(this, void 0, void 0, function* () {
36
+ const dataMeasurement = yield (yield this.datasourceVpalaceMeasurement.getDataSource(from, to, authCookie)).getAll();
37
+ const transformedDataMeasurement = yield this.transformationVpalaceMeasurement.transform(dataMeasurement);
38
+ for (const items of transformedDataMeasurement) {
39
+ yield this.modelVpalaceMeasurement.saveBulk(items, t);
40
+ }
41
+ });
42
+ }
43
+ };
44
+ exports.MeasurementDataFetcher = MeasurementDataFetcher = __decorate([
45
+ (0, tsyringe_1.injectable)(),
46
+ __param(0, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalacMeasurementTransformation)),
47
+ __param(1, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeasurementRepository)),
48
+ __param(2, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeasurementDataSource)),
49
+ __metadata("design:paramtypes", [VpalacMeasurementTransformation_1.VpalacMeasurementTransformation,
50
+ VpalaceMeasurementRepository_1.VpalaceMeasurementRepository,
51
+ VpalaceMeasurementDataSource_1.VpalaceMeasurementDataSource])
52
+ ], MeasurementDataFetcher);
53
+ //# sourceMappingURL=MeasurementDataFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeasurementDataFetcher.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/vpalace/MeasurementDataFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yGAAoG;AACpG,+DAA+D;AAC/D,0GAAqG;AACrG,mHAA8G;AAE9G,iEAAwE;AAGjE,IAAM,sBAAsB,oCAA5B,MAAM,sBAAsB;IAC/B,YAGI,gCAAkF,EAElF,uBAAsE,EAEtE,4BAA2E;QAJ1D,qCAAgC,GAAhC,gCAAgC,CAAiC;QAEjE,4BAAuB,GAAvB,uBAAuB,CAA8B;QAErD,iCAA4B,GAA5B,4BAA4B,CAA8B;QAGxE,YAAO,GAAG,CAAO,IAAY,EAAE,EAAU,EAAE,UAAkB,EAAE,CAAc,EAAE,EAAE;YACpF,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,4BAA4B,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAErH,MAAM,0BAA0B,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YAC1G,KAAK,MAAM,KAAK,IAAI,0BAA0B,EAAE;gBAC5C,MAAM,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;aACzD;QACL,CAAC,CAAA,CAAC;IATC,CAAC;CAUP,CAAA;iCAnBY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;IAIJ,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,+BAA+B,CAAC,CAAA;IAE5D,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,4BAA4B,CAAC,CAAA;IAEzD,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,4BAA4B,CAAC,CAAA;qCAHP,iEAA+B;QAExC,2DAA4B;QAEvB,2DAA4B;GARtE,sBAAsB,CAmBlC"}
@@ -0,0 +1,11 @@
1
+ import { VpalaceMeasuringEquipmentDataSource } from "../../datasources/vpalace/VpalaceMeasuringEquipmentDataSource";
2
+ import { VpalaceMeasuringEquipmentRepository } from "../../repositories/vpalace/VpalaceMeasuringEquipmentRepository";
3
+ import { VpalacMeasuringEquipmentTransformation } from "../../transformations/vpalace/VpalacMeasuringEquipmentTransformation";
4
+ import { Transaction } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class MeasuringEquipmentFetcher {
6
+ private readonly datasourceVpalaceMeasuringEquipment;
7
+ private readonly modelVpalaceMeasuringEquipment;
8
+ private readonly transformationVpalaceMeasuringEquipment;
9
+ constructor(datasourceVpalaceMeasuringEquipment: VpalaceMeasuringEquipmentDataSource, modelVpalaceMeasuringEquipment: VpalaceMeasuringEquipmentRepository, transformationVpalaceMeasuringEquipment: VpalacMeasuringEquipmentTransformation);
10
+ execute: (from: string, to: string, authCookie: string, t: Transaction) => Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
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.MeasuringEquipmentFetcher = void 0;
25
+ const VpalaceMeasuringEquipmentDataSource_1 = require("../../datasources/vpalace/VpalaceMeasuringEquipmentDataSource");
26
+ const ModuleContainer_1 = require("../../ioc/ModuleContainer");
27
+ const VpalaceMeasuringEquipmentRepository_1 = require("../../repositories/vpalace/VpalaceMeasuringEquipmentRepository");
28
+ const VpalacMeasuringEquipmentTransformation_1 = require("../../transformations/vpalace/VpalacMeasuringEquipmentTransformation");
29
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
30
+ let MeasuringEquipmentFetcher = exports.MeasuringEquipmentFetcher = class MeasuringEquipmentFetcher {
31
+ constructor(datasourceVpalaceMeasuringEquipment, modelVpalaceMeasuringEquipment, transformationVpalaceMeasuringEquipment) {
32
+ this.datasourceVpalaceMeasuringEquipment = datasourceVpalaceMeasuringEquipment;
33
+ this.modelVpalaceMeasuringEquipment = modelVpalaceMeasuringEquipment;
34
+ this.transformationVpalaceMeasuringEquipment = transformationVpalaceMeasuringEquipment;
35
+ this.execute = (from, to, authCookie, t) => __awaiter(this, void 0, void 0, function* () {
36
+ const dataMeasuringEquipment = yield (yield this.datasourceVpalaceMeasuringEquipment.getDataSource(from, to, authCookie)).getAll();
37
+ const transformedDataMeasuringEquipment = yield this.transformationVpalaceMeasuringEquipment.transform(dataMeasuringEquipment);
38
+ yield this.modelVpalaceMeasuringEquipment.saveBulk(transformedDataMeasuringEquipment, t);
39
+ });
40
+ }
41
+ };
42
+ exports.MeasuringEquipmentFetcher = MeasuringEquipmentFetcher = __decorate([
43
+ (0, tsyringe_1.injectable)(),
44
+ __param(0, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeasuringEquipmentDataSource)),
45
+ __param(1, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeasuringEquipmentRepository)),
46
+ __param(2, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalacMeasuringEquipmentTransformation)),
47
+ __metadata("design:paramtypes", [VpalaceMeasuringEquipmentDataSource_1.VpalaceMeasuringEquipmentDataSource,
48
+ VpalaceMeasuringEquipmentRepository_1.VpalaceMeasuringEquipmentRepository,
49
+ VpalacMeasuringEquipmentTransformation_1.VpalacMeasuringEquipmentTransformation])
50
+ ], MeasuringEquipmentFetcher);
51
+ //# sourceMappingURL=MeasuringEquipmentFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeasuringEquipmentFetcher.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/vpalace/MeasuringEquipmentFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uHAAkH;AAClH,+DAA+D;AAC/D,wHAAmH;AACnH,iIAA4H;AAE5H,iEAAwE;AAGjE,IAAM,yBAAyB,uCAA/B,MAAM,yBAAyB;IAClC,YAGI,mCAAyF,EAEzF,8BAAoF,EAEpF,uCAAgG;QAJ/E,wCAAmC,GAAnC,mCAAmC,CAAqC;QAExE,mCAA8B,GAA9B,8BAA8B,CAAqC;QAEnE,4CAAuC,GAAvC,uCAAuC,CAAwC;QAG7F,YAAO,GAAG,CAAO,IAAY,EAAE,EAAU,EAAE,UAAkB,EAAE,CAAc,EAAE,EAAE;YACpF,MAAM,sBAAsB,GAAG,MAAM,CACjC,MAAM,IAAI,CAAC,mCAAmC,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,UAAU,CAAC,CACrF,CAAC,MAAM,EAAE,CAAC;YACX,MAAM,iCAAiC,GAAG,MAAM,IAAI,CAAC,uCAAuC,CAAC,SAAS,CAClG,sBAAsB,CACzB,CAAC;YACF,MAAM,IAAI,CAAC,8BAA8B,CAAC,QAAQ,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAC;QAC7F,CAAC,CAAA,CAAC;IAVC,CAAC;CAWP,CAAA;oCApBY,yBAAyB;IADrC,IAAA,qBAAU,GAAE;IAIJ,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,mCAAmC,CAAC,CAAA;IAEhE,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,mCAAmC,CAAC,CAAA;IAEhE,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,sCAAsC,CAAC,CAAA;qCAHd,yEAAmC;QAExC,yEAAmC;QAE1B,+EAAsC;GAR3F,yBAAyB,CAoBrC"}
@@ -0,0 +1,11 @@
1
+ import { VpalaceMeterTypeDataSource } from "../../datasources/vpalace/VpalaceMeterTypeDataSource";
2
+ import { VpalaceMeterTypeRepository } from "../../repositories/vpalace/VpalaceMeterTypeRepository";
3
+ import { VpalacMeterTypeTransformation } from "../../transformations/vpalace/VpalacMeterTypeTransformation";
4
+ import { Transaction } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class MeterTypeFetcher {
6
+ private readonly datasourceVpalaceMeterType;
7
+ private readonly modelVpalaceMeterType;
8
+ private readonly transformationVpalaceMeterType;
9
+ constructor(datasourceVpalaceMeterType: VpalaceMeterTypeDataSource, modelVpalaceMeterType: VpalaceMeterTypeRepository, transformationVpalaceMeterType: VpalacMeterTypeTransformation);
10
+ execute: (from: string, to: string, authCookie: string, t: Transaction) => Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
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.MeterTypeFetcher = void 0;
25
+ const VpalaceMeterTypeDataSource_1 = require("../../datasources/vpalace/VpalaceMeterTypeDataSource");
26
+ const ModuleContainer_1 = require("../../ioc/ModuleContainer");
27
+ const VpalaceMeterTypeRepository_1 = require("../../repositories/vpalace/VpalaceMeterTypeRepository");
28
+ const VpalacMeterTypeTransformation_1 = require("../../transformations/vpalace/VpalacMeterTypeTransformation");
29
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
30
+ let MeterTypeFetcher = exports.MeterTypeFetcher = class MeterTypeFetcher {
31
+ constructor(datasourceVpalaceMeterType, modelVpalaceMeterType, transformationVpalaceMeterType) {
32
+ this.datasourceVpalaceMeterType = datasourceVpalaceMeterType;
33
+ this.modelVpalaceMeterType = modelVpalaceMeterType;
34
+ this.transformationVpalaceMeterType = transformationVpalaceMeterType;
35
+ this.execute = (from, to, authCookie, t) => __awaiter(this, void 0, void 0, function* () {
36
+ const dataMeterType = yield (yield this.datasourceVpalaceMeterType.getDataSource(from, to, authCookie)).getAll();
37
+ const transformedDataMeterType = yield this.transformationVpalaceMeterType.transform(dataMeterType);
38
+ yield this.modelVpalaceMeterType.saveBulk(transformedDataMeterType, t);
39
+ });
40
+ }
41
+ };
42
+ exports.MeterTypeFetcher = MeterTypeFetcher = __decorate([
43
+ (0, tsyringe_1.injectable)(),
44
+ __param(0, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeterTypeDataSource)),
45
+ __param(1, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceMeterTypeRepository)),
46
+ __param(2, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalacMeterTypeTransformation)),
47
+ __metadata("design:paramtypes", [VpalaceMeterTypeDataSource_1.VpalaceMeterTypeDataSource,
48
+ VpalaceMeterTypeRepository_1.VpalaceMeterTypeRepository,
49
+ VpalacMeterTypeTransformation_1.VpalacMeterTypeTransformation])
50
+ ], MeterTypeFetcher);
51
+ //# sourceMappingURL=MeterTypeFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeterTypeFetcher.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/vpalace/MeterTypeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAgG;AAChG,+DAA+D;AAC/D,sGAAiG;AACjG,+GAA0G;AAE1G,iEAAwE;AAGjE,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IACzB,YAGI,0BAAuE,EAEvE,qBAAkE,EAElE,8BAA8E;QAJ7D,+BAA0B,GAA1B,0BAA0B,CAA4B;QAEtD,0BAAqB,GAArB,qBAAqB,CAA4B;QAEjD,mCAA8B,GAA9B,8BAA8B,CAA+B;QAG3E,YAAO,GAAG,CAAO,IAAY,EAAE,EAAU,EAAE,UAAkB,EAAE,CAAc,EAAE,EAAE;YACpF,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YACjH,MAAM,wBAAwB,GAAG,MAAM,IAAI,CAAC,8BAA8B,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YACpG,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;QAC3E,CAAC,CAAA,CAAC;IANC,CAAC;CAOP,CAAA;2BAhBY,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IAIJ,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,0BAA0B,CAAC,CAAA;IAEvD,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,0BAA0B,CAAC,CAAA;IAEvD,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,6BAA6B,CAAC,CAAA;qCAHd,uDAA0B;QAE/B,uDAA0B;QAEjB,6DAA6B;GARzE,gBAAgB,CAgB5B"}
@@ -0,0 +1,11 @@
1
+ import { VpalaceTypeMeasuringEquipmentDataSource } from "../../datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource";
2
+ import { VpalaceTypeMeasuringEquipmentRepository } from "../../repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository";
3
+ import { VpalacTypeMeasuringEquipmentTransformation } from "../../transformations/vpalace/VpalacTypeMeasuringEquipmentTransformation";
4
+ import { Transaction } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class TypeMeasuringEquipmentFetcher {
6
+ private readonly datasourceVpalaceTypeMeasuringEquipment;
7
+ private readonly modelVpalaceTypeMeasuringEquipment;
8
+ private readonly transformationVpalaceTypeMeasuringEquipment;
9
+ constructor(datasourceVpalaceTypeMeasuringEquipment: VpalaceTypeMeasuringEquipmentDataSource, modelVpalaceTypeMeasuringEquipment: VpalaceTypeMeasuringEquipmentRepository, transformationVpalaceTypeMeasuringEquipment: VpalacTypeMeasuringEquipmentTransformation);
10
+ execute: (from: string, to: string, authCookie: string, t: Transaction) => Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
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.TypeMeasuringEquipmentFetcher = void 0;
25
+ const VpalaceTypeMeasuringEquipmentDataSource_1 = require("../../datasources/vpalace/VpalaceTypeMeasuringEquipmentDataSource");
26
+ const ModuleContainer_1 = require("../../ioc/ModuleContainer");
27
+ const VpalaceTypeMeasuringEquipmentRepository_1 = require("../../repositories/vpalace/VpalaceTypeMeasuringEquipmentRepository");
28
+ const VpalacTypeMeasuringEquipmentTransformation_1 = require("../../transformations/vpalace/VpalacTypeMeasuringEquipmentTransformation");
29
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
30
+ let TypeMeasuringEquipmentFetcher = exports.TypeMeasuringEquipmentFetcher = class TypeMeasuringEquipmentFetcher {
31
+ constructor(datasourceVpalaceTypeMeasuringEquipment, modelVpalaceTypeMeasuringEquipment, transformationVpalaceTypeMeasuringEquipment) {
32
+ this.datasourceVpalaceTypeMeasuringEquipment = datasourceVpalaceTypeMeasuringEquipment;
33
+ this.modelVpalaceTypeMeasuringEquipment = modelVpalaceTypeMeasuringEquipment;
34
+ this.transformationVpalaceTypeMeasuringEquipment = transformationVpalaceTypeMeasuringEquipment;
35
+ this.execute = (from, to, authCookie, t) => __awaiter(this, void 0, void 0, function* () {
36
+ const dataTypeMeasuringEquipment = yield (yield this.datasourceVpalaceTypeMeasuringEquipment.getDataSource(from, to, authCookie)).getAll();
37
+ const transformedDataTypeMeasuringEquipment = yield this.transformationVpalaceTypeMeasuringEquipment.transform(dataTypeMeasuringEquipment);
38
+ yield this.modelVpalaceTypeMeasuringEquipment.saveBulk(transformedDataTypeMeasuringEquipment, t);
39
+ });
40
+ }
41
+ };
42
+ exports.TypeMeasuringEquipmentFetcher = TypeMeasuringEquipmentFetcher = __decorate([
43
+ (0, tsyringe_1.injectable)(),
44
+ __param(0, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceTypeMeasuringEquipmentDataSource)),
45
+ __param(1, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceTypeMeasuringEquipmentRepository)),
46
+ __param(2, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalacTypeMeasuringEquipmentTransformation)),
47
+ __metadata("design:paramtypes", [VpalaceTypeMeasuringEquipmentDataSource_1.VpalaceTypeMeasuringEquipmentDataSource,
48
+ VpalaceTypeMeasuringEquipmentRepository_1.VpalaceTypeMeasuringEquipmentRepository,
49
+ VpalacTypeMeasuringEquipmentTransformation_1.VpalacTypeMeasuringEquipmentTransformation])
50
+ ], TypeMeasuringEquipmentFetcher);
51
+ //# sourceMappingURL=TypeMeasuringEquipmentFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeMeasuringEquipmentFetcher.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/vpalace/TypeMeasuringEquipmentFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+HAA0H;AAC1H,+DAA+D;AAC/D,gIAA2H;AAC3H,yIAAoI;AAEpI,iEAAwE;AAGjE,IAAM,6BAA6B,2CAAnC,MAAM,6BAA6B;IACtC,YAGI,uCAAiG,EAEjG,kCAA4F,EAE5F,2CAAwG;QAJvF,4CAAuC,GAAvC,uCAAuC,CAAyC;QAEhF,uCAAkC,GAAlC,kCAAkC,CAAyC;QAE3E,gDAA2C,GAA3C,2CAA2C,CAA4C;QAGrG,YAAO,GAAG,CAAO,IAAY,EAAE,EAAU,EAAE,UAAkB,EAAE,CAAc,EAAE,EAAE;YACpF,MAAM,0BAA0B,GAAG,MAAM,CACrC,MAAM,IAAI,CAAC,uCAAuC,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,UAAU,CAAC,CACzF,CAAC,MAAM,EAAE,CAAC;YACX,MAAM,qCAAqC,GAAG,MAAM,IAAI,CAAC,2CAA2C,CAAC,SAAS,CAC1G,0BAA0B,CAC7B,CAAC;YACF,MAAM,IAAI,CAAC,kCAAkC,CAAC,QAAQ,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;QACrG,CAAC,CAAA,CAAC;IAVC,CAAC;CAWP,CAAA;wCApBY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;IAIJ,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,uCAAuC,CAAC,CAAA;IAEpE,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,uCAAuC,CAAC,CAAA;IAEpE,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,0CAA0C,CAAC,CAAA;qCAHd,iFAAuC;QAE5C,iFAAuC;QAE9B,uFAA0C;GARnG,6BAA6B,CAoBzC"}
@@ -0,0 +1,11 @@
1
+ import { VpalaceUnitsDataSource } from "../../datasources/vpalace/VpalaceUnitsDataSource";
2
+ import { VpalaceUnitsRepository } from "../../repositories/vpalace/VpalacUnitsRepository";
3
+ import { VpalacUnitsTransformation } from "../../transformations/vpalace/VpalacUnitsTransformation";
4
+ import { Transaction } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class UnitDataFetcher {
6
+ private readonly datasourceVpalaceUnits;
7
+ private readonly modelVpalaceUnits;
8
+ private readonly transformationVpalaceUnits;
9
+ constructor(datasourceVpalaceUnits: VpalaceUnitsDataSource, modelVpalaceUnits: VpalaceUnitsRepository, transformationVpalaceUnits: VpalacUnitsTransformation);
10
+ execute: (from: string, to: string, authCookie: string, t: Transaction) => Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
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.UnitDataFetcher = void 0;
25
+ const VpalaceUnitsDataSource_1 = require("../../datasources/vpalace/VpalaceUnitsDataSource");
26
+ const ModuleContainer_1 = require("../../ioc/ModuleContainer");
27
+ const VpalacUnitsRepository_1 = require("../../repositories/vpalace/VpalacUnitsRepository");
28
+ const VpalacUnitsTransformation_1 = require("../../transformations/vpalace/VpalacUnitsTransformation");
29
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
30
+ let UnitDataFetcher = exports.UnitDataFetcher = class UnitDataFetcher {
31
+ constructor(datasourceVpalaceUnits, modelVpalaceUnits, transformationVpalaceUnits) {
32
+ this.datasourceVpalaceUnits = datasourceVpalaceUnits;
33
+ this.modelVpalaceUnits = modelVpalaceUnits;
34
+ this.transformationVpalaceUnits = transformationVpalaceUnits;
35
+ this.execute = (from, to, authCookie, t) => __awaiter(this, void 0, void 0, function* () {
36
+ const dataUnits = yield (yield this.datasourceVpalaceUnits.getDataSource(from, to, authCookie)).getAll();
37
+ const transformedDataUnits = yield this.transformationVpalaceUnits.transform(dataUnits);
38
+ yield this.modelVpalaceUnits.saveBulk(transformedDataUnits, t);
39
+ });
40
+ }
41
+ };
42
+ exports.UnitDataFetcher = UnitDataFetcher = __decorate([
43
+ (0, tsyringe_1.injectable)(),
44
+ __param(0, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceUnitsDataSource)),
45
+ __param(1, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalaceUnitsRepository)),
46
+ __param(2, (0, tsyringe_1.inject)(ModuleContainer_1.ModuleContainerToken.VpalacUnitsTransformation)),
47
+ __metadata("design:paramtypes", [VpalaceUnitsDataSource_1.VpalaceUnitsDataSource,
48
+ VpalacUnitsRepository_1.VpalaceUnitsRepository,
49
+ VpalacUnitsTransformation_1.VpalacUnitsTransformation])
50
+ ], UnitDataFetcher);
51
+ //# sourceMappingURL=UnitDataFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnitDataFetcher.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/vpalace/UnitDataFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6FAAwF;AACxF,+DAA+D;AAC/D,4FAAwF;AACxF,uGAAkG;AAElG,iEAAwE;AAGjE,IAAM,eAAe,6BAArB,MAAM,eAAe;IACxB,YAGI,sBAA+D,EAE/D,iBAA0D,EAE1D,0BAAsE;QAJrD,2BAAsB,GAAtB,sBAAsB,CAAwB;QAE9C,sBAAiB,GAAjB,iBAAiB,CAAwB;QAEzC,+BAA0B,GAA1B,0BAA0B,CAA2B;QAGnE,YAAO,GAAG,CAAO,IAAY,EAAE,EAAU,EAAE,UAAkB,EAAE,CAAc,EAAE,EAAE;YACpF,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YACzG,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACxF,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;QACnE,CAAC,CAAA,CAAC;IANC,CAAC;CAOP,CAAA;0BAhBY,eAAe;IAD3B,IAAA,qBAAU,GAAE;IAIJ,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,sBAAsB,CAAC,CAAA;IAEnD,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,sBAAsB,CAAC,CAAA;IAEnD,WAAA,IAAA,iBAAM,EAAC,sCAAoB,CAAC,yBAAyB,CAAC,CAAA;qCAHd,+CAAsB;QAE3B,8CAAsB;QAEb,qDAAyB;GARjE,eAAe,CAgB3B"}
@@ -1,5 +1,5 @@
1
- import { IOictBuildingsInput } from "../../../../schema-definitions/datasources/interfaces";
2
- import { IBuildingsModel } from "../../../../schema-definitions/models/interfaces";
1
+ import { IOictBuildingsInput } from "../../../schema-definitions/datasources/interfaces";
2
+ import { IBuildingsModel } from "../../../schema-definitions/models/interfaces";
3
3
  import { BaseTransformation, ITransformation } from "@golemio/core/dist/integration-engine/transformations";
4
4
  export declare class BuildingsTransformation extends BaseTransformation implements ITransformation {
5
5
  name: string;
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BuildingsTransformation = void 0;
13
- const ParserHelpers_1 = require("../../../helpers/ParserHelpers");
13
+ const ParserHelpers_1 = require("../../helpers/ParserHelpers");
14
14
  const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
15
15
  class BuildingsTransformation extends transformations_1.BaseTransformation {
16
16
  constructor() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildingsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/oict-energetika/BuildingsTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAG5D,2FAA4G;AAE5G,MAAa,uBAAwB,SAAQ,oCAAkB;IAA/D;;QACW,SAAI,GAAG,yBAAyB,CAAC;QAE9B,qBAAgB,GAAG,CAAO,OAA4B,EAA4B,EAAE;YAC1F,OAAO;gBACH,KAAK;gBACL,EAAE,EAAE,OAAO,CAAC,EAAE;gBAEd,YAAY,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;gBACnD,eAAe,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;gBACzD,oBAAoB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;gBAClE,YAAY,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;gBACnD,aAAa,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;gBACrD,cAAc,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;gBACvD,mBAAmB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;gBAChE,gBAAgB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,eAAe,CAAC;gBAC1D,UAAU,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,SAAS,CAAC;gBAC9C,qBAAqB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,mBAAmB,CAAC;gBAEnE,kDAAkD;gBAClD,sCAAsC,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC;gBACpG,8CAA8C,EAAE,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BACD,2CAA2C,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC;gBAChH,oCAAoC,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,IAAI,CAAC;gBAElG,sBAAsB;gBACtB,2CAA2C,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,iBAAiB,CAAC,qBAAqB,CAAC;gBAC7G,0CAA0C,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,iBAAiB,CAAC,oBAAoB,CAAC;gBAC3G,iCAAiC,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC;gBAC1F,sCAAsC,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;gBAEnG,4BAA4B,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,0BAA0B,CAAC;gBACjF,qBAAqB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,mBAAmB,CAAC;gBACnE,oBAAoB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,kBAAkB,CAAC;aACpE,CAAC;QACN,CAAC,CAAA,CAAC;IACN,CAAC;CAAA;AAjND,0DAiNC"}
@@ -1,5 +1,5 @@
1
- import { IOictConsumptionInput } from "../../../../schema-definitions/datasources/interfaces";
2
- import { IConsumptionModel } from "../../../../schema-definitions/models/interfaces";
1
+ import { IOictConsumptionInput } from "../../../schema-definitions/datasources/interfaces";
2
+ import { IConsumptionModel } from "../../../schema-definitions/models/interfaces";
3
3
  import { BaseTransformation, ITransformation } from "@golemio/core/dist/integration-engine/transformations";
4
4
  export declare class ConsumptionTransformation extends BaseTransformation implements ITransformation {
5
5
  name: string;
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ConsumptionTransformation = void 0;
13
- const ParserHelpers_1 = require("../../../helpers/ParserHelpers");
13
+ const ParserHelpers_1 = require("../../helpers/ParserHelpers");
14
14
  const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
15
15
  class ConsumptionTransformation extends transformations_1.BaseTransformation {
16
16
  constructor() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsumptionTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/oict-energetika/ConsumptionTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAG5D,2FAA4G;AAE5G,MAAa,yBAA0B,SAAQ,oCAAkB;IAAjE;;QACW,SAAI,GAAG,2BAA2B,CAAC;QAEhC,qBAAgB,GAAG,CAAO,OAA8B,EAA8B,EAAE;YAC9F,OAAO;gBACH,KAAK;gBACL,IAAI,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,IAAI,CAAC;gBACnC,KAAK,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,KAAK,CAAC;gBACrC,QAAQ,EAAE,OAAO,CAAC,IAAI;gBACtB,QAAQ,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,GAAG,CAAC;gBAEtC,IAAI,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,IAAI,CAAC;gBACnC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAC/B,CAAC;QACN,CAAC,CAAA,CAAC;IACN,CAAC;CAAA;AAfD,8DAeC"}
@@ -1,5 +1,5 @@
1
- import { IOictDevicesInput } from "../../../../schema-definitions/datasources/interfaces";
2
- import { IDevicesModel } from "../../../../schema-definitions/models/interfaces";
1
+ import { IOictDevicesInput } from "../../../schema-definitions/datasources/interfaces";
2
+ import { IDevicesModel } from "../../../schema-definitions/models/interfaces";
3
3
  import { BaseTransformation, ITransformation } from "@golemio/core/dist/integration-engine/transformations";
4
4
  export declare class DevicesTransformation extends BaseTransformation implements ITransformation {
5
5
  name: string;
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DevicesTransformation = void 0;
13
- const ParserHelpers_1 = require("../../../helpers/ParserHelpers");
13
+ const ParserHelpers_1 = require("../../helpers/ParserHelpers");
14
14
  const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
15
15
  class DevicesTransformation extends transformations_1.BaseTransformation {
16
16
  constructor() {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevicesTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/oict-energetika/DevicesTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAG5D,2FAA4G;AAE5G,MAAa,qBAAsB,SAAQ,oCAAkB;IAA7D;;QACW,SAAI,GAAG,uBAAuB,CAAC;QAE5B,qBAAgB,GAAG,CAAO,OAA0B,EAA0B,EAAE;YACtF,OAAO;gBACH,KAAK;gBACL,EAAE,EAAE,OAAO,CAAC,EAAE;gBAEd,IAAI,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,IAAI,CAAC;gBACnC,WAAW,EAAE,OAAO,CAAC,UAAU;gBAC/B,QAAQ,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,QAAQ,CAAC;gBAC3C,OAAO,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE;gBACvD,WAAW,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,WAAW,CAAC;gBACjD,qBAAqB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE;gBACjF,oBAAoB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,mBAAmB,CAAC;gBAClE,eAAe,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,cAAc,CAAC;gBACxD,WAAW,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,UAAU,CAAC;gBAChD,YAAY,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,WAAW,CAAC;gBAClD,UAAU,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,SAAS,CAAC;gBAC9C,iBAAiB,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,eAAe,CAAC;gBAC3D,IAAI,EAAE,IAAA,+BAAe,EAAC,OAAO,CAAC,IAAI,CAAC;aACtC,CAAC;QACN,CAAC,CAAA,CAAC;IACN,CAAC;CAAA;AAvBD,sDAuBC"}
@@ -0,0 +1,38 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VpalacMeasurementTransformation = void 0;
13
+ const ParserHelpers_1 = require("../../helpers/ParserHelpers");
14
+ const _sch_1 = require("../../../schema-definitions");
15
+ const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
16
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
17
+ let VpalacMeasurementTransformation = exports.VpalacMeasurementTransformation = class VpalacMeasurementTransformation extends transformations_1.BaseTransformation {
18
+ constructor() {
19
+ super();
20
+ this.transformElement = (data) => {
21
+ const { var_id, values } = data;
22
+ if (!values.length)
23
+ return;
24
+ const result = (0, ParserHelpers_1.getUniqueBy)(values, "timestamp").map((el) => ({
25
+ time_measurement: new Date(el.timestamp).toISOString(),
26
+ value: el.value,
27
+ var_id,
28
+ }));
29
+ return result;
30
+ };
31
+ this.name = _sch_1.EnergeticsSchema.vpalac.measurement.name;
32
+ }
33
+ };
34
+ exports.VpalacMeasurementTransformation = VpalacMeasurementTransformation = __decorate([
35
+ (0, tsyringe_1.injectable)(),
36
+ __metadata("design:paramtypes", [])
37
+ ], VpalacMeasurementTransformation);
38
+ //# sourceMappingURL=VpalacMeasurementTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VpalacMeasurementTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/vpalace/VpalacMeasurementTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAwD;AACxD,sDAAwC;AACxC,2FAA4G;AAC5G,iEAAgE;AAQzD,IAAM,+BAA+B,6CAArC,MAAM,+BAAgC,SAAQ,oCAAkB;IAGnE;QACI,KAAK,EAAE,CAAC;QAIF,qBAAgB,GAAG,CAAC,IAAS,EAAoC,EAAE;YACzE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YAEhC,IAAI,CAAC,MAAM,CAAC,MAAM;gBAAE,OAAO;YAE3B,MAAM,MAAM,GAAG,IAAA,2BAAW,EAAM,MAAM,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,CAAC;gBACnE,gBAAgB,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;gBACtD,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,MAAM;aACT,CAAC,CAAC,CAAC;YAEJ,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC;QAfE,IAAI,CAAC,IAAI,GAAG,uBAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;IACzD,CAAC;CAeJ,CAAA;0CArBY,+BAA+B;IAD3C,IAAA,qBAAU,GAAE;;GACA,+BAA+B,CAqB3C"}
@@ -1,4 +1,13 @@
1
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
+ };
2
11
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
12
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
13
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,9 +19,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
19
  };
11
20
  Object.defineProperty(exports, "__esModule", { value: true });
12
21
  exports.VpalacMeasuringEquipmentTransformation = void 0;
13
- const _sch_1 = require("../../schema-definitions");
22
+ const _sch_1 = require("../../../schema-definitions");
14
23
  const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
15
- class VpalacMeasuringEquipmentTransformation extends transformations_1.BaseTransformation {
24
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
25
+ let VpalacMeasuringEquipmentTransformation = exports.VpalacMeasuringEquipmentTransformation = class VpalacMeasuringEquipmentTransformation extends transformations_1.BaseTransformation {
16
26
  constructor() {
17
27
  super();
18
28
  this.transformElement = (element) => __awaiter(this, void 0, void 0, function* () {
@@ -37,6 +47,9 @@ class VpalacMeasuringEquipmentTransformation extends transformations_1.BaseTrans
37
47
  });
38
48
  this.name = _sch_1.EnergeticsSchema.vpalac.measuringEquipment.name;
39
49
  }
40
- }
41
- exports.VpalacMeasuringEquipmentTransformation = VpalacMeasuringEquipmentTransformation;
50
+ };
51
+ exports.VpalacMeasuringEquipmentTransformation = VpalacMeasuringEquipmentTransformation = __decorate([
52
+ (0, tsyringe_1.injectable)(),
53
+ __metadata("design:paramtypes", [])
54
+ ], VpalacMeasuringEquipmentTransformation);
42
55
  //# sourceMappingURL=VpalacMeasuringEquipmentTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VpalacMeasuringEquipmentTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/vpalace/VpalacMeasuringEquipmentTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,2FAA4G;AAC5G,iEAAgE;AAEzD,IAAM,sCAAsC,oDAA5C,MAAM,sCAAuC,SAAQ,oCAAkB;IAG1E;QACI,KAAK,EAAE,CAAC;QAIF,qBAAgB,GAAG,CAAO,OAA4B,EAAgB,EAAE;YAC9E,MAAM,GAAG,GAAG;gBACR,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;aACzB,CAAC;YAEF,OAAO,GAAG,CAAC;QACf,CAAC,CAAA,CAAC;QAvBE,IAAI,CAAC,IAAI,GAAG,uBAAgB,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC;IAChE,CAAC;CAuBJ,CAAA;iDA7BY,sCAAsC;IADlD,IAAA,qBAAU,GAAE;;GACA,sCAAsC,CA6BlD"}
@@ -1,4 +1,13 @@
1
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
+ };
2
11
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
12
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
13
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,9 +19,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
19
  };
11
20
  Object.defineProperty(exports, "__esModule", { value: true });
12
21
  exports.VpalacMeterTypeTransformation = void 0;
13
- const _sch_1 = require("../../schema-definitions");
22
+ const _sch_1 = require("../../../schema-definitions");
14
23
  const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
15
- class VpalacMeterTypeTransformation extends transformations_1.BaseTransformation {
24
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
25
+ let VpalacMeterTypeTransformation = exports.VpalacMeterTypeTransformation = class VpalacMeterTypeTransformation extends transformations_1.BaseTransformation {
16
26
  constructor() {
17
27
  super();
18
28
  this.transformElement = (element) => __awaiter(this, void 0, void 0, function* () {
@@ -30,6 +40,9 @@ class VpalacMeterTypeTransformation extends transformations_1.BaseTransformation
30
40
  });
31
41
  this.name = _sch_1.EnergeticsSchema.vpalac.meterType.name;
32
42
  }
33
- }
34
- exports.VpalacMeterTypeTransformation = VpalacMeterTypeTransformation;
43
+ };
44
+ exports.VpalacMeterTypeTransformation = VpalacMeterTypeTransformation = __decorate([
45
+ (0, tsyringe_1.injectable)(),
46
+ __metadata("design:paramtypes", [])
47
+ ], VpalacMeterTypeTransformation);
35
48
  //# sourceMappingURL=VpalacMeterTypeTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VpalacMeterTypeTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/transformations/vpalace/VpalacMeterTypeTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,2FAA4G;AAC5G,iEAAgE;AAEzD,IAAM,6BAA6B,2CAAnC,MAAM,6BAA8B,SAAQ,oCAAkB;IAGjE;QACI,KAAK,EAAE,CAAC;QAIF,qBAAgB,GAAG,CAAO,OAA4B,EAAgB,EAAE;YAC9E,MAAM,GAAG,GAAG;gBACR,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,OAAO,CAAC,OAAO;aAC3B,CAAC;YAEF,OAAO,GAAG,CAAC;QACf,CAAC,CAAA,CAAC;QAhBE,IAAI,CAAC,IAAI,GAAG,uBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACvD,CAAC;CAgBJ,CAAA;wCAtBY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;;GACA,6BAA6B,CAsBzC"}