@golemio/pid 4.0.2-dev.1988913536 → 4.0.2

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 (202) 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/repositories/JISMetadataRepository.d.ts +1 -4
  20. package/dist/integration-engine/jis/repositories/JISMetadataRepository.js +12 -37
  21. package/dist/integration-engine/jis/repositories/JISMetadataRepository.js.map +1 -1
  22. package/dist/integration-engine/jis/workers/JISWorker.js +0 -1
  23. package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
  24. package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.d.ts +4 -10
  25. package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.js +22 -15
  26. package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.js.map +1 -1
  27. package/dist/integration-engine/jis/workers/tasks/FetchJISInfotextsTask.d.ts +5 -10
  28. package/dist/integration-engine/jis/workers/tasks/FetchJISInfotextsTask.js +23 -15
  29. package/dist/integration-engine/jis/workers/tasks/FetchJISInfotextsTask.js.map +1 -1
  30. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.d.ts +2 -1
  31. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +4 -5
  32. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
  33. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.d.ts +1 -5
  34. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js +0 -24
  35. package/dist/integration-engine/ropid-gtfs/RopidGTFSStopsModel.js.map +1 -1
  36. package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
  37. package/dist/integration-engine/ropid-gtfs/index.d.ts +0 -1
  38. package/dist/integration-engine/ropid-gtfs/index.js +0 -1
  39. package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
  40. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +0 -8
  41. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  42. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +0 -3
  43. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +0 -3
  44. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  45. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js +1 -1
  46. package/dist/integration-engine/ropid-gtfs/transformations/RopidDeparturesPresetsTransformation.js.map +1 -1
  47. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +0 -1
  48. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
  49. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js +5 -8
  50. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckSavedRowsAndReplaceTablesTask.js.map +1 -1
  51. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +0 -1
  52. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  53. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +1 -2
  54. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
  55. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +0 -1
  56. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -1
  57. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +0 -2
  58. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
  59. package/dist/output-gateway/index.js +0 -1
  60. package/dist/output-gateway/index.js.map +1 -1
  61. package/dist/output-gateway/jis/ioc/Di.js +2 -2
  62. package/dist/output-gateway/jis/ioc/Di.js.map +1 -1
  63. package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +0 -2
  64. package/dist/output-gateway/jis/ioc/OgJisToken.js +0 -2
  65. package/dist/output-gateway/jis/ioc/OgJisToken.js.map +1 -1
  66. package/dist/output-gateway/pid/controllers/v3/V3TransferBoardsController.js.map +1 -1
  67. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +0 -5
  68. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +1 -4
  69. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +1 -7
  70. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
  71. package/dist/output-gateway/pid/index.d.ts +0 -50
  72. package/dist/output-gateway/pid/index.js.map +1 -1
  73. package/dist/output-gateway/pid/ioc/Di.js +6 -62
  74. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  75. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +0 -11
  76. package/dist/output-gateway/pid/ioc/OgPidToken.js +0 -11
  77. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  78. package/dist/output-gateway/pid/routers/index.d.ts +0 -1
  79. package/dist/output-gateway/pid/routers/index.js +1 -3
  80. package/dist/output-gateway/pid/routers/index.js.map +1 -1
  81. package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +2 -7
  82. package/dist/output-gateway/pid/service/facade/InfotextFacade.js +4 -29
  83. package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
  84. package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +3 -12
  85. package/dist/output-gateway/pid/service/facade/StopFacade.js +7 -43
  86. package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
  87. package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +9 -11
  88. package/dist/output-gateway/pid/service/facade/TransferFacade.js +14 -117
  89. package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
  90. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +1 -7
  91. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +0 -12
  92. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
  93. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
  94. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +4 -4
  95. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +1 -1
  96. package/dist/output-gateway/public/ioc/Di.js +1 -1
  97. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  98. package/dist/output-gateway/{shared → public}/service/VPSubscriber.d.ts +2 -4
  99. package/dist/output-gateway/{shared → public}/service/VPSubscriber.js +1 -1
  100. package/dist/output-gateway/public/service/VPSubscriber.js.map +1 -0
  101. package/dist/output-gateway/shared/constants/route-version.d.ts +1 -2
  102. package/dist/output-gateway/shared/constants/route-version.js +0 -1
  103. package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
  104. package/dist/schema-definitions/jis/redis/const.d.ts +0 -1
  105. package/dist/schema-definitions/jis/redis/const.js +1 -2
  106. package/dist/schema-definitions/jis/redis/const.js.map +1 -1
  107. package/dist/schema-definitions/jis/redis/interfaces/IJISMetadataDto.d.ts +5 -1
  108. package/dist/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.js +11 -5
  109. package/dist/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.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/implementation_documentation.md +0 -2
  130. package/docs/jis/index.md +5 -17
  131. package/docs/openapi-input.yaml +2 -13
  132. package/docs/openapi-output.yaml +4 -326
  133. package/package.json +2 -2
  134. package/db/example/redis/gtfsStopsCacheMock.json +0 -8
  135. package/db/example/redis/jisCacheMock.json +0 -31
  136. package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +0 -53
  137. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +0 -47
  138. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +0 -47
  139. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +0 -6
  140. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +0 -11
  141. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +0 -1
  142. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +0 -9
  143. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +0 -86
  144. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +0 -1
  145. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +0 -7
  146. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +0 -37
  147. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +0 -1
  148. package/dist/integration-engine/jis/workers/tasks/AbstractFetchJISResourceTask.d.ts +0 -14
  149. package/dist/integration-engine/jis/workers/tasks/AbstractFetchJISResourceTask.js +0 -71
  150. package/dist/integration-engine/jis/workers/tasks/AbstractFetchJISResourceTask.js.map +0 -1
  151. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +0 -13
  152. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +0 -47
  153. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +0 -1
  154. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.d.ts +0 -18
  155. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js +0 -44
  156. package/dist/integration-engine/ropid-gtfs/RopidGTFSCisStopsModel.js.map +0 -1
  157. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.d.ts +0 -12
  158. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js +0 -44
  159. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/RefreshGtfsStopsCacheTask.js.map +0 -1
  160. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.d.ts +0 -12
  161. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +0 -87
  162. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js.map +0 -1
  163. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +0 -17
  164. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +0 -113
  165. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +0 -1
  166. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +0 -17
  167. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +0 -154
  168. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +0 -1
  169. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +0 -14
  170. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +0 -3
  171. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +0 -1
  172. package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +0 -5
  173. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +0 -33
  174. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +0 -1
  175. package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +0 -6
  176. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +0 -61
  177. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +0 -1
  178. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +0 -16
  179. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +0 -67
  180. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +0 -1
  181. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +0 -13
  182. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +0 -31
  183. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +0 -1
  184. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +0 -27
  185. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +0 -78
  186. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +0 -1
  187. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +0 -13
  188. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +0 -83
  189. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +0 -1
  190. package/dist/output-gateway/shared/service/VPSubscriber.js.map +0 -1
  191. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +0 -17
  192. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +0 -3
  193. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +0 -1
  194. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +0 -3
  195. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +0 -59
  196. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +0 -1
  197. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.d.ts +0 -16
  198. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js +0 -3
  199. package/dist/schema-definitions/ropid-gtfs/interfaces/IStopCisDto.js.map +0 -1
  200. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.d.ts +0 -58
  201. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js +0 -69
  202. package/dist/schema-definitions/ropid-gtfs/models/StopCisDto.js.map +0 -1
@@ -1,6 +1,10 @@
1
- export interface IJISMetadataDto {
1
+ interface IEndpointMetadata {
2
2
  lastResponse: {
3
3
  etag: string;
4
4
  updatedAt: string;
5
5
  };
6
6
  }
7
+ export interface IJISMetadataDto {
8
+ infotexts: IEndpointMetadata;
9
+ }
10
+ export {};
@@ -6,16 +6,22 @@ const jisMetadataDtoSchema = {
6
6
  title: "JISMetadataDto",
7
7
  type: "object",
8
8
  properties: {
9
- lastResponse: {
9
+ infotexts: {
10
10
  type: "object",
11
11
  properties: {
12
- etag: { type: "string" },
13
- updatedAt: { type: "string", format: "date-time" },
12
+ lastResponse: {
13
+ type: "object",
14
+ properties: {
15
+ etag: { type: "string" },
16
+ updatedAt: { type: "string", format: "date-time" },
17
+ },
18
+ required: ["etag", "updatedAt"],
19
+ },
14
20
  },
15
- required: ["etag", "updatedAt"],
21
+ required: ["lastResponse"],
16
22
  },
17
23
  },
18
- required: ["lastResponse"],
24
+ required: ["infotexts"],
19
25
  };
20
26
  exports.JISMetadataDtoSchema = jisMetadataDtoSchema;
21
27
  //# sourceMappingURL=JISMetadataDtoSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JISMetadataDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,oBAAoB,GAAoC;IAC1D,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;aACrD;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;SAClC;KACJ;IACD,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC7B,CAAC;AAE+B,oDAAoB"}
1
+ {"version":3,"file":"JISMetadataDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,oBAAoB,GAAoC;IAC1D,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,YAAY,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACxB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;qBACrD;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;iBAClC;aACJ;YACD,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC7B;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAC;AAC+B,oDAAoB"}
@@ -6,7 +6,6 @@ interface IRopidDeparturesPreset {
6
6
  route: string;
7
7
  query: string;
8
8
  note: string;
9
- isTesting?: boolean;
10
9
  }
11
10
  declare const forExport: {
12
11
  name: string;
@@ -33,9 +33,6 @@ const datasourceJsonSchema = {
33
33
  type: "string",
34
34
  maxLength: 1000,
35
35
  },
36
- isTesting: {
37
- type: "boolean",
38
- },
39
36
  },
40
37
  },
41
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-presets/index.ts"],"names":[],"mappings":";;;AAAA,iDAAiD;AACjD,+CAA6C;AAE7C,+FAAgF;AAChF,6EAAgG;AAWhG,MAAM,oBAAoB,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAA6C;YACnD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,gBAAgB,EAAE,GAAG;aACxB;YACD,KAAK,EAAE;gBACH,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,IAAI;aAClB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,SAAS;aAClB;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,wBAAwB;IAC9B,oBAAoB;IACpB,gBAAgB,EAAE,6DAAuB;IACzC,yBAAyB,EAAE,8CAAiB;IAC5C,WAAW,EAAE,0BAA0B;CAC1C,CAAC;AAEoB,2CAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-presets/index.ts"],"names":[],"mappings":";;;AAAA,iDAAiD;AACjD,+CAA6C;AAE7C,+FAAgF;AAChF,6EAAgG;AAUhG,MAAM,oBAAoB,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAA6C;YACnD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,gBAAgB,EAAE,GAAG;aACxB;YACD,KAAK,EAAE;gBACH,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,GAAG;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,IAAI;aAClB;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,wBAAwB;IAC9B,oBAAoB;IACpB,gBAAgB,EAAE,6DAAuB;IACzC,yBAAyB,EAAE,8CAAiB;IAC5C,WAAW,EAAE,0BAA0B;CAC1C,CAAC;AAEoB,2CAAsB"}
@@ -19,4 +19,3 @@ export interface IStopDto {
19
19
  export interface IStopComputedDto {
20
20
  computed_cis_stop_id: string | null;
21
21
  }
22
- export type IAwsNodeIdGtfsStopIdDto = Pick<IStopDto, "asw_node_id" | "stop_id">;
@@ -1,3 +1,2 @@
1
1
  export declare const GTFS_RUN_SCHEDULE_NAMESPACE_PREFIX = "gtfsRunSchedule";
2
2
  export declare const PUBLIC_DEPARTURE_NAMESPACE_PREFIX = "gtfsPublicDepartureCache";
3
- export declare const GTFS_STOPS_NAMESPACE_PREFIX = "gtfsStopsCache";
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GTFS_STOPS_NAMESPACE_PREFIX = exports.PUBLIC_DEPARTURE_NAMESPACE_PREFIX = exports.GTFS_RUN_SCHEDULE_NAMESPACE_PREFIX = void 0;
3
+ exports.PUBLIC_DEPARTURE_NAMESPACE_PREFIX = exports.GTFS_RUN_SCHEDULE_NAMESPACE_PREFIX = void 0;
4
4
  exports.GTFS_RUN_SCHEDULE_NAMESPACE_PREFIX = "gtfsRunSchedule";
5
5
  exports.PUBLIC_DEPARTURE_NAMESPACE_PREFIX = "gtfsPublicDepartureCache";
6
- exports.GTFS_STOPS_NAMESPACE_PREFIX = "gtfsStopsCache";
7
6
  //# sourceMappingURL=const.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/redis/const.ts"],"names":[],"mappings":";;;AAAa,QAAA,kCAAkC,GAAG,iBAAiB,CAAC;AACvD,QAAA,iCAAiC,GAAG,0BAA0B,CAAC;AAC/D,QAAA,2BAA2B,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/redis/const.ts"],"names":[],"mappings":";;;AAAa,QAAA,kCAAkC,GAAG,iBAAiB,CAAC;AACvD,QAAA,iCAAiC,GAAG,0BAA0B,CAAC"}
@@ -1,7 +1,7 @@
1
- import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
2
- import { ProviderSourceTypeEnum } from "../../../../integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ProviderSourceTypeEnum";
3
1
  import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
4
2
  import { IPublicStopTimeDto } from "./interfaces/IPublicStopTimeDto";
3
+ import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
4
+ import { ProviderSourceTypeEnum } from "../../../../integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ProviderSourceTypeEnum";
5
5
  export declare class PublicStopTimeModel extends Model<PublicStopTimeModel> implements IPublicStopTimeDto {
6
6
  static tableName: string;
7
7
  rt_trip_id: string;
@@ -19,6 +19,5 @@ export declare class PublicStopTimeModel extends Model<PublicStopTimeModel> impl
19
19
  cis_stop_platform_code: string | null;
20
20
  platform_code: string | null;
21
21
  stop_id: string;
22
- stop_name: string;
23
22
  static attributeModel: ModelAttributes<PublicStopTimeModel>;
24
23
  }
@@ -69,9 +69,5 @@ PublicStopTimeModel.attributeModel = {
69
69
  type: sequelize_1.DataTypes.STRING,
70
70
  allowNull: false,
71
71
  },
72
- stop_name: {
73
- type: sequelize_1.DataTypes.STRING,
74
- allowNull: false,
75
- },
76
72
  };
77
73
  //# sourceMappingURL=PublicStopTimeModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicStopTimeModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.ts"],"names":[],"mappings":";;;AAEA,mEAAwF;AAGxF,MAAa,mBAAoB,SAAQ,iBAA0B;;AAAnE,kDAwFC;AAvFiB,6BAAS,GAAG,+CAA+C,CAAC;AAmB5D,kCAAc,GAAyC;IACjE,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACnB;IACD,YAAY,EAAE;QACV,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;KACnB;IACD,aAAa,EAAE;QACX,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACnB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,qBAAqB,EAAE;QACnB,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,mBAAmB,EAAE;QACjB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,oBAAoB,EAAE;QAClB,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACzB,SAAS,EAAE,KAAK;KACnB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,2BAA2B,EAAE;QACzB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI;KAClB;IACD,sBAAsB,EAAE;QACpB,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,aAAa,EAAE;QACX,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;KACnB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC"}
1
+ {"version":3,"file":"PublicStopTimeModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAKxF,MAAa,mBAAoB,SAAQ,iBAA0B;;AAAnE,kDAmFC;AAlFiB,6BAAS,GAAG,+CAA+C,CAAC;AAkB5D,kCAAc,GAAyC;IACjE,UAAU,EAAE;QACR,I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AAO,EAAE;QACL,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC"}
@@ -16,5 +16,4 @@ export interface IPublicStopTimeDto {
16
16
  cis_stop_platform_code: string | null;
17
17
  platform_code: string | null;
18
18
  stop_id: string;
19
- stop_name: string;
20
19
  }
@@ -14,10 +14,8 @@ export interface IPublicApiCacheDto {
14
14
  is_wheelchair_accessible: boolean | null;
15
15
  origin_route_name: string | null;
16
16
  shape_id: string | null;
17
- trip_number: number | null;
18
17
  run_number: number | null;
19
18
  trip_headsign: string | null;
20
- direction_id: number;
21
19
  shape_dist_traveled: number | null;
22
20
  last_stop_sequence: number | null;
23
21
  origin_timestamp: string;
@@ -5,5 +5,4 @@ export interface IPublicStopTimeCacheDto {
5
5
  cis_stop_platform_code: string | null;
6
6
  platform_code: string | null;
7
7
  stop_id: string;
8
- stop_name: string;
9
8
  }
@@ -61,18 +61,12 @@ const publicApiCacheDtoSchema = {
61
61
  shape_id: {
62
62
  oneOf: [{ type: "string" }, { type: "null", nullable: true }],
63
63
  },
64
- trip_number: {
65
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
66
- },
67
64
  run_number: {
68
65
  oneOf: [{ type: "number" }, { type: "null", nullable: true }],
69
66
  },
70
67
  trip_headsign: {
71
68
  oneOf: [{ type: "string" }, { type: "null", nullable: true }],
72
69
  },
73
- direction_id: {
74
- type: "number",
75
- },
76
70
  shape_dist_traveled: {
77
71
  oneOf: [{ type: "number" }, { type: "null", nullable: true }],
78
72
  },
@@ -91,10 +85,8 @@ const publicApiCacheDtoSchema = {
91
85
  "origin_timestamp",
92
86
  "origin_route_name",
93
87
  "shape_id",
94
- "trip_number",
95
88
  "run_number",
96
89
  "trip_headsign",
97
- "direction_id",
98
90
  "shape_dist_traveled",
99
91
  "last_stop_sequence",
100
92
  "registration_number",
@@ -1 +1 @@
1
- {"version":3,"file":"PublicApiCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/sch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AAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;qBAChE;iBACJ;gBACD,QAAQ,EAAE;oBACN,kBAAkB;oBAClB,mBAAmB;oBACnB,UAAU;oBACV,aAAa;oBACb,YAAY;oBACZ,eAAe;oBACf,cAAc;oBACd,qBAAqB;oBACrB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;iBACb;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,uBAAuB;YACvB,KAAK;YACL,KAAK;YACL,SAAS;YACT,OAAO;YACP,gBAAgB;YAChB,eAAe;SAClB;KACJ;CACJ,CAAC;AACkC,0DAAuB"}
1
+ {"version":3,"file":"PublicApiCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,uBAAuB,GAAyC;IAClE,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,YAAY,EAAE;gBACV,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,qBAAqB,EAAE;gBACnB,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClC,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,KAAK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AAE,CAAC;qBAChE;oBACD,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACpC,mBAAmB,EAAE;wBACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;qBAChE;oBACD,QAAQ,EAAE;wBACN,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;qBAChE;iBACJ;gBACD,QAAQ,EAAE;oBACN,kBAAkB;oBAClB,mBAAmB;oBACnB,UAAU;oBACV,YAAY;oBACZ,eAAe;oBACf,qBAAqB;oBACrB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;iBACb;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,uBAAuB;YACvB,KAAK;YACL,KAAK;YACL,SAAS;YACT,OAAO;YACP,gBAAgB;YAChB,eAAe;SAClB;KACJ;CACJ,CAAC;AACkC,0DAAuB"}
@@ -58,11 +58,8 @@ const publicStopTimeCacheDtoSchema = {
58
58
  stop_id: {
59
59
  type: "string",
60
60
  },
61
- stop_name: {
62
- type: "string",
63
- },
64
61
  },
65
- required: ["sequence", "arr_delay", "dep_delay", "cis_stop_platform_code", "platform_code", "stop_id", "stop_name"],
62
+ required: ["sequence", "arr_delay", "dep_delay", "cis_stop_platform_code", "platform_code", "stop_id"],
66
63
  },
67
64
  };
68
65
  exports.PublicStopTimeCacheDtoSchema = publicStopTimeCacheDtoSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicStopTimeCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,4BAA4B,GAA8C;IAC5E,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,sBAAsB,EAAE;gBACpB,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,aAAa,EAAE;gBACX,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,CAAC;KACtH;CACJ,CAAC;AACuC,oEAA4B"}
1
+ {"version":3,"file":"PublicStopTimeCacheDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,4BAA4B,GAA8C;IAC5E,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,SAAS,EAAE;gBACP,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,sBAAsB,EAAE;gBACpB,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,aAAa,EAAE;gBACX,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACjB;iBACJ;aACJ;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,eAAe,EAAE,SAAS,CAAC;KACzG;CACJ,CAAC;AACuC,oEAA4B"}
@@ -48,39 +48,6 @@ channels:
48
48
  messages:
49
49
  empty:
50
50
  $ref: "#/components/messages/JISInfotexts"
51
- jis.refreshJISInfotextsCache:
52
- address: vehicle-positions.jis.refreshJISInfotextsCache
53
- description: Refresh JIS infotexts cache in Redis (Valkey)
54
- bindings:
55
- amqp:
56
- is: queue
57
- queue:
58
- durable: true
59
- messages:
60
- empty:
61
- $ref: "#/components/messages/emptyMessage"
62
- ropidgtfs.refreshPublicGtfsDepartureCache:
63
- address: vehicle-positions.ropidgtfs.refreshPublicGtfsDepartureCache
64
- description: Refresh PublicGtfsDepartureCache
65
- bindings:
66
- amqp:
67
- is: queue
68
- queue:
69
- durable: true
70
- messages:
71
- empty:
72
- $ref: "#/components/messages/emptyMessage"
73
- ropidgtfs.refreshGtfsStopsCache:
74
- address: vehicle-positions.ropidgtfs.refreshGtfsStopsCache
75
- description: Refresh GtfsStopsCache
76
- bindings:
77
- amqp:
78
- is: queue
79
- queue:
80
- durable: true
81
- messages:
82
- empty:
83
- $ref: "#/components/messages/emptyMessage"
84
51
  updateGTFSTripId:
85
52
  address: vehicle-positions.vehiclepositions.updateGTFSTripId
86
53
  description: some description
@@ -327,18 +294,6 @@ operations:
327
294
  action: "send"
328
295
  channel:
329
296
  $ref: "#/channels/jis.refreshJISInfotexts"
330
- jis.refreshJISInfotextsCache:
331
- action: "send"
332
- channel:
333
- $ref: "#/channels/jis.refreshJISInfotextsCache"
334
- ropidgtfs.refreshPublicGtfsDepartureCache:
335
- action: "send"
336
- channel:
337
- $ref: "#/channels/ropidgtfs.refreshPublicGtfsDepartureCache"
338
- ropidgtfs.refreshGtfsStopsCache:
339
- action: "send"
340
- channel:
341
- $ref: "#/channels/ropidgtfs.refreshGtfsStopsCache"
342
297
  updateGTFSTripId:
343
298
  action: "send"
344
299
  channel:
@@ -62,7 +62,7 @@ flowchart TD;
62
62
  - Pomocný timestamp se načte pomocí `GET` a vrátí se jako hodnota hlavičky `Last-Modified` převedená na ISO string. Pokud timestamp neexistuje, hodnota hlavičky bude unix timestamp 0 jako ISO string. Využívá se především pro monitoring a alerting
63
63
  - Feedy se generují nejméně 3x za minutu (rabín 2x) pomocí queue-message
64
64
  - Používají redis-mutex na zamykání, aby neběželo více shodných tasků v jeden okamžik
65
- - Pokud generování stíhá běžet rychleji, task se snaží do ±7 vteřin svého běhu spustit nové generování souborů (opět přes queue-message).
65
+ - Pokud generování stíhá běžet rychleji, task se snaží do ±7 vteřin svého běhu spustit nové generování souborů (opět přes queue-message).
66
66
 
67
67
  ### Flowchart
68
68
 
@@ -152,7 +152,6 @@ flowchart TD;
152
152
  - `cis_stop_platform_code` - nástupiště/kolej podle CIS u vlakových zastávek, jinde null
153
153
  - `platform_code` - označení zastávky podle GTFS
154
154
  - `stop_id` - GTFS id zastávky
155
- - `stop_name` - název zastávky
156
155
  - TTL 1 hodina a 5 minut
157
156
  - Automatické promazání dat po úspěšném načtení GTFS jíždních řádů
158
157
  - Cca jednou za 5 vteřin se přenačtou stop times pro všechny aktivní spoje. Generování může běžet pouze jednou, po dokončení tasku se spustí znovu (max čekání 4.8 vteřin)
@@ -314,83 +313,4 @@ flowchart TD;
314
313
  rt_info["Obohacení o RT informace"];
315
314
  get_departures--"Alespoň jedno vozidlo připadá nějakému spoji (aktivní, budoucí i zrušené) na odjezdu"-->rt_info;
316
315
  rt_info--"RT informace o spoji"-->redis_repository<-->redis_public_cache;
317
- ```
318
-
319
- ## Cache pro API přestupních tabulí (transfer boards)
320
-
321
- *(přestupní tabule využívají také cache pro Public API, která je již popsána výše)*
322
-
323
- ### gtfsStopsCache:*
324
-
325
- - Jednotlivé komponenty cache jsou členěny do sad s `$setId`
326
- - `$setId` je id vygenerované datové sady (4 náhodné bajty reprezentované hexadecimálně)
327
- - Nová sada je vytvořena při každém přenačtení cache
328
- - Id `$setId` nejnovější datové sady se propaguje přes PubSub channel `gtfsStopsCache` a je také uloženo v cache jako hodnota položky `gtfsStopsCache:activeSetName`
329
- - Komponenty:
330
- - `gtfsStopsCache:$setId:aswNodeToGtfsStops` - Hash mapa, mapující daný ASW node na seznam pod něj spadajících zastávek (GTFS ids zastávek, odděleny čárkami)
331
- - `gtfsStopsCache:$setId:cisToAswNode` - Hash mapa, mapující dané CIS id zastávky na příslušný ASW node
332
- - TTL žádné (mimo přenačtení cache, kdy je namísto okamžitého promazání původnímu setu nastaveno TTL 1 minuta)
333
- - Cache je celá přenačtena vždy po přenačtení jízdních řádů (tedy 1-2x denně při stavu k červenci 2025)
334
-
335
- ### jisCache:*
336
-
337
- - Jednotlivé komponenty cache jsou členěny do sad s `$setId`
338
- - `$setId` je id vygenerované datové sady (4 náhodné bajty reprezentované hexadecimálně)
339
- - Nová sada je vytvořena při každém přenačtení cache
340
- - Id `$setId` nejnovější datové sady se propaguje přes PubSub channel `jisCache` a je také uloženo v cache jako hodnota položky `jisCache:activeSetName`
341
- - Komponenty:
342
- - `jisCache:$setId:infotexts` - Hash mapa, mapující dané id infotextu na informace o onom infotextu (JSON jako string)
343
- - `jisCache:$setId:stops-infotexts` - Hash mapa, mapující dané GTFS id zástavky na seznam infotextů s ní asociovaných (ids infotextů, odděleny čárkami)
344
- - TTL žádné (mimo přenačtení cache, kdy je namísto okamžitého promazání původnímu setu nastaveno TTL 1 minuta)
345
- - Cache je celá přenačtena při každé aktualizaci infotextů (tento proces je více popsán v [Dokumentaci propisu VYMI (JIS) dat do datové platformy](../../jis/index.md))
346
-
347
- ### Flowchart (refresh gtfsStopsCache:*)
348
-
349
- ```mermaid
350
- flowchart LR
351
- finish_up_gtfs("`Dokončení zpracování GTFS JŘ`");
352
-
353
- psql_ropidgtfs_cis_stops[("`PSQL ropidgtfs_cis_stops`")];
354
- psql_ropidgtfs_stops[("`PSQL ropidgtfs_stops`")];
355
-
356
- redis_gtfsStopsCache[("`Redis gtfsStopsCache:\*`")];
357
-
358
- amqp_refreshGtfsStopsCache["`AMQP refreshGtfsStopsCache`"];
359
-
360
- task_RefreshGtfsStopsCacheTask["`RefreshGtfsStopsCacheTask`"];
361
-
362
- finish_up_gtfs --> amqp_refreshGtfsStopsCache;
363
- amqp_refreshGtfsStopsCache --> task_RefreshGtfsStopsCacheTask;
364
- task_RefreshGtfsStopsCacheTask <-- "`ASW ids a CIS ids zastávek`" --> psql_ropidgtfs_cis_stops;
365
- task_RefreshGtfsStopsCacheTask <-- "`ASW nodes a GTFS ids zastávek`" --> psql_ropidgtfs_stops;
366
- task_RefreshGtfsStopsCacheTask -- "`HSET gtfsStopsCache:$setId:aswNodeToGtfsStops a gtfsStopsCache:$setId:cisToAswNode, EXPIRE staré sady`" --> redis_gtfsStopsCache;
367
- ```
368
-
369
- ### Flowchart (refresh jisCache:*)
370
-
371
- ```mermaid
372
- flowchart LR
373
- refresh_infotexts("`Aktualizace infotextů`");
374
-
375
- psql_jis_infotexts[("`PSQL jis_infotexts`")];
376
- psql_jis_infotexts_ropidgtfs_stops[("`PSQL jis_infotexts_ropidgtfs_stops`")];
377
-
378
- redis_jisCache[("`Redis jisCache:\*`")];
379
-
380
- amqp_refreshJISInfotextsCache["`AMQP refreshJISInfotextsCache`"];
381
-
382
- task_RefreshJISInfotextsTask["`RefreshJISInfotextsTask`"];
383
-
384
- refresh_infotexts --> amqp_refreshJISInfotextsCache;
385
- amqp_refreshJISInfotextsCache --> task_RefreshJISInfotextsTask;
386
- task_RefreshJISInfotextsTask <-- "`Data infotextů`" --> psql_jis_infotexts;
387
- task_RefreshJISInfotextsTask <-- "`GTFS ids zastávek a ids infotextů`" --> psql_jis_infotexts_ropidgtfs_stops;
388
- task_RefreshJISInfotextsTask -- "`HSET jisCache:$setId:infotexts a jisCache:$setId:stops-infotexts, EXPIRE staré sady`" --> redis_jisCache;
389
- ```
390
-
391
- ### Flowchart (v4 transferboards API)
392
-
393
- ```mermaid
394
- flowchart TD;
395
- todo["TODO"];
396
- ```
316
+ ```
@@ -233,7 +233,6 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
233
233
  - rabin `0 */1 * * * *`
234
234
  - prod `0 */1 * * * *`
235
235
  - data mohou být stažena po manuálním zaslání zprávy do RabbitMQ fronty (primární způsob aktualizace dat je aktivní posílání a cron)
236
- - při pasivním stahování se využívá ETag, který umožňuje přenášet pouze nová či změněná data; pokud se data od posledního načtení nezměnila, server vrátí informaci o bezezměněném obsahu
237
236
  - název rabbitmq fronty
238
237
  - vehicle-positions.jis.fetchJISEvents
239
238
 
@@ -254,7 +253,6 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
254
253
  - rabin `0 */1 * * * *`
255
254
  - prod `0 */1 * * * *`
256
255
  - data mohou být stažena po manuálním zaslání zprávy do RabbitMQ fronty (primární způsob aktualizace dat je aktivní posílání a cron)
257
- - při pasivním stahování se využívá ETag, který umožňuje přenášet pouze nová či změněná data; pokud se data od posledního načtení nezměnila, server vrátí informaci o bezezměněném obsahu
258
256
  - název rabbitmq fronty
259
257
  - vehicle-positions.jis.fetchJISInfotexts
260
258
 
package/docs/jis/index.md CHANGED
@@ -123,11 +123,9 @@ flowchart TB
123
123
  subgraph "Golemio VP Integration Engine"
124
124
  golemio_refresh_events_task["`RefreshJISEventsTask`"];
125
125
  golemio_refresh_infotexts_task["`RefreshJISInfotextsTask`"];
126
- golemio_refresh_infotexts_cache_task["`RefreshJISInfotextsCacheTask`"];
127
126
  end
128
127
 
129
128
  vp_pg[("`VP PostgreSQL`")];
130
- vp_redis[("`VP Redis (Valkey)`")];
131
129
  end
132
130
 
133
131
  vymi_events_controller_create --> vymi_get_events;
@@ -136,8 +134,8 @@ flowchart TB
136
134
  vymi_infotexts_controller_create --> vymi_get_infotexts;
137
135
  vymi_infotexts_controller_update --> vymi_get_infotexts;
138
136
 
139
- vymi_get_events <-- "`SELECT aktuálních událostí z tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vymi_pg;
140
- vymi_get_infotexts <-- "`SELECT aktuálních infotextů z tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vymi_pg;
137
+ vymi_get_events -- "`SELECT aktuálních událostí z tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vymi_pg;
138
+ vymi_get_infotexts -- "`SELECT aktuálních infotextů z tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vymi_pg;
141
139
 
142
140
  vymi_get_events --> golemio_api_post_events;
143
141
  vymi_get_infotexts --> golemio_api_post_infotexts;
@@ -153,12 +151,9 @@ flowchart TB
153
151
 
154
152
  golemio_refresh_events_task -- "`UPSERT do tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vp_pg;
155
153
  golemio_refresh_infotexts_task -- "`UPSERT do tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vp_pg;
156
- golemio_refresh_infotexts_task --> golemio_refresh_infotexts_cache_task;
157
-
158
- golemio_refresh_infotexts_cache_task -- "`Aktualizace cache jisCache:infotexts:* a jisCache:stop-infotexts:*`" --> vp_redis;
159
154
  ```
160
155
 
161
- Formát zasílaných dat je dále více popsán v implementační dokumentaci ([události](../implementation_documentation.md#jis-events-1), [infotexty](../implementation_documentation.md#jis-infotexts-1)), stejně tak jako odkazy na [Input Gateway OpenAPI](../implementation_documentation.md#input-api) a popis [uložení dat](../implementation_documentation.md#uložení-dat) včetně databázového schema a popisu retence. Data infotextů jsou dále cachovány - tento proces je popsán v dokumentaci [Redis cache](../cache/types/redis.md#cache-pro-api-přestupních-tabulí-transfer-boards).
156
+ Formát zasílaných dat je dále více popsán v implementační dokumentaci ([události](../implementation_documentation.md#jis-events-1), [infotexty](../implementation_documentation.md#jis-infotexts-1)), stejně tak jako odkazy na [Input Gateway OpenAPI](../implementation_documentation.md#input-api) a popis [uložení dat](../implementation_documentation.md#uložení-dat) včetně databázového schema a popisu retence.
162
157
 
163
158
  ## Pasivní načítání (pull) dat
164
159
 
@@ -166,8 +161,6 @@ V případě potřeby (např. nedojde-li kvůli chybě k aktivnímu poslání da
166
161
 
167
162
  Kromě manuálního spuštění vývojářem je nyní navíc aktivní cron task, který každou minutu automaticky spouští pasivní načítání dat z VYMI do Golemia. Tento mechanismus zajišťuje vyšší odolnost proti výpadkům v aktivním posílání (push) dat.
168
163
 
169
- Při pasivním načítání dat z VYMI do Golemia se využívá mechanismus ETag, který umožňuje rozpoznat, zda se od posledního načtení data změnila. Díky tomu se při opakovaném dotazu přenášejí pouze nová nebo upravená data, zatímco v případě beze změny se vrací pouze informace o tom, že obsah zůstal stejný. Tento přístup zmenšuje objem přenášených dat a snižuje zátěž na databázi a server. ETagy jsou spravovány zvlášť pro události a pro infotexty, aby se změny každého typu vyhodnocovaly nezávisle.
170
-
171
164
  Při pasivním načítání se z VYMI vždy přenačítají pouze aktuální (aktivní) události a infotexty:
172
165
  - všechny události, které mají `status` `PUBLISHED`, a zároveň `updated_at` hodnotu z posledních 24 hodin nebo `active_period_end` je `NULL` nebo >= aktuální čas, neboli lidsky všechny publikované (ne-draft) události, které jsou aktivní nebo byly upraveny v posledním dnu;
173
166
  - všechny infotexty, které mají `status` `PUBLISHED`, `visibility` `PUBLIC` a zároveň `active_period_end` je `NULL` nebo >= aktuální čas, neboli lidsky všechny aktivní, budoucí a publikované (ne-draft) infotexty.
@@ -207,7 +200,6 @@ flowchart TB
207
200
  golemio_fetch_infotexts_task["`FetchJISInfotextsTask`"];
208
201
  golemio_refresh_events_task["`RefreshJISEventsTask`"];
209
202
  golemio_refresh_infotexts_task["`RefreshJISInfotextsTask`"];
210
- golemio_refresh_infotexts_cache_task["`RefreshJISInfotextsCacheTask`"];
211
203
 
212
204
  %% invisible unicode char ‎ due to https://github.com/orgs/community/discussions/106690
213
205
  golemio_api_get_events["`HTTPS GET s API klíčem na https‎://api-vymi.golemio.cz/v1/exports/events/custom-format`"];
@@ -215,11 +207,10 @@ flowchart TB
215
207
  end
216
208
 
217
209
  vp_pg[("`VP PostgreSQL`")];
218
- vp_redis[("`VP Redis (Valkey)`")];
219
210
  end
220
211
 
221
- vymi_get_events <-- "`SELECT aktuálních událostí z tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vymi_pg;
222
- vymi_get_infotexts <-- "`SELECT aktuálních infotextů z tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vymi_pg;
212
+ vymi_get_events -- "`SELECT aktuálních událostí z tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vymi_pg;
213
+ vymi_get_infotexts -- "`SELECT aktuálních infotextů z tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vymi_pg;
223
214
 
224
215
  golemio_rabbit_fetch_events --> golemio_fetch_events_task;
225
216
  golemio_rabbit_fetch_infotexts --> golemio_fetch_infotexts_task;
@@ -240,9 +231,6 @@ flowchart TB
240
231
 
241
232
  golemio_refresh_events_task -- "`UPSERT do tabulek vehicle-positions.pid.jis_events a vehicle-positions.pid.jis_events_ropidgtfs_routes`" --> vp_pg;
242
233
  golemio_refresh_infotexts_task -- "`UPSERT do tabulek vehicle-positions.pid.jis_infotexts a vehicle-positions.pid.jis_infotexts_ropidgtfs_stops`" --> vp_pg;
243
- golemio_refresh_infotexts_task --> golemio_refresh_infotexts_cache_task;
244
-
245
- golemio_refresh_infotexts_cache_task -- "`Aktualizace cache jisCache:infotexts:* a jisCache:stop-infotexts:*`" --> vp_redis;
246
234
  ```
247
235
 
248
236
  Zdroj a formát dat pro aktivní stahování jsou dále více popsány v implementační dokumentaci ([události](../implementation_documentation.md#jis-events), [infotexty](../implementation_documentation.md#jis-infotexts)), stejně tak jako [worker a tasky](../implementation_documentation.md#jisworker) a popis [uložení dat](../implementation_documentation.md#uložení-dat) včetně databázového schema a popisu retence.
@@ -453,12 +453,6 @@ components:
453
453
  type: array
454
454
  items:
455
455
  type: object
456
- required:
457
- - routeName
458
- - note
459
- - apiVersion
460
- - route
461
- - query
462
456
  properties:
463
457
  routeName:
464
458
  type: string
@@ -475,9 +469,6 @@ components:
475
469
  query:
476
470
  type: string
477
471
  example: "?minutesAfter=300&limit=8&mode=departures&cisIds=40110"
478
- isTesting:
479
- type: boolean
480
- example: true
481
472
  JISEvents:
482
473
  title: JIS events
483
474
  type: array
@@ -840,16 +831,14 @@ components:
840
831
  "note": "Tablo Zahradní město z centra (APEX)",
841
832
  "apiVersion": 2,
842
833
  "route": "/pid/departureboards",
843
- "query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true",
844
- "isTesting": true
834
+ "query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true"
845
835
  },
846
836
  {
847
837
  "routeName": "apex-zahradnimesto-6048-kopie",
848
838
  "note": "Tablo Zahradní město z centra (APEX)",
849
839
  "apiVersion": 2,
850
840
  "route": "/pid/departureboards",
851
- "query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true",
852
- "isTesting": false
841
+ "query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true"
853
842
  }
854
843
  ]
855
844
  JISEventsExample: