@golemio/pid 2.17.0 → 2.17.1-dev.1412857437

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.
Files changed (273) hide show
  1. package/db/example/00_clear_test_data.sql +2 -0
  2. package/db/example/03_ropidgtfs_dump.sql +36 -0
  3. package/db/example/20_jis_infotexts.sql +214 -0
  4. package/db/migrations/postgresql/20240801141948-jis-infotexts.js +53 -0
  5. package/db/migrations/postgresql/20240808123947-filter-null-island.js +53 -0
  6. package/db/migrations/postgresql/20240809084521-jis-infotexts-severity-level.js +53 -0
  7. package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-down.sql +2 -0
  8. package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-up.sql +19 -0
  9. package/db/migrations/postgresql/sqls/20240808123947-filter-null-island-down.sql +53 -0
  10. package/db/migrations/postgresql/sqls/20240808123947-filter-null-island-up.sql +55 -0
  11. package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-down.sql +8 -0
  12. package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-up.sql +7 -0
  13. package/dist/integration-engine/index.js +4 -0
  14. package/dist/integration-engine/index.js.map +1 -1
  15. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.d.ts +10 -0
  16. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js +49 -0
  17. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js.map +1 -0
  18. package/dist/integration-engine/jis/index.d.ts +1 -0
  19. package/dist/{output-gateway/pid/controllers → integration-engine/jis}/index.js +1 -2
  20. package/dist/integration-engine/jis/index.js.map +1 -0
  21. package/dist/integration-engine/jis/ioc/Di.d.ts +3 -0
  22. package/dist/integration-engine/jis/ioc/Di.js +31 -0
  23. package/dist/integration-engine/jis/ioc/Di.js.map +1 -0
  24. package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +9 -0
  25. package/dist/integration-engine/jis/ioc/JISContainerToken.js +18 -0
  26. package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -0
  27. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +36 -0
  28. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +101 -0
  29. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -0
  30. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +36 -0
  31. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +101 -0
  32. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -0
  33. package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +20 -0
  34. package/dist/integration-engine/jis/services/JISInfotextsDataService.js +78 -0
  35. package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +1 -0
  36. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.d.ts +13 -0
  37. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +41 -0
  38. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -0
  39. package/dist/integration-engine/jis/workers/JISWorker.d.ts +7 -0
  40. package/dist/integration-engine/jis/workers/JISWorker.js +21 -0
  41. package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -0
  42. package/dist/integration-engine/jis/workers/constants.d.ts +1 -0
  43. package/dist/integration-engine/jis/workers/constants.js +5 -0
  44. package/dist/integration-engine/jis/workers/constants.js.map +1 -0
  45. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +14 -0
  46. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +72 -0
  47. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -0
  48. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.d.ts +3 -0
  49. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js +62 -0
  50. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js.map +1 -0
  51. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.d.ts +2 -0
  52. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +21 -0
  53. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
  54. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.d.ts +22 -0
  55. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js +3 -0
  56. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js.map +1 -0
  57. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.d.ts +1 -4
  58. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js +11 -27
  59. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js.map +1 -1
  60. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.d.ts +1 -1
  61. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +34 -51
  62. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  63. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.d.ts +0 -1
  64. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +1 -80
  65. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
  66. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +0 -17
  67. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js +19 -11
  68. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js.map +1 -1
  69. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/abstract/AbstractPropagateDelayTask.js +1 -1
  70. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/abstract/AbstractPropagateDelayTask.js.map +1 -1
  71. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +3 -6
  72. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +8 -19
  73. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
  74. package/dist/output-gateway/departure-boards/index.d.ts +1 -1
  75. package/dist/output-gateway/departure-boards/index.js +1 -1
  76. package/dist/output-gateway/departure-boards/index.js.map +1 -1
  77. package/dist/output-gateway/departure-boards/routers/index.d.ts +1 -0
  78. package/dist/output-gateway/departure-boards/routers/index.js +6 -0
  79. package/dist/output-gateway/departure-boards/routers/index.js.map +1 -0
  80. package/dist/output-gateway/departure-boards/{DepartureBoardsRouter.d.ts → routers/v2/V2DepartureBoardsRouter.d.ts} +9 -8
  81. package/dist/output-gateway/departure-boards/{DepartureBoardsRouter.js → routers/v2/V2DepartureBoardsRouter.js} +19 -18
  82. package/dist/output-gateway/departure-boards/routers/v2/V2DepartureBoardsRouter.js.map +1 -0
  83. package/dist/output-gateway/index.d.ts +1 -0
  84. package/dist/output-gateway/index.js +25 -1
  85. package/dist/output-gateway/index.js.map +1 -1
  86. package/dist/output-gateway/pid/controllers/{DepartureBoardsController.d.ts → v2/V2DepartureBoardsController.d.ts} +1 -1
  87. package/dist/output-gateway/pid/controllers/{DepartureBoardsController.js → v2/V2DepartureBoardsController.js} +9 -9
  88. package/dist/output-gateway/pid/controllers/v2/V2DepartureBoardsController.js.map +1 -0
  89. package/dist/output-gateway/pid/controllers/{InfotextsController.d.ts → v2/V2InfotextsController.d.ts} +1 -1
  90. package/dist/output-gateway/pid/controllers/{InfotextsController.js → v2/V2InfotextsController.js} +6 -6
  91. package/dist/output-gateway/pid/controllers/v2/V2InfotextsController.js.map +1 -0
  92. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.d.ts +10 -0
  93. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js +57 -0
  94. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js.map +1 -0
  95. package/dist/output-gateway/pid/data-access/JISInfotextRepository.d.ts +27 -0
  96. package/dist/output-gateway/pid/data-access/JISInfotextRepository.js +157 -0
  97. package/dist/output-gateway/pid/data-access/JISInfotextRepository.js.map +1 -0
  98. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.d.ts +11 -0
  99. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js +37 -0
  100. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js.map +1 -0
  101. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.d.ts +4 -0
  102. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js +9 -0
  103. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js.map +1 -0
  104. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +28 -0
  105. package/dist/output-gateway/pid/domain/InfotextInterfaces.js +3 -0
  106. package/dist/output-gateway/pid/domain/InfotextInterfaces.js.map +1 -0
  107. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.d.ts +3 -3
  108. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js +1 -1
  109. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js.map +1 -1
  110. package/dist/output-gateway/pid/index.d.ts +1 -1
  111. package/dist/output-gateway/pid/index.js +1 -1
  112. package/dist/output-gateway/pid/index.js.map +1 -1
  113. package/dist/output-gateway/pid/ioc/Di.d.ts +3 -0
  114. package/dist/output-gateway/pid/ioc/Di.js +23 -0
  115. package/dist/output-gateway/pid/ioc/Di.js.map +1 -0
  116. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +7 -0
  117. package/dist/output-gateway/pid/ioc/OgPidToken.js +17 -0
  118. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -0
  119. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.d.ts +2 -1
  120. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +20 -10
  121. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
  122. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.d.ts +2 -19
  123. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js +4 -64
  124. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js.map +1 -1
  125. package/dist/output-gateway/pid/routers/index.d.ts +2 -0
  126. package/dist/output-gateway/pid/routers/index.js +8 -0
  127. package/dist/output-gateway/pid/routers/index.js.map +1 -0
  128. package/dist/output-gateway/pid/{PIDRouter.d.ts → routers/v2/V2PIDRouter.d.ts} +5 -4
  129. package/dist/output-gateway/pid/{PIDRouter.js → routers/v2/V2PIDRouter.js} +20 -17
  130. package/dist/output-gateway/pid/routers/v2/V2PIDRouter.js.map +1 -0
  131. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +11 -0
  132. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +31 -0
  133. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +1 -0
  134. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.d.ts +10 -0
  135. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js +25 -0
  136. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js.map +1 -0
  137. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.d.ts +13 -0
  138. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js +35 -0
  139. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js.map +1 -0
  140. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts +19 -0
  141. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js +43 -0
  142. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map +1 -0
  143. package/dist/output-gateway/public/controllers/{v1/PublicDepartureBoardsController.d.ts → v2/V2PublicDepartureBoardsController.d.ts} +1 -1
  144. package/dist/output-gateway/public/controllers/{v1/PublicDepartureBoardsController.js → v2/V2PublicDepartureBoardsController.js} +5 -5
  145. package/dist/output-gateway/public/controllers/v2/V2PublicDepartureBoardsController.js.map +1 -0
  146. package/dist/output-gateway/public/controllers/{v1/PublicGtfsController.d.ts → v2/V2PublicGtfsController.d.ts} +1 -1
  147. package/dist/output-gateway/public/controllers/{v1/PublicGtfsController.js → v2/V2PublicGtfsController.js} +5 -5
  148. package/dist/output-gateway/public/controllers/v2/V2PublicGtfsController.js.map +1 -0
  149. package/dist/output-gateway/public/controllers/{v1/PublicVehiclePositionsController.d.ts → v2/V2PublicVehiclePositionsController.d.ts} +1 -1
  150. package/dist/output-gateway/public/controllers/{v1/PublicVehiclePositionsController.js → v2/V2PublicVehiclePositionsController.js} +4 -4
  151. package/dist/output-gateway/public/controllers/v2/V2PublicVehiclePositionsController.js.map +1 -0
  152. package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.d.ts +1 -1
  153. package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.js.map +1 -1
  154. package/dist/output-gateway/public/index.d.ts +1 -0
  155. package/dist/output-gateway/public/index.js +18 -0
  156. package/dist/output-gateway/public/index.js.map +1 -0
  157. package/dist/output-gateway/public/routers/index.d.ts +3 -0
  158. package/dist/output-gateway/public/routers/index.js +10 -0
  159. package/dist/output-gateway/public/routers/index.js.map +1 -0
  160. package/dist/output-gateway/public/routers/{v1/PublicDeparturesRouter.d.ts → v2/V2PublicDeparturesRouter.d.ts} +4 -3
  161. package/dist/output-gateway/public/routers/{v1/PublicDeparturesRouter.js → v2/V2PublicDeparturesRouter.js} +11 -8
  162. package/dist/output-gateway/public/routers/v2/V2PublicDeparturesRouter.js.map +1 -0
  163. package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.d.ts → v2/V2PublicGtfsRouter.d.ts} +4 -3
  164. package/dist/output-gateway/public/routers/{v1/PublicGtfsRouter.js → v2/V2PublicGtfsRouter.js} +11 -8
  165. package/dist/output-gateway/public/routers/v2/V2PublicGtfsRouter.js.map +1 -0
  166. package/dist/output-gateway/public/routers/{v1/PublicVehiclePositionsRouter.d.ts → v2/V2PublicVehiclePositionsRouter.d.ts} +4 -3
  167. package/dist/output-gateway/public/routers/{v1/PublicVehiclePositionsRouter.js → v2/V2PublicVehiclePositionsRouter.js} +11 -8
  168. package/dist/output-gateway/public/routers/v2/V2PublicVehiclePositionsRouter.js.map +1 -0
  169. package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.js.map +1 -1
  170. package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.js.map +1 -1
  171. package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.js.map +1 -1
  172. package/dist/output-gateway/public/routers/{v1 → v2}/helpers/DetailedTripScopeEnum.js.map +1 -1
  173. package/dist/output-gateway/public/service/facade/DepartureBoardFacade.d.ts +1 -1
  174. package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +1 -1
  175. package/dist/output-gateway/public/service/facade/DetailedTripFacade.js +1 -1
  176. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.d.ts +1 -1
  177. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js +1 -1
  178. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts +1 -1
  179. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js +1 -1
  180. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.d.ts +1 -1
  181. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js +1 -1
  182. package/dist/output-gateway/ropid-gtfs/index.d.ts +1 -1
  183. package/dist/output-gateway/ropid-gtfs/index.js +1 -1
  184. package/dist/output-gateway/ropid-gtfs/index.js.map +1 -1
  185. package/dist/output-gateway/ropid-gtfs/routers/index.d.ts +1 -0
  186. package/dist/output-gateway/ropid-gtfs/routers/index.js +6 -0
  187. package/dist/output-gateway/ropid-gtfs/routers/index.js.map +1 -0
  188. package/dist/output-gateway/ropid-gtfs/{GTFSRouter.d.ts → routers/v2/V2GTFSRouter.d.ts} +11 -13
  189. package/dist/output-gateway/ropid-gtfs/{GTFSRouter.js → routers/v2/V2GTFSRouter.js} +16 -16
  190. package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js.map +1 -0
  191. package/dist/output-gateway/shared/RopidRouterUtils.d.ts +4 -0
  192. package/dist/output-gateway/shared/RopidRouterUtils.js +11 -0
  193. package/dist/output-gateway/shared/RopidRouterUtils.js.map +1 -1
  194. package/dist/output-gateway/shared/constants/index.d.ts +1 -0
  195. package/dist/output-gateway/shared/constants/index.js +1 -0
  196. package/dist/output-gateway/shared/constants/index.js.map +1 -1
  197. package/dist/output-gateway/shared/constants/route-version.d.ts +5 -0
  198. package/dist/output-gateway/shared/constants/route-version.js +10 -0
  199. package/dist/output-gateway/shared/constants/route-version.js.map +1 -0
  200. package/dist/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.js +0 -2
  201. package/dist/output-gateway/vehicle-positions/data-access/views/TripWithLastPositionRepository.js.map +1 -1
  202. package/dist/output-gateway/vehicle-positions/index.d.ts +1 -1
  203. package/dist/output-gateway/vehicle-positions/index.js +1 -1
  204. package/dist/output-gateway/vehicle-positions/index.js.map +1 -1
  205. package/dist/output-gateway/vehicle-positions/routers/index.d.ts +1 -0
  206. package/dist/output-gateway/vehicle-positions/routers/index.js +6 -0
  207. package/dist/output-gateway/vehicle-positions/routers/index.js.map +1 -0
  208. package/dist/output-gateway/vehicle-positions/{VehiclePositionsRouter.d.ts → routers/v2/V2VehiclePositionsRouter.d.ts} +6 -6
  209. package/dist/output-gateway/vehicle-positions/{VehiclePositionsRouter.js → routers/v2/V2VehiclePositionsRouter.js} +12 -11
  210. package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js.map +1 -0
  211. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.d.ts +3 -0
  212. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +59 -0
  213. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -0
  214. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +16 -0
  215. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js +3 -0
  216. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js.map +1 -0
  217. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.d.ts +3 -0
  218. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js +3 -0
  219. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js.map +1 -0
  220. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.d.ts +4 -0
  221. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js +3 -0
  222. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js.map +1 -0
  223. package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +3 -0
  224. package/dist/schema-definitions/jis/datasources/interfaces/index.js +20 -0
  225. package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -0
  226. package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +19 -0
  227. package/dist/schema-definitions/jis/models/JISInfotextsModel.js +80 -0
  228. package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -0
  229. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.d.ts +12 -0
  230. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js +41 -0
  231. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js.map +1 -0
  232. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +10 -0
  233. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js +3 -0
  234. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js.map +1 -0
  235. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.d.ts +4 -0
  236. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js +3 -0
  237. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js.map +1 -0
  238. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.d.ts +4 -0
  239. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js +3 -0
  240. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js.map +1 -0
  241. package/dist/schema-definitions/jis/models/interfaces/index.d.ts +3 -0
  242. package/dist/schema-definitions/jis/models/interfaces/index.js +20 -0
  243. package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -0
  244. package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js +6 -0
  245. package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js.map +1 -1
  246. package/dist/schema-definitions/vehicle-positions/models/interfaces/VPTripsLastPositionInterfaces.d.ts +2 -0
  247. package/docs/assets/pid_jis_erd.png +0 -0
  248. package/docs/implementation_documentation.md +86 -35
  249. package/docs/openapi-output.yaml +128 -69
  250. package/package.json +2 -2
  251. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +0 -1
  252. package/dist/output-gateway/pid/PIDRouter.js.map +0 -1
  253. package/dist/output-gateway/pid/controllers/DepartureBoardsController.js.map +0 -1
  254. package/dist/output-gateway/pid/controllers/InfotextsController.js.map +0 -1
  255. package/dist/output-gateway/pid/controllers/index.d.ts +0 -2
  256. package/dist/output-gateway/pid/controllers/index.js.map +0 -1
  257. package/dist/output-gateway/public/controllers/v1/PublicDepartureBoardsController.js.map +0 -1
  258. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +0 -1
  259. package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js.map +0 -1
  260. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +0 -1
  261. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +0 -1
  262. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +0 -1
  263. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +0 -1
  264. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +0 -1
  265. /package/dist/output-gateway/public/controllers/{v1 → v2}/interfaces/PublicParamsInterfaces.js +0 -0
  266. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.d.ts +0 -0
  267. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomScopeValidator.js +0 -0
  268. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.d.ts +0 -0
  269. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomStopIdGroupValidator.js +0 -0
  270. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.d.ts +0 -0
  271. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/CustomTypeValidator.js +0 -0
  272. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/DetailedTripScopeEnum.d.ts +0 -0
  273. /package/dist/output-gateway/public/routers/{v1 → v2}/helpers/DetailedTripScopeEnum.js +0 -0
@@ -0,0 +1,13 @@
1
+ import { IInfotextDepartureInputDto, IInfotextDepartureOutputDto } from "../../domain/InfotextInterfaces";
2
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
3
+ export declare class JISInfotextDepartureTransformation extends AbstractTransformation<IInfotextDepartureInputDto, IInfotextDepartureOutputDto> {
4
+ name: string;
5
+ protected transformInternal: ({ data, timeZone }: IInfotextDepartureInputDto) => {
6
+ display_type: import("../../domain/InfotextDisplayTypeEnum").InfotextDisplayType;
7
+ text: string;
8
+ text_en: string | null;
9
+ related_stops: string[];
10
+ valid_from: string;
11
+ valid_to: string | null;
12
+ };
13
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.JISInfotextDepartureTransformation = void 0;
10
+ const shared_1 = require("../../../shared");
11
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
+ const DisplayTypeMapper_1 = require("../helpers/DisplayTypeMapper");
14
+ let JISInfotextDepartureTransformation = exports.JISInfotextDepartureTransformation = class JISInfotextDepartureTransformation extends AbstractTransformation_1.AbstractTransformation {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.name = "JISInfotextDepartureTransformation";
18
+ this.transformInternal = ({ data, timeZone }) => {
19
+ var _a, _b, _c;
20
+ const stops = (_a = data.stops) !== null && _a !== void 0 ? _a : [];
21
+ return {
22
+ display_type: DisplayTypeMapper_1.DisplayTypeMapper.mapInputToOutputDisplayType(data.display_type),
23
+ text: data.description_text.cs,
24
+ text_en: (_b = data.description_text.en) !== null && _b !== void 0 ? _b : null,
25
+ related_stops: stops.map((stop) => stop.stop_id),
26
+ valid_from: (_c = shared_1.RopidRouterUtils.formatTimestamp(data.active_period_start, timeZone)) !== null && _c !== void 0 ? _c : data.active_period_start.toISOString(),
27
+ valid_to: shared_1.RopidRouterUtils.formatTimestamp(data.active_period_end, timeZone),
28
+ };
29
+ };
30
+ }
31
+ };
32
+ exports.JISInfotextDepartureTransformation = JISInfotextDepartureTransformation = __decorate([
33
+ (0, tsyringe_1.injectable)()
34
+ ], JISInfotextDepartureTransformation);
35
+ //# sourceMappingURL=JISInfotextDepartureTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JISInfotextDepartureTransformation.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.ts"],"names":[],"mappings":";;;;;;;;;AACA,4CAA8C;AAC9C,6GAA0G;AAC1G,iEAAgE;AAChE,oEAAiE;AAG1D,IAAM,kCAAkC,gDAAxC,MAAM,kCAAmC,SAAQ,+CAGvD;IAHM;;QAII,SAAI,GAAG,oCAAoC,CAAC;QAEzC,sBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAA8B,EAAE,EAAE;;YAC7E,MAAM,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,EAAE,CAAC;YAC/B,OAAO;gBACH,YAAY,EAAE,qCAAiB,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC9E,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE;gBAC9B,OAAO,EAAE,MAAA,IAAI,CAAC,gBAAgB,CAAC,EAAE,mCAAI,IAAI;gBACzC,aAAa,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChD,UAAU,EACN,MAAA,yBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,mCAAI,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE;gBAClH,QAAQ,EAAE,yBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC;aAC/E,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;6CAlBY,kCAAkC;IAD9C,IAAA,qBAAU,GAAE;GACA,kCAAkC,CAkB9C"}
@@ -0,0 +1,19 @@
1
+ import { IInfotextOverviewOutputDto } from "../../domain/InfotextInterfaces";
2
+ import { JISInfotextsModel } from "../../../../schema-definitions/jis/models/JISInfotextsModel";
3
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
4
+ export declare class JISInfotextOverviewTransformation extends AbstractTransformation<JISInfotextsModel, IInfotextOverviewOutputDto> {
5
+ name: string;
6
+ protected transformInternal: (inputDto: JISInfotextsModel) => {
7
+ id: string;
8
+ display_type: import("../../domain/InfotextDisplayTypeEnum").InfotextDisplayType;
9
+ text: string;
10
+ text_en: string | null;
11
+ related_stops: {
12
+ id: string;
13
+ name: string;
14
+ platform_code: string;
15
+ }[];
16
+ valid_from: string;
17
+ valid_to: string | null;
18
+ };
19
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.JISInfotextOverviewTransformation = void 0;
10
+ const shared_1 = require("../../../shared");
11
+ const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
+ const DisplayTypeMapper_1 = require("../helpers/DisplayTypeMapper");
14
+ let JISInfotextOverviewTransformation = exports.JISInfotextOverviewTransformation = class JISInfotextOverviewTransformation extends AbstractTransformation_1.AbstractTransformation {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.name = "JISInfotextOverviewTransformation";
18
+ this.transformInternal = (inputDto) => {
19
+ var _a, _b, _c;
20
+ const stops = (_a = inputDto.stops) !== null && _a !== void 0 ? _a : [];
21
+ return {
22
+ id: inputDto.id,
23
+ display_type: DisplayTypeMapper_1.DisplayTypeMapper.mapInputToOutputDisplayType(inputDto.display_type),
24
+ text: inputDto.description_text.cs,
25
+ text_en: (_b = inputDto.description_text.en) !== null && _b !== void 0 ? _b : null,
26
+ related_stops: stops.map((stop) => {
27
+ var _a;
28
+ return ({
29
+ id: stop.stop_id,
30
+ name: stop.stop_name,
31
+ platform_code: (_a = stop.platform_code) !== null && _a !== void 0 ? _a : null,
32
+ });
33
+ }),
34
+ valid_from: (_c = shared_1.RopidRouterUtils.formatTimestamp(inputDto.active_period_start)) !== null && _c !== void 0 ? _c : inputDto.active_period_start.toISOString(),
35
+ valid_to: shared_1.RopidRouterUtils.formatTimestamp(inputDto.active_period_end),
36
+ };
37
+ };
38
+ }
39
+ };
40
+ exports.JISInfotextOverviewTransformation = JISInfotextOverviewTransformation = __decorate([
41
+ (0, tsyringe_1.injectable)()
42
+ ], JISInfotextOverviewTransformation);
43
+ //# sourceMappingURL=JISInfotextOverviewTransformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JISInfotextOverviewTransformation.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.ts"],"names":[],"mappings":";;;;;;;;;AACA,4CAA8C;AAE9C,6GAA0G;AAC1G,iEAAgE;AAChE,oEAAiE;AAG1D,IAAM,iCAAiC,+CAAvC,MAAM,iCAAkC,SAAQ,+CAAqE;IAArH;;QACI,SAAI,GAAG,mCAAmC,CAAC;QAExC,sBAAiB,GAAG,CAAC,QAA2B,EAAE,EAAE;;YAC1D,MAAM,KAAK,GAAG,MAAA,QAAQ,CAAC,KAAK,mCAAI,EAAE,CAAC;YACnC,OAAO;gBACH,EAAE,EAAE,QAAQ,CAAC,EAAE;gBACf,YAAY,EAAE,qCAAiB,CAAC,2BAA2B,CAAC,QAAQ,CAAC,YAAY,CAAC;gBAClF,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE;gBAClC,OAAO,EAAE,MAAA,QAAQ,CAAC,gBAAgB,CAAC,EAAE,mCAAI,IAAI;gBAC7C,aAAa,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;;oBAAC,OAAA,CAAC;wBAChC,EAAE,EAAE,IAAI,CAAC,OAAO;wBAChB,IAAI,EAAE,IAAI,CAAC,SAAS;wBACpB,aAAa,EAAE,MAAA,IAAI,CAAC,aAAa,mCAAI,IAAI;qBAC5C,CAAC,CAAA;iBAAA,CAAC;gBACH,UAAU,EACN,MAAA,yBAAgB,CAAC,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC,mCAAI,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE;gBAChH,QAAQ,EAAE,yBAAgB,CAAC,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC;aACzE,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;4CApBY,iCAAiC;IAD7C,IAAA,qBAAU,GAAE;GACA,iCAAiC,CAoB7C"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="express" />
2
2
  import { RequestHandler } from "@golemio/core/dist/shared/express";
3
- export declare class PublicDepartureBoardsController {
3
+ export declare class V2PublicDepartureBoardsController {
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.PublicDepartureBoardsController = void 0;
12
+ exports.V2PublicDepartureBoardsController = 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 PublicDepartureBoardsController {
16
+ class V2PublicDepartureBoardsController {
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)("PublicDepartureBoardsController.getAll");
19
+ const span = (0, trace_provider_1.createChildSpan)("V2PublicDepartureBoardsController.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 PublicDepartureBoardsController {
61
61
  return output;
62
62
  }
63
63
  }
64
- exports.PublicDepartureBoardsController = PublicDepartureBoardsController;
65
- //# sourceMappingURL=PublicDepartureBoardsController.js.map
64
+ exports.V2PublicDepartureBoardsController = V2PublicDepartureBoardsController;
65
+ //# sourceMappingURL=V2PublicDepartureBoardsController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V2PublicDepartureBoardsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v2/V2PublicDepartureBoardsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,2DAA6D;AAK7D,+FAA6F;AAE7F,MAAa,iCAAiC;IAC1C;QAEO,WAAM,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACrD,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,0CAA0C,CAAC,CAAC;YAEzE,IAAI;gBACA,MAAM,MAAM,GAAG,sBAAiB,CAAC,OAAO,CAAuB,6BAAa,CAAC,oBAAoB,CAAC,CAAC;gBACnG,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBACpD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAA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,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,8EAoDC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="express" />
2
2
  import { RequestHandler } from "@golemio/core/dist/shared/express";
3
- export declare class PublicGtfsController {
3
+ export declare class V2PublicGtfsController {
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.PublicGtfsController = void 0;
12
+ exports.V2PublicGtfsController = 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 PublicGtfsController {
16
+ class V2PublicGtfsController {
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)("PublicGtfsController.getOneTrip");
19
+ const span = (0, trace_provider_1.createChildSpan)("V2PublicGtfsController.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 PublicGtfsController {
40
40
  };
41
41
  }
42
42
  }
43
- exports.PublicGtfsController = PublicGtfsController;
44
- //# sourceMappingURL=PublicGtfsController.js.map
43
+ exports.V2PublicGtfsController = V2PublicGtfsController;
44
+ //# sourceMappingURL=V2PublicGtfsController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V2PublicGtfsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v2/V2PublicGtfsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,2DAA6D;AAG7D,+FAA6F;AAI7F,MAAa,sBAAsB;IAAnC;QACW,eAAU,GAAmB,CAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzD,MAAM,IAAI,GAAG,IAAA,gCAAe,EAAC,mCAAmC,CAAC,CAAC;YAElE,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,wDA0BC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="express" />
2
2
  import { RequestHandler } from "@golemio/core/dist/shared/express";
3
- export declare class PublicVehiclePositionsController {
3
+ export declare class V2PublicVehiclePositionsController {
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.PublicVehiclePositionsController = void 0;
12
+ exports.V2PublicVehiclePositionsController = 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 PublicVehiclePositionsController {
17
+ class V2PublicVehiclePositionsController {
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 PublicVehiclePositionsController {
82
82
  };
83
83
  }
84
84
  }
85
- exports.PublicVehiclePositionsController = PublicVehiclePositionsController;
86
- //# sourceMappingURL=PublicVehiclePositionsController.js.map
85
+ exports.V2PublicVehiclePositionsController = V2PublicVehiclePositionsController;
86
+ //# sourceMappingURL=V2PublicVehiclePositionsController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V2PublicVehiclePositionsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/public/controllers/v2/V2PublicVehiclePositionsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA2D;AAC3D,8CAA6D;AAC7D,qCAAsD;AACtD,2DAA6D;AAQ7D,MAAa,kCAAkC;IAC3C;QAEO,WA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xE,CAAC,CAAE,KAAK,CAAC,cAAyB;gBACtC,CAAC,CAAC,SAAS;YACf,IAAI,EAAE,KAAK,CAAC,SAAS;gBACjB,CAAC,CAAC,KAAK,CAAC,SAAS,YAAY,KAAK;oBAC9B,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,iCAAgB,EAAC,IAAc,CAAC,CAAC;oBACjE,CAAC,CAAC,CAAC,IAAA,iCAAgB,EAAC,KAAK,CAAC,SAAmB,CAAC,CAAC;gBACnD,CAAC,CAAC,SAAS;SAClB,CAAC;IACN,CAAC;IAEO,mBAAmB,CAAC,GAAY;QACpC,OAAO;YACH,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS;YAC/B,MAAM,EAAE,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,gFAwEC"}
@@ -1,6 +1,6 @@
1
1
  import { GTFSRouteTypeEnum } from "../../../../../helpers/RouteTypeEnums";
2
2
  import { IBoundingBox } from "../../../domain/IBoudingBox";
3
- import { DetailedTripScope } from "../../../routers/v1/helpers/DetailedTripScopeEnum";
3
+ import { DetailedTripScope } from "../../../routers/v2/helpers/DetailedTripScopeEnum";
4
4
  export interface IVehiclePositionsParams {
5
5
  boundingBox: IBoundingBox;
6
6
  routeShortName: string | string[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicParamsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/controllers/v1/interfaces/PublicParamsInterfaces.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"PublicParamsInterfaces.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/controllers/v2/interfaces/PublicParamsInterfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from "./routers";
@@ -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,3 @@
1
+ export { v2PublicDeparturesRouter } from "./v2/V2PublicDeparturesRouter";
2
+ export { v2PublicGtfsRouter } from "./v2/V2PublicGtfsRouter";
3
+ export { v2PublicVPRouter } from "./v2/V2PublicVehiclePositionsRouter";
@@ -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 PublicDeparturesRouter {
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 v1PublicDeparturesRouter: Router;
12
- export { v1PublicDeparturesRouter };
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.v1PublicDeparturesRouter = exports.PublicDeparturesRouter = void 0;
4
- const PublicDepartureBoardsController_1 = require("../../controllers/v1/PublicDepartureBoardsController");
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 PublicDeparturesRouter {
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 PublicDepartureBoardsController_1.PublicDepartureBoardsController();
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.PublicDeparturesRouter = PublicDeparturesRouter;
31
- const v1PublicDeparturesRouter = new PublicDeparturesRouter().router;
32
- exports.v1PublicDeparturesRouter = v1PublicDeparturesRouter;
33
- //# sourceMappingURL=PublicDeparturesRouter.js.map
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,KAAK,CAAC,wBAAY,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC;QACjD,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,qEAAiC,EAAE,CAAC;QACnE,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;AAjCD,4DAiCC;AAED,MAAM,wBAAwB,GAAmB,IAAI,wBAAwB,EAAE,CAAC;AACvE,4DAAwB"}
@@ -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 PublicGtfsRouter {
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 v1PublicGtfsRouter: Router;
12
- export { v1PublicGtfsRouter };
12
+ declare const v2PublicGtfsRouter: AbstractRouter;
13
+ export { v2PublicGtfsRouter };
@@ -1,19 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v1PublicGtfsRouter = exports.PublicGtfsRouter = void 0;
4
- const PublicGtfsController_1 = require("../../controllers/v1/PublicGtfsController");
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 PublicGtfsRouter {
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 PublicGtfsController_1.PublicGtfsController();
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.PublicGtfsRouter = PublicGtfsRouter;
26
- const v1PublicGtfsRouter = new PublicGtfsRouter().router;
27
- exports.v1PublicGtfsRouter = v1PublicGtfsRouter;
28
- //# sourceMappingURL=PublicGtfsRouter.js.map
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 PublicVehiclePositionsRouter {
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 v1PublicVPRouter: Router;
13
- export { v1PublicVPRouter };
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.v1PublicVPRouter = exports.PublicVehiclePositionsRouter = void 0;
4
- const PublicVehiclePositionsController_1 = require("../../controllers/v1/PublicVehiclePositionsController");
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 PublicVehiclePositionsRouter {
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 PublicVehiclePositionsController_1.PublicVehiclePositionsController();
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.PublicVehiclePositionsRouter = PublicVehiclePositionsRouter;
44
- const v1PublicVPRouter = new PublicVehiclePositionsRouter().router;
45
- exports.v1PublicVPRouter = v1PublicVPRouter;
46
- //# sourceMappingURL=PublicVehiclePositionsRouter.js.map
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,EAAE,yBAAyB,C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AAM,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/v1/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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomStopIdGroupValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v1/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,CAA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KAAK,CAAC;aAChB;YAED,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;YAC7B,IAAI,UAAU,GAAG,eAAe,EAAE;gBAC9B,OAAO,KAAK,CAAC;aAChB;SACJ;QAED,OAAO,IAAI,CAAC;KACf;IAED,MAAM,OAAO,GAAG,EAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,EAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,AAzBqB,CAyBpB"}
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;QAC9C,IAAI;YACA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACjC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACjC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;gBACnB,OAAO,IAAI,CAAC;aACf;YAED,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBACxB,OAAO,IAAI,CAAC;aACf;YAED,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;SAC3B;QAAC,WAAM;YACJ,OAAO,IAAI,CAAC;SACf;IACL,CAAC;;AA9DL,gEA+DC;;AA9DiB,mCAAQ,GAAoB,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;IACnD,IAAI,KAAK,YAAY,KAAK,EAAE;QACxB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,eAAe,EAAE;YACtD,OAAO,KAAK,CAAC;SAChB;QAED,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,KAAK,MAAM,WAAW,IAAI,KAAK,EAAE;YAC7B,MAAM,OAAO,GAAG,EAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;YAExD,IAAI,CAAC,EAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,KAAK,CAAC;aAChB;YAED,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;YAC7B,IAAI,UAAU,GAAG,eAAe,EAAE;gBAC9B,OAAO,KAAK,CAAC;aAChB;SACJ;QAED,OAAO,IAAI,CAAC;KACf;IAED,MAAM,OAAO,GAAG,EAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,EAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,AAzBqB,CAyBpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomTypeValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/public/routers/v1/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
+ {"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/v1/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
+ {"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/v1/interfaces/PublicParamsInterfaces";
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/v1/helpers/DetailedTripScopeEnum";
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/v1/helpers/DetailedTripScopeEnum");
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/v1/helpers/DetailedTripScopeEnum";
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/v1/helpers/DetailedTripScopeEnum");
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 {
@@ -1,6 +1,6 @@
1
1
  import { ITripScopeHandler } from "../../../domain/ITripScopeHandler";
2
2
  import { IPublicApiGtfsTrip } from "../../../domain/PublicApiGtfsTripLookupInterfaces";
3
- import { DetailedTripScope } from "../../../routers/v1/helpers/DetailedTripScopeEnum";
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 {