@golemio/pid 2.18.0 → 2.18.1-dev.1427397189
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 +2 -0
- package/db/example/03_ropidgtfs_dump.sql +36 -0
- package/db/example/20_jis_infotexts.sql +214 -0
- package/db/migrations/postgresql/20240801141948-jis-infotexts.js +53 -0
- package/db/migrations/postgresql/20240809084521-jis-infotexts-severity-level.js +53 -0
- package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-down.sql +2 -0
- package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-up.sql +19 -0
- package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-down.sql +8 -0
- package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-up.sql +7 -0
- package/dist/integration-engine/index.js +4 -0
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.d.ts +10 -0
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js +49 -0
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js.map +1 -0
- package/dist/integration-engine/jis/index.d.ts +1 -0
- package/dist/{output-gateway/pid/controllers → integration-engine/jis}/index.js +1 -2
- package/dist/integration-engine/jis/index.js.map +1 -0
- package/dist/integration-engine/jis/ioc/Di.d.ts +3 -0
- package/dist/integration-engine/jis/ioc/Di.js +31 -0
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -0
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +9 -0
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +18 -0
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +36 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +101 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +36 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +101 -0
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -0
- package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +20 -0
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js +78 -0
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +1 -0
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.d.ts +13 -0
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +41 -0
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -0
- package/dist/integration-engine/jis/workers/JISWorker.d.ts +7 -0
- package/dist/integration-engine/jis/workers/JISWorker.js +21 -0
- package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -0
- package/dist/integration-engine/jis/workers/constants.d.ts +1 -0
- package/dist/integration-engine/jis/workers/constants.js +5 -0
- package/dist/integration-engine/jis/workers/constants.js.map +1 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +14 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +72 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.d.ts +3 -0
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js +62 -0
- package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.d.ts +2 -0
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +21 -0
- package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.d.ts +22 -0
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js +3 -0
- package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js.map +1 -0
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.d.ts +1 -4
- package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js +11 -27
- 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 +22 -49
- 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 +0 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +1 -80
- 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 +0 -17
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +3 -6
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +8 -19
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
- 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/departure-boards/routers/index.d.ts +1 -0
- package/dist/output-gateway/departure-boards/routers/index.js +6 -0
- package/dist/output-gateway/departure-boards/routers/index.js.map +1 -0
- package/dist/output-gateway/departure-boards/{DepartureBoardsRouter.d.ts → routers/v2/V2DepartureBoardsRouter.d.ts} +9 -8
- package/dist/output-gateway/departure-boards/{DepartureBoardsRouter.js → routers/v2/V2DepartureBoardsRouter.js} +19 -18
- package/dist/output-gateway/departure-boards/routers/v2/V2DepartureBoardsRouter.js.map +1 -0
- package/dist/output-gateway/index.d.ts +1 -0
- package/dist/output-gateway/index.js +25 -1
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/pid/controllers/{DepartureBoardsController.d.ts → v2/V2DepartureBoardsController.d.ts} +1 -1
- package/dist/output-gateway/pid/controllers/{DepartureBoardsController.js → v2/V2DepartureBoardsController.js} +9 -9
- package/dist/output-gateway/pid/controllers/v2/V2DepartureBoardsController.js.map +1 -0
- package/dist/output-gateway/pid/controllers/{InfotextsController.d.ts → v2/V2InfotextsController.d.ts} +1 -1
- package/dist/output-gateway/pid/controllers/{InfotextsController.js → v2/V2InfotextsController.js} +6 -6
- package/dist/output-gateway/pid/controllers/v2/V2InfotextsController.js.map +1 -0
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.d.ts +10 -0
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js +57 -0
- package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js.map +1 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.d.ts +27 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js +157 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js.map +1 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.d.ts +11 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js +37 -0
- package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js.map +1 -0
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.d.ts +4 -0
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js +9 -0
- package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js.map +1 -0
- package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +28 -0
- package/dist/output-gateway/pid/domain/InfotextInterfaces.js +3 -0
- package/dist/output-gateway/pid/domain/InfotextInterfaces.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/ioc/Di.d.ts +3 -0
- package/dist/output-gateway/pid/ioc/Di.js +23 -0
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +7 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js +17 -0
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -0
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.d.ts +2 -1
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +20 -10
- package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.d.ts +2 -19
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js +4 -64
- package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js.map +1 -1
- package/dist/output-gateway/pid/routers/index.d.ts +2 -0
- package/dist/output-gateway/pid/routers/index.js +8 -0
- package/dist/output-gateway/pid/routers/index.js.map +1 -0
- package/dist/output-gateway/pid/{PIDRouter.d.ts → routers/v2/V2PIDRouter.d.ts} +5 -4
- package/dist/output-gateway/pid/{PIDRouter.js → routers/v2/V2PIDRouter.js} +20 -17
- package/dist/output-gateway/pid/routers/v2/V2PIDRouter.js.map +1 -0
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +11 -0
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +31 -0
- package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +1 -0
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.d.ts +10 -0
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js +25 -0
- package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js.map +1 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.d.ts +13 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js +35 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js.map +1 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts +19 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js +43 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v1/PublicDepartureBoardsController.d.ts → v2/V2PublicDepartureBoardsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v1/PublicDepartureBoardsController.js → v2/V2PublicDepartureBoardsController.js} +5 -5
- package/dist/output-gateway/public/controllers/v2/V2PublicDepartureBoardsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v1/PublicGtfsController.d.ts → v2/V2PublicGtfsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v1/PublicGtfsController.js → v2/V2PublicGtfsController.js} +5 -5
- package/dist/output-gateway/public/controllers/v2/V2PublicGtfsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v1/PublicVehiclePositionsController.d.ts → v2/V2PublicVehiclePositionsController.d.ts} +1 -1
- package/dist/output-gateway/public/controllers/{v1/PublicVehiclePositionsController.js → v2/V2PublicVehiclePositionsController.js} +4 -4
- package/dist/output-gateway/public/controllers/v2/V2PublicVehiclePositionsController.js.map +1 -0
- package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.d.ts +1 -1
- package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.js.map +1 -1
- package/dist/output-gateway/public/index.d.ts +1 -0
- package/dist/output-gateway/public/index.js +18 -0
- package/dist/output-gateway/public/index.js.map +1 -0
- package/dist/output-gateway/public/routers/index.d.ts +3 -0
- package/dist/output-gateway/public/routers/index.js +10 -0
- package/dist/output-gateway/public/routers/index.js.map +1 -0
- package/dist/output-gateway/public/routers/{v1/PublicDeparturesRouter.d.ts → v2/V2PublicDeparturesRouter.d.ts} +4 -3
- package/dist/output-gateway/public/routers/{v1/PublicDeparturesRouter.js → v2/V2PublicDeparturesRouter.js} +11 -8
- package/dist/output-gateway/public/routers/v2/V2PublicDeparturesRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.d.ts → v2/V2PublicGtfsRouter.d.ts} +4 -3
- package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.js → v2/V2PublicGtfsRouter.js} +11 -8
- package/dist/output-gateway/public/routers/v2/V2PublicGtfsRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v1/PublicVehiclePositionsRouter.d.ts → v2/V2PublicVehiclePositionsRouter.d.ts} +4 -3
- package/dist/output-gateway/public/routers/{v1/PublicVehiclePositionsRouter.js → v2/V2PublicVehiclePositionsRouter.js} +11 -8
- package/dist/output-gateway/public/routers/v2/V2PublicVehiclePositionsRouter.js.map +1 -0
- package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.js.map +1 -1
- package/dist/output-gateway/public/routers/{v1 → v2}/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/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/ropid-gtfs/routers/index.d.ts +1 -0
- package/dist/output-gateway/ropid-gtfs/routers/index.js +6 -0
- package/dist/output-gateway/ropid-gtfs/routers/index.js.map +1 -0
- package/dist/output-gateway/ropid-gtfs/{GTFSRouter.d.ts → routers/v2/V2GTFSRouter.d.ts} +11 -13
- package/dist/output-gateway/ropid-gtfs/{GTFSRouter.js → routers/v2/V2GTFSRouter.js} +16 -16
- package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js.map +1 -0
- package/dist/output-gateway/shared/RopidRouterUtils.d.ts +4 -0
- package/dist/output-gateway/shared/RopidRouterUtils.js +11 -0
- package/dist/output-gateway/shared/RopidRouterUtils.js.map +1 -1
- package/dist/output-gateway/shared/constants/index.d.ts +1 -0
- package/dist/output-gateway/shared/constants/index.js +1 -0
- package/dist/output-gateway/shared/constants/index.js.map +1 -1
- package/dist/output-gateway/shared/constants/route-version.d.ts +5 -0
- package/dist/output-gateway/shared/constants/route-version.js +10 -0
- package/dist/output-gateway/shared/constants/route-version.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/dist/output-gateway/vehicle-positions/routers/index.d.ts +1 -0
- package/dist/output-gateway/vehicle-positions/routers/index.js +6 -0
- package/dist/output-gateway/vehicle-positions/routers/index.js.map +1 -0
- package/dist/output-gateway/vehicle-positions/{VehiclePositionsRouter.d.ts → routers/v2/V2VehiclePositionsRouter.d.ts} +6 -6
- package/dist/output-gateway/vehicle-positions/{VehiclePositionsRouter.js → routers/v2/V2VehiclePositionsRouter.js} +12 -11
- package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +59 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +16 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.d.ts +4 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js +20 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +19 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js +80 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.d.ts +12 -0
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js +41 -0
- package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +10 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.d.ts +4 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.d.ts +4 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/index.d.ts +3 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js +20 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -0
- package/docs/assets/pid_jis_erd.png +0 -0
- package/docs/asyncapi.yaml +1371 -1332
- package/docs/implementation_documentation.md +86 -35
- package/docs/openapi-output.yaml +128 -69
- package/package.json +3 -3
- package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +0 -1
- package/dist/output-gateway/pid/PIDRouter.js.map +0 -1
- package/dist/output-gateway/pid/controllers/DepartureBoardsController.js.map +0 -1
- package/dist/output-gateway/pid/controllers/InfotextsController.js.map +0 -1
- package/dist/output-gateway/pid/controllers/index.d.ts +0 -2
- package/dist/output-gateway/pid/controllers/index.js.map +0 -1
- package/dist/output-gateway/public/controllers/v1/PublicDepartureBoardsController.js.map +0 -1
- package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +0 -1
- package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js.map +0 -1
- package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +0 -1
- package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +0 -1
- package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +0 -1
- package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +0 -1
- package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +0 -1
- /package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.js +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.js +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/DetailedTripScopeEnum.d.ts +0 -0
- /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/DetailedTripScopeEnum.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./routers"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v2PublicVPRouter = exports.v2PublicGtfsRouter = exports.v2PublicDeparturesRouter = void 0;
|
|
4
|
+
var V2PublicDeparturesRouter_1 = require("./v2/V2PublicDeparturesRouter");
|
|
5
|
+
Object.defineProperty(exports, "v2PublicDeparturesRouter", { enumerable: true, get: function () { return V2PublicDeparturesRouter_1.v2PublicDeparturesRouter; } });
|
|
6
|
+
var V2PublicGtfsRouter_1 = require("./v2/V2PublicGtfsRouter");
|
|
7
|
+
Object.defineProperty(exports, "v2PublicGtfsRouter", { enumerable: true, get: function () { return V2PublicGtfsRouter_1.v2PublicGtfsRouter; } });
|
|
8
|
+
var V2PublicVehiclePositionsRouter_1 = require("./v2/V2PublicVehiclePositionsRouter");
|
|
9
|
+
Object.defineProperty(exports, "v2PublicVPRouter", { enumerable: true, get: function () { return V2PublicVehiclePositionsRouter_1.v2PublicVPRouter; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/public/routers/index.ts"],"names":[],"mappings":";;;AAAA,0EAAyE;AAAhE,oIAAA,wBAAwB,OAAA;AACjC,8DAA6D;AAApD,wHAAA,kBAAkB,OAAA;AAC3B,sFAAuE;AAA9D,kIAAA,gBAAgB,OAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
2
3
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class V2PublicDeparturesRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private cacheHeaderMiddleware;
|
|
6
7
|
private compressionByDefaultMiddleware;
|
|
@@ -8,5 +9,5 @@ export declare class PublicDeparturesRouter {
|
|
|
8
9
|
constructor();
|
|
9
10
|
protected initRoutes(): void;
|
|
10
11
|
}
|
|
11
|
-
declare const
|
|
12
|
-
export {
|
|
12
|
+
declare const v2PublicDeparturesRouter: AbstractRouter;
|
|
13
|
+
export { v2PublicDeparturesRouter };
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v2PublicDeparturesRouter = exports.V2PublicDeparturesRouter = void 0;
|
|
4
|
+
const V2PublicDepartureBoardsController_1 = require("../../controllers/v2/V2PublicDepartureBoardsController");
|
|
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");
|
|
6
8
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
7
9
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
8
10
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
9
11
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
10
12
|
const CustomStopIdGroupValidator_1 = require("./helpers/CustomStopIdGroupValidator");
|
|
11
|
-
class
|
|
13
|
+
class V2PublicDeparturesRouter extends AbstractRouter_1.AbstractRouter {
|
|
12
14
|
constructor() {
|
|
15
|
+
super(constants_1.RouteVersion.v2, "public/departureboards");
|
|
13
16
|
this.router = (0, express_1.Router)();
|
|
14
17
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
15
18
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
16
|
-
this.departureController = new
|
|
19
|
+
this.departureController = new V2PublicDepartureBoardsController_1.V2PublicDepartureBoardsController();
|
|
17
20
|
this.initRoutes();
|
|
18
21
|
}
|
|
19
22
|
initRoutes() {
|
|
@@ -27,7 +30,7 @@ class PublicDeparturesRouter {
|
|
|
27
30
|
this.cacheHeaderMiddleware.getMiddleware(3, 2), this.compressionByDefaultMiddleware.getMiddleware(), this.departureController.getAll);
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
|
-
exports.
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
exports.V2PublicDeparturesRouter = V2PublicDeparturesRouter;
|
|
34
|
+
const v2PublicDeparturesRouter = new V2PublicDeparturesRouter();
|
|
35
|
+
exports.v2PublicDeparturesRouter = v2PublicDeparturesRouter;
|
|
36
|
+
//# sourceMappingURL=V2PublicDeparturesRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2PublicDeparturesRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v2/V2PublicDeparturesRouter.ts"],"names":[],"mappings":";;;AAAA,8GAAgH;AAChH,qCAAsD;AACtD,yDAAoD;AACpD,sFAAmF;AAGnF,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAAoE;AACpE,qFAAkF;AAElF,MAAa,wBAAyB,SAAQ,+BAAc;IAMxD;QACI,KA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C,CAAC;IACN,CAAC;CACJ;AAjCD,4DAiCC;AAED,MAAM,wBAAwB,GAAmB,IAAI,wBAAwB,EAAE,CAAC;AACvE,4DAAwB"}
|
package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.d.ts → v2/V2PublicGtfsRouter.d.ts}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
2
3
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class V2PublicGtfsRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private cacheHeaderMiddleware;
|
|
6
7
|
private compressionByDefaultMiddleware;
|
|
@@ -8,5 +9,5 @@ export declare class PublicGtfsRouter {
|
|
|
8
9
|
constructor();
|
|
9
10
|
protected initRoutes(): void;
|
|
10
11
|
}
|
|
11
|
-
declare const
|
|
12
|
-
export {
|
|
12
|
+
declare const v2PublicGtfsRouter: AbstractRouter;
|
|
13
|
+
export { v2PublicGtfsRouter };
|
package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.js → v2/V2PublicGtfsRouter.js}
RENAMED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v2PublicGtfsRouter = exports.V2PublicGtfsRouter = void 0;
|
|
4
|
+
const V2PublicGtfsController_1 = require("../../controllers/v2/V2PublicGtfsController");
|
|
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");
|
|
6
8
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
7
9
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
8
10
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
9
11
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
10
12
|
const CustomScopeValidator_1 = require("./helpers/CustomScopeValidator");
|
|
11
|
-
class
|
|
13
|
+
class V2PublicGtfsRouter extends AbstractRouter_1.AbstractRouter {
|
|
12
14
|
constructor() {
|
|
15
|
+
super(constants_1.RouteVersion.v2, "public/gtfs");
|
|
13
16
|
this.router = (0, express_1.Router)();
|
|
14
17
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
15
18
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
16
|
-
this.gtfsController = new
|
|
19
|
+
this.gtfsController = new V2PublicGtfsController_1.V2PublicGtfsController();
|
|
17
20
|
this.initRoutes();
|
|
18
21
|
}
|
|
19
22
|
initRoutes() {
|
|
@@ -22,7 +25,7 @@ class PublicGtfsRouter {
|
|
|
22
25
|
this.cacheHeaderMiddleware.getMiddleware(4 * 60 * 60, 60), this.compressionByDefaultMiddleware.getMiddleware(), this.gtfsController.getOneTrip);
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
27
|
-
exports.
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
exports.V2PublicGtfsRouter = V2PublicGtfsRouter;
|
|
29
|
+
const v2PublicGtfsRouter = new V2PublicGtfsRouter();
|
|
30
|
+
exports.v2PublicGtfsRouter = v2PublicGtfsRouter;
|
|
31
|
+
//# sourceMappingURL=V2PublicGtfsRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2PublicGtfsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v2/V2PublicGtfsRouter.ts"],"names":[],"mappings":";;;AAAA,wFAA0F;AAC1F,qCAAsD;AACtD,yDAAoD;AACpD,sFAAmF;AAGnF,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAA2E;AAC3E,yEAAsE;AAEtE,MAAa,kBAAmB,SAAQ,+BAAc;IAMlD;QACI,KAAK,CAAC,wBAAY,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;QACtC,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,+CAAsB,EAAE,CAAC;QACnD,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;AA5BD,gDA4BC;AAED,MAAM,kBAAkB,GAAmB,IAAI,kBAAkB,EAAE,CAAC;AAC3D,gDAAkB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
2
3
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class V2PublicVehiclePositionsRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private cacheHeaderMiddleware;
|
|
6
7
|
private compressionByDefaultMiddleware;
|
|
@@ -9,5 +10,5 @@ export declare class PublicVehiclePositionsRouter {
|
|
|
9
10
|
constructor();
|
|
10
11
|
protected initRoutes(): void;
|
|
11
12
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export {
|
|
13
|
+
declare const v2PublicVPRouter: AbstractRouter;
|
|
14
|
+
export { v2PublicVPRouter };
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.v2PublicVPRouter = exports.V2PublicVehiclePositionsRouter = void 0;
|
|
4
|
+
const V2PublicVehiclePositionsController_1 = require("../../controllers/v2/V2PublicVehiclePositionsController");
|
|
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");
|
|
7
9
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
8
10
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
9
11
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
10
12
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
11
13
|
const CustomScopeValidator_1 = require("./helpers/CustomScopeValidator");
|
|
12
14
|
const CustomTypeValidator_1 = require("./helpers/CustomTypeValidator");
|
|
13
|
-
class
|
|
15
|
+
class V2PublicVehiclePositionsRouter extends AbstractRouter_1.AbstractRouter {
|
|
14
16
|
constructor() {
|
|
17
|
+
super(constants_1.RouteVersion.v2, "public/vehiclepositions");
|
|
15
18
|
this.router = (0, express_1.Router)();
|
|
16
19
|
this.cacheHeaderMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
17
20
|
this.compressionByDefaultMiddleware = Di_1.OgPublicContainer.resolve(ioc_1.ContainerToken.CompressionByDefaultMiddleware);
|
|
18
|
-
this.vehiclePositionsController = new
|
|
21
|
+
this.vehiclePositionsController = new V2PublicVehiclePositionsController_1.V2PublicVehiclePositionsController();
|
|
19
22
|
this.initRoutes();
|
|
20
23
|
this.redisSubscriber = Di_1.OgPublicContainer.resolve(OgModuleToken_1.OgModuleToken.VPSubscriber);
|
|
21
24
|
this.redisSubscriber.initialize();
|
|
@@ -40,7 +43,7 @@ class PublicVehiclePositionsRouter {
|
|
|
40
43
|
this.cacheHeaderMiddleware.getMiddleware(5, 5), this.compressionByDefaultMiddleware.getMiddleware(), this.vehiclePositionsController.getOneByVehicleId);
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
45
|
-
exports.
|
|
46
|
-
//# sourceMappingURL=
|
|
46
|
+
exports.V2PublicVehiclePositionsRouter = V2PublicVehiclePositionsRouter;
|
|
47
|
+
const v2PublicVPRouter = new V2PublicVehiclePositionsRouter();
|
|
48
|
+
exports.v2PublicVPRouter = v2PublicVPRouter;
|
|
49
|
+
//# sourceMappingURL=V2PublicVehiclePositionsRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2PublicVehiclePositionsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/routers/v2/V2PublicVehiclePositionsRouter.ts"],"names":[],"mappings":";;;AAAA,gHAAkH;AAClH,qCAAsD;AACtD,2DAA6D;AAE7D,yDAAoD;AACpD,sFAAmF;AAGnF,6EAA2E;AAC3E,+DAAuE;AACvE,+DAA2D;AAC3D,mFAA2E;AAC3E,yEAAsE;AACtE,uEAAoE;AAEpE,MAAa,8BAA+B,SAAQ,+BAAc;IAO9D;QACI,KAAK,CAAC,wBAAY,CAAC,EAAE,E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,CAAC,CAAC,MAAM,EAAE,EAAE,IAAA,yBAAK,EAAC,YAAY,CAAC,CAAC,MAAM,EAAE,EAAE,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,2CAAoB,CAAC,QAAQ,CAAC,CAAC,EAClH,wBAAW;QACX,sDAAsD;QACtD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9C,IAAI,CAAC,8BAA8B,CAAC,aAAa,EAAE,EACnD,IAAI,CAAC,0BAA0B,CAAC,yBAAyB,CAC5D,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,aAAa,EACb,CAAC,IAAA,yBAAK,EAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE,IAAA,yBAAK,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,2CAAoB,CAAC,QAAQ,CAAC,CAAC,EACpF,wBAAW;QACX,sDAAsD;QACtD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9C,IAAI,CAAC,8BAA8B,CAAC,aAAa,EAAE,EACnD,IAAI,CAAC,0BAA0B,CAAC,iBAAiB,CACpD,CAAC;IACN,CAAC;CACJ;AA3DD,wEA2DC;AAED,MAAM,gBAAgB,GAAmB,IAAI,8BAA8B,EAAE,CAAC;AAErE,4CAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomScopeValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/
|
|
1
|
+
{"version":3,"file":"CustomScopeValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v2/helpers/CustomScopeValidator.ts"],"names":[],"mappings":";;;;AACA,mEAA4D;AAE5D,MAAa,oBAAoB;;AAAjC,oDAUC;;AATiB,kCAAa,GAAG,MAAM,CAAC,MAAM,CAAC,yCAAiB,CAAC,AAAnC,CAAoC;AAEjD,6BAAQ,GAAoB,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;IACnD,IAAI,KAAK,YAAY,KAAK,EAAE;QACxB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,EAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;KACrE;IAED,OAAO,EAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC,AANqB,CAMpB"}
|
package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomStopIdGroupValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/
|
|
1
|
+
{"version":3,"file":"CustomStopIdGroupValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v2/helpers/CustomStopIdGroupValidator.ts"],"names":[],"mappings":";;;;AAEA,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAa,0BAA0B;IA4B3B,MAAM,CAAC,kBAAkB,CAAC,OAAwB;QACtD,IAAI;YACA,IACI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvB,OAAO,CAAC,MAAM,KAAK,CAAC;gBACpB,OAAO,CAAC,MAAM,GAAG,kBAAkB;gBACnC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,EACnG;gBACE,OAAO,KAAK,CAAC;aAChB;YAED,OAAO,IAAI,CAAC;SACf;QAAC,WAAM;YACJ,OAAO,KAAK,CAAC;SAChB;IACL,CAAC;IAEO,MAAM,CAAC,qBAAqB,CAAC,KAAa;QAC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C5C,CAAC,AAzBqB,CAyBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTypeValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/
|
|
1
|
+
{"version":3,"file":"CustomTypeValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v2/helpers/CustomTypeValidator.ts"],"names":[],"mappings":";;;;AAAA,0EAAqE;AAGrE,MAAa,mBAAmB;;AAAhC,kDAUC;;AATiB,gCAAY,GAAa,IAAA,2CAA0B,GAAE,AAAzC,CAA0C;AAEtD,4BAAQ,GAAoB,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;IACnD,IAAI,KAAK,YAAY,KAAK,EAAE;QACxB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,EAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;KAC9E;SAAM;QACH,OAAO,EAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC5C;AACL,CAAC,AANqB,CAMpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailedTripScopeEnum.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/
|
|
1
|
+
{"version":3,"file":"DetailedTripScopeEnum.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v2/helpers/DetailedTripScopeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,kCAAa,CAAA;IACb,6CAAwB,CAAA;IACxB,sCAAiB,CAAA;IACjB,6DAAwC,CAAA;AAC5C,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDepartureBoardsStopIdGroups } from "../../controllers/
|
|
1
|
+
import { IDepartureBoardsStopIdGroups } from "../../controllers/v2/interfaces/PublicParamsInterfaces";
|
|
2
2
|
import { VehicleDescriptorCachedRepository } from "../../data-access/VehicleDescriptorCachedRepository";
|
|
3
3
|
import { PublicApiDepartureBoardGroup } from "../../domain/PublicApiDepartureInterfaces";
|
|
4
4
|
import { IGtfsDepartureRepository } from "../../domain/repository/IGtfsDepartureRepository";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPublicApiDetailedTrip } from "../../domain/PublicApiDetailedTripInterfaces";
|
|
2
2
|
import { IVehiclePositionsRepository } from "../../domain/repository/IVehiclePositionsRepository";
|
|
3
|
-
import { DetailedTripScope } from "../../routers/
|
|
3
|
+
import { DetailedTripScope } from "../../routers/v2/helpers/DetailedTripScopeEnum";
|
|
4
4
|
import { TripScopeHandlerFactory } from "../helpers/trip-scope/TripScopeHandlerFactory";
|
|
5
5
|
export declare class DetailedTripFacade {
|
|
6
6
|
private scopeHandlerFactory;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DetailedTripFacade = void 0;
|
|
13
|
-
const DetailedTripScopeEnum_1 = require("../../routers/
|
|
13
|
+
const DetailedTripScopeEnum_1 = require("../../routers/v2/helpers/DetailedTripScopeEnum");
|
|
14
14
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
15
15
|
class DetailedTripFacade {
|
|
16
16
|
constructor(scopeHandlerFactory, vehiclePositionRepository) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPublicApiGtfsTrip } from "../../domain/PublicApiGtfsTripLookupInterfaces";
|
|
2
|
-
import { DetailedTripScope } from "../../routers/
|
|
2
|
+
import { DetailedTripScope } from "../../routers/v2/helpers/DetailedTripScopeEnum";
|
|
3
3
|
import { GtfsTripScopeHandlerFactory } from "../helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory";
|
|
4
4
|
export declare class GtfsTripLookupFacade {
|
|
5
5
|
private scopeHandlerFactory;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GtfsTripLookupFacade = void 0;
|
|
13
|
-
const DetailedTripScopeEnum_1 = require("../../routers/
|
|
13
|
+
const DetailedTripScopeEnum_1 = require("../../routers/v2/helpers/DetailedTripScopeEnum");
|
|
14
14
|
const models_1 = require("../../../ropid-gtfs/models");
|
|
15
15
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
16
16
|
class GtfsTripLookupFacade {
|
package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITripScopeHandler } from "../../../domain/ITripScopeHandler";
|
|
2
2
|
import { IPublicApiGtfsTrip } from "../../../domain/PublicApiGtfsTripLookupInterfaces";
|
|
3
|
-
import { DetailedTripScope } from "../../../routers/
|
|
3
|
+
import { DetailedTripScope } from "../../../routers/v2/helpers/DetailedTripScopeEnum";
|
|
4
4
|
import { ITripWithOptionalAssociationsDto } from "../../../../../schema-definitions/ropid-gtfs/interfaces/ITripWithOptionalAssociationsDto";
|
|
5
5
|
type GtfsTripScopeHandler = ITripScopeHandler<IPublicApiGtfsTrip, ITripWithOptionalAssociationsDto>;
|
|
6
6
|
export declare class GtfsTripScopeHandlerFactory {
|
package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js
CHANGED
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.GtfsTripScopeHandlerFactory = void 0;
|
|
16
16
|
const OgModuleToken_1 = require("../../../ioc/OgModuleToken");
|
|
17
|
-
const DetailedTripScopeEnum_1 = require("../../../routers/
|
|
17
|
+
const DetailedTripScopeEnum_1 = require("../../../routers/v2/helpers/DetailedTripScopeEnum");
|
|
18
18
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
19
19
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
20
20
|
let GtfsTripScopeHandlerFactory = exports.GtfsTripScopeHandlerFactory = class GtfsTripScopeHandlerFactory {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DetailedTripScope } from "../../../routers/
|
|
1
|
+
import { DetailedTripScope } from "../../../routers/v2/helpers/DetailedTripScopeEnum";
|
|
2
2
|
import { AbstractDetailedTripScopeHandler } from "./strategy/AbstractDetailedTripScopeHandler";
|
|
3
3
|
export declare class TripScopeHandlerFactory {
|
|
4
4
|
private dictionary;
|
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.TripScopeHandlerFactory = void 0;
|
|
16
16
|
const OgModuleToken_1 = require("../../../ioc/OgModuleToken");
|
|
17
|
-
const DetailedTripScopeEnum_1 = require("../../../routers/
|
|
17
|
+
const DetailedTripScopeEnum_1 = require("../../../routers/v2/helpers/DetailedTripScopeEnum");
|
|
18
18
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
19
19
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
20
20
|
const AbstractDetailedTripScopeHandler_1 = require("./strategy/AbstractDetailedTripScopeHandler");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./routers";
|
|
2
2
|
export * from "./models";
|
|
@@ -14,6 +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("./routers"), exports);
|
|
18
18
|
__exportStar(require("./models"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/ropid-gtfs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/ropid-gtfs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { v2GtfsRouter } from "./v2/V2GTFSRouter";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v2GtfsRouter = void 0;
|
|
4
|
+
var V2GTFSRouter_1 = require("./v2/V2GTFSRouter");
|
|
5
|
+
Object.defineProperty(exports, "v2GtfsRouter", { enumerable: true, get: function () { return V2GTFSRouter_1.v2GtfsRouter; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/ropid-gtfs/routers/index.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAAxC,4GAAA,YAAY,OAAA"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* app/routers/GTFSRouter.ts
|
|
3
|
-
*
|
|
4
2
|
* Router /WEB LAYER/: maps routes to specific controller functions, passes request parameters and handles responses.
|
|
5
3
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
6
4
|
*/
|
|
7
5
|
/// <reference types="express" />
|
|
8
|
-
import {
|
|
6
|
+
import { GTFSCalendarModel } from "../../models/GTFSCalendarModel";
|
|
7
|
+
import { GTFSRoutesModel } from "../../models/GTFSRoutesModel";
|
|
8
|
+
import { GTFSShapesModel } from "../../models/GTFSShapesModel";
|
|
9
|
+
import { GTFSStopModel } from "../../models/GTFSStopModel";
|
|
10
|
+
import { GTFSStopTimesModel } from "../../models/GTFSStopTimesModel";
|
|
11
|
+
import { GTFSTripsModel } from "../../models/GTFSTripsModel";
|
|
12
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
9
13
|
import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
|
|
10
|
-
|
|
11
|
-
import { GTFSRoutesModel } from "./models/GTFSRoutesModel";
|
|
12
|
-
import { GTFSShapesModel } from "./models/GTFSShapesModel";
|
|
13
|
-
import { GTFSStopModel } from "./models/GTFSStopModel";
|
|
14
|
-
import { GTFSStopTimesModel } from "./models/GTFSStopTimesModel";
|
|
15
|
-
import { GTFSTripsModel } from "./models/GTFSTripsModel";
|
|
16
|
-
export declare class GTFSRouter extends BaseRouter {
|
|
14
|
+
export declare class V2GTFSRouter extends AbstractRouter {
|
|
17
15
|
router: Router;
|
|
18
16
|
private cacheHeaderMiddleware;
|
|
19
17
|
protected tripModel: GTFSTripsModel;
|
|
@@ -38,7 +36,7 @@ export declare class GTFSRouter extends BaseRouter {
|
|
|
38
36
|
/**
|
|
39
37
|
* Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
|
|
40
38
|
*/
|
|
41
|
-
|
|
39
|
+
protected initRoutes: () => void;
|
|
42
40
|
private initRoutesEndpoints;
|
|
43
41
|
private initServicesEndpoints;
|
|
44
42
|
private initShapesEndpoints;
|
|
@@ -46,5 +44,5 @@ export declare class GTFSRouter extends BaseRouter {
|
|
|
46
44
|
private initStopsEndpoints;
|
|
47
45
|
private initStopTimesEndpoints;
|
|
48
46
|
}
|
|
49
|
-
declare const
|
|
50
|
-
export {
|
|
47
|
+
declare const v2GtfsRouter: AbstractRouter;
|
|
48
|
+
export { v2GtfsRouter };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* app/routers/GTFSRouter.ts
|
|
4
|
-
*
|
|
5
3
|
* Router /WEB LAYER/: maps routes to specific controller functions, passes request parameters and handles responses.
|
|
6
4
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
7
5
|
*/
|
|
@@ -18,20 +16,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
17
|
};
|
|
20
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
22
|
-
const ParamValidatorManager_1 = require("
|
|
19
|
+
exports.v2GtfsRouter = exports.V2GTFSRouter = void 0;
|
|
20
|
+
const ParamValidatorManager_1 = require("../../../pid/helpers/ParamValidatorManager");
|
|
21
|
+
const models_1 = require("../../models");
|
|
22
|
+
const shared_1 = require("../../../shared");
|
|
23
|
+
const constants_1 = require("../../../shared/constants");
|
|
24
|
+
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
23
25
|
const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
|
|
24
26
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
25
27
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
26
|
-
const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
|
|
27
28
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
28
29
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
29
30
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
30
31
|
const moment_timezone_1 = __importDefault(require("@golemio/core/dist/shared/moment-timezone"));
|
|
31
|
-
|
|
32
|
-
class GTFSRouter extends BaseRouter_1.BaseRouter {
|
|
32
|
+
class V2GTFSRouter extends AbstractRouter_1.AbstractRouter {
|
|
33
33
|
constructor() {
|
|
34
|
-
super();
|
|
34
|
+
super(constants_1.RouteVersion.v2, "gtfs");
|
|
35
35
|
// Assign router to the express.Router() instance
|
|
36
36
|
this.router = (0, express_1.Router)();
|
|
37
37
|
// Reg-ex to match a valid daytime format (ex. 21:43:56)
|
|
@@ -116,10 +116,10 @@ class GTFSRouter extends BaseRouter_1.BaseRouter {
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
this.GetAllStops = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const names =
|
|
120
|
-
const aswIds =
|
|
121
|
-
const cisIds =
|
|
122
|
-
const gtfsIds =
|
|
119
|
+
const names = shared_1.RopidRouterUtils.convertParamToArray(req.query.names);
|
|
120
|
+
const aswIds = shared_1.RopidRouterUtils.convertParamToArray(req.query.aswIds);
|
|
121
|
+
const cisIds = shared_1.RopidRouterUtils.convertParamToArray(req.query.cisIds);
|
|
122
|
+
const gtfsIds = shared_1.RopidRouterUtils.convertParamToArray(req.query.ids);
|
|
123
123
|
try {
|
|
124
124
|
const coords = yield (0, Geo_1.parseCoordinates)(req.query.latlng, req.query.range);
|
|
125
125
|
const data = yield this.stopModel.GetAll({
|
|
@@ -251,7 +251,7 @@ class GTFSRouter extends BaseRouter_1.BaseRouter {
|
|
|
251
251
|
this.initRoutes();
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
exports.
|
|
255
|
-
const
|
|
256
|
-
exports.
|
|
257
|
-
//# sourceMappingURL=
|
|
254
|
+
exports.V2GTFSRouter = V2GTFSRouter;
|
|
255
|
+
const v2GtfsRouter = new V2GTFSRouter();
|
|
256
|
+
exports.v2GtfsRouter = v2GtfsRouter;
|
|
257
|
+
//# sourceMappingURL=V2GTFSRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2GTFSRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.ts"],"names":[],"mappings":";AAAA;;;GAGG;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AC,CAAC,OAAO,CAAC,IAAA,yBAAM,EAAC,GAAG,CAAC,KAAK,CAAC,EAAY,EAAE,SAAS,CAAC,CAAC,EAChG;oBACE,MAAM,IAAI,6BAAY,CAAC,kBAAkB,EAAE,YAAY,EAAE,IAAI,KAAK,CAAC,kCAAkC,CAAC,EAAE,GAAG,CAAC,CAAC;iBAChH;gBACD,OAAO,IAAI,EAAE,CAAC;YAClB,CAAC,EACD,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACtE,IAAI,CAAC,eAAe,CACvB,CAAC;QACN,CAAC,CAAC;QA3RE,IAAI,CAAC,qBAAqB,GAAG,4BAAsB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,SAAS,GAAG,eAAM,CAAC,cAAc,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,eAAM,CAAC,aAAa,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,eAAM,CAAC,kBAAkB,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,eAAM,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,eAAM,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,eAAM,CAAC,iBAAiB,CAAC;QAC7C,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAoRJ;AA9TD,oCA8TC;AAED,MAAM,YAAY,GAAmB,IAAI,YAAY,EAAE,CAAC;AAE/C,oCAAY"}
|
|
@@ -14,4 +14,8 @@ export declare class RopidRouterUtils {
|
|
|
14
14
|
* Validate and return timezone (it is possible to use _ symbol instead of URL encoded / symbol)
|
|
15
15
|
*/
|
|
16
16
|
static getPreferredTimezone: (preferredTimezone: ParsedQs[string]) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Convert query parameter to array
|
|
19
|
+
*/
|
|
20
|
+
static convertParamToArray: <T>(param: ParsedQs | ParsedQs[] | T | T[] | undefined) => T[];
|
|
17
21
|
}
|
|
@@ -46,4 +46,15 @@ RopidRouterUtils.getPreferredTimezone = (preferredTimezone) => {
|
|
|
46
46
|
: config_1.config.vehiclePositions.defaultTimezone;
|
|
47
47
|
return timezone;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Convert query parameter to array
|
|
51
|
+
*/
|
|
52
|
+
RopidRouterUtils.convertParamToArray = (param) => {
|
|
53
|
+
if (!param)
|
|
54
|
+
return [];
|
|
55
|
+
if (Array.isArray(param)) {
|
|
56
|
+
return param;
|
|
57
|
+
}
|
|
58
|
+
return [param];
|
|
59
|
+
};
|
|
49
60
|
//# sourceMappingURL=RopidRouterUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidRouterUtils.js","sourceRoot":"","sources":["../../../src/output-gateway/shared/RopidRouterUtils.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA+D;AAC/D,qEAAkE;AAClE,mFAAgG;AAChG,gGAA+D;AAG/D,MAAa,gBAAgB;;AAA7B,
|
|
1
|
+
{"version":3,"file":"RopidRouterUtils.js","sourceRoot":"","sources":["../../../src/output-gateway/shared/RopidRouterUtils.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA+D;AAC/D,qEAAkE;AAClE,mFAAgG;AAChG,gGAA+D;AAG/D,MAAa,gBAAgB;;AAA7B,4CAuDC;AAtDiB,yBAAQ,GAAG,eAAe,CAAC;AAEzC;;GAEG;AACW,uCAAsB,GAAG,CAAI,GAAwB,EAAE,IAAS,EAAE,EAAE;IAC9E,OAAO,IAAA,mCAAe,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;AACrE,CAAC,CAAC;AAEF;;GAEG;AACW,gCAAe,GAAG,CAAC,UAAuB,EAAE,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAiB,EAAE;IACtH,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAE7B,IAAI;QACA,MAAM,QAAQ,GAAG,IAAA,yBAAM,EAAC,UAAU,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,MAAM,EAAE,CAAC;QAEnE,IAAI,QAAQ,KAAK,cAAc,EAAE;YAC7B,YAAG,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;SACf;QAED,OAAO,QAAQ,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACV,YAAG,CAAC,KAAK,CAAC,wDAAwD,EAAE,GAAG,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC;KACf;AACL,CAAC,CAAC;AAEF;;GAEG;AACW,qCAAoB,GAAG,CAAC,iBAAmC,EAAU,EAAE;IACjF,MAAM,QAAQ,GACV,OAAO,iBAAiB,KAAK,QAAQ;QACjC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;QACtC,CAAC,CAAC,eAAM,CAAC,gBAAgB,CAAC,eAAe,CAAC;IAElD,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF;;GAEG;AACW,oCAAmB,GAAG,CAAI,KAAkD,EAAO,EAAE;IAC/F,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACtB,OAAO,KAAY,CAAC;KACvB;IAED,OAAO,CAAC,KAAU,CAAC,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./validations"), exports);
|
|
18
|
+
__exportStar(require("./route-version"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteVersion = void 0;
|
|
4
|
+
var RouteVersion;
|
|
5
|
+
(function (RouteVersion) {
|
|
6
|
+
RouteVersion["v1"] = "v1";
|
|
7
|
+
RouteVersion["v2"] = "v2";
|
|
8
|
+
RouteVersion["v3"] = "v3";
|
|
9
|
+
})(RouteVersion || (exports.RouteVersion = RouteVersion = {}));
|
|
10
|
+
//# sourceMappingURL=route-version.js.map
|