@golemio/pid 4.0.3-dev.1997942620 → 4.0.3-rc.2001599412

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 (198) 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/vehicle-positions/VehiclePositionsController.js +1 -0
  6. package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
  7. package/dist/integration-engine/jis/ioc/Di.js +0 -10
  8. package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
  9. package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -4
  10. package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -5
  11. package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
  12. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +1 -6
  13. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +2 -50
  14. package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
  15. package/dist/integration-engine/jis/workers/JISWorker.js +0 -1
  16. package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
  17. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +2 -1
  18. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +4 -5
  19. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
  20. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.d.ts +1 -5
  21. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js +0 -24
  22. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js.map +1 -1
  23. package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
  24. package/dist/integration-engine/ropid-gtfs/index.d.ts +0 -1
  25. package/dist/integration-engine/ropid-gtfs/index.js +0 -1
  26. package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
  27. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -8
  28. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  29. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -3
  30. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -3
  31. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  32. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js +1 -1
  33. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js.map +1 -1
  34. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +0 -1
  35. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
  36. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +5 -8
  37. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
  38. package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.d.ts +0 -1
  39. package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js +0 -1
  40. package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js.map +1 -1
  41. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +0 -1
  42. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  43. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +1 -2
  44. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.d.ts +1 -3
  45. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js +109 -124
  46. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/PositionsManager.js.map +1 -1
  47. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.d.ts +1 -3
  48. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.js +85 -100
  49. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/regional-bus/RegionalBusPositionsManager.js.map +1 -1
  50. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
  51. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +0 -1
  52. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -1
  53. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +0 -2
  54. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
  55. package/dist/output-gateway/index.js +0 -1
  56. package/dist/output-gateway/index.js.map +1 -1
  57. package/dist/output-gateway/jis/ioc/Di.js +2 -2
  58. package/dist/output-gateway/jis/ioc/Di.js.map +1 -1
  59. package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +0 -2
  60. package/dist/output-gateway/jis/ioc/OgJisToken.js +0 -2
  61. package/dist/output-gateway/jis/ioc/OgJisToken.js.map +1 -1
  62. package/dist/output-gateway/pid/controllers/v3/V3TransferBoardsController.js.map +1 -1
  63. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +0 -5
  64. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +1 -4
  65. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +1 -7
  66. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
  67. package/dist/output-gateway/pid/index.d.ts +0 -50
  68. package/dist/output-gateway/pid/index.js.map +1 -1
  69. package/dist/output-gateway/pid/ioc/Di.js +6 -64
  70. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  71. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -12
  72. package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -12
  73. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  74. package/dist/output-gateway/pid/routers/index.d.ts +0 -1
  75. package/dist/output-gateway/pid/routers/index.js +1 -3
  76. package/dist/output-gateway/pid/routers/index.js.map +1 -1
  77. package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +2 -7
  78. package/dist/output-gateway/pid/service/facade/InfotextFacade.js +4 -29
  79. package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
  80. package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +3 -12
  81. package/dist/output-gateway/pid/service/facade/StopFacade.js +7 -43
  82. package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
  83. package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +10 -17
  84. package/dist/output-gateway/pid/service/facade/TransferFacade.js +16 -161
  85. package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
  86. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +1 -7
  87. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +0 -9
  88. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
  89. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
  90. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +4 -7
  91. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +1 -1
  92. package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.d.ts +0 -1
  93. package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js +0 -21
  94. package/dist/output-gateway/public/data-access/redis/PublicStopTimeRepository.js.map +1 -1
  95. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.d.ts +1 -2
  96. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js +15 -14
  97. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js.map +1 -1
  98. package/dist/output-gateway/public/domain/repository/IGtfsDepartureRepository.d.ts +1 -1
  99. package/dist/output-gateway/public/ioc/Di.js +1 -1
  100. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  101. package/dist/output-gateway/{shared → public}/service/VPSubscriber.d.ts +2 -4
  102. package/dist/output-gateway/{shared → public}/service/VPSubscriber.js +1 -1
  103. package/dist/output-gateway/public/service/VPSubscriber.js.map +1 -0
  104. package/dist/output-gateway/shared/constants/route-version.d.ts +1 -2
  105. package/dist/output-gateway/shared/constants/route-version.js +0 -1
  106. package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
  107. package/dist/schema-definitions/jis/redis/const.d.ts +0 -1
  108. package/dist/schema-definitions/jis/redis/const.js +1 -2
  109. package/dist/schema-definitions/jis/redis/const.js.map +1 -1
  110. package/dist/schema-definitions/ropid-departures-presets/index.d.ts +0 -1
  111. package/dist/schema-definitions/ropid-departures-presets/index.js +0 -3
  112. package/dist/schema-definitions/ropid-departures-presets/index.js.map +1 -1
  113. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopDto.d.ts +0 -1
  114. package/dist/schema-definitions/ropid-gtfs/redis/const.d.ts +0 -1
  115. package/dist/schema-definitions/ropid-gtfs/redis/const.js +1 -2
  116. package/dist/schema-definitions/ropid-gtfs/redis/const.js.map +1 -1
  117. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +2 -3
  118. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +0 -4
  119. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js.map +1 -1
  120. package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.d.ts +0 -1
  121. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto.d.ts +0 -2
  122. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +0 -1
  123. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +0 -8
  124. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
  125. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +1 -4
  126. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
  127. package/docs/asyncapi.yaml +0 -45
  128. package/docs/cache/types/redis.md +2 -82
  129. package/docs/jis/index.md +5 -15
  130. package/docs/openapi-input.yaml +2 -13
  131. package/docs/openapi-output.yaml +4 -326
  132. package/package.json +2 -2
  133. package/db/example/redis/gtfsStopsCacheMock.json +0 -8
  134. package/db/example/redis/jisCacheMock.json +0 -31
  135. package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +0 -53
  136. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +0 -47
  137. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +0 -47
  138. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +0 -6
  139. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +0 -11
  140. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +0 -1
  141. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +0 -9
  142. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +0 -86
  143. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +0 -1
  144. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +0 -7
  145. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +0 -37
  146. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +0 -1
  147. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +0 -13
  148. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +0 -47
  149. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +0 -1
  150. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.d.ts +0 -18
  151. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js +0 -44
  152. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js.map +0 -1
  153. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.d.ts +0 -12
  154. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js +0 -44
  155. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js.map +0 -1
  156. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.d.ts +0 -12
  157. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +0 -87
  158. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js.map +0 -1
  159. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +0 -17
  160. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +0 -113
  161. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +0 -1
  162. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +0 -17
  163. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +0 -155
  164. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +0 -1
  165. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +0 -14
  166. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +0 -3
  167. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +0 -1
  168. package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +0 -5
  169. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +0 -33
  170. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +0 -1
  171. package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +0 -6
  172. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +0 -61
  173. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +0 -1
  174. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +0 -16
  175. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +0 -67
  176. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +0 -1
  177. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +0 -13
  178. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +0 -31
  179. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +0 -1
  180. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +0 -27
  181. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +0 -77
  182. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +0 -1
  183. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +0 -13
  184. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +0 -83
  185. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +0 -1
  186. package/dist/output-gateway/shared/service/VPSubscriber.js.map +0 -1
  187. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +0 -17
  188. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +0 -3
  189. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +0 -1
  190. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +0 -3
  191. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +0 -59
  192. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +0 -1
  193. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.d.ts +0 -16
  194. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js +0 -3
  195. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js.map +0 -1
  196. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.d.ts +0 -58
  197. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js +0 -69
  198. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"JISInfotextsRedisRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uEAA4D;AAE5D,6GAAmF;AACnF,8EAAmE;AACnE,6EAAwE;AACxE,mFAAkF;AAClF,iEAAgE;AAChE,6CAA0C;AAE1C,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAG9B,IAAM,2BAA2B,yEAAjC,MAAM,2BAA4B,SAAQ,+BAAU;IAGvD;QACI,KAAK,CACD,6BAA6B,EAC7B;YACI,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,6BAA2B,CAAC,gBAAgB;SACvD,EACD,IAAI,uCAAmB,CAAC,sCAAsC,EAAE,2CAAoB,CAAC,CACxF,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,SAA4B;QACjD,IAAI;YACA,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC;YACrF,MAAM,IAAI,CA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@ -1,7 +0,0 @@
1
- import { JISInfotextsModel } from "../../../schema-definitions/jis/models/JISInfotextsModel";
2
- import { IJISInfotextDto } from "../../../schema-definitions/jis/redis/interfaces/IJISInfotextDto";
3
- import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
4
- export declare class JISInfotextCacheTranformation extends AbstractTransformation<JISInfotextsModel, IJISInfotextDto> {
5
- name: string;
6
- protected transformInternal: (data: JISInfotextsModel) => IJISInfotextDto;
7
- }
@@ -1,37 +0,0 @@
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.JISInfotextCacheTranformation = void 0;
10
- const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
11
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
12
- let JISInfotextCacheTranformation = exports.JISInfotextCacheTranformation = class JISInfotextCacheTranformation extends AbstractTransformation_1.AbstractTransformation {
13
- constructor() {
14
- super(...arguments);
15
- this.name = "JISInfotextCacheTranformation";
16
- this.transformInternal = (data) => {
17
- return {
18
- id: data.id,
19
- severity_level: data.severity_level,
20
- display_type: data.display_type,
21
- active_period_start: data.active_period_start.toISOString(),
22
- active_period_end: data.active_period_end?.toISOString() ?? null,
23
- description_text: {
24
- cs: data.description_text.cs,
25
- en: data.description_text.en ?? null,
26
- },
27
- created_timestamp: data.created_timestamp.toISOString(),
28
- updated_timestamp: data.updated_timestamp.toISOString(),
29
- stops: data.stops?.map((stop) => ({ stop_id: stop.stop_id })) ?? [],
30
- };
31
- };
32
- }
33
- };
34
- exports.JISInfotextCacheTranformation = JISInfotextCacheTranformation = __decorate([
35
- (0, tsyringe_1.injectable)()
36
- ], JISInfotextCacheTranformation);
37
- //# sourceMappingURL=JISInfotextCacheTranformation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JISInfotextCacheTranformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextCacheTranformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,6BAA6B,2CAAnC,MAAM,6BAA8B,SAAQ,+CAA0D;IAAtG;;QACI,SAAI,GAAG,+BAA+B,CAAC;QAEpC,sBAAiB,GAAG,CAAC,IAAuB,EAAmB,EAAE;YACvE,OAAO;gBACH,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE;gBAC3D,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EAAE,WAAW,EAAE,IAAI,IAAI;gBAChE,gBAAgB,EAAE;oBACd,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE;oBAC5B,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE,IAAI,IAAI;iBACvC;gBACD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE;gBACvD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE;gBACvD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE;aACtE,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;wCAnBY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;GACA,6BAA6B,CAmBzC"}
@@ -1,13 +0,0 @@
1
- import { JISInfotextsRedisRepository } from "../../repositories/JISInfotextsRedisRepository";
2
- import { JISInfotextsRepository } from "../../repositories/JISInfotextsRepository";
3
- import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
4
- import { JISInfotextCacheTranformation } from "../../transformations/JISInfotextCacheTranformation";
5
- export declare class RefreshJISInfotextsCacheTask extends AbstractEmptyTask {
6
- private infotextsRepository;
7
- private infotextCacheRepository;
8
- private tranformation;
9
- readonly queueName = "refreshJISInfotextsCache";
10
- readonly queueTtl: number;
11
- constructor(infotextsRepository: JISInfotextsRepository, infotextCacheRepository: JISInfotextsRedisRepository, tranformation: JISInfotextCacheTranformation);
12
- protected execute(): Promise<void>;
13
- }
@@ -1,47 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.RefreshJISInfotextsCacheTask = void 0;
16
- const JISContainerToken_1 = require("../../ioc/JISContainerToken");
17
- const JISInfotextsRedisRepository_1 = require("../../repositories/JISInfotextsRedisRepository");
18
- const JISInfotextsRepository_1 = require("../../repositories/JISInfotextsRepository");
19
- const integration_engine_1 = require("@golemio/core/dist/integration-engine");
20
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
21
- const constants_1 = require("../constants");
22
- const JISInfotextCacheTranformation_1 = require("../../transformations/JISInfotextCacheTranformation");
23
- let RefreshJISInfotextsCacheTask = exports.RefreshJISInfotextsCacheTask = class RefreshJISInfotextsCacheTask extends integration_engine_1.AbstractEmptyTask {
24
- constructor(infotextsRepository, infotextCacheRepository, tranformation) {
25
- super(constants_1.JIS_WORKER_NAME.toLowerCase());
26
- this.infotextsRepository = infotextsRepository;
27
- this.infotextCacheRepository = infotextCacheRepository;
28
- this.tranformation = tranformation;
29
- this.queueName = "refreshJISInfotextsCache";
30
- this.queueTtl = 60 * 1000; // 1 minute
31
- }
32
- async execute() {
33
- const infotexts = await this.infotextsRepository.findAll();
34
- const transformedData = this.tranformation.transformArray(infotexts);
35
- await this.infotextCacheRepository.refreshData(transformedData);
36
- }
37
- };
38
- exports.RefreshJISInfotextsCacheTask = RefreshJISInfotextsCacheTask = __decorate([
39
- (0, tsyringe_1.injectable)(),
40
- __param(0, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRepository)),
41
- __param(1, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRedisRepository)),
42
- __param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextCacheTranformation)),
43
- __metadata("design:paramtypes", [JISInfotextsRepository_1.JISInfotextsRepository,
44
- JISInfotextsRedisRepository_1.JISInfotextsRedisRepository,
45
- JISInfotextCacheTranformation_1.JISInfotextCacheTranformation])
46
- ], RefreshJISInfotextsCacheTask);
47
- //# sourceMappingURL=RefreshJISInfotextsCacheTask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RefreshJISInfotextsCacheTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAkE;AAClE,gGAA+F;AAC/F,sFAAqF;AACrF,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAC/C,uGAAsG;AAG/F,IAAM,4BAA4B,0CAAlC,MAAM,4BAA6B,SAAQ,sCAAiB;IAI/D,YACsD,mBAAmD,EAC9C,uBAA4D,EAC1D,aAAoD;QAE7G,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAJqB,wBAAmB,GAAnB,mBAAmB,CAAwB;QACtC,4BAAuB,GAAvB,uBAAuB,CAA6B;QAClD,kBAAa,GAAb,aAAa,CAA+B;QANjG,cAAS,GAAG,0BAA0B,CAAC;QACvC,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;IAQjD,CAAC;IAES,KAAK,CAAC,OAAO;QACnB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QAC3D,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QACrE,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;uCAjBY,4BAA4B;IADxC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,sBAAsB,CAAC,CAAA;IAChD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,2BAA2B,CAAC,CAAA;IACrD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,6BAA6B,CAAC,CAAA;qCAFuB,+CAAsB;QACb,yDAA2B;QACnC,6DAA6B;GAPxG,4BAA4B,CAiBxC"}
@@ -1,18 +0,0 @@
1
- import { IStopCisDto } from "../../schema-definitions/ropid-gtfs/interfaces/IStopCisDto";
2
- import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine";
3
- import { IValidator } from "@golemio/core/dist/shared/golemio-validator";
4
- import Sequelize from "@golemio/core/dist/shared/sequelize";
5
- export declare class RopidGTFSCisStopsModel extends PostgresModel implements IModel {
6
- /** Model name */
7
- name: string;
8
- /** The Sequelize Model */
9
- sequelizeModel: Sequelize.ModelCtor<any>;
10
- /** The Sequelize Model for temporary table */
11
- protected tmpSequelizeModel: Sequelize.ModelCtor<any> | null;
12
- /** Validation helper */
13
- protected validator: IValidator;
14
- /** Type/Strategy of saving the data */
15
- protected savingType: "insertOnly" | "insertOrUpdate";
16
- constructor();
17
- getAll: () => Promise<Array<Pick<IStopCisDto, "id" | "cis">>>;
18
- }
@@ -1,44 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RopidGTFSCisStopsModel = void 0;
13
- const const_1 = require("../../schema-definitions/const");
14
- const StopCisDto_1 = require("../../schema-definitions/ropid-gtfs/models/StopCisDto");
15
- const integration_engine_1 = require("@golemio/core/dist/integration-engine");
16
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
17
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
18
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
19
- let RopidGTFSCisStopsModel = exports.RopidGTFSCisStopsModel = class RopidGTFSCisStopsModel extends integration_engine_1.PostgresModel {
20
- constructor() {
21
- super("RopidGTFSCisStopsModel", {
22
- outputSequelizeAttributes: StopCisDto_1.StopCisDto.attributeModel,
23
- pgTableName: StopCisDto_1.StopCisDto.tableName,
24
- pgSchema: const_1.PG_SCHEMA,
25
- savingType: "insertOnly",
26
- }, new golemio_validator_1.JSONSchemaValidator(StopCisDto_1.StopCisDto.tableName + "ModelValidator", StopCisDto_1.StopCisDto.jsonSchema));
27
- this.getAll = async () => {
28
- try {
29
- return await this.sequelizeModel.findAll({
30
- attributes: ["id", "cis"],
31
- raw: true,
32
- });
33
- }
34
- catch (err) {
35
- throw new golemio_errors_1.GeneralError("Database error", this.constructor.name, err, 500);
36
- }
37
- };
38
- }
39
- };
40
- exports.RopidGTFSCisStopsModel = RopidGTFSCisStopsModel = __decorate([
41
- (0, tsyringe_1.injectable)(),
42
- __metadata("design:paramtypes", [])
43
- ], RopidGTFSCisStopsModel);
44
- //# sourceMappingURL=RopidGTFSCisStopsModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RopidGTFSCisStopsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAuC;AAEvC,sFAA+D;AAC/D,8EAA8E;AAC9E,6EAAwE;AACxE,mFAA8F;AAE9F,iEAAgE;AAGzD,IAAM,sBAAsB,oCAA5B,MAAM,sBAAuB,SAAQ,kCAAa;IAYrD;QACI,KAAK,CACD,wBAAwB,EACxB;YACI,yBAAyB,EAAE,uBAAU,CAAC,cAAc;YACpD,WAAW,EAAE,uBAAU,CAAC,SAAS;YACjC,QAAQ,EAAE,iBAAS;YACnB,UAAU,EAAE,YAAY;SAC3B,EACD,IAAI,uCAAmB,CAAC,uBAAU,CAAC,SAAS,GAAG,gBAAgB,EAAE,uBAAU,CAAC,UAAU,CAAC,CAC1F,CAAC;QAGC,WAAM,GAAG,KAAK,IAAqD,EAAE;YACxE,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACrC,UAAU,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;oBACzB,GAAG,EAAE,IAAI;iBACZ,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC7E;QACL,CAAC,CAAC;IAXF,CAAC;CAYJ,CAAA;iCAnCY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;;GACA,sBAAsB,CAmClC"}
@@ -1,12 +0,0 @@
1
- import { RopidGTFSCisStopsModel } from "../../..";
2
- import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
3
- import { GtfsStopsRedisRepository } from "./data-access/cache/GtfsStopsRedisRepository";
4
- export declare class RefreshGtfsStopsCacheTask extends AbstractEmptyTask {
5
- private gtfsStopsRedisRepository;
6
- private gtfsStopCisModel;
7
- readonly queueName = "refreshGtfsStopsCache";
8
- readonly queueTtl: number;
9
- private readonly gtfsStopRepository;
10
- constructor(gtfsStopsRedisRepository: GtfsStopsRedisRepository, gtfsStopCisModel: RopidGTFSCisStopsModel);
11
- protected execute(): Promise<void>;
12
- }
@@ -1,44 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.RefreshGtfsStopsCacheTask = void 0;
16
- const ropid_gtfs_1 = require("../../..");
17
- const RopidGtfsContainerToken_1 = require("../../../ioc/RopidGtfsContainerToken");
18
- const integration_engine_1 = require("@golemio/core/dist/integration-engine");
19
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
- const constants_1 = require("../constants");
21
- const GtfsStopsRedisRepository_1 = require("./data-access/cache/GtfsStopsRedisRepository");
22
- let RefreshGtfsStopsCacheTask = exports.RefreshGtfsStopsCacheTask = class RefreshGtfsStopsCacheTask extends integration_engine_1.AbstractEmptyTask {
23
- constructor(gtfsStopsRedisRepository, gtfsStopCisModel) {
24
- super(constants_1.TIMETABLE_WORKER_NAME);
25
- this.gtfsStopsRedisRepository = gtfsStopsRedisRepository;
26
- this.gtfsStopCisModel = gtfsStopCisModel;
27
- this.queueName = "refreshGtfsStopsCache";
28
- this.queueTtl = 59 * 60 * 1000; // 59 minutes
29
- this.gtfsStopRepository = new ropid_gtfs_1.RopidGTFSStopsModel();
30
- }
31
- async execute() {
32
- const cisStops = await this.gtfsStopCisModel.getAll();
33
- const gtfsStops = await this.gtfsStopRepository.getAllAswNodeGtfsStops();
34
- await this.gtfsStopsRedisRepository.refreshData(cisStops, gtfsStops);
35
- }
36
- };
37
- exports.RefreshGtfsStopsCacheTask = RefreshGtfsStopsCacheTask = __decorate([
38
- (0, tsyringe_1.injectable)(),
39
- __param(0, (0, tsyringe_1.inject)(RopidGtfsContainerToken_1.RopidGtfsContainerToken.GtfsStopsRedisRepository)),
40
- __param(1, (0, tsyringe_1.inject)(RopidGtfsContainerToken_1.RopidGtfsContainerToken.RopidGTFSCisStopsModel)),
41
- __metadata("design:paramtypes", [GtfsStopsRedisRepository_1.GtfsStopsRedisRepository,
42
- ropid_gtfs_1.RopidGTFSCisStopsModel])
43
- ], RefreshGtfsStopsCacheTask);
44
- //# sourceMappingURL=RefreshGtfsStopsCacheTask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RefreshGtfsStopsCacheTask.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAA6E;AAC7E,kFAAqF;AACrF,8EAA0E;AAC1E,iEAAwE;AACxE,4CAAqD;AACrD,2FAAwF;AAGjF,IAAM,yBAAyB,uCAA/B,MAAM,yBAA0B,SAAQ,sCAAiB;IAM5D,YAC8D,wBAA0D,EAC5D,gBAAgD;QAExG,KAAK,CAAC,iCAAqB,CAAC,CAAC;QAHqC,6BAAwB,GAAxB,wBAAwB,CAA0B;QACpD,qBAAgB,GAAhB,gBAAgB,CAAwB;QAP5F,cAAS,GAAG,uBAAuB,CAAC;QACpC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;QAUpD,IAAI,CAAC,kBAAkB,GAAG,IAAI,gCAAmB,EAAE,CAAC;IACxD,CAAC;IAES,KAAK,CAAC,OAAO;QACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;QACtD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,CAAC;QAEzE,MAAM,IAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC;CACJ,CAAA;oCArBY,yBAAyB;IADrC,IAAA,qBAAU,GAAE;IAQJ,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,wBAAwB,CAAC,CAAA;IACxD,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,sBAAsB,CAAC,CAAA;qCADqC,mDAAwB;QAClC,mCAAsB;GARnG,yBAAyB,CAqBrC"}
@@ -1,12 +0,0 @@
1
- import { GtfsStopParser } from "../../../../../../../helpers/GtfsStopParser";
2
- import { IStopCisDto } from "../../../../../../../schema-definitions/ropid-gtfs/interfaces/IStopCisDto";
3
- import { IAwsNodeIdGtfsStopIdDto } from "../../../../../../../schema-definitions/ropid-gtfs/interfaces/IStopDto";
4
- import { RedisModel } from "@golemio/core/dist/integration-engine";
5
- export declare class GtfsStopsRedisRepository extends RedisModel {
6
- private gtfsStopParser;
7
- static NAMESPACE_PREFIX: string;
8
- constructor(gtfsStopParser: GtfsStopParser);
9
- refreshData(cisStops: Array<Pick<IStopCisDto, "id" | "cis">>, gtfsStops: IAwsNodeIdGtfsStopIdDto[]): Promise<void>;
10
- private createNewCache;
11
- private deleteOldCache;
12
- }
@@ -1,87 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var GtfsStopsRedisRepository_1;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GtfsStopsRedisRepository = void 0;
17
- const GtfsStopParser_1 = require("../../../../../../../helpers/GtfsStopParser");
18
- const RopidGtfsContainerToken_1 = require("../../../../../ioc/RopidGtfsContainerToken");
19
- const const_1 = require("../../../../../../../schema-definitions/ropid-gtfs/redis/const");
20
- const integration_engine_1 = require("@golemio/core/dist/integration-engine");
21
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
22
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
23
- const node_crypto_1 = require("node:crypto");
24
- const TTL_SECONDS_BEFORE_DELETE = 60;
25
- let GtfsStopsRedisRepository = exports.GtfsStopsRedisRepository = GtfsStopsRedisRepository_1 = class GtfsStopsRedisRepository extends integration_engine_1.RedisModel {
26
- constructor(gtfsStopParser) {
27
- super("GtfsStopsRedisRepository", {
28
- isKeyConstructedFromData: false,
29
- prefix: GtfsStopsRedisRepository_1.NAMESPACE_PREFIX,
30
- });
31
- this.gtfsStopParser = gtfsStopParser;
32
- }
33
- async refreshData(cisStops, gtfsStops) {
34
- try {
35
- const oldSetName = (await this.connection.get(`${this.prefix}:activeSetName`)) ?? "";
36
- await this.createNewCache(cisStops, gtfsStops);
37
- await this.deleteOldCache(oldSetName);
38
- }
39
- catch (err) {
40
- throw new golemio_errors_1.GeneralError("refreshData failed", this.constructor.name, err);
41
- }
42
- }
43
- async createNewCache(cisStops, gtfsStops) {
44
- try {
45
- const cisToAswNode = new Map();
46
- for (const stop of cisStops) {
47
- cisToAswNode.set(stop.cis, this.gtfsStopParser.getAswNodeFromId(stop.id));
48
- }
49
- const aswNodeToGtfsStops = new Map();
50
- for (const stop of gtfsStops) {
51
- const nodeStopIds = aswNodeToGtfsStops.get(stop.asw_node_id) ?? [];
52
- if (nodeStopIds.length === 0) {
53
- aswNodeToGtfsStops.set(stop.asw_node_id, nodeStopIds);
54
- }
55
- nodeStopIds.push(stop.stop_id);
56
- }
57
- const setName = (0, node_crypto_1.randomBytes)(4).toString("hex");
58
- const pipeline = this.connection.pipeline();
59
- pipeline.hset(`${this.prefix}:${setName}:aswNodeToGtfsStops`, aswNodeToGtfsStops);
60
- pipeline.hset(`${this.prefix}:${setName}:cisToAswNode`, cisToAswNode);
61
- pipeline.publish(`${this.prefix}`, `${this.prefix}:${setName}`);
62
- pipeline.set(`${this.prefix}:activeSetName`, `${this.prefix}:${setName}`);
63
- await pipeline.exec();
64
- }
65
- catch (err) {
66
- throw new golemio_errors_1.GeneralError("createNewCache failed", this.constructor.name, err);
67
- }
68
- }
69
- async deleteOldCache(setName) {
70
- try {
71
- const pipeline = this.connection.pipeline();
72
- pipeline.expire(`${setName}:aswNodeToGtfsStops`, TTL_SECONDS_BEFORE_DELETE);
73
- pipeline.expire(`${setName}:cisToAswNode`, TTL_SECONDS_BEFORE_DELETE);
74
- await pipeline.exec();
75
- }
76
- catch (err) {
77
- throw new golemio_errors_1.GeneralError("deleteOldCache failed", this.constructor.name, err);
78
- }
79
- }
80
- };
81
- GtfsStopsRedisRepository.NAMESPACE_PREFIX = const_1.GTFS_STOPS_NAMESPACE_PREFIX;
82
- exports.GtfsStopsRedisRepository = GtfsStopsRedisRepository = GtfsStopsRedisRepository_1 = __decorate([
83
- (0, tsyringe_1.injectable)(),
84
- __param(0, (0, tsyringe_1.inject)(RopidGtfsContainerToken_1.RopidGtfsContainerToken.GtfsStopParser)),
85
- __metadata("design:paramtypes", [GtfsStopParser_1.GtfsStopParser])
86
- ], GtfsStopsRedisRepository);
87
- //# sourceMappingURL=GtfsStopsRedisRepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GtfsStopsRedisRepository.js","sourceRoot":"","sources":["../../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAAyD;AACzD,wFAAqF;AAGrF,0FAA0E;AAC1E,8EAAmE;AACnE,6EAAwE;AACxE,iEAAwE;AACxE,6CAA0C;AAE1C,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAG9B,IAAM,wBAAwB,mEAA9B,MAAM,wBAAyB,SAAQ,+BAAU;IAGpD,YAAoE,cAA8B;QAC9F,KAAK,CAAC,0BAA0B,EAAE;YAC9B,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,0BAAwB,CAAC,gBAAgB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;IACL,CAAC;;AA9Da,yCAAgB,GAAG,mCAA2B,AAA9B,CAA+B;mCADpD,wBAAwB;IADpC,IAAA,qBAAU,GAAE;IAII,WAAA,IAAA,iBAAM,EAAC,iDAAuB,CAAC,cAAc,CAAC,CAAA;qCAAyB,+BAAc;GAHzF,wBAAwB,CAgEpC"}
@@ -1,17 +0,0 @@
1
- import { RepositoryWithSubscriber } from "../../../shared/service/VPSubscriber";
2
- import { IJISInfotextDto } from "../../../../schema-definitions/jis/redis/interfaces/IJISInfotextDto";
3
- import { IoRedisConnector } from "@golemio/core/dist/helpers/data-access/redis/IoRedisConnector";
4
- import { ILogger } from "@golemio/core/dist/helpers/logger/LoggerProvider";
5
- export declare class JISInfotextsRedisRepository implements RepositoryWithSubscriber {
6
- private redisConnector;
7
- private log;
8
- private setName;
9
- constructor(redisConnector: IoRedisConnector, log: ILogger);
10
- private checkSetNameAndConnection;
11
- setCurrentSetName(name: string): void;
12
- getActiveStopsInfotexts(stopIds: string[], timeFrom?: Date): Promise<IJISInfotextDto[]>;
13
- private getStopsInfotexts;
14
- private getStopsInfotextIds;
15
- private getInfotextsByIds;
16
- private sortAndFilter;
17
- }
@@ -1,113 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.JISInfotextsRedisRepository = void 0;
16
- const JISInfotextSeverityLevelPriority_1 = require("../../../../helpers/jis/JISInfotextSeverityLevelPriority");
17
- const const_1 = require("../../../../schema-definitions/jis/redis/const");
18
- const IoRedisConnector_1 = require("@golemio/core/dist/helpers/data-access/redis/IoRedisConnector");
19
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
20
- const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
21
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
22
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
23
- let JISInfotextsRedisRepository = exports.JISInfotextsRedisRepository = class JISInfotextsRedisRepository {
24
- constructor(redisConnector, log) {
25
- this.redisConnector = redisConnector;
26
- this.log = log;
27
- this.setName = undefined; // loaded via pub sub or loaded from redis
28
- }
29
- async checkSetNameAndConnection() {
30
- if (!this.redisConnector.isConnected()) {
31
- await this.redisConnector.connect();
32
- }
33
- const connection = this.redisConnector.getConnection();
34
- if (!this.setName) {
35
- const loadedSetName = await connection.get(`${const_1.JIS_NAMESPACE_PREFIX}:activeSetName`);
36
- if (!loadedSetName) {
37
- this.log.debug(`Empty setName for ${const_1.JIS_NAMESPACE_PREFIX}`);
38
- return null;
39
- }
40
- else {
41
- this.setName = loadedSetName;
42
- }
43
- }
44
- return connection;
45
- }
46
- setCurrentSetName(name) {
47
- this.setName = name;
48
- }
49
- async getActiveStopsInfotexts(stopIds, timeFrom = new Date()) {
50
- const infotexts = await this.getStopsInfotexts(stopIds);
51
- return this.sortAndFilter(infotexts, timeFrom);
52
- }
53
- async getStopsInfotexts(stopIds) {
54
- try {
55
- const connection = await this.checkSetNameAndConnection();
56
- if (!connection) {
57
- return [];
58
- }
59
- const infotextIds = await this.getStopsInfotextIds(stopIds, connection);
60
- if (infotextIds.size === 0)
61
- return [];
62
- return this.getInfotextsByIds(infotextIds, connection);
63
- }
64
- catch (error) {
65
- throw new golemio_errors_1.GeneralError("Cannot get stop infotexts from cache", this.constructor.name, error);
66
- }
67
- }
68
- async getStopsInfotextIds(stopIds, connection) {
69
- const stopsInfotexts = await connection.hmget(`${this.setName}:stops-infotexts`, ...stopIds);
70
- const infotextIds = new Set();
71
- for (const infotextIdsRaw of stopsInfotexts) {
72
- for (const infotextId of infotextIdsRaw?.split(",") ?? []) {
73
- infotextIds.add(infotextId);
74
- }
75
- }
76
- return infotextIds;
77
- }
78
- async getInfotextsByIds(infotextIds, connection) {
79
- const infotextsRaw = await connection.hmget(`${this.setName}:infotexts`, ...infotextIds);
80
- const infotexts = [];
81
- for (const infotext of infotextsRaw) {
82
- if (infotext === null)
83
- continue;
84
- infotexts.push(JSON.parse(infotext));
85
- }
86
- return infotexts;
87
- }
88
- sortAndFilter(infotexts, timeFrom) {
89
- const activeInfotexts = infotexts.filter((infotext) => new Date(infotext.active_period_start) <= timeFrom &&
90
- (!infotext.active_period_end || new Date(infotext.active_period_end) >= timeFrom));
91
- return activeInfotexts.sort((a, b) => {
92
- // First sort by severity_level DESC
93
- if (a.severity_level !== b.severity_level) {
94
- return JISInfotextSeverityLevelPriority_1.JISInfotextSeverityLevelPriority[b.severity_level] - JISInfotextSeverityLevelPriority_1.JISInfotextSeverityLevelPriority[a.severity_level];
95
- }
96
- // Then sort by created_timestamp DESC
97
- const createdA = a.created_timestamp;
98
- const createdB = b.created_timestamp;
99
- if (createdA < createdB)
100
- return -1;
101
- if (createdA > createdB)
102
- return 1;
103
- return 0;
104
- });
105
- }
106
- };
107
- exports.JISInfotextsRedisRepository = JISInfotextsRedisRepository = __decorate([
108
- (0, tsyringe_1.injectable)(),
109
- __param(0, (0, tsyringe_1.inject)(ioc_1.ContainerToken.RedisConnector)),
110
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
111
- __metadata("design:paramtypes", [IoRedisConnector_1.IoRedisConnector, Object])
112
- ], JISInfotextsRedisRepository);
113
- //# sourceMappingURL=JISInfotextsRedisRepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JISInfotextsRedisRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+GAAiG;AAEjG,0EAA4D;AAE5D,oGAAiG;AACjG,wEAAqE;AAErE,+DAAuE;AACvE,6EAAwE;AACxE,iEAAwE;AAKjE,IAAM,2BAA2B,yCAAjC,MAAM,2BAA2B;IAGpC,YAC2C,cAAwC,EACrD,GAAoB;QADC,mBAAc,GAAd,cAAc,CAAkB;QAC7C,QAAG,GAAH,GAAG,CAAS;QAJ1C,YAAO,GAAuB,SAAS,CAAC,CAAC,0CAA0C;IAKxF,CAAC;IAEI,KAAK,CAAC,yBAAyB;QACnC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,EAAE;YACpC,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;SACvC;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;QACvD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,GAAG,4BAAoB,gBAAgB,CAAC,CAAC;YACpF,IAAI,CAAC,aAAa,EAAE;gBAChB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,4BAAoB,EAAE,CAAC,CAAC;gBAC5D,OAAO,IAAI,CAAC;aACf;iBAAM;gBACH,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC;aAChC;SACJ;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,iBAAiB,CAAC,IAAY;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAAC,OAAiB,EAAE,QAAQ,GAAG,IAAI,IAAI,EAAE;QACzE,MAAM,SAAS,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AM,EAAC,oBAAc,CAAC,cAAc,CAAC,CAAA;IACrC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;qCADsC,mCAAgB;GAJ1E,2BAA2B,CAyFvC"}
@@ -1,17 +0,0 @@
1
- /// <reference types="express" />
2
- import { InfotextFacade } from "../../service/facade/InfotextFacade";
3
- import { StopFacade } from "../../service/facade/StopFacade";
4
- import { TransferFacade } from "../../service/facade/TransferFacade";
5
- import { RequestHandler } from "@golemio/core/dist/shared/express";
6
- import { TransferDepartureCacheTransformation } from "../../service/transformations/TransferDepartureCacheTransformation";
7
- export declare class V4TransferBoardsController {
8
- private stopFacade;
9
- private infotextFacade;
10
- private transferFacade;
11
- private transformation;
12
- private readonly defaultTransferBoardsLimit;
13
- constructor(stopFacade: StopFacade, infotextFacade: InfotextFacade, transferFacade: TransferFacade, transformation: TransferDepartureCacheTransformation);
14
- getTransferBoardData: RequestHandler;
15
- private parseTransferBoardsParams;
16
- private getTimeFrom;
17
- }