@golemio/pid 4.0.2-dev.1982507419 → 4.0.2-rc.1988899397

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 (186) hide show
  1. package/README.md +1 -1
  2. package/dist/helpers/GtfsStopParser.d.ts +0 -2
  3. package/dist/helpers/GtfsStopParser.js +8 -11
  4. package/dist/helpers/GtfsStopParser.js.map +1 -1
  5. package/dist/input-gateway/jis/controllers/JISEventsController.js +2 -1
  6. package/dist/input-gateway/jis/controllers/JISEventsController.js.map +1 -1
  7. package/dist/input-gateway/jis/controllers/JISInfotextsController.js +2 -1
  8. package/dist/input-gateway/jis/controllers/JISInfotextsController.js.map +1 -1
  9. package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +1 -0
  10. package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
  11. package/dist/integration-engine/jis/ioc/Di.js +0 -10
  12. package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
  13. package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -4
  14. package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -5
  15. package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
  16. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +1 -6
  17. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +2 -50
  18. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
  19. package/dist/integration-engine/jis/workers/JISWorker.js +0 -1
  20. package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
  21. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +2 -1
  22. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +4 -5
  23. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
  24. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.d.ts +1 -5
  25. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js +0 -24
  26. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js.map +1 -1
  27. package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
  28. package/dist/integration-engine/ropid-gtfs/index.d.ts +0 -1
  29. package/dist/integration-engine/ropid-gtfs/index.js +0 -1
  30. package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
  31. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -8
  32. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  33. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -3
  34. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -3
  35. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  36. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js +1 -1
  37. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js.map +1 -1
  38. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +0 -1
  39. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
  40. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +5 -8
  41. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
  42. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +0 -1
  43. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  44. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +1 -2
  45. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
  46. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +0 -1
  47. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -1
  48. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +0 -2
  49. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
  50. package/dist/output-gateway/index.js +0 -1
  51. package/dist/output-gateway/index.js.map +1 -1
  52. package/dist/output-gateway/jis/ioc/Di.js +2 -2
  53. package/dist/output-gateway/jis/ioc/Di.js.map +1 -1
  54. package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +0 -2
  55. package/dist/output-gateway/jis/ioc/OgJisToken.js +0 -2
  56. package/dist/output-gateway/jis/ioc/OgJisToken.js.map +1 -1
  57. package/dist/output-gateway/pid/controllers/v3/V3TransferBoardsController.js.map +1 -1
  58. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +0 -5
  59. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +1 -4
  60. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +1 -7
  61. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
  62. package/dist/output-gateway/pid/index.d.ts +0 -50
  63. package/dist/output-gateway/pid/index.js.map +1 -1
  64. package/dist/output-gateway/pid/ioc/Di.js +6 -62
  65. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  66. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -11
  67. package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -11
  68. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  69. package/dist/output-gateway/pid/routers/index.d.ts +0 -1
  70. package/dist/output-gateway/pid/routers/index.js +1 -3
  71. package/dist/output-gateway/pid/routers/index.js.map +1 -1
  72. package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +2 -7
  73. package/dist/output-gateway/pid/service/facade/InfotextFacade.js +4 -29
  74. package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
  75. package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +3 -12
  76. package/dist/output-gateway/pid/service/facade/StopFacade.js +7 -43
  77. package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
  78. package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +9 -11
  79. package/dist/output-gateway/pid/service/facade/TransferFacade.js +14 -117
  80. package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
  81. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +1 -7
  82. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +0 -12
  83. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
  84. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
  85. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +4 -4
  86. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +1 -1
  87. package/dist/output-gateway/public/ioc/Di.js +1 -1
  88. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  89. package/dist/output-gateway/{shared → public}/service/VPSubscriber.d.ts +2 -4
  90. package/dist/output-gateway/{shared → public}/service/VPSubscriber.js +1 -1
  91. package/dist/output-gateway/public/service/VPSubscriber.js.map +1 -0
  92. package/dist/output-gateway/shared/constants/route-version.d.ts +1 -2
  93. package/dist/output-gateway/shared/constants/route-version.js +0 -1
  94. package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
  95. package/dist/schema-definitions/jis/redis/const.d.ts +0 -1
  96. package/dist/schema-definitions/jis/redis/const.js +1 -2
  97. package/dist/schema-definitions/jis/redis/const.js.map +1 -1
  98. package/dist/schema-definitions/ropid-departures-presets/index.d.ts +0 -1
  99. package/dist/schema-definitions/ropid-departures-presets/index.js +0 -3
  100. package/dist/schema-definitions/ropid-departures-presets/index.js.map +1 -1
  101. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopDto.d.ts +0 -1
  102. package/dist/schema-definitions/ropid-gtfs/redis/const.d.ts +0 -1
  103. package/dist/schema-definitions/ropid-gtfs/redis/const.js +1 -2
  104. package/dist/schema-definitions/ropid-gtfs/redis/const.js.map +1 -1
  105. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +2 -3
  106. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +0 -4
  107. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js.map +1 -1
  108. package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.d.ts +0 -1
  109. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto.d.ts +0 -2
  110. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +0 -1
  111. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +0 -8
  112. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
  113. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +1 -4
  114. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
  115. package/docs/asyncapi.yaml +0 -45
  116. package/docs/cache/types/redis.md +2 -82
  117. package/docs/jis/index.md +5 -15
  118. package/docs/openapi-input.yaml +2 -13
  119. package/docs/openapi-output.yaml +4 -326
  120. package/package.json +2 -2
  121. package/db/example/redis/gtfsStopsCacheMock.json +0 -8
  122. package/db/example/redis/jisCacheMock.json +0 -31
  123. package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +0 -53
  124. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +0 -47
  125. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +0 -47
  126. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +0 -6
  127. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +0 -11
  128. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +0 -1
  129. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +0 -9
  130. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +0 -86
  131. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +0 -1
  132. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +0 -7
  133. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +0 -37
  134. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +0 -1
  135. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +0 -13
  136. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +0 -47
  137. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +0 -1
  138. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.d.ts +0 -18
  139. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js +0 -44
  140. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js.map +0 -1
  141. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.d.ts +0 -12
  142. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js +0 -44
  143. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js.map +0 -1
  144. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.d.ts +0 -12
  145. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +0 -87
  146. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js.map +0 -1
  147. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +0 -17
  148. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +0 -113
  149. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +0 -1
  150. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +0 -17
  151. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +0 -154
  152. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +0 -1
  153. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +0 -14
  154. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +0 -3
  155. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +0 -1
  156. package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +0 -5
  157. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +0 -33
  158. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +0 -1
  159. package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +0 -6
  160. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +0 -61
  161. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +0 -1
  162. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +0 -16
  163. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +0 -67
  164. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +0 -1
  165. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +0 -13
  166. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +0 -31
  167. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +0 -1
  168. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +0 -27
  169. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +0 -78
  170. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +0 -1
  171. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +0 -13
  172. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +0 -83
  173. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +0 -1
  174. package/dist/output-gateway/shared/service/VPSubscriber.js.map +0 -1
  175. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +0 -17
  176. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +0 -3
  177. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +0 -1
  178. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +0 -3
  179. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +0 -59
  180. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +0 -1
  181. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.d.ts +0 -16
  182. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js +0 -3
  183. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js.map +0 -1
  184. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.d.ts +0 -58
  185. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js +0 -69
  186. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js.map +0 -1
@@ -1,44 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OgPidContainer = void 0;
4
- const GtfsStopParser_1 = require("../../../helpers/GtfsStopParser");
5
- const JISInfotextsRedisRepository_1 = require("../../jis/data-access/cache/JISInfotextsRedisRepository");
6
4
  const PublicVehiclePositionsRepository_1 = require("../../public/data-access/redis/PublicVehiclePositionsRepository");
7
5
  const CisStopGroupRepository_1 = require("../../ropid-gtfs/data-access/CisStopGroupRepository");
8
6
  const RunTripsRedisRepository_1 = require("../../ropid-gtfs/data-access/redis/RunTripsRedisRepository");
9
7
  const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
10
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
11
- const V3DeparturesPresetController_1 = require("../controllers/v3/V3DeparturesPresetController");
12
8
  const V3InfotextsController_1 = require("../controllers/v3/V3InfotextsController");
13
9
  const V3TransferBoardsController_1 = require("../controllers/v3/V3TransferBoardsController");
14
- const V4TransferBoardsController_1 = require("../controllers/v4/V4TransferBoardsController");
15
10
  const data_access_1 = require("../data-access");
16
11
  const JISInfotextRepository_1 = require("../data-access/JISInfotextRepository");
17
12
  const JISInfotextRopidGTFSStopsRepository_1 = require("../data-access/JISInfotextRopidGTFSStopsRepository");
18
- const RopidDeparturesPresetRepository_1 = require("../data-access/RopidDeparturesPresetRepository");
19
- const RopidDeparturesPresetsRopidGTFSStopsRepository_1 = require("../data-access/RopidDeparturesPresetsRopidGTFSStopsRepository");
20
13
  const JISInfotextStopSuppressionFilter_1 = require("../helpers/JISInfotextStopSuppressionFilter");
21
14
  const InfotextFacade_1 = require("../service/facade/InfotextFacade");
22
- const RopidDeparturesPresetFacade_1 = require("../service/facade/RopidDeparturesPresetFacade");
23
15
  const StopFacade_1 = require("../service/facade/StopFacade");
24
16
  const TransferFacade_1 = require("../service/facade/TransferFacade");
25
17
  const JISInfotextDepartureTransformation_1 = require("../service/transformations/JISInfotextDepartureTransformation");
26
18
  const JISInfotextOverviewTransformation_1 = require("../service/transformations/JISInfotextOverviewTransformation");
27
19
  const JISInfotextTransferTransformation_1 = require("../service/transformations/JISInfotextTransferTransformation");
28
- const RopidDeparturesPresetTransformation_1 = require("../service/transformations/RopidDeparturesPresetTransformation");
29
20
  const TransferDepartureTransformation_1 = require("../service/transformations/TransferDepartureTransformation");
30
21
  const OgPidToken_1 = require("./OgPidToken");
31
- const GtfsStopsRedisRepository_1 = require("../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository");
32
- const VPSubscriber_1 = require("../../shared/service/VPSubscriber");
33
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
34
- const const_1 = require("../../../schema-definitions/ropid-gtfs/redis/const");
35
- const const_2 = require("../../../schema-definitions/jis/redis/const");
36
- const PublicGtfsDepartureRepository_1 = require("../../public/data-access/redis/PublicGtfsDepartureRepository");
37
- const VehicleDescriptorCachedRepository_1 = require("../../public/data-access/VehicleDescriptorCachedRepository");
38
- const PublicStopTimeRepository_1 = require("../../public/data-access/redis/PublicStopTimeRepository");
39
- const const_3 = require("../../../schema-definitions/vehicle-positions/redis/const");
40
- const JISInfotextCacheTransferTransformation_1 = require("../service/transformations/JISInfotextCacheTransferTransformation");
41
- const TransferDepartureCacheTransformation_1 = require("../service/transformations/TransferDepartureCacheTransformation");
22
+ const RopidDeparturesPresetFacade_1 = require("../service/facade/RopidDeparturesPresetFacade");
23
+ const V3DeparturesPresetController_1 = require("../controllers/v3/V3DeparturesPresetController");
24
+ const RopidDeparturesPresetRepository_1 = require("../data-access/RopidDeparturesPresetRepository");
25
+ const RopidDeparturesPresetsRopidGTFSStopsRepository_1 = require("../data-access/RopidDeparturesPresetsRopidGTFSStopsRepository");
26
+ const RopidDeparturesPresetTransformation_1 = require("../service/transformations/RopidDeparturesPresetTransformation");
27
+ const GtfsStopParser_1 = require("../../../helpers/GtfsStopParser");
42
28
  const ogPidContainer = ioc_1.OutputGatewayContainer.createChildContainer();
43
29
  exports.OgPidContainer = ogPidContainer;
44
30
  //#region Repositories
@@ -50,11 +36,6 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RunTripsRedisRepository
50
36
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository, PublicVehiclePositionsRepository_1.PublicVehiclePositionsRepository);
51
37
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetRepository, RopidDeparturesPresetRepository_1.RopidDeparturesPresetRepository);
52
38
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetsRopidGTFSStopsRepository, RopidDeparturesPresetsRopidGTFSStopsRepository_1.RopidDeparturesPresetsRopidGTFSStopsRepository);
53
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository, GtfsStopsRedisRepository_1.GtfsStopsRedisRepository);
54
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository, JISInfotextsRedisRepository_1.JISInfotextsRedisRepository);
55
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicGtfsDepartureRepository, PublicGtfsDepartureRepository_1.PublicGtfsDepartureRepository);
56
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.VehicleDescriptorCachedRepository, VehicleDescriptorCachedRepository_1.VehicleDescriptorCachedRepository);
57
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.PublicStopTimeRepository, PublicStopTimeRepository_1.PublicStopTimeRepository);
58
39
  //#endregion
59
40
  //#region Transformations
60
41
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextDepartureTransformation, JISInfotextDepartureTransformation_1.JISInfotextDepartureTransformation);
@@ -62,8 +43,6 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextTransferTran
62
43
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextOverviewTransformation, JISInfotextOverviewTransformation_1.JISInfotextOverviewTransformation);
63
44
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureTransformation, TransferDepartureTransformation_1.TransferDepartureTransformation);
64
45
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetTransformation, RopidDeparturesPresetTransformation_1.RopidDeparturesPresetTransformation);
65
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextCacheTransferTransformation, JISInfotextCacheTransferTransformation_1.JISInfotextCacheTransferTransformation);
66
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.TransferDepartureCacheTransformation, TransferDepartureCacheTransformation_1.TransferDepartureCacheTransformation);
67
46
  //#endregion
68
47
  //#region Facade
69
48
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.StopFacade, StopFacade_1.StopFacade);
@@ -75,43 +54,8 @@ ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.RopidDeparturesPresetFa
75
54
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3TransferBoardsController, V3TransferBoardsController_1.V3TransferBoardsController);
76
55
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3InfotextsController, V3InfotextsController_1.V3InfotextsController);
77
56
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V3RopidDeparturesPresetController, V3DeparturesPresetController_1.V3RopidDeparturesPresetController);
78
- ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.V4TransferBoardsController, V4TransferBoardsController_1.V4TransferBoardsController);
79
57
  //#endregion
80
58
  //#region Helpers
81
59
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.JISInfotextStopSuppressionFilter, JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter);
82
60
  ogPidContainer.registerSingleton(OgPidToken_1.OgPidToken.GtfsStopParser, GtfsStopParser_1.GtfsStopParser);
83
- //#endregion
84
- ogPidContainer.register(OgPidToken_1.OgPidToken.GtfsStopsSubscriber, {
85
- useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
86
- const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
87
- const logger = c.resolve(CoreToken_1.CoreToken.Logger);
88
- return new VPSubscriber_1.VPSubscriber({
89
- channelName: const_1.GTFS_STOPS_NAMESPACE_PREFIX,
90
- redisConnectionString: config.getValue("env.REDIS_CONN"),
91
- logger: logger,
92
- }, c.resolve(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository));
93
- }),
94
- });
95
- ogPidContainer.register(OgPidToken_1.OgPidToken.JisInotextsSubscriber, {
96
- useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
97
- const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
98
- const logger = c.resolve(CoreToken_1.CoreToken.Logger);
99
- return new VPSubscriber_1.VPSubscriber({
100
- channelName: const_2.JIS_NAMESPACE_PREFIX,
101
- redisConnectionString: config.getValue("env.REDIS_CONN"),
102
- logger: logger,
103
- }, c.resolve(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository));
104
- }),
105
- });
106
- ogPidContainer.register(OgPidToken_1.OgPidToken.VPSubscriber, {
107
- useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
108
- const config = c.resolve(CoreToken_1.CoreToken.SimpleConfig);
109
- const logger = c.resolve(CoreToken_1.CoreToken.Logger);
110
- return new VPSubscriber_1.VPSubscriber({
111
- channelName: const_3.PUBLIC_CACHE_NAMESPACE_PREFIX,
112
- redisConnectionString: config.getValue("env.REDIS_CONN"),
113
- logger: logger,
114
- }, c.resolve(OgPidToken_1.OgPidToken.PublicVehiclePositionsRepository));
115
- }),
116
- });
117
61
  //# sourceMappingURL=Di.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AACzD,yGAAoG;AACpG,sHAAiH;AACjH,gGAA2F;AAC3F,wGAAmG;AACnG,+DAA+E;AAC/E,iEAAiG;AACjG,iGAAmG;AACnG,mFAAgF;AAChF,6FAA0F;AAC1F,6FAA0F;AAC1F,gDAAsD;AACtD,gFAA6E;AAC7E,4GAAyG;AACzG,oGAAiG;AACjG,kIAA+H;AAC/H,kGAA+F;AAC/F,qEAAkE;AAClE,+FAA4F;AAC5F,6DAA0D;AAC1D,qEAAkE;AAClE,sHAAmH;AACnH,oHAAiH;AACjH,oHAAiH;AACjH,wHAAqH;AACrH,gHAA6G;AAC7G,6CAA0C;AAC1C,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U,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC;AAC5E,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC;AAC5E,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,2BAA2B,EAAE,yDAA2B,CAAC,CAAC;AACtG,YAAY;AAEZ,qBAAqB;AACrB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACpG,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,qBAAqB,EAAE,6CAAqB,CAAC,CAAC;AAC1F,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,iCAAiC,EAAE,gEAAiC,CAAC,CAAC;AAClH,YAAY;AAEZ,iBAAiB;AACjB,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,gCAAgC,EAAE,mEAAgC,CAAC,CAAC;AAChH,cAAc,CAAC,iBAAiB,CAAC,uBAAU,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC"}
@@ -2,23 +2,16 @@ export declare const OgPidToken: {
2
2
  CisStopGroupRepository: symbol;
3
3
  JISInfotextRopidGTFSStopsRepository: symbol;
4
4
  JISInfotextRepository: symbol;
5
- JISInfotextsRedisRepository: symbol;
6
5
  DeparturesRepository: symbol;
7
6
  RunTripsRedisRepository: symbol;
8
7
  PublicVehiclePositionsRepository: symbol;
9
8
  RopidDeparturesPresetRepository: symbol;
10
9
  RopidDeparturesPresetsRopidGTFSStopsRepository: symbol;
11
- GtfsStopsRedisRepository: symbol;
12
- PublicGtfsDepartureRepository: symbol;
13
- VehicleDescriptorCachedRepository: symbol;
14
- PublicStopTimeRepository: symbol;
15
10
  JISInfotextDepartureTransformation: symbol;
16
11
  JISInfotextTransferTransformation: symbol;
17
12
  JISInfotextOverviewTransformation: symbol;
18
13
  TransferDepartureTransformation: symbol;
19
14
  RopidDeparturesPresetTransformation: symbol;
20
- JISInfotextCacheTransferTransformation: symbol;
21
- TransferDepartureCacheTransformation: symbol;
22
15
  StopFacade: symbol;
23
16
  InfotextFacade: symbol;
24
17
  TransferFacade: symbol;
@@ -26,10 +19,6 @@ export declare const OgPidToken: {
26
19
  V3TransferBoardsController: symbol;
27
20
  V3InfotextsController: symbol;
28
21
  V3RopidDeparturesPresetController: symbol;
29
- V4TransferBoardsController: symbol;
30
22
  JISInfotextStopSuppressionFilter: symbol;
31
23
  GtfsStopParser: symbol;
32
- GtfsStopsSubscriber: symbol;
33
- JisInotextsSubscriber: symbol;
34
- VPSubscriber: symbol;
35
24
  };
@@ -6,16 +6,11 @@ exports.OgPidToken = {
6
6
  CisStopGroupRepository: Symbol("CisStopGroupRepository"),
7
7
  JISInfotextRopidGTFSStopsRepository: Symbol("JISInfotextRopidGTFSStopsRepository"),
8
8
  JISInfotextRepository: Symbol("JISInfotextRepository"),
9
- JISInfotextsRedisRepository: Symbol("JISInfotextsRedisRepository"),
10
9
  DeparturesRepository: Symbol("DeparturesRepository"),
11
10
  RunTripsRedisRepository: Symbol("RunTripsRedisRepository"),
12
11
  PublicVehiclePositionsRepository: Symbol("PublicVehiclePositionsRepository"),
13
12
  RopidDeparturesPresetRepository: Symbol("RopidDeparturesPresetRepository"),
14
13
  RopidDeparturesPresetsRopidGTFSStopsRepository: Symbol("RopidDeparturesPresetsRopidGTFSStopsRepository"),
15
- GtfsStopsRedisRepository: Symbol("GtfsStopsRedisRepository"),
16
- PublicGtfsDepartureRepository: Symbol("PublicGtfsDepartureRepository"),
17
- VehicleDescriptorCachedRepository: Symbol("VehicleDescriptorCachedRepository"),
18
- PublicStopTimeRepository: Symbol("PublicStopTimeRepository"),
19
14
  //#endregion
20
15
  //#region Transformations
21
16
  JISInfotextDepartureTransformation: Symbol("JISInfotextDepartureTransformation"),
@@ -23,8 +18,6 @@ exports.OgPidToken = {
23
18
  JISInfotextOverviewTransformation: Symbol("JISInfotextOverviewTransformation"),
24
19
  TransferDepartureTransformation: Symbol("TransferDepartureTransformation"),
25
20
  RopidDeparturesPresetTransformation: Symbol("RopidDeparturesPresetTransformation"),
26
- JISInfotextCacheTransferTransformation: Symbol("JISInfotextCacheTransferTransformation"),
27
- TransferDepartureCacheTransformation: Symbol("TransferDepartureCacheTransformation"),
28
21
  //#endregion
29
22
  //#region Facade
30
23
  StopFacade: Symbol("StopFacade"),
@@ -36,14 +29,10 @@ exports.OgPidToken = {
36
29
  V3TransferBoardsController: Symbol("V3TransferBoardsController"),
37
30
  V3InfotextsController: Symbol("V3InfotextsController"),
38
31
  V3RopidDeparturesPresetController: Symbol("V3RopidDeparturesPresetController"),
39
- V4TransferBoardsController: Symbol("V4TransferBoardsController"),
40
32
  //#endregion
41
33
  //#region Helpers
42
34
  JISInfotextStopSuppressionFilter: Symbol("JISInfotextStopSuppressionFilter"),
43
35
  GtfsStopParser: Symbol("GtfsStopParser"),
44
- GtfsStopsSubscriber: Symbol("GtfsStopsSubscriber"),
45
- JisInotextsSubscriber: Symbol("JisInotextsSubscriber"),
46
- VPSubscriber: Symbol("VPSubscriber"),
47
36
  //#endregion
48
37
  };
49
38
  //# sourceMappingURL=OgPidToken.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OgPidToken.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/ioc/OgPidToken.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,sBAAsB;IACtB,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,mCAAmC,EAAE,MAAM,CAAC,qCAAqC,CAAC;IAClF,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,+BAA+B,EAAE,MAAM,CAAC,iCAAiC,CAAC;I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AY;IAEZ,iBAAiB;IACjB,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACxC,YAAY;CACf,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export { v2PidRouter } from "./v2/V2PIDRouter";
2
2
  export { v3PidRouter } from "./v3/V3PIDRouter";
3
- export { v4PidRouter } from "./v4/V4PIDRouter";
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v4PidRouter = exports.v3PidRouter = exports.v2PidRouter = void 0;
3
+ exports.v3PidRouter = exports.v2PidRouter = void 0;
4
4
  var V2PIDRouter_1 = require("./v2/V2PIDRouter");
5
5
  Object.defineProperty(exports, "v2PidRouter", { enumerable: true, get: function () { return V2PIDRouter_1.v2PidRouter; } });
6
6
  var V3PIDRouter_1 = require("./v3/V3PIDRouter");
7
7
  Object.defineProperty(exports, "v3PidRouter", { enumerable: true, get: function () { return V3PIDRouter_1.v3PidRouter; } });
8
- var V4PIDRouter_1 = require("./v4/V4PIDRouter");
9
- Object.defineProperty(exports, "v4PidRouter", { enumerable: true, get: function () { return V4PIDRouter_1.v4PidRouter; } });
10
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/routers/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/routers/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,0GAAA,WAAW,OAAA;AACpB,gDAA+C;AAAtC,0GAAA,WAAW,OAAA"}
@@ -1,24 +1,19 @@
1
- import { JISInfotextsRedisRepository } from "../../../jis/data-access/cache/JISInfotextsRedisRepository";
2
1
  import { JISInfotextRepository } from "../../data-access/JISInfotextRepository";
3
- import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto, IV4InfotextTransferOutputDto } from "../../domain/InfotextInterfaces";
2
+ import { IInfotextDepartureOutputDto, IInfotextOverviewOutputDto, IInfotextTransferOutputDto } from "../../domain/InfotextInterfaces";
4
3
  import { JISInfotextStopSuppressionFilter } from "../../helpers/JISInfotextStopSuppressionFilter";
5
4
  import { IGetDeparturesOptions } from "../../models/interfaces/IGetDeparturesOptions";
6
5
  import { Moment } from "@golemio/core/dist/shared/moment-timezone";
7
6
  import { JISInfotextDepartureTransformation } from "../transformations/JISInfotextDepartureTransformation";
8
7
  import { JISInfotextOverviewTransformation } from "../transformations/JISInfotextOverviewTransformation";
9
8
  import { JISInfotextTransferTransformation } from "../transformations/JISInfotextTransferTransformation";
10
- import { JISInfotextCacheTransferTransformation } from "../transformations/JISInfotextCacheTransferTransformation";
11
9
  export declare class InfotextFacade {
12
10
  private infotextRepository;
13
11
  private infotextDepartureTransformation;
14
12
  private infotextTransferTransformation;
15
13
  private infotextOverviewTransformation;
16
14
  private infotextStopFilter;
17
- private infotextsRedisRepository;
18
- private cacheTransferTransformation;
19
- constructor(infotextRepository: JISInfotextRepository, infotextDepartureTransformation: JISInfotextDepartureTransformation, infotextTransferTransformation: JISInfotextTransferTransformation, infotextOverviewTransformation: JISInfotextOverviewTransformation, infotextStopFilter: JISInfotextStopSuppressionFilter, infotextsRedisRepository: JISInfotextsRedisRepository, cacheTransferTransformation: JISInfotextCacheTransferTransformation);
15
+ constructor(infotextRepository: JISInfotextRepository, infotextDepartureTransformation: JISInfotextDepartureTransformation, infotextTransferTransformation: JISInfotextTransferTransformation, infotextOverviewTransformation: JISInfotextOverviewTransformation, infotextStopFilter: JISInfotextStopSuppressionFilter);
20
16
  getInfotextsForDepartureBoards(stopIds: string[], currentMoment: Moment, options: IGetDeparturesOptions): Promise<IInfotextDepartureOutputDto[]>;
21
17
  getInfotextsForTransferBoards(stopIds: string[], currentMoment: Moment, timeFrom: Moment | null): Promise<IInfotextTransferOutputDto[]>;
22
18
  getInfotextsForOverview(): Promise<IInfotextOverviewOutputDto[]>;
23
- getInfotextsCache(stopIds: string[], currentMoment: Date, timeFrom: Date | null): Promise<IV4InfotextTransferOutputDto[]>;
24
19
  }
@@ -13,7 +13,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.InfotextFacade = void 0;
16
- const JISInfotextsRedisRepository_1 = require("../../../jis/data-access/cache/JISInfotextsRedisRepository");
17
16
  const JISInfotextRepository_1 = require("../../data-access/JISInfotextRepository");
18
17
  const JISInfotextStopSuppressionFilter_1 = require("../../helpers/JISInfotextStopSuppressionFilter");
19
18
  const OgPidToken_1 = require("../../ioc/OgPidToken");
@@ -22,16 +21,13 @@ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
22
21
  const JISInfotextDepartureTransformation_1 = require("../transformations/JISInfotextDepartureTransformation");
23
22
  const JISInfotextOverviewTransformation_1 = require("../transformations/JISInfotextOverviewTransformation");
24
23
  const JISInfotextTransferTransformation_1 = require("../transformations/JISInfotextTransferTransformation");
25
- const JISInfotextCacheTransferTransformation_1 = require("../transformations/JISInfotextCacheTransferTransformation");
26
24
  let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
27
- constructor(infotextRepository, infotextDepartureTransformation, infotextTransferTransformation, infotextOverviewTransformation, infotextStopFilter, infotextsRedisRepository, cacheTransferTransformation) {
25
+ constructor(infotextRepository, infotextDepartureTransformation, infotextTransferTransformation, infotextOverviewTransformation, infotextStopFilter) {
28
26
  this.infotextRepository = infotextRepository;
29
27
  this.infotextDepartureTransformation = infotextDepartureTransformation;
30
28
  this.infotextTransferTransformation = infotextTransferTransformation;
31
29
  this.infotextOverviewTransformation = infotextOverviewTransformation;
32
30
  this.infotextStopFilter = infotextStopFilter;
33
- this.infotextsRedisRepository = infotextsRedisRepository;
34
- this.cacheTransferTransformation = cacheTransferTransformation;
35
31
  }
36
32
  async getInfotextsForDepartureBoards(stopIds, currentMoment, options) {
37
33
  try {
@@ -73,8 +69,9 @@ let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
73
69
  return this.infotextTransferTransformation.transformArray(filteredInfotexts);
74
70
  }
75
71
  catch (error) {
76
- if (error instanceof golemio_errors_1.AbstractGolemioError)
72
+ if (error instanceof golemio_errors_1.AbstractGolemioError) {
77
73
  throw error;
74
+ }
78
75
  throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for transfer boards", this.constructor.name, error, 500);
79
76
  }
80
77
  }
@@ -97,24 +94,6 @@ let InfotextFacade = exports.InfotextFacade = class InfotextFacade {
97
94
  throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for overview", this.constructor.name, error, 500);
98
95
  }
99
96
  }
100
- async getInfotextsCache(stopIds, currentMoment, timeFrom) {
101
- try {
102
- const infotexts = await this.infotextsRedisRepository.getActiveStopsInfotexts(stopIds, timeFrom ?? currentMoment);
103
- if (infotexts.length === 0) {
104
- return [];
105
- }
106
- const filteredInfotexts = this.infotextStopFilter.filterBySeverityLevel(infotexts);
107
- if (filteredInfotexts.length === 0) {
108
- return [];
109
- }
110
- return this.cacheTransferTransformation.transformArray(filteredInfotexts);
111
- }
112
- catch (error) {
113
- if (error instanceof golemio_errors_1.AbstractGolemioError)
114
- throw error;
115
- throw new golemio_errors_1.GeneralError("Failed to retrieve infotexts for V4 transfer boards", this.constructor.name, error, 500);
116
- }
117
- }
118
97
  };
119
98
  exports.InfotextFacade = InfotextFacade = __decorate([
120
99
  (0, tsyringe_1.injectable)(),
@@ -123,14 +102,10 @@ exports.InfotextFacade = InfotextFacade = __decorate([
123
102
  __param(2, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextTransferTransformation)),
124
103
  __param(3, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextOverviewTransformation)),
125
104
  __param(4, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextStopSuppressionFilter)),
126
- __param(5, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextsRedisRepository)),
127
- __param(6, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.JISInfotextCacheTransferTransformation)),
128
105
  __metadata("design:paramtypes", [JISInfotextRepository_1.JISInfotextRepository,
129
106
  JISInfotextDepartureTransformation_1.JISInfotextDepartureTransformation,
130
107
  JISInfotextTransferTransformation_1.JISInfotextTransferTransformation,
131
108
  JISInfotextOverviewTransformation_1.JISInfotextOverviewTransformation,
132
- JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter,
133
- JISInfotextsRedisRepository_1.JISInfotextsRedisRepository,
134
- JISInfotextCacheTransferTransformation_1.JISInfotextCacheTransferTransformation])
109
+ JISInfotextStopSuppressionFilter_1.JISInfotextStopSuppressionFilter])
135
110
  ], InfotextFacade);
136
111
  //# sourceMappingURL=InfotextFacade.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InfotextFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/InfotextFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4GAAoG;AACpG,mFAAkF;AAOlF,qGAAoG;AACpG,qDAAoD;AAEpD,6EAA8F;AAE9F,iEAAwE;AACxE,8GAA2G;AAC3G,4GAAyG;AACzG,4GAAyG;AACzG,sHAAmH;AAG5G,IAAM,cAAc,4BAApB,MAAM,cAAc;IACvB,YACsD,kBAAyC,EAEnF,+BAAmE,EAEnE,8BAAiE,EAEjE,8BAAiE,EACZ,kBAAoD,EACzD,wBAAqD,EAErG,2BAAmE;QAVzB,uBAAkB,GAAlB,kBAAkB,CAAuB;QAEnF,oCAA+B,GAA/B,+BAA+B,CAAoC;QAEnE,mCAA8B,GAA9B,8BAA8B,CAAmC;QAEjE,mCAA8B,GAA9B,8BAA8B,CAAmC;QACZ,uBAA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D,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,2BAA2B,CAAC,CAAA;IAC9C,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,sCAAsC,CAAC,CAAA;qCATY,6CAAqB;QAElD,uEAAkC;QAEnC,qEAAiC;QAEjC,qEAAiC;QACQ,mEAAgC;QAC/B,yDAA2B;QAExE,+EAAsC;GAZtE,cAAc,CA8H1B"}
1
+ {"version":3,"file":"InfotextFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/InfotextFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mFAAkF;AAMlF,qGAAoG;AACpG,qDAAoD;AAEpD,6EAA8F;AAE9F,iEAAwE;AACxE,8GAA2G;AAC3G,4GAAyG;AACzG,4GAAyG;AAGlG,IAAM,cAAc,4BAApB,MAAM,cAAc;IACvB,YACsD,kBAAyC,EAEnF,+BAAmE,EAEnE,8BAAiE,EAEjE,8BAAiE,EACZ,kBAAoD;QAP/D,uBAAkB,GAAlB,kBAAkB,CAAuB;QAEnF,oCAA+B,GAA/B,+BAA+B,CAAoC;QAEnE,mCAA8B,GAA9B,8BAA8B,CAAmC;QAEjE,mCAA8B,GAA9B,8BAA8B,CAAmC;QACZ,uBAAkB,GAAlB,kBAAkB,CAAkC;IAClH,CAAC;IAEG,KAAK,CAAC,8BAA8B,CACvC,OAAiB,EACjB,aAAqB,EACrB,OAA8B;QAE9B,IAAI;YACA,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CACpE,OAAO,EACP,CAAC,OAAO,CAAC,QAAQ,IAAI,aAAa,CAAC,CAAC,MAAM,EAAE,CAC/C,CAAC;YAEF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBACxB,OAAO,EAAE,CAAC;aACb;YAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;YACnF,IAAI,iBAAiB,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QAElD,uEAAkC;QAEnC,qEAAiC;QAEjC,qEAAiC;QACQ,mEAAgC;GAT5G,cAAc,CAuG1B"}
@@ -1,18 +1,9 @@
1
1
  import { CisStopGroupRepository } from "../../../ropid-gtfs/data-access/CisStopGroupRepository";
2
- import { GtfsStopsRedisRepository } from "../../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository";
3
2
  export declare class StopFacade {
4
3
  private cisStopGroupsRepository;
5
- private gtfsStopsRedisRepository;
6
- private readonly gtfsStopParser;
7
- constructor(cisStopGroupsRepository: CisStopGroupRepository, gtfsStopsRedisRepository: GtfsStopsRedisRepository);
8
- getStopIdsForTransferBoards(cisId: string): Promise<string[]>;
9
- /**
10
- * Retrieve ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
11
- */
12
- getStopIdsForTransferBoardsByCisId(cisId: string): Promise<string[]>;
4
+ constructor(cisStopGroupsRepository: CisStopGroupRepository);
13
5
  /**
14
- * Retrieve ASW node ID for given ASW stop ID and then returns GTFS stop IDs for this ASW node
6
+ * Retrieves ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
15
7
  */
16
- getStopIdsForTransferBoardsByAswId(aswId: string): Promise<string[]>;
17
- private getStopIdsForTransferBoardsByAswNode;
8
+ getStopIdsForTransferBoards(cisId: string): Promise<string[]>;
18
9
  }
@@ -13,19 +13,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.StopFacade = void 0;
16
- const GtfsStopParser_1 = require("../../../../helpers/GtfsStopParser");
17
16
  const OgPidToken_1 = require("../../ioc/OgPidToken");
18
- const models_1 = require("../../../ropid-gtfs/models");
19
17
  const CisStopGroupRepository_1 = require("../../../ropid-gtfs/data-access/CisStopGroupRepository");
20
- const GtfsStopsRedisRepository_1 = require("../../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository");
21
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
18
+ const models_1 = require("../../../ropid-gtfs/models");
22
19
  const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
20
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
23
21
  let StopFacade = exports.StopFacade = class StopFacade {
24
- constructor(cisStopGroupsRepository, gtfsStopsRedisRepository) {
22
+ constructor(cisStopGroupsRepository) {
25
23
  this.cisStopGroupsRepository = cisStopGroupsRepository;
26
- this.gtfsStopsRedisRepository = gtfsStopsRedisRepository;
27
- this.gtfsStopParser = new GtfsStopParser_1.GtfsStopParser();
28
24
  }
25
+ /**
26
+ * Retrieves ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
27
+ */
29
28
  async getStopIdsForTransferBoards(cisId) {
30
29
  //#region CIS stop node
31
30
  let aswNode;
@@ -57,45 +56,10 @@ let StopFacade = exports.StopFacade = class StopFacade {
57
56
  //#endregion
58
57
  return stopIds;
59
58
  }
60
- /**
61
- * Retrieve ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
62
- */
63
- async getStopIdsForTransferBoardsByCisId(cisId) {
64
- try {
65
- const aswNodeId = await this.gtfsStopsRedisRepository.getAswNodeIdFromCisId(cisId);
66
- if (aswNodeId === null) {
67
- return [];
68
- }
69
- return await this.getStopIdsForTransferBoardsByAswNode(aswNodeId);
70
- }
71
- catch (error) {
72
- if (error instanceof golemio_errors_1.AbstractGolemioError)
73
- throw error;
74
- throw new golemio_errors_1.GeneralError("Failed to retrieve CIS stop node", this.constructor.name, error, 500);
75
- }
76
- }
77
- /**
78
- * Retrieve ASW node ID for given ASW stop ID and then returns GTFS stop IDs for this ASW node
79
- */
80
- async getStopIdsForTransferBoardsByAswId(aswId) {
81
- return await this.getStopIdsForTransferBoardsByAswNode(this.gtfsStopParser.getAswNodeFromId(aswId));
82
- }
83
- async getStopIdsForTransferBoardsByAswNode(aswNodeId) {
84
- try {
85
- return await this.gtfsStopsRedisRepository.getGtfsStopIdsByAswNode(aswNodeId);
86
- }
87
- catch (error) {
88
- if (error instanceof golemio_errors_1.AbstractGolemioError)
89
- throw error;
90
- throw new golemio_errors_1.GeneralError("Failed to retrieve GTFS stops", this.constructor.name, error, 500);
91
- }
92
- }
93
59
  };
94
60
  exports.StopFacade = StopFacade = __decorate([
95
61
  (0, tsyringe_1.injectable)(),
96
62
  __param(0, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.CisStopGroupRepository)),
97
- __param(1, (0, tsyringe_1.inject)(OgPidToken_1.OgPidToken.GtfsStopsRedisRepository)),
98
- __metadata("design:paramtypes", [CisStopGroupRepository_1.CisStopGroupRepository,
99
- GtfsStopsRedisRepository_1.GtfsStopsRedisRepository])
63
+ __metadata("design:paramtypes", [CisStopGroupRepository_1.CisStopGroupRepository])
100
64
  ], StopFacade);
101
65
  //# sourceMappingURL=StopFacade.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/StopFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAAyD;AACzD,qDAAoD;AACpD,uDAA+C;AAC/C,mGAA2F;AAC3F,6GAAqG;AACrG,iEAAwE;AACxE,6EAA8F;AAGvF,IAAM,UAAU,wBAAhB,MAAM,UAAU;IAGnB,YAC+C,uBAAuD,EACrD,wBAA0D;QADpD,4BAAuB,GAAvB,uBAAuB,CAAwB;QAC7C,6BAAwB,GAAxB,wBAAwB,CAA0B;QAJ1F,mBAAc,GAAG,IAAI,+BAAc,EAAE,CAAC;IAKpD,CAAC;IAEG,KAAK,CAAC,2BAA2B,CAAC,KAAa;QAClD,uBAAuB;QACvB,IAAI,OAAe,CAAC;QACpB,IAAI;YACA,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7E,IAAI,WAAW,KAAK,IAAI,EAAE;gBACtB,OAAO,EAAE,CAAC;aACb;YAED,OAAO,GAAG,WAAW,CAAC;SACzB;QAAC,OAAO,KA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B,CAAC,KAAK,CAAC,CAAC,CAAC;IACxG,CAAC;IAEO,KAAK,CAAC,oCAAoC,CAAC,SAAiB;QAChE,IAAI;YACA,OAAO,MAAM,IAAI,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;SACjF;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,qCAAoB;gBAAE,MAAM,KAAK,CAAC;YACvD,MAAM,IAAI,6BAAY,CAAC,+BAA+B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;SAC9F;IACL,CAAC;CACJ,CAAA;qBA1EY,UAAU;IADtB,IAAA,qBAAU,GAAE;IAKJ,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,sBAAsB,CAAC,CAAA;IACzC,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,wBAAwB,CAAC,CAAA;qCADgC,+CAAsB;QACnB,mDAAwB;GALlG,UAAU,CA0EtB"}
1
+ {"version":3,"file":"StopFacade.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/facade/StopFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAoD;AACpD,mGAA2F;AAC3F,uDAA+C;AAC/C,6EAA8F;AAC9F,iEAAwE;AAGjE,IAAM,UAAU,wBAAhB,MAAM,UAAU;IACnB,YAA+D,uBAA+C;QAA/C,4BAAuB,GAAvB,uBAAuB,CAAwB;IAAG,CAAC;IAElH;;OAEG;IACI,KAAK,CAAC,2BAA2B,CAAC,KAAa;QAClD,uBAAuB;QACvB,IAAI,OAAe,CAAC;QACpB,IAAI;YACA,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7E,IAAI,WAAW,KAAK,IAAI,EAAE;gBACtB,OAAO,EAAE,CAAC;aACb;YAED,OAAO,GAAG,WAAW,CAAC;SACzB;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,qCAAoB,EAAE;gBACvC,MAAM,KAAK,CAAC;aACf;YAED,MAAM,IAAI,6BAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;SACjG;QACD,YAAY;QAEZ,uBAAuB;QACvB,IAAI,OAAO,GAAa,EAAE,CAAC;QAC3B,IAAI;YACA,OAAO,GAAG,MAAM,eAAM,CAAC,aAAa,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;SACzE;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,qCAAoB,EAAE;gBACvC,MAAM,KAAK,CAAC;aACf;YAED,MAAM,IAAI,6BAAY,CAAC,+BAA+B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;SAC9F;QACD,YAAY;QAEZ,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAA;qBAxCY,UAAU;IADtB,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,sBAAsB,CAAC,CAAA;qCAAkC,+CAAsB;GADrG,UAAU,CAwCtB"}
@@ -1,20 +1,18 @@
1
- import { ITransferOutputDto, IV4TransferDto } from "../..";
1
+ import { ITransferOutputDto } from "../..";
2
+ import { DeparturesRepository } from "../../data-access";
2
3
  import { Moment } from "@golemio/core/dist/shared/moment-timezone";
3
4
  import { TransferDepartureTransformation } from "../transformations/TransferDepartureTransformation";
4
- import { PublicGtfsDepartureRepository } from "../../../public/data-access/redis/PublicGtfsDepartureRepository";
5
- import { PublicVehiclePositionsRepository } from "../../../public/data-access/redis/PublicVehiclePositionsRepository";
6
- import { PublicStopTimeRepository } from "../../../public/data-access/redis/PublicStopTimeRepository";
7
- import { DeparturesRepository } from "../../data-access";
8
5
  export declare class TransferFacade {
9
- private publicDepartureRepository;
10
6
  private departureRepository;
11
7
  private departureTransformation;
12
- private tripRepository;
13
- private stopTimeRepository;
14
- constructor(publicDepartureRepository: PublicGtfsDepartureRepository, departureRepository: DeparturesRepository, departureTransformation: TransferDepartureTransformation, tripRepository: PublicVehiclePositionsRepository, stopTimeRepository: PublicStopTimeRepository);
8
+ constructor(departureRepository: DeparturesRepository, departureTransformation: TransferDepartureTransformation);
9
+ /**
10
+ * Retrieves transfer departures for given GTFS stop IDs
11
+ * - Get transfer departures from DB
12
+ * - Process them (filter, sort, etc.)
13
+ * - Transform them to DTO
14
+ */
15
15
  getTransferDepartures(stopIds: string[], tripNumber: string | null, currentMoment: Moment, minutesOffset: number, timeZone?: string): Promise<ITransferOutputDto[]>;
16
- getTransferCache(stopIds: string[], reqNumber?: number, vehicleType?: number): Promise<IV4TransferDto>;
17
- private processMultiplePostionsForDeparture;
18
16
  /**
19
17
  * Fallback options as defined by ROPID
20
18
  */