@golemio/pid 2.14.5-dev.1375307993 → 2.14.5-rc.1391544449

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 (102) hide show
  1. package/db/example/01_departure_directions.sql +3 -3
  2. package/dist/integration-engine/index.js +0 -2
  3. package/dist/integration-engine/index.js.map +1 -1
  4. package/dist/integration-engine/ropid-gtfs/datasources/StaticDataSourceFactory.d.ts +13 -0
  5. package/dist/integration-engine/ropid-gtfs/datasources/StaticDataSourceFactory.js +35 -0
  6. package/dist/integration-engine/ropid-gtfs/datasources/StaticDataSourceFactory.js.map +1 -0
  7. package/dist/integration-engine/ropid-gtfs/datasources/static-data/DeparturesDirectionDataSourceProvider.d.ts +9 -0
  8. package/dist/integration-engine/ropid-gtfs/datasources/static-data/DeparturesDirectionDataSourceProvider.js +49 -0
  9. package/dist/integration-engine/ropid-gtfs/datasources/static-data/DeparturesDirectionDataSourceProvider.js.map +1 -0
  10. package/dist/integration-engine/ropid-gtfs/datasources/static-data/MetroRailTrackDataSourceProvider.d.ts +9 -0
  11. package/dist/integration-engine/ropid-gtfs/datasources/static-data/MetroRailTrackDataSourceProvider.js +49 -0
  12. package/dist/integration-engine/ropid-gtfs/datasources/static-data/MetroRailTrackDataSourceProvider.js.map +1 -0
  13. package/dist/integration-engine/ropid-gtfs/ioc/Di.js +16 -0
  14. package/dist/integration-engine/ropid-gtfs/ioc/Di.js.map +1 -1
  15. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.d.ts +9 -0
  16. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +9 -0
  17. package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
  18. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js +1 -0
  19. package/dist/integration-engine/ropid-gtfs/workers/timetables/TimetableWorker.js.map +1 -1
  20. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js +6 -4
  21. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/CheckForNewDataTask.js.map +1 -1
  22. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/SaveStaticDataTask.d.ts +17 -0
  23. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/SaveStaticDataTask.js +86 -0
  24. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/SaveStaticDataTask.js.map +1 -0
  25. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/DeparturesDirectionRepository.d.ts +6 -0
  26. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/DeparturesDirectionRepository.js +67 -0
  27. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/DeparturesDirectionRepository.js.map +1 -0
  28. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/data-access/MetroRailtrackGPSRepository.js.map +1 -0
  29. package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/interfaces/IAggregatedRailtrackGPSData.js.map +1 -1
  30. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/DeparturesDirectionTransformation.d.ts +8 -0
  31. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/DeparturesDirectionTransformation.js +28 -0
  32. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/DeparturesDirectionTransformation.js.map +1 -0
  33. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/MetroRailtrackDataTransformation.d.ts +8 -0
  34. package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/transformations/MetroRailtrackDataTransformation.js +4 -12
  35. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/MetroRailtrackDataTransformation.js.map +1 -0
  36. package/dist/integration-engine/vehicle-positions/ioc/Di.js +1 -1
  37. package/dist/integration-engine/vehicle-positions/ioc/Di.js.map +1 -1
  38. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.d.ts +4 -1
  39. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js +27 -11
  40. package/dist/integration-engine/vehicle-positions/workers/runs/helpers/regional-bus/RegionalBusMessageFilter.js.map +1 -1
  41. package/dist/integration-engine/vehicle-positions/workers/runs/interfaces/IMetroRunInputForProcessing.d.ts +1 -1
  42. package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js +1 -1
  43. package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js.map +1 -1
  44. package/dist/integration-engine/vehicle-positions/workers/runs/transformations/MetroRunsMessageProcessingTransformation.d.ts +1 -1
  45. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicApiCacheRepository.js +0 -3
  46. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/cache/PublicApiCacheRepository.js.map +1 -1
  47. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/metro/CachedMetroRailtrackLookup.d.ts +1 -1
  48. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/metro/CachedMetroRailtrackLookup.js +1 -1
  49. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/metro/CachedMetroRailtrackLookup.js.map +1 -1
  50. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.d.ts +6 -3
  51. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js +19 -8
  52. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/transformations/MpvMessageTransformation.js.map +1 -1
  53. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.d.ts +1 -1
  54. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js +2 -16
  55. package/dist/output-gateway/public/data-access/redis/PublicVehiclePositionsRepository.js.map +1 -1
  56. package/dist/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.d.ts +40 -0
  57. package/dist/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.js +45 -0
  58. package/dist/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.js.map +1 -0
  59. package/dist/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.d.ts +24 -0
  60. package/dist/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.js +28 -0
  61. package/dist/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.js.map +1 -0
  62. package/dist/schema-definitions/datasources/static-data/index.d.ts +3 -0
  63. package/dist/schema-definitions/datasources/static-data/index.js +20 -0
  64. package/dist/schema-definitions/datasources/static-data/index.js.map +1 -0
  65. package/dist/schema-definitions/datasources/static-data/interfaces/DeparturesDirectionDataInterface.d.ts +11 -0
  66. package/dist/schema-definitions/datasources/static-data/interfaces/DeparturesDirectionDataInterface.js +3 -0
  67. package/dist/schema-definitions/datasources/static-data/interfaces/DeparturesDirectionDataInterface.js.map +1 -0
  68. package/dist/{integration-engine/ropid-gtfs/workers/railtrack/tasks/interfaces/MetroRailtrackDataInterfaces.d.ts → schema-definitions/datasources/static-data/interfaces/MetroRailTrackDataInterface.d.ts} +0 -3
  69. package/dist/schema-definitions/datasources/static-data/interfaces/MetroRailTrackDataInterface.js +17 -0
  70. package/dist/schema-definitions/datasources/static-data/interfaces/MetroRailTrackDataInterface.js.map +1 -0
  71. package/dist/schema-definitions/datasources/static-data/interfaces/index.d.ts +2 -0
  72. package/dist/schema-definitions/datasources/static-data/interfaces/index.js +19 -0
  73. package/dist/schema-definitions/datasources/static-data/interfaces/index.js.map +1 -0
  74. package/dist/schema-definitions/ropid-departures-directions/index.d.ts +3 -11
  75. package/dist/schema-definitions/ropid-departures-directions/index.js +12 -12
  76. package/dist/schema-definitions/ropid-departures-directions/index.js.map +1 -1
  77. package/dist/schema-definitions/ropid-gtfs/interfaces/IDeparturesDirectionDto.d.ts +11 -0
  78. package/dist/{integration-engine/ropid-gtfs/workers/railtrack/tasks/interfaces/MetroRailtrackDataInterfaces.js → schema-definitions/ropid-gtfs/interfaces/IDeparturesDirectionDto.js} +1 -1
  79. package/dist/schema-definitions/ropid-gtfs/interfaces/IDeparturesDirectionDto.js.map +1 -0
  80. package/dist/schema-definitions/ropid-gtfs/models/DeparturesDirectionDto.d.ts +18 -0
  81. package/dist/schema-definitions/ropid-gtfs/models/DeparturesDirectionDto.js +86 -0
  82. package/dist/schema-definitions/ropid-gtfs/models/DeparturesDirectionDto.js.map +1 -0
  83. package/docs/implementation_documentation.md +38 -33
  84. package/docs/openapi-output.yaml +71 -17
  85. package/package.json +3 -3
  86. package/dist/integration-engine/ropid-gtfs/workers/railtrack/RailtrackWorker.d.ts +0 -5
  87. package/dist/integration-engine/ropid-gtfs/workers/railtrack/RailtrackWorker.js +0 -16
  88. package/dist/integration-engine/ropid-gtfs/workers/railtrack/RailtrackWorker.js.map +0 -1
  89. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/SaveMetroRailtrackDataToDBTask.d.ts +0 -12
  90. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/SaveMetroRailtrackDataToDBTask.js +0 -38
  91. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/SaveMetroRailtrackDataToDBTask.js.map +0 -1
  92. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/data-access/MetroRailtrackGPSRepository.js.map +0 -1
  93. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/interfaces/MetroRailtrackDataInterfaces.js.map +0 -1
  94. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/schema/MetroRailtrackDataSchema.d.ts +0 -4
  95. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/schema/MetroRailtrackDataSchema.js +0 -51
  96. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/schema/MetroRailtrackDataSchema.js.map +0 -1
  97. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/transformations/MetroRailtrackDataTransformation.d.ts +0 -8
  98. package/dist/integration-engine/ropid-gtfs/workers/railtrack/tasks/transformations/MetroRailtrackDataTransformation.js.map +0 -1
  99. /package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/data-access/MetroRailtrackGPSRepository.d.ts +0 -0
  100. /package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/data-access/MetroRailtrackGPSRepository.js +0 -0
  101. /package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/interfaces/IAggregatedRailtrackGPSData.d.ts +0 -0
  102. /package/dist/integration-engine/ropid-gtfs/workers/{railtrack → timetables}/tasks/interfaces/IAggregatedRailtrackGPSData.js +0 -0
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.departuresDirectionsJsonSchema = void 0;
4
+ const ropid_departures_directions_1 = require("../../ropid-departures-directions");
5
+ const departuresDirectionsJsonSchema = {
6
+ type: "array",
7
+ items: {
8
+ type: "object",
9
+ properties: {
10
+ departure_stop_id: {
11
+ type: "string",
12
+ },
13
+ next_stop_id_regexp: {
14
+ type: "string",
15
+ },
16
+ direction: {
17
+ type: "string",
18
+ enum: ropid_departures_directions_1.PossibleDeparturesDirections,
19
+ },
20
+ rule_order: {
21
+ type: "string",
22
+ },
23
+ create_batch_id: {
24
+ type: "string",
25
+ },
26
+ created_at: {
27
+ type: "string",
28
+ },
29
+ created_by: {
30
+ type: "string",
31
+ },
32
+ update_batch_id: {
33
+ type: "string",
34
+ },
35
+ updated_at: {
36
+ type: "string",
37
+ },
38
+ updated_by: {
39
+ type: "string",
40
+ },
41
+ },
42
+ },
43
+ };
44
+ exports.departuresDirectionsJsonSchema = departuresDirectionsJsonSchema;
45
+ //# sourceMappingURL=DeparturesDirectionsJsonSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesDirectionsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAEhF,MAAM,8BAA8B,GAAG;IACnC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,iBAAiB,EAAE;gBACf,IAAI,EAAE,QAAQ;aACjB;YACD,mBAAmB,EAAE;gBACjB,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,0DAA4B;aACrC;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YAED,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC;AAEO,wEAA8B"}
@@ -0,0 +1,24 @@
1
+ declare const metroRailTrackJsonSchema: {
2
+ type: string;
3
+ items: {
4
+ type: string;
5
+ properties: {
6
+ track_section: {
7
+ type: string;
8
+ };
9
+ line: {
10
+ type: string;
11
+ };
12
+ gps_lat: {
13
+ type: string;
14
+ };
15
+ gps_lon: {
16
+ type: string;
17
+ };
18
+ stop_id: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
23
+ };
24
+ export { metroRailTrackJsonSchema };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.metroRailTrackJsonSchema = void 0;
4
+ const metroRailTrackJsonSchema = {
5
+ type: "array",
6
+ items: {
7
+ type: "object",
8
+ properties: {
9
+ track_section: {
10
+ type: "string",
11
+ },
12
+ line: {
13
+ type: "string",
14
+ },
15
+ gps_lat: {
16
+ type: "string",
17
+ },
18
+ gps_lon: {
19
+ type: "string",
20
+ },
21
+ stop_id: {
22
+ type: "string",
23
+ },
24
+ },
25
+ },
26
+ };
27
+ exports.metroRailTrackJsonSchema = metroRailTrackJsonSchema;
28
+ //# sourceMappingURL=MetroRailTrackJsonSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetroRailTrackJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.ts"],"names":[],"mappings":";;;AAAA,MAAM,wBAAwB,GAAG;IAC7B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC;AAEO,4DAAwB"}
@@ -0,0 +1,3 @@
1
+ export * from "./MetroRailTrackJsonSchema";
2
+ export * from "./DeparturesDirectionsJsonSchema";
3
+ export * from "./interfaces";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MetroRailTrackJsonSchema"), exports);
18
+ __exportStar(require("./DeparturesDirectionsJsonSchema"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/static-data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,mEAAiD;AACjD,+CAA6B"}
@@ -0,0 +1,11 @@
1
+ import { DeparturesDirectionsEnum } from "../../../ropid-departures-directions";
2
+ export interface IDeparturesDirection {
3
+ departure_stop_id: string;
4
+ next_stop_id_regexp: string;
5
+ direction: DeparturesDirectionsEnum;
6
+ rule_order: string;
7
+ create_batch_id: string;
8
+ created_by: string;
9
+ update_batch_id: string;
10
+ updated_by: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DeparturesDirectionDataInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesDirectionDataInterface.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/static-data/interfaces/DeparturesDirectionDataInterface.ts"],"names":[],"mappings":""}
@@ -12,9 +12,6 @@
12
12
  * ]
13
13
  * }
14
14
  */
15
- export interface IMetroRailtrackDataInput<TOmitOptions extends keyof IMetroRailtrack | "" = ""> {
16
- data: Array<Omit<IMetroRailtrack, TOmitOptions>>;
17
- }
18
15
  export interface IMetroRailtrack {
19
16
  track_section: string;
20
17
  line: string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * @example
4
+ * {
5
+ * data: [
6
+ * {
7
+ * track_section: "2107",
8
+ * line: "A",
9
+ * gps_lat: "50.075360",
10
+ * gps_lon: "14.341560",
11
+ * stop_id: "U306Z101P"
12
+ * }
13
+ * ]
14
+ * }
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ //# sourceMappingURL=MetroRailTrackDataInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetroRailTrackDataInterface.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/static-data/interfaces/MetroRailTrackDataInterface.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG"}
@@ -0,0 +1,2 @@
1
+ export * from "./MetroRailTrackDataInterface";
2
+ export * from "./DeparturesDirectionDataInterface";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MetroRailTrackDataInterface"), exports);
18
+ __exportStar(require("./DeparturesDirectionDataInterface"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/static-data/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,qEAAmD"}
@@ -1,15 +1,7 @@
1
1
  import "@golemio/core/dist/shared/sequelize";
2
2
  import { IRopidDeparturesDirectionsSDMAOutput } from "./RopidDeparturesDirectionsSDMA";
3
- declare enum DeparturesDirectionsEnum {
4
- TOP = "top",
5
- TOP_LEFT = "top-left",
6
- LEFT = "left",
7
- BOTTOM_LEFT = "bottom-left",
8
- BOTTOM = "bottom",
9
- BOTTOM_RIGHT = "bottom-right",
10
- RIGHT = "right",
11
- TOP_RIGHT = "top-right"
12
- }
3
+ declare const PossibleDeparturesDirections: readonly ["top", "top-left", "left", "bottom-left", "bottom", "bottom-right", "right", "top-right"];
4
+ type DeparturesDirectionsEnum = (typeof PossibleDeparturesDirections)[number];
13
5
  interface IRopidDeparturesDirectionsOutput {
14
6
  departure_stop_id: string;
15
7
  next_stop_id_regexp: RegExp;
@@ -41,5 +33,5 @@ declare const forExport: {
41
33
  pgTableName: string;
42
34
  };
43
35
  };
44
- export { forExport as RopidDeparturesDirections, DeparturesDirectionsEnum };
36
+ export { forExport as RopidDeparturesDirections, DeparturesDirectionsEnum, PossibleDeparturesDirections };
45
37
  export type { IRopidDeparturesDirectionsSDMAOutput, IRopidDeparturesDirectionsOutput };
@@ -1,20 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeparturesDirectionsEnum = exports.RopidDeparturesDirections = void 0;
3
+ exports.PossibleDeparturesDirections = exports.RopidDeparturesDirections = void 0;
4
4
  require("@golemio/core/dist/shared/sequelize");
5
5
  const RopidDeparturesDirectionsOutputSchemas_1 = require("./RopidDeparturesDirectionsOutputSchemas");
6
6
  const RopidDeparturesDirectionsSDMA_1 = require("./RopidDeparturesDirectionsSDMA");
7
- var DeparturesDirectionsEnum;
8
- (function (DeparturesDirectionsEnum) {
9
- DeparturesDirectionsEnum["TOP"] = "top";
10
- DeparturesDirectionsEnum["TOP_LEFT"] = "top-left";
11
- DeparturesDirectionsEnum["LEFT"] = "left";
12
- DeparturesDirectionsEnum["BOTTOM_LEFT"] = "bottom-left";
13
- DeparturesDirectionsEnum["BOTTOM"] = "bottom";
14
- DeparturesDirectionsEnum["BOTTOM_RIGHT"] = "bottom-right";
15
- DeparturesDirectionsEnum["RIGHT"] = "right";
16
- DeparturesDirectionsEnum["TOP_RIGHT"] = "top-right";
17
- })(DeparturesDirectionsEnum || (exports.DeparturesDirectionsEnum = DeparturesDirectionsEnum = {}));
7
+ const PossibleDeparturesDirections = [
8
+ "top",
9
+ "top-left",
10
+ "left",
11
+ "bottom-left",
12
+ "bottom",
13
+ "bottom-right",
14
+ "right",
15
+ "top-right",
16
+ ];
17
+ exports.PossibleDeparturesDirections = PossibleDeparturesDirections;
18
18
  const forExport = {
19
19
  name: "RopidDeparturesDirections",
20
20
  departureDirections: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-directions/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAC7C,qGAAgG;AAChG,mFAAuH;AAEvH,IAAK,wBASJ;AATD,WAAK,wBAAwB;IACzB,uCAAW,CAAA;IACX,iDAAqB,CAAA;IACrB,yCAAa,CAAA;IACb,uDAA2B,CAAA;IAC3B,6CAAiB,CAAA;IACjB,yDAA6B,CAAA;IAC7B,2CAAe,CAAA;IACf,mDAAuB,CAAA;AAC3B,CAAC,EATI,wBAAwB,wCAAxB,wBAAwB,QAS5B;AASD,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,2BAA2B;IACjC,mBAAmB,EAAE;QACjB,IAAI,EAAE,2BAA2B;QACjC,gBAAgB,EAAE,6EAAoC;QACtD,yBAAyB,EAAE,8DAA8B;QACzD,WAAW,EAAE,6BAA6B;KAC7C;CACJ,CAAC;AAEoB,8CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-departures-directions/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAC7C,qGAAgG;AAChG,mFAAuH;AAEvH,MAAM,4BAA4B,GAAG;IACjC,KAAK;IACL,UAAU;IACV,MAAM;IACN,aAAa;IACb,QAAQ;IACR,cAAc;IACd,OAAO;IACP,WAAW;CACL,CAAC;AAqBgE,oEAA4B;AAVvG,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,2BAA2B;IACjC,mBAAmB,EAAE;QACjB,IAAI,EAAE,2BAA2B;QACjC,gBAAgB,EAAE,6EAAoC;QACtD,yBAAyB,EAAE,8DAA8B;QACzD,WAAW,EAAE,6BAA6B;KAC7C;CACJ,CAAC;AAEoB,8CAAyB"}
@@ -0,0 +1,11 @@
1
+ import { DeparturesDirectionsEnum } from "../../ropid-departures-directions";
2
+ export interface IDeparturesDirectionDto {
3
+ departure_stop_id: string;
4
+ next_stop_id_regexp: string;
5
+ direction: DeparturesDirectionsEnum;
6
+ rule_order: number;
7
+ created_by: string | null;
8
+ updated_by: string | null;
9
+ update_batch_id: string | null;
10
+ create_batch_id: string | null;
11
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=MetroRailtrackDataInterfaces.js.map
3
+ //# sourceMappingURL=IDeparturesDirectionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDeparturesDirectionDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/interfaces/IDeparturesDirectionDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { DeparturesDirectionsEnum } from "../../ropid-departures-directions";
3
+ import { IDeparturesDirectionDto } from "../interfaces/IDeparturesDirectionDto";
4
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
5
+ export declare class DeparturesDirectionModel extends Model<DeparturesDirectionModel> implements IDeparturesDirectionDto {
6
+ static TABLE_NAME: string;
7
+ id: number;
8
+ departure_stop_id: string;
9
+ next_stop_id_regexp: string;
10
+ direction: DeparturesDirectionsEnum;
11
+ rule_order: number;
12
+ create_batch_id: string | null;
13
+ created_by: string | null;
14
+ update_batch_id: string | null;
15
+ updated_by: string | null;
16
+ static attributeModel: ModelAttributes<DeparturesDirectionModel>;
17
+ static arrayJsonSchema: JSONSchemaType<IDeparturesDirectionDto[]>;
18
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeparturesDirectionModel = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ const ropid_departures_directions_1 = require("../../ropid-departures-directions");
6
+ class DeparturesDirectionModel extends sequelize_1.Model {
7
+ }
8
+ exports.DeparturesDirectionModel = DeparturesDirectionModel;
9
+ DeparturesDirectionModel.TABLE_NAME = "ropid_departures_directions";
10
+ DeparturesDirectionModel.attributeModel = {
11
+ id: {
12
+ type: sequelize_1.DataTypes.INTEGER,
13
+ primaryKey: true,
14
+ autoIncrement: true,
15
+ unique: true,
16
+ },
17
+ departure_stop_id: {
18
+ type: sequelize_1.DataTypes.TEXT,
19
+ allowNull: false,
20
+ },
21
+ next_stop_id_regexp: {
22
+ type: sequelize_1.DataTypes.TEXT,
23
+ allowNull: false,
24
+ },
25
+ direction: {
26
+ type: sequelize_1.DataTypes.TEXT,
27
+ allowNull: false,
28
+ },
29
+ rule_order: {
30
+ type: sequelize_1.DataTypes.INTEGER,
31
+ allowNull: false,
32
+ defaultValue: 0,
33
+ },
34
+ create_batch_id: {
35
+ type: sequelize_1.DataTypes.BIGINT,
36
+ allowNull: true,
37
+ },
38
+ created_by: {
39
+ type: sequelize_1.DataTypes.STRING(150),
40
+ allowNull: true,
41
+ },
42
+ update_batch_id: {
43
+ type: sequelize_1.DataTypes.BIGINT,
44
+ allowNull: true,
45
+ },
46
+ updated_by: {
47
+ type: sequelize_1.DataTypes.STRING(150),
48
+ allowNull: true,
49
+ },
50
+ };
51
+ // @ts-expect-error
52
+ DeparturesDirectionModel.arrayJsonSchema = {
53
+ type: "array",
54
+ items: {
55
+ type: "object",
56
+ properties: {
57
+ departure_stop_id: {
58
+ type: "string",
59
+ },
60
+ next_stop_id_regexp: {
61
+ type: "string",
62
+ },
63
+ direction: {
64
+ type: "string",
65
+ enum: ropid_departures_directions_1.PossibleDeparturesDirections,
66
+ },
67
+ rule_order: {
68
+ type: "number",
69
+ },
70
+ create_batch_id: {
71
+ type: ["string", "null"],
72
+ },
73
+ created_by: {
74
+ type: ["string", "null"],
75
+ },
76
+ update_batch_id: {
77
+ type: ["string", "null"],
78
+ },
79
+ updated_by: {
80
+ type: ["string", "null"],
81
+ },
82
+ },
83
+ required: ["departure_stop_id", "next_stop_id_regexp", "direction", "rule_order"],
84
+ },
85
+ };
86
+ //# sourceMappingURL=DeparturesDirectionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesDirectionDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/models/DeparturesDirectionDto.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AACxF,mFAA0G;AAI1G,MAAa,wBAAyB,SAAQ,iBAA+B;;AAA7E,4DA0FC;AAzFiB,mCAAU,GAAG,6BAA6B,CAAC;AAY3C,uCAAc,GAA8C;IACtE,EAAE,EAAE;QACA,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,IAAI;KACf;IACD,iBAAiB,EAAE;QACf,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,mBAAmB,EAAE;QACjB,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,CAAC;KAClB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,IAAI;KAClB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAClB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,IAAI;KAClB;CACJ,CAAC;AACF,mBAAmB;AACL,wCAAe,GAA8C;IACvE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,iBAAiB,EAAE;gBACf,IAAI,EAAE,QAAQ;aACjB;YACD,mBAAmB,EAAE;gBACjB,IAAI,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,0DAA4B;aACrC;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;aAC3B;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;aAC3B;YAED,eAAe,EAAE;gBACb,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;aAC3B;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;aAC3B;SACJ;QACD,QAAQ,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,CAAC;KACpF;CACJ,CAAC"}
@@ -197,19 +197,6 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
197
197
  - název rabbitmq fronty
198
198
  - neexistuje
199
199
 
200
- #### _Kolejové obvody pro metro_
201
-
202
- - zdroj dat
203
- - soubor: statická data dodává ROPID + CHAPS [metro_railtrack_data.csv](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/static/metro_railtrack_data.csv)
204
- - formát dat
205
- - datový typ: csv
206
- - validační schéma: [MetroRailtrackDataSchema](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-gtfs/workers/railtrack/tasks/schema/MetroRailtrackDataSchema.ts)
207
- - příklad vstupnich dat: viz zdroj dat
208
- - frekvence stahování
209
- - manuální refresh dat https://gitlab.com/operator-ict/golemio/code/modules/pid/-/snippets/2431869
210
- - název rabbitmq fronty
211
- - vehicle-positions.ropidgtfsrailtrack.saveMetroRailtrackDataToDB
212
-
213
200
  #### _Grafana Loki_
214
201
 
215
202
  - zdroj dat
@@ -227,7 +214,25 @@ _:warning: Původním záměrem bylo využití OIS číselníku během zpracová
227
214
  - prod `0 */1 * * * *`
228
215
  - názvy rabbitmq front
229
216
  - vehicle-positions.ropidpresets.collectAndSaveLogs se zprávou `{ "targetMinutes": n }`
217
+ -
230
218
 
219
+ ### _Ropid staticka data_
220
+
221
+ - zdroj dat
222
+ - baseUrl: module.pid.staticData.baseUrl
223
+ - departure directions url: module.pid.staticData.departuresDirection.path
224
+ - metro rail track url: module.pid.staticData.metroRailTracks.path
225
+ - formát dat
226
+ - protokol: http
227
+ - datový typ: csv
228
+ - validační schéma:
229
+ - [MetroRailTrack](../src/schema-definitions/datasources/static-data/MetroRailTrackJsonSchema.ts)
230
+ - [DeparturesDirection](../src/schema-definitions/datasources/static-data/DeparturesDirectionsJsonSchema.ts)
231
+ - příklad vstupnich dat: viz zdroj data
232
+ - frekvence stahování
233
+ - Po nacteni jizdnich radu (fronta: vehicle-positions.ropidgtfs.checkForNewData)
234
+ - názvy rabbitmq front
235
+ - vehicle-positions.ropidgtfs.saveStaticData
231
236
  ### Data nám jsou posílána
232
237
 
233
238
  **Dostupní poskytovatelé**:
@@ -531,6 +536,26 @@ Task se stará o aktualizaci cache pro public odjezdy. Pouští se pravidelně c
531
536
  - data modely
532
537
  - RopidGTFSPrecomputedDeparturesModel `ropidgtfs_precomputed_departures`
533
538
 
539
+ #### task _SaveStaticData_
540
+
541
+ Task se stará o aktualizaci statickych dat. Pouští se po dokončení načtení nových JŘ.
542
+
543
+ - vstupní rabbitmq fronta
544
+ - název: vehicle-positions.ropidgtfs.saveStaticData
545
+ - TTL: 5 minut
546
+ - závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
547
+ - žádné
548
+ - datové zdroje
549
+ - Blob storage
550
+ - transformace
551
+ - [DeparturesDirectionTransformation](../src/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/DeparturesDirectionTransformation.ts)
552
+ - [MetroRailtrackDataTransformation](../src/integration-engine/ropid-gtfs/workers/timetables/tasks/transformations/MetroRailtrackDataTransformation.ts)
553
+ - data modely
554
+ - RopidDeparturesDirections `ropid_departures_directions`
555
+ - RopidGtfsMetroRailtrackGps `ropidgtfs_metro_railtrack_gps`
556
+
557
+
558
+
534
559
  ### PresetWorker
535
560
 
536
561
  #### _Task ~ SavePresetsDataTask_
@@ -612,26 +637,6 @@ Task se stará o aktualizaci cache pro public odjezdy. Pouští se pravidelně c
612
637
  - RopidGTFSMetadataModel `ropidgtfs_metadata`,
613
638
  - RopidDeparturesPresetsModel `ropid_departures_presets`
614
639
 
615
- ### _RailtrackWorker_
616
-
617
- Worker má na starost aktualizaci kolejových obvodů
618
-
619
- #### _task: SaveMetroRailtrackDataToDBTask_
620
-
621
- - vstupní rabbitmq fronta
622
- - název: vehicle-positions.ropidgtfsrailtrack.saveMetroRailtrackDataToDB
623
- - TTL: 5 minut
624
- - parametry: `{ data: [{ track_section, line, gps_lat, gps_lon, stop_id }] }`
625
- - validační schéma: [MetroRailtrackDataSchema](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-gtfs/workers/railtrack/tasks/schema/MetroRailtrackDataSchema.ts)
626
- - závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
627
- - žádné
628
- - datové zdroje
629
- - statická data dodává ROPID
630
- - transformace
631
- - [MetroRailtrackDataTransformation](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/blob/development/src/integration-engine/ropid-gtfs/workers/railtrack/tasks/transformations/MetroRailtrackDataTransformation.ts)
632
- - data modely
633
- - MetroRailtrackGPSModel `ropidgtfs_metro_railtrack_gps`
634
-
635
640
  ### _RopidVYMIWorker_
636
641
 
637
642
  Worker má na starost přípravu podkladových dat pro infotexty pro odjezdové tabule a GTFS real-time alerty