@golemio/pid 4.0.2-dev.1981729168 → 4.0.2-dev.1982076656

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 (123) hide show
  1. package/README.md +1 -1
  2. package/db/example/redis/gtfsStopsCacheMock.json +8 -0
  3. package/db/example/redis/jisCacheMock.json +31 -0
  4. package/db/migrations/postgresql/20250716143052-add-stop-name-to-combined-stop-times.js +53 -0
  5. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-down.sql +47 -0
  6. package/db/migrations/postgresql/sqls/20250716143052-add-stop-name-to-combined-stop-times-up.sql +47 -0
  7. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.d.ts +6 -0
  8. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js +11 -0
  9. package/dist/helpers/jis/JISInfotextSeverityLevelPriority.js.map +1 -0
  10. package/dist/integration-engine/jis/ioc/Di.js +2 -0
  11. package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
  12. package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +1 -0
  13. package/dist/integration-engine/jis/ioc/JISContainerToken.js +1 -0
  14. package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
  15. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.d.ts +2 -2
  16. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js +9 -1
  17. package/dist/integration-engine/jis/repositories/JISInfotextsRedisRepository.js.map +1 -1
  18. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.d.ts +7 -0
  19. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js +37 -0
  20. package/dist/integration-engine/jis/transformations/JISInfotextCacheTranformation.js.map +1 -0
  21. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.d.ts +3 -1
  22. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js +8 -3
  23. package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsCacheTask.js.map +1 -1
  24. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/cache/GtfsStopsRedisRepository.js +5 -5
  25. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js +1 -0
  26. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  27. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +2 -1
  28. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js +1 -0
  29. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/RefreshPublicStopTimeCacheTask.js.map +1 -1
  30. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js +2 -0
  31. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/PublicApiTripTransformation.js.map +1 -1
  32. package/dist/output-gateway/index.js +1 -0
  33. package/dist/output-gateway/index.js.map +1 -1
  34. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.d.ts +17 -0
  35. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js +113 -0
  36. package/dist/output-gateway/jis/data-access/cache/JISInfotextsRedisRepository.js.map +1 -0
  37. package/dist/output-gateway/jis/ioc/Di.js +2 -2
  38. package/dist/output-gateway/jis/ioc/Di.js.map +1 -1
  39. package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +2 -0
  40. package/dist/output-gateway/jis/ioc/OgJisToken.js +2 -0
  41. package/dist/output-gateway/jis/ioc/OgJisToken.js.map +1 -1
  42. package/dist/output-gateway/pid/controllers/v3/V3TransferBoardsController.js.map +1 -1
  43. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.d.ts +17 -0
  44. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js +147 -0
  45. package/dist/output-gateway/pid/controllers/v4/V4TransferBoardsController.js.map +1 -0
  46. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.d.ts +14 -0
  47. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js +3 -0
  48. package/dist/output-gateway/pid/controllers/v4/interfaces/ITransferBoardsParams.js.map +1 -0
  49. package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +5 -0
  50. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.d.ts +4 -1
  51. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js +7 -1
  52. package/dist/output-gateway/pid/helpers/JISInfotextStopSuppressionFilter.js.map +1 -1
  53. package/dist/output-gateway/pid/helpers/TransferBoardFilter.d.ts +5 -0
  54. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js +33 -0
  55. package/dist/output-gateway/pid/helpers/TransferBoardFilter.js.map +1 -0
  56. package/dist/output-gateway/pid/helpers/TransferBoardSorter.d.ts +6 -0
  57. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js +65 -0
  58. package/dist/output-gateway/pid/helpers/TransferBoardSorter.js.map +1 -0
  59. package/dist/output-gateway/pid/index.d.ts +47 -0
  60. package/dist/output-gateway/pid/index.js.map +1 -1
  61. package/dist/output-gateway/pid/ioc/Di.js +62 -6
  62. package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
  63. package/dist/output-gateway/pid/ioc/OgPidToken.d.ts +11 -0
  64. package/dist/output-gateway/pid/ioc/OgPidToken.js +11 -0
  65. package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
  66. package/dist/output-gateway/pid/routers/index.d.ts +1 -0
  67. package/dist/output-gateway/pid/routers/index.js +3 -1
  68. package/dist/output-gateway/pid/routers/index.js.map +1 -1
  69. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.d.ts +16 -0
  70. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js +67 -0
  71. package/dist/output-gateway/pid/routers/v4/V4PIDRouter.js.map +1 -0
  72. package/dist/output-gateway/pid/service/facade/InfotextFacade.d.ts +7 -2
  73. package/dist/output-gateway/pid/service/facade/InfotextFacade.js +29 -4
  74. package/dist/output-gateway/pid/service/facade/InfotextFacade.js.map +1 -1
  75. package/dist/output-gateway/pid/service/facade/StopFacade.d.ts +12 -3
  76. package/dist/output-gateway/pid/service/facade/StopFacade.js +43 -7
  77. package/dist/output-gateway/pid/service/facade/StopFacade.js.map +1 -1
  78. package/dist/output-gateway/pid/service/facade/TransferFacade.d.ts +11 -9
  79. package/dist/output-gateway/pid/service/facade/TransferFacade.js +117 -14
  80. package/dist/output-gateway/pid/service/facade/TransferFacade.js.map +1 -1
  81. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.d.ts +7 -1
  82. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js +12 -0
  83. package/dist/output-gateway/pid/service/helpers/PlatformCodeResolver.js.map +1 -1
  84. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.d.ts +13 -0
  85. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js +31 -0
  86. package/dist/output-gateway/pid/service/transformations/JISInfotextCacheTransferTransformation.js.map +1 -0
  87. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.d.ts +27 -0
  88. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js +75 -0
  89. package/dist/output-gateway/pid/service/transformations/TransferDepartureCacheTransformation.js.map +1 -0
  90. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.d.ts +1 -1
  91. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js +4 -4
  92. package/dist/output-gateway/public/data-access/redis/PublicGtfsDepartureRepository.js.map +1 -1
  93. package/dist/output-gateway/public/ioc/Di.js +1 -1
  94. package/dist/output-gateway/public/ioc/Di.js.map +1 -1
  95. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.d.ts +13 -0
  96. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js +83 -0
  97. package/dist/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.js.map +1 -0
  98. package/dist/output-gateway/shared/constants/route-version.d.ts +2 -1
  99. package/dist/output-gateway/shared/constants/route-version.js +1 -0
  100. package/dist/output-gateway/shared/constants/route-version.js.map +1 -1
  101. package/dist/output-gateway/{public → shared}/service/VPSubscriber.d.ts +4 -2
  102. package/dist/output-gateway/{public → shared}/service/VPSubscriber.js +1 -1
  103. package/dist/output-gateway/shared/service/VPSubscriber.js.map +1 -0
  104. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.d.ts +17 -0
  105. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js +3 -0
  106. package/dist/schema-definitions/jis/redis/interfaces/IJISInfotextDto.js.map +1 -0
  107. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.d.ts +3 -0
  108. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js +59 -0
  109. package/dist/schema-definitions/jis/redis/schemas/JISInfotextDtoSchema.js.map +1 -0
  110. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.d.ts +3 -2
  111. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js +4 -0
  112. package/dist/schema-definitions/vehicle-positions/models/views/PublicStopTimeModel.js.map +1 -1
  113. package/dist/schema-definitions/vehicle-positions/models/views/interfaces/IPublicStopTimeDto.d.ts +1 -0
  114. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicApiCacheDto.d.ts +2 -0
  115. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IPublicStopTimeCacheDto.d.ts +1 -0
  116. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js +8 -0
  117. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicApiCacheDtoSchema.js.map +1 -1
  118. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js +4 -1
  119. package/dist/schema-definitions/vehicle-positions/redis/schemas/PublicStopTimeCacheDtoSchema.js.map +1 -1
  120. package/docs/cache/types/redis.md +2 -2
  121. package/docs/openapi-output.yaml +326 -4
  122. package/package.json +1 -1
  123. package/dist/output-gateway/public/service/VPSubscriber.js.map +0 -1
@@ -0,0 +1,83 @@
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.GtfsStopsRedisRepository = void 0;
16
+ const const_1 = require("../../../../schema-definitions/ropid-gtfs/redis/const");
17
+ const IoRedisConnector_1 = require("@golemio/core/dist/helpers/data-access/redis/IoRedisConnector");
18
+ const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
19
+ const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
20
+ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
21
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
22
+ let GtfsStopsRedisRepository = exports.GtfsStopsRedisRepository = class GtfsStopsRedisRepository {
23
+ constructor(redisConnector, log) {
24
+ this.redisConnector = redisConnector;
25
+ this.log = log;
26
+ this.setName = undefined; // loaded via pub sub or loaded from redis
27
+ }
28
+ async checkSetNameAndConnection() {
29
+ if (!this.redisConnector.isConnected()) {
30
+ await this.redisConnector.connect();
31
+ }
32
+ const connection = this.redisConnector.getConnection();
33
+ if (!this.setName) {
34
+ const loadedSetName = await connection.get(`${const_1.GTFS_STOPS_NAMESPACE_PREFIX}:activeSetName`);
35
+ if (!loadedSetName) {
36
+ this.log.debug(`Empty setName for ${const_1.GTFS_STOPS_NAMESPACE_PREFIX}`);
37
+ return null;
38
+ }
39
+ else {
40
+ this.setName = loadedSetName;
41
+ }
42
+ }
43
+ return connection;
44
+ }
45
+ setCurrentSetName(name) {
46
+ this.setName = name;
47
+ }
48
+ async getAswNodeIdFromCisId(cisId) {
49
+ const connection = await this.checkSetNameAndConnection();
50
+ if (!connection) {
51
+ return null;
52
+ }
53
+ try {
54
+ return await connection.hget(`${this.setName}:cisToAswNode`, cisId);
55
+ }
56
+ catch (error) {
57
+ throw new golemio_errors_1.GeneralError("Cannot get run trips from cache", this.constructor.name, error);
58
+ }
59
+ }
60
+ async getGtfsStopIdsByAswNode(aswNodeId) {
61
+ const connection = await this.checkSetNameAndConnection();
62
+ if (!connection) {
63
+ return [];
64
+ }
65
+ try {
66
+ const listOfGtfsStops = await connection.hget(`${this.setName}:aswNodeToGtfsStops`, aswNodeId);
67
+ if (!listOfGtfsStops) {
68
+ return [];
69
+ }
70
+ return listOfGtfsStops.split(",");
71
+ }
72
+ catch (error) {
73
+ throw new golemio_errors_1.GeneralError("Cannot get run trips from cache", this.constructor.name, error);
74
+ }
75
+ }
76
+ };
77
+ exports.GtfsStopsRedisRepository = GtfsStopsRedisRepository = __decorate([
78
+ (0, tsyringe_1.injectable)(),
79
+ __param(0, (0, tsyringe_1.inject)(ioc_1.ContainerToken.RedisConnector)),
80
+ __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
81
+ __metadata("design:paramtypes", [IoRedisConnector_1.IoRedisConnector, Object])
82
+ ], GtfsStopsRedisRepository);
83
+ //# sourceMappingURL=GtfsStopsRedisRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GtfsStopsRedisRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/ropid-gtfs/data-access/redis/GtfsStopsRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iFAA0E;AAC1E,oGAAiG;AACjG,wEAAqE;AAErE,+DAAuE;AACvE,6EAAwE;AACxE,iEAAwE;AAGjE,IAAM,wBAAwB,sCAA9B,MAAM,wBAAwB;IAGjC,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,mCAA2B,gBAAgB,CAAC,CAAC;YAC3F,IAAI,CAAC,aAAa,EAAE;gBAChB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,mCAA2B,EAAE,CAAC,CAAC;gBACnE,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,qBAAqB,CAAC,KAAa;QAC5C,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,yBAAyB,EAAE,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@ var RouteVersion;
6
6
  RouteVersion["v1"] = "v1";
7
7
  RouteVersion["v2"] = "v2";
8
8
  RouteVersion["v3"] = "v3";
9
+ RouteVersion["v4"] = "v4";
9
10
  })(RouteVersion || (exports.RouteVersion = RouteVersion = {}));
10
11
  //# sourceMappingURL=route-version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"route-version.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/route-version.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,yBAAS,CAAA;IACT,yBAAS,CAAA;IACT,yBAAS,CAAA;AACb,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"route-version.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/route-version.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,yBAAS,CAAA;IACT,yBAAS,CAAA;IACT,yBAAS,CAAA;IACT,yBAAS,CAAA;AACb,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -1,7 +1,9 @@
1
1
  import { ISubscriberOptions, RedisSubscriber } from "@golemio/core/dist/helpers/data-access/pubsub/subscribers/RedisSubscriber";
2
- import { IVehiclePositionsRepository } from "../domain/repository/IVehiclePositionsRepository";
3
2
  export declare class VPSubscriber extends RedisSubscriber {
4
3
  private repository;
5
- constructor(options: ISubscriberOptions, repository: IVehiclePositionsRepository);
4
+ constructor(options: ISubscriberOptions, repository: RepositoryWithSubscriber);
6
5
  initialize(): Promise<void>;
7
6
  }
7
+ export interface RepositoryWithSubscriber {
8
+ setCurrentSetName(name: string): void;
9
+ }
@@ -9,7 +9,7 @@ class VPSubscriber extends RedisSubscriber_1.RedisSubscriber {
9
9
  }
10
10
  async initialize() {
11
11
  await this.subscribe();
12
- this.logger.debug("Redis subscriber subscribed to channel for Public API.");
12
+ this.logger.debug(`Redis subscriber subscribed to channel: ${this.redisChannel}`);
13
13
  this.listen((message) => {
14
14
  this.logger.debug("Redis subscriber received a message to change repository source.");
15
15
  if (message !== undefined) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VPSubscriber.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/service/VPSubscriber.ts"],"names":[],"mappings":";;;AAAA,+GAAgI;AAEhI,MAAa,YAAa,SAAQ,iCAAe;IAC7C,YAAY,OAA2B,EAAU,UAAoC;QACjF,KAAK,CAAC,OAAO,CAAC,CAAC;QAD8B,eAAU,GAAV,UAAU,CAA0B;IAErF,CAAC;IAEM,KAAK,CAAC,UAAU;QACnB,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QAEvB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2CAA2C,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QAClF,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;YACpB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YACtF,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAC9C;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAhBD,oCAgBC"}
@@ -0,0 +1,17 @@
1
+ import { JISInfotextSeverityLevel } from "../../../../helpers/jis/JISInfotextSeverityLevelEnum";
2
+ export interface IJISInfotextDto {
3
+ id: string;
4
+ severity_level: JISInfotextSeverityLevel;
5
+ display_type: string;
6
+ active_period_start: string;
7
+ active_period_end: string | null;
8
+ description_text: {
9
+ cs: string;
10
+ en: string | null;
11
+ };
12
+ created_timestamp: string;
13
+ updated_timestamp: string;
14
+ stops: Array<{
15
+ stop_id: string;
16
+ }>;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IJISInfotextDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IJISInfotextDto.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/redis/interfaces/IJISInfotextDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { IJISInfotextDto } from "../interfaces/IJISInfotextDto";
3
+ export declare const JISInfotextDtoSchema: JSONSchemaType<IJISInfotextDto[]>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JISInfotextDtoSchema = void 0;
4
+ exports.JISInfotextDtoSchema = {
5
+ $schema: "http://json-schema.org/draft-04/schema#",
6
+ title: "JISInfotextDto",
7
+ type: "array",
8
+ items: {
9
+ type: "object",
10
+ properties: {
11
+ id: { type: "string" },
12
+ severity_level: { type: "string" },
13
+ display_type: { type: "string" },
14
+ active_period_start: { type: "string", format: "date-time" },
15
+ active_period_end: {
16
+ oneOf: [
17
+ { type: "string", format: "date-time" },
18
+ { type: "null", nullable: true },
19
+ ],
20
+ },
21
+ description_text: {
22
+ type: "object",
23
+ properties: {
24
+ cs: { type: "string" },
25
+ en: {
26
+ oneOf: [{ type: "string" }, { type: "null", nullable: true }],
27
+ },
28
+ },
29
+ required: ["cs", "en"],
30
+ additionalProperties: false,
31
+ },
32
+ created_timestamp: { type: "string", format: "date-time" },
33
+ updated_timestamp: { type: "string", format: "date-time" },
34
+ stops: {
35
+ type: "array",
36
+ items: {
37
+ type: "object",
38
+ properties: {
39
+ stop_id: { type: "string" },
40
+ },
41
+ required: ["stop_id"],
42
+ additionalProperties: false,
43
+ },
44
+ },
45
+ },
46
+ required: [
47
+ "id",
48
+ "severity_level",
49
+ "display_type",
50
+ "active_period_start",
51
+ "description_text",
52
+ "created_timestamp",
53
+ "updated_timestamp",
54
+ "stops",
55
+ ],
56
+ additionalProperties: false,
57
+ },
58
+ };
59
+ //# sourceMappingURL=JISInfotextDtoSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JISInfotextDto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,QAAQ;oBACd,UAAU,EAAE;wBACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC9B;oBACD,QAAQ,EAAE,CAAC,SAAS,CAAC;oBACrB,oBAAoB,EAAE,KAAK;iBAC9B;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,cAAc;YACd,qBAAqB;YACrB,kBAAkB;YAClB,mBAAmB;YACnB,mBAAmB;YACnB,OAAO;SACV;QACD,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
@@ -1,7 +1,7 @@
1
- import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
- import { IPublicStopTimeDto } from "./interfaces/IPublicStopTimeDto";
3
1
  import { GTFSRouteTypeEnum } from "../../../../helpers/RouteTypeEnums";
4
2
  import { ProviderSourceTypeEnum } from "../../../../integration-engine/vehicle-positions/workers/vehicle-positions/helpers/ProviderSourceTypeEnum";
3
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
4
+ import { IPublicStopTimeDto } from "./interfaces/IPublicStopTimeDto";
5
5
  export declare class PublicStopTimeModel extends Model<PublicStopTimeModel> implements IPublicStopTimeDto {
6
6
  static tableName: string;
7
7
  rt_trip_id: string;
@@ -19,5 +19,6 @@ 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;
22
23
  static attributeModel: ModelAttributes<PublicStopTimeModel>;
23
24
  }
@@ -69,5 +69,9 @@ 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
+ },
72
76
  };
73
77
  //# sourceMappingURL=PublicStopTimeModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicStopTimeModel.js","sourceRoot":"","sources":["../../../../../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AAO;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;CACJ,CAAC"}
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"}
@@ -16,4 +16,5 @@ 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;
19
20
  }
@@ -14,8 +14,10 @@ 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;
17
18
  run_number: number | null;
18
19
  trip_headsign: string | null;
20
+ direction_id: number;
19
21
  shape_dist_traveled: number | null;
20
22
  last_stop_sequence: number | null;
21
23
  origin_timestamp: string;
@@ -5,4 +5,5 @@ 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;
8
9
  }
@@ -61,12 +61,18 @@ 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
+ },
64
67
  run_number: {
65
68
  oneOf: [{ type: "number" }, { type: "null", nullable: true }],
66
69
  },
67
70
  trip_headsign: {
68
71
  oneOf: [{ type: "string" }, { type: "null", nullable: true }],
69
72
  },
73
+ direction_id: {
74
+ type: "number",
75
+ },
70
76
  shape_dist_traveled: {
71
77
  oneOf: [{ type: "number" }, { type: "null", nullable: true }],
72
78
  },
@@ -85,8 +91,10 @@ const publicApiCacheDtoSchema = {
85
91
  "origin_timestamp",
86
92
  "origin_route_name",
87
93
  "shape_id",
94
+ "trip_number",
88
95
  "run_number",
89
96
  "trip_headsign",
97
+ "direction_id",
90
98
  "shape_dist_traveled",
91
99
  "last_stop_sequence",
92
100
  "registration_number",
@@ -1 +1 @@
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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E,IAAI,EAAE,CAAC;qBAChE;oBACD,kBAAkB,EAAE;wBAChB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,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"}
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,E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AAY;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,8 +58,11 @@ const publicStopTimeCacheDtoSchema = {
58
58
  stop_id: {
59
59
  type: "string",
60
60
  },
61
+ stop_name: {
62
+ type: "string",
63
+ },
61
64
  },
62
- required: ["sequence", "arr_delay", "dep_delay", "cis_stop_platform_code", "platform_code", "stop_id"],
65
+ required: ["sequence", "arr_delay", "dep_delay", "cis_stop_platform_code", "platform_code", "stop_id", "stop_name"],
63
66
  },
64
67
  };
65
68
  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;SACJ;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,eAAe,EAAE,SAAS,CAAC;KACzG;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;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"}
@@ -327,7 +327,7 @@ flowchart TD;
327
327
  - Nová sada je vytvořena při každém přenačtení cache
328
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
329
  - Komponenty:
330
- - `gtfsStopsCache:$setId:awsNodeGtfsStops` - Hash mapa, mapující daný ASW node na seznam pod něj spadajících zastávek (GTFS ids zastávek, odděleny čárkami)
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
331
  - `gtfsStopsCache:$setId:cisToAswNode` - Hash mapa, mapující dané CIS id zastávky na příslušný ASW node
332
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
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)
@@ -363,7 +363,7 @@ flowchart LR
363
363
  amqp_refreshGtfsStopsCache --> task_RefreshGtfsStopsCacheTask;
364
364
  task_RefreshGtfsStopsCacheTask <-- "`ASW ids a CIS ids zastávek`" --> psql_ropidgtfs_cis_stops;
365
365
  task_RefreshGtfsStopsCacheTask <-- "`ASW nodes a GTFS ids zastávek`" --> psql_ropidgtfs_stops;
366
- task_RefreshGtfsStopsCacheTask -- "`HSET gtfsStopsCache:$setId:awsNodeGtfsStops a gtfsStopsCache:$setId:cisToAswNode, EXPIRE staré sady`" --> redis_gtfsStopsCache;
366
+ task_RefreshGtfsStopsCacheTask -- "`HSET gtfsStopsCache:$setId:aswNodeToGtfsStops a gtfsStopsCache:$setId:cisToAswNode, EXPIRE staré sady`" --> redis_gtfsStopsCache;
367
367
  ```
368
368
 
369
369
  ### Flowchart (refresh jisCache:*)