@golemio/pid 2.17.1-dev.1412857437 → 2.18.0-rc.1418092579
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/example/00_clear_test_data.sql +0 -2
- package/db/example/03_ropidgtfs_dump.sql +0 -36
- package/dist/integration-engine/index.js +0 -4
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.d.ts +0 -2
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +0 -21
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.d.ts +4 -1
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js +27 -11
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.d.ts +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +49 -22
- 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/helpers/RawQueryProvider.d.ts +1 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +80 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +17 -0
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +6 -3
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +19 -8
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
- package/dist/output-gateway/departure-boards/{routers/v2/V2DepartureBoardsRouter.d.ts → DepartureBoardsRouter.d.ts} +8 -9
- package/dist/output-gateway/departure-boards/{routers/v2/V2DepartureBoardsRouter.js → DepartureBoardsRouter.js} +18 -19
- package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -0
- package/dist/output-gateway/departure-boards/index.d.ts +1 -1
- package/dist/output-gateway/departure-boards/index.js +1 -1
- package/dist/output-gateway/departure-boards/index.js.map +1 -1
- package/dist/output-gateway/index.d.ts +0 -1
- package/dist/output-gateway/index.js +1 -25
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/pid/{routers/v2/V2PIDRouter.d.ts → PIDRouter.d.ts} +4 -5
- package/dist/output-gateway/pid/{routers/v2/V2PIDRouter.js → PIDRouter.js} +17 -20
- package/dist/output-gateway/pid/PIDRouter.js.map +1 -0
- package/dist/output-gateway/pid/controllers/{v2/V2DepartureBoardsController.d.ts → DepartureBoardsController.d.ts} +1 -1
- package/dist/output-gateway/pid/controllers/{v2/V2DepartureBoardsController.js → DepartureBoardsController.js} +9 -9
- package/dist/output-gateway/pid/controllers/DepartureBoardsController.js.map +1 -0
- package/dist/output-gateway/pid/controllers/{v2/V2InfotextsController.d.ts → InfotextsController.d.ts} +1 -1
- package/dist/output-gateway/pid/controllers/{v2/V2InfotextsController.js → InfotextsController.js} +6 -6
- package/dist/output-gateway/pid/controllers/InfotextsController.js.map +1 -0
- package/dist/output-gateway/pid/controllers/index.d.ts +2 -0
- package/dist/{integration-engine/jis → output-gateway/pid/controllers}/index.js +2 -1
- package/dist/output-gateway/pid/controllers/index.js.map +1 -0
- package/dist/output-gateway/pid/dto/DepartureBoardsDTO.d.ts +3 -3
- package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js +1 -1
- package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js.map +1 -1
- package/dist/output-gateway/pid/index.d.ts +1 -1
- package/dist/output-gateway/pid/index.js +1 -1
- package/dist/output-gateway/pid/index.js.map +1 -1
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.d.ts +1 -2
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +10 -20
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.d.ts +19 -2
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js +64 -4
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js.map +1 -1
- package/dist/output-gateway/public/controllers/{v2/V2PublicDepartureBoardsController.d.ts → v1/PublicDepartureBoardsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v2/V2PublicDepartureBoardsController.js → v1/PublicDepartureBoardsController.js} +5 -5
- package/dist/output-gateway/public/controllers/v1/PublicDepartureBoardsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v2/V2PublicGtfsController.d.ts → v1/PublicGtfsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v2/V2PublicGtfsController.js → v1/PublicGtfsController.js} +5 -5
- package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v2/V2PublicVehiclePositionsController.d.ts → v1/PublicVehiclePositionsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v2/V2PublicVehiclePositionsController.js → v1/PublicVehiclePositionsController.js} +4 -4
- package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.d.ts +1 -1
- package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.js.map +1 -1
- package/dist/output-gateway/public/routers/{v2/V2PublicDeparturesRouter.d.ts → v1/PublicDeparturesRouter.d.ts} +3 -4
- package/dist/output-gateway/public/routers/{v2/V2PublicDeparturesRouter.js → v1/PublicDeparturesRouter.js} +8 -11
- package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.d.ts → v1/PublicGtfsRouter.d.ts} +3 -4
- package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.js → v1/PublicGtfsRouter.js} +8 -11
- package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v2/V2PublicVehiclePositionsRouter.d.ts → v1/PublicVehiclePositionsRouter.d.ts} +3 -4
- package/dist/output-gateway/public/routers/{v2/V2PublicVehiclePositionsRouter.js → v1/PublicVehiclePositionsRouter.js} +8 -11
- package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.js.map +1 -1
- package/dist/output-gateway/public/service/facade/DepartureBoardFacade.d.ts +1 -1
- package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +1 -1
- package/dist/output-gateway/public/service/facade/DetailedTripFacade.js +1 -1
- package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.d.ts +1 -1
- package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js +1 -1
- package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts +1 -1
- package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js +1 -1
- package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.d.ts +1 -1
- package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js +1 -1
- package/dist/output-gateway/ropid-gtfs/{routers/v2/V2GTFSRouter.d.ts → GTFSRouter.d.ts} +13 -11
- package/dist/output-gateway/ropid-gtfs/{routers/v2/V2GTFSRouter.js → GTFSRouter.js} +16 -16
- package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/index.d.ts +1 -1
- package/dist/output-gateway/ropid-gtfs/index.js +1 -1
- package/dist/output-gateway/ropid-gtfs/index.js.map +1 -1
- package/dist/output-gateway/shared/RopidRouterUtils.d.ts +0 -4
- package/dist/output-gateway/shared/RopidRouterUtils.js +0 -11
- package/dist/output-gateway/shared/RopidRouterUtils.js.map +1 -1
- package/dist/output-gateway/shared/constants/index.d.ts +0 -1
- package/dist/output-gateway/shared/constants/index.js +0 -1
- package/dist/output-gateway/shared/constants/index.js.map +1 -1
- package/dist/output-gateway/vehicle-positions/{routers/v2/V2VehiclePositionsRouter.d.ts → VehiclePositionsRouter.d.ts} +6 -6
- package/dist/output-gateway/vehicle-positions/{routers/v2/V2VehiclePositionsRouter.js → VehiclePositionsRouter.js} +11 -12
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -0
- package/dist/output-gateway/vehicle-positions/index.d.ts +1 -1
- package/dist/output-gateway/vehicle-positions/index.js +1 -1
- package/dist/output-gateway/vehicle-positions/index.js.map +1 -1
- package/docs/implementation_documentation.md +35 -86
- package/docs/index.md +3 -0
- package/docs/openapi-output.yaml +69 -128
- package/package.json +2 -2
- package/db/example/20_jis_infotexts.sql +0 -214
- package/db/migrations/postgresql/20240801141948-jis-infotexts.js +0 -53
- package/db/migrations/postgresql/20240809084521-jis-infotexts-severity-level.js +0 -53
- package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-up.sql +0 -19
- package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-down.sql +0 -8
- package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-up.sql +0 -7
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.d.ts +0 -10
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js +0 -49
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js.map +0 -1
- package/dist/integration-engine/jis/index.d.ts +0 -1
- package/dist/integration-engine/jis/index.js.map +0 -1
- package/dist/integration-engine/jis/ioc/Di.d.ts +0 -3
- package/dist/integration-engine/jis/ioc/Di.js +0 -31
- package/dist/integration-engine/jis/ioc/Di.js.map +0 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -9
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -18
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +0 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +0 -36
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +0 -101
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +0 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +0 -36
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +0 -101
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +0 -1
- package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +0 -20
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js +0 -78
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +0 -1
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.d.ts +0 -13
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +0 -41
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +0 -1
- package/dist/integration-engine/jis/workers/JISWorker.d.ts +0 -7
- package/dist/integration-engine/jis/workers/JISWorker.js +0 -21
- package/dist/integration-engine/jis/workers/JISWorker.js.map +0 -1
- package/dist/integration-engine/jis/workers/constants.d.ts +0 -1
- package/dist/integration-engine/jis/workers/constants.js +0 -5
- package/dist/integration-engine/jis/workers/constants.js.map +0 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +0 -14
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +0 -72
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.d.ts +0 -3
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js +0 -62
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js.map +0 -1
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.d.ts +0 -22
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js +0 -3
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js.map +0 -1
- package/dist/output-gateway/departure-boards/routers/index.d.ts +0 -1
- package/dist/output-gateway/departure-boards/routers/index.js +0 -6
- package/dist/output-gateway/departure-boards/routers/index.js.map +0 -1
- package/dist/output-gateway/departure-boards/routers/v2/V2DepartureBoardsRouter.js.map +0 -1
- package/dist/output-gateway/pid/controllers/v2/V2DepartureBoardsController.js.map +0 -1
- package/dist/output-gateway/pid/controllers/v2/V2InfotextsController.js.map +0 -1
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.d.ts +0 -10
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js +0 -57
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js.map +0 -1
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.d.ts +0 -27
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js +0 -157
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js.map +0 -1
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.d.ts +0 -11
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js +0 -37
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js.map +0 -1
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.d.ts +0 -4
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js +0 -9
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js.map +0 -1
- package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +0 -28
- package/dist/output-gateway/pid/domain/InfotextInterfaces.js +0 -3
- package/dist/output-gateway/pid/domain/InfotextInterfaces.js.map +0 -1
- package/dist/output-gateway/pid/ioc/Di.d.ts +0 -3
- package/dist/output-gateway/pid/ioc/Di.js +0 -23
- package/dist/output-gateway/pid/ioc/Di.js.map +0 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -7
- package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -17
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +0 -1
- package/dist/output-gateway/pid/routers/index.d.ts +0 -2
- package/dist/output-gateway/pid/routers/index.js +0 -8
- package/dist/output-gateway/pid/routers/index.js.map +0 -1
- package/dist/output-gateway/pid/routers/v2/V2PIDRouter.js.map +0 -1
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +0 -11
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +0 -31
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +0 -1
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.d.ts +0 -10
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js +0 -25
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js.map +0 -1
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.d.ts +0 -13
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js +0 -35
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js.map +0 -1
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts +0 -19
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js +0 -43
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map +0 -1
- package/dist/output-gateway/public/controllers/v2/V2PublicDepartureBoardsController.js.map +0 -1
- package/dist/output-gateway/public/controllers/v2/V2PublicGtfsController.js.map +0 -1
- package/dist/output-gateway/public/controllers/v2/V2PublicVehiclePositionsController.js.map +0 -1
- package/dist/output-gateway/public/index.d.ts +0 -1
- package/dist/output-gateway/public/index.js +0 -18
- package/dist/output-gateway/public/index.js.map +0 -1
- package/dist/output-gateway/public/routers/index.d.ts +0 -3
- package/dist/output-gateway/public/routers/index.js +0 -10
- package/dist/output-gateway/public/routers/index.js.map +0 -1
- package/dist/output-gateway/public/routers/v2/V2PublicDeparturesRouter.js.map +0 -1
- package/dist/output-gateway/public/routers/v2/V2PublicGtfsRouter.js.map +0 -1
- package/dist/output-gateway/public/routers/v2/V2PublicVehiclePositionsRouter.js.map +0 -1
- package/dist/output-gateway/ropid-gtfs/routers/index.d.ts +0 -1
- package/dist/output-gateway/ropid-gtfs/routers/index.js +0 -6
- package/dist/output-gateway/ropid-gtfs/routers/index.js.map +0 -1
- package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js.map +0 -1
- package/dist/output-gateway/shared/constants/route-version.d.ts +0 -5
- package/dist/output-gateway/shared/constants/route-version.js +0 -10
- package/dist/output-gateway/shared/constants/route-version.js.map +0 -1
- package/dist/output-gateway/vehicle-positions/routers/index.d.ts +0 -1
- package/dist/output-gateway/vehicle-positions/routers/index.js +0 -6
- package/dist/output-gateway/vehicle-positions/routers/index.js.map +0 -1
- package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.d.ts +0 -3
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +0 -59
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +0 -16
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.d.ts +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.d.ts +0 -4
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/index.js +0 -20
- package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +0 -1
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +0 -19
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js +0 -80
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +0 -1
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.d.ts +0 -12
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js +0 -41
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js.map +0 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +0 -10
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js +0 -3
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js.map +0 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.d.ts +0 -4
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js +0 -3
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js.map +0 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.d.ts +0 -4
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js +0 -3
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js.map +0 -1
- package/dist/schema-definitions/jis/models/interfaces/index.d.ts +0 -3
- package/dist/schema-definitions/jis/models/interfaces/index.js +0 -20
- package/dist/schema-definitions/jis/models/interfaces/index.js.map +0 -1
- package/docs/assets/pid_jis_erd.png +0 -0
- /package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.js +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.js +0 -0
|
@@ -3,10 +3,9 @@ import { Moment } from "@golemio/core/dist/shared/moment-timezone";
|
|
|
3
3
|
import { IMpvPositionContent } from "../../../../../schema-definitions/vehicle-positions/interfaces/IMpvMessageInterfaces";
|
|
4
4
|
import { ITransformationElement, ITransformationResult } from "../interfaces/TransformationInterfaces";
|
|
5
5
|
export declare class MpvMessageTransformation extends BaseTransformation implements ITransformation {
|
|
6
|
-
private static ORIGIN_TIME_FORMAT;
|
|
7
6
|
name: string;
|
|
8
7
|
private config;
|
|
9
|
-
private
|
|
8
|
+
private static ORIGIN_TIME_FORMAT;
|
|
10
9
|
constructor();
|
|
11
10
|
/**
|
|
12
11
|
* Overrides BaseTransformation::transform
|
|
@@ -32,7 +31,6 @@ export declare class MpvMessageTransformation extends BaseTransformation impleme
|
|
|
32
31
|
* @returns {number}
|
|
33
32
|
*/
|
|
34
33
|
private checkMidnight;
|
|
35
|
-
private isBlacklistedAgency;
|
|
36
34
|
/**
|
|
37
35
|
* Fix source negative bearing value due to overflow by adding 256
|
|
38
36
|
*
|
|
@@ -47,4 +45,9 @@ export declare class MpvMessageTransformation extends BaseTransformation impleme
|
|
|
47
45
|
* @returns {stringList}
|
|
48
46
|
*/
|
|
49
47
|
private formatASWStopId;
|
|
48
|
+
/**
|
|
49
|
+
* Returns list of vehicle reg numbers that should be excluded from MPVNet processing
|
|
50
|
+
* (already processed from another source)
|
|
51
|
+
*/
|
|
52
|
+
private get regionalBusRegNumberBlacklist();
|
|
50
53
|
}
|
|
@@ -31,7 +31,6 @@ var PositionTrackingEnum;
|
|
|
31
31
|
class MpvMessageTransformation extends transformations_1.BaseTransformation {
|
|
32
32
|
constructor() {
|
|
33
33
|
super();
|
|
34
|
-
this.skipAgencyNames = [DPPUtils_1.default.DPP_AGENCY_NAME];
|
|
35
34
|
/**
|
|
36
35
|
* Overrides BaseTransformation::transform
|
|
37
36
|
*/
|
|
@@ -62,11 +61,16 @@ class MpvMessageTransformation extends transformations_1.BaseTransformation {
|
|
|
62
61
|
this.transformElement = (element) => __awaiter(this, void 0, void 0, function* () {
|
|
63
62
|
var _a, _b;
|
|
64
63
|
const attributes = element.$;
|
|
64
|
+
// DPP and regional bus trips to be excluded in HTTP ingress
|
|
65
|
+
const isDPPTrip = attributes.dopr === DPPUtils_1.default.DPP_AGENCY_NAME;
|
|
66
|
+
const isRegionalBusTrip = !!attributes.vuzevc &&
|
|
67
|
+
this.regionalBusRegNumberBlacklist &&
|
|
68
|
+
this.regionalBusRegNumberBlacklist.includes(attributes.vuzevc);
|
|
65
69
|
// Trips with null cpoz (origin time) and falsy or "false" zrus (cancellation) attributes are excluded
|
|
66
70
|
let hasInvalidAttributes = !attributes.cpoz && (!attributes.zrus || attributes.zrus === "false");
|
|
67
71
|
// Canceled trips with no lat or lng are accepted because we try to later get the coords from the context if possible
|
|
68
72
|
hasInvalidAttributes || (hasInvalidAttributes = attributes.zrus !== "true" && (!attributes.lat || !attributes.lng));
|
|
69
|
-
if (
|
|
73
|
+
if (isDPPTrip || isRegionalBusTrip || hasInvalidAttributes) {
|
|
70
74
|
return null;
|
|
71
75
|
}
|
|
72
76
|
attributes.lin = attributes.lin || "none";
|
|
@@ -231,12 +235,6 @@ class MpvMessageTransformation extends transformations_1.BaseTransformation {
|
|
|
231
235
|
};
|
|
232
236
|
this.name = vehicle_positions_1.VehiclePositions.name;
|
|
233
237
|
this.config = Di_1.IntegrationEngineContainer.resolve(CoreToken_1.CoreToken.SimpleConfig);
|
|
234
|
-
this.skipAgencyNames = this.skipAgencyNames.concat(this.config
|
|
235
|
-
.getValue("module.pid.vehicle-positions.mpvIntegration.skipAgencyNames", "ARRIVA CITY,ARRIVA CITY (Neratovice)")
|
|
236
|
-
.split(","));
|
|
237
|
-
}
|
|
238
|
-
isBlacklistedAgency(agency) {
|
|
239
|
-
return agency && this.skipAgencyNames.includes(agency);
|
|
240
238
|
}
|
|
241
239
|
/**
|
|
242
240
|
* Fix source negative bearing value due to overflow by adding 256
|
|
@@ -259,6 +257,19 @@ class MpvMessageTransformation extends transformations_1.BaseTransformation {
|
|
|
259
257
|
const aswParsedStopPostId = parseInt(stopId, 10) - aswParsedStopNodeId * fixedRightPadFactor;
|
|
260
258
|
return aswParsedStopNodeId + "/" + aswParsedStopPostId;
|
|
261
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Returns list of vehicle reg numbers that should be excluded from MPVNet processing
|
|
262
|
+
* (already processed from another source)
|
|
263
|
+
*/
|
|
264
|
+
get regionalBusRegNumberBlacklist() {
|
|
265
|
+
const valuePath = "old.datasources.pid.vehicle-positions.regNumberWhitelist.regionalBus";
|
|
266
|
+
const blacklistDict = this.config.getValue(valuePath, {});
|
|
267
|
+
const blacklist = Object.values(blacklistDict);
|
|
268
|
+
if (blacklist.length > 0 && blacklist[0] !== "*") {
|
|
269
|
+
return blacklist;
|
|
270
|
+
}
|
|
271
|
+
return null;
|
|
272
|
+
}
|
|
262
273
|
}
|
|
263
274
|
exports.MpvMessageTransformation = MpvMessageTransformation;
|
|
264
275
|
MpvMessageTransformation.ORIGIN_TIME_FORMAT = "HH:mm:ss";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MpvMessageTransformation.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2FAA0D;AAG1D,wEAAqE;AACrE,qEAA0F;AAC1F,2FAA4G;AAC5G,gGAA2E;AAC3E,gDAAgE;AAChE,mEAA2C;AAC3C,8EAA2E;AAC3E,oEAAiE;AAGjE,0EAA4D;AAE5D,IAAK,oBAGJ;AAHD,WAAK,oBAAoB;IACrB,0CAAkB,CAAA;IAClB,sCAAc,CAAA;AAClB,CAAC,EAHI,oBAAoB,KAApB,oBAAoB,QAGxB;AAED,MAAa,wBAAyB,SAAQ,oCAAkB;
|
|
1
|
+
{"version":3,"file":"MpvMessageTransformation.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2FAA0D;AAG1D,wEAAqE;AACrE,qEAA0F;AAC1F,2FAA4G;AAC5G,gGAA2E;AAC3E,gDAAgE;AAChE,mEAA2C;AAC3C,8EAA2E;AAC3E,oEAAiE;AAGjE,0EAA4D;AAE5D,IAAK,oBAGJ;AAHD,WAAK,oBAAoB;IACrB,0CAAkB,CAAA;IAClB,sCAAc,CAAA;AAClB,CAAC,EAHI,oBAAoB,KAApB,oBAAoB,QAGxB;AAED,MAAa,wBAAyB,SAAQ,oCAAkB;IAK5D;QACI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mBAAmB,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,IAAY,6BAA6B;QACrC,MAAM,SAAS,GAAG,sEAAsE,CAAC;QACzF,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAyB,SAAS,EAAE,EAAE,CAAC,CAAC;QAClF,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE/C,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YAC9C,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;;AAzRL,4DA0RC;AAvRkB,2CAAkB,GAAG,UAAU,AAAb,CAAc"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* app/routers/DepartureBoardsRouter.ts
|
|
3
|
+
*
|
|
2
4
|
* DEPRECATED!!! use PIDDepartureBoardsRoutes.ts instead
|
|
3
5
|
*
|
|
4
6
|
* Router /WEB LAYER/: maps routes to specific controller functions, passes request parameters and handles responses.
|
|
5
7
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
6
8
|
*/
|
|
7
9
|
/// <reference types="express" />
|
|
8
|
-
import { PIDDepartureBoardsModel } from "
|
|
9
|
-
import {
|
|
10
|
+
import { PIDDepartureBoardsModel } from "../pid";
|
|
11
|
+
import { BaseRouter } from "@golemio/core/dist/output-gateway/routes/BaseRouter";
|
|
10
12
|
import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
|
|
11
13
|
/**
|
|
12
14
|
* @deprecated use /pid/departureboards instead
|
|
13
15
|
*/
|
|
14
|
-
export declare class
|
|
16
|
+
export declare class DepartureBoardsRouter extends BaseRouter {
|
|
15
17
|
router: Router;
|
|
16
18
|
private cacheHeaderMiddleware;
|
|
17
19
|
private defaultQueryParameters;
|
|
@@ -25,11 +27,8 @@ export declare class V2DepartureBoardsRouter extends AbstractRouter {
|
|
|
25
27
|
/**
|
|
26
28
|
* Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
|
|
27
29
|
*/
|
|
28
|
-
|
|
30
|
+
private initRoutes;
|
|
29
31
|
private initDepartureBoardsEndpoints;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
declare const v2DepartureBoardsRouter: AbstractRouter;
|
|
35
|
-
export { v2DepartureBoardsRouter };
|
|
33
|
+
declare const departureBoardsRouter: Router;
|
|
34
|
+
export { departureBoardsRouter };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
+
* app/routers/DepartureBoardsRouter.ts
|
|
4
|
+
*
|
|
3
5
|
* DEPRECATED!!! use PIDDepartureBoardsRoutes.ts instead
|
|
4
6
|
*
|
|
5
7
|
* Router /WEB LAYER/: maps routes to specific controller functions, passes request parameters and handles responses.
|
|
@@ -18,23 +20,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
20
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
21
|
};
|
|
20
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
22
|
-
const pid_1 = require("
|
|
23
|
-
const shared_1 = require("
|
|
24
|
-
const constants_1 = require("
|
|
25
|
-
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
23
|
+
exports.departureBoardsRouter = exports.DepartureBoardsRouter = void 0;
|
|
24
|
+
const pid_1 = require("../pid");
|
|
25
|
+
const shared_1 = require("../shared");
|
|
26
|
+
const constants_1 = require("../shared/constants");
|
|
26
27
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
27
28
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
29
|
+
const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
|
|
28
30
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
29
31
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
30
32
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
31
|
-
const const_1 = require("
|
|
33
|
+
const const_1 = require("../../const");
|
|
32
34
|
/**
|
|
33
35
|
* @deprecated use /pid/departureboards instead
|
|
34
36
|
*/
|
|
35
|
-
class
|
|
37
|
+
class DepartureBoardsRouter extends BaseRouter_1.BaseRouter {
|
|
36
38
|
constructor() {
|
|
37
|
-
super(
|
|
39
|
+
super();
|
|
38
40
|
// Assign router to the express.Router() instance
|
|
39
41
|
this.router = (0, express_1.Router)();
|
|
40
42
|
this.defaultQueryParameters = {
|
|
@@ -49,10 +51,10 @@ class V2DepartureBoardsRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
49
51
|
},
|
|
50
52
|
};
|
|
51
53
|
this.GetDepartureBoard = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const aswIds =
|
|
53
|
-
const cisIds =
|
|
54
|
-
const gtfsIds =
|
|
55
|
-
const names =
|
|
54
|
+
const aswIds = this.ConvertToArray(req.query.aswIds || []);
|
|
55
|
+
const cisIds = this.ConvertToArray(req.query.cisIds || []);
|
|
56
|
+
const gtfsIds = this.ConvertToArray(req.query.ids || []);
|
|
57
|
+
const names = this.ConvertToArray(req.query.names || []);
|
|
56
58
|
const limit = parseInt(req.query.limit || this.defaultQueryParameters.limit, 10);
|
|
57
59
|
const preferredTimezone = shared_1.RopidRouterUtils.getPreferredTimezone(req.query.preferredTimezone);
|
|
58
60
|
const timezoneDefinedRegexp = /[T ][\d:\.]+([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)/;
|
|
@@ -150,10 +152,7 @@ class V2DepartureBoardsRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
150
152
|
this.initRoutes();
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
|
-
exports.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const v2DepartureBoardsRouter = new V2DepartureBoardsRouter();
|
|
158
|
-
exports.v2DepartureBoardsRouter = v2DepartureBoardsRouter;
|
|
159
|
-
//# sourceMappingURL=V2DepartureBoardsRouter.js.map
|
|
155
|
+
exports.DepartureBoardsRouter = DepartureBoardsRouter;
|
|
156
|
+
const departureBoardsRouter = new DepartureBoardsRouter().router;
|
|
157
|
+
exports.departureBoardsRouter = departureBoardsRouter;
|
|
158
|
+
//# sourceMappingURL=DepartureBoardsRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepartureBoardsRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/departure-boards/DepartureBoardsRouter.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;AAEH,gCAAuH;AACvH,sCAA8C;AAC9C,mDAAwD;AAExD,6EAAkH;AAClH,+DAA+F;AAC/F,oFAAiF;AACjF,+DAA4F;AAC5F,mFAA2E;AAC3E,gGAA2E;AAC3E,uCAAsD;AAEtD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,uBAAU;IAmBjD;QACI,KAAK,EAAE,CAAC;QAnBZ,iDAAiD;QAC1C,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QAGzB,2BAAsB,GAAQ;YAClC,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,CAAC;YACT,YAAY,EAAE,GAAG;YACjB,aAAa,EAAE,CAAC;YAChB,kBAAkB,EAAE;gBAChB,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,CAAC,GAAG,EAAE;aACrB;SACJ,CAAC;QAWK,sBAAiB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACjF,MAAM,MAAM,GAAa,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;YACrE,MAAM,MAAM,GAAa,IAAI,CAAC,cAAc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AAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,oBAAoB,GAAG,IAAI,6BAAuB,EAAE,CAAC;QAC1D,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAiHJ;AAzID,sDAyIC;AAED,MAAM,qBAAqB,GAAW,IAAI,qBAAqB,EAAE,CAAC,MAAM,CAAC;AAEhE,sDAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./DepartureBoardsRouter";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./DepartureBoardsRouter"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/departure-boards/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/departure-boards/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -2,4 +2,3 @@ export * as DepartureBoards from "./departure-boards";
|
|
|
2
2
|
export * as PID from "./pid";
|
|
3
3
|
export * as RopidGTFS from "./ropid-gtfs";
|
|
4
4
|
export * as VehiclePositions from "./vehicle-positions";
|
|
5
|
-
export declare const routers: import("@golemio/core/dist/helpers/routing/AbstractRouter").AbstractRouter[];
|
|
@@ -23,33 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
const departure_boards_1 = require("./departure-boards");
|
|
28
|
-
const pid_1 = require("./pid");
|
|
29
|
-
const public_1 = require("./public");
|
|
30
|
-
const ropid_gtfs_1 = require("./ropid-gtfs");
|
|
31
|
-
const vehicle_positions_1 = require("./vehicle-positions");
|
|
26
|
+
exports.VehiclePositions = exports.RopidGTFS = exports.PID = exports.DepartureBoards = void 0;
|
|
32
27
|
exports.DepartureBoards = __importStar(require("./departure-boards"));
|
|
33
28
|
exports.PID = __importStar(require("./pid"));
|
|
34
29
|
exports.RopidGTFS = __importStar(require("./ropid-gtfs"));
|
|
35
30
|
exports.VehiclePositions = __importStar(require("./vehicle-positions"));
|
|
36
|
-
exports.routers = [
|
|
37
|
-
//#region Ropid GTFS
|
|
38
|
-
ropid_gtfs_1.v2GtfsRouter,
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region Vehicle positions
|
|
41
|
-
vehicle_positions_1.v2VehiclepositionsRouter,
|
|
42
|
-
//#region Departure boards (deprecated)
|
|
43
|
-
departure_boards_1.v2DepartureBoardsRouter,
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region PID Departure boards
|
|
46
|
-
pid_1.v2PidRouter,
|
|
47
|
-
pid_1.v3PidRouter,
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region Public Endpoints
|
|
50
|
-
public_1.v2PublicDeparturesRouter,
|
|
51
|
-
public_1.v2PublicGtfsRouter,
|
|
52
|
-
public_1.v2PublicVPRouter,
|
|
53
|
-
//#endregion
|
|
54
|
-
];
|
|
55
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAsD;AACtD,6CAA6B;AAC7B,0DAA0C;AAC1C,wEAAwD"}
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="express" />
|
|
6
|
-
import {
|
|
6
|
+
import { BaseRouter } from "@golemio/core/dist/output-gateway/routes/BaseRouter";
|
|
7
7
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class PIDRouter extends BaseRouter {
|
|
9
9
|
readonly router: Router;
|
|
10
10
|
private cacheHeaderMiddleware;
|
|
11
11
|
private readonly departureBoardsController;
|
|
12
12
|
private readonly infotextsController;
|
|
13
13
|
constructor();
|
|
14
|
-
protected initRoutes: () => void;
|
|
15
14
|
private registerDepartureBoardsRoutes;
|
|
16
15
|
private registerInfotextsRoutes;
|
|
17
16
|
private commonMiddleware;
|
|
18
17
|
}
|
|
19
|
-
declare const
|
|
20
|
-
export {
|
|
18
|
+
declare const pidRouter: Router;
|
|
19
|
+
export { pidRouter };
|
|
@@ -4,25 +4,20 @@
|
|
|
4
4
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
const V2DepartureBoardsController_1 = require("../../controllers/v2/V2DepartureBoardsController");
|
|
9
|
-
const V2InfotextsController_1 = require("../../controllers/v2/V2InfotextsController");
|
|
10
|
-
const ParamValidatorManager_1 = require("../../helpers/ParamValidatorManager");
|
|
11
|
-
const constants_1 = require("../../../shared/constants");
|
|
12
|
-
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
7
|
+
exports.pidRouter = exports.PIDRouter = void 0;
|
|
13
8
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
14
9
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
10
|
+
const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
|
|
15
11
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
16
12
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
17
|
-
const const_1 = require("
|
|
18
|
-
|
|
13
|
+
const const_1 = require("../../const");
|
|
14
|
+
const constants_1 = require("../shared/constants");
|
|
15
|
+
const controllers_1 = require("./controllers");
|
|
16
|
+
const ParamValidatorManager_1 = require("./helpers/ParamValidatorManager");
|
|
17
|
+
class PIDRouter extends BaseRouter_1.BaseRouter {
|
|
19
18
|
constructor() {
|
|
20
|
-
super(
|
|
19
|
+
super();
|
|
21
20
|
this.router = (0, express_1.Router)();
|
|
22
|
-
this.initRoutes = () => {
|
|
23
|
-
this.registerDepartureBoardsRoutes();
|
|
24
|
-
this.registerInfotextsRoutes();
|
|
25
|
-
};
|
|
26
21
|
this.registerDepartureBoardsRoutes = () => {
|
|
27
22
|
const { preferredTimezone, departureBoards: { departureMode, order, filter, skip }, } = constants_1.ValidationArrays;
|
|
28
23
|
const validation = [
|
|
@@ -72,12 +67,14 @@ class V2PIDRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
72
67
|
};
|
|
73
68
|
this.commonMiddleware = (name) => [Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)(name)];
|
|
74
69
|
this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
75
|
-
this.departureBoardsController = new
|
|
76
|
-
this.infotextsController = new
|
|
77
|
-
|
|
70
|
+
this.departureBoardsController = new controllers_1.DepartureBoardsController();
|
|
71
|
+
this.infotextsController = new controllers_1.InfotextsController();
|
|
72
|
+
// Register routes
|
|
73
|
+
this.registerDepartureBoardsRoutes();
|
|
74
|
+
this.registerInfotextsRoutes();
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
|
-
exports.
|
|
81
|
-
const
|
|
82
|
-
exports.
|
|
83
|
-
//# sourceMappingURL=
|
|
77
|
+
exports.PIDRouter = PIDRouter;
|
|
78
|
+
const pidRouter = new PIDRouter().router;
|
|
79
|
+
exports.pidRouter = pidRouter;
|
|
80
|
+
//# sourceMappingURL=PIDRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PIDRouter.js","sourceRoot":"","sources":["../../../src/output-gateway/pid/PIDRouter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,6EAAkH;AAClH,+DAA+F;AAC/F,oFAAiF;AACjF,+DAA2D;AAC3D,mFAA2E;AAC3E,uCAAsF;AACtF,mDAAuD;AACvD,+CAA+E;AAC/E,2EAAwE;AAExE,MAAa,SAAU,SAAQ,uBAAU;IAMrC;QACI,KAAK,EAAE,CAAC;QANI,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QAgBlC,kCAA6B,GAAG,GAAG,EAAE;YACzC,MAAM,EACF,iBAAiB,EACjB,eAAe,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAC1D,GAAG,4BAAgB,CAAC;YACrB,MAAM,UAAU,GAAG;gBACf,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;gBAC1B,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;gBAC1B,IAAA,yBAAK,EAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;gBACvB,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;gBACzB,IAAA,yBAAK,EAAC;oBACF,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,6CAAqB,CAAC,kBAAkB,EAAE,CAAC;oBAC3E,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;oBAChC,IAAA,yBAAK,EAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,GA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EAAE,wBAAW,EAAE,IAAA,sCAAyB,EAAC,IAAI,CAAC,CAAC,CAAC;QAzEpG,IAAI,CAAC,qBAAqB,GAAG,4BAAsB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,yBAAyB,GAAG,IAAI,uCAAyB,EAAE,CAAC;QACjE,IAAI,CAAC,mBAAmB,GAAG,IAAI,iCAAmB,EAAE,CAAC;QAErD,kBAAkB;QAClB,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACrC,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACnC,CAAC;CAmEJ;AAlFD,8BAkFC;AAED,MAAM,SAAS,GAAW,IAAI,SAAS,EAAE,CAAC,MAAM,CAAC;AACxC,8BAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
2
|
import { RequestHandler } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class DepartureBoardsController {
|
|
4
4
|
private departureBoardsModel;
|
|
5
5
|
constructor();
|
|
6
6
|
getDepartureBoard: RequestHandler;
|
|
@@ -12,13 +12,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
const dto_1 = require("../../dto");
|
|
17
|
-
const models_1 = require("../../models");
|
|
18
|
-
const shared_1 = require("../../../shared");
|
|
19
|
-
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
15
|
+
exports.DepartureBoardsController = void 0;
|
|
20
16
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
21
|
-
|
|
17
|
+
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
18
|
+
const shared_1 = require("../../shared");
|
|
19
|
+
const models_1 = require("../models");
|
|
20
|
+
const dto_1 = require("../dto");
|
|
21
|
+
class DepartureBoardsController {
|
|
22
22
|
constructor() {
|
|
23
23
|
this.getDepartureBoard = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
var _a;
|
|
@@ -37,7 +37,7 @@ class V2DepartureBoardsController {
|
|
|
37
37
|
? (0, moment_timezone_1.default)(query.timeFrom)
|
|
38
38
|
: moment_timezone_1.default.tz(query.timeFrom, preferredTimezone)
|
|
39
39
|
: undefined;
|
|
40
|
-
const span = (0, trace_provider_1.createChildSpan)("
|
|
40
|
+
const span = (0, trace_provider_1.createChildSpan)("DepartureBoardsController.getDepartureBoard");
|
|
41
41
|
try {
|
|
42
42
|
const data = yield this.departureBoardsModel.GetAll({
|
|
43
43
|
aswIds: query.aswIds,
|
|
@@ -72,5 +72,5 @@ class V2DepartureBoardsController {
|
|
|
72
72
|
this.departureBoardsModel = new models_1.PIDDepartureBoardsModel();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
76
|
-
//# sourceMappingURL=
|
|
75
|
+
exports.DepartureBoardsController = DepartureBoardsController;
|
|
76
|
+
//# sourceMappingURL=DepartureBoardsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepartureBoardsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/DepartureBoardsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gGAA2E;AAE3E,+FAA6F;AAE7F,yCAA8C;AAC9C,sCAAyD;AACzD,gCAAkF;AAElF,MAAa,yBAAyB;IAGlC;QAIO,sBAAiB,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;;YAChE,MAAM,KAAK,GAAG,yBAAgB,CAAC,sBAAsB,CAAC,6BAAuB,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;YAC1F,MAAM,iBAAiB,GAAG,yBAAgB,CAAC,oBAAoB,CAAC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YAAY,EAAE,KAAK,CAAC,YAAY;iBACnC,CAAC,CAAC;gBACH,oCAAoC;gBACpC,GAAG,CAAC,SAAS,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC;gBACvD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,yBAAgB,CAAC,sBAAsB,CAAC,gCAA0B,EAAE,IAAI,CAAC,CAAC,CAAC;aACnG;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;oBAAS;gBACN,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAE,CAAC;aACf;QACL,CAAC,CAAA,CAAC;QAlDE,IAAI,CAAC,oBAAoB,GAAG,IAAI,gCAAuB,EAAE,CAAC;IAC9D,CAAC;CAkDJ;AAvDD,8DAuDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
2
|
import { RequestHandler } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class InfotextsController {
|
|
4
4
|
private readonly eventsStopsModel;
|
|
5
5
|
constructor();
|
|
6
6
|
getInfotexts: RequestHandler;
|
package/dist/output-gateway/pid/controllers/{v2/V2InfotextsController.js → InfotextsController.js}
RENAMED
|
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.InfotextsController = void 0;
|
|
13
13
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
14
14
|
const config_1 = require("@golemio/core/dist/output-gateway/config");
|
|
15
|
-
const models_1 = require("
|
|
16
|
-
class
|
|
15
|
+
const models_1 = require("../models");
|
|
16
|
+
class InfotextsController {
|
|
17
17
|
constructor() {
|
|
18
18
|
this.getInfotexts = (_req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const span = (0, trace_provider_1.createChildSpan)("
|
|
19
|
+
const span = (0, trace_provider_1.createChildSpan)("InfotextsController.getInfotexts");
|
|
20
20
|
try {
|
|
21
21
|
const preferredTimezone = config_1.config.vehiclePositions.defaultTimezone;
|
|
22
22
|
const data = yield this.eventsStopsModel.GetAllWithRoutes(preferredTimezone);
|
|
@@ -32,5 +32,5 @@ class V2InfotextsController {
|
|
|
32
32
|
this.eventsStopsModel = new models_1.RopidVYMIEventsStopsModel();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
//# sourceMappingURL=
|
|
35
|
+
exports.InfotextsController = InfotextsController;
|
|
36
|
+
//# sourceMappingURL=InfotextsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfotextsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/InfotextsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+FAA6F;AAC7F,qEAAkE;AAClE,sCAA2D;AAE3D,MAAa,mBAAmB;IAG5B;QAIO,iBAAY,GAAmB,CAAO,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5D,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,kCAAkC,CAAC,CAAC;YAEjE,IAAI;gBACA,MAAM,iBAAiB,GAAG,eAAM,CAAC,gBAAgB,CAAC,eAAe,CAAC;gBAClE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;gBAC7E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC9B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;oBAAS;gBACN,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAE,CAAC;aACf;QACL,CAAC,CAAA,CAAC;QAfE,IAAI,CAAC,gBAAgB,GAAG,IAAI,kCAAyB,EAAE,CAAC;IAC5D,CAAC;CAeJ;AApBD,kDAoBC"}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./DepartureBoardsController"), exports);
|
|
18
|
+
__exportStar(require("./InfotextsController"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wDAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DepartureFilter, DepartureMode, DepartureOrder, DepartureSkip, IPIDDepartureOutput } from "..";
|
|
2
1
|
import { IGTFSStopGetAllOutput } from "../../ropid-gtfs/models/GTFSStopModelInterfaces";
|
|
3
|
-
import {
|
|
2
|
+
import { IInfotextsStopsWithEventOutputModel } from "../models/RopidVYMIEventsStopsModel";
|
|
3
|
+
import { IPIDDepartureOutput, DepartureMode, DepartureFilter, DepartureOrder, DepartureSkip } from "..";
|
|
4
4
|
import { IDepartureBoardsQueryDTO } from "./interfaces/IDepartureBoardsQueryDTO";
|
|
5
5
|
export declare class DepartureBoardsQueryDTO implements IDepartureBoardsQueryDTO {
|
|
6
6
|
aswIds: string[];
|
|
@@ -24,5 +24,5 @@ export declare class DepartureBoardsQueryDTO implements IDepartureBoardsQueryDTO
|
|
|
24
24
|
export declare class DepartureBoardsResponseDTO {
|
|
25
25
|
stops: IGTFSStopGetAllOutput[];
|
|
26
26
|
departures: IPIDDepartureOutput[];
|
|
27
|
-
infotexts:
|
|
27
|
+
infotexts: IInfotextsStopsWithEventOutputModel[];
|
|
28
28
|
}
|
|
@@ -10,8 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DepartureBoardsResponseDTO = exports.DepartureBoardsQueryDTO = void 0;
|
|
13
|
-
const pid_1 = require("..");
|
|
14
13
|
const decorators_1 = require("../../shared/decorators");
|
|
14
|
+
const pid_1 = require("..");
|
|
15
15
|
class DepartureBoardsQueryDTO {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.aswIds = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepartureBoardsDTO.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/dto/DepartureBoardsDTO.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"DepartureBoardsDTO.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/dto/DepartureBoardsDTO.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA2F;AAG3F,4BAA6G;AAG7G,MAAa,uBAAuB;IAApC;QAEI,WAAM,GAAa,EAAE,CAAC;QAGtB,WAAM,GAAa,EAAE,CAAC;QAGtB,QAAG,GAAa,EAAE,CAAC;QAGnB,UAAK,GAAa,EAAE,CAAC;QAGrB,SAAI,GAAoB,EAAE,CAAC;QAG3B,UAAK,GAAW,EAAE,CAAC;QAGnB,iBAAY,GAAW,GAAG,CAAC;QAG3B,kBAAa,GAAW,CAAC,CAAC;QAG1B,uBAAkB,GAAY,KAAK,CAAC;QAGpC,iBAAY,GAAY,IAAI,CAAC;QAE7B,SAAI,GAAkB,mBAAa,CAAC,UAAU,CAAC;QAE/C,UAAK,GAAmB,oBAAc,CAAC,IAAI,CAAC;QAE5C,WAAM,GAAoB,qBAAe,CAAC,IAAI,CAAC;QAG/C,WAAM,GAAW,CAAC,CAAC;IAQvB,CAAC;CAAA;AA9CD,0DA8CC;AA5CG;IADC,IAAA,2BAAc,GAAE;;uDACK;AAGtB;IADC,IAAA,2BAAc,GAAE;;uDACK;AAGtB;IADC,IAAA,2BAAc,GAAE;;oDACE;AAGnB;IADC,IAAA,2BAAc,GAAE;;sDACI;AAGrB;IADC,IAAA,2BAAc,GAAE;;qDACU;AAG3B;IADC,IAAA,6BAAgB,GAAE;;sDACA;AAGnB;IADC,IAAA,6BAAgB,GAAE;;6DACQ;AAG3B;IADC,IAAA,6BAAgB,GAAE;;8DACO;AAG1B;IADC,IAAA,6BAAgB,GAAE;;mEACiB;AAGpC;IADC,IAAA,6BAAgB,GAAE;;6DACU;AAS7B;IADC,IAAA,6BAAgB,GAAE;;uDACA;AAGnB;IADC,IAAA,6BAAgB,GAAE;;sDACJ;AAOnB,MAAa,0BAA0B;IAAvC;QACI,UAAK,GAA4B,EAAE,CAAC;QACpC,eAAU,GAA0B,EAAE,CAAC;QACvC,cAAS,GAA0C,EAAE,CAAC;IAC1D,CAAC;CAAA;AAJD,gEAIC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
export * from "./
|
|
4
|
+
export * from "./PIDRouter";
|
|
5
5
|
export * from "./models";
|
|
6
6
|
export interface IPIDDeparture {
|
|
7
7
|
stop_sequence: number;
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.DepartureSkip = exports.DepartureFilter = exports.DepartureOrder = exports.DepartureMode = void 0;
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./PIDRouter"), exports);
|
|
19
19
|
__exportStar(require("./models"), exports);
|
|
20
20
|
var DepartureMode;
|
|
21
21
|
(function (DepartureMode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/pid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/pid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,8CAA4B;AAC5B,2CAAyB;AAkFzB,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,aAKX;AALD,WAAY,aAAa;IACrB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,mCAAkB,CAAA;IAClB,8BAA8B;AAClC,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -2,10 +2,9 @@ import { Moment } from "@golemio/core/dist/shared/moment-timezone";
|
|
|
2
2
|
import { DepartureFilter, DepartureMode, DepartureOrder, DepartureSkip } from "..";
|
|
3
3
|
declare class PIDDepartureBoardsModel {
|
|
4
4
|
private stopsMaxCount;
|
|
5
|
+
private ropidVYMIEventsStopsModel;
|
|
5
6
|
private ropidDeparturesDirectionsModel;
|
|
6
7
|
private departuresRepository;
|
|
7
|
-
private readonly infotextRepository;
|
|
8
|
-
private readonly infotextTransformation;
|
|
9
8
|
constructor();
|
|
10
9
|
/** Retrieves all gtfs stop times for specific stop, optionaly enhanced with realtime delays
|
|
11
10
|
* @param {string} id Id of the stop
|