@golemio/ndic 1.1.6-dev.891959070 → 1.1.6-dev.893837520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/integration-engine/helpers/TrafficRestrictionsHelper.js.map +1 -1
- package/dist/integration-engine/models/RsdTmcPointsModel.js +2 -3
- package/dist/integration-engine/models/RsdTmcPointsModel.js.map +1 -1
- package/dist/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.js +1 -1
- package/dist/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.js.map +1 -1
- package/dist/integration-engine/transformations/TrafficInfoInterface.d.ts +2 -2
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.d.ts +2 -2
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.js +1 -1
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.js.map +1 -1
- package/package.json +12 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/TrafficRestrictionsHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAA8D;AAC9D,kCAA2C;AAK3C,MAAa,yBAAyB;;AAAtC,8DAiDC;;AAhDG,wBAAwB;AACV,iDAAuB,GAAG,CAAC,GAAgC,EAAE,EAAE;IACzE,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,MAAM,SAAS,GAAgC,EAAE,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;QACnB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,EAAE;YACvF,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;YACjF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/TrafficRestrictionsHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAA8D;AAC9D,kCAA2C;AAK3C,MAAa,yBAAyB;;AAAtC,8DAiDC;;AAhDG,wBAAwB;AACV,iDAAuB,GAAG,CAAC,GAAgC,EAAE,EAAE;IACzE,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,MAAM,SAAS,GAAgC,EAAE,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;QACnB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,EAAE;YACvF,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;YACjF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,AAVoC,CAUnC;AAEY,gEAAsC,GAAG,CACnD,eAA4C,EACR,EAAE;IACtC,KAAK,MAAM,OAAO,IAAI,eAAe,EAAE;QACnC,OAAO,CAAC,iBAAiB,GAAG,MAAM,EAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;KACtF;IACD,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAA,AAPmD,CAOlD;AAEY,6CAAmB,GAAG,CAChC,eAAgD,EACjB,EAAE;IACjC,IAAI,CAAC,eAAe;QAAE,OAAO,SAAS,CAAC;IAEvC,MAAM,eAAe,GAAG,kBAAa,CAAC,OAAO,CAAoB,qCAAoB,CAAC,sBAAsB,CAAC,CAAC;IAC9G,MAAM,4BAA4B,GAAG,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACvH,MAAM,8BAA8B,GAChC,eAAe,CAAC,mCAAmC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAExF,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;IACnF,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAEvF,IAAI,eAAe,IAAI,iBAAiB,EAAE;QACtC,MAAM,cAAc,GAAe;YAC/B,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACtG,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;SAC7G,CAAC;QACF,OAAO;YACH,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,YAAY;SACP,CAAC;KACnB;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,CAAA,AAxBgC,CAwB/B"}
|
|
@@ -23,7 +23,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
23
23
|
const models_1 = require("@golemio/core/dist/output-gateway/models");
|
|
24
24
|
const _sch_1 = require("../../schema-definitions");
|
|
25
25
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
26
|
-
let RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel {
|
|
26
|
+
let RsdTmcPointsModel = exports.RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(_sch_1.Ndic.rsd_tmc_points.name + "Model", _sch_1.Ndic.rsd_tmc_points.pgTableName, _sch_1.Ndic.rsd_tmc_points.outputSequelizeAttributes);
|
|
29
29
|
/**
|
|
@@ -48,9 +48,8 @@ let RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
RsdTmcPointsModel = __decorate([
|
|
51
|
+
exports.RsdTmcPointsModel = RsdTmcPointsModel = __decorate([
|
|
52
52
|
(0, tsyringe_1.injectable)(),
|
|
53
53
|
__metadata("design:paramtypes", [])
|
|
54
54
|
], RsdTmcPointsModel);
|
|
55
|
-
exports.RsdTmcPointsModel = RsdTmcPointsModel;
|
|
56
55
|
//# sourceMappingURL=RsdTmcPointsModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RsdTmcPointsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/RsdTmcPointsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,qEAA0E;AAC1E,mDAA4B;AAC5B,iEAAgE;
|
|
1
|
+
{"version":3,"file":"RsdTmcPointsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/RsdTmcPointsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,qEAA0E;AAC1E,mDAA4B;AAC5B,iEAAgE;AAGzD,IAAM,iBAAiB,+BAAvB,MAAM,iBAAkB,SAAQ,uBAAc;IACjD;QACI,KAAK,CAAC,WAAI,CAAC,cAAc,CAAC,IAAI,GAAG,OAAO,EAAE,WAAI,CAAC,cAAc,CAAC,WAAW,EAAE,WAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC;QAG9H;;;WAGG;QAEI,WAAM,GAAG,CAAO,QAAgB,EAAgB,EAAE;YACrD,IAAI;gBACA,MAAM,kBAAkB,GAAU,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBAChE,GAAG,EAAE,IAAI;oBACT,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE;iBAC3B,CAAC,CAAC;gBAEH,OAAO,kBAAkB,CAAC;aAC7B;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC3E;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,QAAgB,EAAuB,EAAE;YAC5D,MAAM,SAAS,GAAU,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACrD,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC,CAAA,CAAC;IAvBF,CAAC;CAwBJ,CAAA;4BA3BY,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;;GACA,iBAAiB,CA2B7B"}
|
|
@@ -13,6 +13,7 @@ const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
|
13
13
|
//Just mockup schema. data are validated on IG side.
|
|
14
14
|
class TrafficRestrictionsRegionsSchema {
|
|
15
15
|
}
|
|
16
|
+
exports.default = TrafficRestrictionsRegionsSchema;
|
|
16
17
|
__decorate([
|
|
17
18
|
(0, class_validator_1.IsObject)(),
|
|
18
19
|
__metadata("design:type", Object)
|
|
@@ -25,5 +26,4 @@ __decorate([
|
|
|
25
26
|
(0, class_validator_1.IsObject)(),
|
|
26
27
|
__metadata("design:type", Object)
|
|
27
28
|
], TrafficRestrictionsRegionsSchema.prototype, "payloadPublication", void 0);
|
|
28
|
-
exports.default = TrafficRestrictionsRegionsSchema;
|
|
29
29
|
//# sourceMappingURL=TrafficRestrictionsRegionsSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsRegionsSchema.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+EAAqE;AAErE,oDAAoD;AACpD,MAAqB,gCAAgC;CAgBpD;AAdG;IADC,IAAA,0BAAQ,GAAE;;2DAKT;AAEF;IADC,IAAA,0BAAQ,GAAE;;kEACoB;AAE/B;IADC,IAAA,0BAAQ,GAAE;;4EAMT
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsRegionsSchema.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+EAAqE;AAErE,oDAAoD;AACpD,MAAqB,gCAAgC;CAgBpD;AAhBD,mDAgBC;AAdG;IADC,IAAA,0BAAQ,GAAE;;2DAKT;AAEF;IADC,IAAA,0BAAQ,GAAE;;kEACoB;AAE/B;IADC,IAAA,0BAAQ,GAAE;;4EAMT"}
|
|
@@ -277,8 +277,8 @@ interface IWeatherRelatedRoadConditions extends ISituationRecordCommon {
|
|
|
277
277
|
interface IWinterDrivingManagement extends INetworkManagement, ISituationRecordCommon {
|
|
278
278
|
winterEquipmentManagementType: string;
|
|
279
279
|
}
|
|
280
|
-
export
|
|
281
|
-
export
|
|
280
|
+
export type ISituationRecord = IAbnormalTraffic | IAccident | IAnimalPresenceObstruction | IAuthorityOperation | ICarParks | IConditions | IConstructionWorks | IDisturbanceActivity | IEnvironmentalObstruction | IEquipmentOrSystemFault | IGeneralInstructionOrMessageToRoadUsers | IGeneralNetworkManagement | IGeneralObstruction | IInfrastructureDamageObstruction | IMaintenanceWorks | INonWeatherRelatedRoadConditions | IPoorEnvironmentConditions | IPublicEvent | IReroutingManagement | IRoadOperatorServiceDisruption | IRoadOrCarriagewayOrLaneManagement | IRoadsideAssistance | IRoadsideServiceDisruption | ISpeedManagement | ITransitInformation | IVehicleObstruction | IWeatherRelatedRoadConditions | IWinterDrivingManagement;
|
|
281
|
+
export type ISituationRecordGeneral = IAbnormalTraffic & IAccident & IAnimalPresenceObstruction & IAuthorityOperation & ICarParks & IConditions & IConstructionWorks & IDisturbanceActivity & IEnvironmentalObstruction & IEquipmentOrSystemFault & IGeneralInstructionOrMessageToRoadUsers & IGeneralNetworkManagement & IGeneralObstruction & IInfrastructureDamageObstruction & IMaintenanceWorks & INonWeatherRelatedRoadConditions & IPoorEnvironmentConditions & IPublicEvent & IReroutingManagement & // no data
|
|
282
282
|
IRoadOperatorServiceDisruption & // no data
|
|
283
283
|
IRoadOrCarriagewayOrLaneManagement & IRoadsideAssistance & // no data
|
|
284
284
|
IRoadsideServiceDisruption & ISpeedManagement & // no data
|
|
@@ -334,8 +334,8 @@ interface IWeatherRelatedRoadConditions extends ISituationRecordCommon {
|
|
|
334
334
|
interface IWinterDrivingManagement extends INetworkManagement, ISituationRecordCommon {
|
|
335
335
|
winterEquipmentManagementType: string;
|
|
336
336
|
}
|
|
337
|
-
export
|
|
338
|
-
export
|
|
337
|
+
export type ISituationRecord = IAbnormalTraffic | IAccident | IAnimalPresenceObstruction | IAuthorityOperation | ICarParks | IConditions | IConstructionWorks | IDisturbanceActivity | IEnvironmentalObstruction | IEquipmentOrSystemFault | IGeneralInstructionOrMessageToRoadUsers | IGeneralNetworkManagement | IGeneralObstruction | IInfrastructureDamageObstruction | IMaintenanceWorks | INonWeatherRelatedRoadConditions | IPoorEnvironmentConditions | IPublicEvent | IReroutingManagement | IRoadOperatorServiceDisruption | IRoadOrCarriagewayOrLaneManagement | IRoadsideAssistance | IRoadsideServiceDisruption | ISpeedManagement | ITransitInformation | IVehicleObstruction | IWeatherRelatedRoadConditions | IWinterDrivingManagement;
|
|
338
|
+
export type ISituationRecordGeneral = IAbnormalTraffic & IAccident & IAnimalPresenceObstruction & IAuthorityOperation & ICarParks & IConditions & IConstructionWorks & IDisturbanceActivity & IEnvironmentalObstruction & IEquipmentOrSystemFault & IGeneralInstructionOrMessageToRoadUsers & IGeneralNetworkManagement & IGeneralObstruction & IInfrastructureDamageObstruction & IMaintenanceWorks & INonWeatherRelatedRoadConditions & IPoorEnvironmentConditions & IPublicEvent & IReroutingManagement & // no data
|
|
339
339
|
IRoadOperatorServiceDisruption & // no data
|
|
340
340
|
IRoadOrCarriagewayOrLaneManagement & IRoadsideAssistance & // no data
|
|
341
341
|
IRoadsideServiceDisruption & ISpeedManagement & // no data
|
|
@@ -7,5 +7,5 @@ var OutputApiSituationRecordType;
|
|
|
7
7
|
OutputApiSituationRecordType["GeneralObstruction"] = "GENERAL_OBSTRUCTION";
|
|
8
8
|
OutputApiSituationRecordType["MaintenanceWorks"] = "MAINTENANCE_WORKS";
|
|
9
9
|
OutputApiSituationRecordType["RoadOrCarriagewayOrLaneManagement"] = "ROAD_OR_CARRIAGE_WAY_OR_LANE_MANAGEMENT";
|
|
10
|
-
})(OutputApiSituationRecordType
|
|
10
|
+
})(OutputApiSituationRecordType || (exports.OutputApiSituationRecordType = OutputApiSituationRecordType = {}));
|
|
11
11
|
//# sourceMappingURL=TrafficRestrictionsInterface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsInterface.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TrafficRestrictionsInterface.ts"],"names":[],"mappings":";;;AAqJA,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,wEAAwC,CAAA;IACxC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,6GAA6E,CAAA;AACjF,CAAC,EALW,4BAA4B,
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsInterface.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TrafficRestrictionsInterface.ts"],"names":[],"mappings":";;;AAqJA,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,wEAAwC,CAAA;IACxC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,6GAA6E,CAAA;AACjF,CAAC,EALW,4BAA4B,4CAA5B,4BAA4B,QAKvC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/ndic",
|
|
3
|
-
"version": "1.1.6-dev.
|
|
3
|
+
"version": "1.1.6-dev.893837520",
|
|
4
4
|
"description": "Golemio NDIC Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "rimraf ./dist &&
|
|
8
|
+
"build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
11
|
"pretest": "golemio import-db-data --postgres",
|
|
12
|
-
"test": "cross-env NODE_ENV=test
|
|
13
|
-
"apidocs-test": "cross-env NODE_ENV=test
|
|
12
|
+
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
13
|
+
"apidocs-test": "cross-env NODE_ENV=test ts-node -r tsconfig-paths/register -r dotenv/config test/api-docs/index.ts",
|
|
14
14
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
15
15
|
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
16
16
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
"@commitlint/cli": "^11.0.0",
|
|
36
36
|
"@commitlint/config-conventional": "^11.0.0",
|
|
37
37
|
"@golemio/cli": "1.4.2",
|
|
38
|
-
"@golemio/core": "1.7.
|
|
38
|
+
"@golemio/core": "1.7.5-dev.893702206",
|
|
39
39
|
"@golemio/db-common": "1.1.1",
|
|
40
40
|
"@golemio/eslint-config": "1.1.0",
|
|
41
41
|
"@golemio/traffic-common": "0.1.1",
|
|
42
|
-
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
43
42
|
"@types/body-parser-xml": "^1.1.0",
|
|
44
43
|
"@types/chai": "4.2.3",
|
|
45
44
|
"@types/chai-as-promised": "7.1.2",
|
|
@@ -62,12 +61,14 @@
|
|
|
62
61
|
"pretty-quick": "^3.1.3",
|
|
63
62
|
"rimraf": "^3.0.2",
|
|
64
63
|
"sinon": "^9.2.3",
|
|
65
|
-
"source-map-support": "0.5.
|
|
64
|
+
"source-map-support": "0.5.21",
|
|
66
65
|
"supertest": "^6.0.1",
|
|
67
|
-
"ts-node": "^10.
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
66
|
+
"ts-node": "^10.9.1",
|
|
67
|
+
"ts-patch": "3.0.0-beta3",
|
|
68
|
+
"tsconfig-paths": "^4.2.0",
|
|
69
|
+
"typedoc": "^0.24.8",
|
|
70
|
+
"typescript": "5.1.3",
|
|
71
|
+
"typescript-transform-paths": "^3.4.6"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@golemio/core": ">=1.7.0",
|