@golemio/fcd 1.1.3 → 1.1.4-rc.884418996
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/db/migrations/postgresql/20230516183543-regions-integration.js +53 -0
- package/db/migrations/postgresql/20230522090128-remove-duplicities-from-output-view.js +53 -0
- package/db/migrations/postgresql/sqls/20230516183543-regions-integration-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20230516183543-regions-integration-up.sql +40 -0
- package/db/migrations/postgresql/sqls/20230522090128-remove-duplicities-from-output-view-down.sql +4 -0
- package/db/migrations/postgresql/sqls/20230522090128-remove-duplicities-from-output-view-up.sql +13 -0
- package/dist/input-gateway/AbstractFcdController.js +2 -2
- package/dist/input-gateway/AbstractFcdController.js.map +1 -1
- package/dist/integration-engine/FCDWorker.d.ts +5 -0
- package/dist/integration-engine/FCDWorker.js +33 -4
- package/dist/integration-engine/FCDWorker.js.map +1 -1
- package/dist/integration-engine/helpers/LteCze90PointsChecker.d.ts +8 -0
- package/dist/integration-engine/helpers/LteCze90PointsChecker.js +41 -0
- package/dist/integration-engine/helpers/LteCze90PointsChecker.js.map +1 -0
- package/dist/integration-engine/queueDefinitions.js +20 -0
- package/dist/integration-engine/queueDefinitions.js.map +1 -1
- package/dist/output-gateway/FCDRouter.js +1 -1
- package/dist/output-gateway/FCDRouter.js.map +1 -1
- package/dist/output-gateway/models/FloatingCarDataModel.d.ts +1 -1
- package/dist/output-gateway/models/FloatingCarDataModel.js +6 -11
- package/dist/output-gateway/models/FloatingCarDataModel.js.map +1 -1
- package/dist/output-gateway/transformations/getLocationPointsFromTsString.js +1 -1
- package/dist/output-gateway/transformations/getLocationPointsFromTsString.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dbm;
|
|
4
|
+
var type;
|
|
5
|
+
var seed;
|
|
6
|
+
var fs = require('fs');
|
|
7
|
+
var path = require('path');
|
|
8
|
+
var Promise;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* We receive the dbmigrate dependency from dbmigrate initially.
|
|
12
|
+
* This enables us to not have to rely on NODE_PATH.
|
|
13
|
+
*/
|
|
14
|
+
exports.setup = function(options, seedLink) {
|
|
15
|
+
dbm = options.dbmigrate;
|
|
16
|
+
type = dbm.dataType;
|
|
17
|
+
seed = seedLink;
|
|
18
|
+
Promise = options.Promise;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.up = function(db) {
|
|
22
|
+
var filePath = path.join(__dirname, 'sqls', '20230516183543-regions-integration-up.sql');
|
|
23
|
+
return new Promise( function( resolve, reject ) {
|
|
24
|
+
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
25
|
+
if (err) return reject(err);
|
|
26
|
+
console.log('received data: ' + data);
|
|
27
|
+
|
|
28
|
+
resolve(data);
|
|
29
|
+
});
|
|
30
|
+
})
|
|
31
|
+
.then(function(data) {
|
|
32
|
+
return db.runSql(data);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.down = function(db) {
|
|
37
|
+
var filePath = path.join(__dirname, 'sqls', '20230516183543-regions-integration-down.sql');
|
|
38
|
+
return new Promise( function( resolve, reject ) {
|
|
39
|
+
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
40
|
+
if (err) return reject(err);
|
|
41
|
+
console.log('received data: ' + data);
|
|
42
|
+
|
|
43
|
+
resolve(data);
|
|
44
|
+
});
|
|
45
|
+
})
|
|
46
|
+
.then(function(data) {
|
|
47
|
+
return db.runSql(data);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
exports._meta = {
|
|
52
|
+
"version": 1
|
|
53
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dbm;
|
|
4
|
+
var type;
|
|
5
|
+
var seed;
|
|
6
|
+
var fs = require('fs');
|
|
7
|
+
var path = require('path');
|
|
8
|
+
var Promise;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* We receive the dbmigrate dependency from dbmigrate initially.
|
|
12
|
+
* This enables us to not have to rely on NODE_PATH.
|
|
13
|
+
*/
|
|
14
|
+
exports.setup = function(options, seedLink) {
|
|
15
|
+
dbm = options.dbmigrate;
|
|
16
|
+
type = dbm.dataType;
|
|
17
|
+
seed = seedLink;
|
|
18
|
+
Promise = options.Promise;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.up = function(db) {
|
|
22
|
+
var filePath = path.join(__dirname, 'sqls', '20230522090128-remove-duplicities-from-output-view-up.sql');
|
|
23
|
+
return new Promise( function( resolve, reject ) {
|
|
24
|
+
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
25
|
+
if (err) return reject(err);
|
|
26
|
+
console.log('received data: ' + data);
|
|
27
|
+
|
|
28
|
+
resolve(data);
|
|
29
|
+
});
|
|
30
|
+
})
|
|
31
|
+
.then(function(data) {
|
|
32
|
+
return db.runSql(data);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.down = function(db) {
|
|
37
|
+
var filePath = path.join(__dirname, 'sqls', '20230522090128-remove-duplicities-from-output-view-down.sql');
|
|
38
|
+
return new Promise( function( resolve, reject ) {
|
|
39
|
+
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
40
|
+
if (err) return reject(err);
|
|
41
|
+
console.log('received data: ' + data);
|
|
42
|
+
|
|
43
|
+
resolve(data);
|
|
44
|
+
});
|
|
45
|
+
})
|
|
46
|
+
.then(function(data) {
|
|
47
|
+
return db.runSql(data);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
exports._meta = {
|
|
52
|
+
"version": 1
|
|
53
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
CREATE TABLE fcd_traff_params_regions (
|
|
2
|
+
publication_time timestamptz NULL,
|
|
3
|
+
source_identification varchar(50) NOT NULL,
|
|
4
|
+
measurement_or_calculation_time timestamptz NOT NULL,
|
|
5
|
+
predefined_location varchar(50) NOT NULL,
|
|
6
|
+
version_of_predefined_location int4 NULL,
|
|
7
|
+
traffic_level varchar(50) NOT NULL,
|
|
8
|
+
queue_exists bool NULL,
|
|
9
|
+
queue_length int4 NULL,
|
|
10
|
+
from_point float4 NULL,
|
|
11
|
+
to_point float4 NULL,
|
|
12
|
+
data_quality float4 NULL,
|
|
13
|
+
input_values int4 NULL,
|
|
14
|
+
average_vehicle_speed int4 NULL,
|
|
15
|
+
travel_time int4 NULL,
|
|
16
|
+
free_flow_travel_time int4 NULL,
|
|
17
|
+
free_flow_speed int4 NULL,
|
|
18
|
+
create_batch_id int8 NULL,
|
|
19
|
+
created_at timestamptz NULL,
|
|
20
|
+
created_by varchar(150) NULL,
|
|
21
|
+
update_batch_id int8 NULL,
|
|
22
|
+
updated_at timestamptz NULL,
|
|
23
|
+
updated_by varchar(150) NULL,
|
|
24
|
+
CONSTRAINT fcd_traff_params_regions_pk PRIMARY KEY (source_identification, measurement_or_calculation_time)
|
|
25
|
+
);
|
|
26
|
+
CREATE INDEX fcd_traff_params_regions_time ON ONLY fcd_traff_params_regions USING btree (measurement_or_calculation_time);
|
|
27
|
+
|
|
28
|
+
create view v_traffic_params_all as
|
|
29
|
+
select * from fcd_traff_params_part
|
|
30
|
+
union all
|
|
31
|
+
select * from fcd_traff_params_regions;
|
|
32
|
+
|
|
33
|
+
CREATE PROCEDURE regions_data_retention(dataretentionminutes integer)
|
|
34
|
+
LANGUAGE plpgsql
|
|
35
|
+
AS $procedure$
|
|
36
|
+
begin
|
|
37
|
+
delete from fcd.fcd_traff_params_regions where measurement_or_calculation_time < (NOW() - (dataretentionminutes || ' minutes')::interval);
|
|
38
|
+
end;
|
|
39
|
+
$procedure$
|
|
40
|
+
;
|
package/db/migrations/postgresql/sqls/20230522090128-remove-duplicities-from-output-view-up.sql
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
CREATE OR REPLACE VIEW v_traffic_params_all as (
|
|
2
|
+
select distinct on (source_identification, measurement_or_calculation_time) * from (
|
|
3
|
+
select * from fcd.fcd_traff_params_part
|
|
4
|
+
where measurement_or_calculation_time = (select max(measurement_or_calculation_time) from fcd.fcd_traff_params_part)
|
|
5
|
+
union all
|
|
6
|
+
select * from fcd.fcd_traff_params_regions
|
|
7
|
+
where measurement_or_calculation_time = (select max(measurement_or_calculation_time) from fcd.fcd_traff_params_regions)
|
|
8
|
+
) as tr_all
|
|
9
|
+
order by measurement_or_calculation_time desc, source_identification asc);
|
|
10
|
+
|
|
11
|
+
COMMENT ON VIEW v_traffic_params_all IS 'Pohled vracící aktuální data z fcd_traff_params_part a fcd_tarff_params_regions. Je použit v output gateway v modulu fcd.';
|
|
12
|
+
COMMENT ON TABLE fcd_traff_params_part IS 'Obsahuje fcd data z Hlavního města Praha a Středočeského kraje. Historická data se zachovávají.';
|
|
13
|
+
COMMENT ON TABLE fcd_traff_params_regions IS 'Obsahuje fcd data z krajů: Liberecký, Královehradecký, Pardubický, Vysočina, Jihočeský, Plzeňský, Karlovarský, Ústecký. Integrační engine pouští pravidelnou retenci dat.';
|
|
@@ -24,11 +24,11 @@ class AbstractFcdController extends BaseController_1.BaseController {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
catch (err) {
|
|
27
|
-
if (err instanceof golemio_errors_1.
|
|
27
|
+
if (err instanceof golemio_errors_1.AbstractGolemioError) {
|
|
28
28
|
throw err;
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
|
-
throw new golemio_errors_1.
|
|
31
|
+
throw new golemio_errors_1.GeneralError("Error while validating input data.", this.name, err, 422);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractFcdController.js","sourceRoot":"","sources":["../../src/input-gateway/AbstractFcdController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA2B;AAC3B,gGAA6F;AAC7F,
|
|
1
|
+
{"version":3,"file":"AbstractFcdController.js","sourceRoot":"","sources":["../../src/input-gateway/AbstractFcdController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA2B;AAC3B,gGAA6F;AAC7F,6EAA8F;AAG9F,MAAsB,qBAAsB,SAAQ,+BAAc;IAG9D,YAAY,SAAqB;QAC7B,KAAK,CAAC,UAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAGxB,gBAAW,GAAG,CAAO,IAAS,EAAiB,EAAE;YACpD,IAAI;gBACA,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAEpC,MAAM,IAAI,CAAC,qBAAqB,CAC5B,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,IAAI,CAAC,YAAY,EACrD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EACnC;oBACI,UAAU,EAAE,IAAI;iBACnB,CACJ,CAAC;aACL;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,MAAM,IAAI,6BAAY,CAAC,oCAAoC,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;iBACrF;aACJ;QACL,CAAC,CAAA,CAAC;IApBF,CAAC;CAqBJ;AA1BD,sDA0BC"}
|
|
@@ -3,6 +3,11 @@ export declare class FCDWorker extends BaseWorker {
|
|
|
3
3
|
private readonly queuePrefix;
|
|
4
4
|
private floatingCarDataTransformation;
|
|
5
5
|
private floatingCarDataModel;
|
|
6
|
+
private floatingCarDataRegionsModel;
|
|
7
|
+
private lteCze90PointsChecker;
|
|
8
|
+
private DATA_RETENTION_IN_MINUTES;
|
|
6
9
|
constructor();
|
|
7
10
|
saveFloatingCarData: (msg: any) => Promise<void>;
|
|
11
|
+
saveRegionsData: (msg: any) => Promise<void>;
|
|
12
|
+
regionsDataRetention: (msg: any) => Promise<void>;
|
|
8
13
|
}
|
|
@@ -10,14 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FCDWorker = void 0;
|
|
13
|
-
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
14
|
-
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
15
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
16
13
|
const FloatingCarDataTransformation_1 = require("./transformations/FloatingCarDataTransformation");
|
|
17
14
|
const _sch_1 = require("../schema-definitions");
|
|
15
|
+
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
16
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
17
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
18
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
19
|
+
const LteCze90PointsChecker_1 = require("./helpers/LteCze90PointsChecker");
|
|
18
20
|
class FCDWorker extends integration_engine_1.BaseWorker {
|
|
19
21
|
constructor() {
|
|
20
22
|
super();
|
|
23
|
+
this.DATA_RETENTION_IN_MINUTES = 2880; // 2 days
|
|
21
24
|
this.saveFloatingCarData = (msg) => __awaiter(this, void 0, void 0, function* () {
|
|
22
25
|
try {
|
|
23
26
|
const data = JSON.parse(msg.content.toString());
|
|
@@ -25,9 +28,28 @@ class FCDWorker extends integration_engine_1.BaseWorker {
|
|
|
25
28
|
yield this.floatingCarDataModel.save(transformedData);
|
|
26
29
|
}
|
|
27
30
|
catch (error) {
|
|
28
|
-
throw new golemio_errors_1.
|
|
31
|
+
throw new golemio_errors_1.GeneralError("Error while processing Floating Car Data data.", "FCDWorker", error, 422);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
this.saveRegionsData = (msg) => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
try {
|
|
36
|
+
const data = JSON.parse(msg.content.toString());
|
|
37
|
+
const transformedData = yield this.floatingCarDataTransformation.transform(data);
|
|
38
|
+
yield this.lteCze90PointsChecker.initialize();
|
|
39
|
+
const filteredData = transformedData.filter((element) => this.lteCze90PointsChecker.shouldSave(element.source_identification));
|
|
40
|
+
yield this.floatingCarDataRegionsModel.save(filteredData);
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
throw new golemio_errors_1.GeneralError("Error while processing Floating Car Data for regions.", "FCDWorker", error, 422);
|
|
29
44
|
}
|
|
30
45
|
});
|
|
46
|
+
this.regionsDataRetention = (msg) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const sequelize = integration_engine_1.PostgresConnector.getConnection();
|
|
48
|
+
yield sequelize.query(`CALL ${_sch_1.FCD.pgSchema}.regions_data_retention(${this.DATA_RETENTION_IN_MINUTES});`, {
|
|
49
|
+
plain: true,
|
|
50
|
+
type: sequelize_1.QueryTypes.SELECT,
|
|
51
|
+
});
|
|
52
|
+
});
|
|
31
53
|
this.queuePrefix = integration_engine_1.config.RABBIT_EXCHANGE_NAME + "." + _sch_1.FCD.name.toLowerCase();
|
|
32
54
|
this.floatingCarDataTransformation = new FloatingCarDataTransformation_1.FloatingCarDataTransformation();
|
|
33
55
|
this.floatingCarDataModel = new integration_engine_1.PostgresModel(_sch_1.FCD.fcd_info.name + "Model", {
|
|
@@ -36,6 +58,13 @@ class FCDWorker extends integration_engine_1.BaseWorker {
|
|
|
36
58
|
pgTableName: _sch_1.FCD.fcd_info.pgTableName,
|
|
37
59
|
savingType: "insertOnly",
|
|
38
60
|
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.FCD.fcd_info.name + "PgModelValidator", _sch_1.FCD.fcd_info.outputSchema));
|
|
61
|
+
this.floatingCarDataRegionsModel = new integration_engine_1.PostgresModel(_sch_1.FCD.fcd_info.name + "Model", {
|
|
62
|
+
outputSequelizeAttributes: _sch_1.FCD.fcd_info.outputSequelizeAttributes,
|
|
63
|
+
pgSchema: _sch_1.FCD.pgSchema,
|
|
64
|
+
pgTableName: "fcd_traff_params_regions",
|
|
65
|
+
savingType: "insertOnly",
|
|
66
|
+
}, new golemio_validator_1.JSONSchemaValidator(_sch_1.FCD.fcd_info.name + "PgModelValidator", _sch_1.FCD.fcd_info.outputSchema));
|
|
67
|
+
this.lteCze90PointsChecker = new LteCze90PointsChecker_1.LteCze90PointsChecker();
|
|
39
68
|
}
|
|
40
69
|
}
|
|
41
70
|
exports.FCDWorker = FCDWorker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FCDWorker.js","sourceRoot":"","sources":["../../src/integration-engine/FCDWorker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"FCDWorker.js","sourceRoot":"","sources":["../../src/integration-engine/FCDWorker.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LteCze90PointsChecker = void 0;
|
|
13
|
+
const LteCze90PointsSjtskInAreaRepository_1 = require("@golemio/traffic-common/dist/integration-engine/repositories/LteCze90PointsSjtskInAreaRepository");
|
|
14
|
+
class LteCze90PointsChecker {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.relevantLcds = [];
|
|
17
|
+
this.SOURCE_ID_REGEX = /^TS(?<secondaryPoint>\d+)T(?<primaryPoint>\d+)$/;
|
|
18
|
+
this.filtrationLookup = new LteCze90PointsSjtskInAreaRepository_1.LteCze90PointsSjtskInAreaRepository();
|
|
19
|
+
}
|
|
20
|
+
initialize() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
this.relevantLcds = (yield this.filtrationLookup.getFiltrationData()).map((element) => element.lcd);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
shouldSave(sourceIdentification) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const regexResult = sourceIdentification ? this.SOURCE_ID_REGEX.exec(sourceIdentification) : undefined;
|
|
28
|
+
const primaryPointSpecificLocation = (_a = regexResult === null || regexResult === void 0 ? void 0 : regexResult.groups) === null || _a === void 0 ? void 0 : _a.primaryPoint;
|
|
29
|
+
const secondaryPointSpecificLocation = (_b = regexResult === null || regexResult === void 0 ? void 0 : regexResult.groups) === null || _b === void 0 ? void 0 : _b.secondaryPoint;
|
|
30
|
+
if (primaryPointSpecificLocation === undefined ||
|
|
31
|
+
primaryPointSpecificLocation === null ||
|
|
32
|
+
secondaryPointSpecificLocation === undefined ||
|
|
33
|
+
secondaryPointSpecificLocation === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return (this.relevantLcds.includes(Number(primaryPointSpecificLocation)) ||
|
|
37
|
+
this.relevantLcds.includes(Number(secondaryPointSpecificLocation)));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.LteCze90PointsChecker = LteCze90PointsChecker;
|
|
41
|
+
//# sourceMappingURL=LteCze90PointsChecker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LteCze90PointsChecker.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/LteCze90PointsChecker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0JAAuJ;AAEvJ,MAAa,qBAAqB;IAK9B;QAHQ,iBAAY,GAAa,EAAE,CAAC;QAC5B,oBAAe,GAAG,iDAAiD,CAAC;QAGxE,IAAI,CAAC,gBAAgB,GAAG,IAAI,yEAAmC,EAAE,CAAC;IACtE,CAAC;IAEY,UAAU;;YACnB,IAAI,CAAC,YAAY,GAAG,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACxG,CAAC;KAAA;IAEM,UAAU,CAAC,oBAAwC;;QACtD,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAEvG,MAAM,4BAA4B,GAAG,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,0CAAE,YAAY,CAAC;QACvE,MAAM,8BAA8B,GAAG,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,0CAAE,cAAc,CAAC;QAE3E,IACI,4BAA4B,KAAK,SAAS;YAC1C,4BAA4B,KAAK,IAAI;YACrC,8BAA8B,KAAK,SAAS;YAC5C,8BAA8B,KAAK,IAAI,EACzC;YACE,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,CACH,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;YAChE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,CACrE,CAAC;IACN,CAAC;CACJ;AAjCD,sDAiCC"}
|
|
@@ -19,6 +19,26 @@ const queueDefinitions = [
|
|
|
19
19
|
worker: FCDWorker_1.FCDWorker,
|
|
20
20
|
workerMethod: "saveFloatingCarData",
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
name: "saveRegionsData",
|
|
24
|
+
options: {
|
|
25
|
+
deadLetterExchange: integration_engine_1.config.RABBIT_EXCHANGE_NAME,
|
|
26
|
+
deadLetterRoutingKey: "dead",
|
|
27
|
+
messageTtl: 59 * 60 * 1000, // 59 minutes
|
|
28
|
+
},
|
|
29
|
+
worker: FCDWorker_1.FCDWorker,
|
|
30
|
+
workerMethod: "saveRegionsData",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "regionsDataRetention",
|
|
34
|
+
options: {
|
|
35
|
+
deadLetterExchange: integration_engine_1.config.RABBIT_EXCHANGE_NAME,
|
|
36
|
+
deadLetterRoutingKey: "dead",
|
|
37
|
+
messageTtl: 59 * 60 * 1000, // 59 minutes
|
|
38
|
+
},
|
|
39
|
+
worker: FCDWorker_1.FCDWorker,
|
|
40
|
+
workerMethod: "regionsDataRetention",
|
|
41
|
+
},
|
|
22
42
|
],
|
|
23
43
|
},
|
|
24
44
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queueDefinitions.js","sourceRoot":"","sources":["../../src/integration-engine/queueDefinitions.ts"],"names":[],"mappings":";;;AAAA,8EAAiF;AACjF,gDAA2B;AAC3B,2CAA0C;AAE1C,MAAM,gBAAgB,GAAuB;IACzC;QACI,IAAI,EAAE,UAAG,CAAC,IAAI;QACd,WAAW,EAAE,2BAAM,CAAC,oBAAoB,GAAG,GAAG,GAAG,UAAG,CAAC,IAAI,CAAC,WAAW,EAAE;QACvE,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE;oBACL,kBAAkB,EAAE,2BAAM,CAAC,oBAAoB;oBAC/C,oBAAoB,EAAE,MAAM;oBAC5B,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa;iBAC5C;gBACD,MAAM,EAAE,qBAAS;gBACjB,YAAY,EAAE,qBAAqB;aACtC;SACJ;KACJ;CACJ,CAAC;AAEO,4CAAgB"}
|
|
1
|
+
{"version":3,"file":"queueDefinitions.js","sourceRoot":"","sources":["../../src/integration-engine/queueDefinitions.ts"],"names":[],"mappings":";;;AAAA,8EAAiF;AACjF,gDAA2B;AAC3B,2CAA0C;AAE1C,MAAM,gBAAgB,GAAuB;IACzC;QACI,IAAI,EAAE,UAAG,CAAC,IAAI;QACd,WAAW,EAAE,2BAAM,CAAC,oBAAoB,GAAG,GAAG,GAAG,UAAG,CAAC,IAAI,CAAC,WAAW,EAAE;QACvE,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE;oBACL,kBAAkB,EAAE,2BAAM,CAAC,oBAAoB;oBAC/C,oBAAoB,EAAE,MAAM;oBAC5B,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa;iBAC5C;gBACD,MAAM,EAAE,qBAAS;gBACjB,YAAY,EAAE,qBAAqB;aACtC;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE;oBACL,kBAAkB,EAAE,2BAAM,CAAC,oBAAoB;oBAC/C,oBAAoB,EAAE,MAAM;oBAC5B,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa;iBAC5C;gBACD,MAAM,EAAE,qBAAS;gBACjB,YAAY,EAAE,iBAAiB;aAClC;YACD;gBACI,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE;oBACL,kBAAkB,EAAE,2BAAM,CAAC,oBAAoB;oBAC/C,oBAAoB,EAAE,MAAM;oBAC5B,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa;iBAC5C;gBACD,MAAM,EAAE,qBAAS;gBACjB,YAAY,EAAE,sBAAsB;aACvC;SACJ;KACJ;CACJ,CAAC;AAEO,4CAAgB"}
|
|
@@ -32,7 +32,7 @@ class FCDRouter extends BaseRouter_1.BaseRouter {
|
|
|
32
32
|
offset: req.query.offset ? +req.query.offset : undefined,
|
|
33
33
|
});
|
|
34
34
|
if (!(dataFromDb === null || dataFromDb === void 0 ? void 0 : dataFromDb.length)) {
|
|
35
|
-
throw new golemio_errors_1.
|
|
35
|
+
throw new golemio_errors_1.GeneralError("No data found", "FCDRouter", undefined, 404);
|
|
36
36
|
}
|
|
37
37
|
const transformedData = yield this.outputFloatingCarDataTransformation.transform(dataFromDb, isRequestedPathOsm);
|
|
38
38
|
res.status(200).send(transformedData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FCDRouter.js","sourceRoot":"","sources":["../../src/output-gateway/FCDRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mFAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"FCDRouter.js","sourceRoot":"","sources":["../../src/output-gateway/FCDRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mFAAoE;AACpE,6EAAwE;AACxE,mEAA6E;AAC7E,oFAAiF;AACjF,6EAAkH;AAClH,qCAAgD;AAChD,+GAA8G;AAC9G,2FAAsG;AAEtG,MAAa,SAAU,SAAQ,uBAAU;IACrC,YACc,oBAA0C,EAC5C,mCAAwE;QAEhF,KAAK,EAAE,CAAC;QAHE,yBAAoB,GAApB,oBAAoB,CAAsB;QAC5C,wCAAmC,GAAnC,mCAAmC,CAAqC;QAe7E,uBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YAClF,IAAI;gBACA,MAAM,kBAAkB,GAAI,GAAG,CAAC,KAAK,CAAC,OAAkB,IAAI,MAAM,CAAC;gBAEnE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;oBACtD,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,UAAoB;oBAC1C,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;oBACrD,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;iBAC3D,CAAC,CAAC;gBACH,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAA,EAAE;oBACrB,MAAM,IAAI,6BAAY,CAAC,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;iBACxE;gBACD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,mCAAmC,CAAC,SAAS,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;gBACjH,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aACzC;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QA5BE,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,OAAO,EACP,CAAC,IAAA,yBAAK,EAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,IAAA,yBAAK,EAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,EACnF,uBAAU,EACV,wBAAW,EACX,IAAA,sCAAyB,EAAC,WAAW,CAAC,EACtC,IAAA,0BAAkB,GAAE,EACpB,IAAI,CAAC,kBAAkB,CAC1B,CAAC;IACN,CAAC;CAoBJ;AApCD,8BAoCC;AAED,MAAM,SAAS,GAAW,IAAI,SAAS,CACnC,IAAI,6BAAoB,EAAE,EAC1B,IAAI,yEAAmC,CAAC,IAAI,yCAA0B,EAAE,CAAC,CAC5E,CAAC,MAAM,CAAC;AAEA,8BAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SequelizeModel } from "@golemio/core/dist/output-gateway/models";
|
|
2
1
|
import { IFloatingCarDataModel } from "../../integration-engine/transformations/FloatingCarDataInterface";
|
|
2
|
+
import { SequelizeModel } from "@golemio/core/dist/output-gateway/models";
|
|
3
3
|
export declare class FloatingCarDataModel extends SequelizeModel {
|
|
4
4
|
constructor();
|
|
5
5
|
GetAll: (options?: {
|
|
@@ -13,13 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.FloatingCarDataModel = void 0;
|
|
16
|
-
const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
|
|
17
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
18
|
-
const models_1 = require("@golemio/core/dist/output-gateway/models");
|
|
19
16
|
const index_1 = require("../../schema-definitions/index");
|
|
17
|
+
const models_1 = require("@golemio/core/dist/output-gateway/models");
|
|
18
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
19
|
+
const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
|
|
20
20
|
class FloatingCarDataModel extends models_1.SequelizeModel {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(index_1.FCD.fcd_info.name,
|
|
22
|
+
super(index_1.FCD.fcd_info.name, "v_traffic_params_all", index_1.FCD.fcd_info.outputSequelizeAttributes, {
|
|
23
23
|
schema: index_1.FCD.pgSchema,
|
|
24
24
|
});
|
|
25
25
|
this.GetAll = (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -34,11 +34,6 @@ class FloatingCarDataModel extends models_1.SequelizeModel {
|
|
|
34
34
|
predefined_location: locationId,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
where[Op.and].push({
|
|
38
|
-
measurement_or_calculation_time: {
|
|
39
|
-
[Op.eq]: sequelize_1.default.literal(`(select max(measurement_or_calculation_time) from ${index_1.FCD.pgSchema}.${index_1.FCD.fcd_info.pgTableName})`),
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
37
|
return yield this.sequelizeModel.findAll({
|
|
43
38
|
limit,
|
|
44
39
|
offset,
|
|
@@ -47,11 +42,11 @@ class FloatingCarDataModel extends models_1.SequelizeModel {
|
|
|
47
42
|
});
|
|
48
43
|
}
|
|
49
44
|
catch (err) {
|
|
50
|
-
throw new golemio_errors_1.
|
|
45
|
+
throw new golemio_errors_1.GeneralError(`GetAll method error: ${err.message}`, "FloatingCarDataModel", err, 500);
|
|
51
46
|
}
|
|
52
47
|
});
|
|
53
48
|
this.GetOne = () => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
throw new golemio_errors_1.
|
|
49
|
+
throw new golemio_errors_1.GeneralError("Not implemented", "FloatingCarDataModel");
|
|
55
50
|
});
|
|
56
51
|
}
|
|
57
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingCarDataModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/FloatingCarDataModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FloatingCarDataModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/FloatingCarDataModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0DAAiC;AACjC,qEAA0E;AAC1E,6EAAwE;AACxE,oFAA4D;AAE5D,MAAa,oBAAqB,SAAQ,uBAAc;IACpD;QACI,KAAK,CAAC,WAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,sBAAsB,EAAE,WAAG,CAAC,QAAQ,CAAC,yBAAyB,EAAE;YACrF,MAAM,EAAE,WAAG,CAAC,QAAQ;SACvB,CAAC,CAAC;QAGA,WAAM,GAAG,CACZ,UAII,EAAE,EAC0B,EAAE;YAClC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;YAC9C,IAAI;gBACA,MAAM,EAAE,GAAG,mBAAS,CAAC,EAAE,CAAC;gBACxB,MAAM,KAAK,GAAG;oBACV,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;iBACjB,CAAC;gBAEF,IAAI,UAAU,EAAE;oBACZ,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;wBACf,mBAAmB,EAAE,UAAU;qBAClC,CAAC,CAAC;iBACN;gBAED,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACrC,KAAK;oBACL,MAAM;oBACN,GAAG,EAAE,IAAI;oBACT,KAAK;iBACR,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,wBAAwB,GAAG,CAAC,OAAO,EAAE,EAAE,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aACnG;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,GAAiC,EAAE;YAC/C,MAAM,IAAI,6BAAY,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC;QACtE,CAAC,CAAA,CAAC;IAnCF,CAAC;CAoCJ;AAzCD,oDAyCC"}
|
|
@@ -12,7 +12,7 @@ function getLocationPointsFromTsString(location) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
|
-
throw new golemio_errors_1.
|
|
15
|
+
throw new golemio_errors_1.GeneralError("Unable to parse RsdTmcOsmMappingModelOptions from the location", "FCDRouter", location, 500);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.getLocationPointsFromTsString = getLocationPointsFromTsString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocationPointsFromTsString.js","sourceRoot":"","sources":["../../../src/output-gateway/transformations/getLocationPointsFromTsString.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"getLocationPointsFromTsString.js","sourceRoot":"","sources":["../../../src/output-gateway/transformations/getLocationPointsFromTsString.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AAGxE,SAAgB,6BAA6B,CAAC,QAAgB;IAC1D,MAAM,KAAK,GAAG,2CAA2C,CAAC;IAC1D,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,KAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE;QACxD,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC7B,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SAC9B,CAAC;KACL;SAAM;QACH,MAAM,IAAI,6BAAY,CAAC,gEAAgE,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;KACxH;AACL,CAAC;AAXD,sEAWC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/fcd",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4-rc.884418996",
|
|
4
4
|
"description": "Golemio Floating Car Data Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@commitlint/cli": "^11.0.0",
|
|
37
37
|
"@commitlint/config-conventional": "^11.0.0",
|
|
38
38
|
"@golemio/cli": "1.4.2",
|
|
39
|
-
"@golemio/core": "1.
|
|
39
|
+
"@golemio/core": "1.7.0",
|
|
40
40
|
"@golemio/db-common": "1.1.1",
|
|
41
41
|
"@golemio/eslint-config": "1.1.0",
|
|
42
|
-
"@golemio/traffic-common": "0.1.
|
|
42
|
+
"@golemio/traffic-common": "0.1.1",
|
|
43
43
|
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
44
44
|
"@types/body-parser-xml": "^1.1.0",
|
|
45
45
|
"@types/chai": "4.2.3",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"typescript": "4.7.2"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@golemio/core": ">=1.
|
|
75
|
-
"@golemio/traffic-common": "0.1.0"
|
|
74
|
+
"@golemio/core": ">=1.7.0",
|
|
75
|
+
"@golemio/traffic-common": ">=0.1.0"
|
|
76
76
|
}
|
|
77
77
|
}
|