@golemio/pid 4.0.3 → 4.0.4-dev.2004342551
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/README.md +1 -1
- package/db/example/redis/gtfsStopsCacheMock.json +8 -0
- package/db/example/redis/jisCacheMock.json +31 -0
- package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +53 -0
- package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +47 -0
- package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +47 -0
- package/dist/helpers/GtfsStopParser.d.ts +2 -0
- package/dist/helpers/GtfsStopParser.js +11 -8
- package/dist/helpers/GtfsStopParser.js.map +1 -1
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +6 -0
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +11 -0
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +1 -0
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +0 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
- package/dist/integration-engine/jis/ioc/Di.js +10 -0
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +4 -0
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +5 -0
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +9 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +86 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +1 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +6 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +50 -2
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +7 -0
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +37 -0
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +1 -0
- package/dist/integration-engine/jis/workers/JISWorker.js +1 -0
- package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +13 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +47 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +1 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +1 -2
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +5 -4
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.d.ts +18 -0
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js +44 -0
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.d.ts +5 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js +24 -0
- package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/index.d.ts +1 -0
- package/dist/integration-engine/ropid-gtfs/index.js +1 -0
- package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +8 -0
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +3 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +3 -0
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js +1 -1
- package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +8 -5
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.d.ts +12 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js +44 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.d.ts +12 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +87 -0
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.d.ts +1 -0
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js +1 -0
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +2 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.d.ts +3 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js +124 -109
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.d.ts +3 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.js +100 -85
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
- 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/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +2 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
- package/dist/output-gateway/index.js +1 -0
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +17 -0
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +113 -0
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +1 -0
- package/dist/output-gateway/jis/ioc/Di.js +2 -2
- package/dist/output-gateway/jis/ioc/Di.js.map +1 -1
- package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +2 -0
- package/dist/output-gateway/jis/ioc/OgJisToken.js +2 -0
- package/dist/output-gateway/jis/ioc/OgJisToken.js.map +1 -1
- package/dist/output-gateway/pid/controllers/v3/V3TransferBoardsController.js.map +1 -1
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +17 -0
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +155 -0
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +1 -0
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +14 -0
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +3 -0
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +1 -0
- package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +5 -0
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +4 -1
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +7 -1
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +5 -0
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +33 -0
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +1 -0
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +6 -0
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +61 -0
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +1 -0
- package/dist/output-gateway/pid/index.d.ts +50 -0
- package/dist/output-gateway/pid/index.js.map +1 -1
- package/dist/output-gateway/pid/ioc/Di.js +64 -6
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +12 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js +12 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
- package/dist/output-gateway/pid/routers/index.d.ts +1 -0
- package/dist/output-gateway/pid/routers/index.js +3 -1
- package/dist/output-gateway/pid/routers/index.js.map +1 -1
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +16 -0
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +67 -0
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +1 -0
- package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +7 -2
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js +29 -4
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +12 -3
- package/dist/output-gateway/pid/service/facade/StopFacade.js +43 -7
- package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +17 -10
- package/dist/output-gateway/pid/service/facade/TransferFacade.js +161 -16
- package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +7 -1
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +9 -0
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +13 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +31 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +1 -0
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +27 -0
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +77 -0
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +1 -0
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +7 -4
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +1 -1
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.d.ts +1 -0
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js +21 -0
- package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js.map +1 -1
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.d.ts +2 -1
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js +14 -15
- package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js.map +1 -1
- package/dist/output-gateway/public/domain/repository/IGtfsDepartureRepository.d.ts +1 -1
- package/dist/output-gateway/public/ioc/Di.js +1 -1
- package/dist/output-gateway/public/ioc/Di.js.map +1 -1
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +13 -0
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +83 -0
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +1 -0
- package/dist/output-gateway/shared/constants/route-version.d.ts +2 -1
- package/dist/output-gateway/shared/constants/route-version.js +1 -0
- package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
- package/dist/output-gateway/{public → shared}/service/VPSubscriber.d.ts +4 -2
- package/dist/output-gateway/{public → shared}/service/VPSubscriber.js +1 -1
- package/dist/output-gateway/shared/service/VPSubscriber.js.map +1 -0
- package/dist/schema-definitions/jis/redis/const.d.ts +1 -0
- package/dist/schema-definitions/jis/redis/const.js +2 -1
- package/dist/schema-definitions/jis/redis/const.js.map +1 -1
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +17 -0
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +3 -0
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +1 -0
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +3 -0
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +59 -0
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +1 -0
- package/dist/schema-definitions/ropid-departures-presets/index.d.ts +1 -0
- package/dist/schema-definitions/ropid-departures-presets/index.js +3 -0
- package/dist/schema-definitions/ropid-departures-presets/index.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.d.ts +16 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js +3 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js.map +1 -0
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopDto.d.ts +1 -0
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.d.ts +58 -0
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js +69 -0
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js.map +1 -0
- package/dist/schema-definitions/ropid-gtfs/redis/const.d.ts +1 -0
- package/dist/schema-definitions/ropid-gtfs/redis/const.js +2 -1
- package/dist/schema-definitions/ropid-gtfs/redis/const.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +3 -2
- 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/IPublicApiCacheDto.d.ts +2 -0
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +1 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +8 -0
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +4 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
- package/docs/assets/V4Transferboards.svg +4 -0
- package/docs/assets/V4transferboards.drawio +191 -0
- package/docs/asyncapi.yaml +45 -0
- package/docs/cache/types/redis.md +81 -2
- package/docs/jis/index.md +15 -5
- package/docs/openapi-input.yaml +13 -2
- package/docs/openapi-output.yaml +326 -4
- package/package.json +2 -2
- package/dist/output-gateway/public/service/VPSubscriber.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextStopSuppressionFilter.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"JISInfotextStopSuppressionFilter.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.ts"],"names":[],"mappings":";;;;;;;;;AAEA,uCAAsC;AAEtC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAKtB,IAAM,gCAAgC,8CAAtC,MAAM,gCAAgC;IAClC,qBAAqB,CAA0B,IAAS;QAC3D,MAAM,eAAe,GAAG,IAAI,GAAG,CAAsB;YACjD,CAAC,kBAAkB,EAAE,IAAI,GAAG,EAAU,CAAC;YACvC,CAAC,CAAC,EAAE,IAAI,GAAG,EAAU,CAAC;YACtB,CAAC,CAAC,EAAE,IAAI,GAAG,EAAU,CAAC,EAAE,OAAO;SAClC,CAAC,CAAC;QAEH,IAAI,YAAY,GAAQ,EAAE,CAAC;QAE3B,KAAK,MAAM,QAAQ,IAAI,IAAI,EAAE;YACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;gBACjB,SAAS;aACZ;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;YAExE,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;gBACjD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAE/B,IAAI,MAAc,CAAC;gBACnB,IAAI,cAAc,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,UAAU,EAAE;oBACnE,MAAM,G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AC;CACJ,CAAA;2CAzEY,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;GACA,gCAAgC,CAyE5C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferBoardFilter = void 0;
|
|
4
|
+
class TransferBoardFilter {
|
|
5
|
+
static filterDepartures(transfers, limit, timeFrom) {
|
|
6
|
+
const filteredDepartures = [];
|
|
7
|
+
for (const transfer of transfers) {
|
|
8
|
+
if (filteredDepartures.length === limit) {
|
|
9
|
+
break;
|
|
10
|
+
}
|
|
11
|
+
if (!this.isInRange(transfer, timeFrom)) {
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
filteredDepartures.push(transfer);
|
|
15
|
+
}
|
|
16
|
+
// Departures are already sorted so that metro ones are first
|
|
17
|
+
return filteredDepartures;
|
|
18
|
+
}
|
|
19
|
+
static isInRange(departure, timeFrom) {
|
|
20
|
+
const timeRangeStart = timeFrom;
|
|
21
|
+
// add one hour
|
|
22
|
+
const timeRangeEnd = timeFrom + 60 * 60 * 1000;
|
|
23
|
+
const departureMinutes = departure.departure_timestamp.minutes[0] === "<1" ? 1 : Number(departure.departure_timestamp.minutes[0]);
|
|
24
|
+
if (isNaN(departureMinutes))
|
|
25
|
+
return false;
|
|
26
|
+
// Calculate the departure time
|
|
27
|
+
const departureTime = timeRangeStart + departureMinutes * 60 * 1000;
|
|
28
|
+
// Check if departureTime is within the range
|
|
29
|
+
return departureTime >= timeRangeStart && departureTime <= timeRangeEnd;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.TransferBoardFilter = TransferBoardFilter;
|
|
33
|
+
//# sourceMappingURL=TransferBoardFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransferBoardFilter.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/helpers/TransferBoardFilter.ts"],"names":[],"mappings":";;;AAEA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
|
+
const RouteTypeEnums_1 = require("../../../helpers/RouteTypeEnums");
|
|
6
|
+
class TransferBoardSorter {
|
|
7
|
+
static sortDepartures(departures) {
|
|
8
|
+
departures.sort((a, b) => {
|
|
9
|
+
for (const compareFn of this.compareFnPipeline) {
|
|
10
|
+
const res = compareFn(a, b);
|
|
11
|
+
if (res !== 0)
|
|
12
|
+
return res;
|
|
13
|
+
}
|
|
14
|
+
return 0;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TransferBoardSorter = TransferBoardSorter;
|
|
19
|
+
_a = TransferBoardSorter;
|
|
20
|
+
TransferBoardSorter.compareFns = {
|
|
21
|
+
metroFirst: (a, b) => {
|
|
22
|
+
const aIsMetro = a.departure.route_type === RouteTypeEnums_1.GTFSRouteTypeEnum.METRO;
|
|
23
|
+
const bIsMetro = b.departure.route_type === RouteTypeEnums_1.GTFSRouteTypeEnum.METRO;
|
|
24
|
+
if (aIsMetro !== bIsMetro)
|
|
25
|
+
return aIsMetro ? -1 : 1;
|
|
26
|
+
return 0;
|
|
27
|
+
},
|
|
28
|
+
metroNameAsc: (a, b) => {
|
|
29
|
+
const aIsMetro = a.departure.route_type === RouteTypeEnums_1.GTFSRouteTypeEnum.METRO;
|
|
30
|
+
const bIsMetro = b.departure.route_type === RouteTypeEnums_1.GTFSRouteTypeEnum.METRO;
|
|
31
|
+
if (aIsMetro && bIsMetro && a.departure.route_short_name !== null && b.departure.route_short_name !== null)
|
|
32
|
+
return a.departure.route_short_name.localeCompare(b.departure.route_short_name);
|
|
33
|
+
return 0;
|
|
34
|
+
},
|
|
35
|
+
departureTimeAsc: (a, b) => {
|
|
36
|
+
const aTimestamp = a.departure.predictedDepartureTimestamp;
|
|
37
|
+
const bTimestamp = b.departure.predictedDepartureTimestamp;
|
|
38
|
+
if (aTimestamp && bTimestamp) {
|
|
39
|
+
return aTimestamp - bTimestamp;
|
|
40
|
+
}
|
|
41
|
+
if (!aTimestamp && !bTimestamp)
|
|
42
|
+
return 0;
|
|
43
|
+
if (!bTimestamp)
|
|
44
|
+
return -1;
|
|
45
|
+
return 1;
|
|
46
|
+
},
|
|
47
|
+
directionIdAsc: (a, b) => {
|
|
48
|
+
const aDirectionId = a.position?.detailed_info.direction_id;
|
|
49
|
+
const bDirectionId = b.position?.detailed_info.direction_id;
|
|
50
|
+
if (aDirectionId !== bDirectionId)
|
|
51
|
+
return aDirectionId ? -1 : 1;
|
|
52
|
+
return 0;
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
TransferBoardSorter.compareFnPipeline = [
|
|
56
|
+
_a.compareFns.metroFirst,
|
|
57
|
+
_a.compareFns.metroNameAsc,
|
|
58
|
+
_a.compareFns.departureTimeAsc,
|
|
59
|
+
_a.compareFns.directionIdAsc,
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=TransferBoardSorter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransferBoardSorter.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/helpers/TransferBoardSorter.ts"],"names":[],"mappings":";;;;AAAA,oEAA4D;AAG5D,MAAa,mBAAmB;IACrB,MAAM,CAAC,cAAc,CAAC,UAAoC;QAC7D,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACrB,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC5C,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC5B,IAAI,GAAG,KAAK,CAAC;oBAAE,OAAO,GAAG,CAAC;aAC7B;YACD,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC;;AATL,kDAiDC;;AAtC2B,8BAAU,GAAqF;IACnH,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACjB,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,UAAU,KAAK,kCAAiB,CA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AAM,YAAY,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC;QAC5D,MAAM,YAAY,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC;QAC5D,IAAI,YAAY,KAAK,YAAY;YAAE,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChE,OAAO,CAAC,CAAC;IACb,CAAC;CACJ,AA9BiC,CA8BhC;AAEsB,qCAAiB,GAAG;IACxC,EAAI,CAAC,UAAU,CAAC,UAAU;IAC1B,EAAI,CAAC,UAAU,CAAC,YAAY;IAC5B,EAAI,CAAC,UAAU,CAAC,gBAAgB;IAChC,EAAI,CAAC,UAAU,CAAC,cAAc;CACjC,AALwC,CAKvC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { GtfsStopWheelchairBoardingEnum, GtfsTripWheelchairAccessEnum } from "../../helpers/AccessibilityEnums";
|
|
2
2
|
import { GTFSRouteTypeEnum } from "../../helpers/RouteTypeEnums";
|
|
3
3
|
import { DeparturesDirectionsEnum } from "../../schema-definitions/ropid-departures-directions";
|
|
4
|
+
import { IPublicGtfsDepartureCacheDto } from "../../schema-definitions/ropid-gtfs/redis/interfaces/IPublicGtfsDepartureCacheDto";
|
|
5
|
+
import { IPublicApiCacheDto } from "../../schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto";
|
|
6
|
+
import { IPublicStopTimeCacheDto } from "../../schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto";
|
|
7
|
+
import { IV4InfotextTransferOutputDto } from "./domain/InfotextInterfaces";
|
|
4
8
|
export * from "./routers";
|
|
5
9
|
export * from "./models";
|
|
6
10
|
export type DepartureUnion = IPIDDeparture | ITransferDeparture;
|
|
@@ -107,6 +111,52 @@ export interface ITransferOutputDto {
|
|
|
107
111
|
id: string;
|
|
108
112
|
};
|
|
109
113
|
}
|
|
114
|
+
export interface IV4TransferDto {
|
|
115
|
+
transfers: IDepartureWithPosition[];
|
|
116
|
+
currentTrip: ICurrentTrip;
|
|
117
|
+
}
|
|
118
|
+
export interface IDepartureWithPosition {
|
|
119
|
+
departure: IPublicGtfsDepartureCacheDto & {
|
|
120
|
+
predictedDepartureDate?: Date;
|
|
121
|
+
predictedDepartureTimestamp?: number;
|
|
122
|
+
};
|
|
123
|
+
position: IPublicApiCacheDto | null;
|
|
124
|
+
stopTime: IPublicStopTimeCacheDto | null;
|
|
125
|
+
}
|
|
126
|
+
export interface ICurrentTrip {
|
|
127
|
+
departure: IPublicGtfsDepartureCacheDto | null;
|
|
128
|
+
position: IPublicApiCacheDto | null;
|
|
129
|
+
stopTime: IPublicStopTimeCacheDto | null;
|
|
130
|
+
}
|
|
131
|
+
export interface IV4TransferDepartureOutputDto {
|
|
132
|
+
departure_timestamp: {
|
|
133
|
+
minutes: string[];
|
|
134
|
+
};
|
|
135
|
+
route: {
|
|
136
|
+
short_name: string | null;
|
|
137
|
+
type: number | null;
|
|
138
|
+
};
|
|
139
|
+
stop: {
|
|
140
|
+
platform_code: string | null;
|
|
141
|
+
};
|
|
142
|
+
trip: {
|
|
143
|
+
headsign: string;
|
|
144
|
+
id: string;
|
|
145
|
+
is_wheelchair_accessible: boolean | null;
|
|
146
|
+
};
|
|
147
|
+
icons: string[];
|
|
148
|
+
substitution_text: {
|
|
149
|
+
cs: string;
|
|
150
|
+
en: string | null;
|
|
151
|
+
} | null;
|
|
152
|
+
}
|
|
153
|
+
export interface IV4TransferOutputDto {
|
|
154
|
+
platform_code?: string | null;
|
|
155
|
+
stop_name?: string | null;
|
|
156
|
+
icons: string[];
|
|
157
|
+
departures: IV4TransferDepartureOutputDto[];
|
|
158
|
+
infotexts: IV4InfotextTransferOutputDto[];
|
|
159
|
+
}
|
|
110
160
|
export interface IStop {
|
|
111
161
|
stop_id: string;
|
|
112
162
|
stop_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/pid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/pid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAQA,4CAA0B;AAC1B,2CAAyB;AAgKzB,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,yCAAuB,CAAA;AAC3B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,eAQX;AARD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,2CAAwB,CAAA;IACxB,0DAAuC,CAAA;IACvC,oDAAiC,CAAA;IACjC,mEAAgD,CAAA;IAChD,qEAAkD,CAAA;IAClD,8EAA2D,CAAA;AAC/D,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,mCAAkB,CAAA;IAClB,8BAA8B;AAClC,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB"}
|
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OgPidContainer = void 0;
|
|
4
|
+
const GtfsStopParser_1 = require("../../../helpers/GtfsStopParser");
|
|
5
|
+
const JISInfotextsRedisRepository_1 = require("../../jis/data-access/cache/JISInfotextsRedisRepository");
|
|
4
6
|
const PublicVehiclePositionsRepository_1 = require("../../public/data-access/redis/PublicVehiclePositionsRepository");
|
|
5
7
|
const CisStopGroupRepository_1 = require("../../ropid-gtfs/data-access/CisStopGroupRepository");
|
|
6
8
|
const RunTripsRedisRepository_1 = require("../../ropid-gtfs/data-access/redis/RunTripsRedisRepository");
|
|
7
9
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
10
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
11
|
+
const V3DeparturesPresetController_1 = require("../controllers/v3/V3DeparturesPresetController");
|
|
8
12
|
const V3InfotextsController_1 = require("../controllers/v3/V3InfotextsController");
|
|
9
13
|
const V3TransferBoardsController_1 = require("../controllers/v3/V3TransferBoardsController");
|
|
14
|
+
const V4TransferBoardsController_1 = require("../controllers/v4/V4TransferBoardsController");
|
|
10
15
|
const data_access_1 = require("../data-access");
|
|
11
16
|
const JISInfotextRepository_1 = require("../data-access/JISInfotextRepository");
|
|
12
17
|
const JISInfotextRopidGTFSStopsRepository_1 = require("../data-access/JISInfotextRopidGTFSStopsRepository");
|
|
18
|
+
const RopidDeparturesPresetRepository_1 = require("../data-access/RopidDeparturesPresetRepository");
|
|
19
|
+
const RopidDeparturesPresetsRopidGTFSStopsRepository_1 = require("../data-access/RopidDeparturesPresetsRopidGTFSStopsRepository");
|
|
13
20
|
const JISInfotextStopSuppressionFilter_1 = require("../helpers/JISInfotextStopSuppressionFilter");
|
|
14
21
|
const InfotextFacade_1 = require("../service/facade/InfotextFacade");
|
|
22
|
+
const RopidDeparturesPresetFacade_1 = require("../service/facade/RopidDeparturesPresetFacade");
|
|
15
23
|
const StopFacade_1 = require("../service/facade/StopFacade");
|
|
16
24
|
const TransferFacade_1 = require("../service/facade/TransferFacade");
|
|
17
25
|
const JISInfotextDepartureTransformation_1 = require("../service/transformations/JISInfotextDepartureTransformation");
|
|
18
26
|
const JISInfotextOverviewTransformation_1 = require("../service/transformations/JISInfotextOverviewTransformation");
|
|
19
27
|
const JISInfotextTransferTransformation_1 = require("../service/transformations/JISInfotextTransferTransformation");
|
|
28
|
+
const RopidDeparturesPresetTransformation_1 = require("../service/transformations/RopidDeparturesPresetTransformation");
|
|
20
29
|
const TransferDepartureTransformation_1 = require("../service/transformations/TransferDepartureTransformation");
|
|
21
30
|
const OgPidToken_1 = require("./OgPidToken");
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
31
|
+
const GtfsStopsRedisRepository_1 = require("../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository");
|
|
32
|
+
const VPSubscriber_1 = require("../../shared/service/VPSubscriber");
|
|
33
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
34
|
+
const const_1 = require("../../../schema-definitions/ropid-gtfs/redis/const");
|
|
35
|
+
const const_2 = require("../../../schema-definitions/jis/redis/const");
|
|
36
|
+
const PublicGtfsDepartureRepository_1 = require("../../public/data-access/redis/PublicGtfsDepartureRepository");
|
|
37
|
+
const VehicleDescriptorCachedRepository_1 = require("../../public/data-access/VehicleDescriptorCachedRepository");
|
|
38
|
+
const PublicStopTimeRepository_1 = require("../../public/data-access/redis/PublicStopTimeRepository");
|
|
39
|
+
const DelayComputationRepository_1 = require("../../public/data-access/redis/DelayComputationRepository");
|
|
40
|
+
const const_3 = require("../../../schema-definitions/vehicle-positions/redis/const");
|
|
41
|
+
const JISInfotextCacheTransferTransformation_1 = require("../service/transformations/JISInfotextCacheTransferTransformation");
|
|
42
|
+
const TransferDepartureCacheTransformation_1 = require("../service/transformations/TransferDepartureCacheTransformation");
|
|
28
43
|
const ogPidContainer = ioc_1.OutputGatewayContainer.createChildContainer();
|
|
29
44
|
exports.OgPidContainer = ogPidContainer;
|
|
30
45
|
//#region Repositories
|
|
@@ -36,6 +51,12 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RunTripsRedisRepository
|
|
|
36
51
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository, PublicVehiclePositionsRepository_1.PublicVehiclePositionsRepository);
|
|
37
52
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetRepository, RopidDeparturesPresetRepository_1.RopidDeparturesPresetRepository);
|
|
38
53
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetsRopidGTFSStopsRepository, RopidDeparturesPresetsRopidGTFSStopsRepository_1.RopidDeparturesPresetsRopidGTFSStopsRepository);
|
|
54
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository, GtfsStopsRedisRepository_1.GtfsStopsRedisRepository);
|
|
55
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository, JISInfotextsRedisRepository_1.JISInfotextsRedisRepository);
|
|
56
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicGtfsDepartureRepository, PublicGtfsDepartureRepository_1.PublicGtfsDepartureRepository);
|
|
57
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.VehicleDescriptorCachedRepository, VehicleDescriptorCachedRepository_1.VehicleDescriptorCachedRepository);
|
|
58
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicStopTimeRepository, PublicStopTimeRepository_1.PublicStopTimeRepository);
|
|
59
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.DelayComputationRepository, DelayComputationRepository_1.DelayComputationRepository);
|
|
39
60
|
//#endregion
|
|
40
61
|
//#region Transformations
|
|
41
62
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextDepartureTransformation, JISInfotextDepartureTransformation_1.JISInfotextDepartureTransformation);
|
|
@@ -43,6 +64,8 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextTransferTran
|
|
|
43
64
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextOverviewTransformation, JISInfotextOverviewTransformation_1.JISInfotextOverviewTransformation);
|
|
44
65
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureTransformation, TransferDepartureTransformation_1.TransferDepartureTransformation);
|
|
45
66
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetTransformation, RopidDeparturesPresetTransformation_1.RopidDeparturesPresetTransformation);
|
|
67
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextCacheTransferTransformation, JISInfotextCacheTransferTransformation_1.JISInfotextCacheTransferTransformation);
|
|
68
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureCacheTransformation, TransferDepartureCacheTransformation_1.TransferDepartureCacheTransformation);
|
|
46
69
|
//#endregion
|
|
47
70
|
//#region Facade
|
|
48
71
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.StopFacade, StopFacade_1.StopFacade);
|
|
@@ -54,8 +77,43 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetFa
|
|
|
54
77
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3TransferBoardsController, V3TransferBoardsController_1.V3TransferBoardsController);
|
|
55
78
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3InfotextsController, V3InfotextsController_1.V3InfotextsController);
|
|
56
79
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3RopidDeparturesPresetController, V3DeparturesPresetController_1.V3RopidDeparturesPresetController);
|
|
80
|
+
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V4TransferBoardsController, V4TransferBoardsController_1.V4TransferBoardsController);
|
|
57
81
|
//#endregion
|
|
58
82
|
//#region Helpers
|
|
59
83
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextStopSuppressionFilter, JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter);
|
|
60
84
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopParser, GtfsStopParser_1.GtfsStopParser);
|
|
85
|
+
//#endregion
|
|
86
|
+
ogPidContainer.register(OgPidToken_1.OgPidToken.GtfsStopsSubscriber, {
|
|
87
|
+
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
88
|
+
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
89
|
+
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
90
|
+
return new VPSubscriber_1.VPSubscriber({
|
|
91
|
+
channelName: const_1.GTFS_STOPS_NAMESPACE_PREFIX,
|
|
92
|
+
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
93
|
+
logger: logger,
|
|
94
|
+
}, c.resolve(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository));
|
|
95
|
+
}),
|
|
96
|
+
});
|
|
97
|
+
ogPidContainer.register(OgPidToken_1.OgPidToken.JisInotextsSubscriber, {
|
|
98
|
+
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
99
|
+
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
100
|
+
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
101
|
+
return new VPSubscriber_1.VPSubscriber({
|
|
102
|
+
channelName: const_2.JIS_NAMESPACE_PREFIX,
|
|
103
|
+
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
104
|
+
logger: logger,
|
|
105
|
+
}, c.resolve(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository));
|
|
106
|
+
}),
|
|
107
|
+
});
|
|
108
|
+
ogPidContainer.register(OgPidToken_1.OgPidToken.VPSubscriber, {
|
|
109
|
+
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
110
|
+
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
111
|
+
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
112
|
+
return new VPSubscriber_1.VPSubscriber({
|
|
113
|
+
channelName: const_3.PUBLIC_CACHE_NAMESPACE_PREFIX,
|
|
114
|
+
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
115
|
+
logger: logger,
|
|
116
|
+
}, c.resolve(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository));
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
61
119
|
//# sourceMappingURL=Di.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,sHAAiH;AACjH,gGAA2F;AAC3F,wGAAmG;AACnG,+DAA+E;
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AACzD,yGAAoG;AACpG,sHAAiH;AACjH,gGAA2F;AAC3F,wGAAmG;AACnG,+DAA+E;AAC/E,iEAAiG;AACjG,iGAAmG;AACnG,mFAAgF;AAChF,6FAA0F;AAC1F,6FAA0F;AAC1F,gDAAsD;AACtD,gFAA6E;AAC7E,4GAAyG;AACzG,oGAAiG;AACjG,kIAA+H;AAC/H,kGAA+F;AAC/F,qEAAkE;AAClE,+FAA4F;AAC5F,6DAA0D;AAC1D,qEAAkE;AAClE,sHAAmH;AACnH,oHAAiH;AACjH,oHAAiH;AACjH,wHAAqH;AACrH,gHAA6G;AAC7G,6CAA0C;AAC1C,0GAAqG;AACrG,oEAA+D;AAG/D,wEAAqE;AACrE,8EAA0E;AAC1E,uEAA4D;AAC5D,gHAA2G;AAC3G,kHAA6G;AAC7G,sGAAiG;AACjG,0GAAqG;AAErG,qFAAmF;AACnF,8HAA2H;AAC3H,0HAAuH;AAEvH,MAAM,cAAc,GAAwB,4BAAsB,CAAC,oBAAoB,EAAE,CAAC;AAmG/D,wCAAc;AAjGzC,sBAAsB;AACtB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AAC5F,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,mCAAmC,EAAE,yEAAmC,CAAC,CAAC;AACtH,cAAc,CAAC,iBAAi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,CAAC;QAChE,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAU,qBAAS,CAAC,MAAM,CAAC,CAAC;QAEpD,OAAO,IAAI,2BAAY,CACnB;YACI,WAAW,EAAE,qCAA6B;YAC1C,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAS,gBAAgB,CAAC;YAChE,MAAM,EAAE,MAAM;SACjB,EACD,CAAC,CAAC,OAAO,CAA8B,uBAAU,CAAC,gCAAgC,CAAC,CACtF,CAAC;IACN,CAAC,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -2,16 +2,24 @@ export declare const OgPidToken: {
|
|
|
2
2
|
CisStopGroupRepository: symbol;
|
|
3
3
|
JISInfotextRopidGTFSStopsRepository: symbol;
|
|
4
4
|
JISInfotextRepository: symbol;
|
|
5
|
+
JISInfotextsRedisRepository: symbol;
|
|
5
6
|
DeparturesRepository: symbol;
|
|
6
7
|
RunTripsRedisRepository: symbol;
|
|
7
8
|
PublicVehiclePositionsRepository: symbol;
|
|
8
9
|
RopidDeparturesPresetRepository: symbol;
|
|
9
10
|
RopidDeparturesPresetsRopidGTFSStopsRepository: symbol;
|
|
11
|
+
GtfsStopsRedisRepository: symbol;
|
|
12
|
+
PublicGtfsDepartureRepository: symbol;
|
|
13
|
+
VehicleDescriptorCachedRepository: symbol;
|
|
14
|
+
PublicStopTimeRepository: symbol;
|
|
15
|
+
DelayComputationRepository: symbol;
|
|
10
16
|
JISInfotextDepartureTransformation: symbol;
|
|
11
17
|
JISInfotextTransferTransformation: symbol;
|
|
12
18
|
JISInfotextOverviewTransformation: symbol;
|
|
13
19
|
TransferDepartureTransformation: symbol;
|
|
14
20
|
RopidDeparturesPresetTransformation: symbol;
|
|
21
|
+
JISInfotextCacheTransferTransformation: symbol;
|
|
22
|
+
TransferDepartureCacheTransformation: symbol;
|
|
15
23
|
StopFacade: symbol;
|
|
16
24
|
InfotextFacade: symbol;
|
|
17
25
|
TransferFacade: symbol;
|
|
@@ -19,6 +27,10 @@ export declare const OgPidToken: {
|
|
|
19
27
|
V3TransferBoardsController: symbol;
|
|
20
28
|
V3InfotextsController: symbol;
|
|
21
29
|
V3RopidDeparturesPresetController: symbol;
|
|
30
|
+
V4TransferBoardsController: symbol;
|
|
22
31
|
JISInfotextStopSuppressionFilter: symbol;
|
|
23
32
|
GtfsStopParser: symbol;
|
|
33
|
+
GtfsStopsSubscriber: symbol;
|
|
34
|
+
JisInotextsSubscriber: symbol;
|
|
35
|
+
VPSubscriber: symbol;
|
|
24
36
|
};
|
|
@@ -6,11 +6,17 @@ exports.OgPidToken = {
|
|
|
6
6
|
CisStopGroupRepository: Symbol("CisStopGroupRepository"),
|
|
7
7
|
JISInfotextRopidGTFSStopsRepository: Symbol("JISInfotextRopidGTFSStopsRepository"),
|
|
8
8
|
JISInfotextRepository: Symbol("JISInfotextRepository"),
|
|
9
|
+
JISInfotextsRedisRepository: Symbol("JISInfotextsRedisRepository"),
|
|
9
10
|
DeparturesRepository: Symbol("DeparturesRepository"),
|
|
10
11
|
RunTripsRedisRepository: Symbol("RunTripsRedisRepository"),
|
|
11
12
|
PublicVehiclePositionsRepository: Symbol("PublicVehiclePositionsRepository"),
|
|
12
13
|
RopidDeparturesPresetRepository: Symbol("RopidDeparturesPresetRepository"),
|
|
13
14
|
RopidDeparturesPresetsRopidGTFSStopsRepository: Symbol("RopidDeparturesPresetsRopidGTFSStopsRepository"),
|
|
15
|
+
GtfsStopsRedisRepository: Symbol("GtfsStopsRedisRepository"),
|
|
16
|
+
PublicGtfsDepartureRepository: Symbol("PublicGtfsDepartureRepository"),
|
|
17
|
+
VehicleDescriptorCachedRepository: Symbol("VehicleDescriptorCachedRepository"),
|
|
18
|
+
PublicStopTimeRepository: Symbol("PublicStopTimeRepository"),
|
|
19
|
+
DelayComputationRepository: Symbol("DelayComputationRepository"),
|
|
14
20
|
//#endregion
|
|
15
21
|
//#region Transformations
|
|
16
22
|
JISInfotextDepartureTransformation: Symbol("JISInfotextDepartureTransformation"),
|
|
@@ -18,6 +24,8 @@ exports.OgPidToken = {
|
|
|
18
24
|
JISInfotextOverviewTransformation: Symbol("JISInfotextOverviewTransformation"),
|
|
19
25
|
TransferDepartureTransformation: Symbol("TransferDepartureTransformation"),
|
|
20
26
|
RopidDeparturesPresetTransformation: Symbol("RopidDeparturesPresetTransformation"),
|
|
27
|
+
JISInfotextCacheTransferTransformation: Symbol("JISInfotextCacheTransferTransformation"),
|
|
28
|
+
TransferDepartureCacheTransformation: Symbol("TransferDepartureCacheTransformation"),
|
|
21
29
|
//#endregion
|
|
22
30
|
//#region Facade
|
|
23
31
|
StopFacade: Symbol("StopFacade"),
|
|
@@ -29,10 +37,14 @@ exports.OgPidToken = {
|
|
|
29
37
|
V3TransferBoardsController: Symbol("V3TransferBoardsController"),
|
|
30
38
|
V3InfotextsController: Symbol("V3InfotextsController"),
|
|
31
39
|
V3RopidDeparturesPresetController: Symbol("V3RopidDeparturesPresetController"),
|
|
40
|
+
V4TransferBoardsController: Symbol("V4TransferBoardsController"),
|
|
32
41
|
//#endregion
|
|
33
42
|
//#region Helpers
|
|
34
43
|
JISInfotextStopSuppressionFilter: Symbol("JISInfotextStopSuppressionFilter"),
|
|
35
44
|
GtfsStopParser: Symbol("GtfsStopParser"),
|
|
45
|
+
GtfsStopsSubscriber: Symbol("GtfsStopsSubscriber"),
|
|
46
|
+
JisInotextsSubscriber: Symbol("JisInotextsSubscriber"),
|
|
47
|
+
VPSubscriber: Symbol("VPSubscriber"),
|
|
36
48
|
//#endregion
|
|
37
49
|
};
|
|
38
50
|
//# sourceMappingURL=OgPidToken.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OgPidToken.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/OgPidToken.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,sBAAsB;IACtB,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,mCAAmC,EAAE,MAAM,CAAC,qCAAqC,C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,qBAAqB;IACrB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,iCAAiC,EAAE,MAAM,CAAC,mCAAmC,CAAC;IAC9E,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,YAAY;IAEZ,iBAAiB;IACjB,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;IACpC,YAAY;CACf,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.v3PidRouter = exports.v2PidRouter = void 0;
|
|
3
|
+
exports.v4PidRouter = exports.v3PidRouter = exports.v2PidRouter = void 0;
|
|
4
4
|
var V2PIDRouter_1 = require("./v2/V2PIDRouter");
|
|
5
5
|
Object.defineProperty(exports, "v2PidRouter", { enumerable: true, get: function () { return V2PIDRouter_1.v2PidRouter; } });
|
|
6
6
|
var V3PIDRouter_1 = require("./v3/V3PIDRouter");
|
|
7
7
|
Object.defineProperty(exports, "v3PidRouter", { enumerable: true, get: function () { return V3PIDRouter_1.v3PidRouter; } });
|
|
8
|
+
var V4PIDRouter_1 = require("./v4/V4PIDRouter");
|
|
9
|
+
Object.defineProperty(exports, "v4PidRouter", { enumerable: true, get: function () { return V4PIDRouter_1.v4PidRouter; } });
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/routers/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/routers/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="express" />
|
|
2
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
3
|
+
import { Router } from "@golemio/core/dist/shared/express";
|
|
4
|
+
export declare class V4PIDRouter extends AbstractRouter {
|
|
5
|
+
readonly router: Router;
|
|
6
|
+
private readonly cacheHeaderMiddleware;
|
|
7
|
+
private readonly transferBoardsController;
|
|
8
|
+
private readonly GtfsStopsSubscriber;
|
|
9
|
+
private readonly VPSubscriber;
|
|
10
|
+
private readonly JisInotextsSubscriber;
|
|
11
|
+
constructor();
|
|
12
|
+
protected initRoutes: () => void;
|
|
13
|
+
private registerTransferBoardsRoutes;
|
|
14
|
+
}
|
|
15
|
+
declare const v4PidRouter: AbstractRouter;
|
|
16
|
+
export { v4PidRouter };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v4PidRouter = exports.V4PIDRouter = void 0;
|
|
4
|
+
const RouteTypeEnums_1 = require("../../../../helpers/RouteTypeEnums");
|
|
5
|
+
const ParamValidatorManager_1 = require("../../helpers/ParamValidatorManager");
|
|
6
|
+
const Di_1 = require("../../ioc/Di");
|
|
7
|
+
const OgPidToken_1 = require("../../ioc/OgPidToken");
|
|
8
|
+
const constants_1 = require("../../../shared/constants");
|
|
9
|
+
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
10
|
+
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
11
|
+
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
12
|
+
const express_1 = require("@golemio/core/dist/shared/express");
|
|
13
|
+
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
14
|
+
const const_1 = require("../../../../const");
|
|
15
|
+
class V4PIDRouter extends AbstractRouter_1.AbstractRouter {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(constants_1.RouteVersion.v4, "pid");
|
|
18
|
+
this.router = (0, express_1.Router)();
|
|
19
|
+
this.initRoutes = () => {
|
|
20
|
+
this.registerTransferBoardsRoutes();
|
|
21
|
+
};
|
|
22
|
+
this.registerTransferBoardsRoutes = () => {
|
|
23
|
+
const transferBoardsValidation = [
|
|
24
|
+
(0, express_validator_1.query)("aswId").optional().custom(ParamValidatorManager_1.ParamValidatorManager.getAswIdsValidator()).not().isArray(),
|
|
25
|
+
(0, express_validator_1.query)("cisId").optional().isInt({ min: const_1.PG_INT_MIN, max: const_1.PG_INT_MAX }).toInt(10).not().isArray(),
|
|
26
|
+
(0, express_validator_1.oneOf)([
|
|
27
|
+
[
|
|
28
|
+
(0, express_validator_1.query)("aswId").exists(),
|
|
29
|
+
(0, express_validator_1.query)("vehicleRegistrationNumber").exists(),
|
|
30
|
+
(0, express_validator_1.query)("tripNumber").not().exists(),
|
|
31
|
+
(0, express_validator_1.query)("cisId").not().exists(),
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
(0, express_validator_1.query)("cisId").exists(),
|
|
35
|
+
(0, express_validator_1.query)("tripNumber").exists(),
|
|
36
|
+
(0, express_validator_1.query)("aswId").not().exists(),
|
|
37
|
+
(0, express_validator_1.query)("vehicleRegistrationNumber").not().exists(),
|
|
38
|
+
],
|
|
39
|
+
], {
|
|
40
|
+
message: "Either an aswId+vehicleRegistrationNumber (and no cisId+tripNumber), " +
|
|
41
|
+
"or a cisId+tripNumber (and aswId+vehicleRegistrationNumber) must be provided",
|
|
42
|
+
}),
|
|
43
|
+
(0, express_validator_1.query)("tripNumber").optional().isInt({ min: 0 }).toInt(10).not().isArray(),
|
|
44
|
+
(0, express_validator_1.query)("vehicleRegistrationNumber").optional().not().isEmpty({ ignore_whitespace: true }).not().isArray(),
|
|
45
|
+
(0, express_validator_1.query)("routeType").exists().isInt().isIn(Object.values(RouteTypeEnums_1.GTFSRouteTypeEnum)).toInt(10).not().isArray(),
|
|
46
|
+
(0, express_validator_1.query)("timeFrom").optional().isISO8601().custom(ParamValidatorManager_1.ParamValidatorManager.getTimeFromValidator()).not().isArray(),
|
|
47
|
+
(0, express_validator_1.query)("limit").optional().isInt({ min: 0 }).toInt(10).not().isArray(),
|
|
48
|
+
];
|
|
49
|
+
this.router.get("/transferboards", transferBoardsValidation, Validation_1.checkErrors,
|
|
50
|
+
// max-age 5 seconds, stale-while-revalidate 5 seconds
|
|
51
|
+
this.cacheHeaderMiddleware.getMiddleware(5, 5), this.transferBoardsController.getTransferBoardData);
|
|
52
|
+
};
|
|
53
|
+
this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
54
|
+
this.transferBoardsController = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.V4TransferBoardsController);
|
|
55
|
+
this.GtfsStopsSubscriber = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.GtfsStopsSubscriber);
|
|
56
|
+
this.GtfsStopsSubscriber.initialize();
|
|
57
|
+
this.JisInotextsSubscriber = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.JisInotextsSubscriber);
|
|
58
|
+
this.JisInotextsSubscriber.initialize();
|
|
59
|
+
this.VPSubscriber = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.VPSubscriber);
|
|
60
|
+
this.VPSubscriber.initialize();
|
|
61
|
+
this.initRoutes();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.V4PIDRouter = V4PIDRouter;
|
|
65
|
+
const v4PidRouter = new V4PIDRouter();
|
|
66
|
+
exports.v4PidRouter = v4PidRouter;
|
|
67
|
+
//# sourceMappingURL=V4PIDRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V4PIDRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/routers/v4/V4PIDRouter.ts"],"names":[],"mappings":";;;AAAA,uEAA4D;AAE5D,+EAA8E;AAC9E,qCAAgD;AAChD,qDAAoD;AAEpD,yDAAoD;AACpD,sFAAmF;AAEnF,6EAA2E;AAC3E,+DAA+F;AAC/F,+DAA2D;AAC3D,mFAA2E;AAC3E,6CAAmD;AAEnD,MAAa,WAAY,SAAQ,+BAAc;IAQ3C;QACI,KAAK,CAAC,wBAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QARlB,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QAoBhC,eAAU,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,4BAA4B,EAAE,CAAC;QACxC,CAAC,CAAC;QAEM,iCAA4B,GAAG,GAAG,EAAE;YACxC,MAAM,wBAAwB,GAAG;gBAC7B,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,6CAAqB,CAAC,kBAAkB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;gBAC5F,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,kBAAU,EAAE,GAAG,EAAE,kBAAU,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;gBAC/F,IAAA,yBAAK,EACD;oBACI;wBACI,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,MAAM,EAAE;wBACvB,IAAA,yBAAK,EAAC,2BAA2B,CAAC,CAAC,MAAM,EAAE;wBAC3C,IAAA,yBAAK,EAAC,YAAY,CAAC,CAAC,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,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;aACxE,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,iBAAiB,EACjB,wBAAwB,EACxB,wBAAW;YACX,sDAAsD;YACtD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9C,IAAI,CAAC,wBAAwB,CAAC,oBAAoB,CACrD,CAAC;QACN,CAAC,CAAC;QAvDE,IAAI,CAAC,qBAAqB,GAAG,4BAAsB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,wBAAwB,GAAG,mBAAc,CAAC,OAAO,CAA6B,uBAAU,CAAC,0BAA0B,CAAC,CAAC;QAC1H,IAAI,CAAC,mBAAmB,GAAG,mBAAc,CAAC,OAAO,CAAe,uBAAU,CAAC,mBAAmB,CAAC,CAAC;QAChG,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,CAAC;QACtC,IAAI,CAAC,qBAAqB,GAAG,mBAAc,CAAC,OAAO,CAAe,uBAAU,CAAC,qBAAqB,CAAC,CAAC;QACpG,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,mBAAc,CAAC,OAAO,CAAe,uBAAU,CAAC,YAAY,CAAC,CAAC;QAClF,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CA+CJ;AAlED,kCAkEC;AAED,MAAM,WAAW,GAAmB,IAAI,WAAW,EAAE,CAAC;AAC7C,kCAAW"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import { JISInfotextsRedisRepository } from "../../../jis/data-access/cache/JISInfotextsRedisRepository";
|
|
1
2
|
import { JISInfotextRepository } from "../../data-access/JISInfotextRepository";
|
|
2
|
-
import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto } from "../../domain/InfotextInterfaces";
|
|
3
|
+
import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto, IV4InfotextTransferOutputDto } from "../../domain/InfotextInterfaces";
|
|
3
4
|
import { JISInfotextStopSuppressionFilter } from "../../helpers/JISInfotextStopSuppressionFilter";
|
|
4
5
|
import { IGetDeparturesOptions } from "../../models/interfaces/IGetDeparturesOptions";
|
|
5
6
|
import { Moment } from "@golemio/core/dist/shared/moment-timezone";
|
|
6
7
|
import { JISInfotextDepartureTransformation } from "../transformations/JISInfotextDepartureTransformation";
|
|
7
8
|
import { JISInfotextOverviewTransformation } from "../transformations/JISInfotextOverviewTransformation";
|
|
8
9
|
import { JISInfotextTransferTransformation } from "../transformations/JISInfotextTransferTransformation";
|
|
10
|
+
import { JISInfotextCacheTransferTransformation } from "../transformations/JISInfotextCacheTransferTransformation";
|
|
9
11
|
export declare class InfotextFacade {
|
|
10
12
|
private infotextRepository;
|
|
11
13
|
private infotextDepartureTransformation;
|
|
12
14
|
private infotextTransferTransformation;
|
|
13
15
|
private infotextOverviewTransformation;
|
|
14
16
|
private infotextStopFilter;
|
|
15
|
-
|
|
17
|
+
private infotextsRedisRepository;
|
|
18
|
+
private cacheTransferTransformation;
|
|
19
|
+
constructor(infotextRepository: JISInfotextRepository, infotextDepartureTransformation: JISInfotextDepartureTransformation, infotextTransferTransformation: JISInfotextTransferTransformation, infotextOverviewTransformation: JISInfotextOverviewTransformation, infotextStopFilter: JISInfotextStopSuppressionFilter, infotextsRedisRepository: JISInfotextsRedisRepository, cacheTransferTransformation: JISInfotextCacheTransferTransformation);
|
|
16
20
|
getInfotextsForDepartureBoards(stopIds: string[], currentMoment: Moment, options: IGetDeparturesOptions): Promise<IInfotextDepartureOutputDto[]>;
|
|
17
21
|
getInfotextsForTransferBoards(stopIds: string[], currentMoment: Moment, timeFrom: Moment | null): Promise<IInfotextTransferOutputDto[]>;
|
|
18
22
|
getInfotextsForOverview(): Promise<IInfotextOverviewOutputDto[]>;
|
|
23
|
+
getInfotextsCache(stopIds: string[], currentMoment: Date, timeFrom: Date | null): Promise<IV4InfotextTransferOutputDto[]>;
|
|
19
24
|
}
|