@golemio/air-quality-stations 1.4.1-dev.2644092880 → 1.4.1-dev.2647594794
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/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/integration-engine/workers/datasources/Datasource1HData.js +2 -1
- package/dist/integration-engine/workers/datasources/Datasource1HData.js.map +1 -1
- package/dist/integration-engine/workers/datasources/Datasource3HData.js +2 -1
- package/dist/integration-engine/workers/datasources/Datasource3HData.js.map +1 -1
- package/dist/integration-engine/workers/repositories/IndexesRepository.js +2 -1
- package/dist/integration-engine/workers/repositories/IndexesRepository.js.map +1 -1
- package/dist/integration-engine/workers/repositories/MeasurementsRepository.js +2 -1
- package/dist/integration-engine/workers/repositories/MeasurementsRepository.js.map +1 -1
- package/dist/integration-engine/workers/repositories/StationsRepository.js +2 -1
- package/dist/integration-engine/workers/repositories/StationsRepository.js.map +1 -1
- package/dist/integration-engine/workers/services/ChmiDataService.js +2 -1
- package/dist/integration-engine/workers/services/ChmiDataService.js.map +1 -1
- package/dist/integration-engine/workers/tasks/Refresh1HDataInDBTask.js +2 -1
- package/dist/integration-engine/workers/tasks/Refresh1HDataInDBTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/Refresh3HDataInDBTask.js +2 -1
- package/dist/integration-engine/workers/tasks/Refresh3HDataInDBTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateDistrictTask.js +2 -1
- package/dist/integration-engine/workers/tasks/UpdateDistrictTask.js.map +1 -1
- package/dist/integration-engine/workers/transformations/AirQualityStationsTransformation.js +0 -6
- package/dist/integration-engine/workers/transformations/AirQualityStationsTransformation.js.map +1 -1
- package/dist/output-gateway/AirQualityHistoryRouter.js.map +1 -1
- package/dist/output-gateway/AirQualityRouter.d.ts +0 -1
- package/dist/output-gateway/AirQualityRouter.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityComponentTypesRepository.js +2 -1
- package/dist/output-gateway/repositories/AirQualityComponentTypesRepository.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityHistoryRepository.js +3 -2
- package/dist/output-gateway/repositories/AirQualityHistoryRepository.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityIndexTypesRepository.js +2 -1
- package/dist/output-gateway/repositories/AirQualityIndexTypesRepository.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityIndexesRepository.js +2 -2
- package/dist/output-gateway/repositories/AirQualityIndexesRepository.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityMeasurementsRepository.js +2 -1
- package/dist/output-gateway/repositories/AirQualityMeasurementsRepository.js.map +1 -1
- package/dist/output-gateway/repositories/AirQualityStationsRepository.js +2 -1
- package/dist/output-gateway/repositories/AirQualityStationsRepository.js.map +1 -1
- package/dist/output-gateway/repositories/helpers/HistoryRepositoryHelper.js +0 -4
- package/dist/output-gateway/repositories/helpers/HistoryRepositoryHelper.js.map +1 -1
- package/dist/output-gateway/repositories/helpers/OutputDtoMapper.js +0 -5
- package/dist/output-gateway/repositories/helpers/OutputDtoMapper.js.map +1 -1
- package/dist/schema-definitions/models/AirQualityIndexModel.js +17 -7
- package/dist/schema-definitions/models/AirQualityIndexModel.js.map +1 -1
- package/dist/schema-definitions/models/AirQualityMeasurementModel.js +17 -7
- package/dist/schema-definitions/models/AirQualityMeasurementModel.js.map +1 -1
- package/dist/schema-definitions/models/AirQualityStationModel.js +17 -7
- package/dist/schema-definitions/models/AirQualityStationModel.js.map +1 -1
- package/package.json +17 -14
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.IntegrationEngine = void 0;
|
|
27
37
|
// Library exports
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,gFAA+C"}
|
|
@@ -20,7 +20,7 @@ const datasources_1 = require("@golemio/core/dist/integration-engine/datasources
|
|
|
20
20
|
const HTTPFetchProtocolStrategy_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy");
|
|
21
21
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
22
22
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
|
-
let Datasource1HData =
|
|
23
|
+
let Datasource1HData = Datasource1HData_1 = class Datasource1HData {
|
|
24
24
|
constructor(config) {
|
|
25
25
|
this.config = config;
|
|
26
26
|
}
|
|
@@ -35,6 +35,7 @@ let Datasource1HData = exports.Datasource1HData = Datasource1HData_1 = class Dat
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
exports.Datasource1HData = Datasource1HData;
|
|
38
39
|
Datasource1HData.DATASOURCE_NAME = "Datasource1HData";
|
|
39
40
|
exports.Datasource1HData = Datasource1HData = Datasource1HData_1 = __decorate([
|
|
40
41
|
(0, tsyringe_1.injectable)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Datasource1HData.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/datasources/Datasource1HData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+GAAqF;AAGrF,wEAAqE;AAErE,mFAAqG;AACrG,6IAA0I;AAC1I,mFAAkF;AAClF,iEAAwE;AAGjE,IAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Datasource1HData.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/datasources/Datasource1HData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+GAAqF;AAGrF,wEAAqE;AAErE,mFAAqG;AACrG,6IAA0I;AAC1I,mFAAkF;AAClF,iEAAwE;AAGjE,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAGzB,YAAoD,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEtE,aAAa;QAChB,OAAO,IAAI,wBAAU,CACjB,kBAAgB,CAAC,eAAe,EAChC,IAAI,CAAC,mBAAmB,EAAE,EAC1B,IAAI,kCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,uCAAmB,CAAC,kBAAgB,CAAC,eAAe,EAAE,mDAAwB,CAAC,CACtF,CAAC;IACN,CAAC;IAEO,mBAAmB;QACvB,OAAO,IAAI,qDAAyB,CAAC;YACjC,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,6BAA6B,CAAC;SACnE,CAAC,CAAC;IACP,CAAC;;AApBQ,4CAAgB;AACV,gCAAe,GAAG,kBAAkB,AAArB,CAAsB;2BAD3C,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IAII,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;;GAHlC,gBAAgB,CAqB5B"}
|
|
@@ -20,7 +20,7 @@ const datasources_1 = require("@golemio/core/dist/integration-engine/datasources
|
|
|
20
20
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
21
21
|
const HTTPFetchProtocolStrategy_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy");
|
|
22
22
|
const chmiDatasourceJsonSchema_1 = require("../../../schema-definitions/datasources/chmiDatasourceJsonSchema");
|
|
23
|
-
let Datasource3HData =
|
|
23
|
+
let Datasource3HData = Datasource3HData_1 = class Datasource3HData {
|
|
24
24
|
constructor(config) {
|
|
25
25
|
this.config = config;
|
|
26
26
|
}
|
|
@@ -35,6 +35,7 @@ let Datasource3HData = exports.Datasource3HData = Datasource3HData_1 = class Dat
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
exports.Datasource3HData = Datasource3HData;
|
|
38
39
|
Datasource3HData.DATASOURCE_NAME = "Datasource3HData";
|
|
39
40
|
exports.Datasource3HData = Datasource3HData = Datasource3HData_1 = __decorate([
|
|
40
41
|
(0, tsyringe_1.injectable)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Datasource3HData.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/datasources/Datasource3HData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,iEAAwE;AAExE,wEAAqE;AAErE,mFAAqG;AACrG,mFAAkF;AAClF,6IAA0I;AAC1I,+GAAqF;AAG9E,IAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Datasource3HData.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/datasources/Datasource3HData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,iEAAwE;AAExE,wEAAqE;AAErE,mFAAqG;AACrG,mFAAkF;AAClF,6IAA0I;AAC1I,+GAAqF;AAG9E,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAGzB,YAAoD,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEtE,aAAa;QAChB,OAAO,IAAI,wBAAU,CACjB,kBAAgB,CAAC,eAAe,EAChC,IAAI,CAAC,mBAAmB,EAAE,EAC1B,IAAI,kCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,uCAAmB,CAAC,kBAAgB,CAAC,eAAe,EAAE,mDAAwB,CAAC,CACtF,CAAC;IACN,CAAC;IAEO,mBAAmB;QACvB,OAAO,IAAI,qDAAyB,CAAC;YACjC,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,6BAA6B,CAAC;SACnE,CAAC,CAAC;IACP,CAAC;;AApBQ,4CAAgB;AACV,gCAAe,GAAG,kBAAkB,AAArB,CAAsB;2BAD3C,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IAII,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;;GAHlC,gBAAgB,CAqB5B"}
|
|
@@ -15,7 +15,7 @@ const models_1 = require("../../../schema-definitions/models");
|
|
|
15
15
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
16
16
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
17
17
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
-
let IndexesRepository =
|
|
18
|
+
let IndexesRepository = class IndexesRepository extends integration_engine_1.PostgresModel {
|
|
19
19
|
constructor() {
|
|
20
20
|
super("IndexesRepository", {
|
|
21
21
|
outputSequelizeAttributes: models_1.AirQualityIndexModel.attributeModel,
|
|
@@ -29,6 +29,7 @@ let IndexesRepository = exports.IndexesRepository = class IndexesRepository exte
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
exports.IndexesRepository = IndexesRepository;
|
|
32
33
|
exports.IndexesRepository = IndexesRepository = __decorate([
|
|
33
34
|
(0, tsyringe_1.injectable)(),
|
|
34
35
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexesRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/IndexesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAmD;AACnD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"IndexesRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/IndexesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAmD;AACnD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,kCAAa;IAChD;QACI,KAAK,CACD,mBAAmB,EACnB;YACI,yBAAyB,EAAE,6BAAoB,CAAC,cAAc;YAC9D,WAAW,EAAE,6BAAoB,CAAC,SAAS;YAC3C,QAAQ,EAAE,qBAAS;YACnB,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,6BAAoB,CAAC,UAAU,CAAC,CACzF,CAAC;QACF,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,SAAgB,EAAE,EAAE;YACjE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACrC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAjBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;;GACA,iBAAiB,CAiB7B"}
|
|
@@ -15,7 +15,7 @@ const models_1 = require("../../../schema-definitions/models");
|
|
|
15
15
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
16
16
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
17
17
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
-
let MeasurementsRepository =
|
|
18
|
+
let MeasurementsRepository = class MeasurementsRepository extends integration_engine_1.PostgresModel {
|
|
19
19
|
constructor() {
|
|
20
20
|
super("MeasurementsRepository", {
|
|
21
21
|
outputSequelizeAttributes: models_1.AirQualityMeasurementModel.attributeModel,
|
|
@@ -25,6 +25,7 @@ let MeasurementsRepository = exports.MeasurementsRepository = class Measurements
|
|
|
25
25
|
}, new golemio_validator_1.JSONSchemaValidator("MeasurementsRepositoryValidator", models_1.AirQualityMeasurementModel.jsonSchema));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
+
exports.MeasurementsRepository = MeasurementsRepository;
|
|
28
29
|
exports.MeasurementsRepository = MeasurementsRepository = __decorate([
|
|
29
30
|
(0, tsyringe_1.injectable)(),
|
|
30
31
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasurementsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/MeasurementsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAyD;AACzD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"MeasurementsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/MeasurementsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAyD;AACzD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,kCAAa;IACrD;QACI,KAAK,CACD,wBAAwB,EACxB;YACI,yBAAyB,EAAE,mCAA0B,CAAC,cAAc;YACpE,WAAW,EAAE,mCAA0B,CAAC,SAAS;YACjD,QAAQ,EAAE,qBAAS;YACnB,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,iCAAiC,EAAE,mCAA0B,CAAC,UAAU,CAAC,CACpG,CAAC;IACN,CAAC;CACJ,CAAA;AAbY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,qBAAU,GAAE;;GACA,sBAAsB,CAalC"}
|
|
@@ -15,7 +15,7 @@ const models_1 = require("../../../schema-definitions/models");
|
|
|
15
15
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
16
16
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
17
17
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
-
let StationsRepository =
|
|
18
|
+
let StationsRepository = class StationsRepository extends integration_engine_1.PostgresModel {
|
|
19
19
|
constructor() {
|
|
20
20
|
super("StationsRepository", {
|
|
21
21
|
outputSequelizeAttributes: models_1.AirQualityStationModel.attributeModel,
|
|
@@ -25,6 +25,7 @@ let StationsRepository = exports.StationsRepository = class StationsRepository e
|
|
|
25
25
|
}, new golemio_validator_1.JSONSchemaValidator("StationsRepositoryValidator", models_1.AirQualityStationModel.jsonSchema));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
+
exports.StationsRepository = StationsRepository;
|
|
28
29
|
exports.StationsRepository = StationsRepository = __decorate([
|
|
29
30
|
(0, tsyringe_1.injectable)(),
|
|
30
31
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StationsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/StationsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAqD;AACrD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"StationsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/repositories/StationsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAA2C;AAC3C,+DAAqD;AACrD,8EAAsE;AACtE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,kCAAa;IACjD;QACI,KAAK,CACD,oBAAoB,EACpB;YACI,yBAAyB,EAAE,+BAAsB,CAAC,cAAc;YAChE,WAAW,EAAE,+BAAsB,CAAC,SAAS;YAC7C,QAAQ,EAAE,qBAAS;YACnB,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,6BAA6B,EAAE,+BAAsB,CAAC,UAAU,CAAC,CAC5F,CAAC;IACN,CAAC;CACJ,CAAA;AAbY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qBAAU,GAAE;;GACA,kBAAkB,CAa9B"}
|
|
@@ -21,7 +21,7 @@ const models_1 = require("../../../schema-definitions/models");
|
|
|
21
21
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
22
22
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
23
23
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
24
|
-
let ChmiDataService =
|
|
24
|
+
let ChmiDataService = class ChmiDataService {
|
|
25
25
|
constructor(databaseConnector, stationsRepository, measurementsRepository, indexesRepository) {
|
|
26
26
|
this.databaseConnector = databaseConnector;
|
|
27
27
|
this.stationsRepository = stationsRepository;
|
|
@@ -43,6 +43,7 @@ let ChmiDataService = exports.ChmiDataService = class ChmiDataService {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.ChmiDataService = ChmiDataService;
|
|
46
47
|
exports.ChmiDataService = ChmiDataService = __decorate([
|
|
47
48
|
(0, tsyringe_1.injectable)(),
|
|
48
49
|
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChmiDataService.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/services/ChmiDataService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,yEAA+E;AAC/E,mFAAyF;AACzF,2EAAiF;AAEjF,+DAAuG;AAEvG,wEAAqE;AACrE,6EAAwE;AACxE,iEAAwE;AAGjE,IAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ChmiDataService.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/services/ChmiDataService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,yEAA+E;AAC/E,mFAAyF;AACzF,2EAAiF;AAEjF,+DAAuG;AAEvG,wEAAqE;AACrE,6EAAwE;AACxE,iEAAwE;AAGjE,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YACiD,iBAAqC,EACvB,kBAAsC,EAClC,sBAA8C,EACnD,iBAAoC;QAHjD,sBAAiB,GAAjB,iBAAiB,CAAoB;QACvB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAClC,2BAAsB,GAAtB,sBAAsB,CAAwB;QACnD,sBAAiB,GAAjB,iBAAiB,CAAmB;IAC/F,CAAC;IAEG,KAAK,CAAC,iBAAiB,CAAC,eAA6B;QACxD,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;QAC1D,MAAM,CAAC,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;QAEzC,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAClC,eAAe,CAAC,QAAQ,EACxB,+BAAsB,CAAC,mBAAmB,EAC1C,KAAK,EACL,KAAK,EACL,CAAC,CACJ,CAAC;YACF,MAAM,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CACtC,eAAe,CAAC,YAAY,EAC5B,mCAA0B,CAAC,mBAAmB,EAC9C,KAAK,EACL,KAAK,EACL,CAAC,CACJ,CAAC;YACF,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CACjC,eAAe,CAAC,OAAO,EACvB,6BAAoB,CAAC,mBAAmB,EACxC,KAAK,EACL,KAAK,EACL,CAAC,CACJ,CAAC;YACF,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;QACrB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,6BAAY,CAAC,qDAAqD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9G,CAAC;IACL,CAAC;CACJ,CAAA;AAxCY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,kBAAkB,CAAC,CAAA;IACjD,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,sBAAsB,CAAC,CAAA;IACrD,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,iBAAiB,CAAC,CAAA;6CAF8B,uCAAkB;QACV,+CAAsB;QAChC,qCAAiB;GALzF,eAAe,CAwC3B"}
|
|
@@ -20,7 +20,7 @@ const ChmiDataService_1 = require("../services/ChmiDataService");
|
|
|
20
20
|
const AirQualityStationsTransformation_1 = require("../transformations/AirQualityStationsTransformation");
|
|
21
21
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
22
22
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
|
-
let Refresh1HDataInDBTask =
|
|
23
|
+
let Refresh1HDataInDBTask = class Refresh1HDataInDBTask extends integration_engine_1.AbstractEmptyTask {
|
|
24
24
|
constructor(datasource, transformation, chmiDataService) {
|
|
25
25
|
super(constants_1.WORKER_NAME);
|
|
26
26
|
this.datasource = datasource;
|
|
@@ -35,6 +35,7 @@ let Refresh1HDataInDBTask = exports.Refresh1HDataInDBTask = class Refresh1HDataI
|
|
|
35
35
|
await this.chmiDataService.saveProcessedData(transformedData);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
exports.Refresh1HDataInDBTask = Refresh1HDataInDBTask;
|
|
38
39
|
exports.Refresh1HDataInDBTask = Refresh1HDataInDBTask = __decorate([
|
|
39
40
|
(0, tsyringe_1.injectable)(),
|
|
40
41
|
__param(0, (0, tsyringe_1.inject)(ModuleContainerToken_1.IEModuleContainerToken.Datasource1HData)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refresh1HDataInDBTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/Refresh1HDataInDBTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,sEAA4E;AAC5E,iEAAuE;AACvE,0GAAgH;AAChH,8EAA0E;AAC1E,iEAAwE;AAGjE,IAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Refresh1HDataInDBTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/Refresh1HDataInDBTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,sEAA4E;AAC5E,iEAAuE;AACvE,0GAAgH;AAChH,8EAA0E;AAC1E,iEAAwE;AAGjE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,sCAAiB;IAIxD,YACqD,UAAoC,EACpB,cAAwD,EACzE,eAAwC;QAExF,KAAK,CAAC,uBAAW,CAAC,CAAC;QAJsC,eAAU,GAAV,UAAU,CAAkB;QACZ,mBAAc,GAAd,cAAc,CAAkC;QACjE,oBAAe,GAAf,eAAe,CAAiB;QAN5E,cAAS,GAAG,mBAAmB,CAAC;QAChC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;IAQxD,CAAC;IAES,KAAK,CAAC,OAAO;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,CAAC;QAC5D,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACnE,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAClE,CAAC;CACJ,CAAA;AAjBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,gBAAgB,CAAC,CAAA;IAC/C,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,gCAAgC,CAAC,CAAA;IAC/D,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,eAAe,CAAC,CAAA;qCAFsB,mCAAgB;QACI,mEAAgC;QAChD,iCAAe;GAPnF,qBAAqB,CAiBjC"}
|
|
@@ -22,7 +22,7 @@ const AirQualityStationsTransformation_1 = require("../transformations/AirQualit
|
|
|
22
22
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
23
23
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
24
24
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
|
-
let Refresh3HDataInDBTask =
|
|
25
|
+
let Refresh3HDataInDBTask = class Refresh3HDataInDBTask extends integration_engine_1.AbstractEmptyTask {
|
|
26
26
|
constructor(config, datasource, transformation, stationsRepository, chmiDataService) {
|
|
27
27
|
super(constants_1.WORKER_NAME);
|
|
28
28
|
this.config = config;
|
|
@@ -50,6 +50,7 @@ let Refresh3HDataInDBTask = exports.Refresh3HDataInDBTask = class Refresh3HDataI
|
|
|
50
50
|
await this.prepareQueueForDistrictUpdate();
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
exports.Refresh3HDataInDBTask = Refresh3HDataInDBTask;
|
|
53
54
|
exports.Refresh3HDataInDBTask = Refresh3HDataInDBTask = __decorate([
|
|
54
55
|
(0, tsyringe_1.injectable)(),
|
|
55
56
|
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refresh3HDataInDBTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/Refresh3HDataInDBTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,sEAA4E;AAC5E,2EAAiF;AACjF,iEAAuE;AACvE,0GAAgH;AAEhH,wEAAqE;AACrE,8EAAwF;AACxF,iEAAwE;AAGjE,IAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Refresh3HDataInDBTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/Refresh3HDataInDBTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,sEAA4E;AAC5E,2EAAiF;AACjF,iEAAuE;AACvE,0GAAgH;AAEhH,wEAAqE;AACrE,8EAAwF;AACxF,iEAAwE;AAGjE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,sCAAiB;IAIxD,YACoC,MAA6B,EACZ,UAAoC,EACpB,cAAwD,EACtE,kBAA8C,EACjD,eAAwC;QAExF,KAAK,CAAC,uBAAW,CAAC,CAAC;QANqB,WAAM,GAAN,MAAM,CAAe;QACJ,eAAU,GAAV,UAAU,CAAkB;QACZ,mBAAc,GAAd,c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MJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,gBAAgB,CAAC,CAAA;IAC/C,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,gCAAgC,CAAC,CAAA;IAC/D,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,kBAAkB,CAAC,CAAA;IACjD,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,eAAe,CAAC,CAAA;6CAHsB,mCAAgB;QACI,mEAAgC;QAC1C,uCAAkB;QACxB,iCAAe;GATnF,qBAAqB,CAkCjC"}
|
|
@@ -23,7 +23,7 @@ const UpdateDistrictValidationSchema_1 = require("./schemas/UpdateDistrictValida
|
|
|
23
23
|
const CityDistrictPostgresRepository_1 = __importDefault(require("@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository"));
|
|
24
24
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
25
25
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
26
|
-
let UpdateDistrictTask =
|
|
26
|
+
let UpdateDistrictTask = class UpdateDistrictTask extends integration_engine_1.AbstractTask {
|
|
27
27
|
constructor(stationsRepository) {
|
|
28
28
|
super(constants_1.WORKER_NAME);
|
|
29
29
|
this.stationsRepository = stationsRepository;
|
|
@@ -42,6 +42,7 @@ let UpdateDistrictTask = exports.UpdateDistrictTask = class UpdateDistrictTask e
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.UpdateDistrictTask = UpdateDistrictTask;
|
|
45
46
|
exports.UpdateDistrictTask = UpdateDistrictTask = __decorate([
|
|
46
47
|
(0, tsyringe_1.injectable)(),
|
|
47
48
|
__param(0, (0, tsyringe_1.inject)(ModuleContainerToken_1.IEModuleContainerToken.StationsRepository)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDistrictTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDistrictTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,2EAAiF;AACjF,6FAAiI;AACjI,iKAAkI;AAClI,8EAAqE;AACrE,iEAAwE;AAGjE,IAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"UpdateDistrictTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDistrictTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yEAAsE;AACtE,4CAAoD;AACpD,2EAAiF;AACjF,6FAAiI;AACjI,iKAAkI;AAClI,8EAAqE;AACrE,iEAAwE;AAGjE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,iCAAmC;IAOvE,YAA+D,kBAA8C;QACzG,KAAK,CAAC,uBAAW,CAAC,CAAC;QADgD,uBAAkB,GAAlB,kBAAkB,CAAoB;QAN7F,cAAS,GAAG,gBAAgB,CAAC;QAC7B,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;QAC3C,WAAM,GAAG,+DAA8B,CAAC;QAMpD,IAAI,CAAC,uBAAuB,GAAG,IAAI,wCAAuB,EAAE,CAAC;IACjE,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,IAA2B;QAC/C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;YACjD,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;SACzB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;YACpG,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,CAAC;IACL,CAAC;CACJ,CAAA;AAtBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,6CAAsB,CAAC,kBAAkB,CAAC,CAAA;qCAA6B,uCAAkB;GAPpG,kBAAkB,CAsB9B"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AirQualityStationsTransformation = void 0;
|
|
7
|
-
const IAirQualityIndex_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityIndex"));
|
|
8
|
-
const IAirQualityMeasurement_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityMeasurement"));
|
|
9
|
-
const IAirQualityStation_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityStation"));
|
|
10
4
|
const helpers_1 = require("@golemio/core/dist/helpers");
|
|
11
5
|
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
12
6
|
class AirQualityStationsTransformation extends AbstractTransformation_1.AbstractTransformation {
|
package/dist/integration-engine/workers/transformations/AirQualityStationsTransformation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityStationsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/transformations/AirQualityStationsTransformation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AirQualityStationsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/transformations/AirQualityStationsTransformation.ts"],"names":[],"mappings":";;;AAIA,wDAAsD;AACtD,6GAA0G;AAS1G,MAAa,gCAAiC,SAAQ,+CAAiD;IAAvG;;QACW,SAAI,GAAG,kCAAkC,CAAC;QAEvC,sBAAiB,GAAG,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AAC;gCACL,CAAC;4BACL,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;YAED,OAAO,GAAG,CAAC;QACf,CAAC,CAAC;IACN,CAAC;CAAA;AAxED,4EAwEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityHistoryRouter.js","sourceRoot":"","sources":["../../src/output-gateway/AirQualityHistoryRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,iCAA+C;AAC/C,qEAAsE;AACtE,4FAA2F;AAC3F,wDAAsD;AACtD,sEAAkH;AAClH,+DAAuE;AACvE,oFAAiF;AAEjF,mFAAkG;AAClG,iEAA4D;AAE5D,IAAqB,uBAAuB,GAA5C,MAAqB,uBAAwB,SAAQ,uBAAU;IAG3D,YACgE,iBAAsD;QAElH,KAAK,EAAE,CAAC;QAF4D,sBAAiB,GAAjB,iBAAiB,CAA6B;QAM/G,eAAU,GAAG,KAAK,IAAI,EAAE;YAC3B,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,8BAA8B,EAAE,CAAC;YAClE,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,GAAG,EACH;gBACI,IAAA,yBAAK,EAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;gBACpD,IAAA,yBAAK,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;gBAClD,aAAa;aAChB,EACD,IAAA,0CAAyB,EAAC,yBAAyB,CAAC,EACpD,4BAAW,EACX,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,EACzD,IAAI,CAAC,MAAM,CACd,CAAC;QACN,CAAC,CAAC;QAEK,WAAM,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityRouter.js","sourceRoot":"","sources":["../../src/output-gateway/AirQualityRouter.ts"],"names":[],"mappings":";;;;;;AAAA,iCAA+C;AAC/C,qEAAsE;AACtE,sEAAkE;AAClE,+DAA4F;AAC5F,wFAAgE;AAChE,0GAAyG;AACzG,4FAA2F;AAC3F,kGAAiG;AAEjG,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;AAC9B,MAAM,4BAA4B,GAAG,CAAC,GAAG,EAAE,CAAC;AAE5C,MAAqB,gBAAiB,SAAQ,8BAAa;IAKvD;QACI,KAAK,CAAC,IAAI,yDAA2B,EAAE,CAAC,CAAC;QALtC,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QA4B1B,kBAAa,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YAC7E,IAAI;
|
|
1
|
+
{"version":3,"file":"AirQualityRouter.js","sourceRoot":"","sources":["../../src/output-gateway/AirQualityRouter.ts"],"names":[],"mappings":";;;;;;AAAA,iCAA+C;AAC/C,qEAAsE;AACtE,sEAAkE;AAClE,+DAA4F;AAC5F,wFAAgE;AAChE,0GAAyG;AACzG,4FAA2F;AAC3F,kGAAiG;AAEjG,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;AAC9B,MAAM,4BAA4B,GAAG,CAAC,GAAG,EAAE,CAAC;AAE5C,MAAqB,gBAAiB,SAAQ,8BAAa;IAKvD;QACI,KAAK,CAAC,IAAI,yDAA2B,EAAE,CAAC,CAAC;QALtC,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QA4B1B,kBAAa,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YAC7E,IAAI,CAAC;gBACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;gBACtD,GAAG,CAAC,MAAM,CAAC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AC,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CAmBJ;AA9CD,mCA8CC;AAED,MAAM,gBAAgB,GAAW,IAAI,gBAAgB,EAAE,CAAC,MAAM,CAAC;AAEtD,4CAAgB"}
|
|
@@ -14,7 +14,7 @@ const constants_1 = require("../../schema-definitions/constants");
|
|
|
14
14
|
const AirQualityComponentType_1 = require("../../schema-definitions/models/AirQualityComponentType");
|
|
15
15
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
16
16
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
17
|
-
let AirQualityComponentTypesRepository =
|
|
17
|
+
let AirQualityComponentTypesRepository = class AirQualityComponentTypesRepository extends output_gateway_1.SequelizeModel {
|
|
18
18
|
constructor() {
|
|
19
19
|
super("AirQualityComponentTypesRepository", "airqualitystations_component_types", AirQualityComponentType_1.AirQualityComponentType.attributeModel, {
|
|
20
20
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -27,6 +27,7 @@ let AirQualityComponentTypesRepository = exports.AirQualityComponentTypesReposit
|
|
|
27
27
|
throw new Error("Method not implemented.");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
+
exports.AirQualityComponentTypesRepository = AirQualityComponentTypesRepository;
|
|
30
31
|
exports.AirQualityComponentTypesRepository = AirQualityComponentTypesRepository = __decorate([
|
|
31
32
|
(0, tsyringe_1.injectable)(),
|
|
32
33
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityComponentTypesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityComponentTypesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,qGAA8E;AAC9E,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"AirQualityComponentTypesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityComponentTypesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,qGAA8E;AAC9E,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,+BAAc;IAClE;QACI,KAAK,CACD,oCAAoC,EACpC,oCAAoC,EACpC,iDAAuB,CAAC,cAAc,EACtC;YACI,MAAM,EAAE,qBAAS;SACpB,CACJ,CAAC;QAGC,WAAM,GAAG,GAAuC,EAAE;YACrD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAA2B,CAAC;QAClE,CAAC,CAAC;IAJF,CAAC;IAMD,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AAnBY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,qBAAU,GAAE;;GACA,kCAAkC,CAmB9C"}
|
|
@@ -23,7 +23,7 @@ const AirQualityStationsRepository_1 = require("./AirQualityStationsRepository")
|
|
|
23
23
|
const HistoryRepositoryHelper_1 = __importDefault(require("./helpers/HistoryRepositoryHelper"));
|
|
24
24
|
const OutputDtoMapper_1 = __importDefault(require("./helpers/OutputDtoMapper"));
|
|
25
25
|
const ParamHelper_1 = require("./helpers/ParamHelper");
|
|
26
|
-
let AirQualityHistoryRepository =
|
|
26
|
+
let AirQualityHistoryRepository = class AirQualityHistoryRepository extends output_gateway_1.SequelizeModel {
|
|
27
27
|
constructor() {
|
|
28
28
|
super("AirQualityHistoryRepository", AirQualityIndexModel_1.AirQualityIndexModel.tableName, AirQualityIndexModel_1.AirQualityIndexModel.attributeModel, {
|
|
29
29
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -43,7 +43,7 @@ let AirQualityHistoryRepository = exports.AirQualityHistoryRepository = class Ai
|
|
|
43
43
|
required: true,
|
|
44
44
|
where: {
|
|
45
45
|
[sequelize_1.default.Op.and]: [
|
|
46
|
-
{ region_code: "A" },
|
|
46
|
+
{ region_code: "A" }, // filter Prague region only
|
|
47
47
|
...HistoryRepositoryHelper_1.default.filterByStationId(options),
|
|
48
48
|
],
|
|
49
49
|
},
|
|
@@ -85,6 +85,7 @@ let AirQualityHistoryRepository = exports.AirQualityHistoryRepository = class Ai
|
|
|
85
85
|
throw new Error("Method not implemented.");
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
+
exports.AirQualityHistoryRepository = AirQualityHistoryRepository;
|
|
88
89
|
exports.AirQualityHistoryRepository = AirQualityHistoryRepository = __decorate([
|
|
89
90
|
(0, tsyringe_1.injectable)(),
|
|
90
91
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityHistoryRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityHistoryRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kEAA2C;AAC3C,+FAAwE;AACxE,sEAAmE;AAEnE,oFAA4D;AAC5D,iEAAgE;AAEhE,yFAAsF;AACtF,iFAA8E;AAC9E,gGAAwE;AACxE,gFAAwD;AACxD,uDAAoD;AAG7C,IAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AirQualityHistoryRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityHistoryRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kEAA2C;AAC3C,+FAAwE;AACxE,sEAAmE;AAEnE,oFAA4D;AAC5D,iEAAgE;AAEhE,yFAAsF;AACtF,iFAA8E;AAC9E,gGAAwE;AACxE,gFAAwD;AACxD,uDAAoD;AAG7C,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,+BAAc;IAI3D;QACI,KAAK,CAAC,6BAA6B,EAAE,2CAAoB,CAAC,SAAS,EAAE,2CAAoB,CAAC,cAAc,EAAE;YACtG,MAAM,EAAE,qBAAS;SACpB,CAAC,CAAC;QAkBA,WAAM,GAAG,KAAK,EAAE,OAAkC,EAAgB,EAA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,CAAC,CAAC,CAAC;QAC/E,CAAC,CAAC;QA1DE,IAAI,CAAC,YAAY,GAAG,IAAI,2DAA4B,EAAE,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,IAAI,mEAAgC,EAAE,CAAC;QAEhE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE;YACzD,SAAS,EAAE,YAAY;YACvB,UAAU,EAAE,IAAI;YAChB,EAAE,EAAE,SAAS;SAChB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE;YAC/D,SAAS,EAAE,YAAY;YACvB,UAAU,EAAE,YAAY;YACxB,EAAE,EAAE,cAAc;SACrB,CAAC,CAAC;IACP,CAAC;IA8CM,MAAM;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AAxEY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,qBAAU,GAAE;;GACA,2BAA2B,CAwEvC"}
|
|
@@ -14,7 +14,7 @@ const constants_1 = require("../../schema-definitions/constants");
|
|
|
14
14
|
const AirQualityIndexType_1 = require("../../schema-definitions/models/AirQualityIndexType");
|
|
15
15
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
16
16
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
17
|
-
let AirQualityIndexTypesRepository =
|
|
17
|
+
let AirQualityIndexTypesRepository = class AirQualityIndexTypesRepository extends output_gateway_1.SequelizeModel {
|
|
18
18
|
constructor() {
|
|
19
19
|
super("AirQualityIndexTypesRepository", "airqualitystations_index_types", AirQualityIndexType_1.AirQualityIndexType.attributeModel, {
|
|
20
20
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -27,6 +27,7 @@ let AirQualityIndexTypesRepository = exports.AirQualityIndexTypesRepository = cl
|
|
|
27
27
|
throw new Error("Method not implemented.");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
+
exports.AirQualityIndexTypesRepository = AirQualityIndexTypesRepository;
|
|
30
31
|
exports.AirQualityIndexTypesRepository = AirQualityIndexTypesRepository = __decorate([
|
|
31
32
|
(0, tsyringe_1.injectable)(),
|
|
32
33
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityIndexTypesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityIndexTypesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAE3C,6FAAsE;AACtE,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"AirQualityIndexTypesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityIndexTypesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAE3C,6FAAsE;AACtE,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,+BAAc;IAC9D;QACI,KAAK,CAAC,gCAAgC,EAAE,gCAAgC,EAAE,yCAAmB,CAAC,cAAc,EAAE;YAC1G,MAAM,EAAE,qBAAS;SACpB,CAAC,CAAC;QAGA,WAAM,GAAG,GAAuC,EAAE;YACrD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAA2B,CAAC;QAClE,CAAC,CAAC;IAJF,CAAC;IAMD,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AAdY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,qBAAU,GAAE;;GACA,8BAA8B,CAc1C"}
|
|
@@ -16,13 +16,12 @@ exports.AirQualityIndexesRepository = void 0;
|
|
|
16
16
|
const RawQueryProvider_1 = require("./helpers/RawQueryProvider");
|
|
17
17
|
const constants_1 = require("../../schema-definitions/constants");
|
|
18
18
|
const AirQualityIndexModel_1 = require("../../schema-definitions/models/AirQualityIndexModel");
|
|
19
|
-
const IAirQualityIndex_1 = __importDefault(require("../../schema-definitions/models/interfaces/IAirQualityIndex"));
|
|
20
19
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
21
20
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
22
21
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
22
|
const OutputDtoMapper_1 = __importDefault(require("./helpers/OutputDtoMapper"));
|
|
24
23
|
const ParamHelper_1 = require("./helpers/ParamHelper");
|
|
25
|
-
let AirQualityIndexesRepository =
|
|
24
|
+
let AirQualityIndexesRepository = class AirQualityIndexesRepository extends output_gateway_1.SequelizeModel {
|
|
26
25
|
constructor() {
|
|
27
26
|
super("AirQualityIndexesRepository", AirQualityIndexModel_1.AirQualityIndexModel.tableName, AirQualityIndexModel_1.AirQualityIndexModel.attributeModel, {
|
|
28
27
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -67,6 +66,7 @@ let AirQualityIndexesRepository = exports.AirQualityIndexesRepository = class Ai
|
|
|
67
66
|
return { station_id: arg0 };
|
|
68
67
|
}
|
|
69
68
|
};
|
|
69
|
+
exports.AirQualityIndexesRepository = AirQualityIndexesRepository;
|
|
70
70
|
exports.AirQualityIndexesRepository = AirQualityIndexesRepository = __decorate([
|
|
71
71
|
(0, tsyringe_1.injectable)(),
|
|
72
72
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityIndexesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityIndexesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iEAA8E;AAC9E,kEAA2C;AAC3C,+FAAwE;
|
|
1
|
+
{"version":3,"file":"AirQualityIndexesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityIndexesRepository.ts"],"names":[],"mappings":";;;;;;;;;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AI,CAAC,MAAM,EAAE,CAAC;gBACV,OAAO,IAAA,8CAA6B,EAAC,EAAE,CAAC,CAAC;YAC7C,CAAC;YAED,MAAM,YAAY,GAAuC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAY,EAAE,EAAE,CACjF,yBAAe,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAC5C,CAAC;YACF,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAsB,CAAC;YAC7F,OAAO,IAAA,8CAA6B,EAAC,aAAa,CAAC,CAAC;QACxD,CAAC,CAAC;IAhDF,CAAC;IAqBD,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAMD,yBAAyB;IACzB,iBAAiB,CAAC,KAAa;QAC3B,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,0BAA0B,CAAC,IAAY;QACnC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAChC,CAAC;CAaJ,CAAA;AAtDY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,qBAAU,GAAE;;GACA,2BAA2B,CAsDvC"}
|
|
@@ -14,7 +14,7 @@ const constants_1 = require("../../schema-definitions/constants");
|
|
|
14
14
|
const AirQualityMeasurementModel_1 = require("../../schema-definitions/models/AirQualityMeasurementModel");
|
|
15
15
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
16
16
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
17
|
-
let AirQualityMeasurementsRepository =
|
|
17
|
+
let AirQualityMeasurementsRepository = class AirQualityMeasurementsRepository extends output_gateway_1.SequelizeModel {
|
|
18
18
|
constructor() {
|
|
19
19
|
super("AirQualityMeasurementsRepository", AirQualityMeasurementModel_1.AirQualityMeasurementModel.tableName, AirQualityMeasurementModel_1.AirQualityMeasurementModel.attributeModel, {
|
|
20
20
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -27,6 +27,7 @@ let AirQualityMeasurementsRepository = exports.AirQualityMeasurementsRepository
|
|
|
27
27
|
throw new Error("Method not implemented.");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
+
exports.AirQualityMeasurementsRepository = AirQualityMeasurementsRepository;
|
|
30
31
|
exports.AirQualityMeasurementsRepository = AirQualityMeasurementsRepository = __decorate([
|
|
31
32
|
(0, tsyringe_1.injectable)(),
|
|
32
33
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityMeasurementsRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityMeasurementsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,2GAAoF;AACpF,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"AirQualityMeasurementsRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityMeasurementsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,2GAAoF;AACpF,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,+BAAc;IAChE;QACI,KAAK,CACD,kCAAkC,EAClC,uDAA0B,CAAC,SAAS,EACpC,uDAA0B,CAAC,cAAc,EACzC;YACI,MAAM,EAAE,qBAAS;SACpB,CACJ,CAAC;IACN,CAAC;IAED,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AAnBY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;;GACA,gCAAgC,CAmB5C"}
|
|
@@ -14,7 +14,7 @@ const constants_1 = require("../../schema-definitions/constants");
|
|
|
14
14
|
const AirQualityStationModel_1 = require("../../schema-definitions/models/AirQualityStationModel");
|
|
15
15
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
16
16
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
17
|
-
let AirQualityStationsRepository =
|
|
17
|
+
let AirQualityStationsRepository = class AirQualityStationsRepository extends output_gateway_1.SequelizeModel {
|
|
18
18
|
constructor() {
|
|
19
19
|
super("AirQualityStationsRepository", AirQualityStationModel_1.AirQualityStationModel.tableName, AirQualityStationModel_1.AirQualityStationModel.attributeModel, {
|
|
20
20
|
schema: constants_1.PG_SCHEMA,
|
|
@@ -27,6 +27,7 @@ let AirQualityStationsRepository = exports.AirQualityStationsRepository = class
|
|
|
27
27
|
throw new Error("Method not implemented.");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
+
exports.AirQualityStationsRepository = AirQualityStationsRepository;
|
|
30
31
|
exports.AirQualityStationsRepository = AirQualityStationsRepository = __decorate([
|
|
31
32
|
(0, tsyringe_1.injectable)(),
|
|
32
33
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityStationsRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityStationsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,mGAA4E;AAC5E,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AirQualityStationsRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AirQualityStationsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA2C;AAC3C,mGAA4E;AAC5E,sEAAmE;AACnE,iEAAgE;AAGzD,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,+BAAc;IAC5D;QACI,KAAK,CAAC,8BAA8B,EAAE,+CAAsB,CAAC,SAAS,EAAE,+CAAsB,CAAC,cAAc,EAAE;YAC3G,MAAM,EAAE,qBAAS;SACpB,CAAC,CAAC;QAGP,WAAM,GAAG,KAAK,IAAoB,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC,CAAC;IAJF,CAAC;IAMD,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AAdY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,qBAAU,GAAE;;GACA,4BAA4B,CAcxC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const IHistoryFilterParams_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IHistoryFilterParams"));
|
|
7
3
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
8
4
|
class HistoryRepositoryHelper {
|
|
9
5
|
static filterByMeasuredFrom(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryRepositoryHelper.js","sourceRoot":"","sources":["../../../../src/output-gateway/repositories/helpers/HistoryRepositoryHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryRepositoryHelper.js","sourceRoot":"","sources":["../../../../src/output-gateway/repositories/helpers/HistoryRepositoryHelper.ts"],"names":[],"mappings":";;AACA,mEAAuE;AAEvE,MAAqB,uBAAuB;IACjC,MAAM,CAAC,oBAAoB,CAAC,OAAiC;QAChE,OAAO,OAAO,CAAC,IAAI;YACf,CAAC,CAAC;gBACI;oBACI,aAAa,EAAE,EAAE,CAAC,cAAE,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE;iBAC5C;aACJ;YACH,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,OAAiC;QAC9D,OAAO,OAAO,CAAC,EAAE;YACb,CAAC,CAAC;gBACI;oBACI,WAAW,EAAE,EAAE,CAAC,cAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE;iBACvC;aACJ;YACH,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,iBAAiB,CAAC,OAA6C;QACzE,OAAO,OAAO,EAAE,QAAQ;YACpB,CAAC,CAAC;gBACI;oBACI,iBAAiB,EAAE,OAAO,CAAC,QAAQ;iBACtC;aACJ;YACH,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;CACJ;AA9BD,0CA8BC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const IAirQualityIndex_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityIndex"));
|
|
7
|
-
const IAirQualityMeasurement_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityMeasurement"));
|
|
8
3
|
class OutputDtoMapper {
|
|
9
4
|
static mapToMeasurementDto(indexCode, measurements) {
|
|
10
5
|
let measurement = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputDtoMapper.js","sourceRoot":"","sources":["../../../../src/output-gateway/repositories/helpers/OutputDtoMapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OutputDtoMapper.js","sourceRoot":"","sources":["../../../../src/output-gateway/repositories/helpers/OutputDtoMapper.ts"],"names":[],"mappings":";;AAIA,MAAqB,eAAe;IA8BxB,MAAM,CAAC,mBAAmB,CAAC,SAAiB,EAAE,YAAsC;QACxF,IAAI,WAAW,GAAG,E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O,SAAS,CAAC;IAEzE,IAAI,MAAM,GAAG,EAAS,CAAC;IACvB,MAAM,CAAC,QAAQ,GAAG,EAAqB,CAAC;IACxC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,OAAO,CAAC;IAC/B,MAAM,CAAC,UAAU,GAAG,EAAS,CAAC;IAC9B,MAAM,CAAC,UAAU,CAAC,WAAW,GAAG,eAAe,CAAC,mBAAmB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5G,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACxD,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;IACrD,MAAM,CAAC,UAAU,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IACzD,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;IACrD,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC;IAExB,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;kBA5Be,eAAe"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.AirQualityIndexModel = void 0;
|
|
27
37
|
const sequelize_1 = __importStar(require("@golemio/core/dist/shared/sequelize"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityIndexModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityIndexModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AirQualityIndexModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityIndexModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iFAA6G;AAO7G,MAAa,oBAAqB,SAAQ,iBAA2B;;AAArE,oDAiEC;AAhEiB,8BAAS,GAAG,4BAA4B,CAAC;AAWzC,mCAAc,GAA0C;IAClE,UAAU,EAAE;QACR,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,mBAAS,CAAC,MAAM;KACzB;IACD,aAAa,EAAE;QACX,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,IAAI;KACvB;IACD,WAAW,EAAE;QACT,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,IAAI;KACvB;IACD,UAAU,EAAE;QACR,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,MAAM;KACzB;IACD,UAAU,EAAE;QACR,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,mBAAS,CAAC,IAAI;KACvB;CACJ,CAAC;AAEY,+BAAU,GAA0B,EAAE,CAAC;AAEvC,wCAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;AAEvE,+BAAU,GAAyD;IAC7E,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,aAAa,EAAE;gBACX,IAAI,EAAE,CAAC,QAAQ,CAAC;aACnB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,CAAC,QAAQ,CAAC;aACnB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;gBACnB,QAAQ,EAAE,IAAI;aACjB;SACJ;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,CAAC;KACzE;CACJ,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.AirQualityMeasurementModel = void 0;
|
|
27
37
|
const sequelize_1 = __importStar(require("@golemio/core/dist/shared/sequelize"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityMeasurementModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityMeasurementModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AirQualityMeasurementModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityMeasurementModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iFAA6G;AAG7G,MAAa,0BAA2B,SAAQ,iBAA6B;;AAA7E,gEAiFC;AAhFiB,oCAAS,GAAG,iCAAiC,CAAC;AAS9C,yCAAc,GAAgD;IACxE,oBAAoB,EAAE;QAClB,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,MAAM;KACzB;IACD,cAAc,EAAE;QACZ,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,MAAM;KACzB;IACD,aAAa,EAAE;QACX,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,IAAI;KACvB;IACD,WAAW,EAAE;QACT,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,IAAI;KACvB;IACD,UAAU,EAAE;QACR,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,mBAAS,CAAC,MAAM;KACzB;IACD,KAAK,EAAE;QACH,SA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|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.AirQualityStationModel = void 0;
|
|
27
37
|
const sequelize_1 = __importStar(require("@golemio/core/dist/shared/sequelize"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirQualityStationModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityStationModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AirQualityStationModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AirQualityStationModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iFAA6G;AAG7G,MAAa,sBAAuB,SAAQ,iBAAyB;;AAArE,wDA6HC;AA5HiB,gCAAS,GAAG,oBAAoB,CAAC;AAgBjC,qCAAc,GAA4C;IACpE,cAAc,EAAE,mBAAS,CAAC,IAAI;IAC9B,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,IAA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AAQ;aACjB;YACD,iBAAiB,EAAE;gBACf,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;aACjB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD,cAAc,EAAE;gBACZ,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;gBACnB,QAAQ,EAAE,IAAI;aACjB;SACJ;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,cAAc;YACd,mBAAmB;YACnB,UAAU;YACV,WAAW;YACX,OAAO;YACP,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,aAAa;YACb,gBAAgB;SACnB;KACJ;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/air-quality-stations",
|
|
3
|
-
"version": "1.4.1-dev.
|
|
3
|
+
"version": "1.4.1-dev.2647594794",
|
|
4
4
|
"description": "Golemio Air Quality Stations Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
11
|
"prepare-db": "echo \"Running tests...\"",
|
|
12
|
-
"
|
|
13
|
-
"test
|
|
12
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
13
|
+
"test:only": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r @swc-node/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
14
|
+
"test": "run-s prepare-db typecheck test:only",
|
|
15
|
+
"test-debug": "run-s 'test:only -- --inspect-brk=9230'",
|
|
14
16
|
"apidocs-test": "npm run apidocs-test-output",
|
|
15
17
|
"apidocs-test-output": "cross-env NODE_ENV=test golemio swagger api-test --oas docs/openapi.yaml --script test/api-docs/output-gateway/server.js",
|
|
16
|
-
"
|
|
18
|
+
"coverage:only": "nyc run-s 'test:only -- -r source-map-support/register'",
|
|
19
|
+
"code-coverage": "run-s prepare-db typecheck coverage:only",
|
|
17
20
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
18
21
|
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
19
22
|
},
|
|
@@ -34,11 +37,13 @@
|
|
|
34
37
|
"@apideck/portman": "^1.26.5",
|
|
35
38
|
"@commitlint/cli": "^11.0.0",
|
|
36
39
|
"@commitlint/config-conventional": "^11.0.0",
|
|
37
|
-
"@golemio/city-districts": "1.
|
|
40
|
+
"@golemio/city-districts": "1.5.1-dev.2647444398",
|
|
38
41
|
"@golemio/cli": "1.11.2",
|
|
39
|
-
"@golemio/core": "
|
|
42
|
+
"@golemio/core": "4.0.0-dev.2647379566",
|
|
40
43
|
"@golemio/db-common": "1.2.2",
|
|
41
44
|
"@golemio/eslint-config": "1.1.4",
|
|
45
|
+
"@swc-node/register": "^1.11.1",
|
|
46
|
+
"@swc/core": "^1.15.33",
|
|
42
47
|
"@types/chai": "^5.2.3",
|
|
43
48
|
"@types/chai-as-promised": "^8.0.2",
|
|
44
49
|
"@types/mocha": "^10.0.10",
|
|
@@ -59,15 +64,13 @@
|
|
|
59
64
|
"sinon": "^21.0.1",
|
|
60
65
|
"source-map-support": "0.5.21",
|
|
61
66
|
"supertest": "^7.1.4",
|
|
62
|
-
"ts-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"typescript": "5.1.3",
|
|
67
|
-
"typescript-transform-paths": "^3.4.6"
|
|
67
|
+
"ts-patch": "^4.0.1",
|
|
68
|
+
"typedoc": "^0.28.19",
|
|
69
|
+
"typescript": "6.0.3",
|
|
70
|
+
"typescript-transform-paths": "^4.0.0"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|
|
70
|
-
"@golemio/city-districts": ">=1.
|
|
71
|
-
"@golemio/core": ">=
|
|
73
|
+
"@golemio/city-districts": ">=1.5.1",
|
|
74
|
+
"@golemio/core": ">=4.0.0"
|
|
72
75
|
}
|
|
73
76
|
}
|