@golemio/pid 4.0.2-dev.1982507419 → 4.0.2-rc.1988899397
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/dist/helpers/GtfsStopParser.d.ts +0 -2
- package/dist/helpers/GtfsStopParser.js +8 -11
- package/dist/helpers/GtfsStopParser.js.map +1 -1
- package/dist/input-gateway/jis/controllers/JISEventsController.js +2 -1
- package/dist/input-gateway/jis/controllers/JISEventsController.js.map +1 -1
- package/dist/input-gateway/jis/controllers/JISInfotextsController.js +2 -1
- package/dist/input-gateway/jis/controllers/JISInfotextsController.js.map +1 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +1 -0
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
- package/dist/integration-engine/jis/ioc/Di.js +0 -10
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -4
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -5
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +1 -6
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +2 -50
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/workers/JISWorker.js +0 -1
- package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +2 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +4 -5
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.d.ts +1 -5
- package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js +0 -24
- 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 +0 -1
- package/dist/integration-engine/ropid-gtfs/index.js +0 -1
- package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -8
- package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -3
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -3
- 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 +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +5 -8
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +0 -1
- 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 +1 -2
- 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 +0 -1
- 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 +0 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
- package/dist/output-gateway/index.js +0 -1
- package/dist/output-gateway/index.js.map +1 -1
- 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 +0 -2
- package/dist/output-gateway/jis/ioc/OgJisToken.js +0 -2
- 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/domain/InfotextInterfaces.d.ts +0 -5
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +1 -4
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +1 -7
- package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
- package/dist/output-gateway/pid/index.d.ts +0 -50
- package/dist/output-gateway/pid/index.js.map +1 -1
- package/dist/output-gateway/pid/ioc/Di.js +6 -62
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -11
- package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -11
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
- package/dist/output-gateway/pid/routers/index.d.ts +0 -1
- package/dist/output-gateway/pid/routers/index.js +1 -3
- package/dist/output-gateway/pid/routers/index.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +2 -7
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js +4 -29
- package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +3 -12
- package/dist/output-gateway/pid/service/facade/StopFacade.js +7 -43
- package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +9 -11
- package/dist/output-gateway/pid/service/facade/TransferFacade.js +14 -117
- package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +1 -7
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +0 -12
- package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +4 -4
- package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +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/{shared → public}/service/VPSubscriber.d.ts +2 -4
- package/dist/output-gateway/{shared → public}/service/VPSubscriber.js +1 -1
- package/dist/output-gateway/public/service/VPSubscriber.js.map +1 -0
- package/dist/output-gateway/shared/constants/route-version.d.ts +1 -2
- package/dist/output-gateway/shared/constants/route-version.js +0 -1
- package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
- package/dist/schema-definitions/jis/redis/const.d.ts +0 -1
- package/dist/schema-definitions/jis/redis/const.js +1 -2
- package/dist/schema-definitions/jis/redis/const.js.map +1 -1
- package/dist/schema-definitions/ropid-departures-presets/index.d.ts +0 -1
- package/dist/schema-definitions/ropid-departures-presets/index.js +0 -3
- package/dist/schema-definitions/ropid-departures-presets/index.js.map +1 -1
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopDto.d.ts +0 -1
- package/dist/schema-definitions/ropid-gtfs/redis/const.d.ts +0 -1
- package/dist/schema-definitions/ropid-gtfs/redis/const.js +1 -2
- package/dist/schema-definitions/ropid-gtfs/redis/const.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +2 -3
- package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +0 -4
- 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 +0 -1
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto.d.ts +0 -2
- package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +0 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +0 -8
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +1 -4
- package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
- package/docs/asyncapi.yaml +0 -45
- package/docs/cache/types/redis.md +2 -82
- package/docs/jis/index.md +5 -15
- package/docs/openapi-input.yaml +2 -13
- package/docs/openapi-output.yaml +4 -326
- package/package.json +2 -2
- package/db/example/redis/gtfsStopsCacheMock.json +0 -8
- package/db/example/redis/jisCacheMock.json +0 -31
- package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +0 -53
- package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +0 -47
- package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +0 -47
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +0 -6
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +0 -11
- package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +0 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +0 -9
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +0 -86
- package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +0 -1
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +0 -7
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +0 -37
- package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +0 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +0 -13
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +0 -47
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.d.ts +0 -18
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js +0 -44
- package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.d.ts +0 -12
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js +0 -44
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.d.ts +0 -12
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +0 -87
- package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js.map +0 -1
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +0 -17
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +0 -113
- package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +0 -1
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +0 -17
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +0 -154
- package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +0 -1
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +0 -14
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +0 -3
- package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +0 -1
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +0 -5
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +0 -33
- package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +0 -1
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +0 -6
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +0 -61
- package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +0 -1
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +0 -16
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +0 -67
- package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +0 -1
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +0 -13
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +0 -31
- package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +0 -1
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +0 -27
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +0 -78
- package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +0 -1
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +0 -13
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +0 -83
- package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +0 -1
- package/dist/output-gateway/shared/service/VPSubscriber.js.map +0 -1
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +0 -17
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +0 -3
- package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +0 -1
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +0 -3
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +0 -59
- package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +0 -1
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.d.ts +0 -16
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js +0 -3
- package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js.map +0 -1
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.d.ts +0 -58
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js +0 -69
- package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js.map +0 -1
|
@@ -1,44 +1,30 @@
|
|
|
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");
|
|
6
4
|
const PublicVehiclePositionsRepository_1 = require("../../public/data-access/redis/PublicVehiclePositionsRepository");
|
|
7
5
|
const CisStopGroupRepository_1 = require("../../ropid-gtfs/data-access/CisStopGroupRepository");
|
|
8
6
|
const RunTripsRedisRepository_1 = require("../../ropid-gtfs/data-access/redis/RunTripsRedisRepository");
|
|
9
7
|
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");
|
|
12
8
|
const V3InfotextsController_1 = require("../controllers/v3/V3InfotextsController");
|
|
13
9
|
const V3TransferBoardsController_1 = require("../controllers/v3/V3TransferBoardsController");
|
|
14
|
-
const V4TransferBoardsController_1 = require("../controllers/v4/V4TransferBoardsController");
|
|
15
10
|
const data_access_1 = require("../data-access");
|
|
16
11
|
const JISInfotextRepository_1 = require("../data-access/JISInfotextRepository");
|
|
17
12
|
const JISInfotextRopidGTFSStopsRepository_1 = require("../data-access/JISInfotextRopidGTFSStopsRepository");
|
|
18
|
-
const RopidDeparturesPresetRepository_1 = require("../data-access/RopidDeparturesPresetRepository");
|
|
19
|
-
const RopidDeparturesPresetsRopidGTFSStopsRepository_1 = require("../data-access/RopidDeparturesPresetsRopidGTFSStopsRepository");
|
|
20
13
|
const JISInfotextStopSuppressionFilter_1 = require("../helpers/JISInfotextStopSuppressionFilter");
|
|
21
14
|
const InfotextFacade_1 = require("../service/facade/InfotextFacade");
|
|
22
|
-
const RopidDeparturesPresetFacade_1 = require("../service/facade/RopidDeparturesPresetFacade");
|
|
23
15
|
const StopFacade_1 = require("../service/facade/StopFacade");
|
|
24
16
|
const TransferFacade_1 = require("../service/facade/TransferFacade");
|
|
25
17
|
const JISInfotextDepartureTransformation_1 = require("../service/transformations/JISInfotextDepartureTransformation");
|
|
26
18
|
const JISInfotextOverviewTransformation_1 = require("../service/transformations/JISInfotextOverviewTransformation");
|
|
27
19
|
const JISInfotextTransferTransformation_1 = require("../service/transformations/JISInfotextTransferTransformation");
|
|
28
|
-
const RopidDeparturesPresetTransformation_1 = require("../service/transformations/RopidDeparturesPresetTransformation");
|
|
29
20
|
const TransferDepartureTransformation_1 = require("../service/transformations/TransferDepartureTransformation");
|
|
30
21
|
const OgPidToken_1 = require("./OgPidToken");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const VehicleDescriptorCachedRepository_1 = require("../../public/data-access/VehicleDescriptorCachedRepository");
|
|
38
|
-
const PublicStopTimeRepository_1 = require("../../public/data-access/redis/PublicStopTimeRepository");
|
|
39
|
-
const const_3 = require("../../../schema-definitions/vehicle-positions/redis/const");
|
|
40
|
-
const JISInfotextCacheTransferTransformation_1 = require("../service/transformations/JISInfotextCacheTransferTransformation");
|
|
41
|
-
const TransferDepartureCacheTransformation_1 = require("../service/transformations/TransferDepartureCacheTransformation");
|
|
22
|
+
const RopidDeparturesPresetFacade_1 = require("../service/facade/RopidDeparturesPresetFacade");
|
|
23
|
+
const V3DeparturesPresetController_1 = require("../controllers/v3/V3DeparturesPresetController");
|
|
24
|
+
const RopidDeparturesPresetRepository_1 = require("../data-access/RopidDeparturesPresetRepository");
|
|
25
|
+
const RopidDeparturesPresetsRopidGTFSStopsRepository_1 = require("../data-access/RopidDeparturesPresetsRopidGTFSStopsRepository");
|
|
26
|
+
const RopidDeparturesPresetTransformation_1 = require("../service/transformations/RopidDeparturesPresetTransformation");
|
|
27
|
+
const GtfsStopParser_1 = require("../../../helpers/GtfsStopParser");
|
|
42
28
|
const ogPidContainer = ioc_1.OutputGatewayContainer.createChildContainer();
|
|
43
29
|
exports.OgPidContainer = ogPidContainer;
|
|
44
30
|
//#region Repositories
|
|
@@ -50,11 +36,6 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RunTripsRedisRepository
|
|
|
50
36
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository, PublicVehiclePositionsRepository_1.PublicVehiclePositionsRepository);
|
|
51
37
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetRepository, RopidDeparturesPresetRepository_1.RopidDeparturesPresetRepository);
|
|
52
38
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetsRopidGTFSStopsRepository, RopidDeparturesPresetsRopidGTFSStopsRepository_1.RopidDeparturesPresetsRopidGTFSStopsRepository);
|
|
53
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository, GtfsStopsRedisRepository_1.GtfsStopsRedisRepository);
|
|
54
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository, JISInfotextsRedisRepository_1.JISInfotextsRedisRepository);
|
|
55
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicGtfsDepartureRepository, PublicGtfsDepartureRepository_1.PublicGtfsDepartureRepository);
|
|
56
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.VehicleDescriptorCachedRepository, VehicleDescriptorCachedRepository_1.VehicleDescriptorCachedRepository);
|
|
57
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicStopTimeRepository, PublicStopTimeRepository_1.PublicStopTimeRepository);
|
|
58
39
|
//#endregion
|
|
59
40
|
//#region Transformations
|
|
60
41
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextDepartureTransformation, JISInfotextDepartureTransformation_1.JISInfotextDepartureTransformation);
|
|
@@ -62,8 +43,6 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextTransferTran
|
|
|
62
43
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextOverviewTransformation, JISInfotextOverviewTransformation_1.JISInfotextOverviewTransformation);
|
|
63
44
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureTransformation, TransferDepartureTransformation_1.TransferDepartureTransformation);
|
|
64
45
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetTransformation, RopidDeparturesPresetTransformation_1.RopidDeparturesPresetTransformation);
|
|
65
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextCacheTransferTransformation, JISInfotextCacheTransferTransformation_1.JISInfotextCacheTransferTransformation);
|
|
66
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureCacheTransformation, TransferDepartureCacheTransformation_1.TransferDepartureCacheTransformation);
|
|
67
46
|
//#endregion
|
|
68
47
|
//#region Facade
|
|
69
48
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.StopFacade, StopFacade_1.StopFacade);
|
|
@@ -75,43 +54,8 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetFa
|
|
|
75
54
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3TransferBoardsController, V3TransferBoardsController_1.V3TransferBoardsController);
|
|
76
55
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3InfotextsController, V3InfotextsController_1.V3InfotextsController);
|
|
77
56
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3RopidDeparturesPresetController, V3DeparturesPresetController_1.V3RopidDeparturesPresetController);
|
|
78
|
-
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V4TransferBoardsController, V4TransferBoardsController_1.V4TransferBoardsController);
|
|
79
57
|
//#endregion
|
|
80
58
|
//#region Helpers
|
|
81
59
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextStopSuppressionFilter, JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter);
|
|
82
60
|
ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopParser, GtfsStopParser_1.GtfsStopParser);
|
|
83
|
-
//#endregion
|
|
84
|
-
ogPidContainer.register(OgPidToken_1.OgPidToken.GtfsStopsSubscriber, {
|
|
85
|
-
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
86
|
-
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
87
|
-
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
88
|
-
return new VPSubscriber_1.VPSubscriber({
|
|
89
|
-
channelName: const_1.GTFS_STOPS_NAMESPACE_PREFIX,
|
|
90
|
-
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
91
|
-
logger: logger,
|
|
92
|
-
}, c.resolve(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository));
|
|
93
|
-
}),
|
|
94
|
-
});
|
|
95
|
-
ogPidContainer.register(OgPidToken_1.OgPidToken.JisInotextsSubscriber, {
|
|
96
|
-
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
97
|
-
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
98
|
-
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
99
|
-
return new VPSubscriber_1.VPSubscriber({
|
|
100
|
-
channelName: const_2.JIS_NAMESPACE_PREFIX,
|
|
101
|
-
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
102
|
-
logger: logger,
|
|
103
|
-
}, c.resolve(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository));
|
|
104
|
-
}),
|
|
105
|
-
});
|
|
106
|
-
ogPidContainer.register(OgPidToken_1.OgPidToken.VPSubscriber, {
|
|
107
|
-
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
|
|
108
|
-
const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
109
|
-
const logger = c.resolve(CoreToken_1.CoreToken.Logger);
|
|
110
|
-
return new VPSubscriber_1.VPSubscriber({
|
|
111
|
-
channelName: const_3.PUBLIC_CACHE_NAMESPACE_PREFIX,
|
|
112
|
-
redisConnectionString: config.getValue("env.REDIS_CONN"),
|
|
113
|
-
logger: logger,
|
|
114
|
-
}, c.resolve(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository));
|
|
115
|
-
}),
|
|
116
|
-
});
|
|
117
61
|
//# sourceMappingURL=Di.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,
|
|
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;AAE/E,mFAAgF;AAChF,6FAA0F;AAC1F,gDAAsD;AACtD,gFAA6E;AAC7E,4GAAyG;AACzG,kGAA+F;AAC/F,qEAAkE;AAClE,6DAA0D;AAC1D,qEAAkE;AAClE,sHAAmH;AACnH,oHAAiH;AACjH,oHAAiH;AACjH,gHAA6G;AAC7G,6CAA0C;AAC1C,+FAA4F;AAC5F,iGAAmG;AACnG,oGAAiG;AACjG,kIAA+H;AAC/H,wHAAqH;AACrH,oEAAyD;AAEzD,MAAM,cAAc,GAAwB,4BAAsB,CAAC,oBAAoB,EAAE,CAAC;AA0C/D,wCAAc;AAxCzC,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,iBAAiB,CAAC,uBAAU,CAAC,qBAAqB,EAAE,6CAAqB,CAAC,CAAC;AAC1F,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,oBAAoB,EAAE,kCAAoB,CAAC,CAAC;AACxF,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,uBAAuB,EAAE,iDAAuB,CAAC,CAAC;AAC9F,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,gCAAgC,EAAE,mEAAgC,CAAC,CAAC;AAChH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,+BAA+B,EAAE,iEAA+B,CAAC,CAAC;AAC9G,cAAc,CAAC,iBAAiB,CAC5B,uBAAU,CAAC,8CAA8C,EACzD,+FAA8C,CACjD,CAAC;AACF,YAAY;AAEZ,yBAAyB;AACzB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,kCAAkC,EAAE,uEAAkC,CAAC,CAAC;AACpH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,iCAAiC,EAAE,qEAAiC,CAAC,CAAC;AAClH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,iCAAiC,EAAE,qEAAiC,CAAC,CAAC;AAClH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,+BAA+B,EAAE,iEAA+B,CAAC,CAAC;AAC9G,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,mCAAmC,EAAE,yEAAmC,CAAC,CAAC;AACtH,YAAY;AAEZ,gBAAgB;AAChB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,CAAC;AACpE,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC;AAC5E,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC;AAC5E,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,2BAA2B,EAAE,yDAA2B,CAAC,CAAC;AACtG,YAAY;AAEZ,qBAAqB;AACrB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACpG,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,qBAAqB,EAAE,6CAAqB,CAAC,CAAC;AAC1F,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,iCAAiC,EAAE,gEAAiC,CAAC,CAAC;AAClH,YAAY;AAEZ,iBAAiB;AACjB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,gCAAgC,EAAE,mEAAgC,CAAC,CAAC;AAChH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC"}
|
|
@@ -2,23 +2,16 @@ export declare const OgPidToken: {
|
|
|
2
2
|
CisStopGroupRepository: symbol;
|
|
3
3
|
JISInfotextRopidGTFSStopsRepository: symbol;
|
|
4
4
|
JISInfotextRepository: symbol;
|
|
5
|
-
JISInfotextsRedisRepository: symbol;
|
|
6
5
|
DeparturesRepository: symbol;
|
|
7
6
|
RunTripsRedisRepository: symbol;
|
|
8
7
|
PublicVehiclePositionsRepository: symbol;
|
|
9
8
|
RopidDeparturesPresetRepository: symbol;
|
|
10
9
|
RopidDeparturesPresetsRopidGTFSStopsRepository: symbol;
|
|
11
|
-
GtfsStopsRedisRepository: symbol;
|
|
12
|
-
PublicGtfsDepartureRepository: symbol;
|
|
13
|
-
VehicleDescriptorCachedRepository: symbol;
|
|
14
|
-
PublicStopTimeRepository: symbol;
|
|
15
10
|
JISInfotextDepartureTransformation: symbol;
|
|
16
11
|
JISInfotextTransferTransformation: symbol;
|
|
17
12
|
JISInfotextOverviewTransformation: symbol;
|
|
18
13
|
TransferDepartureTransformation: symbol;
|
|
19
14
|
RopidDeparturesPresetTransformation: symbol;
|
|
20
|
-
JISInfotextCacheTransferTransformation: symbol;
|
|
21
|
-
TransferDepartureCacheTransformation: symbol;
|
|
22
15
|
StopFacade: symbol;
|
|
23
16
|
InfotextFacade: symbol;
|
|
24
17
|
TransferFacade: symbol;
|
|
@@ -26,10 +19,6 @@ export declare const OgPidToken: {
|
|
|
26
19
|
V3TransferBoardsController: symbol;
|
|
27
20
|
V3InfotextsController: symbol;
|
|
28
21
|
V3RopidDeparturesPresetController: symbol;
|
|
29
|
-
V4TransferBoardsController: symbol;
|
|
30
22
|
JISInfotextStopSuppressionFilter: symbol;
|
|
31
23
|
GtfsStopParser: symbol;
|
|
32
|
-
GtfsStopsSubscriber: symbol;
|
|
33
|
-
JisInotextsSubscriber: symbol;
|
|
34
|
-
VPSubscriber: symbol;
|
|
35
24
|
};
|
|
@@ -6,16 +6,11 @@ exports.OgPidToken = {
|
|
|
6
6
|
CisStopGroupRepository: Symbol("CisStopGroupRepository"),
|
|
7
7
|
JISInfotextRopidGTFSStopsRepository: Symbol("JISInfotextRopidGTFSStopsRepository"),
|
|
8
8
|
JISInfotextRepository: Symbol("JISInfotextRepository"),
|
|
9
|
-
JISInfotextsRedisRepository: Symbol("JISInfotextsRedisRepository"),
|
|
10
9
|
DeparturesRepository: Symbol("DeparturesRepository"),
|
|
11
10
|
RunTripsRedisRepository: Symbol("RunTripsRedisRepository"),
|
|
12
11
|
PublicVehiclePositionsRepository: Symbol("PublicVehiclePositionsRepository"),
|
|
13
12
|
RopidDeparturesPresetRepository: Symbol("RopidDeparturesPresetRepository"),
|
|
14
13
|
RopidDeparturesPresetsRopidGTFSStopsRepository: Symbol("RopidDeparturesPresetsRopidGTFSStopsRepository"),
|
|
15
|
-
GtfsStopsRedisRepository: Symbol("GtfsStopsRedisRepository"),
|
|
16
|
-
PublicGtfsDepartureRepository: Symbol("PublicGtfsDepartureRepository"),
|
|
17
|
-
VehicleDescriptorCachedRepository: Symbol("VehicleDescriptorCachedRepository"),
|
|
18
|
-
PublicStopTimeRepository: Symbol("PublicStopTimeRepository"),
|
|
19
14
|
//#endregion
|
|
20
15
|
//#region Transformations
|
|
21
16
|
JISInfotextDepartureTransformation: Symbol("JISInfotextDepartureTransformation"),
|
|
@@ -23,8 +18,6 @@ exports.OgPidToken = {
|
|
|
23
18
|
JISInfotextOverviewTransformation: Symbol("JISInfotextOverviewTransformation"),
|
|
24
19
|
TransferDepartureTransformation: Symbol("TransferDepartureTransformation"),
|
|
25
20
|
RopidDeparturesPresetTransformation: Symbol("RopidDeparturesPresetTransformation"),
|
|
26
|
-
JISInfotextCacheTransferTransformation: Symbol("JISInfotextCacheTransferTransformation"),
|
|
27
|
-
TransferDepartureCacheTransformation: Symbol("TransferDepartureCacheTransformation"),
|
|
28
21
|
//#endregion
|
|
29
22
|
//#region Facade
|
|
30
23
|
StopFacade: Symbol("StopFacade"),
|
|
@@ -36,14 +29,10 @@ exports.OgPidToken = {
|
|
|
36
29
|
V3TransferBoardsController: Symbol("V3TransferBoardsController"),
|
|
37
30
|
V3InfotextsController: Symbol("V3InfotextsController"),
|
|
38
31
|
V3RopidDeparturesPresetController: Symbol("V3RopidDeparturesPresetController"),
|
|
39
|
-
V4TransferBoardsController: Symbol("V4TransferBoardsController"),
|
|
40
32
|
//#endregion
|
|
41
33
|
//#region Helpers
|
|
42
34
|
JISInfotextStopSuppressionFilter: Symbol("JISInfotextStopSuppressionFilter"),
|
|
43
35
|
GtfsStopParser: Symbol("GtfsStopParser"),
|
|
44
|
-
GtfsStopsSubscriber: Symbol("GtfsStopsSubscriber"),
|
|
45
|
-
JisInotextsSubscriber: Symbol("JisInotextsSubscriber"),
|
|
46
|
-
VPSubscriber: Symbol("VPSubscriber"),
|
|
47
36
|
//#endregion
|
|
48
37
|
};
|
|
49
38
|
//# 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,CAAC;IAClF,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,
|
|
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,CAAC;IAClF,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,+BAA+B,EAAE,MAAM,CAAC,iCAAiC,CAAC;IAC1E,8CAA8C,EAAE,MAAM,CAAC,gDAAgD,CAAC;IACxG,YAAY;IAEZ,yBAAyB;IACzB,kCAAkC,EAAE,MAAM,CAAC,oCAAoC,CAAC;IAChF,iCAAiC,EAAE,MAAM,CAAC,mCAAmC,CAAC;IAC9E,iCAAiC,EAAE,MAAM,CAAC,mCAAmC,CAAC;IAC9E,+BAA+B,EAAE,MAAM,CAAC,iCAAiC,CAAC;IAC1E,mCAAmC,EAAE,MAAM,CAAC,qCAAqC,CAAC;IAClF,YAAY;IAEZ,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,YAAY;IAEZ,qBAAqB;IACrB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,iCAAiC,EAAE,MAAM,CAAC,mCAAmC,CAAC;IAC9E,YAAY;IAEZ,iBAAiB;IACjB,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,YAAY;CACf,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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; } });
|
|
10
8
|
//# 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"}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { JISInfotextsRedisRepository } from "../../../jis/data-access/cache/JISInfotextsRedisRepository";
|
|
2
1
|
import { JISInfotextRepository } from "../../data-access/JISInfotextRepository";
|
|
3
|
-
import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto
|
|
2
|
+
import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto } from "../../domain/InfotextInterfaces";
|
|
4
3
|
import { JISInfotextStopSuppressionFilter } from "../../helpers/JISInfotextStopSuppressionFilter";
|
|
5
4
|
import { IGetDeparturesOptions } from "../../models/interfaces/IGetDeparturesOptions";
|
|
6
5
|
import { Moment } from "@golemio/core/dist/shared/moment-timezone";
|
|
7
6
|
import { JISInfotextDepartureTransformation } from "../transformations/JISInfotextDepartureTransformation";
|
|
8
7
|
import { JISInfotextOverviewTransformation } from "../transformations/JISInfotextOverviewTransformation";
|
|
9
8
|
import { JISInfotextTransferTransformation } from "../transformations/JISInfotextTransferTransformation";
|
|
10
|
-
import { JISInfotextCacheTransferTransformation } from "../transformations/JISInfotextCacheTransferTransformation";
|
|
11
9
|
export declare class InfotextFacade {
|
|
12
10
|
private infotextRepository;
|
|
13
11
|
private infotextDepartureTransformation;
|
|
14
12
|
private infotextTransferTransformation;
|
|
15
13
|
private infotextOverviewTransformation;
|
|
16
14
|
private infotextStopFilter;
|
|
17
|
-
|
|
18
|
-
private cacheTransferTransformation;
|
|
19
|
-
constructor(infotextRepository: JISInfotextRepository, infotextDepartureTransformation: JISInfotextDepartureTransformation, infotextTransferTransformation: JISInfotextTransferTransformation, infotextOverviewTransformation: JISInfotextOverviewTransformation, infotextStopFilter: JISInfotextStopSuppressionFilter, infotextsRedisRepository: JISInfotextsRedisRepository, cacheTransferTransformation: JISInfotextCacheTransferTransformation);
|
|
15
|
+
constructor(infotextRepository: JISInfotextRepository, infotextDepartureTransformation: JISInfotextDepartureTransformation, infotextTransferTransformation: JISInfotextTransferTransformation, infotextOverviewTransformation: JISInfotextOverviewTransformation, infotextStopFilter: JISInfotextStopSuppressionFilter);
|
|
20
16
|
getInfotextsForDepartureBoards(stopIds: string[], currentMoment: Moment, options: IGetDeparturesOptions): Promise<IInfotextDepartureOutputDto[]>;
|
|
21
17
|
getInfotextsForTransferBoards(stopIds: string[], currentMoment: Moment, timeFrom: Moment | null): Promise<IInfotextTransferOutputDto[]>;
|
|
22
18
|
getInfotextsForOverview(): Promise<IInfotextOverviewOutputDto[]>;
|
|
23
|
-
getInfotextsCache(stopIds: string[], currentMoment: Date, timeFrom: Date | null): Promise<IV4InfotextTransferOutputDto[]>;
|
|
24
19
|
}
|
|
@@ -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.InfotextFacade = void 0;
|
|
16
|
-
const JISInfotextsRedisRepository_1 = require("../../../jis/data-access/cache/JISInfotextsRedisRepository");
|
|
17
16
|
const JISInfotextRepository_1 = require("../../data-access/JISInfotextRepository");
|
|
18
17
|
const JISInfotextStopSuppressionFilter_1 = require("../../helpers/JISInfotextStopSuppressionFilter");
|
|
19
18
|
const OgPidToken_1 = require("../../ioc/OgPidToken");
|
|
@@ -22,16 +21,13 @@ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
|
22
21
|
const JISInfotextDepartureTransformation_1 = require("../transformations/JISInfotextDepartureTransformation");
|
|
23
22
|
const JISInfotextOverviewTransformation_1 = require("../transformations/JISInfotextOverviewTransformation");
|
|
24
23
|
const JISInfotextTransferTransformation_1 = require("../transformations/JISInfotextTransferTransformation");
|
|
25
|
-
const JISInfotextCacheTransferTransformation_1 = require("../transformations/JISInfotextCacheTransferTransformation");
|
|
26
24
|
let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
|
|
27
|
-
constructor(infotextRepository, infotextDepartureTransformation, infotextTransferTransformation, infotextOverviewTransformation, infotextStopFilter
|
|
25
|
+
constructor(infotextRepository, infotextDepartureTransformation, infotextTransferTransformation, infotextOverviewTransformation, infotextStopFilter) {
|
|
28
26
|
this.infotextRepository = infotextRepository;
|
|
29
27
|
this.infotextDepartureTransformation = infotextDepartureTransformation;
|
|
30
28
|
this.infotextTransferTransformation = infotextTransferTransformation;
|
|
31
29
|
this.infotextOverviewTransformation = infotextOverviewTransformation;
|
|
32
30
|
this.infotextStopFilter = infotextStopFilter;
|
|
33
|
-
this.infotextsRedisRepository = infotextsRedisRepository;
|
|
34
|
-
this.cacheTransferTransformation = cacheTransferTransformation;
|
|
35
31
|
}
|
|
36
32
|
async getInfotextsForDepartureBoards(stopIds, currentMoment, options) {
|
|
37
33
|
try {
|
|
@@ -73,8 +69,9 @@ let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
|
|
|
73
69
|
return this.infotextTransferTransformation.transformArray(filteredInfotexts);
|
|
74
70
|
}
|
|
75
71
|
catch (error) {
|
|
76
|
-
if (error instanceof golemio_errors_1.AbstractGolemioError)
|
|
72
|
+
if (error instanceof golemio_errors_1.AbstractGolemioError) {
|
|
77
73
|
throw error;
|
|
74
|
+
}
|
|
78
75
|
throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for transfer boards", this.constructor.name, error, 500);
|
|
79
76
|
}
|
|
80
77
|
}
|
|
@@ -97,24 +94,6 @@ let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
|
|
|
97
94
|
throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for overview", this.constructor.name, error, 500);
|
|
98
95
|
}
|
|
99
96
|
}
|
|
100
|
-
async getInfotextsCache(stopIds, currentMoment, timeFrom) {
|
|
101
|
-
try {
|
|
102
|
-
const infotexts = await this.infotextsRedisRepository.getActiveStopsInfotexts(stopIds, timeFrom ?? currentMoment);
|
|
103
|
-
if (infotexts.length === 0) {
|
|
104
|
-
return [];
|
|
105
|
-
}
|
|
106
|
-
const filteredInfotexts = this.infotextStopFilter.filterBySeverityLevel(infotexts);
|
|
107
|
-
if (filteredInfotexts.length === 0) {
|
|
108
|
-
return [];
|
|
109
|
-
}
|
|
110
|
-
return this.cacheTransferTransformation.transformArray(filteredInfotexts);
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
if (error instanceof golemio_errors_1.AbstractGolemioError)
|
|
114
|
-
throw error;
|
|
115
|
-
throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for V4 transfer boards", this.constructor.name, error, 500);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
97
|
};
|
|
119
98
|
exports.InfotextFacade = InfotextFacade = __decorate([
|
|
120
99
|
(0, tsyringe_1.injectable)(),
|
|
@@ -123,14 +102,10 @@ exports.InfotextFacade = InfotextFacade = __decorate([
|
|
|
123
102
|
__param(2, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextTransferTransformation)),
|
|
124
103
|
__param(3, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextOverviewTransformation)),
|
|
125
104
|
__param(4, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextStopSuppressionFilter)),
|
|
126
|
-
__param(5, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository)),
|
|
127
|
-
__param(6, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextCacheTransferTransformation)),
|
|
128
105
|
__metadata("design:paramtypes", [JISInfotextRepository_1.JISInfotextRepository,
|
|
129
106
|
JISInfotextDepartureTransformation_1.JISInfotextDepartureTransformation,
|
|
130
107
|
JISInfotextTransferTransformation_1.JISInfotextTransferTransformation,
|
|
131
108
|
JISInfotextOverviewTransformation_1.JISInfotextOverviewTransformation,
|
|
132
|
-
JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter
|
|
133
|
-
JISInfotextsRedisRepository_1.JISInfotextsRedisRepository,
|
|
134
|
-
JISInfotextCacheTransferTransformation_1.JISInfotextCacheTransferTransformation])
|
|
109
|
+
JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter])
|
|
135
110
|
], InfotextFacade);
|
|
136
111
|
//# sourceMappingURL=InfotextFacade.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfotextFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/InfotextFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"InfotextFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/InfotextFacade.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { CisStopGroupRepository } from "../../../ropid-gtfs/data-access/CisStopGroupRepository";
|
|
2
|
-
import { GtfsStopsRedisRepository } from "../../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository";
|
|
3
2
|
export declare class StopFacade {
|
|
4
3
|
private cisStopGroupsRepository;
|
|
5
|
-
|
|
6
|
-
private readonly gtfsStopParser;
|
|
7
|
-
constructor(cisStopGroupsRepository: CisStopGroupRepository, gtfsStopsRedisRepository: GtfsStopsRedisRepository);
|
|
8
|
-
getStopIdsForTransferBoards(cisId: string): Promise<string[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
|
|
11
|
-
*/
|
|
12
|
-
getStopIdsForTransferBoardsByCisId(cisId: string): Promise<string[]>;
|
|
4
|
+
constructor(cisStopGroupsRepository: CisStopGroupRepository);
|
|
13
5
|
/**
|
|
14
|
-
*
|
|
6
|
+
* Retrieves ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
|
|
15
7
|
*/
|
|
16
|
-
|
|
17
|
-
private getStopIdsForTransferBoardsByAswNode;
|
|
8
|
+
getStopIdsForTransferBoards(cisId: string): Promise<string[]>;
|
|
18
9
|
}
|
|
@@ -13,19 +13,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.StopFacade = void 0;
|
|
16
|
-
const GtfsStopParser_1 = require("../../../../helpers/GtfsStopParser");
|
|
17
16
|
const OgPidToken_1 = require("../../ioc/OgPidToken");
|
|
18
|
-
const models_1 = require("../../../ropid-gtfs/models");
|
|
19
17
|
const CisStopGroupRepository_1 = require("../../../ropid-gtfs/data-access/CisStopGroupRepository");
|
|
20
|
-
const
|
|
21
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
+
const models_1 = require("../../../ropid-gtfs/models");
|
|
22
19
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
20
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
21
|
let StopFacade = exports.StopFacade = class StopFacade {
|
|
24
|
-
constructor(cisStopGroupsRepository
|
|
22
|
+
constructor(cisStopGroupsRepository) {
|
|
25
23
|
this.cisStopGroupsRepository = cisStopGroupsRepository;
|
|
26
|
-
this.gtfsStopsRedisRepository = gtfsStopsRedisRepository;
|
|
27
|
-
this.gtfsStopParser = new GtfsStopParser_1.GtfsStopParser();
|
|
28
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
|
|
27
|
+
*/
|
|
29
28
|
async getStopIdsForTransferBoards(cisId) {
|
|
30
29
|
//#region CIS stop node
|
|
31
30
|
let aswNode;
|
|
@@ -57,45 +56,10 @@ let StopFacade = exports.StopFacade = class StopFacade {
|
|
|
57
56
|
//#endregion
|
|
58
57
|
return stopIds;
|
|
59
58
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
|
|
62
|
-
*/
|
|
63
|
-
async getStopIdsForTransferBoardsByCisId(cisId) {
|
|
64
|
-
try {
|
|
65
|
-
const aswNodeId = await this.gtfsStopsRedisRepository.getAswNodeIdFromCisId(cisId);
|
|
66
|
-
if (aswNodeId === null) {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
return await this.getStopIdsForTransferBoardsByAswNode(aswNodeId);
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
if (error instanceof golemio_errors_1.AbstractGolemioError)
|
|
73
|
-
throw error;
|
|
74
|
-
throw new golemio_errors_1.GeneralError("Failed to retrieve CIS stop node", this.constructor.name, error, 500);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Retrieve ASW node ID for given ASW stop ID and then returns GTFS stop IDs for this ASW node
|
|
79
|
-
*/
|
|
80
|
-
async getStopIdsForTransferBoardsByAswId(aswId) {
|
|
81
|
-
return await this.getStopIdsForTransferBoardsByAswNode(this.gtfsStopParser.getAswNodeFromId(aswId));
|
|
82
|
-
}
|
|
83
|
-
async getStopIdsForTransferBoardsByAswNode(aswNodeId) {
|
|
84
|
-
try {
|
|
85
|
-
return await this.gtfsStopsRedisRepository.getGtfsStopIdsByAswNode(aswNodeId);
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
if (error instanceof golemio_errors_1.AbstractGolemioError)
|
|
89
|
-
throw error;
|
|
90
|
-
throw new golemio_errors_1.GeneralError("Failed to retrieve GTFS stops", this.constructor.name, error, 500);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
59
|
};
|
|
94
60
|
exports.StopFacade = StopFacade = __decorate([
|
|
95
61
|
(0, tsyringe_1.injectable)(),
|
|
96
62
|
__param(0, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.CisStopGroupRepository)),
|
|
97
|
-
|
|
98
|
-
__metadata("design:paramtypes", [CisStopGroupRepository_1.CisStopGroupRepository,
|
|
99
|
-
GtfsStopsRedisRepository_1.GtfsStopsRedisRepository])
|
|
63
|
+
__metadata("design:paramtypes", [CisStopGroupRepository_1.CisStopGroupRepository])
|
|
100
64
|
], StopFacade);
|
|
101
65
|
//# sourceMappingURL=StopFacade.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StopFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/StopFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"StopFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/StopFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAoD;AACpD,mGAA2F;AAC3F,uDAA+C;AAC/C,6EAA8F;AAC9F,iEAAwE;AAGjE,IAAM,UAAU,wBAAhB,MAAM,UAAU;IACnB,YAA+D,uBAA+C;QAA/C,4BAAuB,GAAvB,uBAAuB,CAAwB;IAAG,CAAC;IAElH;;OAEG;IACI,KAAK,CAAC,2BAA2B,CAAC,KAAa;QAClD,uBAAuB;QACvB,IAAI,OAAe,CAAC;QACpB,IAAI;YACA,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7E,IAAI,WAAW,KAAK,IAAI,EAAE;gBACtB,OAAO,EAAE,CAAC;aACb;YAED,OAAO,GAAG,WAAW,CAAC;SACzB;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,qCAAoB,EAAE;gBACvC,MAAM,KAAK,CAAC;aACf;YAED,MAAM,IAAI,6BAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;SACjG;QACD,YAAY;QAEZ,uBAAuB;QACvB,IAAI,OAAO,GAAa,EAAE,CAAC;QAC3B,IAAI;YACA,OAAO,GAAG,MAAM,eAAM,CAAC,aAAa,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;SACzE;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,qCAAoB,EAAE;gBACvC,MAAM,KAAK,CAAC;aACf;YAED,MAAM,IAAI,6BAAY,CAAC,+BAA+B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;SAC9F;QACD,YAAY;QAEZ,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAA;qBAxCY,UAAU;IADtB,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,sBAAsB,CAAC,CAAA;qCAAkC,+CAAsB;GADrG,UAAU,CAwCtB"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { ITransferOutputDto
|
|
1
|
+
import { ITransferOutputDto } from "../..";
|
|
2
|
+
import { DeparturesRepository } from "../../data-access";
|
|
2
3
|
import { Moment } from "@golemio/core/dist/shared/moment-timezone";
|
|
3
4
|
import { TransferDepartureTransformation } from "../transformations/TransferDepartureTransformation";
|
|
4
|
-
import { PublicGtfsDepartureRepository } from "../../../public/data-access/redis/PublicGtfsDepartureRepository";
|
|
5
|
-
import { PublicVehiclePositionsRepository } from "../../../public/data-access/redis/PublicVehiclePositionsRepository";
|
|
6
|
-
import { PublicStopTimeRepository } from "../../../public/data-access/redis/PublicStopTimeRepository";
|
|
7
|
-
import { DeparturesRepository } from "../../data-access";
|
|
8
5
|
export declare class TransferFacade {
|
|
9
|
-
private publicDepartureRepository;
|
|
10
6
|
private departureRepository;
|
|
11
7
|
private departureTransformation;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
constructor(departureRepository: DeparturesRepository, departureTransformation: TransferDepartureTransformation);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves transfer departures for given GTFS stop IDs
|
|
11
|
+
* - Get transfer departures from DB
|
|
12
|
+
* - Process them (filter, sort, etc.)
|
|
13
|
+
* - Transform them to DTO
|
|
14
|
+
*/
|
|
15
15
|
getTransferDepartures(stopIds: string[], tripNumber: string | null, currentMoment: Moment, minutesOffset: number, timeZone?: string): Promise<ITransferOutputDto[]>;
|
|
16
|
-
getTransferCache(stopIds: string[], reqNumber?: number, vehicleType?: number): Promise<IV4TransferDto>;
|
|
17
|
-
private processMultiplePostionsForDeparture;
|
|
18
16
|
/**
|
|
19
17
|
* Fallback options as defined by ROPID
|
|
20
18
|
*/
|