@golemio/pid 2.17.1-dev.1412857437 → 2.18.0-rc.1418092579

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/db/example/00_clear_test_data.sql +0 -2
  2. package/db/example/03_ropidgtfs_dump.sql +0 -36
  3. package/dist/integration-engine/index.js +0 -4
  4. package/dist/integration-engine/index.js.map +1 -1
  5. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.d.ts +0 -2
  6. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +0 -21
  7. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
  8. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.d.ts +4 -1
  9. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js +27 -11
  10. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js.map +1 -1
  11. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.d.ts +1 -1
  12. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +49 -22
  13. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  14. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.d.ts +1 -0
  15. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +80 -1
  16. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
  17. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +17 -0
  18. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +6 -3
  19. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +19 -8
  20. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
  21. package/dist/output-gateway/departure-boards/{routers/v2/V2DepartureBoardsRouter.d.ts → DepartureBoardsRouter.d.ts} +8 -9
  22. package/dist/output-gateway/departure-boards/{routers/v2/V2DepartureBoardsRouter.js → DepartureBoardsRouter.js} +18 -19
  23. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -0
  24. package/dist/output-gateway/departure-boards/index.d.ts +1 -1
  25. package/dist/output-gateway/departure-boards/index.js +1 -1
  26. package/dist/output-gateway/departure-boards/index.js.map +1 -1
  27. package/dist/output-gateway/index.d.ts +0 -1
  28. package/dist/output-gateway/index.js +1 -25
  29. package/dist/output-gateway/index.js.map +1 -1
  30. package/dist/output-gateway/pid/{routers/v2/V2PIDRouter.d.ts → PIDRouter.d.ts} +4 -5
  31. package/dist/output-gateway/pid/{routers/v2/V2PIDRouter.js → PIDRouter.js} +17 -20
  32. package/dist/output-gateway/pid/PIDRouter.js.map +1 -0
  33. package/dist/output-gateway/pid/controllers/{v2/V2DepartureBoardsController.d.ts → DepartureBoardsController.d.ts} +1 -1
  34. package/dist/output-gateway/pid/controllers/{v2/V2DepartureBoardsController.js → DepartureBoardsController.js} +9 -9
  35. package/dist/output-gateway/pid/controllers/DepartureBoardsController.js.map +1 -0
  36. package/dist/output-gateway/pid/controllers/{v2/V2InfotextsController.d.ts → InfotextsController.d.ts} +1 -1
  37. package/dist/output-gateway/pid/controllers/{v2/V2InfotextsController.js → InfotextsController.js} +6 -6
  38. package/dist/output-gateway/pid/controllers/InfotextsController.js.map +1 -0
  39. package/dist/output-gateway/pid/controllers/index.d.ts +2 -0
  40. package/dist/{integration-engine/jis → output-gateway/pid/controllers}/index.js +2 -1
  41. package/dist/output-gateway/pid/controllers/index.js.map +1 -0
  42. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.d.ts +3 -3
  43. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js +1 -1
  44. package/dist/output-gateway/pid/dto/DepartureBoardsDTO.js.map +1 -1
  45. package/dist/output-gateway/pid/index.d.ts +1 -1
  46. package/dist/output-gateway/pid/index.js +1 -1
  47. package/dist/output-gateway/pid/index.js.map +1 -1
  48. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.d.ts +1 -2
  49. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +10 -20
  50. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
  51. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.d.ts +19 -2
  52. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js +64 -4
  53. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js.map +1 -1
  54. package/dist/output-gateway/public/controllers/{v2/V2PublicDepartureBoardsController.d.ts → v1/PublicDepartureBoardsController.d.ts} +1 -1
  55. package/dist/output-gateway/public/controllers/{v2/V2PublicDepartureBoardsController.js → v1/PublicDepartureBoardsController.js} +5 -5
  56. package/dist/output-gateway/public/controllers/v1/PublicDepartureBoardsController.js.map +1 -0
  57. package/dist/output-gateway/public/controllers/{v2/V2PublicGtfsController.d.ts → v1/PublicGtfsController.d.ts} +1 -1
  58. package/dist/output-gateway/public/controllers/{v2/V2PublicGtfsController.js → v1/PublicGtfsController.js} +5 -5
  59. package/dist/output-gateway/public/controllers/v1/PublicGtfsController.js.map +1 -0
  60. package/dist/output-gateway/public/controllers/{v2/V2PublicVehiclePositionsController.d.ts → v1/PublicVehiclePositionsController.d.ts} +1 -1
  61. package/dist/output-gateway/public/controllers/{v2/V2PublicVehiclePositionsController.js → v1/PublicVehiclePositionsController.js} +4 -4
  62. package/dist/output-gateway/public/controllers/v1/PublicVehiclePositionsController.js.map +1 -0
  63. package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.d.ts +1 -1
  64. package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.js.map +1 -1
  65. package/dist/output-gateway/public/routers/{v2/V2PublicDeparturesRouter.d.ts → v1/PublicDeparturesRouter.d.ts} +3 -4
  66. package/dist/output-gateway/public/routers/{v2/V2PublicDeparturesRouter.js → v1/PublicDeparturesRouter.js} +8 -11
  67. package/dist/output-gateway/public/routers/v1/PublicDeparturesRouter.js.map +1 -0
  68. package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.d.ts → v1/PublicGtfsRouter.d.ts} +3 -4
  69. package/dist/output-gateway/public/routers/{v2/V2PublicGtfsRouter.js → v1/PublicGtfsRouter.js} +8 -11
  70. package/dist/output-gateway/public/routers/v1/PublicGtfsRouter.js.map +1 -0
  71. package/dist/output-gateway/public/routers/{v2/V2PublicVehiclePositionsRouter.d.ts → v1/PublicVehiclePositionsRouter.d.ts} +3 -4
  72. package/dist/output-gateway/public/routers/{v2/V2PublicVehiclePositionsRouter.js → v1/PublicVehiclePositionsRouter.js} +8 -11
  73. package/dist/output-gateway/public/routers/v1/PublicVehiclePositionsRouter.js.map +1 -0
  74. package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.js.map +1 -1
  75. package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.js.map +1 -1
  76. package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.js.map +1 -1
  77. package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.js.map +1 -1
  78. package/dist/output-gateway/public/service/facade/DepartureBoardFacade.d.ts +1 -1
  79. package/dist/output-gateway/public/service/facade/DetailedTripFacade.d.ts +1 -1
  80. package/dist/output-gateway/public/service/facade/DetailedTripFacade.js +1 -1
  81. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.d.ts +1 -1
  82. package/dist/output-gateway/public/service/facade/GtfsTripLookupFacade.js +1 -1
  83. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.d.ts +1 -1
  84. package/dist/output-gateway/public/service/helpers/gtfs-trip-scope/GtfsTripScopeHandlerFactory.js +1 -1
  85. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.d.ts +1 -1
  86. package/dist/output-gateway/public/service/helpers/trip-scope/TripScopeHandlerFactory.js +1 -1
  87. package/dist/output-gateway/ropid-gtfs/{routers/v2/V2GTFSRouter.d.ts → GTFSRouter.d.ts} +13 -11
  88. package/dist/output-gateway/ropid-gtfs/{routers/v2/V2GTFSRouter.js → GTFSRouter.js} +16 -16
  89. package/dist/output-gateway/ropid-gtfs/GTFSRouter.js.map +1 -0
  90. package/dist/output-gateway/ropid-gtfs/index.d.ts +1 -1
  91. package/dist/output-gateway/ropid-gtfs/index.js +1 -1
  92. package/dist/output-gateway/ropid-gtfs/index.js.map +1 -1
  93. package/dist/output-gateway/shared/RopidRouterUtils.d.ts +0 -4
  94. package/dist/output-gateway/shared/RopidRouterUtils.js +0 -11
  95. package/dist/output-gateway/shared/RopidRouterUtils.js.map +1 -1
  96. package/dist/output-gateway/shared/constants/index.d.ts +0 -1
  97. package/dist/output-gateway/shared/constants/index.js +0 -1
  98. package/dist/output-gateway/shared/constants/index.js.map +1 -1
  99. package/dist/output-gateway/vehicle-positions/{routers/v2/V2VehiclePositionsRouter.d.ts → VehiclePositionsRouter.d.ts} +6 -6
  100. package/dist/output-gateway/vehicle-positions/{routers/v2/V2VehiclePositionsRouter.js → VehiclePositionsRouter.js} +11 -12
  101. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -0
  102. package/dist/output-gateway/vehicle-positions/index.d.ts +1 -1
  103. package/dist/output-gateway/vehicle-positions/index.js +1 -1
  104. package/dist/output-gateway/vehicle-positions/index.js.map +1 -1
  105. package/docs/implementation_documentation.md +35 -86
  106. package/docs/index.md +3 -0
  107. package/docs/openapi-output.yaml +69 -128
  108. package/package.json +2 -2
  109. package/db/example/20_jis_infotexts.sql +0 -214
  110. package/db/migrations/postgresql/20240801141948-jis-infotexts.js +0 -53
  111. package/db/migrations/postgresql/20240809084521-jis-infotexts-severity-level.js +0 -53
  112. package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-down.sql +0 -2
  113. package/db/migrations/postgresql/sqls/20240801141948-jis-infotexts-up.sql +0 -19
  114. package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-down.sql +0 -8
  115. package/db/migrations/postgresql/sqls/20240809084521-jis-infotexts-severity-level-up.sql +0 -7
  116. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.d.ts +0 -10
  117. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js +0 -49
  118. package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js.map +0 -1
  119. package/dist/integration-engine/jis/index.d.ts +0 -1
  120. package/dist/integration-engine/jis/index.js.map +0 -1
  121. package/dist/integration-engine/jis/ioc/Di.d.ts +0 -3
  122. package/dist/integration-engine/jis/ioc/Di.js +0 -31
  123. package/dist/integration-engine/jis/ioc/Di.js.map +0 -1
  124. package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -9
  125. package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -18
  126. package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +0 -1
  127. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +0 -36
  128. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +0 -101
  129. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +0 -1
  130. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +0 -36
  131. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +0 -101
  132. package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +0 -1
  133. package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +0 -20
  134. package/dist/integration-engine/jis/services/JISInfotextsDataService.js +0 -78
  135. package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +0 -1
  136. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.d.ts +0 -13
  137. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +0 -41
  138. package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +0 -1
  139. package/dist/integration-engine/jis/workers/JISWorker.d.ts +0 -7
  140. package/dist/integration-engine/jis/workers/JISWorker.js +0 -21
  141. package/dist/integration-engine/jis/workers/JISWorker.js.map +0 -1
  142. package/dist/integration-engine/jis/workers/constants.d.ts +0 -1
  143. package/dist/integration-engine/jis/workers/constants.js +0 -5
  144. package/dist/integration-engine/jis/workers/constants.js.map +0 -1
  145. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +0 -14
  146. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +0 -72
  147. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +0 -1
  148. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.d.ts +0 -3
  149. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js +0 -62
  150. package/dist/integration-engine/ropid-gtfs/data-access/helpers/RawQueryProvider.js.map +0 -1
  151. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.d.ts +0 -22
  152. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js +0 -3
  153. package/dist/integration-engine/ropid-gtfs/interfaces/TripScheduleInterfaces.js.map +0 -1
  154. package/dist/output-gateway/departure-boards/routers/index.d.ts +0 -1
  155. package/dist/output-gateway/departure-boards/routers/index.js +0 -6
  156. package/dist/output-gateway/departure-boards/routers/index.js.map +0 -1
  157. package/dist/output-gateway/departure-boards/routers/v2/V2DepartureBoardsRouter.js.map +0 -1
  158. package/dist/output-gateway/pid/controllers/v2/V2DepartureBoardsController.js.map +0 -1
  159. package/dist/output-gateway/pid/controllers/v2/V2InfotextsController.js.map +0 -1
  160. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.d.ts +0 -10
  161. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js +0 -57
  162. package/dist/output-gateway/pid/controllers/v3/V3InfotextsController.js.map +0 -1
  163. package/dist/output-gateway/pid/data-access/JISInfotextRepository.d.ts +0 -27
  164. package/dist/output-gateway/pid/data-access/JISInfotextRepository.js +0 -157
  165. package/dist/output-gateway/pid/data-access/JISInfotextRepository.js.map +0 -1
  166. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.d.ts +0 -11
  167. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js +0 -37
  168. package/dist/output-gateway/pid/data-access/JISInfotextRopidGTFSStopsRepository.js.map +0 -1
  169. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.d.ts +0 -4
  170. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js +0 -9
  171. package/dist/output-gateway/pid/domain/InfotextDisplayTypeEnum.js.map +0 -1
  172. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +0 -28
  173. package/dist/output-gateway/pid/domain/InfotextInterfaces.js +0 -3
  174. package/dist/output-gateway/pid/domain/InfotextInterfaces.js.map +0 -1
  175. package/dist/output-gateway/pid/ioc/Di.d.ts +0 -3
  176. package/dist/output-gateway/pid/ioc/Di.js +0 -23
  177. package/dist/output-gateway/pid/ioc/Di.js.map +0 -1
  178. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -7
  179. package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -17
  180. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +0 -1
  181. package/dist/output-gateway/pid/routers/index.d.ts +0 -2
  182. package/dist/output-gateway/pid/routers/index.js +0 -8
  183. package/dist/output-gateway/pid/routers/index.js.map +0 -1
  184. package/dist/output-gateway/pid/routers/v2/V2PIDRouter.js.map +0 -1
  185. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.d.ts +0 -11
  186. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js +0 -31
  187. package/dist/output-gateway/pid/routers/v3/V3PIDRouter.js.map +0 -1
  188. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.d.ts +0 -10
  189. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js +0 -25
  190. package/dist/output-gateway/pid/service/helpers/DisplayTypeMapper.js.map +0 -1
  191. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.d.ts +0 -13
  192. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js +0 -35
  193. package/dist/output-gateway/pid/service/transformations/JISInfotextDepartureTransformation.js.map +0 -1
  194. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts +0 -19
  195. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js +0 -43
  196. package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map +0 -1
  197. package/dist/output-gateway/public/controllers/v2/V2PublicDepartureBoardsController.js.map +0 -1
  198. package/dist/output-gateway/public/controllers/v2/V2PublicGtfsController.js.map +0 -1
  199. package/dist/output-gateway/public/controllers/v2/V2PublicVehiclePositionsController.js.map +0 -1
  200. package/dist/output-gateway/public/index.d.ts +0 -1
  201. package/dist/output-gateway/public/index.js +0 -18
  202. package/dist/output-gateway/public/index.js.map +0 -1
  203. package/dist/output-gateway/public/routers/index.d.ts +0 -3
  204. package/dist/output-gateway/public/routers/index.js +0 -10
  205. package/dist/output-gateway/public/routers/index.js.map +0 -1
  206. package/dist/output-gateway/public/routers/v2/V2PublicDeparturesRouter.js.map +0 -1
  207. package/dist/output-gateway/public/routers/v2/V2PublicGtfsRouter.js.map +0 -1
  208. package/dist/output-gateway/public/routers/v2/V2PublicVehiclePositionsRouter.js.map +0 -1
  209. package/dist/output-gateway/ropid-gtfs/routers/index.d.ts +0 -1
  210. package/dist/output-gateway/ropid-gtfs/routers/index.js +0 -6
  211. package/dist/output-gateway/ropid-gtfs/routers/index.js.map +0 -1
  212. package/dist/output-gateway/ropid-gtfs/routers/v2/V2GTFSRouter.js.map +0 -1
  213. package/dist/output-gateway/shared/constants/route-version.d.ts +0 -5
  214. package/dist/output-gateway/shared/constants/route-version.js +0 -10
  215. package/dist/output-gateway/shared/constants/route-version.js.map +0 -1
  216. package/dist/output-gateway/vehicle-positions/routers/index.d.ts +0 -1
  217. package/dist/output-gateway/vehicle-positions/routers/index.js +0 -6
  218. package/dist/output-gateway/vehicle-positions/routers/index.js.map +0 -1
  219. package/dist/output-gateway/vehicle-positions/routers/v2/V2VehiclePositionsRouter.js.map +0 -1
  220. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.d.ts +0 -3
  221. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +0 -59
  222. package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +0 -1
  223. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +0 -16
  224. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js +0 -3
  225. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.js.map +0 -1
  226. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.d.ts +0 -3
  227. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js +0 -3
  228. package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextStop.js.map +0 -1
  229. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.d.ts +0 -4
  230. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js +0 -3
  231. package/dist/schema-definitions/jis/datasources/interfaces/IJISTranslationText.js.map +0 -1
  232. package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +0 -3
  233. package/dist/schema-definitions/jis/datasources/interfaces/index.js +0 -20
  234. package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +0 -1
  235. package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +0 -19
  236. package/dist/schema-definitions/jis/models/JISInfotextsModel.js +0 -80
  237. package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +0 -1
  238. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.d.ts +0 -12
  239. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js +0 -41
  240. package/dist/schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel.js.map +0 -1
  241. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +0 -10
  242. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js +0 -3
  243. package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.js.map +0 -1
  244. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.d.ts +0 -4
  245. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js +0 -3
  246. package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsRopidGTFSStops.js.map +0 -1
  247. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.d.ts +0 -4
  248. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js +0 -3
  249. package/dist/schema-definitions/jis/models/interfaces/IJISTranslationText.js.map +0 -1
  250. package/dist/schema-definitions/jis/models/interfaces/index.d.ts +0 -3
  251. package/dist/schema-definitions/jis/models/interfaces/index.js +0 -20
  252. package/dist/schema-definitions/jis/models/interfaces/index.js.map +0 -1
  253. package/docs/assets/pid_jis_erd.png +0 -0
  254. /package/dist/output-gateway/public/controllers/{v2 → v1}/interfaces/PublicParamsInterfaces.js +0 -0
  255. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.d.ts +0 -0
  256. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomScopeValidator.js +0 -0
  257. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.d.ts +0 -0
  258. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomStopIdGroupValidator.js +0 -0
  259. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.d.ts +0 -0
  260. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/CustomTypeValidator.js +0 -0
  261. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.d.ts +0 -0
  262. /package/dist/output-gateway/public/routers/{v2 → v1}/helpers/DetailedTripScopeEnum.js +0 -0
@@ -23,7 +23,6 @@ Modul slouží k ukládání a poskytování informací o jízdních řádech a
23
23
  - Kolejové obvody pro metro
24
24
  - Grafana Loki
25
25
  - Request logy z URL proxy pro monitorovací centrum od ROPIDU
26
- - JIS Infotexty
27
26
 
28
27
  #### _ROPID FTP (obecně)_
29
28
 
@@ -215,25 +214,7 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
215
214
  - prod `0 */1 * * * *`
216
215
  - názvy rabbitmq front
217
216
  - vehicle-positions.ropidpresets.collectAndSaveLogs se zprávou `{ "targetMinutes": n }`
218
-
219
- #### _JIS Infotexty_
220
-
221
- - zdroj dat
222
- - baseUrl: module.pid.jis.baseUrl
223
- - infotexts path: module.pid.jis.infotexts.path
224
- - hlavičky infotexts dotazu: module.pid.jis.infotexts.headers
225
- - formát dat
226
- - protokol: http
227
- - datový typ: json
228
- - validační schéma: [JISInfotextsJsonSchema](../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts)
229
- - příklad vstupnich dat: [infotextsDataSourceFixture](../test/integration-engine/jis/fixtures/infotextsDataSourceFixture.ts)
230
- - frekvence stahování
231
- - cron definice:
232
- - cron.vehicle-positions.jis.refreshJISInfotexts
233
- - rabin `*/30 * * * * *`
234
- - prod `*/30 * * * * *`
235
- - název rabbitmq fronty
236
- - vehicle-positions.jis.refreshJISInfotexts
217
+ -
237
218
 
238
219
  ### _Ropid staticka data_
239
220
 
@@ -244,7 +225,7 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
244
225
  - formát dat
245
226
  - protokol: http
246
227
  - datový typ: csv
247
- - validační schéma:
228
+ - validační schéma:
248
229
  - [MetroRailTrack](../src/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.ts)
249
230
  - [DeparturesDirection](../src/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.ts)
250
231
  - příklad vstupnich dat: viz zdroj data
@@ -252,7 +233,6 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
252
233
  - Po nacteni jizdnich radu (fronta: vehicle-positions.ropidgtfs.checkForNewData)
253
234
  - názvy rabbitmq front
254
235
  - vehicle-positions.ropidgtfs.saveStaticData
255
-
256
236
  ### Data nám jsou posílána
257
237
 
258
238
  **Dostupní poskytovatelé**:
@@ -1105,26 +1085,6 @@ Worker má na starost retenci dat tabulek Azure Table Storage
1105
1085
  - data modely
1106
1086
  - žádné
1107
1087
 
1108
- ### _JISWorker_
1109
-
1110
- Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a uložení do databáze
1111
-
1112
- #### _task: RefreshJISInfotextsTask_
1113
-
1114
- - vstupní rabbitmq fronta
1115
- - název: vehicle-positions.jis.refreshJISInfotexts
1116
- - TTL: 1 minuta
1117
- - parametry: žádné
1118
- - závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
1119
- - žádné
1120
- - datové zdroje
1121
- - JIS Infotexty
1122
- - transformace
1123
- - [JISInfotextsTransformation](../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts)
1124
- - data modely
1125
- - JISInfotextsModel `jis_infotexts`
1126
- - JISInfotextsRopidGTFSStopsModel `jis_infotexts_ropidgtfs_stops`
1127
-
1128
1088
  ## Uložení dat
1129
1089
 
1130
1090
  - typ databáze
@@ -1149,15 +1109,12 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1149
1109
  ![pid vp desc diagram](./assets/pid_vp_desc_erd.png)
1150
1110
  - Zastávky RT spojů (pouze MPV)<br/>
1151
1111
  ![pid vp cis diagram](./assets/pid_vp_cis_erd.jpg)
1152
- - JIS infotexty<br/>
1153
- ![pid jis diagram](./assets/pid_jis_erd.png)
1154
1112
 
1155
1113
  - retence dat
1156
1114
  - jízdní řády se generují 1-2x denně na 14 dní dopředu
1157
1115
  - polohová data si uchováváme 24 hodin (30 minut od poslední aktualizace, poté v historických tabulkách)
1158
1116
  - popis vozidel si uchováváme 24 hodin
1159
1117
  - preset logy si uchováváme 8 hodin
1160
- - JIS infotexty si uchováváme do příštího úspěšného znovunačtení (ke kterému by mělo docházet dvakrát za minutu)
1161
1118
 
1162
1119
  ## Input API
1163
1120
 
@@ -1165,8 +1122,8 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1165
1122
 
1166
1123
  - OpenAPI v3 dokumentace
1167
1124
  - zdrojový soubor: [openapi-input.yaml](./openapi-input.yaml)
1168
- - rabin: https://rabin.golemio.cz/pid/input-gateway/docs/openapi/
1169
- - golem: https://api.golemio.cz/pid/input-gateway/docs/openapi/
1125
+ - rabin: https://rabin.golemio.cz/v2/pid/input/docs/openapi/
1126
+ - golem: https://api.golemio.cz/v2/pid/input/docs/openapi/
1170
1127
  - api je neveřejné
1171
1128
  - postman kolekce
1172
1129
  - TBD
@@ -1193,64 +1150,64 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1193
1150
 
1194
1151
  - OpenAPI v3 dokumentace
1195
1152
  - zdrojový soubor: [openapi-output.yaml](./openapi-output.yaml)
1196
- - rabin: https://rabin.golemio.cz/pid/docs/openapi/
1197
- - golem: https://api.golemio.cz/pid/docs/openapi/
1198
- - GTFS-RT a `/v2/public` data jsou veřejná, zbývající endpointy jsou k dispozici všem registrovaným uživatelům
1153
+ - rabin: https://rabin.golemio.cz/v2/pid/docs/openapi/
1154
+ - golem: https://api.golemio.cz/v2/pid/docs/openapi/
1155
+ - real-time data jsou veřejná, zbývající endpointy jsou k dispozici všem registrovaným uživatelům
1199
1156
  - postman kolekce
1200
1157
  - TBD
1201
1158
 
1202
- ### GTFS v2
1159
+ ### GTFS
1203
1160
 
1204
- #### _/v2/gtfs/services_
1161
+ #### _/gtfs/services_
1205
1162
 
1206
1163
  - zdrojové tabulky
1207
1164
  - `ropidgtfs_calendar`
1208
1165
 
1209
- #### _/v2/gtfs/routes_
1166
+ #### _/gtfs/routes_
1210
1167
 
1211
1168
  - zdrojové tabulky
1212
1169
  - `ropidgtfs_routes`
1213
1170
 
1214
- #### _/v2/gtfs/routes/{id}_
1171
+ #### _/gtfs/routes/{id}_
1215
1172
 
1216
1173
  - zdrojové tabulky
1217
1174
  - `ropidgtfs_routes`
1218
1175
 
1219
- #### _/v2/gtfs/trips_
1176
+ #### _/gtfs/trips_
1220
1177
 
1221
1178
  - zdrojové tabulky
1222
1179
  - `ropidgtfs_trips`, `ropidgtfs_stop_times`, `ropidgtfs_calendar`
1223
1180
 
1224
- #### _/v2/gtfs/trips/{id}_
1181
+ #### _/gtfs/trips/{id}_
1225
1182
 
1226
1183
  - zdrojové tabulky
1227
1184
  - `ropidgtfs_trips`, `ropidgtfs_stop_times`, `ropidgtfs_stops`, `ropidgtfs_shapes`, `ropidgtfs_calendar`, `ropidgtfs_routes`
1228
1185
 
1229
- #### _/v2/gtfs/shapes/{id}_
1186
+ #### _/gtfs/shapes/{id}_
1230
1187
 
1231
1188
  - zdrojové tabulky
1232
1189
  - `ropidgtfs_shapes`
1233
1190
 
1234
- #### _/v2/gtfs/stops_
1191
+ #### _/gtfs/stops_
1235
1192
 
1236
1193
  - zdrojové tabulky
1237
1194
  - `ropidgtfs_stops`, `ropidgtfs_cis_stops`
1238
1195
  - dodatečná transformace: Feature collection
1239
1196
 
1240
- #### _/v2/gtfs/stops/{id}_
1197
+ #### _/gtfs/stops/{id}_
1241
1198
 
1242
1199
  - zdrojové tabulky
1243
1200
  - `ropidgtfs_stops`, `ropidgtfs_cis_stops`
1244
1201
  - dodatečná transformace: Feature
1245
1202
 
1246
- #### _/v2/gtfs/stoptimes/{id}_
1203
+ #### _/gtfs/stoptimes/{id}_
1247
1204
 
1248
1205
  - zdrojové tabulky
1249
1206
  - `ropidgtfs_stop_times`, `ropidgtfs_stops`, `ropidgtfs_calendar`, `ropidgtfs_trips`
1250
1207
 
1251
- ### Vehicle Positions v2
1208
+ ### Vehicle Positions
1252
1209
 
1253
- #### _/v2/vehiclepositions_
1210
+ #### _/vehiclepositions_
1254
1211
 
1255
1212
  - zdrojové tabulky
1256
1213
  - `v_vehiclepositions_all_trips_with_last_position` (`vehiclepositions_positions`, `vehiclepositions_trips`)
@@ -1259,7 +1216,7 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1259
1216
  - dodatečná transformace: Feature collection
1260
1217
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1261
1218
 
1262
- #### _/v2/vehiclepositions/{gtfsTripId}_
1219
+ #### _/vehiclepositions/{gtfsTripId}_
1263
1220
 
1264
1221
  - zdrojové tabulky
1265
1222
  - `v_vehiclepositions_all_trips_with_last_position` (`vehiclepositions_positions`, `vehiclepositions_trips`)
@@ -1269,51 +1226,43 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1269
1226
  - dodatečná transformace: Feature
1270
1227
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1271
1228
 
1272
- ### Vehicle Positions GTFS RT v2
1229
+ ### Vehicle Positions GTFS RT
1273
1230
 
1274
- #### _/v2/vehiclepositions/gtfsrt/trip_updates.pb_
1231
+ #### _/vehiclepositions/gtfsrt/trip_updates.pb_
1275
1232
 
1276
1233
  - načtení souboru z Redis cache
1277
1234
  - HGET files:gtfsRt trip_updates.pb
1278
1235
 
1279
- #### _/v2/vehiclepositions/gtfsrt/vehicle_positions.pb_
1236
+ #### _/vehiclepositions/gtfsrt/vehicle_positions.pb_
1280
1237
 
1281
1238
  - načtení souboru z Redis cache
1282
1239
  - HGET files:gtfsRt vehicle_positions.pb
1283
1240
 
1284
- #### _/v2/vehiclepositions/gtfsrt/pid_feed.pb_
1241
+ #### _/vehiclepositions/gtfsrt/pid_feed.pb_
1285
1242
 
1286
1243
  - načtení souboru z Redis cache
1287
1244
  - HGET files:gtfsRt pid_feed.pb
1288
1245
 
1289
- #### _/v2/vehiclepositions/gtfsrt/alerts.pb_
1246
+ #### _/vehiclepositions/gtfsrt/alerts.pb_
1290
1247
 
1291
1248
  - načtení souboru z Redis cache
1292
1249
  - HGET files:gtfsRt alerts.pb
1293
1250
 
1294
- ### PID Departure Boards v2
1251
+ ### PID Departure Boards
1295
1252
 
1296
- #### _/v2/pid/departureboards_
1253
+ #### _/pid/departureboards_
1297
1254
 
1298
1255
  - zdrojové tabulky
1299
- - `ropidgtfs_precomputed_departures`, `ropidgtfs_stops`, `ropidgtfs_cis_stops`, `jis_infotexts`, `jis_infotexts_ropidgtfs_stops`, `ropid_departures_directions`, `vehiclepositions_positions`, `vehiclepositions_trips`
1256
+ - `ropidgtfs_precomputed_departures`, `ropidgtfs_stops`, `ropidgtfs_cis_stops`, `ropidvymi_events`, `ropidvymi_events_stops`, `ropid_departures_directions`, `vehiclepositions_positions`, `vehiclepositions_trips`
1300
1257
 
1301
- #### _/v2/pid/infotexts_
1258
+ #### _/pid/infotexts_
1302
1259
 
1303
1260
  - zdrojové tabulky
1304
1261
  - `ropidvymi_events`, `ropidvymi_events_stops`, `ropidvymi_events_routes`, `ropidgtfs_stops`
1305
1262
 
1306
- ### PID Departure Boards v3
1307
-
1308
- #### _/v3/pid/infotexts_
1309
-
1310
- - načte aktivní infotexty exportované z aplikace VYMI (JIS) Infotexty
1311
- - zdrojové tabulky
1312
- - `jis_infotexts`, `jis_infotexts_ropidgtfs_stops`, `ropidgtfs_stops`
1313
-
1314
- ### Public v2
1263
+ ### Public
1315
1264
 
1316
- #### _/v2/public/gtfs/trips/{gtfsTripId}_
1265
+ #### _/public/gtfs/trips/{gtfsTripId}_
1317
1266
 
1318
1267
  - načte statické informace o GTFS spoji z PSQL, případně jeho oběhové číslo pro současný den (pokud je k dispozici), shapes a zastávky
1319
1268
  - `info`: statické informace o GTFS spoji a jeho oběhové číslo pro současný den (pokud je k dispozici)
@@ -1323,14 +1272,14 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1323
1272
  - cachováno na 4 hodiny pomocí cache-control hlavičky
1324
1273
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1325
1274
 
1326
- #### _/v2/public/vehiclepositions_
1275
+ #### _/public/vehiclepositions_
1327
1276
 
1328
1277
  - načte aktuální polohy vozidel z redisu a vrátí je ve formátu geojson
1329
1278
  - možno filtrovat dle bouding box na straně redisu
1330
1279
  - podle typu vozidla a gtfs route number na klientské straně
1331
1280
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1332
1281
 
1333
- #### _/v2/public/vehiclepositions/{vehicleId}_
1282
+ #### _/public/vehiclepositions/{vehicleId}_
1334
1283
 
1335
1284
  - načte jednu aktuální polohu z redisu
1336
1285
  - výstup možno filtrovat podle query parametru `scopes`
@@ -1340,12 +1289,12 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
1340
1289
  - `vehicle_descriptor`: informace o vozidle (dopravce, dostupnost klimatizace, USB, ...)
1341
1290
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1342
1291
 
1343
- #### _/v2/public/vehiclepositions/{vehicleId}{gtfsTripId}_
1292
+ #### _/public/vehiclepositions/{vehicleId}{gtfsTripId}_
1344
1293
 
1345
1294
  - rozšíření endpointu výše `/public/vehiclepositions/{vehicleId}` o možnost dotázat se na before track (delayed) spoje podle `gtfsTripId`
1346
1295
  - je použit `CompressionByDefaultMiddleware` a odpovědi jsou tak na output gateway komprimovány i pokud klient explicitně nepovolí komprimaci vhodnou hodnotou hlavičky `Accept-Encoding` (lze však komprimaci explicitně zakázat hodnotou `identity`)
1347
1296
 
1348
- #### _/v2/public/departureboards_
1297
+ #### _/public/departureboards_
1349
1298
 
1350
1299
  - načte nacacheované odjezdy z redisu
1351
1300
  - možno filtrovat podle skupin zastávek `stopIds` (podle GTFS číselníku) s možností nastavení pořadí navrácených skupin s odjezdy - příklad `?stopIds[]={"0": ["U717Z5P"]}&stopIds[]={"1": ["U718Z5P", "U719Z5P"]}`
package/docs/index.md ADDED
@@ -0,0 +1,3 @@
1
+ # @golemio/pid
2
+
3
+ This module is intended for use with Golemio services. Refer [here](https://gitlab.com/operator-ict/golemio/code/modules/core/-/blob/development/README.md) for further information on usage, local development and more.