@golemio/pid 5.15.4-dev.2625967696 → 5.15.4-dev.2628504034
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/example/19_train_trip_with_cis_platform_code.sql +9 -4
- package/db/migrations/postgresql/20260611120000-jis-infotexts-event-id.js +49 -0
- package/db/migrations/postgresql/20260617140000-add-assigned-stop-id-to-combined-stop-times.js +49 -0
- package/db/migrations/postgresql/sqls/20260611120000-jis-infotexts-event-id-down.sql +2 -0
- package/db/migrations/postgresql/sqls/20260611120000-jis-infotexts-event-id-up.sql +2 -0
- package/db/migrations/postgresql/sqls/20260617140000-add-assigned-stop-id-to-combined-stop-times-down.sql +52 -0
- package/db/migrations/postgresql/sqls/20260617140000-add-assigned-stop-id-to-combined-stop-times-up.sql +60 -0
- package/dist/{output-gateway/pid/helpers → helpers/jis}/JISInfotextStopSuppressionFilter.d.ts +2 -2
- package/dist/{output-gateway/pid/helpers → helpers/jis}/JISInfotextStopSuppressionFilter.js +18 -18
- package/dist/helpers/jis/JISInfotextStopSuppressionFilter.js.map +1 -0
- package/dist/helpers/jis/getJISStopId.d.ts +4 -0
- package/dist/helpers/jis/getJISStopId.js +7 -0
- package/dist/helpers/jis/getJISStopId.js.map +1 -0
- package/dist/integration-engine/jis/ioc/Di.js +2 -2
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISEventsRepository.d.ts +1 -0
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js +14 -0
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +2 -3
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +22 -28
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/transformations/{JISInfotextCacheTranformation.d.ts → JISInfotextCacheTransformation.d.ts} +1 -1
- package/dist/integration-engine/jis/transformations/{JISInfotextCacheTranformation.js → JISInfotextCacheTransformation.js} +7 -7
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTransformation.js.map +1 -0
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +1 -0
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +3 -3
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +6 -6
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/ioc/Di.js +8 -0
- package/dist/integration-engine/vehicle-positions/ioc/Di.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.d.ts +1 -0
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js +3 -0
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/DisplayAlertsGenerator.d.ts +15 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/DisplayAlertsGenerator.js +54 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/DisplayAlertsGenerator.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.d.ts +11 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.js +8 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.d.ts +4 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js +29 -7
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/JISInfotextsGtfsRtTransformation.d.ts +15 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/JISInfotextsGtfsRtTransformation.js +59 -0
- package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/transformations/JISInfotextsGtfsRtTransformation.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -1
- package/dist/output-gateway/jis/data-access/JISEventsRepository.js +1 -0
- package/dist/output-gateway/jis/data-access/JISEventsRepository.js.map +1 -1
- package/dist/output-gateway/pid/ioc/Di.js +1 -1
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +1 -1
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js +1 -1
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js +1 -0
- package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +1 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +1 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js +5 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +4 -0
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +4 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
- package/docs/cache/types/redis.md +1 -0
- package/docs/implementation_documentation.md +36 -0
- package/docs/openapi-input.yaml +7 -0
- package/docs/openapi-output.yaml +24 -0
- package/package.json +1 -1
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +0 -1
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +0 -1
|
@@ -13,7 +13,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.JISInfotextsRepository = void 0;
|
|
16
|
-
const ropid_gtfs_1 = require("../../ropid-gtfs");
|
|
17
16
|
const const_1 = require("../../../schema-definitions/const");
|
|
18
17
|
const JISInfotextsModel_1 = require("../../../schema-definitions/jis/models/JISInfotextsModel");
|
|
19
18
|
const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
|
|
@@ -27,45 +26,26 @@ const JISContainerToken_1 = require("../ioc/JISContainerToken");
|
|
|
27
26
|
const JISInfotextsPresetsRepository_1 = require("./JISInfotextsPresetsRepository");
|
|
28
27
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("./JISInfotextsRopidGTFSStopsRepository");
|
|
29
28
|
let JISInfotextsRepository = class JISInfotextsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
30
|
-
constructor(connector, logger, infotextStopRepository, infotextPresetsRepository
|
|
29
|
+
constructor(connector, logger, infotextStopRepository, infotextPresetsRepository) {
|
|
31
30
|
super(connector, logger);
|
|
32
31
|
this.logger = logger;
|
|
33
32
|
this.infotextStopRepository = infotextStopRepository;
|
|
34
33
|
this.infotextPresetsRepository = infotextPresetsRepository;
|
|
35
|
-
this.gtfsStopRepository = gtfsStopRepository;
|
|
36
34
|
this.schema = const_1.PG_SCHEMA;
|
|
37
35
|
this.tableName = JISInfotextsModel_1.JISInfotextsModel.tableName;
|
|
38
36
|
this.validator = new golemio_validator_1.JSONSchemaValidator("JISInfotextsRepository", JISInfotextsModel_1.JISInfotextsModel.jsonSchema);
|
|
39
37
|
this.sequelizeModel = connector
|
|
40
38
|
.getConnection()
|
|
41
39
|
.define(this.tableName, JISInfotextsModel_1.JISInfotextsModel.attributeModel, { schema: this.schema });
|
|
42
|
-
this.sequelizeModel.
|
|
43
|
-
|
|
40
|
+
this.sequelizeModel.hasMany(this.infotextStopRepository["sequelizeModel"], {
|
|
41
|
+
sourceKey: "id",
|
|
44
42
|
foreignKey: "infotext_id",
|
|
45
|
-
otherKey: "stop_id",
|
|
46
43
|
as: "stops",
|
|
47
44
|
});
|
|
48
|
-
this.gtfsStopRepository.sequelizeModel.belongsToMany(this.sequelizeModel, {
|
|
49
|
-
through: this.infotextStopRepository["sequelizeModel"],
|
|
50
|
-
foreignKey: "stop_id",
|
|
51
|
-
otherKey: "infotext_id",
|
|
52
|
-
});
|
|
53
45
|
this.infotextStopRepository["sequelizeModel"].belongsTo(this.sequelizeModel, {
|
|
54
46
|
targetKey: "id",
|
|
55
47
|
foreignKey: "infotext_id",
|
|
56
48
|
});
|
|
57
|
-
this.infotextStopRepository["sequelizeModel"].belongsTo(this.gtfsStopRepository.sequelizeModel, {
|
|
58
|
-
targetKey: "stop_id",
|
|
59
|
-
foreignKey: "stop_id",
|
|
60
|
-
});
|
|
61
|
-
this.sequelizeModel.hasMany(this.infotextStopRepository["sequelizeModel"], {
|
|
62
|
-
sourceKey: "id",
|
|
63
|
-
foreignKey: "infotext_id",
|
|
64
|
-
});
|
|
65
|
-
this.gtfsStopRepository.sequelizeModel.hasMany(this.infotextStopRepository["sequelizeModel"], {
|
|
66
|
-
sourceKey: "stop_id",
|
|
67
|
-
foreignKey: "stop_id",
|
|
68
|
-
});
|
|
69
49
|
this.sequelizeModel.hasMany(this.infotextPresetsRepository["sequelizeModel"], {
|
|
70
50
|
sourceKey: "id",
|
|
71
51
|
foreignKey: "infotext_id",
|
|
@@ -141,10 +121,26 @@ let JISInfotextsRepository = class JISInfotextsRepository extends AbstractValida
|
|
|
141
121
|
return await this.sequelizeModel.findAll({
|
|
142
122
|
include: [
|
|
143
123
|
{
|
|
144
|
-
model: this.
|
|
124
|
+
model: this.infotextStopRepository["sequelizeModel"],
|
|
125
|
+
as: "stops",
|
|
126
|
+
attributes: ["stop_id"],
|
|
127
|
+
required: true,
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
async findAllActive(timeFrom) {
|
|
133
|
+
return await this.sequelizeModel.findAll({
|
|
134
|
+
where: {
|
|
135
|
+
jis_event_id: { [sequelize_1.Op.not]: null },
|
|
136
|
+
active_period_start: { [sequelize_1.Op.lte]: timeFrom },
|
|
137
|
+
[sequelize_1.Op.or]: [{ active_period_end: { [sequelize_1.Op.is]: null } }, { active_period_end: { [sequelize_1.Op.gte]: timeFrom } }],
|
|
138
|
+
},
|
|
139
|
+
include: [
|
|
140
|
+
{
|
|
141
|
+
model: this.infotextStopRepository["sequelizeModel"],
|
|
145
142
|
as: "stops",
|
|
146
143
|
attributes: ["stop_id"],
|
|
147
|
-
through: { attributes: [] },
|
|
148
144
|
required: true,
|
|
149
145
|
},
|
|
150
146
|
],
|
|
@@ -158,9 +154,7 @@ exports.JISInfotextsRepository = JISInfotextsRepository = __decorate([
|
|
|
158
154
|
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
159
155
|
__param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository)),
|
|
160
156
|
__param(3, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsPresetsRepository)),
|
|
161
|
-
__param(4, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.RopidGTFSStopsRepository)),
|
|
162
157
|
__metadata("design:paramtypes", [Object, Object, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository,
|
|
163
|
-
JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository
|
|
164
|
-
ropid_gtfs_1.RopidGTFSStopsModel])
|
|
158
|
+
JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository])
|
|
165
159
|
], JISInfotextsRepository);
|
|
166
160
|
//# sourceMappingURL=JISInfotextsRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,gGAAsE;AAItE,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAC7D,gEAA6D;AAC7D,mFAAgF;AAChF,iGAA8F;AAOvF,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,6DAA6B;IAOrE,YACyC,SAA6B,EACxC,MAAuB,EAEjD,sBAAoE,EAEpE,yBAAgE;QAEhE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANS,WAAM,GAAN,MAA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|
|
2
2
|
import { IJISInfotextDto } from "../../../schema-definitions/jis/redis/interfaces/IJISInfotextDto";
|
|
3
3
|
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class JISInfotextCacheTransformation extends AbstractTransformation<JISInfotextsModel, IJISInfotextDto> {
|
|
5
5
|
name: string;
|
|
6
6
|
protected transformInternal: (data: JISInfotextsModel) => IJISInfotextDto;
|
|
7
7
|
}
|
|
@@ -6,13 +6,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.JISInfotextCacheTransformation = void 0;
|
|
10
10
|
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
11
11
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
12
|
-
let
|
|
12
|
+
let JISInfotextCacheTransformation = class JISInfotextCacheTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.name = "
|
|
15
|
+
this.name = "JISInfotextCacheTransformation";
|
|
16
16
|
this.transformInternal = (data) => {
|
|
17
17
|
return {
|
|
18
18
|
id: data.id,
|
|
@@ -34,8 +34,8 @@ let JISInfotextCacheTranformation = class JISInfotextCacheTranformation extends
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
37
|
+
exports.JISInfotextCacheTransformation = JISInfotextCacheTransformation;
|
|
38
|
+
exports.JISInfotextCacheTransformation = JISInfotextCacheTransformation = __decorate([
|
|
39
39
|
(0, tsyringe_1.injectable)()
|
|
40
|
-
],
|
|
41
|
-
//# sourceMappingURL=
|
|
40
|
+
], JISInfotextCacheTransformation);
|
|
41
|
+
//# sourceMappingURL=JISInfotextCacheTransformation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JISInfotextCacheTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextCacheTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,+CAA0D;IAAvG;;QACI,SAAI,GAAG,gCAAgC,CAAC;QAErC,sBAAiB,GAAG,CAAC,IAAuB,EAAmB,EAAE;YACvE,OAAO;gBACH,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE;gBAC3D,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EAAE,WAAW,EAAE,IAAI,IAAI;gBAChE,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,KAAK;gBAC5C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,IAAI,IAAI;gBACjD,eAAe,EAAE,IAAI,CAAC,eAAe,IAAI,IAAI;gBAC7C,gBAAgB,EAAE;oBACd,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE;oBAC5B,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE,IAAI,IAAI;iBACvC;gBACD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE;gBACvD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE;gBACvD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE;aACtE,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;AAtBY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,qBAAU,GAAE;GACA,8BAA8B,CAsB1C"}
|
|
@@ -16,6 +16,7 @@ let JISInfotextsTransformation = class JISInfotextsTransformation extends Abstra
|
|
|
16
16
|
this.transformInternal = (data) => {
|
|
17
17
|
const infotext = {
|
|
18
18
|
id: data.id,
|
|
19
|
+
jis_event_id: data.event_id,
|
|
19
20
|
severity_level: data.severity_level,
|
|
20
21
|
display_type: data.display_type,
|
|
21
22
|
active_period_start: new Date(data.active_period.start),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAMA,6GAA0G;AAC1G,iEAAgE;AAUzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,+CAAiD;IAA1F;;QACI,SAAI,GAAG,4BAA4B,CAAC;QAEjC,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YAC9D,MAAM,QAAQ,GAAG;gBACb,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,mBAAmB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBACvD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI;gBACnF,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,IAAI,KAAK;gBAC7C,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,IAAI,IAAI;gBAClD,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,IAAI;gBAC9C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;gBACnD,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC;aAC5D,CAAC;YACF,MAAM,uBAAuB,GACzB,IAAI,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC1C,WAAW,EAAE,IAAI,CAAC,EAAE;gBACpB,OAAO,EAAE,EAAE;aACd,CAAC,CAAC,IAAI,EAAE,CAAC;YACd,MAAM,gBAAgB,GAClB,IAAI,CAAC,eAAe,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;gBACpD,WAAW,EAAE,IAAI,CAAC,EAAE;gBACpB,UAAU;aACb,CAAC,CAAC,IAAI,EAAE,CAAC;YACd,OAAO;gBACH,QAAQ;gBACR,uBAAuB;gBACvB,gBAAgB;aACnB,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"JISInfotextsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAMA,6GAA0G;AAC1G,iEAAgE;AAUzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,+CAAiD;IAA1F;;QACI,SAAI,GAAG,4BAA4B,CAAC;QAEjC,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YAC9D,MAAM,QAAQ,GAAG;gBACb,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,YAAY,EAAE,IAAI,CAAC,QAAQ;gBAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,mBAAmB,EAAE,IAAI,IAAI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sRedisRepository } from "../../repositories/JISInfotextsRedisRepository";
|
|
2
2
|
import { JISInfotextsRepository } from "../../repositories/JISInfotextsRepository";
|
|
3
3
|
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
|
|
4
|
-
import {
|
|
4
|
+
import { JISInfotextCacheTransformation } from "../../transformations/JISInfotextCacheTransformation";
|
|
5
5
|
export declare class RefreshJISInfotextsCacheTask extends AbstractEmptyTask {
|
|
6
6
|
private infotextsRepository;
|
|
7
7
|
private infotextCacheRepository;
|
|
8
|
-
private
|
|
8
|
+
private transformation;
|
|
9
9
|
readonly queueName = "refreshJISInfotextsCache";
|
|
10
10
|
readonly queueTtl: number;
|
|
11
|
-
constructor(infotextsRepository: JISInfotextsRepository, infotextCacheRepository: JISInfotextsRedisRepository,
|
|
11
|
+
constructor(infotextsRepository: JISInfotextsRepository, infotextCacheRepository: JISInfotextsRedisRepository, transformation: JISInfotextCacheTransformation);
|
|
12
12
|
protected execute(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -19,19 +19,19 @@ const JISInfotextsRepository_1 = require("../../repositories/JISInfotextsReposit
|
|
|
19
19
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
20
20
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
21
21
|
const constants_1 = require("../constants");
|
|
22
|
-
const
|
|
22
|
+
const JISInfotextCacheTransformation_1 = require("../../transformations/JISInfotextCacheTransformation");
|
|
23
23
|
let RefreshJISInfotextsCacheTask = class RefreshJISInfotextsCacheTask extends integration_engine_1.AbstractEmptyTask {
|
|
24
|
-
constructor(infotextsRepository, infotextCacheRepository,
|
|
24
|
+
constructor(infotextsRepository, infotextCacheRepository, transformation) {
|
|
25
25
|
super(constants_1.JIS_WORKER_NAME.toLowerCase());
|
|
26
26
|
this.infotextsRepository = infotextsRepository;
|
|
27
27
|
this.infotextCacheRepository = infotextCacheRepository;
|
|
28
|
-
this.
|
|
28
|
+
this.transformation = transformation;
|
|
29
29
|
this.queueName = "refreshJISInfotextsCache";
|
|
30
30
|
this.queueTtl = 60 * 1000; // 1 minute
|
|
31
31
|
}
|
|
32
32
|
async execute() {
|
|
33
33
|
const infotexts = await this.infotextsRepository.findAll();
|
|
34
|
-
const transformedData = this.
|
|
34
|
+
const transformedData = this.transformation.transformArray(infotexts);
|
|
35
35
|
await this.infotextCacheRepository.refreshData(transformedData);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -40,9 +40,9 @@ exports.RefreshJISInfotextsCacheTask = RefreshJISInfotextsCacheTask = __decorate
|
|
|
40
40
|
(0, tsyringe_1.injectable)(),
|
|
41
41
|
__param(0, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRepository)),
|
|
42
42
|
__param(1, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRedisRepository)),
|
|
43
|
-
__param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.
|
|
43
|
+
__param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextCacheTransformation)),
|
|
44
44
|
__metadata("design:paramtypes", [JISInfotextsRepository_1.JISInfotextsRepository,
|
|
45
45
|
JISInfotextsRedisRepository_1.JISInfotextsRedisRepository,
|
|
46
|
-
|
|
46
|
+
JISInfotextCacheTransformation_1.JISInfotextCacheTransformation])
|
|
47
47
|
], RefreshJISInfotextsCacheTask);
|
|
48
48
|
//# sourceMappingURL=RefreshJISInfotextsCacheTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshJISInfotextsCacheTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAkE;AAClE,gGAA+F;AAC/F,sFAAqF;AACrF,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"RefreshJISInfotextsCacheTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAkE;AAClE,gGAA+F;AAC/F,sFAAqF;AACrF,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAC/C,yGAAwG;AAGjG,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,sCAAiB;IAI/D,YACsD,mBAAmD,EAC9C,uBAA4D,EACzD,cAAsD;QAEhH,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAJqB,wBAAmB,GAAnB,mBAAmB,CAAwB;QACtC,4BAAuB,GAAvB,uBAAuB,CAA6B;QACjD,mBAAc,GAAd,cAAc,CAAgC;QANpG,cAAS,GAAG,0BAA0B,CAAC;QACvC,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;IAQjD,CAAC;IAES,KAAK,CAAC,OAAO;QACnB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QAC3D,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QACtE,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAjBY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,sBAAsB,CAAC,CAAA;IAChD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,2BAA2B,CAAC,CAAA;IACrD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,8BAA8B,CAAC,CAAA;qCAFsB,+CAAsB;QACb,yDAA2B;QACjC,+DAA8B;GAP3G,4BAA4B,CAiBxC"}
|
|
@@ -71,6 +71,10 @@ const GenerateFilesTask_1 = require("../workers/gtfs-rt/tasks/GenerateFilesTask"
|
|
|
71
71
|
const JISContainerToken_1 = require("../../jis/ioc/JISContainerToken");
|
|
72
72
|
const JISEventsRepository_1 = require("../../jis/repositories/JISEventsRepository");
|
|
73
73
|
const JISEventsRopidGTFSRoutesRepository_1 = require("../../jis/repositories/JISEventsRopidGTFSRoutesRepository");
|
|
74
|
+
const JISInfotextsRepository_1 = require("../../jis/repositories/JISInfotextsRepository");
|
|
75
|
+
const JISInfotextsRopidGTFSStopsRepository_1 = require("../../jis/repositories/JISInfotextsRopidGTFSStopsRepository");
|
|
76
|
+
const JISInfotextsPresetsRepository_1 = require("../../jis/repositories/JISInfotextsPresetsRepository");
|
|
77
|
+
const RopidGTFSStopsModel_1 = require("../../ropid-gtfs/RopidGTFSStopsModel");
|
|
74
78
|
//#region Initialization
|
|
75
79
|
const VPContainer = Di_1.PidContainer.createChildContainer();
|
|
76
80
|
exports.VPContainer = VPContainer;
|
|
@@ -128,6 +132,10 @@ VPContainer.register(VPContainerToken_1.VPContainerToken.DelayComputationRedisRe
|
|
|
128
132
|
VPContainer.register(VPContainerToken_1.VPContainerToken.BlockStopsRedisRepository, cache_1.BlockStopsRedisRepository);
|
|
129
133
|
VPContainer.register(JISContainerToken_1.JISContainerToken.JISEventsRopidGTFSRoutesRepository, JISEventsRopidGTFSRoutesRepository_1.JISEventsRopidGTFSRoutesRepository);
|
|
130
134
|
VPContainer.register(VPContainerToken_1.VPContainerToken.JISEventsRepository, JISEventsRepository_1.JISEventsRepository);
|
|
135
|
+
VPContainer.register(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository);
|
|
136
|
+
VPContainer.register(JISContainerToken_1.JISContainerToken.JISInfotextsPresetsRepository, JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository);
|
|
137
|
+
VPContainer.register(JISContainerToken_1.JISContainerToken.RopidGTFSStopsRepository, RopidGTFSStopsModel_1.RopidGTFSStopsModel);
|
|
138
|
+
VPContainer.register(VPContainerToken_1.VPContainerToken.JISInfotextsRepository, JISInfotextsRepository_1.JISInfotextsRepository);
|
|
131
139
|
VPContainer.register(VPContainerToken_1.VPContainerToken.CommonRunsRepository, CommonRunsRepository_1.CommonRunsRepository);
|
|
132
140
|
VPContainer.register(VPContainerToken_1.VPContainerToken.RunTripsRedisRepository, RunTripsRedisRepository_1.RunTripsRedisRepository);
|
|
133
141
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/vehicle-positions/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,0HAAqH;AACrH,mIAA8H;AAE9H,qHAAkH;AAClH,mHAAgH;AAChH,qHAAkH;AAClH,+EAA4E;AAC5E,mFAAgF;AAChF,iFAA8E;AAC9E,4FAAyF;AACzF,8FAA2F;AAC3F,4GAAyG;AACzG,sGAAmG;AACnG,kGAA+F;AAC/F,mGAAgG;AAChG,+GAA4G;AAC5G,iGAA8F;AAC9F,mFAAgF;AAChF,uFAAoF;AACpF,qFAAkF;AAClF,uHAAoH;AACpH,uIAAoI;AACpI,qHAAkH;AAClH,iIAA8H;AAC9H,4GAAuG;AACvG,0GAAuG;AACvG,wHAAqH;AACrH,kJAA+I;AAC/I,8FAA2F;AAC3F,wGAAqG;AACrG,sHAAmH;AACnH,8FAA2F;AAC3F,sHAAmH;AACnH,gIAA6H;AAC7H,0HAAuH;AACvH,sHAAmH;AACnH,4FAAyF;AACzF,8FAA2F;AAC3F,2HAAwH;AACxH,8HAA2H;AAC3H,4GAAyG;AACzG,iJAA8I;AAC9I,+HAA4H;AAC5H,wGAAqG;AACrG,sHAAmH;AACnH,8GAA2G;AAC3G,4FAAyF;AACzF,wHAAqH;AACrH,8FAA2F;AAC3F,wGAAqG;AACrG,0FAAuF;AACvF,wFAAqF;AACrF,kGAA+F;AAC/F,0GAAuG;AACvG,sGAAmG;AACnG,kGAA+F;AAC/F,oHAAiH;AACjH,8EAAyE;AACzE,sFAAiF;AACjF,oFAA+E;AAC/E,8DAA8G;AAC9G,2FAAwF;AACxF,wGAAmG;AACnG,0HAAuH;AACvH,yDAAsD;AACtD,gGAA6F;AAC7F,kFAA+E;AAC/E,uEAAkE;AAClE,oFAA+E;AAC/E,kHAA6G;
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/vehicle-positions/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,0HAAqH;AACrH,mIAA8H;AAE9H,qHAAkH;AAClH,mHAAgH;AAChH,qHAAkH;AAClH,+EAA4E;AAC5E,mFAAgF;AAChF,iFAA8E;AAC9E,4FAAyF;AACzF,8FAA2F;AAC3F,4GAAyG;AACzG,sGAAmG;AACnG,kGAA+F;AAC/F,mGAAgG;AAChG,+GAA4G;AAC5G,iGAA8F;AAC9F,mFAAgF;AAChF,uFAAoF;AACpF,qFAAkF;AAClF,uHAAoH;AACpH,uIAAoI;AACpI,qHAAkH;AAClH,iIAA8H;AAC9H,4GAAuG;AACvG,0GAAuG;AACvG,wHAAqH;AACrH,kJAA+I;AAC/I,8FAA2F;AAC3F,wGAAqG;AACrG,sHAAmH;AACnH,8FAA2F;AAC3F,sHAAmH;AACnH,gIAA6H;AAC7H,0HAAuH;AACvH,sHAAmH;AACnH,4FAAyF;AACzF,8FAA2F;AAC3F,2HAAwH;AACxH,8HAA2H;AAC3H,4GAAyG;AACzG,iJAA8I;AAC9I,+HAA4H;AAC5H,wGAAqG;AACrG,sHAAmH;AACnH,8GAA2G;AAC3G,4FAAyF;AACzF,wHAAqH;AACrH,8FAA2F;AAC3F,wGAAqG;AACrG,0FAAuF;AACvF,wFAAqF;AACrF,kGAA+F;AAC/F,0GAAuG;AACvG,sGAAmG;AACnG,kGAA+F;AAC/F,oHAAiH;AACjH,8EAAyE;AACzE,sFAAiF;AACjF,oFAA+E;AAC/E,8DAA8G;AAC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AAC,iBAAiB,CAAC,mCAAgB,CAAC,qBAAqB,EAAE,6CAAqB,CAAC,CAAC;AAC7F,WAAW,CAAC,iBAAiB,CAAC,mCAAgB,CAAC,iBAAiB,EAAE,qCAAiB,CAAC,CAAC"}
|
|
@@ -88,6 +88,9 @@ const VPContainerToken = {
|
|
|
88
88
|
GtfsRtRedisRepository: Symbol("GtfsRtRedisRepository"),
|
|
89
89
|
GenerateFilesTask: Symbol("GenerateFilesTask"),
|
|
90
90
|
//#endregion
|
|
91
|
+
//#region JIS Infotexts (for GTFS-RT display alerts)
|
|
92
|
+
JISInfotextsRepository: Symbol("JISInfotextsRepository"),
|
|
93
|
+
//#endregion
|
|
91
94
|
};
|
|
92
95
|
exports.VPContainerToken = VPContainerToken;
|
|
93
96
|
//# sourceMappingURL=VPContainerToken.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VPContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/vehicle-positions/ioc/VPContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAG;IACrB,2BAA2B;IAC3B,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,8BAA8B,EAAE,MAAM,CAAC,gCAAgC,CAAC;IACxE,uBAAuB,EAAE,MAAM,CAA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,CAAC;IAC1E,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,YAAY;IAEZ,YAAY;IAEZ,iBAAiB;IACjB,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,YAAY;CACf,CAAC;AAEO,4CAAgB"}
|
|
1
|
+
{"version":3,"file":"VPContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/vehicle-positions/ioc/VPContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAG;IACrB,2BAA2B;IAC3B,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,8BAA8B,EAAE,MAAM,CAAC,gCAAgC,CAAC;IACxE,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAA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BAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,YAAY;IAEZ,YAAY;IAEZ,iBAAiB;IACjB,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,YAAY;IAEZ,oDAAoD;IACpD,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,YAAY;CACf,CAAC;AAEO,4CAAgB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JISEventsRepository } from "../../../../jis/repositories/JISEventsRepository";
|
|
2
|
+
import { JISInfotextsRepository } from "../../../../jis/repositories/JISInfotextsRepository";
|
|
3
|
+
import { ILogger } from "@golemio/core/dist/helpers/logger";
|
|
4
|
+
import { GtfsRtRedisRepository } from "../data-access/GtfsRtRedisRepository";
|
|
5
|
+
import { IFeedHeader } from "../interfaces/GtfsRealtimeInterfaces";
|
|
6
|
+
export declare class DisplayAlertsGenerator {
|
|
7
|
+
private readonly gtfsRtRedisRepository;
|
|
8
|
+
private readonly jisInfotextsRepository;
|
|
9
|
+
private readonly jisEventsRepository;
|
|
10
|
+
private readonly logger;
|
|
11
|
+
private readonly transformation;
|
|
12
|
+
private readonly suppressionFilter;
|
|
13
|
+
constructor(gtfsRtRedisRepository: GtfsRtRedisRepository, jisInfotextsRepository: JISInfotextsRepository, jisEventsRepository: JISEventsRepository, logger: ILogger);
|
|
14
|
+
generateDisplayAlerts(feedHeader: IFeedHeader): Promise<void>;
|
|
15
|
+
}
|
package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/DisplayAlertsGenerator.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisplayAlertsGenerator = void 0;
|
|
4
|
+
const JISInfotextStopSuppressionFilter_1 = require("../../../../../helpers/jis/JISInfotextStopSuppressionFilter");
|
|
5
|
+
const getJISStopId_1 = require("../../../../../helpers/jis/getJISStopId");
|
|
6
|
+
const DateTimeUtils_1 = require("../../../../../helpers/DateTimeUtils");
|
|
7
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
8
|
+
const ovapi_gtfs_realtime_bindings_1 = require("@golemio/ovapi-gtfs-realtime-bindings");
|
|
9
|
+
const JISInfotextsGtfsRtTransformation_1 = require("../transformations/JISInfotextsGtfsRtTransformation");
|
|
10
|
+
class DisplayAlertsGenerator {
|
|
11
|
+
constructor(gtfsRtRedisRepository, jisInfotextsRepository, jisEventsRepository, logger) {
|
|
12
|
+
this.gtfsRtRedisRepository = gtfsRtRedisRepository;
|
|
13
|
+
this.jisInfotextsRepository = jisInfotextsRepository;
|
|
14
|
+
this.jisEventsRepository = jisEventsRepository;
|
|
15
|
+
this.logger = logger;
|
|
16
|
+
this.transformation = new JISInfotextsGtfsRtTransformation_1.JISInfotextsGtfsRtTransformation();
|
|
17
|
+
this.suppressionFilter = new JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter();
|
|
18
|
+
}
|
|
19
|
+
async generateDisplayAlerts(feedHeader) {
|
|
20
|
+
const feedMessage = ovapi_gtfs_realtime_bindings_1.transit_realtime.FeedMessage.create({ header: feedHeader });
|
|
21
|
+
const now = feedHeader.timestamp ? new Date(feedHeader.timestamp * 1000) : new Date();
|
|
22
|
+
const activeInfotexts = await this.jisInfotextsRepository.findAllActive(now);
|
|
23
|
+
const currentTime = DateTimeUtils_1.DateTimeUtils.toLocalTimeFormat(now);
|
|
24
|
+
const windowFilteredInfotexts = activeInfotexts.filter((infotext) => {
|
|
25
|
+
if (!infotext.repeat_enabled)
|
|
26
|
+
return true;
|
|
27
|
+
return DateTimeUtils_1.DateTimeUtils.isInRepeatTimeWindow(infotext.repeat_time_start, infotext.repeat_time_end, currentTime);
|
|
28
|
+
});
|
|
29
|
+
const filteredInfotexts = this.suppressionFilter.filterInfotexts(windowFilteredInfotexts, { includeFuture: false });
|
|
30
|
+
const eventIds = [...new Set(filteredInfotexts.map((infotext) => infotext.jis_event_id))];
|
|
31
|
+
const eventsMap = await this.jisEventsRepository.findByIds(eventIds);
|
|
32
|
+
const infotextsWithResolvedEvent = filteredInfotexts.filter((infotext) => eventsMap.has(infotext.jis_event_id));
|
|
33
|
+
const inputs = infotextsWithResolvedEvent.flatMap((infotext) => {
|
|
34
|
+
const event = eventsMap.get(infotext.jis_event_id);
|
|
35
|
+
return (infotext.stops ?? []).map((stop) => ({ infotext, stopId: (0, getJISStopId_1.getJISStopId)(stop), event }));
|
|
36
|
+
});
|
|
37
|
+
const alerts = this.transformation.transformArray(inputs);
|
|
38
|
+
for (const alert of alerts) {
|
|
39
|
+
feedMessage.entity.push(ovapi_gtfs_realtime_bindings_1.transit_realtime.FeedEntity.fromObject(alert));
|
|
40
|
+
}
|
|
41
|
+
const verificationResult = ovapi_gtfs_realtime_bindings_1.transit_realtime.FeedMessage.verify(feedMessage);
|
|
42
|
+
if (verificationResult !== null) {
|
|
43
|
+
this.logger.error(new golemio_errors_1.GeneralError("Invalid GTFS-RT message for feed 'pid_display_alerts'", this.constructor.name, verificationResult, undefined, "pid"));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const buffer = ovapi_gtfs_realtime_bindings_1.transit_realtime.FeedMessage.encode(feedMessage).finish();
|
|
47
|
+
await Promise.all([
|
|
48
|
+
this.gtfsRtRedisRepository.set("pid_display_alerts_timestamp", feedMessage.header.timestamp),
|
|
49
|
+
this.gtfsRtRedisRepository.hset("pid_display_alerts.pb", buffer.toString("binary")),
|
|
50
|
+
]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.DisplayAlertsGenerator = DisplayAlertsGenerator;
|
|
54
|
+
//# sourceMappingURL=DisplayAlertsGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayAlertsGenerator.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/gtfs-rt/helpers/DisplayAlertsGenerator.ts"],"names":[],"mappings":";;;AAAA,kHAAiG;AACjG,0EAAyD;AACzD,wEAAuD;AAIvD,6EAAwE;AACxE,wFAAyF;AAGzF,0GAAuG;AAEvG,MAAa,sBAAsB;IAI/B,YACqB,qBAA4C,EAC5C,sBAA8C,EAC9C,mBAAwC,EACxC,MAAe;QAHf,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,WAAM,GAAN,MAAM,CAAS;QAEhC,IAAI,CAAC,cAAc,GAAG,IAAI,mEAAgC,EAAE,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,mEAAgC,EAAE,CAAC;IACpE,CAAC;IAEM,KAAK,CAAC,qBAAqB,CAAC,UAAuB;QACtD,MAAM,WAAW,GAAG,+CAAY,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;QAE5E,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAE,UAAU,CAAC,SAAoB,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;QAElG,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAE7E,MAAM,WAAW,GAAG,6BAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,uBAAuB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChE,IA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AW,CAAC,MAAM,CAAC,IAAI,CAAC,+CAAY,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QACvE,CAAC;QAED,MAAM,kBAAkB,GAAG,+CAAY,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxE,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,IAAI,CAAC,MAAM,CAAC,KAAK,CACb,IAAI,6BAAY,CACZ,uDAAuD,EACvD,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,kBAAkB,EAClB,SAAS,EACT,KAAK,CACR,CACJ,CAAC;YACF,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,+CAAY,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,EAAY,CAAC;QAC/E,MAAM,OAAO,CAAC,GAAG,CAAC;YACd,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,8BAA8B,EAAE,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC;YAC5F,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,uBAAuB,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SACtF,CAAC,CAAC;IACP,CAAC;CACJ;AA9DD,wDA8DC"}
|
package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.d.ts
CHANGED
|
@@ -4,12 +4,13 @@ export interface IGtfsRtAlert {
|
|
|
4
4
|
id: string;
|
|
5
5
|
alert: {
|
|
6
6
|
activePeriod: GtfsTimeRange[];
|
|
7
|
-
informedEntity: InformedEntityRoute
|
|
7
|
+
informedEntity: Array<InformedEntityRoute | InformedEntityStop>;
|
|
8
8
|
cause: GtfsAlertCauseEnum;
|
|
9
9
|
causeDetail: {
|
|
10
10
|
translation: GtfsTranslatedString[];
|
|
11
11
|
};
|
|
12
12
|
effect: GtfsAlertEffectEnum;
|
|
13
|
+
severityLevel?: GtfsAlertSeverityLevelEnum;
|
|
13
14
|
url: {
|
|
14
15
|
translation: GtfsTranslatedString[];
|
|
15
16
|
};
|
|
@@ -24,6 +25,15 @@ export interface IGtfsRtAlert {
|
|
|
24
25
|
export interface InformedEntityRoute {
|
|
25
26
|
routeId: string;
|
|
26
27
|
}
|
|
28
|
+
export interface InformedEntityStop {
|
|
29
|
+
stopId: string;
|
|
30
|
+
}
|
|
31
|
+
export declare enum GtfsAlertSeverityLevelEnum {
|
|
32
|
+
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
33
|
+
INFO = "INFO",
|
|
34
|
+
WARNING = "WARNING",
|
|
35
|
+
SEVERE = "SEVERE"
|
|
36
|
+
}
|
|
27
37
|
export interface GtfsTimeRange {
|
|
28
38
|
start: number;
|
|
29
39
|
end?: number;
|
package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GtfsAlertSeverityLevelEnum = void 0;
|
|
4
|
+
var GtfsAlertSeverityLevelEnum;
|
|
5
|
+
(function (GtfsAlertSeverityLevelEnum) {
|
|
6
|
+
GtfsAlertSeverityLevelEnum["UNKNOWN_SEVERITY"] = "UNKNOWN_SEVERITY";
|
|
7
|
+
GtfsAlertSeverityLevelEnum["INFO"] = "INFO";
|
|
8
|
+
GtfsAlertSeverityLevelEnum["WARNING"] = "WARNING";
|
|
9
|
+
GtfsAlertSeverityLevelEnum["SEVERE"] = "SEVERE";
|
|
10
|
+
})(GtfsAlertSeverityLevelEnum || (exports.GtfsAlertSeverityLevelEnum = GtfsAlertSeverityLevelEnum = {}));
|
|
3
11
|
//# sourceMappingURL=AlertsInterfaces.js.map
|
package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AlertsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces.ts"],"names":[],"mappings":";;;AAkCA,IAAY,0BAKX;AALD,WAAY,0BAA0B;IAClC,mEAAqC,CAAA;IACrC,2CAAa,CAAA;IACb,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;AACrB,CAAC,EALW,0BAA0B,0CAA1B,0BAA0B,QAKrC"}
|
package/dist/integration-engine/vehicle-positions/workers/gtfs-rt/tasks/GenerateFilesTask.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JISEventsRepository } from "../../../../jis/repositories/JISEventsRepository";
|
|
2
|
+
import { JISInfotextsRepository } from "../../../../jis/repositories/JISInfotextsRepository";
|
|
2
3
|
import type { TripsRepository } from "../../vehicle-positions/data-access/TripsRepository";
|
|
3
4
|
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
4
5
|
import { ILogger } from "@golemio/core/dist/helpers/logger";
|
|
@@ -15,15 +16,17 @@ export declare class GenerateFilesTask extends AbstractEmptyTask {
|
|
|
15
16
|
readonly queueName = "generateFiles";
|
|
16
17
|
readonly queueTtl: number;
|
|
17
18
|
private readonly alertsGenerator;
|
|
19
|
+
private readonly displayAlertsGenerator;
|
|
18
20
|
private readonly vehicleDescriptor;
|
|
19
21
|
private lockTimeout;
|
|
20
22
|
private refreshInterval;
|
|
21
|
-
constructor(config: ISimpleConfig, logger: ILogger, jisEventsRepository: JISEventsRepository, stopTimeRepository: PublicStopTimeCacheRepository, tripsRepository: TripsRepository, gtfsRtRedisRepository: GtfsRtRedisRepository);
|
|
23
|
+
constructor(config: ISimpleConfig, logger: ILogger, jisEventsRepository: JISEventsRepository, jisInfotextsRepository: JISInfotextsRepository, stopTimeRepository: PublicStopTimeCacheRepository, tripsRepository: TripsRepository, gtfsRtRedisRepository: GtfsRtRedisRepository);
|
|
22
24
|
protected execute(): Promise<void>;
|
|
23
25
|
private logFinishTime;
|
|
24
26
|
private readStopTimeIds;
|
|
25
27
|
private speedMpsToKmh;
|
|
26
28
|
private feedEntityFromTripData;
|
|
29
|
+
private currentStopAssignedStopId;
|
|
27
30
|
private stopTimeUpdatesFromVehicleTrip;
|
|
28
31
|
protected generateFiles(): Promise<void>;
|
|
29
32
|
/**
|