@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
|
@@ -13,14 +13,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.PIDDepartureBoardsModel = void 0;
|
|
16
|
-
const data_access_1 = require("../data-access");
|
|
17
|
-
const models_1 = require("../../ropid-gtfs/models");
|
|
18
|
-
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
19
16
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
20
17
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
18
|
+
const models_1 = require("../../ropid-gtfs/models");
|
|
21
19
|
const _1 = require(".");
|
|
22
|
-
const
|
|
23
|
-
const
|
|
20
|
+
const data_access_1 = require("../data-access");
|
|
21
|
+
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
24
22
|
const PIDDepartureModel_1 = __importDefault(require("./helpers/PIDDepartureModel"));
|
|
25
23
|
class PIDDepartureBoardsModel {
|
|
26
24
|
constructor() {
|
|
@@ -33,7 +31,7 @@ class PIDDepartureBoardsModel {
|
|
|
33
31
|
var _a, _b;
|
|
34
32
|
const currentMoment = (0, moment_timezone_1.default)();
|
|
35
33
|
const minutesOffset = options.timeFrom ? options.timeFrom.diff(currentMoment, "minutes") : 0;
|
|
36
|
-
const spanStops = (0, trace_provider_1.createChildSpan)("
|
|
34
|
+
const spanStops = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.stops");
|
|
37
35
|
spanStops === null || spanStops === void 0 ? void 0 : spanStops.setAttributes(Object.assign(Object.assign({}, options), { timeFrom: (_a = options.timeFrom) === null || _a === void 0 ? void 0 : _a.toString() }));
|
|
38
36
|
const stopsToInclude = yield models_1.models.GTFSStopModel.GetAll({
|
|
39
37
|
includeMetroTrains: options.includeMetroTrains,
|
|
@@ -54,23 +52,16 @@ class PIDDepartureBoardsModel {
|
|
|
54
52
|
}
|
|
55
53
|
const stopsIds = stopsToInclude.map((e) => e.stop_id);
|
|
56
54
|
spanStops === null || spanStops === void 0 ? void 0 : spanStops.end();
|
|
57
|
-
const
|
|
55
|
+
const spanVymi = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.vymi");
|
|
58
56
|
let infotextsToInclude;
|
|
59
57
|
try {
|
|
60
|
-
|
|
61
|
-
infotextsToInclude = this.infotextTransformation.transformArray(infotexts.map((infotext) => ({
|
|
62
|
-
data: infotext,
|
|
63
|
-
timeZone: options.timezone,
|
|
64
|
-
})));
|
|
58
|
+
infotextsToInclude = yield this.ropidVYMIEventsStopsModel.GetAllDistinctWithEvents(stopsIds, (_b = options.timeFrom) !== null && _b !== void 0 ? _b : currentMoment, options.timezone);
|
|
65
59
|
}
|
|
66
60
|
catch (err) {
|
|
67
|
-
if (err instanceof golemio_errors_1.AbstractGolemioError) {
|
|
68
|
-
throw err;
|
|
69
|
-
}
|
|
70
61
|
throw new golemio_errors_1.GeneralError("Database error", "DepartureBoardsModel", err, 500);
|
|
71
62
|
}
|
|
72
|
-
|
|
73
|
-
const spanDirections = (0, trace_provider_1.createChildSpan)("
|
|
63
|
+
spanVymi === null || spanVymi === void 0 ? void 0 : spanVymi.end();
|
|
64
|
+
const spanDirections = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.directions");
|
|
74
65
|
let departuresDirections;
|
|
75
66
|
try {
|
|
76
67
|
departuresDirections = yield this.ropidDeparturesDirectionsModel.GetAll(stopsIds);
|
|
@@ -89,7 +80,7 @@ class PIDDepartureBoardsModel {
|
|
|
89
80
|
mode: options.mode,
|
|
90
81
|
isAirCondition: !!options.airCondition,
|
|
91
82
|
});
|
|
92
|
-
const spanDepartures = (0, trace_provider_1.createChildSpan)("
|
|
83
|
+
const spanDepartures = (0, trace_provider_1.createChildSpan)("PIDRouter.DB.departures");
|
|
93
84
|
const res = {
|
|
94
85
|
departures: new PIDDepartureModel_1.default(results, {
|
|
95
86
|
limit: options.limit,
|
|
@@ -112,10 +103,9 @@ class PIDDepartureBoardsModel {
|
|
|
112
103
|
throw new golemio_errors_1.GeneralError("Database error", "DepartureBoardsModel", err, 500);
|
|
113
104
|
}
|
|
114
105
|
});
|
|
106
|
+
this.ropidVYMIEventsStopsModel = new _1.RopidVYMIEventsStopsModel();
|
|
115
107
|
this.ropidDeparturesDirectionsModel = new _1.RopidDeparturesDirectionsModel();
|
|
116
108
|
this.departuresRepository = new data_access_1.DeparturesRepository();
|
|
117
|
-
this.infotextRepository = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.JISInfotextRepository);
|
|
118
|
-
this.infotextTransformation = Di_1.OgPidContainer.resolve(OgPidToken_1.OgPidToken.JISInfotextDepartureTransformation);
|
|
119
109
|
}
|
|
120
110
|
}
|
|
121
111
|
exports.PIDDepartureBoardsModel = PIDDepartureBoardsModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIDDepartureBoardsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/PIDDepartureBoardsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"PIDDepartureBoardsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/PIDDepartureBoardsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,gGAA2E;AAC3E,oDAA+C;AAC/C,wBAA8E;AAG9E,gDAA2D;AAE3D,+FAA6F;AAE7F,oFAA6D;AAE7D,MAAM,uBAAuB;IAMzB;QALQ,kBAAa,GAAG,GAAG,CAAC;QAW5B;;;WAGG;QACI,WAAM,GAAG,CAAO,OAkBtB,EAAgB,EAAE;;YACf,MAAM,aAAa,GAAG,IAAA,yBAAM,GAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAE7F,MAAM,SAAS,GAAG,IAAA,gCAAe,EAAC,oBAAoB,CAAC,CAAC;YACxD,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,aAAa,CAAC,gCAAK,OAAO,KAAE,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,EAAE,GAAoB,CAAC,CAAC;YACnG,MAAM,cAAc,GAAG,MAAM,eAAM,CAAC,aAAa,CAAC,MAAM,CAAC;gBACrD,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;gBAC9C,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,OAAO,CAA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G,EAAE,CAAC;gBACtB,OAAO,GAAG,CAAC;aACd;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC9E;QACL,CAAC,CAAA,CAAC;QAjHE,IAAI,CAAC,yBAAyB,GAAG,IAAI,4BAAyB,EAAE,CAAC;QACjE,IAAI,CAAC,8BAA8B,GAAG,IAAI,iCAA8B,EAAE,CAAC;QAC3E,IAAI,CAAC,oBAAoB,GAAG,IAAI,kCAAoB,EAAE,CAAC;IAC3D,CAAC;CA+GJ;AAEQ,0DAAuB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { SequelizeModel } from "@golemio/core/dist/output-gateway";
|
|
2
|
-
import
|
|
2
|
+
import moment from "@golemio/core/dist/shared/moment-timezone";
|
|
3
|
+
export declare enum InfotextsDisplayTypeEnum {
|
|
4
|
+
INLINE = "inline",
|
|
5
|
+
GENERAL = "general"
|
|
6
|
+
}
|
|
3
7
|
interface IInfotextsStopsWithEventModel {
|
|
4
8
|
valid_from: Date | null;
|
|
5
9
|
valid_to: Date | null;
|
|
@@ -15,8 +19,14 @@ interface IInfotextsStopsWithRoutesModel extends IInfotextsStopsWithEventModel {
|
|
|
15
19
|
last_updated_user: string;
|
|
16
20
|
related_routes: string[];
|
|
17
21
|
}
|
|
22
|
+
export interface IInfotextsStopsWithEventOutputModel extends Omit<IInfotextsStopsWithEventModel, "stop_type" | "valid_from" | "valid_to"> {
|
|
23
|
+
display_type: InfotextsDisplayTypeEnum;
|
|
24
|
+
text_en: null;
|
|
25
|
+
valid_from: string | null;
|
|
26
|
+
valid_to: string | null;
|
|
27
|
+
}
|
|
18
28
|
interface IInfotextsStopsWithRoutesOutputModel extends Omit<IInfotextsStopsWithRoutesModel, "stop_type" | "expiration_date" | "last_updated" | "valid_from" | "valid_to"> {
|
|
19
|
-
display_type:
|
|
29
|
+
display_type: InfotextsDisplayTypeEnum;
|
|
20
30
|
text_en: null;
|
|
21
31
|
expiration_date: string | null;
|
|
22
32
|
last_updated: string;
|
|
@@ -34,10 +44,17 @@ export declare class RopidVYMIEventsStopsModel extends SequelizeModel {
|
|
|
34
44
|
GetAll(options?: any): Promise<any>;
|
|
35
45
|
GetOne(id: any): Promise<any>;
|
|
36
46
|
constructor();
|
|
47
|
+
/** Retrieves all infotexts with event, could be inner joined with set of stops
|
|
48
|
+
*
|
|
49
|
+
* @param {string[]} stopsIds - Array of GTFS stop ids to be inner joined with corresponding infotexts
|
|
50
|
+
* @param {Moment} timeFrom - Timestamp to filter out specified expiration_date column greater than this value
|
|
51
|
+
*/
|
|
52
|
+
GetAllDistinctWithEvents: (stopsIds: string[], timeFrom: moment.Moment | undefined, timezone: string) => Promise<IInfotextsStopsWithEventOutputModel[]>;
|
|
37
53
|
/**
|
|
38
54
|
* Retrieve all infotexts with routes
|
|
39
55
|
*/
|
|
40
56
|
GetAllWithRoutes: (timezone: string) => Promise<IInfotextsStopsWithRoutesOutputModel[]>;
|
|
57
|
+
private mapDataWithEvent;
|
|
41
58
|
private mapDataWithRoutes;
|
|
42
59
|
private mapStopTypeToDisplayType;
|
|
43
60
|
}
|
|
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.RopidVYMIEventsStopsModel = void 0;
|
|
26
|
+
exports.RopidVYMIEventsStopsModel = exports.InfotextsDisplayTypeEnum = void 0;
|
|
27
27
|
const models_1 = require("./");
|
|
28
28
|
const GTFSStopModel_1 = require("../../ropid-gtfs/models/GTFSStopModel");
|
|
29
29
|
const shared_1 = require("../../shared");
|
|
@@ -31,9 +31,20 @@ const const_1 = require("../../../schema-definitions/const");
|
|
|
31
31
|
const ropid_gtfs_1 = require("../../../schema-definitions/ropid-gtfs");
|
|
32
32
|
const ropid_vymi_1 = require("../../../schema-definitions/ropid-vymi");
|
|
33
33
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
34
|
-
const
|
|
34
|
+
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
35
35
|
const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
|
|
36
|
-
const
|
|
36
|
+
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc/");
|
|
37
|
+
var InfotextsRecordTypeEnum;
|
|
38
|
+
(function (InfotextsRecordTypeEnum) {
|
|
39
|
+
InfotextsRecordTypeEnum[InfotextsRecordTypeEnum["EXCEPTION"] = 1] = "EXCEPTION";
|
|
40
|
+
InfotextsRecordTypeEnum[InfotextsRecordTypeEnum["PLANNED_RESTRICTION"] = 2] = "PLANNED_RESTRICTION";
|
|
41
|
+
InfotextsRecordTypeEnum[InfotextsRecordTypeEnum["PERMANENT_CHANGE"] = 3] = "PERMANENT_CHANGE";
|
|
42
|
+
})(InfotextsRecordTypeEnum || (InfotextsRecordTypeEnum = {}));
|
|
43
|
+
var InfotextsDisplayTypeEnum;
|
|
44
|
+
(function (InfotextsDisplayTypeEnum) {
|
|
45
|
+
InfotextsDisplayTypeEnum["INLINE"] = "inline";
|
|
46
|
+
InfotextsDisplayTypeEnum["GENERAL"] = "general";
|
|
47
|
+
})(InfotextsDisplayTypeEnum || (exports.InfotextsDisplayTypeEnum = InfotextsDisplayTypeEnum = {}));
|
|
37
48
|
/**
|
|
38
49
|
* Custom Postgres model for Ropid VYMI Events
|
|
39
50
|
*/
|
|
@@ -46,6 +57,49 @@ class RopidVYMIEventsStopsModel extends output_gateway_1.SequelizeModel {
|
|
|
46
57
|
}
|
|
47
58
|
constructor() {
|
|
48
59
|
super(ropid_vymi_1.RopidVYMI.eventsStops.name + "Model", ropid_vymi_1.RopidVYMI.eventsStops.pgTableName, ropid_vymi_1.RopidVYMI.eventsStops.outputSequelizeAttributes, { schema: const_1.PG_SCHEMA });
|
|
60
|
+
/** Retrieves all infotexts with event, could be inner joined with set of stops
|
|
61
|
+
*
|
|
62
|
+
* @param {string[]} stopsIds - Array of GTFS stop ids to be inner joined with corresponding infotexts
|
|
63
|
+
* @param {Moment} timeFrom - Timestamp to filter out specified expiration_date column greater than this value
|
|
64
|
+
*/
|
|
65
|
+
this.GetAllDistinctWithEvents = (stopsIds, timeFrom = (0, moment_timezone_1.default)(), timezone) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
if (stopsIds.length < 1) {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
const data = yield this.sequelizeModel.findAll({
|
|
70
|
+
attributes: [
|
|
71
|
+
"valid_from",
|
|
72
|
+
"valid_to",
|
|
73
|
+
"text",
|
|
74
|
+
"stop_type",
|
|
75
|
+
[sequelize_1.default.fn("ARRAY_AGG", sequelize_1.default.col("gtfs_stop_id")), "related_stops"],
|
|
76
|
+
],
|
|
77
|
+
include: {
|
|
78
|
+
attributes: [],
|
|
79
|
+
as: "vymi_event",
|
|
80
|
+
model: this.dbConnector.getConnection().models[ropid_vymi_1.RopidVYMI.events.pgTableName],
|
|
81
|
+
where: {
|
|
82
|
+
time_from: {
|
|
83
|
+
[sequelize_1.default.Op.lte]: new Date().toISOString(),
|
|
84
|
+
},
|
|
85
|
+
expiration_date: {
|
|
86
|
+
[sequelize_1.default.Op.or]: [null, { [sequelize_1.default.Op.gte]: timeFrom.toISOString() }],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
where: {
|
|
91
|
+
gtfs_stop_id: {
|
|
92
|
+
[sequelize_1.default.Op.in]: stopsIds,
|
|
93
|
+
},
|
|
94
|
+
text: {
|
|
95
|
+
[sequelize_1.default.Op.and]: [{ [sequelize_1.default.Op.ne]: null }, { [sequelize_1.default.Op.ne]: "" }],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
group: ["valid_from", "valid_to", "text", "stop_type", "vymi_event.vymi_id"],
|
|
99
|
+
raw: true,
|
|
100
|
+
});
|
|
101
|
+
return this.mapDataWithEvent(data, timezone);
|
|
102
|
+
});
|
|
49
103
|
/**
|
|
50
104
|
* Retrieve all infotexts with routes
|
|
51
105
|
*/
|
|
@@ -111,6 +165,12 @@ class RopidVYMIEventsStopsModel extends output_gateway_1.SequelizeModel {
|
|
|
111
165
|
});
|
|
112
166
|
return this.mapDataWithRoutes(data, timezone);
|
|
113
167
|
});
|
|
168
|
+
this.mapDataWithEvent = (items, timezone) => {
|
|
169
|
+
return items.map((item) => {
|
|
170
|
+
const { stop_type: stopType, valid_from, valid_to } = item, infotextsStopModel = __rest(item, ["stop_type", "valid_from", "valid_to"]);
|
|
171
|
+
return Object.assign(Object.assign({ display_type: this.mapStopTypeToDisplayType(stopType), text_en: null }, infotextsStopModel), { valid_from: shared_1.RopidRouterUtils.formatTimestamp(valid_from, timezone), valid_to: shared_1.RopidRouterUtils.formatTimestamp(valid_to, timezone) });
|
|
172
|
+
});
|
|
173
|
+
};
|
|
114
174
|
this.mapDataWithRoutes = (items, timezone) => {
|
|
115
175
|
return items.map((item) => {
|
|
116
176
|
const { vymi_id, vymi_id_dtb, stop_type: stopType, expiration_date, last_updated, valid_from, valid_to, last_updated_user } = item, infotextsStopModel = __rest(item, ["vymi_id", "vymi_id_dtb", "stop_type", "expiration_date", "last_updated", "valid_from", "valid_to", "last_updated_user"]);
|
|
@@ -119,7 +179,7 @@ class RopidVYMIEventsStopsModel extends output_gateway_1.SequelizeModel {
|
|
|
119
179
|
};
|
|
120
180
|
this.mapStopTypeToDisplayType = (stopType) => {
|
|
121
181
|
// stop type 1 and 9 leads to general infotext type
|
|
122
|
-
return stopType === 1 || stopType === 9 ?
|
|
182
|
+
return stopType === 1 || stopType === 9 ? InfotextsDisplayTypeEnum.GENERAL : InfotextsDisplayTypeEnum.INLINE;
|
|
123
183
|
};
|
|
124
184
|
this.dbConnector = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.PostgresDatabase);
|
|
125
185
|
this.eventsModel = new models_1.RopidVYMIEventsModel();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidVYMIEventsStopsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/RopidVYMIEventsStopsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAkF;AAClF,yEAAoE;AACpE,yCAA8C;AAC9C,6DAAuC;AACvC,uEAA4C;AAC5C,uEAA4C;
|
|
1
|
+
{"version":3,"file":"RopidVYMIEventsStopsModel.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/models/RopidVYMIEventsStopsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAkF;AAClF,yEAAoE;AACpE,yCAA8C;AAC9C,6DAAuC;AACvC,uEAA4C;AAC5C,uEAA4C;AAC5C,sEAAmE;AACnE,gGAA2E;AAC3E,oFAA4D;AAE5D,gEAAgG;AAEhG,IAAK,uBAIJ;AAJD,WAAK,uBAAuB;IACxB,+EAAa,CAAA;IACb,mGAAuB,CAAA;IACvB,6FAAoB,CAAA;AACxB,CAAC,EAJI,uBAAuB,KAAvB,uBAAuB,QAI3B;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACvB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAqCD;;GAEG;AACH,MAAa,yBAA0B,SAAQ,+BAAc;IAMzD,MAAM,CAAC,OAAa;QAChB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,CAAC,EAAO;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED;QACI,KAAK,CACD,sBAAS,CAAC,WAAW,CAAC,IAAI,GAAG,OAAO,EACpC,sBAAS,CAAC,WAAW,CAAC,WAAW,EACjC,sBAAS,CAAC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
|
|
2
2
|
import { RequestHandler } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class PublicDepartureBoardsController {
|
|
4
4
|
constructor();
|
|
5
5
|
getAll: RequestHandler;
|
|
6
6
|
private parseDepartureParams;
|
|
@@ -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.PublicDepartureBoardsController = void 0;
|
|
13
13
|
const Di_1 = require("../../ioc/Di");
|
|
14
14
|
const OgModuleToken_1 = require("../../ioc/OgModuleToken");
|
|
15
15
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
16
|
-
class
|
|
16
|
+
class PublicDepartureBoardsController {
|
|
17
17
|
constructor() {
|
|
18
18
|
this.getAll = (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)("PublicDepartureBoardsController.getAll");
|
|
20
20
|
try {
|
|
21
21
|
const facade = Di_1.OgPublicContainer.resolve(OgModuleToken_1.OgModuleToken.DepartureBoardFacade);
|
|
22
22
|
const params = this.parseDepartureParams(req.query);
|
|
@@ -61,5 +61,5 @@ class V2PublicDepartureBoardsController {
|
|
|
61
61
|
return output;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
exports.
|
|
65
|
-
//# sourceMappingURL=
|
|
64
|
+
exports.PublicDepartureBoardsController = PublicDepartureBoardsController;
|
|
65
|
+
//# sourceMappingURL=PublicDepartureBoardsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicDepartureBoardsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v1/PublicDepartureBoardsController.ts"],"names":[],"mappings":";;;;;;;;;;;;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4B;oBACrC,CAAC,CAAC,CAAC,KAAK,CAAC,eAAyB,CAAC;gBACvC,CAAC,CAAC,IAAI;YACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,CAAC;YACxD,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAsB,CAAC,CAAC,CAAC,CAAC,EAAE;SACjF,CAAC;IACN,CAAC;IAEO,YAAY,CAAC,gBAA0B;QAC3C,IAAI,MAAM,GAAsC,IAAI,GAAG,EAAE,CAAC;QAE1D,KAAK,MAAM,MAAM,IAAI,gBAAgB,EAAE;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACxC,MAAM,OAAO,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;YAE3C,MAAM,CAAC,GAAG,CAAC;gBACP,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBACnC,OAAO,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;aACjC,CAAC,CAAC;SACN;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AApDD,0EAoDC"}
|
|
@@ -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 PublicGtfsController {
|
|
4
4
|
getOneTrip: RequestHandler;
|
|
5
5
|
private parseGtfsTripLookupParams;
|
|
6
6
|
}
|
|
@@ -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.PublicGtfsController = void 0;
|
|
13
13
|
const Di_1 = require("../../ioc/Di");
|
|
14
14
|
const OgModuleToken_1 = require("../../ioc/OgModuleToken");
|
|
15
15
|
const trace_provider_1 = require("@golemio/core/dist/monitoring/opentelemetry/trace-provider");
|
|
16
|
-
class
|
|
16
|
+
class PublicGtfsController {
|
|
17
17
|
constructor() {
|
|
18
18
|
this.getOneTrip = (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)("PublicGtfsController.getOneTrip");
|
|
20
20
|
try {
|
|
21
21
|
const facade = Di_1.OgPublicContainer.resolve(OgModuleToken_1.OgModuleToken.GtfsTripLookupFacade);
|
|
22
22
|
const params = this.parseGtfsTripLookupParams(req);
|
|
@@ -40,5 +40,5 @@ class V2PublicGtfsController {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.
|
|
44
|
-
//# sourceMappingURL=
|
|
43
|
+
exports.PublicGtfsController = PublicGtfsController;
|
|
44
|
+
//# sourceMappingURL=PublicGtfsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicGtfsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v1/PublicGtfsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,2DAA6D;AAG7D,+FAA6F;AAI7F,MAAa,oBAAoB;IAAjC;QACW,eAAU,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzD,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,iCAAiC,CAAC,CAAC;YAEhE,IAAI;gBACA,MAAM,MAAM,GAAG,sBAAiB,CAAC,OAAO,CAAuB,6BAAa,CAAC,oBAAoB,CAAC,CAAC;gBACnG,MAAM,MAAM,GAAG,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;gBACnD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;gBAE/E,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAClB;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;IAWN,CAAC;IATW,yBAAyB,CAAC,GAAY;QAC1C,OAAO;YACH,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU;YACjC,MAAM,EACF,GAAG,CAAC,KAAK,CAAC,MAAM,YAAY,KAAK;gBAC7B,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,MAA6B,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAA2B,CAAC;SACpD,CAAC;IACN,CAAC;CACJ;AA1BD,oDA0BC"}
|
|
@@ -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 PublicVehiclePositionsController {
|
|
4
4
|
constructor();
|
|
5
5
|
getAll: RequestHandler;
|
|
6
6
|
getOneByVehicleId: RequestHandler;
|
|
@@ -9,12 +9,12 @@ 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.PublicVehiclePositionsController = void 0;
|
|
13
13
|
const RouteTypeEnums_1 = require("../../../../helpers/RouteTypeEnums");
|
|
14
14
|
const const_1 = require("../../domain/const");
|
|
15
15
|
const Di_1 = require("../../ioc/Di");
|
|
16
16
|
const OgModuleToken_1 = require("../../ioc/OgModuleToken");
|
|
17
|
-
class
|
|
17
|
+
class PublicVehiclePositionsController {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.getAll = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
try {
|
|
@@ -82,5 +82,5 @@ class V2PublicVehiclePositionsController {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
exports.
|
|
86
|
-
//# sourceMappingURL=
|
|
85
|
+
exports.PublicVehiclePositionsController = PublicVehiclePositionsController;
|
|
86
|
+
//# sourceMappingURL=PublicVehiclePositionsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicVehiclePositionsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v1/PublicVehiclePositionsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA2D;AAC3D,8CAA6D;AAC7D,qCAAsD;AACtD,2DAA6D;AAQ7D,MAAa,gCAAgC;IACzC;QAEO,WAAM,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACrD,IAAI;gBACA,MAAM,MAAM,GAAG,sBAAiB,CAAC,OAAO,CAA+B,6BAAa,CAAC,4BAA4B,CAAC,CAAC;gBACnH,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBACpD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;gBAE3F,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,C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GAAG,CAAC,MAAM,CAAC,UAAU;YAC7B,MAAM,EACF,GAAG,CAAC,KAAK,CAAC,MAAM,YAAY,KAAK;gBAC7B,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,MAA6B,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAA2B,CAAC;SACpD,CAAC;IACN,CAAC;CACJ;AAxED,4EAwEC"}
|
package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GTFSRouteTypeEnum } from "../../../../../helpers/RouteTypeEnums";
|
|
2
2
|
import { IBoundingBox } from "../../../domain/IBoudingBox";
|
|
3
|
-
import { DetailedTripScope } from "../../../routers/
|
|
3
|
+
import { DetailedTripScope } from "../../../routers/v1/helpers/DetailedTripScopeEnum";
|
|
4
4
|
export interface IVehiclePositionsParams {
|
|
5
5
|
boundingBox: IBoundingBox;
|
|
6
6
|
routeShortName: string | string[] | undefined;
|
package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicParamsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/controllers/
|
|
1
|
+
{"version":3,"file":"PublicParamsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
-
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
3
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
4
|
-
export declare class
|
|
3
|
+
export declare class PublicDeparturesRouter {
|
|
5
4
|
router: Router;
|
|
6
5
|
private cacheHeaderMiddleware;
|
|
7
6
|
private compressionByDefaultMiddleware;
|
|
@@ -9,5 +8,5 @@ export declare class V2PublicDeparturesRouter extends AbstractRouter {
|
|
|
9
8
|
constructor();
|
|
10
9
|
protected initRoutes(): void;
|
|
11
10
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export {
|
|
11
|
+
declare const v1PublicDeparturesRouter: Router;
|
|
12
|
+
export { v1PublicDeparturesRouter };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v1PublicDeparturesRouter = exports.PublicDeparturesRouter = void 0;
|
|
4
|
+
const PublicDepartureBoardsController_1 = require("../../controllers/v1/PublicDepartureBoardsController");
|
|
5
5
|
const Di_1 = require("../../ioc/Di");
|
|
6
|
-
const constants_1 = require("../../../shared/constants");
|
|
7
|
-
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
8
6
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
9
7
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
10
8
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
11
9
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
12
10
|
const CustomStopIdGroupValidator_1 = require("./helpers/CustomStopIdGroupValidator");
|
|
13
|
-
class
|
|
11
|
+
class PublicDeparturesRouter {
|
|
14
12
|
constructor() {
|
|
15
|
-
super(constants_1.RouteVersion.v2, "public/departureboards");
|
|
16
13
|
this.router = (0, express_1.Router)();
|
|
17
14
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
18
15
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
19
|
-
this.departureController = new
|
|
16
|
+
this.departureController = new PublicDepartureBoardsController_1.PublicDepartureBoardsController();
|
|
20
17
|
this.initRoutes();
|
|
21
18
|
}
|
|
22
19
|
initRoutes() {
|
|
@@ -30,7 +27,7 @@ class V2PublicDeparturesRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
30
27
|
this.cacheHeaderMiddleware.getMiddleware(3, 2), this.compressionByDefaultMiddleware.getMiddleware(), this.departureController.getAll);
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
35
|
-
exports.
|
|
36
|
-
//# sourceMappingURL=
|
|
30
|
+
exports.PublicDeparturesRouter = PublicDeparturesRouter;
|
|
31
|
+
const v1PublicDeparturesRouter = new PublicDeparturesRouter().router;
|
|
32
|
+
exports.v1PublicDeparturesRouter = v1PublicDeparturesRouter;
|
|
33
|
+
//# sourceMappingURL=PublicDeparturesRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicDeparturesRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v1/PublicDeparturesRouter.ts"],"names":[],"mappings":";;;AAAA,0GAA4G;AAC5G,qCAAsD;AAGtD,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAAoE;AACpE,qFAAkF;AAElF,MAAa,sBAAsB;IAM/B;QACI,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,qBAAqB,GAAG,sBAAiB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACpH,IAAI,CAAC,8BAA8B,GAAG,sBAAiB,CAAC,OAAO,CAC3D,oBAAc,CAAC,8BAA8B,CAChD,CAAC;QACF,IAAI,CAAC,mBAAmB,GAAG,IAAI,iEAA+B,EAAE,CAAC;QACjE,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,GAAG,EACH;YACI,IAAA,yBAAK,EAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,uDAA0B,CAAC,QAAQ,CAAC;YACrE,IAAA,yBAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;YACpE,IAAA,yBAAK,EAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;YAC9E,IAAA,yBAAK,EAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;SAC/E,EACD,wBAAW;QACX,sDAAsD;QACtD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9C,IAAI,CAAC,8BAA8B,CAAC,aAAa,EAAE,EACnD,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAClC,CAAC;IACN,CAAC;CACJ;AAhCD,wDAgCC;AAED,MAAM,wBAAwB,GAAG,IAAI,sBAAsB,EAAE,CAAC,MAAM,CAAC;AAC5D,4DAAwB"}
|
package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.d.ts → v1/PublicGtfsRouter.d.ts}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
-
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
3
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
4
|
-
export declare class
|
|
3
|
+
export declare class PublicGtfsRouter {
|
|
5
4
|
router: Router;
|
|
6
5
|
private cacheHeaderMiddleware;
|
|
7
6
|
private compressionByDefaultMiddleware;
|
|
@@ -9,5 +8,5 @@ export declare class V2PublicGtfsRouter extends AbstractRouter {
|
|
|
9
8
|
constructor();
|
|
10
9
|
protected initRoutes(): void;
|
|
11
10
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export {
|
|
11
|
+
declare const v1PublicGtfsRouter: Router;
|
|
12
|
+
export { v1PublicGtfsRouter };
|
package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.js → v1/PublicGtfsRouter.js}
RENAMED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v1PublicGtfsRouter = exports.PublicGtfsRouter = void 0;
|
|
4
|
+
const PublicGtfsController_1 = require("../../controllers/v1/PublicGtfsController");
|
|
5
5
|
const Di_1 = require("../../ioc/Di");
|
|
6
|
-
const constants_1 = require("../../../shared/constants");
|
|
7
|
-
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
8
6
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
9
7
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
10
8
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
11
9
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
12
10
|
const CustomScopeValidator_1 = require("./helpers/CustomScopeValidator");
|
|
13
|
-
class
|
|
11
|
+
class PublicGtfsRouter {
|
|
14
12
|
constructor() {
|
|
15
|
-
super(constants_1.RouteVersion.v2, "public/gtfs");
|
|
16
13
|
this.router = (0, express_1.Router)();
|
|
17
14
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
18
15
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
19
|
-
this.gtfsController = new
|
|
16
|
+
this.gtfsController = new PublicGtfsController_1.PublicGtfsController();
|
|
20
17
|
this.initRoutes();
|
|
21
18
|
}
|
|
22
19
|
initRoutes() {
|
|
@@ -25,7 +22,7 @@ class V2PublicGtfsRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
25
22
|
this.cacheHeaderMiddleware.getMiddleware(4 * 60 * 60, 60), this.compressionByDefaultMiddleware.getMiddleware(), this.gtfsController.getOneTrip);
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
30
|
-
exports.
|
|
31
|
-
//# sourceMappingURL=
|
|
25
|
+
exports.PublicGtfsRouter = PublicGtfsRouter;
|
|
26
|
+
const v1PublicGtfsRouter = new PublicGtfsRouter().router;
|
|
27
|
+
exports.v1PublicGtfsRouter = v1PublicGtfsRouter;
|
|
28
|
+
//# sourceMappingURL=PublicGtfsRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicGtfsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v1/PublicGtfsRouter.ts"],"names":[],"mappings":";;;AAAA,oFAAsF;AACtF,qCAAsD;AAGtD,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAA2E;AAC3E,yEAAsE;AAEtE,MAAa,gBAAgB;IAMzB;QACI,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,qBAAqB,GAAG,sBAAiB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACpH,IAAI,CAAC,8BAA8B,GAAG,sBAAiB,CAAC,OAAO,CAC3D,oBAAc,CAAC,8BAA8B,CAChD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,IAAI,2CAAoB,EAAE,CAAC;QACjD,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,oBAAoB,EACpB,CAAC,IAAA,yBAAK,EAAC,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,2CAAoB,CAAC,QAAQ,CAAC,CAAC,EACrF,wBAAW;QACX,mDAAmD;QACnD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EACzD,IAAI,CAAC,8BAA8B,CAAC,aAAa,EAAE,EACnD,IAAI,CAAC,cAAc,CAAC,UAAU,CACjC,CAAC;IACN,CAAC;CACJ;AA3BD,4CA2BC;AAED,MAAM,kBAAkB,GAAG,IAAI,gBAAgB,EAAE,CAAC,MAAM,CAAC;AAChD,gDAAkB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
-
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
3
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
4
|
-
export declare class
|
|
3
|
+
export declare class PublicVehiclePositionsRouter {
|
|
5
4
|
router: Router;
|
|
6
5
|
private cacheHeaderMiddleware;
|
|
7
6
|
private compressionByDefaultMiddleware;
|
|
@@ -10,5 +9,5 @@ export declare class V2PublicVehiclePositionsRouter extends AbstractRouter {
|
|
|
10
9
|
constructor();
|
|
11
10
|
protected initRoutes(): void;
|
|
12
11
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export {
|
|
12
|
+
declare const v1PublicVPRouter: Router;
|
|
13
|
+
export { v1PublicVPRouter };
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v1PublicVPRouter = exports.PublicVehiclePositionsRouter = void 0;
|
|
4
|
+
const PublicVehiclePositionsController_1 = require("../../controllers/v1/PublicVehiclePositionsController");
|
|
5
5
|
const Di_1 = require("../../ioc/Di");
|
|
6
6
|
const OgModuleToken_1 = require("../../ioc/OgModuleToken");
|
|
7
|
-
const constants_1 = require("../../../shared/constants");
|
|
8
|
-
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
9
7
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
10
8
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
11
9
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
12
10
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
13
11
|
const CustomScopeValidator_1 = require("./helpers/CustomScopeValidator");
|
|
14
12
|
const CustomTypeValidator_1 = require("./helpers/CustomTypeValidator");
|
|
15
|
-
class
|
|
13
|
+
class PublicVehiclePositionsRouter {
|
|
16
14
|
constructor() {
|
|
17
|
-
super(constants_1.RouteVersion.v2, "public/vehiclepositions");
|
|
18
15
|
this.router = (0, express_1.Router)();
|
|
19
16
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
20
17
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
21
|
-
this.vehiclePositionsController = new
|
|
18
|
+
this.vehiclePositionsController = new PublicVehiclePositionsController_1.PublicVehiclePositionsController();
|
|
22
19
|
this.initRoutes();
|
|
23
20
|
this.redisSubscriber = Di_1.OgPublicContainer.resolve(OgModuleToken_1.OgModuleToken.VPSubscriber);
|
|
24
21
|
this.redisSubscriber.initialize();
|
|
@@ -43,7 +40,7 @@ class V2PublicVehiclePositionsRouter extends AbstractRouter_1.AbstractRouter {
|
|
|
43
40
|
this.cacheHeaderMiddleware.getMiddleware(5, 5), this.compressionByDefaultMiddleware.getMiddleware(), this.vehiclePositionsController.getOneByVehicleId);
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
48
|
-
exports.
|
|
49
|
-
//# sourceMappingURL=
|
|
43
|
+
exports.PublicVehiclePositionsRouter = PublicVehiclePositionsRouter;
|
|
44
|
+
const v1PublicVPRouter = new PublicVehiclePositionsRouter().router;
|
|
45
|
+
exports.v1PublicVPRouter = v1PublicVPRouter;
|
|
46
|
+
//# sourceMappingURL=PublicVehiclePositionsRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicVehiclePositionsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.ts"],"names":[],"mappings":";;;AAAA,4GAA8G;AAC9G,qCAAsD;AACtD,2DAA6D;AAI7D,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAA2E;AAC3E,yEAAsE;AACtE,uEAAoE;AAEpE,MAAa,4BAA4B;IAOrC;QACI,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,qBAAqB,GAAG,sBAAiB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACpH,IAAI,CAAC,8BAA8B,GAAG,sBAAiB,CAAC,OAAO,CAC3D,oBAAc,CAAC,8BAA8B,CAChD,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,mEAAgC,EAAE,CAAC;QACzE,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,eAAe,GAAG,sBAAiB,CAAC,OAAO,CAAe,6BAAa,CAAC,YAAY,CAAC,CAAC;QAC3F,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;IACtC,CAAC;IAES,UAAU;QAChB,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,GAAG,EACH;YACI,IAAA,yBAAK,EAAC,aAAa,CAAC;iBACf,QAAQ,EAAE;iBACV,OAAO,CAAC,4BAA4B,CAAC,CAAC,8BAA8B;iBACpE,GAAG,EAAE;iBACL,OAAO,EAAE;YACd,IAAA,yBAAK,EAAC,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